From: Stan Shebs Date: Thu, 31 Dec 1998 23:25:34 +0000 (+0000) Subject: Add a sky sanitization, cosmetic changes for consistency X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5c7e12253661c46073717714ac3c4c9cc109308;p=binutils-gdb.git Add a sky sanitization, cosmetic changes for consistency --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e0342673d1..fe3d28e502a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -5,111 +5,56 @@ Thu Dec 31 16:54:30 1998 David Taylor Edith Epstein David Taylor - * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): change to read + * config/pa/tm-hppa.h (INSTRUCTION_NULLIFIED): Change to read nullify instruction bit from IPSW only when we are not in a system call. - (STRCAT_REGISTER, pa_do_strcat_registers_info): additional + (STRCAT_REGISTER, pa_do_strcat_registers_info): Additional parameter -- precision. - * Makefile.in (BUILD_TUI): to build the tui, only when configured + * Makefile.in (BUILD_TUI): To build the tui, only when configured with --enable-tui. - (YLWRAP): use ylwrap to avoid problems on systems w/o bison. - (gdb$(EXEEXT)): make it dependent on BUILD_TUI. - (all-tui): remove dependency from phony target. - (c-exp.tab.c): use ylwrap instead of bison. - (jv-exp.tab.c): ditto. - (f-exp.tab.c): ditto. - (m2-exp.tab.c): ditto. - - * configure.in (ENABLE_CFLAGS): define and export BUILD_TUI. + (YLWRAP): Use ylwrap to avoid problems on systems w/o bison. + (gdb$(EXEEXT)): Make it dependent on BUILD_TUI. + (all-tui): Remove dependency from phony target. + (c-exp.tab.c): Use ylwrap instead of bison. + (jv-exp.tab.c): Ditto. + (f-exp.tab.c): Ditto. + (m2-exp.tab.c): Ditto. + + * configure.in (ENABLE_CFLAGS): Define and export BUILD_TUI. - * configure : regenerated. + * configure: Regenerated. - * c-typeprint.c (c_type_print_base): get to the method name by + * c-typeprint.c (c_type_print_base): Get to the method name by skipping over all the namespaces, classes and '::'. - * infcmd.c (run_command): only call SOLIB_RESTART if it's + * infcmd.c (run_command): Only call SOLIB_RESTART if it's defined. - (detach_command): ditto. + (detach_command): Ditto. - * infptrace.c (call_ptrace): add some debugging code. + * infptrace.c (call_ptrace): Add some debugging code. - * infrun.c (follow_inferior_fork): only define on HP. - (wait_for_inferior): only call SOLIB_IN_DYNAMIC_LINKER if we have + * infrun.c (follow_inferior_fork): Only define on HP. + (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE removed by HP. - Also, altered calls to c_val_print and val_print, to - reflect additional parameter to c_val_print and val_print. - Affected functions : scm_val_print, scm_value_print - - Also, altered calls to c_val_print, to - reflect additional parameter to c_val_print. - Affected functions : m2_val_print - - Altered calls to val_print, to reflect the - additional parameter for val_print. - Affected files : val_print_array_elements - - In addition there are new macro definitions : - target_pid_to_exec_file, target_acknowledge_forked_child, - target_create_catch_fork_hook, target_create_catch_vfork_hook, - target_has_forked, target_has_vforked. These are generalized - macros for dealing with fork/vfork/exec. - - In addition, there are new functions : normal_pid_to_exec_file, - normal_acknowledge_forked_child, normal_target_has_forked, - normal_target_has_vforked. - - Note : initialized the new fields to NULL -> use the definitions - supplied by inftarg.c. This may not be the correct thing - in all cases. Fix later. - - The INHERIT macro has additional entries for - to_require_attach and to_require_detach. - - The de_fault macro has additional entries for - to_require_attach and to_require_detach. - - The setup_target_debug function is altered to make - sure that the to_require_attach and to_require_detach - fields are set for the current_target. - - There are 4 new functions : find_default_require_attach, - find_default_require_detach, debug_to_require_attach, - debug_to_require_detach. - - removed some target_ops vector fields, HP folks changed - their minds about them : to_create_catch_fork_hook, - to_create_catch_vfork_hook - - * Makefile.in (ALLDEPFILES): add somread.c, hp-psymtab-read.c, + * Makefile.in (ALLDEPFILES): Add somread.c, hp-psymtab-read.c, hp-symtab-read.c. - (SFILES): remove the above files - (COMMON_OBS): remove somread.o - - * Makefile.in (SFILES): Add the tui files to this, so they get + (SFILES): Remove the above files + (COMMON_OBS): Remove somread.o + (SFILES): Add the tui files to this, so they get included in etags tables. - - * Makefile.in (all-tui): Renamed from tui-all, for consistency - with everything else. - - * Makefile.in (gdb$(EXEEXT)): Add tui-all to the list of - dependencies, and add tui/libtui.a to the link list. - (tui-all): New rule, which does a recursive make in the tui + (all-tui): New rule, which does a recursive make in the tui subdir. - - * Makefile.in (tui/libtui.a): When recursing, pass down + (gdb$(EXEEXT)): Add tui-all to the list of + dependencies, and add tui/libtui.a to the link list. + (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And don't echo the make command. This is closer to what the other recursions do. - - * Makefile.in: (HFILES_NO_SRCDIR) add hpread.h - (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o - (SFILES): add hp-psymtab-read.c, hp-symtab-read.c - add rules for the new files. - Remove hpread.c, hpread.o - - * Makefile.in: Allow the TUI code to be conditionally enabled. + (HFILES_NO_SRCDIR) add hpread.h. + (COMMON_OBS): Add hp-psymtab-read.o, hp-symtab-read.o + Allow the TUI code to be conditionally enabled. (TUI_TARGET, TUI_LIBRARY): New variables, whose values are set by the configuration script. They're set to the empty string when the TUI isn't enabled. @@ -124,7 +69,7 @@ Thu Dec 31 16:54:30 1998 David Taylor the library is up to date. (TUI_TARGET): Variable removed; there's no need for it any more. - * Makefile.in: look for tui include files in the tui source dir. + * Makefile.in: Look for tui include files in the tui source dir. * Use automake's `aclocal' program to generate aclocal.m4, to allow us to use automake macros in configure.in with impunity. @@ -137,62 +82,59 @@ Thu Dec 31 16:54:30 1998 David Taylor * aclocal.m4: Now automagically generated. Just run aclocal! - * annotate.c: HP merge, 4/15/98 snapshot - New function. annotate_catchpoint + * annotate.c (annotate_catchpoint): New function. - * annotate.h: HP merge, 4/15/98 snapshot - New function declaration. annotate_catchpoint - - * annotate.h: taking the new includes (symtab.h and gdbtypes.h). + * annotate.h: Taking the new includes (symtab.h and gdbtypes.h). not taking the ansic C build fix. + (annotate_catchpoint): Declare. - * blockframe.c (blockvector_for_pc_sect): check that the end of + * blockframe.c (blockvector_for_pc_sect): Check that the end of the block is >= to the pc, not just >. - (bpstat_do_actions): if we just set cmd to NULL, don't then try to - set it to cmd->next as we'll SEGV. - * breakpoint.c (create_temp_exception_breakpoint): #if it out -- + * breakpoint.c (create_temp_exception_breakpoint): #If it out -- nothing calls it. - (bpstat_stop_status): don't call SOLIB_HAVE_LOAD_EVENT if it's not + (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined. - (bpstat_get_triggered_catchpoints): if we don't have shared + (bpstat_get_triggered_catchpoints): If we don't have shared library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor SOLIB_UNLOADED_LIBRARY_PATHNAME. - (watch_command_1): don't require a run before a watch command + (watch_command_1): Don't require a run before a watch command unless we're on HP [it's an HP OS bug, not a generic limitation] - (catch_load_command_1): don't define if no shared libraries. - (catch_command_1): don't claim to support fork catchpoints unless + (catch_load_command_1): Don't define if no shared libraries. + (catch_command_1): Don't claim to support fork catchpoints unless CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined, don't clain to support shared library load catchpoints if shared libraries aren't supported, and don't claim to support exec catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined - - (bpstat_do_actions): simplify significantly. It's + + (bpstat_do_actions): If we just set cmd to NULL, don't then try to + set it to cmd->next as we'll SEGV. + (bpstat_do_actions): Simplify significantly. It's now almost as simple as before the merge and it no longer has the HP bug that breakpoint commands are executed repeatedly. - (break_at_finish_command_1): rewrite and make sure + (break_at_finish_command_1): Rewrite and make sure selected_frame points to a frame before using it. Fix string termination error. - (break_at_finish_at_depth_command_1): ditto. + (break_at_finish_at_depth_command_1): Ditto. - (can_use_hw_watchpoints): new static variable. - (read_memory_nobpt): test for breakpoint type bp_none. - (insert_breakpoints): test for breakpoint type bp_catch_exec; + (can_use_hw_watchpoints): New static variable. + (read_memory_nobpt): Test for breakpoint type bp_none. + (insert_breakpoints): Test for breakpoint type bp_catch_exec; insure have a current frame before getting the frame address. - (remove_breakpoints): check for breakpoints of types bp_none, + (remove_breakpoints): Check for breakpoints of types bp_none, bp_catch_fork, bp_catch_vfork, and bp_catch_exec. - (bpstat_stop_status): fix updates of b->hit_count. - (bpstat_have_active_hw_watchpoints): new function. - (create_exec_event_watchpoint): new function. - (watch_command_1): use can_use_hw_watchpoints. - (catch_fork_command_1): change name of function to call from + (bpstat_stop_status): Fix updates of b->hit_count. + (bpstat_have_active_hw_watchpoints): New function. + (create_exec_event_watchpoint): New function. + (watch_command_1): Use can_use_hw_watchpoints. + (catch_fork_command_1): Change name of function to call from target_create_catch_(v)fork_hook to create_(v)fork_even_catchpoint. - (delete_breakpoint): test for already deleted breakpoints; add + (delete_breakpoint): Test for already deleted breakpoints; add support for bp_catch_fork, bp_catch_vfork, and bp_catch_exec breakpoints. - (_initialize_breakpoint): add can-use-hw-watchpoints to list of + (_initialize_breakpoint): Add can-use-hw-watchpoints to list of user settable debugger variables. (clear_command): When there is no argument @@ -201,111 +143,111 @@ Thu Dec 31 16:54:30 1998 David Taylor does not correspond to the default line, but has been set at the default address. - (delete_breakpoint): don't call bpstat_clear_actions, instead + (delete_breakpoint): Don't call bpstat_clear_actions, instead clear things explicitly; if clearing breakpoint_at, then also clear any associated actions so that bpstat_do_actions won't try to execute them. - (_initialize_breakpoint): fix function name for bx command. + (_initialize_breakpoint): Fix function name for bx command. - (tbreak_command): remove static from declaration. - (maintenance_info_breakpoints): ditto. + (tbreak_command): Remove static from declaration. + (maintenance_info_breakpoints): Ditto. - (reattach_breakpoints): new funct definition, used with with + (reattach_breakpoints): New funct definition, used with with hardware watchpoints - (breakpoint_1): change format and add entries to bptypes[] - (maintenance_info_breakpoints): function is no longer static + (breakpoint_1): Change format and add entries to bptypes[] + (maintenance_info_breakpoints): Function is no longer static - (_initialize_breakpoint): removed a comment. + (_initialize_breakpoint): Removed a comment. (exception_catchpoints_are_fragile, - exception_support_initialized): define. - (breakpoint_here_p): fixed syntax error in conditional - (disable_watchpoints_before_interactive_call_start): fixed call to + exception_support_initialized): Define. + (breakpoint_here_p): Fixed syntax error in conditional + (disable_watchpoints_before_interactive_call_start): Fixed call to check_duplicates. Need a section parameter. - (enable_watchpoints_after_interactive_call_stop): fixed call to + (enable_watchpoints_after_interactive_call_stop): Fixed call to check_duplicates. Need a section parameter. - (breakpoint_re_set_one): fixed call to check_duplicates. Need a + (breakpoint_re_set_one): Fixed call to check_duplicates. Need a section parameter. - (delete_command): fixed syntax error in conditional - (breakpoint_re_set): fixed some typos. + (delete_command): Fixed syntax error in conditional + (breakpoint_re_set): Fixed some typos. (args_for_catchpoint_enable): New type for handling exceptions. (current_exception_event): New variable for handling exceptions. - (insert_breakpoints): check for additional breakpoint types -- + (insert_breakpoints): Check for additional breakpoint types -- bp_catch_throw, bp_catch_catch, call_disabled. Also, do some additional work to handle an exception catchpoint. - (remove_breakpoint): there are additional breakpoint types to - check for : bp_catch_throw, bp_catch_catch, call_disabled. Also do + (remove_breakpoint): There are additional breakpoint types to + check for: Bp_catch_throw, bp_catch_catch, call_disabled. Also do some additional work to remove the exception catchpoints - (breakpoint_init_inferior): new input parameter. If there are + (breakpoint_init_inferior): New input parameter. If there are exception catchpoints delete them. - (breakpoint_here_p): there are additional breakpoint enable - settings to check for : shlib_disabled, call_disabled - (breakpoint_thread_match): there are additional breakpoint enable - settings to check for : call_disabled - (ep_is_catchpoint): there are additional breakpoint types to check - for : bp_catch_throw, bp_catch_catch - (ep_is_exception_catchpoint): new function - (bpstat_find_step_resume_breakpoint): new function - (bpstat_do_actions): introduce a local copy of the bpstat + (breakpoint_here_p): There are additional breakpoint enable + settings to check for: Shlib_disabled, call_disabled + (breakpoint_thread_match): There are additional breakpoint enable + settings to check for: Call_disabled + (ep_is_catchpoint): There are additional breakpoint types to check + for: Bp_catch_throw, bp_catch_catch + (ep_is_exception_catchpoint): New function + (bpstat_find_step_resume_breakpoint): New function + (bpstat_do_actions): Introduce a local copy of the bpstat structure. - (print_it_normal): there are additional breakpoint types to check - for : bp_catch_throw, bp_catch_catch Changeing the control + (print_it_normal): There are additional breakpoint types to check + for: Bp_catch_throw, bp_catch_catch Changeing the control structure a bit (adding else ifs) Add code to print out info about exceptions. - (bpstat_stop_status): there are additional breakpoint enable - settings to check for : call_disabled. there are additional - breakpoint types to chack for : bp_catch_catch and bp_catch_throw. + (bpstat_stop_status): There are additional breakpoint enable + settings to check for: Call_disabled. there are additional + breakpoint types to chack for: Bp_catch_catch and bp_catch_throw. Check to see if stopped due to an exception. Minor fixes to the catch_errors calls. Make sure to count all encountered breakpoints. There was something funky going on previously with the counting. - (bpstat_what): Add cases for new breakpoint types : + (bpstat_what): Add cases for new breakpoint types: bp_catch_catch, bp_catch_throw. (bpstat_get_triggered_catchpoints): Check for new breakpoint types - : bp_catch_catch, bp _catch_throw. - (breakpoint_1): account for new breakpoint types. - (describe_other_breakpoints): account for new breakpoint enable + : Bp_catch_catch, bp _catch_throw. + (breakpoint_1): Account for new breakpoint types. + (describe_other_breakpoints): Account for new breakpoint enable setting (call_disabled) - (check_duplicates): account for new breakpoint enable setting + (check_duplicates): Account for new breakpoint enable setting (call_disabled) - (disable_breakpoints_in_shlibs): new function - (disable_watchpoints_before_interactive_call_start): new function - (mention): account for new breakpoint types. - (break_command_1): some additional checking for a valid PC. - (watch_command_1): some dditional checking to prevent a watch + (disable_breakpoints_in_shlibs): New function + (disable_watchpoints_before_interactive_call_start): New function + (mention): Account for new breakpoint types. + (break_command_1): Some additional checking for a valid PC. + (watch_command_1): Some dditional checking to prevent a watch before a run command. - (ep_parse_optional_filename): simplified for loop. - (create_exception_catchpoint): new function - (cover_target_enable_exception_callback): new function - (handle_gnu_4_16_catch_command): this used to be thcatch_command_1 + (ep_parse_optional_filename): Simplified for loop. + (create_exception_catchpoint): New function + (cover_target_enable_exception_callback): New function + (handle_gnu_4_16_catch_command): This used to be thcatch_command_1 function.e - (create_temp_exception_breakpoint): new function - (catch_command_1): differs from gdb 4.16 and gdb 4.17. Is now + (create_temp_exception_breakpoint): New function + (catch_command_1): Differs from gdb 4.16 and gdb 4.17. Is now calling catch_exception_command_1 using the EX_EVENT_CATCH and EX_EVENT_THROW values as parameters. - (clear_command): additional comments - (delete_breakpoint): handle exceptions. Check for additional - breakpoint enable settings : shlib_disabled, call_disabled. - (delete_command): HP folks are claiming that we should not delete + (clear_command): Additional comments + (delete_breakpoint): Handle exceptions. Check for additional + breakpoint enable settings: Shlib_disabled, call_disabled. + (delete_command): Hp folks are claiming that we should not delete shlib_event breakpoints - (breakpoint_re_set_one): moved call to check_duplicates. Add new + (breakpoint_re_set_one): Moved call to check_duplicates. Add new breakpoint types to switch statement. - (breakpoint_re_set_thread): new function - (enable_command): account for new breakpoint types. - - (insertion_state_t): new enumerated type. - (remove_breakpoint): new param in funct prototype. - (insert_breakpoints): check for bp_catch_fork and bp_catch_vfork. - (remove_breakpoints): changed call to remove_breakpoint. - (detach_breakpoints): new function. + (breakpoint_re_set_thread): New function + (enable_command): Account for new breakpoint types. + + (insertion_state_t): New enumerated type. + (remove_breakpoint): New param in funct prototype. + (insert_breakpoints): Check for bp_catch_fork and bp_catch_vfork. + (remove_breakpoints): Changed call to remove_breakpoint. + (detach_breakpoints): New function. (remove_breakpoint): New parameter, is. Also changed the way b->inserted is set. (ep_is_catchpoint): New function. (ep_is_shlib_catchpoint): New function. - (print_it_normal): check for bp_catch_load, bp_catch_unload, + (print_it_normal): Check for bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, bp_catch_exec. Also new code to print out catchpoints properly. - (bpstat_stop_status): check for bp_catch_fork, bp_catch_vfork, + (bpstat_stop_status): Check for bp_catch_fork, bp_catch_vfork, and bp_catch_exec. Also, some code to check for catching a shared library load/unload. (bpstat_what): Added catch_shlib_event to class enumeration. @@ -313,10 +255,10 @@ Thu Dec 31 16:54:30 1998 David Taylor table. Add cases for bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, and bp_catch_exec. (bpstat_get_triggered_catchpoints): New function. - (breakpoint_1): changes to bptypes definition. Also check for + (breakpoint_1): Changes to bptypes definition. Also check for bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, bp_catch_exec. Similar changes to the switch statement. - (set_raw_breakpoint): initialize new breakpoint structure fields. + (set_raw_breakpoint): Initialize new breakpoint structure fields. dll_pathname, triggered_dll_pathname, forked_inferior_pid, exec_pathname. (create_solib_load_unload_event_breakpoint): New function. @@ -325,7 +267,7 @@ Thu Dec 31 16:54:30 1998 David Taylor (create_fork_vfork_event_catchpoint): New function. (create_fork_event_catchpoint): New function. (create_vfork_event_catchpoint): New function. - (mention): new cases for bp_catch_load, bp_catch_unload, + (mention): New cases for bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, bp_catch_exec. (ep_skip_leading_whitespace): New function. (ep_find_event_name_end): New function. @@ -333,40 +275,40 @@ Thu Dec 31 16:54:30 1998 David Taylor (ep_parse_optional_filename): New function. (catch_fork_kind): New enumerated type. (catch_fork_command_1): New function. - (catch_exec_command_1) : New function. - (catch_load_command_1) : New function. - (catch_unload_command_1) : New function. - (catch_throw_command_1) : New function. - (catch_command_1) : now calls catch_throw_command_1. - (tcatch_command) : New function. - (delete_breakpoint) : changed call to remove_breakpoint. + (catch_exec_command_1): New function. + (catch_load_command_1): New function. + (catch_unload_command_1): New function. + (catch_throw_command_1): New function. + (catch_command_1): Now calls catch_throw_command_1. + (tcatch_command): New function. + (delete_breakpoint): Changed call to remove_breakpoint. Also free the new fields in the breakpoint structure. - (breakpoint_re_set_one) : handle bp_catch_load, bp_catch_unload, + (breakpoint_re_set_one): Handle bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, bp_catch_exec. - (disable_command): handle bp_catch_load, bp_catch_unload, + (disable_command): Handle bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, bp_catch_exec. - (enable_command): handle bp_catch_load, bp_catch_unload, + (enable_command): Handle bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork, bp_catch_exec. (_initialize_breakpoint): Alter add_com call for catchpoints, add add_com call for watchpoints. - * breakpoint.h (enum bptype): new entries bp_catch_catch, + * breakpoint.h (enum bptype): New entries bp_catch_catch, bp_catch_throw, and bp_none, bp_catch_load, bp_catch_unload, bp_catch_fork, bp_catch_vfork,bp_catch_exec. Add declarations for new functions bpstat_have_active_hw_watchpoints and create_exec_event_catchpoint. - (tbreak_command): add prototype. - (update_breakpoints_after_exec): add prototype; update comments. - (reattach_breakpoints): new funct prototype declaration. - (enable): new enumerated value call_disabled. - (bpstat_find_step_resume_breakpoint): new funct decl. - (inf_context): new enumerated type. - (breakpoint_re_set_thread): new funct decl. - (breakpoint_init_inferior): new parameter. - (disable_watchpoints_before_interactive_call_start): new funct decl. - (enable_watchpoints_after_interactive_call_stop): new funct decl. - (disable_breakpoints_in_shlibs): new funct decl. - (struct breakpoint) : new fields, dll_pathname,triggered_dll_pathname, + (tbreak_command): Add prototype. + (update_breakpoints_after_exec): Add prototype; update comments. + (reattach_breakpoints): New funct prototype declaration. + (enable): New enumerated value call_disabled. + (bpstat_find_step_resume_breakpoint): New funct decl. + (inf_context): New enumerated type. + (breakpoint_re_set_thread): New funct decl. + (breakpoint_init_inferior): New parameter. + (disable_watchpoints_before_interactive_call_start): New funct decl. + (enable_watchpoints_after_interactive_call_stop): New funct decl. + (disable_breakpoints_in_shlibs): New funct decl. + (struct breakpoint): New fields, dll_pathname,triggered_dll_pathname, forked_inferior_pid,exec_pathname BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK. (bpstat_get_triggered_catchpoints): New function. (detach_breakpoints): New function. @@ -376,38 +318,32 @@ Thu Dec 31 16:54:30 1998 David Taylor (create_vfork_event_catchpoint): New function. (ep_is_catchpoint): New function. (ep_is_shlib_catchpoint) New function. - (enum bpstat_what_main_action) : new entry. + (enum bpstat_what_main_action): New entry. - * buildsym.c (finish_block): get rid of processing_hp_compilation; + * buildsym.c (finish_block): Get rid of processing_hp_compilation; handle LOC_INDIRECT case. Set the BLOCK_GCC_COMPILED to the right compiler. - (push_context): add symbols for parameters to the context_stack. - (merge_symbol_lists): new function. Merges two symbol lists. - (struct context_stack): add new field param. + (push_context): Add symbols for parameters to the context_stack. + (merge_symbol_lists): New function. Merges two symbol lists. + (struct context_stack): Add new field param. - (processing_hp_compilation): new external var. + (processing_hp_compilation): New external var. - * c-exp.y: use external flag hp_som_som_object_present to decide + * c-exp.y: Use external flag hp_som_som_object_present to decide whether code was compiled by HP's compilers. Add two new C++ tokens for true and false. - (yylex): check for template name is done differently for the + (yylex): Check for template name is done differently for the HP/aCC compiler case; change some of the template processing code for handling HP aCC templates. - * c-lang.c (c_create_fundamental_type): added case to handle + * c-lang.c (c_create_fundamental_type): Added case to handle template args. Handle FT_BOOLEAN type. Set no sign flag for FT_CHAR. - (cplus_builtin_types): new structure for c++ builtin types. - (cplus_language_defn): use cplus_builtin_types instead of + (cplus_builtin_types): New structure for c++ builtin types. + (cplus_language_defn): Use cplus_builtin_types instead of c_builtin_types. - * c-lang.h(cp_print_value_fields): update prototype; fixed - prototype decl for c_val_print funct -- it needed an - embedded_offset param; fixed prototype of cp_print_value_fields. - include value.h. - (C_LANG_H): define. - - * c-typeprint.c (c_type_print_base): don't print 'privete' label + * c-typeprint.c (c_type_print_base): Don't print 'privete' label for a class if all members are private, similarly don't print 'public' for a struct. Add support for sized enums (HP/aCC). get rid of the 'static' keyword printed by the demangler for member @@ -417,113 +353,107 @@ Thu Dec 31 16:54:30 1998 David Taylor information stored in the symbol structure. Remove printing of 'const' and 'volatile' keywords for methods. This is now taken care as part of the demangled member names. - (cp_type_print_method_args): new function. To print a C++ method + (cp_type_print_method_args): New function. To print a C++ method arguments and name to the output stream. - (c_type_print_cv_qualifier): new function. Print out "const" and + (c_type_print_cv_qualifier): New function. Print out "const" and "volatile" attributes. - (c_type_print_varspec_prefix): print const or volatile qualifiers. - (c_type_print_args): print 'void' for c++. - (c_type_print_varspec_suffix): print 'void' for a no argument + (c_type_print_varspec_prefix): Print const or volatile qualifiers. + (c_type_print_args): Print 'void' for c++. + (c_type_print_varspec_suffix): Print 'void' for a no argument function. - (c_type_print_base): print const or volatile qualifiers. Do not + (c_type_print_base): Print const or volatile qualifiers. Do not print 'unnamed union' if HP aCC compiler used. Distinguish between struct and class based on the DECLARED_TYPE. Handle HP/aCC compiler case for not printing vtable. Add Template support. - (cp_type_print_derivation_info): print out 'protected' when + (cp_type_print_derivation_info): Print out 'protected' when appropriate. This applies only to HP's compilers, not gcc. - (c_val_print): added parameter embedded_offset. Add + (c_val_print): Added parameter embedded_offset. Add embedded_offset to valaddr in function calls; fix calls to val_print and cp_print_value_fields. process TYPE_CODE_METHOD as well. moved call to check_typedef out of conditional. added embedded offset param to val_print call. - (c_value_print): add new parameter to call to val_print. + (c_value_print): Add new parameter to call to val_print. handle pointer to class case. Attempt to determine the real type of the object to be printed. ensure that const char *, const unsigned char * - come out without the type but the volatile variants - and the signed variants don't. - - * ch-lang.h: - Added a parameter to the chill_val_print funct decl + come out without the type but the volatile variants + and the signed variants don't. - * coff-solib.c (coff_solib_add): add parameters to call - to symbol_file_add. - - * coff-solib.h: - (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0. - functionality not implemented for coff. + * coff-solib.c (coff_solib_add): Add parameters to call + to symbol_file_add. - * coff-solib.h: - (SOLIB_CREATE_CATCH_LOAD_HOOK): new macro, generate error message + * coff-solib.h: (Solib_REMOVE_INFERIOR_HOOK): New macro. defined + to 0. functionality not implemented for coff. + (SOLIB_CREATE_CATCH_LOAD_HOOK): New macro, generate error message for coff. - (SOLIB_CREATE_CATCH_UNLOAD_HOOK): ditto. - (SOLIB_HAVE_LOAD_EVENT): ditto. - (SOLIB_LOADED_LIBRARY_PATHNAME): ditto. - (SOLIB_HAVE_UNLOAD_EVENT): ditto. - (SOLIB_UNLOADED_LIBRARY_PATHNAME): ditto. - (SOLIB_IN_DYNAMIC_LINKER): ditto. - (SOLIB_RESTART): ditto. - - * command.c (find_cmd): new function. (lookup_cmd_1): call it, + (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Ditto. + (SOLIB_HAVE_LOAD_EVENT): Ditto. + (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto. + (SOLIB_HAVE_UNLOAD_EVENT): Ditto. + (SOLIB_UNLOADED_LIBRARY_PATHNAME): Ditto. + (SOLIB_IN_DYNAMIC_LINKER): Ditto. + (SOLIB_RESTART): Ditto. + + * command.c (find_cmd): New function. (lookup_cmd_1): Call it, change parsing if tui_version or xdb_commands is set. - (_initialize_command): install new alias if xdb_commands is set. + (_initialize_command): Install new alias if xdb_commands is set. - * complaints.h: add ifdef...endif pair at beginning and end of file. + * complaints.h: Add ifdef...endif pair at beginning and end of file. * config.in, configure: Regenerated. - * config/pa/hppabsd.mh (NATDEPFILES): added new files + * config/pa/hppabsd.mh (NATDEPFILES): Added new files hp-psymtab-read.o and hp-symtab-read.o. - * config/pa/hppahpux.mh (NATDEPFILES): ditto. + * config/pa/hppahpux.mh (NATDEPFILES): Ditto. - * config/pa/hppahpux.mh (TERMCAP): use -lHcurses - * config/pa/hppaosf.mh (NATDEPFILES): ditto. + * config/pa/hppahpux.mh (TERMCAP): Use -lHcurses. + * config/pa/hppaosf.mh (NATDEPFILES): Ditto. - * config/pa/hpux1020.mh (TERMCAP): use -lHcurses - (MH_CFLAGS): new flag, -D__HP_CURSES, this define - is used by HP's linker to find the correct curses library + * config/pa/hpux1020.mh (TERMCAP): Use -lHcurses. + (MH_CFLAGS): New flag, -D__HP_CURSES, this define + is used by HP's linker to find the correct curses library. - * config/pa/hpux1020.mh: new file. + * config/pa/hpux1020.mh: New file. - * config/pa/hpux1020.mt: new file. + * config/pa/hpux1020.mt: New file. * config/pa/hpux1100.mh (TERMCAP): Link against -lcurses, not -lHcurses. The latter does not contain mvwaddstr, wscrl, or wstbwlmkfzz. - * config/pa/hpux1100.mh (TERMCAP): use -lHcurses - (MH_CFLAGS): new flag, -D__HP_CURSES, this define - is used by HP's linker to find the correct curses library + * config/pa/hpux1100.mh (TERMCAP): Use -lHcurses. + (MH_CFLAGS): New flag, -D__HP_CURSES, this define + is used by HP's linker to find the correct curses library. - * config/pa/hpux1100.mh (TERMCAP): when hosting on hpux 11.00, use + * config/pa/hpux1100.mh (TERMCAP): When hosting on hpux 11.00, use -lHcurses rather than -lcurses. - * config/pa/hpux1100.mh: new file. + * config/pa/hpux1100.mh: New file. - * config/pa/hpux1100.mt: new file. + * config/pa/hpux1100.mt: New file. - * config/pa/nm-hppah.h (CHILD_HAS_SYSCALL_EVENT): new macro - (CHILD_THREAD_ALIVE): new macro - (STOPPED_BY_WATCHPOINT): add a condition to the macro, + * config/pa/nm-hppah.h (CHILD_HAS_SYSCALL_EVENT): New macro + (CHILD_THREAD_ALIVE): New macro + (STOPPED_BY_WATCHPOINT): Add a condition to the macro, ! stepped_after_stopped_by_watchpoint - (TARGET_ENABLE_HW_WATCHPOINTS): new macro - (hppa_enable_hw_watchpoints): new funct decl - (TARGET_DISABLE_HW_WATCHPOINTS): new macro - ( hppa_disable_hw_watchpoints): new funct decl + (TARGET_ENABLE_HW_WATCHPOINTS): New macro + (hppa_enable_hw_watchpoints): New funct decl + (TARGET_DISABLE_HW_WATCHPOINTS): New macro + ( hppa_disable_hw_watchpoints): New funct decl these are for HP's implementation of fast watchpoints (via page protection). - (target_pid_to_str): new macro, calls hppa_pid_to_str - (target_tid_to_str): new macro, calls hppa_tid_to_str + (target_pid_to_str): New macro, calls hppa_pid_to_str + (target_tid_to_str): New macro, calls hppa_tid_to_str - * config/pa/nm-hppah.h (CHILD_POST_WAIT): delete; - (CHILD_CREATE_CATCH_FORK_HOOK): replace with + * config/pa/nm-hppah.h (CHILD_POST_WAIT): Delete; + (CHILD_CREATE_CATCH_FORK_HOOK): Replace with CHILD_INSERT_FORK_CATCHPOINT and CHILD_REMOVE_FORK_CATCHPOINT. - (CHILD_CREATE_CATCH_VFORK_HOOK): replace with + (CHILD_CREATE_CATCH_VFORK_HOOK): Replace with CHILD_INSERT_VFORK_CATCHPOINT and CHILD_REMOVE_VFORK_CATCHPOINT. (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC, CHILD_INSERT_EXEC_CATCHPOINT, CHILD_REMOVE_EXEC_CATCHPOINT, @@ -533,98 +463,94 @@ Thu Dec 31 16:54:30 1998 David Taylor TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT, TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT, STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT, target_insert_watchpoint, - target_remote_watchpoint): new macros.. + target_remote_watchpoint): New macros. - * config/pa/nm-hppah.h (CHILD_XFER_MEMORY): reinsert accidentally + * config/pa/nm-hppah.h (CHILD_XFER_MEMORY): Reinsert accidentally deleted define. * config/pa/nm-hppah.h: - (PREPARE_TO_PROCEED): defined macro to use - hppa_prepare_to_proceed - (hppa_pid_to_str): extern decl - (hppa_tid_to_str): extern decl - (target_pid_or_tid_to_str): new macro definition - (hppa_pid_or_tid_to_str): extern decl - (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): new macro - for + (PREPARE_TO_PROCEED): Defined macro to use + hppa_prepare_to_proceed. + (hppa_pid_to_str): Extern decl. + (hppa_tid_to_str): Extern decl. + (target_pid_or_tid_to_str): New macro definition. + (hppa_pid_or_tid_to_str): Extern decl. + (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): New macro - for handling events caused by a call to vfork. - (hppa_ensure_vforking_parent_remains_stopped): extern decl - (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): new macro - + (hppa_ensure_vforking_parent_remains_stopped): Extern decl. + (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): New macro - for handling events caused by a call to vfork. - (hppa_resume_execd_vforking_child_to_get_parent_vfork): extern decl + (hppa_resume_execd_vforking_child_to_get_parent_vfork): Extern decl. - * config/pa/nm-hppah.h: fix PREPARE_TO_PROCEED macro. + * config/pa/nm-hppah.h: Fix PREPARE_TO_PROCEED macro. - * config/pa/nm-hppah.h: fix for gcc compile on HPUX - change PT_RDUAREA to PT_RUAREA + * config/pa/nm-hppah.h: Fix for gcc compile on HPUX, change + PT_RDUAREA to PT_RUAREA. - * config/pa/nm-hppah.h: introduced an HPUXHPPA define. - A bit of a hack so that I can ifdef some code that - only works for the HP wildebeest debugger. + * config/pa/nm-hppah.h: Introduced an HPUXHPPA define. + A bit of a hack so that I can ifdef some code that + only works for the HP wildebeest debugger. - * config/pa/nm-hppah.h: lots of new CHILD_ defines; + * config/pa/nm-hppah.h: Lots of new CHILD_ defines; process_event_kind enum. - * config/pa/tm-hppa.h (BREAKPOINT32): new define. - (CALL_DUMMY_HAS_COMPLETED): new define. + * config/pa/tm-hppa.h (BREAKPOINT32): New define. + (CALL_DUMMY_HAS_COMPLETED): New define. - * config/pa/tm-hppa.h (STACK_ALIGN): new macro - (NO_EXTRA_ALIGNMENT_NEEDED): new macro - (PC_REQUIRES_RUN_BEFORE_USE): new macro. - (REGISTER_NAMES): formatting in file changed. - (CR27_REGNUM): base register for thread local storage. - (USE_STRUCT_CONVENTION): new macro used to decide whether + * config/pa/tm-hppa.h (STACK_ALIGN): New macro. + (NO_EXTRA_ALIGNMENT_NEEDED): New macro. + (PC_REQUIRES_RUN_BEFORE_USE): New macro. + (REGISTER_NAMES): Formatting in file changed. + (CR27_REGNUM): Base register for thread local storage. + (USE_STRUCT_CONVENTION): New macro used to decide whether a function returning a value of type type will put it on the stack or into registers (based on the PA risc calling conventions). - (EXTRACT_RETURN_VALUE): fixed calculation for extracting return value - (VALUE_RETURNED_FROM_STACK): new macro. - (TARGET_READ_PC): declared the function used in the definition. - (SKIP_TRAMPOLINE_CODE): declared the function used in the definition. - (TARGET_WRITE_PC): declared the function used in the definition. - (TARGET_READ_FP): declared the function used in the definition. - - * config/pa/tm-hppa.h (STRCAT_REGISTER): define macro for + (EXTRACT_RETURN_VALUE): Fixed calculation for extracting return value. + (VALUE_RETURNED_FROM_STACK): New macro. + (TARGET_READ_PC): Declared the function used in the definition. + (SKIP_TRAMPOLINE_CODE): Declared the function used in the definition. + (TARGET_WRITE_PC): Declared the function used in the definition. + (TARGET_READ_FP): Declared the function used in the definition. + + * config/pa/tm-hppa.h (STRCAT_REGISTER): Define macro for future use. - (pa_do_strcat_registers_info): moved function decl from + (pa_do_strcat_registers_info): Moved function decl from defs.h to this HPUX specific .h file. - * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): TYPE_LENGTH returns + * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Type_LENGTH returns bytes, not bits; fix off by 8 error. * config/pa/tm-hppa.h: - new comment for obj_unwind_info definition + New comment for obj_unwind_info definition New typedef, obj_private_struct - * config/pa/tm-hppa.h: delete most target_ macros -- use default + * config/pa/tm-hppa.h: Delete most target_ macros -- use default versions instead; remove extraneous comma from proc_wait macro. - * config/pa/tm-hppa.h: get rid of macro HP_COMPILED_TARGET. + * config/pa/tm-hppa.h: Get rid of macro HP_COMPILED_TARGET. - * config/pa/tm-hppa.h: removed redefinitions of + * config/pa/tm-hppa.h: Removed redefinitions of USE_STRUCT_CONVENTION and STACK_ALIGN macros. - * config/pa/tm-hppa.h: some new definitions - New macros : ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM. + * config/pa/tm-hppa.h: Some new definitions + New macros: Arg0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM. target_pid_to_exec_file, target_acknowledge_forked_child, target_create_catch_fork_hook, target_create_catch_vfork_hook, target_has_forked, target_has_vforked, require_attach, - require_detach, proc_wait - New funct decls : hppa_pid_to_exec_file, + require_detach, proc_wait + New funct decls: Hppa_pid_to_exec_file, hppa_acknowledge_forked_child, hppa_create_catch_fork_hook, hppa_create_catch_vfork_hook, hppa_target_has_forked, hppa_target_has_vforked, hppa_require_attach, hppa_require_detach, process_wait - (unwind_table_entry): added comments to describe struct fields. + (unwind_table_entry): Added comments to describe struct fields. - * config/pa/tm-hppah.h (somsolib.h): include it. + * config/pa/tm-hppah.h (somsolib.h): Include it. * config/pa/tm-hppah.h: - (CHILD_ENABLE_EXCEPTION_CALLBACK): new define - (CHILD_GET_CURRENT_EXCEPTION_EVENT): new define - - * config/pa/tm-hppah.h: Added a #define HPPUX_SNAP2 - - * configure, config.in: Regenerated. + (CHILD_ENABLE_EXCEPTION_CALLBACK): New define + (CHILD_GET_CURRENT_EXCEPTION_EVENT): New define * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs. @@ -637,207 +563,172 @@ Thu Dec 31 16:54:30 1998 David Taylor * configure.in: Use AM_PROG_CC_STDC. If we have the GUI, then we need this to process libgui.h. - * configure: Regenerated. - - * convex-tdep.c (decout): change FILE to GDB_FILE. + * convex-tdep.c (decout): Change FILE to GDB_FILE. - * corefile.c (): add new include "objfiles.h". - (core_file_command): attempt to determine the name of the symbol - file from the core file. (read_memory_string): new function. + * corefile.c: Include objfiles.h, symfile.h. + (core_file_command): Attempt to determine the name of the symbol + file from the core file. + (read_memory_string): New function. - * corefile.c: - (core_file_command): temporary hack to make non-hpux - work. For, non-hpux, t->to_core_file_to_sym_file - does not have a reasonable value. No target_ops vector - on the stack gives it a non-zero value. fix later. - - * corefile.c: add include of symfile.h (needed by objfiles.h). - - * corelow.c: - (core_file_to_sym_file): added new local variable, failing command, - and do some explicit type castings. - (core_ops): add three new fields : to_has_syscall_event, + * corefile.c (core_file_command): Temporary hack to make non-hpux + work. For, non-hpux, t->to_core_file_to_sym_file does not have a + reasonable value. No target_ops vector on the stack gives it a + non-zero value. fix later. + + * corelow.c (core_file_to_sym_file): Added new local variable, + failing command, and do some explicit type castings. + (core_ops): Add three new fields: to_has_syscall_event, to_enable_exception_callback, to_get_current_exception_event. Necessary since we still have oldstyle initialization in this file - * corelow.c: HP merge, 4/15/98 snapshot - There are new target_ops vector fields that pertain - only to HPUX. Added the to_require_attach and - to_require_detach fields to core_ops. These new - fields are ifdef'ed for HPUX_SNAP1. - - * corelow.c: More target_ops vector changes for HPUX - (core_ops): new fields. ifdefed for HPUX_SNAP2. New fields are - to_post_wait, to_post_startup_inferior - to_acknowledge_created_inferior, to_clone_and_follow_inferior, - to_post_follow_inferior_by_clone, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file - - * corelow.c: include unistd.h - (core_file_to_sym_file): new function - (core_file_thread_alive): new function - (core_ops) : added new target ops vector fields. see below. And + * corelow.c: Include unistd.h + (core_file_to_sym_file): New function + (core_file_thread_alive): New function + (core_ops): Added new target ops vector fields. see below. And yes we definitiely need to initialize them here, as long as we're using static initialization. - * corelow.c: remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs - - * cxux-nat.c: - (add_shared_symbol_files): additonal params for calls to - symbol_file_add + * cxux-nat.c (add_shared_symbol_files): Additonal params for calls + to symbol_file_add. - * defs.h - (gdb_file_isatty): new function decl. + * defs.h (gdb_file_isatty): New function decl. - * defs.h (GDB_FILE): if TUI is defined, define a structure rather + * defs.h (GDB_FILE): If TUI is defined, define a structure rather than making this an alias for FILE. - (gdb_stdout, gdb_stderr): if TUI is defined, then define these + (gdb_stdout, gdb_stderr): If TUI is defined, then define these as pointers to variables of type GDB_FILE rather than making them be aliases for stdout and stderr. - * defs.h (TUIDO): add definition conditionalized on definition + * defs.h (TUIDO): Add definition conditionalized on definition (or lack thereof) of TUI. - * defs.h (command_class): add two additional values. - (precision_type): new enum. + * defs.h (command_class): Add two additional values. + (precision_type): New enum. - * defs.h (gdb_fclose): add declaration. + * defs.h (gdb_fclose): Add declaration. - * defs.h (store_address): change prototype to match function. + * defs.h (store_address): Change prototype to match function. - * defs.h (tui_version, xdb_commands, dbx_commands): add decl's. + * defs.h (tui_version, xdb_commands, dbx_commands): Add decl's. - * defs.h: - (gdb_file_deallocate): new function declaration - - * defs.h: - (pa_do_strcat_registers_info): new function declaration. - tuiRegs.c currently calls this function directly. This - is not great. Should instead use a macro that is defined - in tm-hppa.h to be mapped to pa_do_strcat_registers_info. - Will change soon. Checking this in so that HP will have - something functional. + * defs.h (gdb_file_deallocate): New function declaration * defs.h: - (streamtype): new enumerated type to distinguish between + (streamtype): New enumerated type to distinguish between output to a FILE and output to a buffer. - (tui_stream): new struct type, named GDB_FILE. Contains, - streamtype, FILE, buffer, and bufferlength fields. - (gdb_stdout): of type GDB_FILE, will pass this around gdb + (tui_stream): New struct type, named GDB_FILE. Contains, + streamtype, FILE, buffer, and bufferlength fields. + (gdb_stdout): Of type GDB_FILE, will pass this around gdb rather than stdout. - (gdb_stderr): of type GDB_FILE, will pass this around gdb + (gdb_stderr): Of type GDB_FILE, will pass this around gdb rather than stderr. - (fputs_unfiltered_hook): change stream parameter from FILE to + (fputs_unfiltered_hook): Change stream parameter from FILE to GDB_FILE - (flush_hook): change stream parameter from FILE to GDB_FILE - (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of + (flush_hook): Change stream parameter from FILE to GDB_FILE + (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of type GDB_FILE ** - (gdb_file_adjust_strbuf): new function declaration. function lives in + (gdb_file_adjust_strbuf): New function declaration. function lives in utils.c. - (gdb_file_init_astring): new function declaration. function lives + (gdb_file_init_astring): New function declaration. function lives in utils.c - (gdb_file_get_strbuf): new function declaration. function lives + (gdb_file_get_strbuf): New function declaration. function lives in utils.c + + * defs.h: Additional include files included when TUI is defined. - * defs.h: Remove pa_do_strcat_registers_info function - declaration. - - * defs.h: additional include files included when TUI is defined. - - * defs.h: funct decl source_full_path_of. + * defs.h: Funct decl source_full_path_of. - * demangle.c: add HP_DEMANGLING_STYLE_STRING. + * demangle.c: Add HP_DEMANGLING_STYLE_STRING. - * demangle.c: added new demangling style, EDG_DEMANGLING_STYLE_STRING, - to the demanglers structure. This is for support of + * demangle.c: Added new demangling style, EDG_DEMANGLING_STYLE_STRING, + to the demanglers structure. This is for support of Kuck & Assoc.'s changes for demangling. * eval.c (evaluate_subexp_standard): C++ member function changes. - * eval.c (evaluate_subexp_standard): verify TYPE_TARGET_TYPE is + * eval.c (evaluate_subexp_standard): Verify TYPE_TARGET_TYPE is non NULL before dereferencing it. - * eval.c (evaluate_subexp_standard): with HP/aCC compiler it is not possible + * eval.c (evaluate_subexp_standard): With HP/aCC compiler it is not possible to perform inferior calls via function pointers. Resolve calls to overloaded functions using find_overload_match. We cannot handle HP/aCC pointers to member functions. Deal with HP/aCC pointers to members in various kind of expressions. - * f-lang.c (f_printchar): change FILE to GDB_FILE. - (f_printstr): ditto. - (emit_char): ditto. + * f-lang.c (f_printchar): Change FILE to GDB_FILE. + (f_printstr): Ditto. + (emit_char): Ditto. - * f-lang.c (f_printstr): change stdout to gdb_stdout. + * f-lang.c (f_printstr): Change stdout to gdb_stdout. - * f-typeprint.c (f_print_type): change FILE to GDB_FILE. - (f_type_print_varspec_prefix): ditto. - (f_type_print_args): ditto. - (f_type_print_varspec_suffix): ditto. - (print_equivalent_f77_float_type): ditto. - (f_type_print_base): ditto. - - * findvar.c (): HP snapshot 3 changes. (extract_address): coerce + * f-typeprint.c (f_print_type): Change FILE to GDB_FILE. + (f_type_print_varspec_prefix): Ditto. + (f_type_print_args): Ditto. + (f_type_print_varspec_suffix): Ditto. + (print_equivalent_f77_float_type): Ditto. + (f_type_print_base): Ditto. + + * findvar.c (): Hp snapshot 3 changes. (extract_address): Coerce return value from extract_unsigned_integer to CORE_ADDR. - (store_address): change val from CORE_ADDR to LONGEST; changes to + (store_address): Change val from CORE_ADDR to LONGEST; changes to support machines where CORE_ADDR and LONGEST are different sizes. - (get_saved_register): coerce arg to store_address to LONGEST. - (read_relative_register_raw_bytes): cast last arg to - store_address to LONGEST. (read_register): cast return from - extract_address to a CORE_ADDR. (write_register_pid): change val - from LONGEST to CORE_ADDR. (read_pc_pid): save and restore - inferior_pid if necessary. (write_pc_pid): ditto. - (read_var_value): cast arg to store_address. - - * findvar.c (read_relative_register_raw_bytes_for_frame): new + (get_saved_register): Coerce arg to store_address to LONGEST. + (read_relative_register_raw_bytes): Cast last arg to + store_address to LONGEST. (read_register): Cast return from + extract_address to a CORE_ADDR. (write_register_pid): Change val + from LONGEST to CORE_ADDR. (read_pc_pid): Save and restore + inferior_pid if necessary. (write_pc_pid): Ditto. + (read_var_value): Cast arg to store_address. + + * findvar.c (read_relative_register_raw_bytes_for_frame): New function. - (read_relative_register_raw_bytes): call it. + (read_relative_register_raw_bytes): Call it. - * findvar.c (symbol_read_needs_frame): handle LOC_THREAD_LOCAL_STATIC and + * findvar.c (symbol_read_needs_frame): Handle LOC_THREAD_LOCAL_STATIC and LOC_INDIRECT. - * fork-child.c (fork_inferior): chenge fifth parameter to be a + * fork-child.c (fork_inferior): Chenge fifth parameter to be a function returning void. - * fork-child.c (fork_inferior): delete unused variable f. + * fork-child.c (fork_inferior): Delete unused variable f. * fork-child.c: - (STARTUP_WITH_SHELL): new macro -- interim fix for a bug - (breakup_args): new function -- breaks up an argument string into + (Startup_WITH_SHELL): New macro -- interim fix for a bug + (breakup_args): New function -- breaks up an argument string into an argument suitable for passing into execvp(). - (fork_inferior): handling problems with starting up gdb with a shell. + (fork_inferior): Handling problems with starting up gdb with a shell. -- again, this appears to be an interim fix. * fork-child.c: (fork_inferior): Added a comment - (clone_and_follow_inferior): new function. - (startup_inferior): minor formatting changes. + (clone_and_follow_inferior): New function. + (startup_inferior): Minor formatting changes. * fork-child.c: - (fork_inferior): HP change is problematic. The -f option has + (fork_inferior): Hp change is problematic. The -f option has different meanings for different shells. It is particularly inappropriate for bourne shells. * fork-child.c: - (fork_inferior): added new parameter, pre_trace_fun. + (fork_inferior): Added new parameter, pre_trace_fun. pre_trace_fun is a function pointer. For some targets, like HPUX, this function gets called to prepare for forking a child. * fork-child.c: - (fork_inferior): fixed call to init_trace_fun + (fork_inferior): Fixed call to init_trace_fun * fork-child.c: - Moved definition of STARTUP_WITH_SHELL to inferior.h + Moved definition of STARTUP_WITH_SHELL to inferior.h Added a DEBUGGING macro. Currently set to 0. May remove later. - breakup_args: add DEBUGGING ifdefs. more sophisticated + breakup_args: Add DEBUGGING ifdefs. more sophisticated parsing to break up args. - (fork_inferior): rename kshell variable to shell. new local + (fork_inferior): Rename kshell variable to shell. new local variable, tryname. Make use of STARTUP_WITH_SHELL macro. More error processing if starting up with a shell. - (startup_inferior): distinguish between starting up with a shell + (startup_inferior): Distinguish between starting up with a shell and not doing so. * gdbthread.h: @@ -846,94 +737,81 @@ Thu Dec 31 16:54:30 1998 David Taylor * gdbthread.h: Note that sometime between gdb 4.16 and 4.17, thread.h was renamed gdbthread.h - (load_infrun_state): additional parameters - (store_infrun_state): additional parameters + (load_infrun_state): Additional parameters + (store_infrun_state): Additional parameters - * gdbthread.h: include breakpoint.h + * gdbthread.h: Include breakpoint.h - * gnu-nat.c: - (init_gnu_ops): adding new target_ops vector fields and - removing a few. see list below - - * gnu-nat.c: - (init_gnu_ops): initializing new target ops vector fields - to_require_attach, to_require_detach, to_post_wait, - to_post_startup_inferior, to_acknowledge_created_inferior, - to_clone_and_follow_inferior, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file - (gnu_create_inferior): add param to fork_inferior call - - * hp-psymtab-read.c (QUICK_LOOK_UP): redefine to be 0. - (hpread_build_psymtabs): deal with enums. - (hpread_start_psymtab): include section offset. - (hpread_end_psymtab): take care of offset. + * hp-psymtab-read.c (QUICK_LOOK_UP): Redefine to be 0. + (hpread_build_psymtabs): Deal with enums. + (hpread_start_psymtab): Include section offset. + (hpread_end_psymtab): Take care of offset. - * hp-psymtab-read.c (TRUE): define. - (FALSE): define. - (file_exists): new function. Checks for existance of file. - (hpread_pxdb_needed): rewrite. - (hpread_quick_traverse): use correct demangling style. + * hp-psymtab-read.c (TRUE): Define. + (FALSE): Define. + (file_exists): New function. Checks for existance of file. + (hpread_pxdb_needed): Rewrite. + (hpread_quick_traverse): Use correct demangling style. Handle F77 case. - (hpread_get_header): rewrite. - (hpread_get_textlow): add support for DOC_FUNCTION. - (hpread_build_psymtabs): make sure we do the right thing + (hpread_get_header): Rewrite. + (hpread_get_textlow): Add support for DOC_FUNCTION. + (hpread_build_psymtabs): Make sure we do the right thing for pxdb and F77. - * hp-psymtab-read.c (hpread_pxdb_check): change parenthesis positions. + * hp-psymtab-read.c (hpread_pxdb_check): Change parenthesis positions. - * hp-psymtab-read.c (hpread_quick_traverse): compare CORE_ADDR + * hp-psymtab-read.c (hpread_quick_traverse): Compare CORE_ADDR variable end_addr to 0 instaed of NULL to get rif of gcc warning. * hp-psymtab-read.c: - (hpread_get_textlow) : added param to function + (Hpread_get_textlow): Added param to function Defined convennience macros and some datatypes and variables for processing the quick lookup-tables. Looks like the code existed before, but has been munged. (hpread_pxdb_needed): Major rearrangements of code. Additional local - variables. Also, more extensive checking for various scenarios : + variables. Also, more extensive checking for various scenarios: debug info for optimized code vs. unoptimized code, pxdb has been run vs. pxdb has not been run. - (VALID_FILE): new macro - (VALID_MODULE): new macro - (VALID_PROC): new macro - (VALID_CLASS): new macro - (FILE_START): new macro - (MODULE_START): new macro - (PROC_START): new macro - (FILE_END): new macro - (MODULE_END): new macro - (PROC_END): new macro - (FILE_ISYM): new macro - (MODULE_ISYM): new macro - (PROC_ISYM): new macro - (VALID_CURR_FILE): new macro - (VALID_CURR_MODULE): new macro - (VALID_CURR_PROC): new macro - (VALID_CURR_CLASS): new macro - (CURR_FILE_START): new macro - (CURR_MODULE_START): new macro - (CURR_PROC_END): new macro - (CURR_FILE_ISYM): new macro - (CURR_MODULE_ISYM): new macro - (CURR_PROC_ISYM): new macro - (TELL_OBJFILE): new macro - (pst_syms_struct) : new typedef to keep track of the start/end symbol + (VALID_FILE): New macro + (VALID_MODULE): New macro + (VALID_PROC): New macro + (VALID_CLASS): New macro + (FILE_START): New macro + (MODULE_START): New macro + (PROC_START): New macro + (FILE_END): New macro + (MODULE_END): New macro + (PROC_END): New macro + (FILE_ISYM): New macro + (MODULE_ISYM): New macro + (PROC_ISYM): New macro + (VALID_CURR_FILE): New macro + (VALID_CURR_MODULE): New macro + (VALID_CURR_PROC): New macro + (VALID_CURR_CLASS): New macro + (CURR_FILE_START): New macro + (CURR_MODULE_START): New macro + (CURR_PROC_END): New macro + (CURR_FILE_ISYM): New macro + (CURR_MODULE_ISYM): New macro + (CURR_PROC_ISYM): New macro + (TELL_OBJFILE): New macro + (pst_syms_struct): New typedef to keep track of the start/end symbol table (LNTT) indices of psymtabs created so far. - (pst_syms_count) : new variable - (pst_syms_size): new variable - (told_objfile): new variable - (init_pst_syms): new function. sets up psymtab symbol index stuff. - (clear_pst_syms): new function. clean up psymtab symbol index stuff. - (record_pst_syms): new function. add info about newest psymtab to symbol + (pst_syms_count): New variable + (pst_syms_size): New variable + (told_objfile): New variable + (init_pst_syms): New function. sets up psymtab symbol index stuff. + (clear_pst_syms): New function. clean up psymtab symbol index stuff. + (record_pst_syms): New function. add info about newest psymtab to symbol index table. - (find_next_pst_start): new function. Find a suitable symbol table index. - (find_next_file_isym): new function - (find_next_proc_isym): new function - (find_next_module_isym): new function - (scan_procs): new function. Scan and record partial symbols for all + (find_next_pst_start): New function. Find a suitable symbol table index. + (find_next_file_isym): New function + (find_next_proc_isym): New function + (find_next_module_isym): New function + (scan_procs): New function. Scan and record partial symbols for all functions starting from specified index and in a specified code range. - (hpread_quick_traverse: major rearrangement of code. The function + (hpread_quick_traverse: Major rearrangement of code. The function now uses all the nifty macros. There are some new local variables. Check for EDG_DEMANGLING style. ifdef out some code for handling F77. Previously, the function looped over all the modules in the table. @@ -944,99 +822,99 @@ Thu Dec 31 16:54:30 1998 David Taylor QUICK_LOOK_UP. It check to see whether or not there are any globals in the executable. Fix number of params to hpread_start_psymtab call. Some changes to the way DNTT_TYPE_MODULE is handled. - (hpread_get_textlow): change in signature, minor code changes. The + (hpread_get_textlow): Change in signature, minor code changes. The function finds the low address associated with a specified symbol. In looking for the address for the symbol avoid going of the end of the LNTT file. - * hp-psymtab-read.c: change TRUE to 1 and FALSE to 0. Do some + * hp-psymtab-read.c: Change TRUE to 1 and FALSE to 0. Do some reformatting. - * hp-psymtab-read.c: include demangle.h - (trans_lang): new function to let gdb know the correct language. + * hp-psymtab-read.c: Include demangle.h + (trans_lang): New function to let gdb know the correct language. (hpread_quick_traverse): Use ARM style demangling. Demangle procedures names. Use gdb language names instead of hp language names. Add symbol to list using its demangled name. - * hp-psymtab-read.c: new file. - (hpread_call_pxdb): new function. Call PXDB to process our file. - (hpread_pxdb_check): new function. Return TRUE if the file needs + * hp-psymtab-read.c: New file. + (hpread_call_pxdb): New function. Call PXDB to process our file. + (hpread_pxdb_check): New function. Return TRUE if the file needs pre-processing by PXDB and we have thus called PXDB to do this processing and the file needs to be re-loaded. - (hpread_quick_traverse): new function. Traverse the quick look-up + (hpread_quick_traverse): New function. Traverse the quick look-up tables, building a set of psymtabs. - (hpread_get_header): new function. Get appropriate header from obj + (hpread_get_header): New function. Get appropriate header from obj file, based on pxdb type - (hpread_symfile_init): no change from hpread.c - (hpread_build_psymtabs): if there are quick lookup tables, read those, + (hpread_symfile_init): No change from hpread.c + (hpread_build_psymtabs): If there are quick lookup tables, read those, then scan the global section LNTT. Otherwise, just scan the whole LNTT. - Changed: Add a global function entry to the global partial symbol list. - Handle end of symbols, for QLT case. + Changed: Add a global function entry to the global partial symbol list. + Handle end of symbols, for QLT case. In case of TAGDEF, if it is a class or a template, add the name to the var_namespace, so that it is known as a type by gdb. In case of CONSTANT, and it is global, add it to the globals. - (hpread_symfile_finish): no change from hpread.c - (hpread_get_lntt): make it not static - (hpread_get_gntt): no change from hpread.c - (hpread_get_slt): make it not static - (hpread_get_textlow): no change from hpread.c - (hpread_start_psymtab): no change from hpread.c - (hpread_end_psymtab): no change from hpread.c - - * hp-symtab-read.c (hpread_get_scope_start): renamed. It was + (hpread_symfile_finish): No change from hpread.c + (hpread_get_lntt): Make it not static + (hpread_get_gntt): No change from hpread.c + (hpread_get_slt): Make it not static + (hpread_get_textlow): No change from hpread.c + (hpread_start_psymtab): No change from hpread.c + (hpread_end_psymtab): No change from hpread.c + + * hp-symtab-read.c (hpread_get_scope_start): Renamed. It was hpread_get_depth. - (hpread_type_translate): distinguish between signed and unsigned char + (hpread_type_translate): Distinguish between signed and unsigned char types. - (hpread_psymtab_to_symtab): set flag for hp compilation. - (hpread_read_function_type): append symbols for parameters to local + (hpread_psymtab_to_symtab): Set flag for hp compilation. + (hpread_read_function_type): Append symbols for parameters to local list as well as to the global list. Get the parameters types from the local list instead of the global list. - (hpread_read_struct_type): add new field num_fn_fields to next_fn_field + (hpread_read_struct_type): Add new field num_fn_fields to next_fn_field structure. Rewrite handling of templates - (hpread_type_lookup): change handling of dntt_type_modifier. - (hpread_process_one_debug_symbol): call hpread_get_scope_start instea + (hpread_type_lookup): Change handling of dntt_type_modifier. + (hpread_process_one_debug_symbol): Call hpread_get_scope_start instea of hpread_get_depth. Handle enum as well. - (hpread_get_scope_depth): new function. Get nesting depth for a + (hpread_get_scope_depth): New function. Get nesting depth for a DNTT entry. - * hp-symtab-read.c (hpread_psymtab_to_symtab): set + * hp-symtab-read.c (hpread_psymtab_to_symtab): Set processing_gcc_compilation to 0. - * hp-symtab-read.c (hpread_psymtab_to_symtab_1): change stdout to + * hp-symtab-read.c (hpread_psymtab_to_symtab_1): Change stdout to gdb_stdout; change fflush to gdb_flush. - (hpread_psymtab_to_symtab): change fflush to gdb_flush. + (hpread_psymtab_to_symtab): Change fflush to gdb_flush. - * hp-symtab-read.c (hpread_read_enum_type): declare variable. - (hpread_read_struct_type): eliminate references + * hp-symtab-read.c (hpread_read_enum_type): Declare variable. + (hpread_read_struct_type): Eliminate references to 'args' member of fn_field. - * hp-symtab-read.c (hpread_read_struct_type): a static member + * hp-symtab-read.c (hpread_read_struct_type): A static member is now indicated by the bitsize field, not the bitpos. Initialize physname to empty. - (fix_static_member_physnames): use new macros to deal with + (fix_static_member_physnames): Use new macros to deal with physnames. - * hp-symtab-read.c (hpread_read_struct_type): change references + * hp-symtab-read.c (hpread_read_struct_type): Change references to bitpos member of struct field to use the FIELD_BITPOS macro. - * hp-symtab-read.c (hpread_read_struct_type): comment out reference to + * hp-symtab-read.c (hpread_read_struct_type): Comment out reference to obsolete field fn_field.args. Add struct complaint definitions for complaints. - (hpread_read_struct_type): change call to complain. - (hpread_read_array_type): change call to complain. - (hpread_type_lookup): change call to complain. - (hpread_process_one_debug_symbol): change calls to complain. - (hpread_type_translate): change calls to complain. + (hpread_read_struct_type): Change call to complain. + (hpread_read_array_type): Change call to complain. + (hpread_type_lookup): Change call to complain. + (hpread_process_one_debug_symbol): Change calls to complain. + (hpread_type_translate): Change calls to complain. - * hp-symtab-read.c (hpread_read_struct_type): make sure bitvector + * hp-symtab-read.c (hpread_read_struct_type): Make sure bitvector has been allocated before calling has_vtable. - * hp-symtab-read.c (hpread_read_struct_type): revert change, + * hp-symtab-read.c (hpread_read_struct_type): Revert change, just check for vtable without checking for bitvectors too. * hp-symtab-read.c: - (hpread_expand_symtab): change name of local variable from + (Hpread_expand_symtab): Change name of local variable from at_end_of_module to at_module_boundary. Also, if demangling style is already EDG, do not reset it to the HP demangling style. @@ -1046,108 +924,107 @@ Thu Dec 31 16:54:30 1998 David Taylor the compiler can generate function symbols which are not in any module. Typically they show up after the end of one module and before the start of the next module. - (hpread_read_struct_type): check that the debug info for + (hpread_read_struct_type): Check that the debug info for a TEMPLATE_ARG is correct. - (hpread_process_one_debug_symbol): change name of at_end_of_module_p + (hpread_process_one_debug_symbol): Change name of at_end_of_module_p param to at_module_boundary_p. Also set *at_module_boundary_p = -1 if missing a module end and set it to 1 when finished expanding the debug info. Handle TLS variable. - * hp-symtab-read.c: include defs.h, symtab.h, gdbtypes.h, complaints.h. - (fixup_class): new static variable. - (fixup_method): new static variable. - (hpread_get_location): rewrite. - (hpread_has_name): add cases for DNTT_TYPE_DOC_FUNCTION and + * hp-symtab-read.c: Include defs.h, symtab.h, gdbtypes.h, complaints.h. + (fixup_class): New static variable. + (fixup_method): New static variable. + (hpread_get_location): Rewrite. + (hpread_has_name): Add cases for DNTT_TYPE_DOC_FUNCTION and DNTT_TYPE_DOC_MEMFUNC - (hpread_expand_symtab): use HP demangling style. + (hpread_expand_symtab): Use HP demangling style. Set hp_som_som_object_present to 1. - (hpread_type_translate): error out if not immediate. Issue warning + (hpread_type_translate): Error out if not immediate. Issue warning if there is an unhandled type code. - (error_in_hpread_type_translate_complaint): remove this structure. - (hpread_read_enum_type): don't assume size of enum is always 4 bytes. - (hpread_read_function_type): add new parameter to indicate a new block. + (error_in_hpread_type_translate_complaint): Remove this structure. + (hpread_read_enum_type): Don't assume size of enum is always 4 bytes. + (hpread_read_function_type): Add new parameter to indicate a new block. Do not add the parameters to the symbol list. If the type was read in earlier, do not modify the type structure. If we are creating a new block, set the local symbol list to be the param list. Need to mark this type as preprocessed. - (hpread_read_doc_function_type): new function. Read and internalize + (hpread_read_doc_function_type): New function. Read and internalize a native DOC function debug symbol. - (hpread_read_struct_type): a method can be of type doc_function and + (hpread_read_struct_type): A method can be of type doc_function and doc_memfunc too. Handle case in which a method is read before its class. Deal with incomplete method types. Handle cases in which HP/aCC compiler creates operator names w/o the 'operator' keyword. Rewrite the loop over the fileds. - (fix_static_member_physnames): new function. Adjust the physnames for + (fix_static_member_physnames): New function. Adjust the physnames for each static member. - (fixup_class_method_type): new function. Fix-up the type structure for a + (fixup_class_method_type): New function. Fix-up the type structure for a class. - (hpread_read_array_type): cahnge complaint to warning. - (hpread_type_lookup): add case for DNTT_TYPE_DOC_FUNCTION. + (hpread_read_array_type): Cahnge complaint to warning. + (hpread_type_lookup): Add case for DNTT_TYPE_DOC_FUNCTION. For structures/classes set static member to point to strings with full names. Change calls to hpread_read_function_type to pass extra parameter. - (hpread_record_lines): handle case for SLT_NORMAL_OFFSET. - (class_of): new function. Given a function "f" which is a member of a class, + (hpread_record_lines): Handle case for SLT_NORMAL_OFFSET. + (class_of): New function. Given a function "f" which is a member of a class, find the classname that it is a member of. - (hpread_process_one_debug_symbol): deal with possible alias field from the + (hpread_process_one_debug_symbol): Deal with possible alias field from the som record for the Function or Entry type. Do the demangling ourselves if the gdb demangler failed. Add support for DOC functions. For function types, add parameters to local list. - (hpread_get_scope_depth): make this function a no-op. - (hpread_adjust_bitoffsets): new function. Adjust the bitoffsets for all + (hpread_get_scope_depth): Make this function a no-op. + (hpread_adjust_bitoffsets): New function. Adjust the bitoffsets for all fields of an anonymous union. - (hpread_get_next_skip_over_anon_unions): new function. Skip over anonymous + (hpread_get_next_skip_over_anon_unions): New function. Skip over anonymous unions. - * hp-symtab-read.c: include demangle.h + * hp-symtab-read.c: Include demangle.h (hpread_expand_symtab): Ensure we are using ARM-style demangling. (hpread_process_one_debug_symbol): Set the mangled and demangled names for functions. Record the class name to generate the demangled names of member functions. - * hp-symtab-read.c: new file. - (hpread_get_depth): no change from hpread.c - (hpread_get_line): no change from hpread.c - (hpread_get_location): no change from hpread.c - (hpread_has_name): make it not static. Return 1 for DNTT_TYPE_BLOCKDATA + * hp-symtab-read.c: New file. + (hpread_get_depth): No change from hpread.c + (hpread_get_line): No change from hpread.c + (hpread_get_location): No change from hpread.c + (hpread_has_name): Make it not static. Return 1 for DNTT_TYPE_BLOCKDATA and DNTT_TYPE_MEMFUNC. Return 0 for CLASS_SCOPE, REFERENCE,PTRMEM, PTRMEMFUNC, CLASS, GENFIELD, VFUNC, MEMACCESS, INHERITANCE, FRIEND_CLASS, FRIEND_FUNC, MODIFIER, OBJECT_ID, TEMPLATE, TEMPLATE_ARG, FUNC_TEMPLATE, LINK. - (hpread_psymtab_to_symtab_1): no changes from hpread.c - (hpread_psymtab_to_symtab): make it a static function - (hpread_expand_symtab): modified - (hpread_type_translate): if not typep.dntti.immediate do not abort, + (hpread_psymtab_to_symtab_1): No changes from hpread.c + (hpread_psymtab_to_symtab): Make it a static function + (hpread_expand_symtab): Modified + (hpread_type_translate): If not typep.dntti.immediate do not abort, but complain and return. Same for default action. Handle more HP_TYPEs. - (hpread_lookup_type): initially allocate a correct-size type-vector. - (hpread_alloc_type): reset type_addr only if a type was allocated. - (hpread_read_enum_type): if this has already a type associated, return. - (hpread_read_function_type): do different things depending on whether + (hpread_lookup_type): Initially allocate a correct-size type-vector. + (hpread_alloc_type): Reset type_addr only if a type was allocated. + (hpread_read_enum_type): If this has already a type associated, return. + (hpread_read_function_type): Do different things depending on whether function is a MEMFUNC, a TEMPLATE, a FUNCTION som record. Do not use the LOC_REGPARM_ADDR symbol class. - (hpread_read_struct_type): handle classes and templates too. Major + (hpread_read_struct_type): Handle classes and templates too. Major rewrite. - (hpread_get_nth_template_arg): new function. - (hpread_read_templ_arg_type): new function. - (hpread_read_set_type): no change from hpread.c - (hpread_read_array_type): modified - (hpread_read_subrange_type): add handling of more DNTT entries. + (hpread_get_nth_template_arg): New function. + (hpread_read_templ_arg_type): New function. + (hpread_read_set_type): No change from hpread.c + (hpread_read_array_type): Modified + (hpread_read_subrange_type): Add handling of more DNTT entries. added support for templates, classes, references, virtual functions. - (hpread_type_lookup): handle DNNT_TYPE_MODULE. - (hpread_record_lines): no changes from hpread.c + (hpread_type_lookup): Handle DNNT_TYPE_MODULE. + (hpread_record_lines): No changes from hpread.c (hpread_process_one_debug_symbol): Handle WITH, COMMON, CLASS_SCOPE. Expand TAGDEF case to handle classes and templates. - * hppa-tdep.c: - (pa_do_strcat_registers_info): Has a new parameter, precision, - which is passed into the call to pa_strcat_fp_reg to indicate - whether to display the floating point registers using - single or double preceision. + * hppa-tdep.c (pa_do_strcat_registers_info): Has a new parameter, + precision, which is passed into the call to pa_strcat_fp_reg to + indicate whether to display the floating point registers using + single or double preceision. (pa_strcat_registers): Introduce local variable, precision, and pass it into call to pa_strcat_fp_reg. (pa_strcat_fp_reg): Modified function. New parameter, precision, @@ -1155,179 +1032,179 @@ Thu Dec 31 16:54:30 1998 David Taylor precision. Also added the code to put a double precision value into a buffer. - * hppa-tdep.c: (): add'l includes , + * hppa-tdep.c: Add'l includes , , declare pa_register_look_aside, define is_pa_2. - (rp_saved): check for where to read the return pointer from. - (pa_do_registers_info): handle is_pa_2. (pa_register_look_aside): - new function. (pa_print_registers): handle is_pa_2. - (in_solib_call_trampoline): handle a compiler/linker error. - (skip_trampoline_code): changes to some masks used in examining - instructions. (inst_saves_fr): test for FSTWS instruction. - (skip_prologue): renamed to skip_prologue_hard_way. - (after_prologue): new function. (skip_prologue): new function. - - * hppa-tdep.c (after_prologue): if f is NULL, don't dereference + (rp_saved): Check for where to read the return pointer from. + (pa_do_registers_info): Handle is_pa_2. (pa_register_look_aside): + new function. (pa_print_registers): Handle is_pa_2. + (in_solib_call_trampoline): Handle a compiler/linker error. + (skip_trampoline_code): Changes to some masks used in examining + instructions. (inst_saves_fr): Test for FSTWS instruction. + (skip_prologue): Renamed to skip_prologue_hard_way. + (after_prologue): New function. (skip_prologue): New function. + + * hppa-tdep.c (after_prologue): If f is NULL, don't dereference it. - * hppa-tdep.c (after_prologue): if no debug info, return zero + * hppa-tdep.c (after_prologue): If no debug info, return zero telling caller that we need to find the end of the prologue via the hard way (instruction examination). - * hppa-tdep.c (find_unwind_entry): avoid dereferencing a null + * hppa-tdep.c (find_unwind_entry): Avoid dereferencing a null pointer. - * hppa-tdep.c (hppa_pid_to_exec_file): deleted -- no longer used. - - * hppa-tdep.c (hppa_prepare_to_proceeed): add prototype. - (read_unwind_info): purecov comments, bug fixes. - (find_unwind_entry): purecov comments, bug fixes. - (find_stub_with_shl_get): purecov comments. - (frame_chain): additional parens. - (hppa_push_arguments): changes to commented out version of routine. - (hppa_fix_call_dummy): purecov comments, fix location of end.o. - (in_solib_call_trampoline): purecov comments. - (in_solib_return_trampoline): purecov comments. - (setup_d_pid_in_inferior): fix location of end.o. - (initialize_hp_cxx_exception_support): fix location of end.o. - (child_enable_exception_callback): purecov comments. + * hppa-tdep.c (hppa_pid_to_exec_file): Deleted -- no longer used. + + * hppa-tdep.c (hppa_prepare_to_proceeed): Add prototype. + (read_unwind_info): Purecov comments, bug fixes. + (find_unwind_entry): Purecov comments, bug fixes. + (find_stub_with_shl_get): Purecov comments. + (frame_chain): Additional parens. + (hppa_push_arguments): Changes to commented out version of routine. + (hppa_fix_call_dummy): Purecov comments, fix location of end.o. + (in_solib_call_trampoline): Purecov comments. + (in_solib_return_trampoline): Purecov comments. + (setup_d_pid_in_inferior): Fix location of end.o. + (initialize_hp_cxx_exception_support): Fix location of end.o. + (child_enable_exception_callback): Purecov comments. * hppa-tdep.c: - (pa_do_strcat_registers_info): new routine. called by + (Pa_do_strcat_registers_info): New routine. called by tui/tuiRegs.c:_tuiRegisterFormat to place a register name and value into a string buffer. Interface may change in future. Checking this in so that we have something functional for HP. - (pa_strcat_registers): new routine, called by + (pa_strcat_registers): New routine, called by pa_do_strcat_registers_info. Does same thing as pa_print_registers except it takes a stream parameter. This routine should disappear in future. Checking in so that we have something functional to give HP - (pa_strcat_fp_reg): new routine, called by + (pa_strcat_fp_reg): New routine, called by pa_do_strcat_registers_info and pa_strvat_registers to place a floating point register name and value into a buffer. This interface may change in future. Checking in so that we have something functional to give HP. - * hppa-tdep.c: (pa_print_fp_reg): change prototype to match def'n. - (pa_register_look_aside): fix comment immediately before function. + * hppa-tdep.c: (Pa_print_fp_reg): Change prototype to match def'n. + (pa_register_look_aside): Fix comment immediately before function. - * hppa-tdep.c: changes to better support stack unwinding, + * hppa-tdep.c: Changes to better support stack unwinding, reading and writing registers for HPUX. The HP folks had an advantage ... access to a runtime architecture spec ;-}. - New includes : ptrace.h - (internalize_unwinds): initialize new fields in table. - (read_unwind_info): entries in the table are now more complex + New includes: Ptrace.h + (internalize_unwinds): Initialize new fields in table. + (read_unwind_info): Entries in the table are now more complex structures. References of the form ...->table[index].stub_type are now ...->table[index].stub_unwind.stub_type. - (find_proc_framesize) : added a check for pc == 0. - (rp_saved): entries in the table are now more complex + (find_proc_framesize): Added a check for pc == 0. + (rp_saved): Entries in the table are now more complex structures. References of the form ...->table[index].stub_type are now ...->table[index].stub_unwind.stub_type. - (frameless_function_invocation): stub_type becomes + (frameless_function_invocation): Stub_type becomes stub_unwind.stub_type - (saved_pc_after_call): stub_type becomes stub_unwind.stub_type - (hppa_frame_saved_pc): stub_type becomes stub_unwind.stub_type - (frame_chain_valid): stub_type becomes stub_unwind.stub_type - (hppa_call_dummy): stub_type becomes stub_unwind.stub_type - (pa_print_fp_reg): additional params to call val_print - (in_solib_call_trampoline): stub_type becomes stub_unwind.stub_type - (in_solib_return_trampoline): stub_type becomes stub_unwind.stub_typ - (skip_trampoline_code): additional code to handle external + (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type + (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type + (frame_chain_valid): Stub_type becomes stub_unwind.stub_type + (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type + (pa_print_fp_reg): Additional params to call val_print + (in_solib_call_trampoline): Stub_type becomes stub_unwind.stub_type + (in_solib_return_trampoline): Stub_type becomes stub_unwind.stub_typ + (skip_trampoline_code): Additional code to handle external dyncalls. Also stub_type becomes stub_unwind.stub_type - (hppa_pid_to_exec_file): new funct. FOr HPUX 10.0 and beyond there + (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there is an explicit ptrace request for getting the pathname associated with a process id (pid). - * hppa-tdep.c: fix for gcc compile on HPUX - (hppa_pid_to_exec_file): remove unwanted param from + * hppa-tdep.c: Fix for gcc compile on HPUX + (hppa_pid_to_exec_file): Remove unwanted param from call to call_ptrace. Note, hppa_pid_to_exec_file goes away in subsequent hp snapshots. - * hppa-tdep.c: include bfd.h. + * hppa-tdep.c: Include bfd.h. include dl.h - (args_for_find_stub): new structure. - (find_unwind_entry): deal with null input pc value. - (rp_saved): ditto. + (args_for_find_stub): New structure. + (find_unwind_entry): Deal with null input pc value. + (rp_saved): Ditto. For the import stub, return -24 always. - (hppa_frame_saved_pc): save old pc value, to detect we are in a loop. - (init_extra_frame_info): use TARGET_READ_FP. - (frame_chain): include thread support. + (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop. + (init_extra_frame_info): Use TARGET_READ_FP. + (frame_chain): Include thread support. If the caller's pc is zero, we loose and return, just like stack bottom. Disable warning about being unable to find unwind info. - (hppa_push_arguments): rewrite. - (hppa_value_returned_from_stack): new function. Handles returning a value + (hppa_push_arguments): Rewrite. + (hppa_value_returned_from_stack): New function. Handles returning a value larger that 64 bits, stored on the stack. - (find_stub_with_shl_get): new function. To look up symbols in shlibs. - (cover_find_stub_with_shl_get): new function. Cover routine for + (find_stub_with_shl_get): New function. To look up symbols in shlibs. + (cover_find_stub_with_shl_get): New function. Cover routine for find_stub_with_shl_get to pass to catch_errors. - (hppa_fix_call_dummy): comment out old stub mechanism. Rewrite using dyncall. - (target_read_fp): new function. - (pa_do_registers_info): floating point registers start at FP4. - (pa_print_registers): use FP4_REGNUM instead of 72. - (skip_trampoline_code): do machine instruction matching for PA2.0. - (setup_d_pid_in_inferior): new function. Exception handling support. - (initialize_hp_cxx_exception_support): ditto. - (child_enable_exception_callback): ditto. - (child_get_current_exception_event): ditto. + (hppa_fix_call_dummy): Comment out old stub mechanism. Rewrite using dyncall. + (target_read_fp): New function. + (pa_do_registers_info): Floating point registers start at FP4. + (pa_print_registers): Use FP4_REGNUM instead of 72. + (skip_trampoline_code): Do machine instruction matching for PA2.0. + (setup_d_pid_in_inferior): New function. Exception handling support. + (initialize_hp_cxx_exception_support): Ditto. + (child_enable_exception_callback): Ditto. + (child_get_current_exception_event): Ditto. * hppah-nat.c (child_post_wait, child_post_follow_vfork, - child_post_follow_inferior_by_clone): new functions. + child_post_follow_inferior_by_clone): New functions. - * hppah-nat.c (child_xfer_memory): make sure the call to ptrace really + * hppah-nat.c (child_xfer_memory): Make sure the call to ptrace really fails before we give up. - (hppa_pid_to_str): new function. Format a process id. - (hppa_tid_to_str): new function. Format a thread id. + (hppa_pid_to_str): New function. Format a process id. + (hppa_tid_to_str): New function. Format a thread id. - * hppah-nat.c (child_xfer_memory): use xmalloc, not alloca. - (child_post_wait): delete. - (child_post_follow_vfork): delete decl of child_ops; delete + * hppah-nat.c (child_xfer_memory): Use xmalloc, not alloca. + (child_post_wait): Delete. + (child_post_follow_vfork): Delete decl of child_ops; delete large chunks of function -- let it be handled by the normal mechanism that notices and handles exec events, in resume(). - * hppah-nat.c (require_notification_of_exec_events): new function; + * hppah-nat.c (require_notification_of_exec_events): New function; just notify of exec events, not all events, and just the specified pid, don't include it's children (10.20 version). - (child_acknowledge_created_inferior): call new function + (child_acknowledge_created_inferior): Call new function require_notification_of_exec_events instead of require_notification_of_events. * hppah-nat.c [!GDB_NATIVE_HPUX_11]: Move HPUX 10.x-specific support code here from infptrace.c. - * hppah-nat.c: removed #define ptrace call_ptrace + * hppah-nat.c: Removed #define ptrace call_ptrace replaced all calls to ptrace with calls to call_ptrace - (parent_attach_all): removed call to ptrace + (parent_attach_all): Removed call to ptrace - * hpread.c (hpread_psymtab_to_symtab_1): change fflush to + * hpread.c (hpread_psymtab_to_symtab_1): Change fflush to gdb_flush; change stdout to gdb_stdout. - (hpread_psymtab_to_symtab): change fflush to gdb_flush. + (hpread_psymtab_to_symtab): Change fflush to gdb_flush. - * hpread.h: new file. Includes all includes, struct defs, defines + * hpread.h: New file. Includes all includes, struct defs, defines from hpread.c. * infcmd.c - (attach_command): new local variable, exec_file, added code to + (attach_command): New local variable, exec_file, added code to determine exec_file from pid if exec_file is not already known, call new target operation, target_post_attach -- a no-op unless on HPUXHPPA - (detach_command): after detaching, do a SOLIB_RESTART + (detach_command): After detaching, do a SOLIB_RESTART - * infcmd.c (objfiles.h): fix typo on include line. + * infcmd.c (objfiles.h): Fix typo on include line. - * infcmd.c (run_command): only call SOLIB_RESTART if it's + * infcmd.c (run_command): Only call SOLIB_RESTART if it's defined. - (detach_command): ditto. + (detach_command): Ditto. * infcmd.c: - (run_stack_dummy): add calls to + (run_stack_dummy): Add calls to disable_watchpoints_before_interactive_call_start and enable_watchpoints_after_interactive_call_stops - (finish_command): alter code handling the evaluation and printing + (finish_command): Alter code handling the evaluation and printing of the target function's return value. - (attach_command): when given a pid, but no exec file, try to determine + (attach_command): When given a pid, but no exec file, try to determine the exec file from the process. If the process does not record a full path name, try to qualify the filename against the source path. - (_initialize_infcmd): add some verbiage about how to use the attach command + (_initialize_infcmd): Add some verbiage about how to use the attach command * infcmd.c: Include objfiles.h @@ -1335,12 +1212,12 @@ Thu Dec 31 16:54:30 1998 David Taylor to restart it, the kill the target, fluch the caches, call init_wait_for_inferior. Also purge old solib objfiles. - * infcmd.c: cahnged calls to val_print, using a new macro, + * infcmd.c: Cahnged calls to val_print, using a new macro, SOLIB_RESTART - (run_command): calls SOLIB_RESTART - (do_registers_info): changed calls to val_print + (run_command): Calls SOLIB_RESTART + (do_registers_info): Changed calls to val_print - * infcmd.c: made the symfile.h include preceed the + * infcmd.c: Made the symfile.h include preceed the objfiles.h include. The other ordering caused a compile problem (incompletely defined types). @@ -1349,124 +1226,123 @@ Thu Dec 31 16:54:30 1998 David Taylor (proc_wait): Make globally visible. (child_insert_fork_catchpoint, etc): Fix return type. - * inferior.h (STARTUP_WITH_SHELL): new define. - (START_INFERIOR_TRAPS_EXPECTED): new define + * inferior.h (STARTUP_WITH_SHELL): New define. + (START_INFERIOR_TRAPS_EXPECTED): New define - * inferior.h (fork_inferior): change fifth parameter to be a function + * inferior.h (fork_inferior): Change fifth parameter to be a function returning void. * inferior.h (proc_wait): Declare. * inferior.h: - (REQUIRE_ATTACH): new macro - (REQUIRE_DETACH): new macro - (detach): definition is now an extern - (clone_and_follow_inferior): new definition, it's also an extern + (Require_ATTACH): New macro + (REQUIRE_DETACH): New macro + (detach): Definition is now an extern + (clone_and_follow_inferior): New definition, it's also an extern * inferior.h: - (require_attach): default definition for require_attach funct - (require_detach): default definition for require_detach funct - (pre_fork_inferior): new funct decl for function defined in + (Require_attach): Default definition for require_attach funct + (require_detach): Default definition for require_detach funct + (pre_fork_inferior): New funct decl for function defined in infptrace.c - (fork_inferior): new parameter in funct decl. + (fork_inferior): New parameter in funct decl. * inferior.h: - New variable decls : inferior_ignoring_startup_exec_events, + New variable decls: Inferior_ignoring_startup_exec_events, inferior_ignoring_leading_exec_events -- these variables are used when processing an exec call. - (CALL_DUMMY_HAS_COMPLETED): new default macro -- for targets + (CALL_DUMMY_HAS_COMPLETED): New default macro -- for targets where PC in call dummy implies that call dummy has completed. Note, that on HPUX this inference does not hold. * infptrace.c - (require_notification_of_events): new function - (child_acknowledge_created_inferior): previously named + (require_notification_of_events): New function + (child_acknowledge_created_inferior): Previously named hppa_acknowledge_forked_child. Also calling require_notification_of_events and clearing some semaphore variables - (child_post_startup_inferior): new function - (child_create_catch_fork_hook): previously named + (child_post_startup_inferior): New function + (child_create_catch_fork_hook): Previously named hppa_create_catch_fork_hook - (child_create_catch_vfork_hook): previously named + (child_create_catch_vfork_hook): Previously named hppa_create_catch_vfork_hook - (child_has_forked) : previously named hppa_target_has_forked - (child_has_vforked): previously named hppa_target_has_vforked - (process_wait): changed to call target_post_wait - (attach): add call to require_notification_of_events - (child_pid_to_exec_file): new function - (hppa_require_attach): new local variable, pt_status - (hppa_get_process_events): new function + (child_has_forked): Previously named hppa_target_has_forked + (child_has_vforked): Previously named hppa_target_has_vforked + (process_wait): Changed to call target_post_wait + (attach): Add call to require_notification_of_events + (child_pid_to_exec_file): New function + (hppa_require_attach): New local variable, pt_status + (hppa_get_process_events): New function * infptrace.c (call_ptrace): Simplify control flow. (proc_wait): Move here from inftarg.c, add target_post_wait call. - * infptrace.c (call_ptrace): add some debugging code. + * infptrace.c (call_ptrace): Add some debugging code. - * infptrace.c (child_pid_to_exec_file): declare variable. + * infptrace.c (child_pid_to_exec_file): Declare variable. - * infptrace.c (kill_inferior): clean up call to proc_wait. + * infptrace.c (kill_inferior): Clean up call to proc_wait. * infptrace.c: - (call_ptrace): when the ptrace request is PT_SETTRC, + (Call_ptrace): When the ptrace request is PT_SETTRC, call ptrace and then call parent_attach_all. * infptrace.c: - (child_has_syscall_event): new function. only applicable + (Child_has_syscall_event): New function. only applicable (for now) on HPUX 10.30 and beyond via the ttrace call. In infptrace.c there is a default operation. With ttrace, it is possible to tell the kernel to notify the debugger that the target program is about to make or return from a syscall. - (child_thread_alive): new function. a default function. + (child_thread_alive): New function. a default function. ptrace doesn't support kernel threads. - (hppa_enable_page_protection_events): defualt function - (hppa_disable_page_protection_events): default function + (hppa_enable_page_protection_events): Defualt function + (hppa_disable_page_protection_events): Default function - * infptrace.c: - (child_pid_to_exec_file): fix number of params to cal_ptrace call. + * infptrace.c (child_pid_to_exec_file): Fix number of params to + cal_ptrace call. - * infptrace.c: - (hppa_pid_or_tid_to_str): new function - (hppa_switched_threads): new function - (hppa_ensure_vforking_parent_remains_stopped): new function - (hppa_resume_execd_vforking_child_to_get_parent_vfork): new function + * infptrace.c (hppa_pid_or_tid_to_str): New function. + (hppa_switched_threads): New function. + (hppa_ensure_vforking_parent_remains_stopped): New function. + (hppa_resume_execd_vforking_child_to_get_parent_vfork): New function. * infptrace.c: Most of the changes found in infptrace.c should be moved to hppah-nat.c - (PT_VERSION): a new define - (startup_semaphore_t): a new struct type. it is used to + (PT_VERSION): A new define + (startup_semaphore_t): A new struct type. it is used to coordinate the parent and child processes after a fork and before an exec on HPUX. - (call_ptrace): changes to determine whether the ptrace + (call_ptrace): Changes to determine whether the ptrace request is for starting the tracing of the target process. - (parent_attach_all): new funct. used on HPUX for coordinating + (parent_attach_all): New funct. used on HPUX for coordinating the parent and child processes after a fork and before and exec. - (hppa_acknowledge_forked_child) : new funct. prabably belongs + (hppa_acknowledge_forked_child): New funct. prabably belongs in hppah-nat.c - (hppa_enable_catch_fork) : new funct. probably belongs in + (hppa_enable_catch_fork): New funct. probably belongs in hppah-nat.c - (hppa_disable_catch_fork): new funct. probably belongs in + (hppa_disable_catch_fork): New funct. probably belongs in hppah-nat.c - (hppa_create_catch_fork_hook): new funct. probably belongs in + (hppa_create_catch_fork_hook): New funct. probably belongs in hppah-nat.c - (hppa_enable_catch_vfork): new funct. probably belongs in + (hppa_enable_catch_vfork): New funct. probably belongs in hppah-nat.c - (hppa_disable_catch_vfork): new funct. probably belongs in + (hppa_disable_catch_vfork): New funct. probably belongs in hppah-nat.c - (hppa_create_catch_vfork_hook): new funct. probably belongs to + (hppa_create_catch_vfork_hook): New funct. probably belongs to hppah-nat.c - (hppa_target_has_forked): new funct. probably belongs in + (hppa_target_has_forked): New funct. probably belongs in hppah-nat.c - (hppa_target_has_vforked): new funct. probably belongs in + (hppa_target_has_vforked): New funct. probably belongs in hppah-nat.c - (process_wait): new funct. also ifdefed for proc_wait. - (kill_inferior): call proc_wait rather than wait. this is + (process_wait): New funct. also ifdefed for proc_wait. + (kill_inferior): Call proc_wait rather than wait. this is pretty hacky. - (pre_fork_inferior): new function. used only by HPUX. + (pre_fork_inferior): New function. used only by HPUX. probably should be defined elsewhere. - * infrun.c (follow_inferior_fork): only define on HP. - (wait_for_inferior): only call SOLIB_IN_DYNAMIC_LINKER if we have + * infrun.c (follow_inferior_fork): Only define on HP. + (wait_for_inferior): Only call SOLIB_IN_DYNAMIC_LINKER if we have shared libraries; restore test of IN_SOLIB_DYNSYM_RESOLVE_CODE removed by HP. @@ -1474,63 +1350,55 @@ Thu Dec 31 16:54:30 1998 David Taylor macro just before the annotate_stopped label. This updates the windows after each program stop. - * infrun.c (normal_stop): verify stop_command is non-zero before + * infrun.c (normal_stop): Verify stop_command is non-zero before dereferencing it (it won't be set if dbx_commands is set). * infrun.c (resume): Add #ifdef HPPAHPUX around HPUX-specific code. - * infrun.c (resume): add missing semicolon. + * infrun.c (resume): Add missing semicolon. - * infrun.c (wait_for_inferior): fix syntax error. + * infrun.c (wait_for_inferior): Fix syntax error. - * infrun.c: - (follow_fork): eclosed calls to target_require_detach and - target_require_attach with HPUX_SNAP1 ifdef + * infrun.c (follow_fork_mode_kind_names): Removed "both" option. + (follow_fork): Added parameters. additional code for handling + following of parent, following of child + (resume): Added code for deciding how to resume in presence of + fork. Additional params to follow_fork call. - * infrun.c: - (follow_fork_mode_kind_names) : removed "both" option - (follow_fork): added parameters. additional code for handling - following of parent, following of child - (resume): added code for deciding how to resume in presence of - fork. Additional params to follow_fork call. + * infrun.c (follow_exec): Ifdef for HPUXHPPA for the moment, the + code in here assumes the existance of the child_ops target + vector. This is incorrect for Solaris. - * infrun.c: - (follow_exec): ifdef for HPUXHPPA for the moment, the - code in here assumes the existance of the child_ops - target vector. This is incorrect for Solaris. + * infrun.c (resume): Fixed ifdefs, HPPAHPUX -> HPUXHPPA. - * infrun.c: - (resume): fixed ifdefs, HPPAHPUX -> HPUXHPPA - - * infrun.c: - (wait_for_inferior): fixed a matching parenths problem -- - matching curly brace inside ifdefed code which is not being - compiled. Change local validFlag to be an 'int' rather than - a 'bool' and fixed the corresponding assignment statements. + * infrun.c (wait_for_inferior): Fixed a matching parens problem -- + matching curly brace inside ifdefed code which is not being + compiled. Change local validFlag to be an 'int' rather than a + 'bool' and fixed the corresponding assignment statements. * infrun.c: - Two new global variables: inferior_ignoring_startup_exec_events and + Two new global variables: Inferior_ignoring_startup_exec_events and inferior_ignoring_leading_exec_events. - New static variables: parent_of_vfork_trap_expected_and_ignorable, + New static variables: Parent_of_vfork_trap_expected_and_ignorable, step_resume_breakpoint, through_sigtramp_breakpoint, pending_follow, follow_vfork_when_exec - (follow_inferior_fork): does what follow_fork did! - (follow_fork): is now a wrapper function for follow_inferior_fork - (follow_vfork): is now a wrapper function for follow_inferior_fork - (follow_exec): new function, handles an exec event. - (resume): remove 3 local variables: child_pid, has_forked, has_vforked. + (follow_inferior_fork): Does what follow_fork did! + (follow_fork): Is now a wrapper function for follow_inferior_fork + (follow_vfork): Is now a wrapper function for follow_inferior_fork + (follow_exec): New function, handles an exec event. + (resume): Remove 3 local variables: Child_pid, has_forked, has_vforked. move and expand code that tries to follow a fork (i.e. also check for vfork and exec - (init_wait_for_inferior): initialize the new structure, pending_follow - (delete_breakpoint_current_contents): when deleting all the breakpoints also + (init_wait_for_inferior): Initialize the new structure, pending_follow + (delete_breakpoint_current_contents): When deleting all the breakpoints also set the breakpoint struct pointer to NULL. - (wait_for_inferior): a number of changes. + (wait_for_inferior): A number of changes. The step_resume_breakpoint and through_sigtramp_breakpoint local variables are now visible in entire module. Changed name of variable from child_inferior_pid to saved_inferior_pid. Added several cases to the event processing switch statement: - TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD. + Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD. Also, for TARGET_WAITKIND_STOPPED, check to see if expecting a trap from the parent of a vfork (ignorable) otherwise break as usual. When determining the value of 'random_signal' (0 or 1), no longer check for @@ -1542,8 +1410,8 @@ Thu Dec 31 16:54:30 1998 David Taylor vfork event. * infrun.c: New code is related to threads and fork/vfork/exec. - New static variable : thread_step_needed - Deleted static variable : parent_of_vfork_trap_expected_and_ignorable + New static variable: Thread_step_needed + Deleted static variable: Parent_of_vfork_trap_expected_and_ignorable Altered the pending_follow and fork_event structs (follow_inferior_fork): Before detaching from child and removing all breakpoints form it -- but only if forking or following @@ -1551,14 +1419,14 @@ Thu Dec 31 16:54:30 1998 David Taylor The same kind of logic applies to hitting step_resume_breakpoints (calling breakpoint_re_set_thread) and to resetting and inserting breakpoints. - (follow_exec): forward decl - (follow_vfork): check to see if gdb followed the child. If + (follow_exec): Forward decl + (follow_vfork): Check to see if gdb followed the child. If the child exec'd before gdb saw the parent's vfork event then call follow_exec. - (follow_exec): if the exec occured after a vfork, then follow + (follow_exec): If the exec occured after a vfork, then follow the vfork as well. Do it before following the exec. Make sure to update breakpoints after and exec - (resume): new local variable, should_resume. + (resume): New local variable, should_resume. Change parameters in calls to follow_fork, follow_vfork, and follow_exec. Some changes to the way various pending_follow.kind situations are handled (there's TARGET_WAITKIND_FORKED, @@ -1570,10 +1438,10 @@ Thu Dec 31 16:54:30 1998 David Taylor set thread_step_needed=0 to indicate that it is not necessary to single step thread over breakpoint. SOme additional checks to see if it is necessary to step thread over breakpoint. - (start_remote): remove call to clear_proceed_status. - (init_wait_for_inferior): initialize new fields in fork_event + (start_remote): Remove call to clear_proceed_status. + (init_wait_for_inferior): Initialize new fields in fork_event structure and add a call to clear_proceed_status. - (wait_for_inferior): new local variable : new_thread_event. + (wait_for_inferior): New local variable: New_thread_event. Initialize thread_step_needed = 0. Minor massaging of conditions for adding a new thread to the thread list. No longer resuming execution after adding a new thread. Let user play with thread first. @@ -1586,18 +1454,18 @@ Thu Dec 31 16:54:30 1998 David Taylor Cleanup code at process_event_stop_test label. Set thread_step_needed when processing a BPSTAT_WHAT_SINGLE. Minor massaging of fork/vfork/exec part of stop_stepping code. - (normal_stop): minor changes. calling show_and_print_stack_frame. - (xdb_handle_command): new function - (_initialize_infrun): handle xdb_commands. also handle dbx commands + (normal_stop): Minor changes. calling show_and_print_stack_frame. + (xdb_handle_command): New function + (_initialize_infrun): Handle xdb_commands. also handle dbx commands - * infrun.c: changes to support following forks, and handling + * infrun.c: Changes to support following forks, and handling catchpoints. - (follow_fork_mode_kind_names): new array - (follow_fork): new function. implements the follow parent, + (follow_fork_mode_kind_names): New array + (follow_fork): New function. implements the follow parent, or child functionality. - (resume): additions to check whether the target process + (resume): Additions to check whether the target process just forked and decide which process to follow. - (wait_for_inferior): additional variables (child_inferior_pid, + (wait_for_inferior): Additional variables (child_inferior_pid, stepping_through_solib_after_catch, - stepping_through_solib_catchpoints. - Altered CURRENTLY_STEPPING macro to check for stepping through @@ -1611,30 +1479,30 @@ Thu Dec 31 16:54:30 1998 David Taylor - When checking for single stepping event, also check for stepping to get out of dynamic linker's hook after catching a shlib event - (is_internal_shlib_eventpoint): new funct. check to see if + (is_internal_shlib_eventpoint): New funct. check to see if event type is bp_shlib_event. - (stopped_for_internal_shlib_event): new funct. check for shlib + (stopped_for_internal_shlib_event): New funct. check for shlib events - (stopped_for_shlib_catchpoint): new funct. check for catchpoints. - (normal_stop): additions to check for shlib event - (set_follow_fork_mode_command): new funct. handles the new follow + (stopped_for_shlib_catchpoint): New funct. check for catchpoints. + (normal_stop): Additions to check for shlib event + (set_follow_fork_mode_command): New funct. handles the new follow fork command. - (_initialize_infrun): additions for follow-fork-mode command. + (_initialize_infrun): Additions for follow-fork-mode command. - * infrun.c: ifdefing references to + * infrun.c: Ifdefing references to switched_from_inferior_pid for HPUXHPPA. They don't seem useful for Solaris (i.e. non-HPUX) - * infrun.c: included tuiData.h and tuiDataWin.h, ifdefed for TUI. - Included top.h. New static variables : switched_from_inferior_pid, + * infrun.c: Included tuiData.h and tuiDataWin.h, ifdefed for TUI. + Included top.h. New static variables: Switched_from_inferior_pid, number_of_threads_in_syscalls. (follow_inferior_fork): If there is a step_resume breakpoint explicitly reset the thread number. (resume): For TARGET_WAITKIND_VFORKED, removed a check for getting the vfork event to soon. - (init_wait_for_inferior): added parameter to call to + (init_wait_for_inferior): Added parameter to call to breakpoint_init_inferior. Initialize number_of_threads_in_syscalls. - (wait_for_inferior): New local variables : prev_sal, + (wait_for_inferior): New local variables: Prev_sal, enable_hw_watchpoints_after_wait, stepping_through_sigtramp, stepped_after_stopped_by_watchpoint. Enable watchpoints after a wait. Added cases for TARGET_WAITKIND_SYSCALL_ENTRY and @@ -1644,209 +1512,196 @@ Thu Dec 31 16:54:30 1998 David Taylor parameters to save_infrun_state and load_infrun_state. Some additional processing for BPSTAT_WHAT_STEP_RESUME. Some additional processing to handle stepping over a function. - (normal_stop): added notification of switching threads. ifdefing some + (normal_stop): Added notification of switching threads. ifdefing some TUI changes and leaving out non-essential TUI changes. - (restore_selected_frame): ifdefing some TUI changes - (restore_inferior_status): ifdefing some TUI changes + (restore_selected_frame): Ifdefing some TUI changes + (restore_inferior_status): Ifdefing some TUI changes - * infrun.c: remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs - - * infrun.c: removed the TUI ifdefs and TUI code. Also removed + * infrun.c: Removed the TUI ifdefs and TUI code. Also removed include for top.h. HP introduced this. I'm taking it out. - * inftarg.c (child_detach_from_process): declare. - (child_attach_to_process): declare. - (child_stop): make static to match declaration. + * inftarg.c (child_detach_from_process): Declare. + (child_attach_to_process): Declare. + (child_stop): Make static to match declaration. - * inftarg.c (ptrace_him): change prototype back to return int. + * inftarg.c (ptrace_him): Change prototype back to return int. * inftarg.c (ptrace_me): Remove debug output, pass NULL to fork_inferior if not HPUX. * inftarg.c: - (child_require_attach): new funct prototype and definition - (child_require_detach): new funct prototype and definition - (proc_wait): funct prototype and definition are enclosed by + (child_require_attach): New funct prototype and definition + (child_require_detach): New funct prototype and definition + (proc_wait): Funct prototype and definition are enclosed by proc_wait ifndef - (child_attach_to_process): new function, does most of the + (child_attach_to_process): New function, does most of the work that child_attach used to do and some additional work to determine whether gdb is already attached to the target how to react. - (child_attach): altered. It's now a wrapper for + (child_attach): Altered. It's now a wrapper for child_attach_to_process. - (child_require_attach): new function, called if should attach + (child_require_attach): New function, called if should attach even when gdb is already attached to target. - (child_detach_from_process): new function, does most of the + (child_detach_from_process): New function, does most of the work that child_detach used to do and some additional work to determine whether gdb is currently attached to the target. - (child_detach): altered. It's now a wrapper for + (child_detach): Altered. It's now a wrapper for child_detach_from_process. - (child_require_detach): new function, called if should try to + (child_require_detach): New function, called if should try to detach even when gdb is not attached to target. - (ptrace_him): calls a new function, target_acknowledge_forked_child. + (ptrace_him): Calls a new function, target_acknowledge_forked_child. Currently, target_acknowledge_forked_child, is only defined to do something for HPUX. - (child_create_inferior): changed call to fork_inferior. - (child_ops): added to_require_attach and to_require_detach fields + (child_create_inferior): Changed call to fork_inferior. + (child_ops): Added to_require_attach and to_require_detach fields to the child_ops target ops vector. * inftarg.c: Some hacks for ttrace work (child_wait): Additional local variables, additional code in - while loop to check for : process exited, process forked, + while loop to check for: Process exited, process forked, process vforked, process execd (child_thread_alive): John B. seems to think that the kill call is inapproapriate for HPUX. - (child_attach_to_process): using strtol rather than atoi. + (child_attach_to_process): Using strtol rather than atoi. no longer check for case where there is no known exec file. - (child_post_attach): new function, a default, a no-op - (child_insert_fork_catchpoint): new function, a default, a no-op - (child_remove_fork_catchpoint): new function, a default, a no-op - (child_create_catch_fork_hook): deleted - (child_create_catch_vfork_hook): deleted - (child_insert_vfork_catchpoint): new function, a default, a no-op - (child_remove_vfork_catchpoint): new function, a default, a no-op + (child_post_attach): New function, a default, a no-op + (child_insert_fork_catchpoint): New function, a default, a no-op + (child_remove_fork_catchpoint): New function, a default, a no-op + (child_create_catch_fork_hook): Deleted + (child_create_catch_vfork_hook): Deleted + (child_insert_vfork_catchpoint): New function, a default, a no-op + (child_remove_vfork_catchpoint): New function, a default, a no-op (child_can_follow_vfork_prior_to_exec ):new function, a default, a no-op - (child_insert_exec_catchpoint): new function, a default, a no-op - (child_remove_exec_catchpoint): new function, a default, a no-op - (child_has_execd): new function, a default, returns 0 - (child_reported_exec_events_per_exec_call): new function, a + (child_insert_exec_catchpoint): New function, a default, a no-op + (child_remove_exec_catchpoint): New function, a default, a no-op + (child_has_execd): New function, a default, returns 0 + (child_reported_exec_events_per_exec_call): New function, a default, returns 1 - (child_has_exited): new function, a default. - (child_core_file_to_sym_file): new function, a default, returns NULL. - (child_ops): initialize new target_ops vector fields to the + (child_has_exited): New function, a default. + (child_core_file_to_sym_file): New function, a default, returns NULL. + (child_ops): Initialize new target_ops vector fields to the child* functions. * infptrace.c: - (call_ptrace): for HPUX, handle additional requests : PT_CONTIN1, + (Call_ptrace): For HPUX, handle additional requests: Pt_CONTIN1, PT_STEP1. - (require_notification_of_events): add several signals to the - set of events requiring notification : PTRACE_SIGNAL, + (require_notification_of_events): Add several signals to the + set of events requiring notification: Ptrace_SIGNAL, PTRACE_EXEC, PTRACE_FORK, PTRACE_VFORK (child_acknowledge_created_inferior): This function is only defined if CHILD_ACKNOWLEDGE_CREATED_INFERIOR is defined. - (child_post_startup_inferior): function is only defined if + (child_post_startup_inferior): Function is only defined if CHILD_POST_STARTUP_INFERIOR is defiend. Also, now call require_notification_of_events. - (child_create_catch_fork_hook): deleted - (child_create_catch_vfork_hook): deleted - (child_insert_fork_catchpoint): new function - (child_remove_fork_catchpoint): new function - (child_insert_vfork_catchpoint): new function - (child_remove_vfork_catchpoint): new function - (child_has_forked): now enclosed by a CHILD_HAS_FORKED ifdef - (child_has_vforked): now enclosed by CHILD_HAS_VFORKED ifdef - (child_can_follow_vfork_prior_to_exec): new function - (child_insert_exec_catchpoint): new function - (attach): removed call to require_notification_of_events - (child_post_attach): new function, call to + (child_create_catch_fork_hook): Deleted + (child_create_catch_vfork_hook): Deleted + (child_insert_fork_catchpoint): New function + (child_remove_fork_catchpoint): New function + (child_insert_vfork_catchpoint): New function + (child_remove_vfork_catchpoint): New function + (child_has_forked): Now enclosed by a CHILD_HAS_FORKED ifdef + (child_has_vforked): Now enclosed by CHILD_HAS_VFORKED ifdef + (child_can_follow_vfork_prior_to_exec): New function + (child_insert_exec_catchpoint): New function + (attach): Removed call to require_notification_of_events + (child_post_attach): New function, call to require_notification_of_events moved here. - (child_pid_to_exec_file): new enclosed by CHILD_PID_TO_EXEC_FILE ifdef + (child_pid_to_exec_file): New enclosed by CHILD_PID_TO_EXEC_FILE ifdef introduced the concept of a saved_inferior_pid (hppa_require_attach): Add some code to decide if gdb is already attached to process. Can not figure this out via a ptrace call. - (hppa_insert_hw_watchpoint): new function - (hppa_remove_hw_watchpoint): new function + (hppa_insert_hw_watchpoint): New function + (hppa_remove_hw_watchpoint): New function * inftarg.c: - (child_attach_to_process): change position in file - (child_detach_from_process): change position in file + (child_attach_to_process): Change position in file + (child_detach_from_process): Change position in file * inftarg.c: - (child_attach_to_process): changed parameter to child_wait call + (child_attach_to_process): Changed parameter to child_wait call * inftarg.c: - (child_post_wait): new function declaration and definition + (child_post_wait): New function declaration and definition (ptrace_him): - change return value to a void. - change target_acknowledge_forked_child call to target_acknowledge_created_inferior - call target_post_startup_inferior rather than returning pid. - (child_attach_to_process): change param name, fail_if_already_attached + (child_attach_to_process): Change param name, fail_if_already_attached -> after_fork. Invert a couple of if-then-else statments. Use REQUIRE_ATTACH macro - (child_attach): change params in child_attach_to_process call - (child_require_attach): change params in child_attach_to_process call - (child_detach_to_process): change param name, + (child_attach): Change params in child_attach_to_process call + (child_require_attach): Change params in child_attach_to_process call + (child_detach_to_process): Change param name, fail_if_already_attached -> after_fork. Invert a couple of if-then-else statments. Use REQUIRE_DETACH macro - (child_detach): change params in child_detach_from_process call - (child_require_detach): change params in child_detach_from_process + (child_detach): Change params in child_detach_from_process call + (child_require_detach): Change params in child_detach_from_process call - (child_post_startup_inferior): new function - (child_acknowledge_created_inferior): new function - (child_clone_and_follow_inferior): new function - (child_post_follow_inferior_by_clone): new function - (child_create_catch_fork_hook): new function - (child_create_catch_vfork_hook): new function - (child_has_forked): new function - (child_has_vforked): new function - (child_post_follow_vfork): new function - (child_stop): no longer a static function - (child_pid_to_exec_file): new function + (child_post_startup_inferior): New function + (child_acknowledge_created_inferior): New function + (child_clone_and_follow_inferior): New function + (child_post_follow_inferior_by_clone): New function + (child_create_catch_fork_hook): New function + (child_create_catch_vfork_hook): New function + (child_has_forked): New function + (child_has_vforked): New function + (child_post_follow_vfork): New function + (child_stop): No longer a static function + (child_pid_to_exec_file): New function * inftarg.c: - (child_wait): child_pid becomes related pid. return pid + (child_wait): Child_pid becomes related pid. return pid rather than inferior_pid. Changes are in code handling fork and vfork * inftarg.c: Include gdb_stat.h and sys/unistd.h - (child_wait): new local variables. Check for live threads. + (child_wait): New local variables. Check for live threads. Check for syscall events - (child_thread_alive): no longer a static funct. - (ptrace_him): remove some code inserted in snap3 - (child_create_inferior): added a bunch of code to handle a + (child_thread_alive): No longer a static funct. + (ptrace_him): Remove some code inserted in snap3 + (child_create_inferior): Added a bunch of code to handle a bad interaction between start-up-with-shell and the HP catch-fork/catch-exec logic. I am ifdefing this for HPUXHPPA for now. - (child_has_syscall_event): new default target_ops function - (child_enable_exception_callback): new default target_ops function - (child_get_current_exception_event): new default target_ops function - (child_ops): 3 new fields + (child_has_syscall_event): New default target_ops function + (child_enable_exception_callback): New default target_ops function + (child_get_current_exception_event): New default target_ops function + (child_ops): 3 new fields - * inftarg.c: remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs + * inftarg.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs - * inftarg.c: reverted previous change. + * inftarg.c: Reverted previous change. - * infttrace.c (hppa_remove_hw_watchpoint): fix check for write + * infttrace.c (hppa_remove_hw_watchpoint): Fix check for write access hardware watchpoint. * infttrace.c (proc_wait): Rename from proc_wait. - * infttrace.c (require_notification_of_exec_events): new function; + * infttrace.c (require_notification_of_exec_events): New function; just notify of exec events, not all events, and just the specified pid, don't include it's children. - (child_acknowledge_created_inferior): call new function + (child_acknowledge_created_inferior): Call new function require_notification_of_exec_events instead of require_notification_of_events. - (child_post_startup_inferior): call require_notification_of_events + (child_post_startup_inferior): Call require_notification_of_events - * infttrace.c: changed all references to boolean to int. + * infttrace.c: Changed all references to boolean to int. Changed all references to TRUE and FALSE to 1 and 0. - * irix5-nat.c: - (symbol_add_stub): add params to call to symbol_file_add. - - * jv-lang.c: - (get_dynamics_objfile): add 2 more parameters to call to - allocate_objfile. - - * m3-nat.c: - (m3_create_inferior): add param to fork_inferior call - (m3_pid_to_exec_file): new function - (m3_ops): initializing new target ops vector fields. see list below. + * irix5-nat.c (symbol_add_stub): Add params to call to + symbol_file_add. - * m3-nat.c: - (m3_ops): adding new target_ops vector fields and - removing a few. see list below + * jv-lang.c (get_dynamics_objfile): Add 2 more parameters to call + to allocate_objfile. - * main.c: - (fputs_unfiltered): changes to prevent cursor form jumping around - in the TUI. Altered where tuiTermUnsetup and tuiTermSetup are - called + * main.c (fputs_unfiltered): Changes to prevent cursor form + jumping around in the TUI. Altered where tuiTermUnsetup and + tuiTermSetup are called * main.c (fputs_unfiltered): Changed function so that it checks to see if output is to a string buffer or to a @@ -1856,53 +1711,50 @@ Thu Dec 31 16:54:30 1998 David Taylor * main.c (fputs_unfiltered): Don't try to call the TUI's CommandCharCount functions when the TUI isn't enabled. - * main.c (fputs_unfiltered): change FILE to GDB_FILE. - - * main.c (main): If the user asks for the TUI, then disable - GDB/Tk. + * main.c (fputs_unfiltered): Change FILE to GDB_FILE. * main.c (main): If the user gives the --version or --help flags, disable the TUI. - * main.c (tui_version, xdb_commands, dbx_commands): new variables. - (main): new command line arguments --tui, --xdb, --dbx; add call + * main.c (tui_version, xdb_commands, dbx_commands): New variables. + (main): New command line arguments --tui, --xdb, --dbx; add call to tyiCleanUp via tuiDo to main loop. - (fputs_unfiltered): tui related changes. + (fputs_unfiltered): Tui related changes. - * main.c: - Define 2 new global variables, gdb_stdout and gdb_stderr of type GDB_FILE. + * main.c: Define 2 new global variables, gdb_stdout and gdb_stderr + of type GDB_FILE. (main): Allocate space for and initialize gdb_stdout and gdb_stdin. - * objfiles.c (find_pc_sect_section): make end condition be less + * objfiles.c (find_pc_sect_section): Make end condition be less than s->endaddr, not less than or equal to s->endaddr. * objfiles.c: - (allocate_objfile): 2 new parameters : user_loaded and is_solib. + (allocate_objfile): 2 new parameters: User_loaded and is_solib. When appropriate, record in the object file that it is user loaded. The run command can use this information to purge object file entries associated with the old inferior and keep user loaded object files loaded via the add-symbol-file command. - (objfile_purge_solibs): new function. deletes all objectfile entries + (objfile_purge_solibs): New function. deletes all objectfile entries that are not explicitly loaded by the user. * objfiles.c: - (objfile_relocate): check for LOC_INDIRECT - (find_pc_sect_section): change condition from + (objfile_relocate): Check for LOC_INDIRECT + (find_pc_sect_section): Change condition from pc < s->endaddr to pc <= s->endaddr * objfiles.h: - New variables : user_loaded and is_solib - (OBJF_SHARED): new macro. used to distinguish objfile for + New variables: User_loaded and is_solib + (OBJF_SHARED): New macro. used to distinguish objfile for shared library from "vanilla" objfile. - (allocate_objfile): add new parameters to function decl. - (objfile_purge_solibs): new function decl. + (allocate_objfile): Add new parameters to function decl. + (objfile_purge_solibs): New function decl. - * objfiles.h: Add some typedefs : ImportEntry, ExportEntry. - Add some new variables : import_list, import_list_size, + * objfiles.h: Add some typedefs: Importentry, ExportEntry. + Add some new variables: Import_list, import_list_size, export_list, export_list_size * osfsolib.c: - (symbol_add_stub): added params to call to symbol_file_add + (symbol_add_stub): Added params to call to symbol_file_add * pa/hpux1020.mh (NATDEPFILES): Add corelow.o, symbol table and solib files. @@ -1914,77 +1766,54 @@ Thu Dec 31 16:54:30 1998 David Taylor * pa/tm-hppa.h (proc_wait): Remove decl and macro. - * parse.c (write_dollar_variable): handle cases in which variables + * parse.c (write_dollar_variable): Handle cases in which variables besides the debugger ones start with $ and $$. - (parse_nested_classes_for_hpacc): new function. Parse a string that + (parse_nested_classes_for_hpacc): New function. Parse a string that is possibly a namespace / nested class specification. - (find_template_name_end): new function. + (find_template_name_end): New function. * procfs.c: - (procfs_init_inferior): return value is now a void. + (procfs_init_inferior): Return value is now a void. - * procfs.c: - (procfs_ops): initializing new target ops vector fields. see list below. + * procfs.c (procfs_ops): Initializing new target ops vector fields. see list below. * procfs.c: - (procfs_ops): adding new target_ops vector fields and + (procfs_ops): Adding new target_ops vector fields and removing a few. see list below - * procfs.c: added new fields to procfs_ops. - Necessary since we still have oldstyle initialization in + * procfs.c: Added new fields to procfs_ops. + Necessary since we still have oldstyle initialization in this file - * pyr-tdep.c (pyr_do_registers_info): change stdout to gdb_stdout. - (frame_locals_address): change stderr to gdb_stderr. - (frame_args_addr): ditto. + * pyr-tdep.c (pyr_do_registers_info): Change stdout to gdb_stdout. + (frame_locals_address): Change stderr to gdb_stderr. + (frame_args_addr): Ditto. - * pyr-xdep.c (fetch_inferior_registers): change stderr to + * pyr-xdep.c (fetch_inferior_registers): Change stderr to gdb_stderr. - * remote-udi.c: - (init_udi_ops): adding new target_ops vector fields and - removing a few. see list below - - * remote-udi.c: - (init_udi_ops): initializing new target ops vector fields. see list below. - - * remote-udi.c: - (udi_load): fixed params in call to symbol_file_add - - * remote-vx.c: - (vx_add_symbols): fixed params in call to symbol_file_add - - * remote-vx.c: - (init_vx_ops): adding new target_ops vector fields and - removing a few. see list below - (init_vx_run_ops): ditto - - * remote-vx.c: - (init_vx_ops): initializing new target ops vector fields. see list below. - (init_vx_run_ops):initializing new target ops vector fields. see list below. - - * serial.c (serial_close): call gdb_fclose, not fclose on a + * serial.c (serial_close): Call gdb_fclose, not fclose on a GDB_FILE. - * serial.c (serial_logchar): change chtype to ch_type. sigh. + * serial.c (serial_logchar): Change chtype to ch_type. sigh. - * solib.c (look_for_base): the parameter to file must be + * solib.c (look_for_base): The parameter to file must be of type FILE *. So cast exec_bfd -> iostream in the call to fileno as a FILE *, not a GDB_FILE *. This will work because exec_bfd -> iostream is declared and given a value in bdf and bfd will continue to use FILE rather than GDB_FILE. * solib.c: - (solib_add): remove references to exec_ops. + (solib_add): Remove references to exec_ops. * solib.c: - (solib_add): update exec_ops.to_sections + (solib_add): Update exec_ops.to_sections * solib.c: - (symbol_add_stub): added params to call to symbol_file_add + (symbol_add_stub): Added params to call to symbol_file_add * solib.h: - (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0. + (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to 0. functionality not implemented for this target. * solib.h: Added macro definitions. These macros generate @@ -1998,78 +1827,78 @@ Thu Dec 31 16:54:30 1998 David Taylor (SOLIB_IN_DYNAMIC_LINKER) (SOLIB_RESTART) - * somread.c (is_in_import_list): ditto. + * somread.c (is_in_import_list): Ditto. - * somread.c (som_symfile_read): added some comments + * somread.c (som_symfile_read): Added some comments - * somread.c (som_symfile_read): read in import and export lists. - (som_symtab_read): change test for dynamic executable. - (is_in_import_list): new function. Check if a given symbol name + * somread.c (som_symfile_read): Read in import and export lists. + (som_symtab_read): Change test for dynamic executable. + (is_in_import_list): New function. Check if a given symbol name is in the import list. - (init_import_symbols): new function. Read in and initialize the + (init_import_symbols): New function. Read in and initialize the som import list. - (init_export_symbols): new function. Read in and initialize the + (init_export_symbols): New function. Read in and initialize the som export list. * somread.c: - (som_symfile_read): fix missing comment delimiters + (som_symfile_read): Fix missing comment delimiters - * somsolib.c (DLD_FLAGS_MAPPRIVATE): new macro. + * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro. Define bit of __dld_flags in HP-UX a.out files. - (DLD_FLAGS_HOOKVALID): ditto. - (DLD_FLAGS_LISTVALID): ditto. - (DLD_FLAGS_BOR_ENABLE): ditto. - (som_solib_total_st_size): cumulative size in bytes of the + (DLD_FLAGS_HOOKVALID): Ditto. + (DLD_FLAGS_LISTVALID): Ditto. + (DLD_FLAGS_BOR_ENABLE): Ditto. + (som_solib_total_st_size): Cumulative size in bytes of the symbol tables of all shared objects on the so_list_head list. - (som_solib_st_size_threshhold_exceeded): threshold for adding symbols + (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols for shlibs. - (som_solib_sizeof_symbol_table): new function. Computes size of + (som_solib_sizeof_symbol_table): New function. Computes size of symbol table for a shlib. - (som_solib_load_symbols): new function. Load symbols from shlib. - (som_solib_add): detect if __dld_list is not valid. + (som_solib_load_symbols): New function. Load symbols from shlib. + (som_solib_add): Detect if __dld_list is not valid. Record main program's symbol table size. Load symbols if called from command line. Keep threshold into account when loading shlib symbols. - (som_solib_create_inferior_hook): use dld_flags macros. - (som_sharedlibrary_info_command): let user know if symbols were + (som_solib_create_inferior_hook): Use dld_flags macros. + (som_sharedlibrary_info_command): Let user know if symbols were not loaded. - (som_solib_restart): discard all the shlibs descriptors. - (_initialize_som_solib): chenge help message for auto-solib-add + (som_solib_restart): Discard all the shlibs descriptors. + (_initialize_som_solib): Chenge help message for auto-solib-add command. Set threshold for symbol table to 50 megabytes. - * somsolib.c (_initialize_som_solib): added call to som_solib_restart. - (som_solib_restart): new function - (som_solib_in_dynamic_linker): new function - (som_solib_desire_dynamic_linker_symbols): new function - (som_solib_unloaded_library_pathname): new function - (som_solib_loaded_library_pathname): new function - (som_solib_library_pathname): new function - (som_solib_have_unload_event): new function - (som_solib_have_load_event): new function - (som_solib_create_catch_unload_hook): new function - (som_solib_create_catch_load_hook): new function - (som_solib_create_inferior_hook): rewritten - dld_cache: new struct - addr_and_unwind_t: new struct + * somsolib.c (_initialize_som_solib): Added call to som_solib_restart. + (som_solib_restart): New function + (som_solib_in_dynamic_linker): New function + (som_solib_desire_dynamic_linker_symbols): New function + (som_solib_unloaded_library_pathname): New function + (som_solib_loaded_library_pathname): New function + (som_solib_library_pathname): New function + (som_solib_have_unload_event): New function + (som_solib_have_load_event): New function + (som_solib_create_catch_unload_hook): New function + (som_solib_create_catch_load_hook): New function + (som_solib_create_inferior_hook): Rewritten + dld_cache: New struct + addr_and_unwind_t: New struct (find_unwind_entry) added prototype - * somsolib.c (som_solib_create_inferior_hook): introduce new local + * somsolib.c (som_solib_create_inferior_hook): Introduce new local msymbol2 and change some msymbol's to msymbol2's -- was clobbering msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline, and ultimately core dumping with a SEGV. * somsolib.c: Include assert.h - (som_solib_mapped_entry): additional comments for text_addr, + (som_solib_mapped_entry): Additional comments for text_addr, text_link_addr, text_end, and tsd_start_addr fields. Commenting out 2 tsd fields, __data_start and __data_end. - (som_solib_add_solib_objfile): add params to calls to symbol_file_add. + (som_solib_add_solib_objfile): Add params to calls to symbol_file_add. Add some code for distinguishing between a shared library and other objfiles. This appears to be a prelude to thread local storage. - (som_solib_load_symbols): changes to printf statement + (som_solib_load_symbols): Changes to printf statement enclosed by SOLIB_DEBUG ifdef. - (som_solib_add): change comment to correctly specify path + (som_solib_add): Change comment to correctly specify path to end.o -- /opt/langtools/lib/end.o. changes to printf statement enclosed by SOLIB_DEBUG ifdef. Removed several SOLIB_DEBUG ifdefs and the associated printfs. @@ -2078,41 +1907,41 @@ Thu Dec 31 16:54:30 1998 David Taylor (som_solib_create_inferior_hook): Fix warning messages use correct path to end.o -- /opt/langtools/lib/end.o. Change control flow. No longer user early returns from function is cases of error. - (reset_inferior_pid): new function - (som_solib_remove_inferior_hook): new function - (so_lib_thread_start_addr): new function. used for tsd. + (reset_inferior_pid): New function + (som_solib_remove_inferior_hook): New function + (so_lib_thread_start_addr): New function. used for tsd. * somsolib.c: Removed references to ASSERT macro. - * somsolib.c: add debugging macro. - (struct som_solib_mapped_entry): add new field tsd_start_addr. - (struct so_list): added new field solib_addr. - (som_solib_add_solib_objfile): new function. - (som_solib_load_symbols): rewritten. - (som_solib_add): make sure we don't load the symbols in if the + * somsolib.c: Add debugging macro. + (struct som_solib_mapped_entry): Add new field tsd_start_addr. + (struct so_list): Added new field solib_addr. + (som_solib_add_solib_objfile): New function. + (som_solib_load_symbols): Rewritten. + (som_solib_add): Make sure we don't load the symbols in if the threshold was exceeded. - (som_solib_get_solib_by_pc): new function. Return the address of + (som_solib_get_solib_by_pc): New function. Return the address of handle of the shared library. - (som_solib_restart): disable breakpoints at restart. - (_initialize_som_solib): set threshold to 100 megabytes. + (som_solib_restart): Disable breakpoints at restart. + (_initialize_som_solib): Set threshold to 100 megabytes. - * somsolib.c: add include of fcntl.h so that O_RDONLY is defined. + * somsolib.c: Add include of fcntl.h so that O_RDONLY is defined. - * somsolib.h (DISABLE_UNSETTABLE_BREAK): new macro. - (PC_SOLIB): new macro. + * somsolib.h (DISABLE_UNSETTABLE_BREAK): New macro. + (PC_SOLIB): New macro. * somsolib.h: - (SOLIB_CREATE_CATCH_LOAD_HOOK): define - (SOLIB_CREATE_CATCH_UNLOAD_HOOK): define - (SOLIB_HAVE_LOAD_EVENT): define - (SOLIB_LOADED_LIBRARY_PATHNAME): define - (SOLIB_HAVE_UNLOAD_EVENT): define - (SOLIB_UNLOADED_LIBRARY_PATHNAME): define - (SOLIB_IN_DYNAMIC_LINKER): define - (SOLIB_RESTART): define + (SOLIB_CREATE_CATCH_LOAD_HOOK): Define + (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Define + (SOLIB_HAVE_LOAD_EVENT): Define + (SOLIB_LOADED_LIBRARY_PATHNAME): Define + (SOLIB_HAVE_UNLOAD_EVENT): Define + (SOLIB_UNLOADED_LIBRARY_PATHNAME): Define + (SOLIB_IN_DYNAMIC_LINKER): Define + (SOLIB_RESTART): Define * somsolib.h: - (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to use + (SOLIB_REMOVE_INFERIOR_HOOK): New macro. defined to use som_solib_remove_inferior_hook. * somsolib.h: @@ -2125,696 +1954,618 @@ Thu Dec 31 16:54:30 1998 David Taylor (som_solib_in_dynamic_linker) Fix prototypes to use type names, not parameter names. - * source.c (find_source_lines): make non static. - (open_source_file): ditto. - (source_full_path_of): new function. - (print_source_lines): rename to print_source_lines_base and make + * source.c (find_source_lines): Make non static. + (open_source_file): Ditto. + (source_full_path_of): New function. + (print_source_lines): Rename to print_source_lines_base and make static; formatting. - (print_source_lines): new function. - (forward_search_command): tui changes. - (reverse_search_command): tui changes. - (_initialize_source): add xdb and dbx compatibility commands. + (print_source_lines): New function. + (forward_search_command): Tui changes. + (reverse_search_command): Tui changes. + (_initialize_source): Add xdb and dbx compatibility commands. - * source.c (list_command): handle case of odd number of source + * source.c (list_command): Handle case of odd number of source lines to display. * source.c: - (source_full_path_of): new function. file was overlooked + (source_full_path_of): New function. file was overlooked in merge ;-/. - * stack.c (func_command): make high bound be <, not <=. + * stack.c (func_command): Make high bound be <, not <=. - * stack.c (_initialize_stack): for the backtrace command, delete + * stack.c (_initialize_stack): For the backtrace command, delete the help line about usage, since this has to be a valid help message for the 'where' command too. - * stack.c (current_frame_command): add a check for the + * stack.c (current_frame_command): Add a check for the existance of a stack. If there is no stack produce an error message and exit. * stack.c (down_silently_base, up_silently_base, args_plus_locals_info, print_frame_info_base, - print_stack_frame_base, print_stack_frame_base_stub): declare. - (print_frame_local_vars): add'l parameter. - (print_stack_frame_stub): new version created, old version renamed + print_stack_frame_base, print_stack_frame_base_stub): Declare. + (print_frame_local_vars): Add'l parameter. + (print_stack_frame_stub): New version created, old version renamed to show_and_print_stack_frame_base_stub. (print_stack_frame_base_stub, print_only_stack_frame_stub, show_and_print_stack_frame, print_only_stack_frame, stack_publish_stopped_with_no_frame, print_frame_info, show_stack_frame, backtrace_full_command, args_plus_locals_info, select_and_print_frame, select_and_maybe_print_frame, - current_frame_command, func_command): new functions. - (backtrace_command): new function, old renamed to + current_frame_command, func_command): New functions. + (backtrace_command): New function, old renamed to backtrace_command_1. - (print_block_frame_locals, print_frame_local_vars): additional + (print_block_frame_locals, print_frame_local_vars): Additional parameter, number of tabs. - (up_silently_command): new function, old renamed to + (up_silently_command): New function, old renamed to up_silently_command_base. - (down_silently_command): new function, old renamed to + (down_silently_command): New function, old renamed to down_silently_base. - (_initialize_stack): register new commands based on values of + (_initialize_stack): Register new commands based on values of xdb_commands and dbx_commands variables. - * stack.c (func_command): make high bound be <, not <=. + * stack.c (func_command): Make high bound be <, not <=. - * stack.c (parse_frame_specification): fix prototype to match + * stack.c (parse_frame_specification): Fix prototype to match function definition. - (show_and_print_stack_frame_stub): fix name. - (select_and_print_frame): change uncaught tuiDO call. + (show_and_print_stack_frame_stub): Fix name. + (select_and_print_frame): Change uncaught tuiDO call. - * stack.c (up_silent_base): rename from up_silently_command_base. + * stack.c (up_silent_base): Rename from up_silently_command_base. - * symfile.c (symbol_file_command): only call SOLIB_RESTART if it's + * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's defined. - * symfile.c (add_psymbol_with_dem_name_to_list): new function. + * symfile.c (add_psymbol_with_dem_name_to_list): New function. Adds a symbol with a long value to a psymtab. Differs from add_psymbol_to_list in taking both a mangled and a demangled name. - * symfile.c (compare_psymbols): call strcmp directly, instead of + * symfile.c (compare_psymbols): Call strcmp directly, instead of using macro. - * symfile.c (symbol_file_add): reindent portions. - (symbol_file_command): add call to tuiDo. + * symfile.c (symbol_file_add): Reindent portions. + (symbol_file_command): Add call to tuiDo. - * symfile.c (symbol_file_command): only call SOLIB_RESTART if it's + * symfile.c (symbol_file_command): Only call SOLIB_RESTART if it's defined. - * symfile.c (symfile_bfd_open): add code to call PXDB on hpux, if + * symfile.c (symfile_bfd_open): Add code to call PXDB on hpux, if the file has not already been processed by pxdb. Added define USE_PXDB. - * symfile.c (symfile_bfd_open): change parenthesis positioning + * symfile.c (symfile_bfd_open): Change parenthesis positioning around call to hpread_pxdb_check. - * symfile.c (symfile_bfd_open): make not static. - (RESET_HP_UX_GLOBALS): new macro. Resets globals when new symbol + * symfile.c (symfile_bfd_open): Make not static. + (RESET_HP_UX_GLOBALS): New macro. Resets globals when new symbol file loaded. - (USE_PXDB): not needed. Removed. - (symbol_file_add): add HP specific code to deal with pxdb. - (symbol_file_command): reset HP specific globals if new symbol file + (USE_PXDB): Not needed. Removed. + (symbol_file_add): Add HP specific code to deal with pxdb. + (symbol_file_command): Reset HP specific globals if new symbol file loaded. - (symfile_bfd_open): comment out checking for pxdb. - (reread_symbols): reset HP specific globals. + (symfile_bfd_open): Comment out checking for pxdb. + (reread_symbols): Reset HP specific globals. - * symfile.c (symfile_bfd_open): uncomment hpus specific code. + * symfile.c (symfile_bfd_open): Uncomment hpus specific code. * symfile.c: - (symbol_file_add): add user_loaded and is_solib parameters. + (symbol_file_add): Add user_loaded and is_solib parameters. fixed number of parameters in call to allocate_objfile - (symbol_file_command): added call to SOLIB_RESTART macro. + (symbol_file_command): Added call to SOLIB_RESTART macro. fixed number of parameters in calls to symbol_file_add. - (add_symbol_file_command): fixed number of parameters in calls to + (add_symbol_file_command): Fixed number of parameters in calls to symbol_file_add. - * symfile.c: added prototype for hpread_pxdb_check. + * symfile.c: Added prototype for hpread_pxdb_check. - * symfile.c: changed HPUX_SNAP1 ifdef to HPUXHPPA. enclosed calls to + * symfile.c: Changed HPUX_SNAP1 ifdef to HPUXHPPA. enclosed calls to RESET_HP_UX_GLOBALS with an HPUXHPPA ifdef - * symfile.h (symfile_bfd_open): add protptype. + * symfile.h (symfile_bfd_open): Add protptype. - * symfile.h: add prototype for add_psymbol_with_dem_name_to_list. + * symfile.h: Add prototype for add_psymbol_with_dem_name_to_list. - * symfile.h: clarify purpose of auto_solib_add. + * symfile.h: Clarify purpose of auto_solib_add. - * symmisc.c (maintenance_print_symbols): call gdb_fclose, not + * symmisc.c (maintenance_print_symbols): Call gdb_fclose, not fclose on a GDB_FILE* during cleanup. - (maintenance_print_psymbols): call gdb_fclose, not fclose on a + (maintenance_print_psymbols): Call gdb_fclose, not fclose on a GDB_FILE* during cleanup. - (maintenance_print_msymbols): call gdb_fclose, not fclose on a + (maintenance_print_msymbols): Call gdb_fclose, not fclose on a GDB_FILE* during cleanup. - * symmisc.c (maintenance_print_symbols): gdb_fclose now takes a + * symmisc.c (maintenance_print_symbols): Gdb_fclose now takes a GDB_FILE ** parameter. Fix the local GDB_FILE variables and the call to make_cleanup. - (maintenance_print_psymbols): ditto - (maintenance_print_msymbols): ditto + (maintenance_print_psymbols): Ditto + (maintenance_print_msymbols): Ditto - * symmisc.c (print_objfile_statistics): close quotes in + * symmisc.c (print_objfile_statistics): Close quotes in output strings. * symmisc.c: - (print_symbol): Add LOC_INDIRECT to switch statement + (Print_symbol): Add LOC_INDIRECT to switch statement (print_partial_symbols): Add LOC_INDIRECT to switch statement - * symtab.c (find_pc_sect_psymtab): high bounds should be <, not <=. - (find_pc_sect_symtab): ditto. + * symtab.c (find_pc_sect_psymtab): High bounds should be <, not <=. + (find_pc_sect_symtab): Ditto. - * symtab.c (hp_som_som_object_present): new flag to indicate HP + * symtab.c (hp_som_som_object_present): New flag to indicate HP compiled code. - (find_pc_sect_psymtab): change tests to make sure we are checking + (find_pc_sect_psymtab): Change tests to make sure we are checking the texthigh adress as well. - (lookup_transparent_type): new function. Look up a type name + (lookup_transparent_type): New function. Look up a type name in the struct_namespace. The type returned must not be opaque. - (find_pc_sect_symtab): make sure we check the address 'pc' itself, + (find_pc_sect_symtab): Make sure we check the address 'pc' itself, too. - (find_addr_symbol): prepare to handle LOC_INDIRECT address class, but + (find_addr_symbol): Prepare to handle LOC_INDIRECT address class, but leave it commented out. - (find_pc_sect_line): return correct information if pc is in import + (find_pc_sect_line): Return correct information if pc is in import or export stub (trampoline). - (decode_line_1): skip two chars, if they are '$$'. Like for HP's + (decode_line_1): Skip two chars, if they are '$$'. Like for HP's $$dyncall. Handle cases in which varaible and function names can start with $. - (overload_list_add_symbol): if cannot demangle name, use it as is. + (overload_list_add_symbol): If cannot demangle name, use it as is. Free string after use. - (make_symbol_overload_list): initialize oload_name to NULL and + (make_symbol_overload_list): Initialize oload_name to NULL and oload_name_len to 0. If demangle not successful, use name as it is. Free string after use. * symtab.c (lookup_symbol): Changed call to find_pc_sect_symtab, to the original find_pc_symtab, in HP added fragment. - * symtab.c (lookup_symbol): change HPUX_SNAP1 ifdef to a HPUXHPPA ifdef + * symtab.c (lookup_symbol): Change HPUX_SNAP1 ifdef to a HPUXHPPA ifdef - * symtab.c (lookup_symbol): ifdef the searching of symbol in the + * symtab.c (lookup_symbol): Ifdef the searching of symbol in the minimal symbol tables, for hpux we move this check at the end of the function. - Before we error out if symbol is not found in the symtab, look + Before we error out if symbol is not found in the symtab, look in the statics. Before erroring out if static symbol not found look in the globals. - * symtab.c (lookup_symbol): return symbol as soon as found. - (decode_line_1): check whether we have a conditional break. Temporarily + * symtab.c (lookup_symbol): Return symbol as soon as found. + (decode_line_1): Check whether we have a conditional break. Temporarily remove it from the line, to not confure perenthesis checking. Handle namespaces. - (overload_list_add_symbol): new function. Overload + (overload_list_add_symbol): New function. Overload resolution support. - (make_symbol_overload_list): ditto. + (make_symbol_overload_list): Ditto. * symtab.c: - (find_template_name_end): new prototype decl. - (lookup_symbol): when a global or static symbol shows up in the + (find_template_name_end): New prototype decl. + (lookup_symbol): When a global or static symbol shows up in the psymtab table, but not the symtab table, tell the user that - the symbol may be an inlined function or a template function and + the symbol may be an inlined function or a template function and provide some guidance to the user about how to more fully specify the symbol. - (lookup_transparent_type): when a global or static symbol shows up + (lookup_transparent_type): When a global or static symbol shows up in the psymtab table, but not the symtab table, tell the user that - the symbol may be an inlined function or a template function and + the symbol may be an inlined function or a template function and provide some guidance to the user about how to more fully specify the symbol. - (decode_line_1): handle template function specification when decoding a + (decode_line_1): Handle template function specification when decoding a line. May need to be ifdefed for HP's aCC? - (_initialize_symtab): handle dbx commands. + (_initialize_symtab): Handle dbx commands. - * symtab.h (address_class): add new address calss for + * symtab.h (address_class): Add new address calss for LOC_THREAD_LOCAL_STATIC and LOC_INDIRECT. - (lookup_transparent_type): add prototype. - (exception_event_kind): new enum for exception catchpoints. - (exception_event_record): new structure for exception catchpoints. - (CURRENT_EXCEPTION_KIND): new macro. - (CURRENT_EXCEPTION_CATCH_SAL): new macro. - (CURRENT_EXCEPTION_CATCH_LINE): new macro. - (CURRENT_EXCEPTION_CATCH_FILE): new macro. - (CURRENT_EXCEPTION_CATCH_PC): new macro. - (CURRENT_EXCEPTION_THROW_SAL): new macro. - (CURRENT_EXCEPTION_THROW_LINE): new macro. + (lookup_transparent_type): Add prototype. + (exception_event_kind): New enum for exception catchpoints. + (exception_event_record): New structure for exception catchpoints. + (CURRENT_EXCEPTION_KIND): New macro. + (CURRENT_EXCEPTION_CATCH_SAL): New macro. + (CURRENT_EXCEPTION_CATCH_LINE): New macro. + (CURRENT_EXCEPTION_CATCH_FILE): New macro. + (CURRENT_EXCEPTION_CATCH_PC): New macro. + (CURRENT_EXCEPTION_THROW_SAL): New macro. + (CURRENT_EXCEPTION_THROW_LINE): New macro. (CURRENT_EXCEPTION_THROW_FILE) new macro.: - (CURRENT_EXCEPTION_THROW_PC): new macro. + (Current_EXCEPTION_THROW_PC): New macro. - * symtab.h(make_symbol_overload_list): add prototype. + * symtab.h(make_symbol_overload_list): Add prototype. * symtab.h: - (symbol_file_add): add new params to function decl. + (symbol_file_add): Add new params to function decl. - * target.c (cleanup_target): changed casting of default functions for + * target.c (cleanup_target): Changed casting of default functions for to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid of warnings. - * target.c (cleanup_target): changed the default functions for + * target.c (cleanup_target): Changed the default functions for to_pid_to_exec_file and to_core_file_to_sym_file - * target.c (cleanup_target): fixed PARAMS for to_has_syscall_event - - * target.c (cleanup_target): syntax error, mismatched paranthesis. - - * target.c (debug_to_open): change stderr to gdb_stderr. - (debug_to_close): ditto. - (debug_to_attach): ditto. - (debug_to_post_attach): ditto. - (debug_to_require_attach): ditto. - (debug_to_detach): ditto. - (debug_to_require_detach): ditto. - (debug_to_resume): ditto. - (debug_to_wait): ditto. - (debug_to_post_wait): ditto. - (debug_to_fetch_registers): ditto. - (debug_to_store_registers): ditto. - (debug_to_prepare_to_store): ditto. - (debug_to_xfer_memory): ditto. - (debug_to_files_info): ditto. - (debug_to_insert_breakpoint): ditto. - (debug_to_remove_breakpoint): ditto. - (debug_to_terminal_init): ditto. - (debug_to_terminal_inferior): ditto. - (debug_to_terminal_ours_for_output): ditto. - (debug_to_terminal_ours): ditto. - (debug_to_terminal_info): ditto. - (debug_to_kill): ditto. - (debug_to_load): ditto. - (debug_to_lookup_symbol): ditto. - (debug_to_create_inferior): ditto. - (debug_to_post_startup_inferior): ditto. - (debug_to_acknowledge_created_inferior): ditto. - (debug_to_clone_and_follow_inferior): ditto. - (debug_to_post_follow_inferior_by_clone): ditto. - (debug_to_insert_fork_catchpoint): ditto. - (debug_to_remove_fork_catchpoint): ditto. - (debug_to_insert_vfork_catchpoint): ditto. - (debug_to_remove_vfork_catchpoint): ditto. - (debug_to_has_forked): ditto. - (debug_to_has_vforked): ditto. - (debug_to_can_follow_vfork_prior_to_exec): ditto. - (debug_to_post_follow_vfork): ditto. - (debug_to_insert_exec_catchpoint): ditto. - (debug_to_remove_exec_catchpoint): ditto. - (debug_to_has_execd): ditto. - (debug_to_reported_exec_events_per_exec_call): ditto. - (debug_to_has_syscall_event): ditto. - (debug_to_has_exited): ditto. - (debug_to_mourn_inferior): ditto. - (debug_to_can_run): ditto. - (debug_to_notice_signals): ditto. - (debug_to_thread_alive): ditto. - (debug_to_stop): ditto. - (debug_to_enable_exception_callback): ditto. - (debug_to_get_current_exception_event): ditto. - (debug_to_pid_to_exec_file): ditto. - (debug_to_core_file_to_sym_file): ditto. + * target.c (cleanup_target): Fixed PARAMS for to_has_syscall_event + + * target.c (cleanup_target): Syntax error, mismatched paranthesis. * target.c: - (default_clone_and_follow_inferior): new funct prototype declaration + (Default_clone_and_follow_inferior): New funct prototype declaration and function definition - (dummy_target) : More target_ops vector changes for HPUX + (dummy_target): More target_ops vector changes for HPUX new fields. ifdefed for HPUX_SNAP2. New fields are to_post_wait, to_post_startup_inferior to_acknowledge_created_inferior, to_clone_and_follow_inferior, to_post_follow_inferior_by_clone, to_create_catch_fork_hook, to_create_catch_vfork_hook, to_has_forked, to_has_vforked, to_post_follow_vfork, to_pid_to_exec_file - (de_fault): add new HPUX specific target_ops operations to + (de_fault): Add new HPUX specific target_ops operations to the de_fault macro - (INHERIT): add new HPUX specific target_ops operations to the + (INHERIT): Add new HPUX specific target_ops operations to the INHERIT macro - (find_default_clone_and_follow_inferior): new funct definition - (debug_to_post_wait): new funct - (debug_to_post_startup_inferior): new funct - (debug_to_acknowledge_created_inferior): new funct - (debug_to_clone_and_follow_inferior): new funct - (debug_to_post_follow_inferior_by_clone): new funct - (debug_to_create_catch_fork_hook): new funct - (debug_to_create_catch_vfork_hook): new funct - (debug_to_has_forked): new funct - (debug_to_has_vforked): new funct - (debug_to_post_follow_vfork): new funct - (setup_target_debug): initialize new target_ops vector fields. + (find_default_clone_and_follow_inferior): New funct definition + (debug_to_post_wait): New funct + (debug_to_post_startup_inferior): New funct + (debug_to_acknowledge_created_inferior): New funct + (debug_to_clone_and_follow_inferior): New funct + (debug_to_post_follow_inferior_by_clone): New funct + (debug_to_create_catch_fork_hook): New funct + (debug_to_create_catch_vfork_hook): New funct + (debug_to_has_forked): New funct + (debug_to_has_vforked): New funct + (debug_to_post_follow_vfork): New funct + (setup_target_debug): Initialize new target_ops vector fields. * target.c: - (cleanup_target): fixed the return type on a few of the + (Cleanup_target): Fixed the return type on a few of the default function values. * target.c: - (dummy_target): Add 3 new fields - (nosupport_runtime): new function, used in cleanup_target - (cleanup_target): changes in the de_fault macro, both to + (Dummy_target): Add 3 new fields + (nosupport_runtime): New function, used in cleanup_target + (cleanup_target): Changes in the de_fault macro, both to accomodate the new target_ops vector fields and to use more accurate default functions. (update_current_target): Add new target_ops vector fields to the INHERIT macro - (generic_mourn_inferior): the call to breakpoint_init_inferior now takes a + (generic_mourn_inferior): The call to breakpoint_init_inferior now takes a parameter (normal_pid_to_str): Adding a \0 to the end of buf. - (debug_to_has_syscall_event): new func - (debug_to_enable_exception_callback): new func - (debug_to_get_current_exception_event): new func - (setup_target_debug): initialize the 3 new target_ops vector fields + (debug_to_has_syscall_event): New func + (debug_to_enable_exception_callback): New func + (debug_to_get_current_exception_event): New func + (setup_target_debug): Initialize the 3 new target_ops vector fields * target.c: - (struct signals): fix message associated with SIGRETRACT. + (Struct signals): Fix message associated with SIGRETRACT. * target.c: - (dummy_target): fix syntax error - (cleanup_target): changed the default values for the new + (Dummy_target): Fix syntax error + (cleanup_target): Changed the default values for the new target_ops vector fields. HP folks inappropriately set most of them to noprocess(). They should be a mixture of ignore() and return_zero(). * target.c: - (dummy_target): Add new target_ops vector fields and their initializations + (Dummy_target): Add new target_ops vector fields and their initializations (cleanup_target): Added new new target_ops vector fields to the de_fault macro definition. (update_current_target): Added new new target_ops vector fields to the INHERIT macro definition - (return_one): new function, used by the de_fault macro - (debug_to_post_attach): new function - (debug_to_wait): added new cases : TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, + (return_one): New function, used by the de_fault macro + (debug_to_post_attach): New function + (debug_to_wait): Added new cases: Target_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD - (debug_to_insert_fork_catchpoint): new function - (debug_to_remove_fork_catchpoint): new function - (debug_to_insert_vfork_catchpoint): new function - (debug_to_remove_vfork_catchpoint): new function - (debug_to_can_follow_vfork_prior_to_exec): new function - (debug_to_insert_exec_catchpoint): new function - (debug_to_remove_exec_catchpoint): new function - (debug_to_core_file_to_sym_file): new function - (setup_target_debug): give new fields in current_target target_ops vector values. - - * target.c: HP merge, 4/15/98 snapshot + (debug_to_insert_fork_catchpoint): New function + (debug_to_remove_fork_catchpoint): New function + (debug_to_insert_vfork_catchpoint): New function + (debug_to_remove_vfork_catchpoint): New function + (debug_to_can_follow_vfork_prior_to_exec): New function + (debug_to_insert_exec_catchpoint): New function + (debug_to_remove_exec_catchpoint): New function + (debug_to_core_file_to_sym_file): New function + (setup_target_debug): Give new fields in current_target target_ops vector values. + + * target.c: Hp merge, 4/15/98 snapshot There are new target_ops fields that pertain only to HPUX. All the changes relate to this. Fist, new fields are added to the dummy_target target_ops - vector : to_require_attach, to_require_detach. + vector: To_require_attach, to_require_detach. - * target.c: remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs + * target.c: Remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs - * thread.c (info_threads_command): call print_only_stack_frame + * thread.c (info_threads_command): Call print_only_stack_frame instead of print_stack_frame. - (_initialize_thread): make t an alias for thread only if + (_initialize_thread): Make t an alias for thread only if xdb_commands is not set. - * thread.c (thread_command): if no arguments, don't generate an + * thread.c (thread_command): If no arguments, don't generate an error, instead tell the user which thread is current. - (info_threads_commands): don't lose the users position within the + (info_threads_commands): Don't lose the users position within the current thread -- remember it and then restore it. * thread.c: - (struct thread_info): add stepping_through_sigtramp field - (add_thread): initialize stepping_through_sigtramp field - (load_infrun_state): add stepping_through_sigtramp param and + (struct thread_info): Add stepping_through_sigtramp field + (add_thread): Initialize stepping_through_sigtramp field + (load_infrun_state): Add stepping_through_sigtramp param and make sure it gets assigned a value. - (save_infrun_state): add stepping_through_sigtramp param and + (save_infrun_state): Add stepping_through_sigtramp param and make sure that the value gets saved. - (info_threads_command): ifdefing some local variables and + (info_threads_command): Ifdefing some local variables and code for HPUXHPPA. HP folks want print the tid rather than pid? Also, looks like the HP folks solved the same thread switching problem that 4.17 solves. Taking 4.17. - (restore_current_thread): print out the current frame after + (restore_current_thread): Print out the current frame after switching threads. - (thread_apply_all_command): ifdefing a print statement for + (thread_apply_all_command): Ifdefing a print statement for HPUXHPPA. The HP folks want to print out a tid rather than pid? - (thread_apply_command): ifdefing a print statement for + (thread_apply_command): Ifdefing a print statement for HPUXHPPA. The HP folks want to print out a tid rather than pid? - (thread_command): decided not to take HP change. + (thread_command): Decided not to take HP change. * thread.c: Fixing gdb core dump problem causing many testsuite failures. - (add_thread): remove call to bpstat_clear, initialize + (add_thread): Remove call to bpstat_clear, initialize tp->stepping_through_solib_catchpoints = NULL; - * thread.c: changes for catchpoints, shared libaries, - (thread_info) : additional fields in the thread_info struct + * thread.c: Changes for catchpoints, shared libaries, + (thread_info): Additional fields in the thread_info struct for stepping_through_solib_after_catch and stepping_through_solib_catchpoints. - (add_thread): initialize the new thread_info fields. - (load_infrun_state) : additional parameters for handling + (add_thread): Initialize the new thread_info fields. + (load_infrun_state): Additional parameters for handling catchpoints and shared libraries. - (save_infrun_state): additional parameters for handling + (save_infrun_state): Additional parameters for handling catchpoints and shared libraries. - * top.c (command_loop): initialize space_at_cmd_start to 0. - - * top.c (set_prompt): new function. - - * top.c (togglelist, stoplist): new command lists. - (command_loop): tui changes -- paranoia to make sure + * top.c (command_loop): Initialize space_at_cmd_start to 0. + (set_prompt): New function. + (togglelist, stoplist): New command lists. + (command_loop): Tui changes -- paranoia to make sure insert mode is off when not editing. - (quit_force): clean up tui on exit. - (init_main): make definition of info status command dependent upon + (quit_force): Clean up tui on exit. + (init_main): Make definition of info status command dependent upon dbx mode not being set. - - * top.c: - (fputs_unfiltered_hook): changed stream parameter from FILE + (fputs_unfiltered_hook): Changed stream parameter from FILE to GDB_FILE - (flush_hook): changed stream parameter from FILE to GDB_FILE + (flush_hook): Changed stream parameter from FILE to GDB_FILE - * top.h: declare it. + * top.h (set_prompt): Declare. - * typeprint.c (whatis_exp): decide real runtime type. For the vtable + * typeprint.c (whatis_exp): Decide real runtime type. For the vtable case. - - * utils.c: - (query): changes to prevent cursor from jumping around in the + * utils.c (query): Changes to prevent cursor from jumping around in the TUI. Call tuiBufferGetc explicitly, rather than passing it into tuiDo. The tuiDo function does some additional work that is inappropriate when handling queries. - - * utils.c - (GDB_FILE_ISATTY): new macro that takes a GDB_FILE param and + (GDB_FILE_ISATTY): New macro that takes a GDB_FILE param and determines whether or not it's using a tty. (gdb_file_isatty); called by the GDB_FILE_ISATTY macro. Does the actual work (init_page_info): Call GDB_FILE_ISATTY rather than ISATTY - (print_spaces): fix parameter to fputc. fix call to + (print_spaces): Fix parameter to fputc. fix call to gdb_file_adjust_strbuf. - (gdb_file_init_astring): fix parameter to xmalloc - (gdb_file_deallocate): new function to deallocate + (gdb_file_init_astring): Fix parameter to xmalloc + (gdb_file_deallocate): New function to deallocate a GDB_FILE object and possibly a string buffer - - * utils.c (gdb_file_init_astring): initialize buffer as the empty - string. - Indent GNU style. - - - * utils.c (gdb_fopen): gdb_fopen is called if the GDB_FILE object is + (gdb_file_init_astring): Initialize buffer as the empty + string. Indent GNU style. + (gdb_fopen): Gdb_fopen is called if the GDB_FILE object is actually afile rather than astring. The routine now allocates space for a GDB_FILE object and initializes its fields in addition to - performing an fopen. - (gdb_flush): fix the parameter passed into fflush. It's now stream->ts_filestream. - (gdb_fclose): Pass in an object of type GDB_FILE **. Fix parameter to fclose. It's - now tmpstream->ts_filestream. Make sure to free the GDB_FILE object and set the - GDB_FILE * object to NULL. - (gdb_adjust_strbuf): new function. Determine if the current ts_strbuf field - contains sufficient space to concatenate a string of length n on the end. - If not, then reallocate the ts_strbuf. - (print_spaces): Check to see if the GDB_FILE is afile or astring. If it is - astring, then adjust the size of the ts_strbuf field and concatenate the - correct number of spaces onto the end of the buffer. Otherwise continue to - use fputc. - (gdb_file_get_strbuf): new function. return a ptr to the ts_strbuf field in a - GDB_FILE object - (gdb_file_init_astring): new function to allocate space for and initialize - a GDB_FILE object when it is an astring. - - * utils.c (set_width): declare it. - (pagination_enabled): define it. - (query): tui changes. - (init_page_info, set_width): new functions. - (set_width_command): call set_width. - (_initialize_utils): replace termcap stuff with call to + performing an fopen. + (gdb_flush): Fix the parameter passed into fflush. It's now + stream->ts_filestream. + (gdb_fclose): Pass in an object of type GDB_FILE **. Fix parameter + to fclose. It's now tmpstream->ts_filestream. Make sure to free + the GDB_FILE object and set the GDB_FILE * object to NULL. + (gdb_adjust_strbuf): New function. Determine if the current + ts_strbuf field contains sufficient space to concatenate a string + of length n on the end. If not, then reallocate the ts_strbuf. + (print_spaces): Check to see if the GDB_FILE is afile or + astring. If it is astring, then adjust the size of the ts_strbuf + field and concatenate the correct number of spaces onto the end of + the buffer. Otherwise continue to use fputc. + (gdb_file_get_strbuf): New function. return a ptr to the ts_strbuf + field in a GDB_FILE object. + (gdb_file_init_astring): New function to allocate space for and + initialize a GDB_FILE object when it is an astring. + (set_width): Declare it. + (pagination_enabled): Define it. + (query): Tui changes. + (init_page_info, set_width): New functions. + (set_width_command): Call set_width. + (_initialize_utils): Replace termcap stuff with call to init_page_info; if xdb_commands set, define am and sm commands; define pagination as a set/show command. - - * utils.c (vfprintf_maybe_filtered): change FILE to GDB_FILE. - (fputs_maybe_filtered): ditto. - (print_spaces): ditto. - (gdb_printchar): ditto. - (gdb_flush): ditto. - (fputs_filtered): ditto. - (vfprintf_filtered): ditto. - (vfprintf_unfiltered): ditto. - (fprintf_filtered): ditto. - (fprintf_unfiltered): ditto. - (fprintfi_filtered): ditto. - (print_spaces_filtered): ditto. - (fprintf_symbol_filtered): ditto. - (gdb_fclose): new function. - - * valops.c (call_function_by_hand): assign to param_type only + (vfprintf_maybe_filtered): Change FILE to GDB_FILE. + (fputs_maybe_filtered): Ditto. + (print_spaces): Ditto. + (gdb_printchar): Ditto. + (gdb_flush): Ditto. + (fputs_filtered): Ditto. + (vfprintf_filtered): Ditto. + (vfprintf_unfiltered): Ditto. + (fprintf_filtered): Ditto. + (fprintf_unfiltered): Ditto. + (fprintfi_filtered): Ditto. + (print_spaces_filtered): Ditto. + (fprintf_symbol_filtered): Ditto. + (gdb_fclose): New function. + + * valops.c (call_function_by_hand): Assign to param_type only if function has parameters. - * valops.c (call_function_by_hand): ifdef the + * valops.c (call_function_by_hand): Ifdef the HP_COMPILED_TARGET stuff. - (value_arg_coerce): ditto. + (value_arg_coerce): Ditto. - * valops.c (call_function_by_hand): make sure param_type is + * valops.c (call_function_by_hand): Make sure param_type is initialized to NULL. - * valops.c (find_rt_vbase_offset): add parameter to value_at. - (value_rtti_type): ditto. - (value_full_object): ditto. + * valops.c (find_rt_vbase_offset): Add parameter to value_at. + (value_rtti_type): Ditto. + (value_full_object): Ditto. - * valops.c (search_struct_field_aux): fixed mismatching parenths - + * valops.c (search_struct_field_aux): Fixed mismatching parenths - * valops.c (search_struct_field_aux): make sure TYPE_TAG_NAME + * valops.c (search_struct_field_aux): Make sure TYPE_TAG_NAME is not null before copying it. - * valops.c (search_struct_field_aux): set found_class_name to null + * valops.c (search_struct_field_aux): Set found_class_name to null if class has no name (anon unions case). Adjust base_addr computation. - * valops.c (value_arg_coerce): change final arg to int. + * valops.c (value_arg_coerce): Change final arg to int. - * valops.c (value_arg_coerce): remove the conditional on HP + * valops.c (value_arg_coerce): Remove the conditional on HP compiled target, for doing coercion of float to double. Removed third parameter, using_gcc. - (call_function_by_hand): do not use HP_COMPILED_TARGET, just + (call_function_by_hand): Do not use HP_COMPILED_TARGET, just use the gcc_compiled variable. - * valops.c (value_cast): take case of the enclosing_type and + * valops.c (value_cast): Take case of the enclosing_type and pointer_to_offset fields. - (value_at): use VALUE_CONTENTS_ALL_RAW - (value_fetch_lazy): ditto - (value_assign): handle enclosing_type, embedded_offset and + (value_at): Use VALUE_CONTENTS_ALL_RAW + (value_fetch_lazy): Ditto + (value_assign): Handle enclosing_type, embedded_offset and pointed_to_offset fields. - (value_repeat): use VALUE_CONTENTS_ALL_RAW and VALUE_ENCLOSING_TYPE. - (value_ind): set enclosing_type and embedded_offset correctly, + (value_repeat): Use VALUE_CONTENTS_ALL_RAW and VALUE_ENCLOSING_TYPE. + (value_ind): Set enclosing_type and embedded_offset correctly, for a pointer value being dereferenced. Target memory bytes corresponding to the size of the enclosing type are retreived. - (value_addr): handle enclosing_type and pointed_to_offset. - (value_push): use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE. - (value_arg_coerce): coerce floats to doubles only if gcc was not + (value_addr): Handle enclosing_type and pointed_to_offset. + (value_push): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE. + (value_arg_coerce): Coerce floats to doubles only if gcc was not used to compile the target. - (call_function_by_hand): handle pointers to functions as paramters. - (value_array): use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE. - (search_struct_method): produce more informative error message. - (find_rt_vbase_offset): deal with negative offsets. - (value_find_oload_method_list): new function. Return the list of + (call_function_by_hand): Handle pointers to functions as paramters. + (value_array): Use VALUE_CONTENTS_ALL and VALUE_ENCLOSING_TYPE. + (search_struct_method): Produce more informative error message. + (find_rt_vbase_offset): Deal with negative offsets. + (value_find_oload_method_list): New function. Return the list of overloaded methods of a specified name. - (find_method_list): new function. Search through the methods of an + (find_method_list): New function. Search through the methods of an object (and its bases) to find a specified method. - (value_full_object): new function. Given a value, check its real + (value_full_object): New function. Given a value, check its real run-time type. - (value_rtti_target_type): new function. Given a pointer value V, find + (value_rtti_target_type): New function. Given a pointer value V, find the real (RTTI) type of the object it points to. - (value_rtti_type): new function. Find the real run-time type of a + (value_rtti_type): New function. Find the real run-time type of a value using RTTI. - * valops.c: include gdbcmd.h + * valops.c: Include gdbcmd.h Set global overload_resolution to 0. - (find_function_in_inferior): modify error message. - (value_allocate_space_in_inferior): modify error message. - (value_cast): deal with HP/aCC peculiarities. - (value_of_variable): use SYMBOL_SOURCE_NAME instead of SYMBOL_NAME. - (value_addr): modify address value by adding the embedded offset. - (value_ind): modify the address of the object by the pointed_to_offset. - (call_function_by_hand): do not do any extra alignment if not needed. + (find_function_in_inferior): Modify error message. + (value_allocate_space_in_inferior): Modify error message. + (value_cast): Deal with HP/aCC peculiarities. + (value_of_variable): Use SYMBOL_SOURCE_NAME instead of SYMBOL_NAME. + (value_addr): Modify address value by adding the embedded offset. + (value_ind): Modify the address of the object by the pointed_to_offset. + (call_function_by_hand): Do not do any extra alignment if not needed. Fetch the return value from the stack rather then from the register, for the hppa architecture. - (search_struct_field): rewritten. Now this function uses + (search_struct_field): Rewritten. Now this function uses search_struct_field_aux to do all the work. - (search_struct_field_aux): new function. This is the old + (search_struct_field_aux): New function. This is the old search_struct_field rewritten. - (find_rt_vbase_offset): give error if virtual table pointer is not good. - (find_overload_match): new function. Find the best function that + (find_rt_vbase_offset): Give error if virtual table pointer is not good. + (find_overload_match): New function. Find the best function that matches on the argument types according to the overload resolution rules. - (_initialize_valops): add new set/show command for overload-resolution. + (_initialize_valops): Add new set/show command for overload-resolution. - * value.h (VALUE_POINTED_TO_OFFSET): new macro. + * value.h (VALUE_POINTED_TO_OFFSET): New macro. Add field pointed_to_offset to value structure. Add prototypes for new functions in valops.c. - * value.h (write_register_pid): change prototype to match + * value.h (write_register_pid): Change prototype to match function. - * value.h: HP merge, 4/15/98 snapshot + * value.h: Hp merge, 4/15/98 snapshot Added parameter to val_print func decl. Added new macro, VALUE_EMBEDDED_OFFSET, and new func decl, find_rt_vbase_offset, for C++ support. - * values.c (allocate_value): allocate also for value_embedded_offset + * values.c (allocate_value): Allocate also for value_embedded_offset and value_enclosing_type. - (value_copy): copy value_embedded_offset and value_enclosing_type too. + (value_copy): Copy value_embedded_offset and value_enclosing_type too. Use all_raw in copying the value itself. - (value_primitive_field): add handling of base subobjects. + (value_primitive_field): Add handling of base subobjects. - * values.c (value_copy): copy the pointed_to_offset as well. - (allocate_value): allocate the pointed_to_offset as well. - (value_virtual_fn_field): rewrite. + * values.c (value_copy): Copy the pointed_to_offset as well. + (allocate_value): Allocate the pointed_to_offset as well. + (value_virtual_fn_field): Rewrite. - * values.c (value_primitive_field): adjust embedded offset and + * values.c (value_primitive_field): Adjust embedded offset and offset calculation. - * values.c (value_static_field): take into consideration that static + * values.c (value_static_field): Take into consideration that static data members can be minimal symbols too. - * values.c (value_virtual_fn_field): fix call to value_at. + * values.c (value_virtual_fn_field): Fix call to value_at. - * win32-nat.c (child_ops): Remove unneeded settings. - - * win32-nat.c: - (handle_load_dll): added params to call to symbol_file_add. - - * win32-nat.c: - (init_child_ops): adding new target_ops vector fields and - removing a few. see list below - - * win32-nat.c: - (init_child_ops): initializing new target ops vector fields. see list below. + * win32-nat.c (handle_load_dll): Added params to call to symbol_file_add. Other changes have to do with XDB compatability. Leave oout for now. - defs.h (vfprintf_filtered): change FILE to GDB_FILE in decl. - (fprintf_filtered): ditto. - (fprintfi_filtered): ditto. - (vfprintf_unfiltered): ditto. - (fprintf_unfiltered): ditto. + defs.h (vfprintf_filtered): Change FILE to GDB_FILE in decl. + (fprintf_filtered): Ditto. + (fprintfi_filtered): Ditto. + (vfprintf_unfiltered): Ditto. + (fprintf_unfiltered): Ditto. - infcmd.c (_initialize_infcmd): if xdb_commands is set, make S an + infcmd.c (_initialize_infcmd): If xdb_commands is set, make S an alias for next and define R, lr, g. Define go. - pyr-tdep.c (pyr_print_insn): change FILE to GDB_FILE. + pyr-tdep.c (pyr_print_insn): Change FILE to GDB_FILE. - * breakpoint.c (create_temp_exception_breakpoint): #if it out -- + * breakpoint.c (create_temp_exception_breakpoint): #If it out -- nothing calls it. - (bpstat_stop_status): don't call SOLIB_HAVE_LOAD_EVENT if it's not + (bpstat_stop_status): Don't call SOLIB_HAVE_LOAD_EVENT if it's not defined; don't call SOLIB_HAVE_UNLOAD_EVENT if it's not defined. - (bpstat_get_triggered_catchpoints): if we don't have shared + (bpstat_get_triggered_catchpoints): If we don't have shared library support, then don't call SOLIB_LOADED_LIBRARY_PATHNAME nor SOLIB_UNLOADED_LIBRARY_PATHNAME. - (watch_command_1): don't require a run before a watch command + (watch_command_1): Don't require a run before a watch command unless we're on HP [it's an HP OS bug, not a generic limitation] - (catch_load_command_1): don't define if no shared libraries. - (catch_command_1): don't claim to support fork catchpoints unless + (catch_load_command_1): Don't define if no shared libraries. + (catch_command_1): Don't claim to support fork catchpoints unless CHILD_INSERT_FORK_CATCHPOINT is defined, don't claim to support vfork catchpoints unless CHILD_INSERT_VFORK_CATCHPOINT is defined, don't clain to support shared library load catchpoints if shared libraries aren't supported, and don't claim to support exec catchpoints unless CHILD_INSERT_EXEC_CATCHPOINT is defined - There are new target_ops vector fields that pertain + There are new target_ops vector fields that pertain only to HPUX. Added the to_require_attach and to_require_detach fields to exec_ops. These new fields are ifdef'ed for HPUX_SNAP1. - * breakpoint.h: - Fix compile error in enum bptype. - - * coff-solib.h: - Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME, - SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT, - SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These - macros are only meaningful (for now) for SOM. So, all - the macros were defined as error(...), but were used in - conditions. This caused the compile to crap out. I redefined - these (for now) to be 0. - - * procfs.c: - (procfs_create_inferior): fix call to fork_inferior -- need another - parameter. + * breakpoint.h: + Fix compile error in enum bptype. + + * coff-solib.h: + Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME, + SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT, + SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These + macros are only meaningful (for now) for SOM. So, all + the macros were defined as error(...), but were used in + conditions. This caused the compile to crap out. I redefined + these (for now) to be 0. + + * procfs.c: + (procfs_create_inferior): Fix call to fork_inferior -- need another + parameter. - * solib.h: - Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME, - SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT, - SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These - macros are only meaningful (for now) for SOM. So, all - the macros were defined as error(...), but were used in - conditions. This caused the compile to crap out. I redefined - these (for now) to be 0. - - * valops.c: - (search_struct_field): undeclared local variable, "assigned". - (find_rt_vbase_offset): fixed call to value_at - - * value.h: - Fix signature for find_rt_vbase_offset funct decl (missing a param) + * solib.h: + Fixed a number of macro definitions. SOLIB_LOADED_LIBRARY_PATHNAME, + SOLIB_HAVE_LOAD_EVENT, SOLIB_HAVE_UNLOAD_EVENT, + SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_IN_DYNAMIC_LINKER. These + macros are only meaningful (for now) for SOM. So, all + the macros were defined as error(...), but were used in + conditions. This caused the compile to crap out. I redefined + these (for now) to be 0. + + * valops.c: + (search_struct_field): Undeclared local variable, "assigned". + (find_rt_vbase_offset): Fixed call to value_at + + * value.h: Fix signature for find_rt_vbase_offset funct decl + (missing a param) Wed Dec 30 17:48:12 1998 Stan Shebs @@ -2823,7 +2574,7 @@ Wed Dec 30 17:48:12 1998 Stan Shebs 1998-12-30 Jason Molenda (jsm@bugshack.cygnus.com) - * utils.c: instead of "readline/readline.h". + * utils.c: instead of "readline/readline.h". * configure.in (TERM_LIB): Search for the appropriate term library on the host system. @@ -2845,157 +2596,133 @@ Mon Dec 28 17:43:36 1998 David Taylor changes originally made by HP; HP did not create ChangeLog entries. - * c-lang.h(cp_print_value_fields): update prototype; fixed - prototype decl for c_val_print funct -- it needed an + * c-lang.h (cp_print_value_fields): Update prototype; fixed + prototype decl for c_val_print function -- it needed an embedded_offset param; fixed prototype of cp_print_value_fields. - include value.h. - (C_LANG_H): define. + Include value.h. + (C_LANG_H): Define. - * c-valprint.c (c_val_print): added new parameter embedded_offset. + * c-valprint.c (c_val_print): Add new parameter embedded_offset. Add embedded_offset to valaddr in function calls. fix calls to val_print, and cp_print_value_fields. Attempt to determine the real type of the object to be printed. fixed call to cp_print_value_fields. process TYPE_CODE_METHOD as well. moved - call to check_typedef out of conditional. added embedded offset - param to val_print call + call to check_typedef out of conditional. add embedded offset + param to val_print call. - (c_value_print): add new parameter to call to val_print. handle - pointer to class case. ensure that const char *, const unsigned + (c_value_print): Add new parameter to call to val_print. Handle + pointer to class case. Ensure that const char *, const unsigned char * come out without the type but the volatile variants and the signed variants don't. - * ch-lang.h: HP merge, 4/15/98 snapshot - Added a parameter to the chill_val_print funct decl - - * ch-valprint.c: HP merge, 4/15/98 snapshot - The various print routines have an additional - parameter. Currently, the new parameter is only - used when printing C++ expressions. So, in - ch-valprint.c, the new parameter is always 0. - Changes in calls to : val_print, chill_val_print, c_val_print - Affected functions : chill_val_print_array_elements, - chill_val_print, chill_print_value_fields, - chill_value_print - - * cp-valprint.c added vtable pointers names for aCC (HP) compiler. - (cp_print_class_method): print message for HP/aCC case. - (cp_print_class_member): add comments. - (cp_print_value): adjust address computations for virtual base - classes. added new parameter 'offset'. Find correct offset for + * ch-lang.h (chill_val_print): Add parameter to decl. + + * ch-valprint.c: The various print routines have an additional + parameter. Currently, the new parameter is only used when printing + C++ expressions. So, in ch-valprint.c, the new parameter is always + 0. Changes in calls to val_print, chill_val_print, c_val_print + Affected functions are chill_val_print_array_elements, + chill_val_print, chill_print_value_fields, chill_value_print. + + * cp-valprint.c add vtable pointers names for aCC (HP) compiler. + (cp_print_class_method): Print message for HP/aCC case. + (cp_print_class_member): Add comments. + (cp_print_value): Adjust address computations for virtual base + classes. add new parameter 'offset'. Find correct offset for base class in HP/aCC case. Change call to cp_print_value_fields to have extra par. - (cp_print_value_fields): do not print also if the only field is + (cp_print_value_fields): Do not print also if the only field is the vtable pointer. Print out vtable ptr, for HP/aCC compiled case. do not print leading '=' in case of anonymous union, or - struct. added new parameter 'offset'. Do not print the vtable + struct. add new parameter 'offset'. Do not print the vtable pointer as a member, in the HP aCC case. Changed calls to val_print to have extra parameter. - (cp_print_hpacc_virtual_table_entries): new function. Print vtable + (cp_print_hpacc_virtual_table_entries): New function. Print vtable entries, in HP/aCC compiled case. - (cp_print_static_field): change call to cp_print_value_fields, and + (cp_print_static_field): Change call to cp_print_value_fields, and val_print. - * d30v-tdep.c: - (d30v_print_register) : added embedded_offset param to val_print - call + * d30v-tdep.c (d30v_print_register): Add embedded_offset param + to val_print call. - * defs.h: additional include files included when TUI is defined. - (gdb_file_isatty): new function decl. - (GDB_FILE): if TUI is defined, define a structure rather + * defs.h: Additional include files included when TUI is defined. + (gdb_file_isatty): New function decl. + (GDB_FILE): If TUI is defined, define a structure rather than making this an alias for FILE. - (gdb_stdout, gdb_stderr): if TUI is defined, then define these + (gdb_stdout, gdb_stderr): If TUI is defined, then define these as pointers to variables of type GDB_FILE rather than making them be aliases for stdout and stderr. - (TUIDO): add definition conditionalized on definition + (TUIDO): Add definition conditionalized on definition (or lack thereof) of TUI. - (command_class): add two additional values. - (precision_type): new enum. - (gdb_fclose): add declaration. - (store_address): change prototype to match function. - (tui_version, xdb_commands, dbx_commands): add decl's. - (gdb_file_deallocate): new function declaration - (pa_do_strcat_registers_info): new function declaration. - (streamtype): new enumerated type to distinguish between output to + (command_class): Add two additional values. + (precision_type): New enum. + (gdb_fclose): Add decl. + (store_address): Change prototype to match function. + (tui_version, xdb_commands, dbx_commands): Add decls. + (gdb_file_deallocate): New function decl + (pa_do_strcat_registers_info): New function decl. + (streamtype): New enumerated type to distinguish between output to a FILE and output to a buffer. - (tui_stream): new struct type, named GDB_FILE. Contains, - streamtype, FILE, buffer, and bufferlength fields. - (gdb_stdout): of type GDB_FILE, will pass this around gdb rather + (tui_stream): New struct type, named GDB_FILE. + (gdb_stdout): Of type GDB_FILE, will pass this around gdb rather than stdout. - (gdb_stderr): of type GDB_FILE, will pass this around gdb rather + (gdb_stderr): Of type GDB_FILE, will pass this around gdb rather than stderr. - (fputs_unfiltered_hook): change stream parameter from FILE to - GDB_FILE - (flush_hook): change stream parameter from FILE to GDB_FILE - (gdb_fclose): Fix declaration for gdb_fclose; parameter is now of - type GDB_FILE ** - (gdb_file_adjust_strbuf): new function declaration. function lives + (fputs_unfiltered_hook): Change stream parameter from FILE to + GDB_FILE. + (flush_hook): Change stream parameter from FILE to GDB_FILE. + (gdb_fclose): Fix decl for gdb_fclose; parameter is now of + type GDB_FILE **. + (gdb_file_adjust_strbuf): New function decl. function lives + in utils.c. + (gdb_file_init_astring): New function decl. function lives in utils.c. - (gdb_file_init_astring): new function declaration. function lives - in utils.c - (gdb_file_get_strbuf): new function declaration. function lives in - utils.c - (source_full_path_of): declare. + (gdb_file_get_strbuf): New function decl. function lives in + utils.c. + (source_full_path_of): Declare. - * exec.c (_initialize_exec): make definition of file command be + * exec.c (_initialize_exec): Make definition of file command be dependent upon dbx_commands not being set. - (exec_file_attach): new function. - (exec_file_command): call it. - (exec_ops): added new fields to_has_syscall_event, - to_enable_exception_callback, to_get_current_exception_event - to_post_wait, to_post_startup_inferior - to_acknowledge_created_inferior, to_clone_and_follow_inferior, - to_post_follow_inferior_by_clone, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file + (exec_file_attach): New function. + (exec_file_command): Call it. + (exec_ops): Add new target vector fields. - * f-lang.h (f_print_type): change FILE to GDB_FILE in decl. - (f_val_print): ditto. - (f_val_print): added parameter to the funct decl. + * f-lang.h (f_print_type): Change FILE to GDB_FILE in decl. + (f_val_print): Ditto. + (f_val_print): Add parameter to the function decl. - * f-valprint.c (_initialize_f_valprint): if xdb_commands is set, + * f-valprint.c (_initialize_f_valprint): If xdb_commands is set, define lc command. - - (f77_create_arrayprint_offset_tbl): change FILE to GDB_FILE. - (f77_print_array): ditto. - (f77_print_array_1): ditto. - (f_val_print): ditto. - - (f_val_print): Added a parameter; this new parameter is currently + (f77_create_arrayprint_offset_tbl): Change FILE to GDB_FILE. + (f77_print_array): Ditto. + (f77_print_array_1): Ditto. + (f_val_print): Ditto. + (f_val_print): Add a parameter; this new parameter is currently only non-zero when handling C++ expressions. In this file its value is always 0. changed fflush to gdb_flush. - * gnu-nat.c: - (init_gnu_ops): added and initialized new target ops vector fields - to_require_attach, to_require_detach, to_post_wait, - to_post_startup_inferior, to_acknowledge_created_inferior, - to_clone_and_follow_inferior, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file - (gnu_create_inferior): add param to fork_inferior call + * gnu-nat.c: (init_gnu_ops): Add new target vector fields. + (gnu_create_inferior): Add param to fork_inferior call. - * hppa-tdep.c (after_prologue): if f is NULL, don't dereference + * hppa-tdep.c (after_prologue): If f is NULL, don't dereference it. if no debug info, return zero telling caller that we need to find the end of the prologue via the hard way (instruction examination). - - (find_unwind_entry): avoid dereferencing a null + (find_unwind_entry): Avoid dereferencing a null pointer. - - (hppa_pid_to_exec_file): deleted -- no longer used. - - (hppa_prepare_to_proceeed): add prototype. - (read_unwind_info): purecov comments, bug fixes. - (find_unwind_entry): purecov comments, bug fixes. - (find_stub_with_shl_get): purecov comments. - (frame_chain): additional parens. - (hppa_push_arguments): changes to commented out version of routine. - (hppa_fix_call_dummy): purecov comments, fix location of end.o. - (in_solib_call_trampoline): purecov comments. - (in_solib_return_trampoline): purecov comments. - (setup_d_pid_in_inferior): fix location of end.o. - (initialize_hp_cxx_exception_support): fix location of end.o. - (child_enable_exception_callback): purecov comments. - + (hppa_pid_to_exec_file): Deleted -- no longer used. + (hppa_prepare_to_proceeed): Add prototype. + (read_unwind_info): Purecov comments, bug fixes. + (find_unwind_entry): Purecov comments, bug fixes. + (find_stub_with_shl_get): Purecov comments. + (frame_chain): Additional parens. + (hppa_push_arguments): Changes to commented out version of routine. + (hppa_fix_call_dummy): Purecov comments, fix location of end.o. + (in_solib_call_trampoline): Purecov comments. + (in_solib_return_trampoline): Purecov comments. + (setup_d_pid_in_inferior): Fix location of end.o. + (initialize_hp_cxx_exception_support): Fix location of end.o. + (child_enable_exception_callback): Purecov comments. (pa_do_strcat_registers_info): Has a new parameter, precision, which is passed into the call to pa_strcat_fp_reg to indicate whether to display the floating point registers using @@ -3004,424 +2731,356 @@ Mon Dec 28 17:43:36 1998 David Taylor pass it into call to pa_strcat_fp_reg. (pa_strcat_fp_reg): Modified function. New parameter, precision, used by function to decide whether to use single or double - precision. Also added the code to put a double precision value + precision. Also add the code to put a double precision value into a buffer. - - (pa_do_strcat_registers_info): new routine. called by + (pa_do_strcat_registers_info): New routine. called by tui/tuiRegs.c:_tuiRegisterFormat to place a register name and value into a string buffer. Interface may change in future. Checking this in so that we have something functional for HP. - (pa_strcat_registers): new routine, called by + (pa_strcat_registers): New routine, called by pa_do_strcat_registers_info. Does same thing as pa_print_registers except it takes a stream parameter. This routine should disappear in future. Checking in so that we have something functional to give HP - (pa_strcat_fp_reg): new routine, called by + (pa_strcat_fp_reg): New routine, called by pa_do_strcat_registers_info and pa_strvat_registers to place a floating point register name and value into a buffer. This interface may change in future. Checking in so that we have something functional to give HP. - - (pa_print_fp_reg): change prototype to match def'n. - (pa_register_look_aside): fix comment immediately before function. - - changes to better support stack unwinding, reading and writing - registers for HPUX. New includes : ptrace.h, bfd.h, dl.h. - (internalize_unwinds): initialize new fields in table. - (read_unwind_info): entries in the table are now more complex + (pa_print_fp_reg): Change prototype to match def'n. + (pa_register_look_aside): Fix comment immediately before function. + Changes to better support stack unwinding, reading and writing + registers for HPUX. New includes ptrace.h, bfd.h, dl.h. + (internalize_unwinds): Initialize new fields in table. + (read_unwind_info): Entries in the table are now more complex structures. References of the form ...->table[index].stub_type are now ...->table[index].stub_unwind.stub_type. - (find_proc_framesize) : added a check for pc == 0. - (rp_saved): entries in the table are now more complex + (find_proc_framesize): Add a check for pc == 0. + (rp_saved): Entries in the table are now more complex structures. References of the form ...->table[index].stub_type are now ...->table[index].stub_unwind.stub_type. - (frameless_function_invocation): stub_type becomes + (frameless_function_invocation): Stub_type becomes stub_unwind.stub_type - (saved_pc_after_call): stub_type becomes stub_unwind.stub_type - (hppa_frame_saved_pc): stub_type becomes stub_unwind.stub_type - (frame_chain_valid): stub_type becomes stub_unwind.stub_type - (hppa_call_dummy): stub_type becomes stub_unwind.stub_type - (pa_print_fp_reg): additional params to call val_print - (in_solib_call_trampoline): stub_type becomes + (saved_pc_after_call): Stub_type becomes stub_unwind.stub_type + (hppa_frame_saved_pc): Stub_type becomes stub_unwind.stub_type + (frame_chain_valid): Stub_type becomes stub_unwind.stub_type + (hppa_call_dummy): Stub_type becomes stub_unwind.stub_type + (pa_print_fp_reg): Additional params to call val_print + (in_solib_call_trampoline): Stub_type becomes stub_unwind.stub_type - (in_solib_return_trampoline): stub_type becomes + (in_solib_return_trampoline): Stub_type becomes stub_unwind.stub_typ - (skip_trampoline_code): additional code to handle external + (skip_trampoline_code): Additional code to handle external dyncalls. Also stub_type becomes stub_unwind.stub_type - (hppa_pid_to_exec_file): new funct. FOr HPUX 10.0 and beyond there + (hppa_pid_to_exec_file): New funct. FOr HPUX 10.0 and beyond there is an explicit ptrace request for getting the pathname associated with a process id (pid). - - (hppa_pid_to_exec_file): remove unwanted param from call to + (hppa_pid_to_exec_file): Remove unwanted param from call to call_ptrace. - - (args_for_find_stub): new structure. - (find_unwind_entry): deal with null input pc value. - (rp_saved): ditto. + (args_for_find_stub): New structure. + (find_unwind_entry): Deal with null input pc value. + (rp_saved): Ditto. For the import stub, return -24 always. - (hppa_frame_saved_pc): save old pc value, to detect we are in a loop. - (init_extra_frame_info): use TARGET_READ_FP. - (frame_chain): include thread support. - If the caller's pc is zero, we loose and return, just like stack bottom. + (hppa_frame_saved_pc): Save old pc value, to detect we are in a loop. + (init_extra_frame_info): Use TARGET_READ_FP. + (frame_chain): Include thread support. + If the caller's pc is zero, we lose and return, just like stack + bottom. Disable warning about being unable to find unwind info. - (hppa_push_arguments): rewrite. - (hppa_value_returned_from_stack): new function. Handles returning a value - larger that 64 bits, stored on the stack. - (find_stub_with_shl_get): new function. To look up symbols in shlibs. - (cover_find_stub_with_shl_get): new function. Cover routine for + (hppa_push_arguments): Rewrite. + (hppa_value_returned_from_stack): New function. Handles returning + a value larger than 64 bits, stored on the stack. + (find_stub_with_shl_get): New function. To look up symbols in shlibs. + (cover_find_stub_with_shl_get): New function. Cover routine for find_stub_with_shl_get to pass to catch_errors. - (hppa_fix_call_dummy): comment out old stub mechanism. Rewrite using dyncall. - (target_read_fp): new function. - (pa_do_registers_info): floating point registers start at FP4. - (pa_print_registers): use FP4_REGNUM instead of 72. - (skip_trampoline_code): do machine instruction matching for PA2.0. - (setup_d_pid_in_inferior): new function. Exception handling support. - (initialize_hp_cxx_exception_support): ditto. - (child_enable_exception_callback): ditto. - (child_get_current_exception_event): ditto. - - * hpux-thread.c - (hpux_thread_ops): initializing new target ops vector fields. - to_require_attach, to_require_detach, to_post_wait, - to_post_startup_inferior, to_acknowledge_created_inferior, - to_clone_and_follow_inferior, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file. - - * infcmd.c - Include objfiles.h - (attach_command): new local variable, exec_file, added code to + (hppa_fix_call_dummy): Comment out old stub mechanism. + Rewrite using dyncall. + (target_read_fp): New function. + (pa_do_registers_info): Floating point registers start at FP4. + (pa_print_registers): Use FP4_REGNUM instead of 72. + (skip_trampoline_code): Do machine instruction matching for PA2.0. + (setup_d_pid_in_inferior): New function. Exception handling support. + (initialize_hp_cxx_exception_support): Ditto. + (child_enable_exception_callback): Ditto. + (child_get_current_exception_event): Ditto. + + * hpux-thread.c (hpux_thread_ops): Add new target vector fields. + + * infcmd.c: Include objfiles.h. + (attach_command): New local variable, exec_file, add code to determine exec_file from pid if exec_file is not already known, call new target operation, target_post_attach -- a no-op unless - on HPUXHPPA - (detach_command): after detaching, do a SOLIB_RESTART - - (objfiles.h): fix typo on include line. - - (run_command): only call SOLIB_RESTART if it's defined. - (detach_command): ditto. - + on HPUXHPPA. + (detach_command): After detaching, do a SOLIB_RESTART. + (objfiles.h): Fix typo on include line. + (run_command): Only call SOLIB_RESTART if it's defined. + (detach_command): Ditto. (run_command): If program has already been started, and decide to restart it, the kill the target, fluch the caches, call init_wait_for_inferior. Also purge old solib objfiles. - - (run_stack_dummy): add calls to + (run_stack_dummy): Add calls to disable_watchpoints_before_interactive_call_start and - enable_watchpoints_after_interactive_call_stops - (finish_command): alter code handling the evaluation and printing + enable_watchpoints_after_interactive_call_stops. + (finish_command): Alter code handling the evaluation and printing of the target function's return value. - (attach_command): when given a pid, but no exec file, try to + (attach_command): When given a pid, but no exec file, try to determine the exec file from the process. If the process does not record a full path name, try to qualify the filename against the source path. - (_initialize_infcmd): add some verbiage about how to use the - attach command - - (do_registers_info): changed calls to val_print - + (_initialize_infcmd): Add some verbiage about how to use the + attach command. + (do_registers_info): Changed calls to val_print made the symfile.h include preceed the objfiles.h include. The other ordering caused a compile problem (incompletely defined types). - * inftarg.c (child_post_attach): Fix declaration, make static. + * inftarg.c (child_post_attach): Fix decl, make static. (proc_wait): Make globally visible. (child_insert_fork_catchpoint, etc): Fix return type. - - (child_detach_from_process): declare. - (child_attach_to_process): declare. - (child_stop): make static to match declaration. - - (ptrace_him): change prototype back to return int. - + (child_detach_from_process): Declare. + (child_attach_to_process): Declare. + (child_stop): Make static to match decl. + (ptrace_him): Change prototype back to return int. (ptrace_me): Remove debug output, pass NULL to fork_inferior if not HPUX. - - (child_require_attach): new funct prototype and definition - (child_require_detach): new funct prototype and definition - (proc_wait): funct prototype and definition are enclosed by + (proc_wait): function prototype and definition are enclosed by proc_wait ifndef - (child_attach_to_process): new function, does most of the work + (child_attach_to_process): New function, does most of the work that child_attach used to do and some additional work to determine whether gdb is already attached to the target how to react. - (child_attach): altered. It's now a wrapper for + (child_attach): Altered. It's now a wrapper for child_attach_to_process. - (child_require_attach): new function, called if should attach even + (child_require_attach): New function, called if should attach even when gdb is already attached to target. - (child_detach_from_process): new function, does most of the work + (child_detach_from_process): New function, does most of the work that child_detach used to do and some additional work to determine whether gdb is currently attached to the target. - (child_detach): altered. It's now a wrapper for + (child_detach): Altered. It's now a wrapper for child_detach_from_process. - (child_require_detach): new function, called if should try to + (child_require_detach): New function, called if should try to detach even when gdb is not attached to target. - (ptrace_him): calls a new function, + (ptrace_him): Calls a new function, target_acknowledge_forked_child. Currently, target_acknowledge_forked_child, is only defined to do something for HPUX. - (child_create_inferior): changed call to fork_inferior. - (child_ops): added to_require_attach and to_require_detach fields + (child_create_inferior): Changed call to fork_inferior. + (child_ops): Add to_require_attach and to_require_detach fields to the child_ops target ops vector. - - Some hacks for ttrace work + Some hacks for ttrace work: (child_wait): Additional local variables, additional code in - while loop to check for : process exited, process forked, - process vforked, process execd + while loop to check for process exited, process forked, + process vforked, process execd. (child_thread_alive): John B. seems to think that the kill call is inapproapriate for HPUX. - (child_attach_to_process): using strtol rather than atoi. + (child_attach_to_process): Using strtol rather than atoi. no longer check for case where there is no known exec file. - (child_post_attach): new function, a default, a no-op - (child_insert_fork_catchpoint): new function, a default, a no-op - (child_remove_fork_catchpoint): new function, a default, a no-op - (child_insert_vfork_catchpoint): new function, a default, a no-op - (child_remove_vfork_catchpoint): new function, a default, a no-op + (child_post_attach): New function, a default, a no-op. + (child_insert_fork_catchpoint): New function, a default, a no-op. + (child_remove_fork_catchpoint): New function, a default, a no-op. + (child_insert_vfork_catchpoint): New function, a default, a no-op. + (child_remove_vfork_catchpoint): New function, a default, a no-op. (child_can_follow_vfork_prior_to_exec ):new function, a default, - a no-op - (child_insert_exec_catchpoint): new function, a default, a no-op - (child_remove_exec_catchpoint): new function, a default, a no-op - (child_has_execd): new function, a default, returns 0 - (child_reported_exec_events_per_exec_call): new function, a - default, returns 1 - (child_has_exited): new function, a default. - (child_core_file_to_sym_file): new function, a default, returns NULL. - (child_ops): initialize new target_ops vector fields to the - child* functions. - - * jv-lang.h: - (java_val_print): added embedded_offset param to func decl. - - * jv-valprint.c: changing calls to val_print to accomodate new param. - (java_value_print): add embedded_offset param to val_print call - (java_print_value_fields): add embedded_offset param to val_print - call - (java_val_print): add embedded_offset param. alter call to + a no-op. + (child_insert_exec_catchpoint): New function, a default, a no-op. + (child_remove_exec_catchpoint): New function, a default, a no-op. + (child_has_execd): New function, a default, returns 0. + (child_reported_exec_events_per_exec_call): New function, a + default, returns 1. + (child_has_exited): New function, a default. + (child_core_file_to_sym_file): New function, a default, returns NULL. + (child_ops): Initialize new target vector fields. + + * jv-lang.h: (Java_val_print): Add embedded_offset param to func + decl. + + * jv-valprint.c: Changing calls to val_print to accomodate new param. + (java_value_print): Add embedded_offset param to val_print call + (java_print_value_fields): Add embedded_offset param to val_print + call. + (java_val_print): Add embedded_offset param. alter call to c_val_print to accomodate embedded_offset param. - * language.c (lang_bool_type): return builtin_type_bool in c++ + * language.c (lang_bool_type): Return builtin_type_bool in c++ case. - (unk_lang_val_print): Added embedded_offset param to - prototype declaration and definition. + (unk_lang_val_print): Add embedded_offset param to + prototype decl and definition. - * language.h: - (LA_VAL_PRINT macro, la_val_print function decl): altered to - accomodate the new parameter to the various print functions. + * language.h (LA_VAL_PRINT macro, la_val_print function decl): + altered to accomodate the new parameter to the various print + functions. - * m2-lang.h: - (m2_val_print): added a parameter to the func decl. - - * m2-valprint.c: - (m2_val_print): added a parameter. - This parameter is currently only used when - evaluating C++ expressions. So, it is - always 0 in this file. - - * m3-nat.c: - (m3_create_inferior): add param to fork_inferior call - (m3_pid_to_exec_file): new function - (m3_ops): adding and initializing new target ops vector fields. - - * mac-nat.c: - (init_child_ops): adding and initializing new target ops vector - fields to_require_attach, to_require_detach, to_post_wait, - to_post_startup_inferior, to_acknowledge_created_inferior, - to_clone_and_follow_inferior, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file + * m2-lang.h (m2_val_print): Add a parameter to the function decl. + + * m2-valprint.c (m2_val_print): Add a parameter. + This parameter is currently only used when evaluating C++ + expressions. So, it is always 0 in this file. + + * m3-nat.c (m3_create_inferior): Add param to fork_inferior call + (m3_pid_to_exec_file): New function + (m3_ops): Add new target vector fields. + + * mac-nat.c (init_child_ops): Add new target vector fields. - * mips-tdep.c: chnages to accomodate additional parameter + * mips-tdep.c: Chnages to accomodate additional parameter to val_print. - (mips_print_register): alter calls to val_print + (mips_print_register): Alter calls to val_print - * monitor.c (monitor_write): change stderr to gdb_stderr. - (monitor_remove_breakpoint): ditto. + * monitor.c (monitor_write): Change stderr to gdb_stderr. + (monitor_remove_breakpoint): Ditto. + (init_base_monitor_ops): Add new target vector fields. - * monitor.c: - (init_base_monitor_ops): adding and initializing new target ops - vector fields to_require_attach, to_require_detach, - to_post_wait, to_post_startup_inferior, - to_acknowledge_created_inferior, to_clone_and_follow_inferior, - to_create_catch_fork_hook, to_create_catch_vfork_hook, - to_has_forked, to_has_vforked, to_post_follow_vfork, - to_pid_to_exec_file - - * ppc-bdm.c: - (init_bdm_ppc_ops): adding and initializing new target ops vector - fields to_require_attach, to_require_detach, to_post_wait, - to_post_startup_inferior, to_acknowledge_created_inferior, - to_clone_and_follow_inferior, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file + * ppc-bdm.c (init_bdm_ppc_ops): Add new target vector fields. - * printcmd.c - (do_examine): when saving a value_ptr, remove it from - the list of value_ptr's to be freed automatically; when discarding - a previously saved value_ptr, free it. - - (print_formatted): update comments; add new comments. - (printf_command, print_insn): purecov comments. - (_initialize_printcmd): add assign as a command if dbx_commands is + * printcmd.c (do_examine): When saving a value_ptr, remove it from + the list of value_ptr's to be freed automatically; when discarding + a previously saved value_ptr, free it. + (print_formatted): Update comments; add new comments. + (printf_command, print_insn): Purecov comments. + (_initialize_printcmd): Add assign as a command if dbx_commands is set; create va as an alias for disassemble if xdb_commands is set. - (address_info): new cases LOC_INDIRECT and + (address_info): New cases LOC_INDIRECT and LOC_THREAD_LOCAL_STATIC. - (display_command): if tui_version and exp starts with a '$', then + (display_command): If tui_version and exp starts with a '$', then don't display it unless tui_vSetLayoutTo fails. - (disassemble_command): add tuiDo calls. - - (print_scalar_formatted): for integers that are long long, check + (disassemble_command): Add tuiDo calls. + (print_scalar_formatted): For integers that are long long, check the print format and print out in binary octal, decimal, or hex. Call the new print_*_chars functions in valprint.c - (print_frame_args): Altered calls to val_print, to reflect additional parameter to val_print (case LOC_BASEREG_ARG). - * procfs.c: - (procfs_init_inferior): return value is now a void. - (procfs_ops): adding and initializing new target_ops vector fields. - (procfs_create_inferior): fix call to fork_inferior -- need another + * procfs.c: (Procfs_init_inferior): Return value is now a void. + (procfs_ops): Add new target vector fields. + (procfs_create_inferior): Fix call to fork_inferior -- need another parameter. - * remote-adapt.c - (adapt_open): change stderr to gdb_stderr. - (adpat_insert_breakpoint): ditto. - (init_adapt_ops): adding and initializing new target_ops vector fields. + * remote-adapt.c (adapt_open): Change stderr to gdb_stderr. + (adpat_insert_breakpoint): Ditto. + (init_adapt_ops): Add new target vector fields. - * remote-array.c - (array_wait): change fflush to gdb_flush and stdout to gdb_stdout. - (init_array_ops): adding new and initializing target_ops vector fields. + * remote-array.c (array_wait): Change fflush to gdb_flush and + stdout to gdb_stdout. + (init_array_ops): Add new target vector fields. - * remote-bug.c - (bug_load): change fflush to gdb_flush; stdout to gdb_stdout. - (bug_wait): change stderr to gdb_stderr. - (bug_insert_breakpoint): ditto. - (init_bug_ops): adding and initializing new target_ops vector fields. + * remote-bug.c (bug_load): Change fflush to gdb_flush; stdout to + gdb_stdout. + (bug_wait): Change stderr to gdb_stderr. + (bug_insert_breakpoint): Ditto. + (init_bug_ops): Add new target vector fields. * remote-e7000.c - (init_e7000_ops): adding and initializing new target_ops vector fields. - * remote-eb.c (init_eb_ops): ditto. - * remote-es.c (init_es1800_ops): ditto. - (init_es1800_child_ops): ditto. - * remote-es.c (init_es1800_ops): ditto. - (init_es1800_child_ops): ditto. - * remote-hms.c (init_hms_ops): ditto. - * remote-hms.c (init_hms_ops): ditto. - * remote-nindy.c (init_nindy_ops): ditto. - * remote-nrom.c (init_nrom_ops): ditto. - * remote-os9k.c (init_rombug_ops): ditto. - * remote-rdp.c (init_remote_rdp_ops): ditto. - * remote-sds.c (init_sds_ops): ditto. - * remote-sim.c (init_gdbsim_ops): ditto. - * remote-st.c (init_st2000_ops): ditto. - * remote-udi.c (init_udi_ops): ditto. - * remote-vx.c (init_vx_ops): ditto. - (init_vx_run_ops): ditto. - * remote-vx.c: (init_vx_ops): ditto. - (init_vx_run_ops): ditto. - * remote.c (init_remote_ops): ditto. - (init_extended_remote_ops): ditto. - - * remote-mips.c (mips_getstring): change stderr to gdb_stderr. - (pmon_insert_breakpoint): ditto. - (pmon_remove_breakpoint): ditto. - (check_lsi_error): ditto. - (common_breakpoint): ditto. - (pmon_makeb64): ditto. - - * remote-mips.c (mips_xfer_memory): change fflush to gdb_flush; - change stdout to gdb_stdout. + (init_e7000_ops): Add new target vector fields. + * remote-eb.c (init_eb_ops): Ditto. + * remote-es.c (init_es1800_ops): Ditto. + (init_es1800_child_ops): Ditto. + * remote-es.c (init_es1800_ops): Ditto. + (init_es1800_child_ops): Ditto. + * remote-hms.c (init_hms_ops): Ditto. + * remote-hms.c (init_hms_ops): Ditto. + * remote-nindy.c (init_nindy_ops): Ditto. + * remote-nrom.c (init_nrom_ops): Ditto. + * remote-os9k.c (init_rombug_ops): Ditto. + * remote-rdp.c (init_remote_rdp_ops): Ditto. + * remote-sds.c (init_sds_ops): Ditto. + * remote-sim.c (init_gdbsim_ops): Ditto. + * remote-st.c (init_st2000_ops): Ditto. + * remote-udi.c (init_udi_ops): Ditto. + * remote-vx.c (init_vx_ops): Ditto. + (init_vx_run_ops): Ditto. + * remote-vx.c: (Init_vx_ops): Ditto. + (init_vx_run_ops): Ditto. - * remote-mm.c - (mm_open): change stderr to gdb_stderr. + * remote-mips.c (mips_getstring): Change stderr to gdb_stderr. + (pmon_insert_breakpoint): Ditto. + (pmon_remove_breakpoint): Ditto. + (check_lsi_error): Ditto. + (common_breakpoint): Ditto. + (pmon_makeb64): Ditto. - (init_mm_ops): adding and initializing new target_ops vector fields. + * remote-mips.c (mips_xfer_memory): Change fflush to gdb_flush; + change stdout to gdb_stdout. - (mm_load): fixed params in commented out call to symbol_file_add. + * remote-mm.c (mm_open): Change stderr to gdb_stderr. + (init_mm_ops): Add new target vector fields. + (mm_load): Fixed params in commented out call to symbol_file_add. - * remote-nindy.c (instream): change declaration to FILE. + * remote-nindy.c (instream): Change decl to FILE. - * remote-udi.c: - (udi_load): fixed params in call to symbol_file_add + * remote-udi.c (udi_load): Fixed params in call to symbol_file_add. - * remote-vx.c: - (vx_add_symbols): fixed params in call to symbol_file_add + * remote-vx.c (vx_add_symbols): Fixed params in call to + symbol_file_add. - * remote.c (init_remote_ops): cosmetic change to match expected + * remote.c (init_remote_ops): Cosmetic change to match expected test output. - * rs6000-nat.c: - (add_vmap): added params to call to allocate_objfile. - - * scm-lang.h : HP merge, 4/15/98 snapshot - Added parameter to the scm_val_print func decl + * rs6000-nat.c (add_vmap): Add params to call to allocate_objfile. - * scm-valprint.c + * scm-lang.h: Add parameter to scm_val_print function decl. - * scm-valprint.c (scm_scmval_print): cast svalue to (int); new + * scm-valprint.c (scm_scmval_print): Cast svalue to (int); new parameter. This parameter is currently only used when evaluating C++ expressions. So, it is always 0 in this file. - (c_val_print): fixed prototype decl; it needed an embedded_offset + (c_val_print): Fixed prototype decl; it needed an embedded_offset param. - * sol-thread.c: - (sol_core_ops): added and initialized new target_ops vector fields. - (sol_thread_ops): ditto. + * sol-thread.c (sol_core_ops): Add new target vector fields. + (sol_thread_ops): Ditto. - * somsolib.c (DLD_FLAGS_MAPPRIVATE): new macro. + * somsolib.c (DLD_FLAGS_MAPPRIVATE): New macro. Define bit of __dld_flags in HP-UX a.out files. - (DLD_FLAGS_HOOKVALID): ditto. - (DLD_FLAGS_LISTVALID): ditto. - (DLD_FLAGS_BOR_ENABLE): ditto. - (som_solib_total_st_size): cumulative size in bytes of the + (DLD_FLAGS_HOOKVALID): Ditto. + (DLD_FLAGS_LISTVALID): Ditto. + (DLD_FLAGS_BOR_ENABLE): Ditto. + (som_solib_total_st_size): Cumulative size in bytes of the symbol tables of all shared objects on the so_list_head list. - (som_solib_st_size_threshhold_exceeded): threshold for adding symbols + (som_solib_st_size_threshhold_exceeded): Threshold for adding symbols for shlibs. - (som_solib_sizeof_symbol_table): new function. Computes size of + (som_solib_sizeof_symbol_table): New function. Computes size of symbol table for a shlib. - (som_solib_load_symbols): new function. Load symbols from shlib. - (som_solib_add): detect if __dld_list is not valid. + (som_solib_load_symbols): New function. Load symbols from shlib. + (som_solib_add): Detect if __dld_list is not valid. Record main program's symbol table size. Load symbols if called from command line. Keep threshold into account when loading shlib symbols. - (som_solib_create_inferior_hook): use dld_flags macros. - (som_sharedlibrary_info_command): let user know if symbols were + (som_solib_create_inferior_hook): Use dld_flags macros. + (som_sharedlibrary_info_command): Let user know if symbols were not loaded. - (som_solib_restart): discard all the shlibs descriptors. - (_initialize_som_solib): chenge help message for auto-solib-add + (som_solib_restart): Discard all the shlibs descriptors. + (_initialize_som_solib): Chenge help message for auto-solib-add command. Set threshold for symbol table to 50 megabytes. - - * somsolib.c (_initialize_som_solib): added call to som_solib_restart. - (som_solib_restart): new function - (som_solib_in_dynamic_linker): new function - (som_solib_desire_dynamic_linker_symbols): new function - (som_solib_unloaded_library_pathname): new function - (som_solib_loaded_library_pathname): new function - (som_solib_library_pathname): new function - (som_solib_have_unload_event): new function - (som_solib_have_load_event): new function - (som_solib_create_catch_unload_hook): new function - (som_solib_create_catch_load_hook): new function - (som_solib_create_inferior_hook): rewritten - dld_cache: new struct - addr_and_unwind_t: new struct - (find_unwind_entry) added prototype - - * somsolib.c (som_solib_create_inferior_hook): introduce new local + (_initialize_som_solib): Add call to som_solib_restart. + (som_solib_restart): New function + (som_solib_in_dynamic_linker): New function + (som_solib_desire_dynamic_linker_symbols): New function + (som_solib_unloaded_library_pathname): New function + (som_solib_loaded_library_pathname): New function + (som_solib_library_pathname): New function + (som_solib_have_unload_event): New function + (som_solib_have_load_event): New function + (som_solib_create_catch_unload_hook): New function + (som_solib_create_catch_load_hook): New function + (som_solib_create_inferior_hook): Rewritten + dld_cache: New struct + addr_and_unwind_t: New struct + (find_unwind_entry) add prototype + Include assert.h, remove references to ASSERT macro, + add include of fcntl.h so that O_RDONLY is defined. + (som_solib_create_inferior_hook): Introduce new local msymbol2 and change some msymbol's to msymbol2's -- was clobbering msymbol, passing a NULL to lookup_minimal_symbol_solib_trampoline, and ultimately core dumping with a SEGV. - - * somsolib.c: - Include assert.h - (som_solib_mapped_entry): additional comments for text_addr, + (som_solib_mapped_entry): Additional comments for text_addr, text_link_addr, text_end, and tsd_start_addr fields. Commenting out 2 tsd fields, __data_start and __data_end. - (som_solib_add_solib_objfile): add params to calls to symbol_file_add. + (som_solib_add_solib_objfile): Add params to calls to symbol_file_add. Add some code for distinguishing between a shared library and other objfiles. This appears to be a prelude to thread local storage. - (som_solib_load_symbols): changes to printf statement + (som_solib_load_symbols): Changes to printf statement enclosed by SOLIB_DEBUG ifdef. - (som_solib_add): change comment to correctly specify path + (som_solib_add): Change comment to correctly specify path to end.o -- /opt/langtools/lib/end.o. changes to printf statement enclosed by SOLIB_DEBUG ifdef. Removed several SOLIB_DEBUG ifdefs and the associated printfs. @@ -3430,268 +3089,204 @@ Mon Dec 28 17:43:36 1998 David Taylor (som_solib_create_inferior_hook): Fix warning messages use correct path to end.o -- /opt/langtools/lib/end.o. Change control flow. No longer user early returns from function is cases of error. - (reset_inferior_pid): new function - (som_solib_remove_inferior_hook): new function - (so_lib_thread_start_addr): new function. used for tsd. - - * somsolib.c: Removed references to ASSERT macro. - - * somsolib.c: add debugging macro. - (struct som_solib_mapped_entry): add new field tsd_start_addr. - (struct so_list): added new field solib_addr. - (som_solib_add_solib_objfile): new function. - (som_solib_load_symbols): rewritten. - (som_solib_add): make sure we don't load the symbols in if the + (reset_inferior_pid): New function + (som_solib_remove_inferior_hook): New function + (so_lib_thread_start_addr): New function. used for tsd. + (struct som_solib_mapped_entry): Add new field tsd_start_addr. + (struct so_list): Add new field solib_addr. + (som_solib_add_solib_objfile): New function. + (som_solib_load_symbols): Rewritten. + (som_solib_add): Make sure we don't load the symbols in if the threshold was exceeded. - (som_solib_get_solib_by_pc): new function. Return the address of + (som_solib_get_solib_by_pc): New function. Return the address of handle of the shared library. - (som_solib_restart): disable breakpoints at restart. - (_initialize_som_solib): set threshold to 100 megabytes. + (som_solib_restart): Disable breakpoints at restart. - * somsolib.c: add include of fcntl.h so that O_RDONLY is defined. - - * sparcl-tdep.c: - (init_sparclite_ops): added and initialized new target_ops vector fields. + * sparcl-tdep.c (init_sparclite_ops): Add new target vector fields. * target.c (cleanup_target): Changed casting of default functions for to_has_forked, to_has_vforked, to_pid_to_exec_file to get rid of warnings. Fixed PARAMS for to_has_syscall_event. Fixed the return type on a few of the default function values. - - (cleanup_target): changes in the de_fault macro, both to + (cleanup_target): Changes in the de_fault macro, both to accomodate the new target_ops vector fields and to use more accurate default functions. - - * target.c (debug_to_open): change stderr to gdb_stderr. - (debug_to_close): ditto. - (debug_to_attach): ditto. - (debug_to_post_attach): ditto. - (debug_to_require_attach): ditto. - (debug_to_detach): ditto. - (debug_to_require_detach): ditto. - (debug_to_resume): ditto. - (debug_to_wait): ditto. - (debug_to_post_wait): ditto. - (debug_to_fetch_registers): ditto. - (debug_to_store_registers): ditto. - (debug_to_prepare_to_store): ditto. - (debug_to_xfer_memory): ditto. - (debug_to_files_info): ditto. - (debug_to_insert_breakpoint): ditto. - (debug_to_remove_breakpoint): ditto. - (debug_to_terminal_init): ditto. - (debug_to_terminal_inferior): ditto. - (debug_to_terminal_ours_for_output): ditto. - (debug_to_terminal_ours): ditto. - (debug_to_terminal_info): ditto. - (debug_to_kill): ditto. - (debug_to_load): ditto. - (debug_to_lookup_symbol): ditto. - (debug_to_create_inferior): ditto. - (debug_to_post_startup_inferior): ditto. - (debug_to_acknowledge_created_inferior): ditto. - (debug_to_clone_and_follow_inferior): ditto. - (debug_to_post_follow_inferior_by_clone): ditto. - (debug_to_insert_fork_catchpoint): ditto. - (debug_to_remove_fork_catchpoint): ditto. - (debug_to_insert_vfork_catchpoint): ditto. - (debug_to_remove_vfork_catchpoint): ditto. - (debug_to_has_forked): ditto. - (debug_to_has_vforked): ditto. - (debug_to_can_follow_vfork_prior_to_exec): ditto. - (debug_to_post_follow_vfork): ditto. - (debug_to_insert_exec_catchpoint): ditto. - (debug_to_remove_exec_catchpoint): ditto. - (debug_to_has_execd): ditto. - (debug_to_reported_exec_events_per_exec_call): ditto. - (debug_to_has_syscall_event): ditto. - (debug_to_has_exited): ditto. - (debug_to_mourn_inferior): ditto. - (debug_to_can_run): ditto. - (debug_to_notice_signals): ditto. - (debug_to_thread_alive): ditto. - (debug_to_stop): ditto. - (debug_to_enable_exception_callback): ditto. - (debug_to_get_current_exception_event): ditto. - (debug_to_pid_to_exec_file): ditto. - (debug_to_core_file_to_sym_file): ditto. - - * target.c: - (default_clone_and_follow_inferior): new function prototype - declaration and function definition. - - (dummy_target): Add new target_ops vector fields and their + (debug_to_open): Change stderr to gdb_stderr. + (debug_to_close): Ditto. + (debug_to_attach): Ditto. + (debug_to_post_attach): Ditto. + (debug_to_require_attach): Ditto. + (debug_to_detach): Ditto. + (debug_to_require_detach): Ditto. + (debug_to_resume): Ditto. + (debug_to_wait): Ditto. + (debug_to_post_wait): Ditto. + (debug_to_fetch_registers): Ditto. + (debug_to_store_registers): Ditto. + (debug_to_prepare_to_store): Ditto. + (debug_to_xfer_memory): Ditto. + (debug_to_files_info): Ditto. + (debug_to_insert_breakpoint): Ditto. + (debug_to_remove_breakpoint): Ditto. + (debug_to_terminal_init): Ditto. + (debug_to_terminal_inferior): Ditto. + (debug_to_terminal_ours_for_output): Ditto. + (debug_to_terminal_ours): Ditto. + (debug_to_terminal_info): Ditto. + (debug_to_kill): Ditto. + (debug_to_load): Ditto. + (debug_to_lookup_symbol): Ditto. + (debug_to_create_inferior): Ditto. + (debug_to_post_startup_inferior): Ditto. + (debug_to_acknowledge_created_inferior): Ditto. + (debug_to_clone_and_follow_inferior): Ditto. + (debug_to_post_follow_inferior_by_clone): Ditto. + (debug_to_insert_fork_catchpoint): Ditto. + (debug_to_remove_fork_catchpoint): Ditto. + (debug_to_insert_vfork_catchpoint): Ditto. + (debug_to_remove_vfork_catchpoint): Ditto. + (debug_to_has_forked): Ditto. + (debug_to_has_vforked): Ditto. + (debug_to_can_follow_vfork_prior_to_exec): Ditto. + (debug_to_post_follow_vfork): Ditto. + (debug_to_insert_exec_catchpoint): Ditto. + (debug_to_remove_exec_catchpoint): Ditto. + (debug_to_has_execd): Ditto. + (debug_to_reported_exec_events_per_exec_call): Ditto. + (debug_to_has_syscall_event): Ditto. + (debug_to_has_exited): Ditto. + (debug_to_mourn_inferior): Ditto. + (debug_to_can_run): Ditto. + (debug_to_notice_signals): Ditto. + (debug_to_thread_alive): Ditto. + (debug_to_stop): Ditto. + (debug_to_enable_exception_callback): Ditto. + (debug_to_get_current_exception_event): Ditto. + (debug_to_pid_to_exec_file): Ditto. + (debug_to_core_file_to_sym_file): Ditto. + (default_clone_and_follow_inferior): New function prototype + decl and function definition. + (dummy_target): Add new target_ops vector fields and their initializations. More target_ops vector changes for HPUX new - fields. New fields are to_post_wait, to_post_startup_inferior - to_acknowledge_created_inferior, to_clone_and_follow_inferior, - to_post_follow_inferior_by_clone, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file. - - (de_fault): add new HPUX specific target_ops operations to the + fields. + (de_fault): Add new HPUX specific target_ops operations to the de_fault macro - - (INHERIT): added new HPUX specific target_ops operations. - - (debug_to_post_wait): new funct - (debug_to_post_startup_inferior): new funct - (debug_to_acknowledge_created_inferior): new funct - (debug_to_clone_and_follow_inferior): new funct - (debug_to_post_follow_inferior_by_clone): new funct - (debug_to_create_catch_fork_hook): new funct - (debug_to_create_catch_vfork_hook): new funct - (debug_to_has_forked): new funct - (debug_to_has_vforked): new funct - (debug_to_post_follow_vfork): new funct - (setup_target_debug): initialize new target_ops vector fields. - - * target.c: - (nosupport_runtime): new function, used in cleanup_target - - (update_current_target): Added new new target_ops vector fields to + (INHERIT): Add new HPUX specific target_ops operations. + (debug_to_post_wait): New function. + (debug_to_post_startup_inferior): Ditto. + (debug_to_acknowledge_created_inferior): Ditto. + (debug_to_clone_and_follow_inferior): Ditto. + (debug_to_post_follow_inferior_by_clone): Ditto. + (debug_to_create_catch_fork_hook): Ditto. + (debug_to_create_catch_vfork_hook): Ditto. + (debug_to_has_forked): Ditto. + (debug_to_has_vforked): Ditto. + (debug_to_post_follow_vfork): Ditto. + (setup_target_debug): Initialize new target_ops vector fields. + (nosupport_runtime): New function, used in cleanup_target + (update_current_target): Add new new target_ops vector fields to the INHERIT macro definition. - - (generic_mourn_inferior): the call to breakpoint_init_inferior now takes a - parameter - - (normal_pid_to_str): Adding a \0 to the end of buf. - - (debug_to_has_syscall_event): new func - (debug_to_enable_exception_callback): new func - (debug_to_get_current_exception_event): new func - (setup_target_debug): initialize the 3 new target_ops vector fields - - * target.c: - (struct signals): fix message associated with SIGRETRACT. - - * target.c: - (return_one): new function, used by the de_fault macro - (debug_to_post_attach): new function - (debug_to_wait): added new cases : TARGET_WAITKIND_FORKED, + (generic_mourn_inferior): The call to breakpoint_init_inferior now + takes a parameter. + (normal_pid_to_str): Add a \0 to the end of buf. + (debug_to_has_syscall_event): New function. + (debug_to_enable_exception_callback): New function. + (debug_to_get_current_exception_event): New function. + (setup_target_debug): Initialize the 3 new target_ops vector fields + (struct signals): Fix message associated with SIGRETRACT. + (return_one): New function, used by the de_fault macro + (debug_to_post_attach): New function. + (debug_to_wait): Add new cases TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, TARGET_WAITKIND_EXECD. - (debug_to_insert_fork_catchpoint): new function - (debug_to_remove_fork_catchpoint): new function - (debug_to_insert_vfork_catchpoint): new function - (debug_to_remove_vfork_catchpoint): new function - (debug_to_can_follow_vfork_prior_to_exec): new function - (debug_to_insert_exec_catchpoint): new function - (debug_to_remove_exec_catchpoint): new function - (debug_to_core_file_to_sym_file): new function - (setup_target_debug): give new fields in current_target target_ops + (debug_to_insert_fork_catchpoint): New function. + (debug_to_remove_fork_catchpoint): Ditto. + (debug_to_insert_vfork_catchpoint): Ditto. + (debug_to_remove_vfork_catchpoint): Ditto. + (debug_to_can_follow_vfork_prior_to_exec): Ditto. + (debug_to_insert_exec_catchpoint): Ditto. + (debug_to_remove_exec_catchpoint): Ditto. + (debug_to_core_file_to_sym_file): Ditto. + (setup_target_debug): Give new fields in current_target target_ops vector values. - * target.h: - Include symtab.h - (target_waitkind): new enumerated values : - TARGET_WAITKIND_SYSCALL_ENTRY and TARGET_WAITKIND_SYSCALL_RETURN - (target_waitstatus): add a syscall_id field to structure - (child_has_syscall_event): new decl - (child_thread_alive): new decl - (target_ops): added 3 new fields: to_has_syscall_event, - to_enable_exception_callback, to_get_current_exception_event - (target_enable_exception_callback): new macro - (target_has_syscall_event): new macro - (target_get_current_exception_event): new macro - (TARGET_DISABLE_HW_WATCHPOINTS): new macro - (TARGET_ENABLE_HW_WATCHPOINTS): new macro - (PC_REQUIRES_RUN_BEFORE_USE): new macro - (target_tid_to_str): new macro - - * target.h: - (target_waitkind): new entries in enumerated type : + * target.h: Include symtab.h. + (target_waitkind): New enumerated values + TARGET_WAITKIND_SYSCALL_ENTRY, TARGET_WAITKIND_SYSCALL_RETURN, TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED, - TARGET_WAITKIND_EXECD - (target_waitstatus): additional fields in struct to keep track - of child pid and pathname to execd file - (target_ops): add in the new target_ops function pointer fields. + TARGET_WAITKIND_EXECD. + (target_waitstatus): Add a syscall_id field to structure. + (child_has_syscall_event): New decl. + (child_thread_alive): New decl. + (target_ops): Add 3 new fields: To_has_syscall_event, + to_enable_exception_callback, to_get_current_exception_event + (target_enable_exception_callback): New macro. + (target_has_syscall_event): New macro. + (target_get_current_exception_event): New macro. + (TARGET_DISABLE_HW_WATCHPOINTS): New macro. + (TARGET_ENABLE_HW_WATCHPOINTS): New macro. + (PC_REQUIRES_RUN_BEFORE_USE): New macro. + (target_tid_to_str): New macro. + (target_waitstatus): Additional fields in struct to keep track + of child pid and pathname to execd file. + (target_ops): Add in the new target_ops function pointer fields. New macros to go along with new target_ops fields. - New function decls : child_core_file_to_sym_file, - child_post_attach, child_insert_fork_catchpoint, - child_remove_fork_catchpoint, child_insert_vfork_catchpoint, - child_remove_vfork_catchpoint, child_can_follow_vfork_prior_to_exec, - child_insert_exec_catchpoint, child_remove_exec_catchpoint, - child_has_execd, child_has_exited - - * target.h: - In target_waitstatus.value, change name of child_pid field to + In target_waitstatus.value, change name of child_pid field to related_pid. - (target_pid_or_tid_to_str): define default macro - Added missing #endif after PC_REQUIRES_RUN_BEFORE_USE definition - (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): define default macro - (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): define default macro - - * target.h: HP merge, 4/15/98 snapshot - There are new function declarations for to_require_attach - and to_require_detach. There are also new macros, - target_require_attach and target_require_detach. There are - also new function declarations for find_default_require_detach - and find_default_require_attach. All these changes are ifdef'ed - for HPUX_SNAP1. - - * target.h: changes for HPUX specific target_ops vector fields - (target_ops): new fields - to_post_wait, to_post_startup_inferior - to_acknowledge_created_inferior, to_clone_and_follow_inferior, - to_post_follow_inferior_by_clone, to_create_catch_fork_hook, - to_create_catch_vfork_hook, to_has_forked, to_has_vforked, - to_post_follow_vfork, to_pid_to_exec_file - Function prototype definitions for new target_ops operations - New function definitions : child_pid_to_exec_file, child_post_wait, - child_post_startup_inferior, child_acknowledge_created_inferior, - child_clone_and_follow_inferior, - child_post_follow_inferior_by_clone, child_create_catch_fork_hook, - child_create_catch_vfork_hook, child_has_forked, child_has_vforked, - child_acknowledge_created_inferior, child_post_follow_vfork, - New macros : target_post_startup_inferior, - target_acknowledge_created_inferior, - target_clone_and_follow_inferior, - target_post_follow_inferior_by_clone, - target_create_catch_fork_hook, - target_create_catch_vfork_hook, - target_pid_to_exec_file - (find_default_clone_and_follow_inferior): new funct prototype - - * target.h: remove HPUX_SNAP1 and HPUX_SNAP2 ifdefs - - * txvu-tdep.c: - (txvu_print_register): added embedded_offset param to val_print - call. - - * v850ice.c: - (init_850ice_ops): adding and initializing new target_ops vector - fields : to_post_attach, to_post_follow_inferior_by_clone, - to_insert_fork_catchpoint, to_remove_fork_catchpoint, - to_insert_vfork_catchpoint, to_remove_vfork_catchpoint, - to_can_follow_vfork_prior_to_exec, to_insert_exec_catchpoint, - to_remove_exec_catchpoint, to_has_execd, - to_reported_exec_events_per_exec_call, to_has_exited, - to_core_file_to_sym_file - - * valprint.c (print_binary_chars): print out long long as - a binary number - (print_octal_chars): print out long long as an octal number - (print_decimal_chars): print out long long as a decimal number - - * valprint.c (strcat_longest): define it (from Stan Shebs). - - * valprint.c: HP merge, 4/15/98 snapshot - Added parameter to val_print. This is used for + (target_pid_or_tid_to_str): Define default macro. + Add missing #endif after PC_REQUIRES_RUN_BEFORE_USE definition + (ENSURE_VFORKING_PARENT_REMAINS_STOPPED): Define default macro. + (RESUME_EXECD_VFORKING_CHILD_TO_GET_PARENT_VFORK): Define default + macro. + There are new function decls for to_require_attach + and to_require_detach. There are also new macros, + target_require_attach and target_require_detach. There are + also new function decls for find_default_require_detach + and find_default_require_attach. + (target_ops): New fields to_post_wait, to_post_startup_inferior + to_acknowledge_created_inferior, to_clone_and_follow_inferior, + to_post_follow_inferior_by_clone, to_create_catch_fork_hook, + to_create_catch_vfork_hook, to_has_forked, to_has_vforked, + to_post_follow_vfork, to_pid_to_exec_file. + New function definitions child_pid_to_exec_file, child_post_wait, + child_post_startup_inferior, child_acknowledge_created_inferior, + child_clone_and_follow_inferior, + child_post_follow_inferior_by_clone, child_create_catch_fork_hook, + child_create_catch_vfork_hook, child_has_forked, + child_has_vforked, child_acknowledge_created_inferior, + child_post_follow_vfork. + New macros target_post_startup_inferior, + target_acknowledge_created_inferior, + target_clone_and_follow_inferior, + target_post_follow_inferior_by_clone, + target_create_catch_fork_hook, target_create_catch_vfork_hook, + target_pid_to_exec_file. + (find_default_clone_and_follow_inferior): New function prototype. + +start-sanitize-sky + * txvu-tdep.c (txvu_print_register): Add embedded_offset param + to val_print call. +end-sanitize-sky + + * v850ice.c (init_850ice_ops): Init new target vector fields. + + * valprint.c (print_binary_chars): Print out long long as + a binary number. + (print_octal_chars): Print out long long as an octal number + (print_decimal_chars): Print out long long as a decimal number + (strcat_longest): Define it. + * valprint.c: Hp merge, 4/15/98 snapshot + Add parameter to val_print. This is used for evaluating C++ expressions. - * value.h (VALUE_POINTED_TO_OFFSET): new macro. + * value.h (VALUE_POINTED_TO_OFFSET): New macro. Add field pointed_to_offset to value structure. Add prototypes for new functions in valops.c. - - * value.h (write_register_pid): change prototype to match + (write_register_pid): Change prototype to match function. - (val_print func decl): Additional parameter. + (val_print function decl): Additional parameter. (VALUE_EMBEDDED_OFFSET): New macro. - (find_rt_vbase_offset): New func decl -- for C++ support. + (find_rt_vbase_offset): New function decl -- for C++ support. - * win32-nat.c (child_ops): Remove unneeded settings. - (handle_load_dll): added params to call to symbol_file_add. - (init_child_ops): adding new target_ops vector fields and removing - a few. initializing new target ops vector fields. Wed Dec 23 15:03:42 1998 Per Bothner * Makefile.in (READLINE_CFLAGS): Search $(READLINE_SRC)/.. rather @@ -3994,11 +3589,11 @@ Sat Dec 12 09:28:13 1998 Andrew Cagney start-sanitize-sky 1998-12-11 Jeff Law (law@cygnus.com) - * txvu-tdep.c (set_vxtu_prompt): Rename set_prompt. + * txvu-tdep.c (set_vxtu_prompt): Rename set_prompt. - * configure.in (with-sim-gpu2): Do not emit a -L argument without - an associated pathname. Link in the math library after the gpu2 - library. + * configure.in (with-sim-gpu2): Do not emit a -L argument without + an associated pathname. Link in the math library after the gpu2 + library. end-sanitize-sky Fri Dec 11 09:07:05 1998 Andrew Cagney @@ -4030,12 +3625,12 @@ Thu Dec 10 15:19:40 1998 David Taylor changes originally made by HP; HP did not create ChangeLog entries. - * annotate.c: (annotate_catchpoint): New function. + * annotate.c (annotate_catchpoint): New function. - * annotate.h: (annotate_catchpoint): declare it; add new includes + * annotate.h (annotate_catchpoint): declare it; add new includes (symtab.h and gdbtypes.h). - * buildsym.h: added external var processing_hp_compilation. + * buildsym.h: add external var processing_hp_compilation. * coff-solib.h: (SOLIB_REMOVE_INFERIOR_HOOK): new macro. defined to 0. @@ -4082,7 +3677,7 @@ Thu Dec 10 15:19:40 1998 David Taylor * top.h: declare it. - * valprint.h: (print_binary_chars): new prototype definition. + * valprint.h (print_binary_chars): new prototype definition. (print_octal_chars): new prototype definition. (print_decimal_chars): new prototype definition. @@ -4599,18 +4194,18 @@ Fri Nov 13 00:15:08 1998 Geoffrey Noer Thu Nov 12 17:19:43 1998 John Metzler - * remote.c (remote_get_threadinfo) : Support for remote + * remote.c (remote_get_threadinfo): Support for remote multithread debugging. - (remote_get_threadlist) : get a partial list of threads - (remote_threadlist_iterator) : Step through all the threads - (init_remote_threadtests) : Optional builtin unit test commands. + (remote_get_threadlist): get a partial list of threads + (remote_threadlist_iterator): Step through all the threads + (init_remote_threadtests): Optional builtin unit test commands. - * thread.c (bind_target_thread_vector) : Implementa a more dynamic + * thread.c (bind_target_thread_vector): Implementa a more dynamic way of accessing target specific thread info functions than FIND_NEW_THREADS. - (target_thread_info) : Function to get extended thread information. + (target_thread_info): Function to get extended thread information. - * gdbthread.h : Export internal data structures corresponding to + * gdbthread.h: Export internal data structures corresponding to external detailed thread info response. This is more like a 'ps' command than what might be expected of host based threads. This is for embedded systems. @@ -5547,7 +5142,7 @@ Thu Jul 23 14:49:27 1998 Dawn Perchik start-sanitize-sky Thu Jul 23 13:00:28 1998 Ian Carmichael - * txvu-tdep.c: (VU0_MEM0_WINDOW_START, VU1_MEM0_WINDOW_START) + * txvu-tdep.c (VU0_MEM0_WINDOW_START, VU1_MEM0_WINDOW_START) Changed to use addresses in kseg1 range. end-sanitize-sky @@ -6015,7 +5610,7 @@ Thu May 21 13:14:25 1998 John Metzler (_initialize_sparcl_tdep): Ditto. * v850ice.c (init_850ice_ops): Ditto. (_initialize_v850ice): Ditto. - * win32-nat.c: (init_child_ops): Ditto. + * win32-nat.c (init_child_ops): Ditto. (_initialize_inftarg): Ditto. 1998-05-21 Jim Blandy @@ -6041,7 +5636,7 @@ Wed May 20 15:29:41 1998 Gavin Koch Wed May 20 10:12:11 1998 John Metzler - * m32r-tdep.c: (decode_prologue): Handle frames compiled with -Os. + * m32r-tdep.c (decode_prologue): Handle frames compiled with -Os. Split out as separate function called by skip prologue and scan prologue. new formula handles optimization in which the prologue is interleaved with the body of the function. Also recognizes new @@ -6636,7 +6231,7 @@ Tue Apr 14 15:43:49 1998 John Metzler * gdbcfgxref (xref_menu): Call new regex and wild card searches Now you can type in a specific triple like mips64-vr4300-elf or somthing like mips*.h - (triple_search) wildcardsearch): The new functions + (triple_search, wildcardsearch): The new functions start-sanitize-vr4320 * configure.tgt: Switch over to use tm-4320.h. Since I switched to @@ -6647,9 +6242,9 @@ start-sanitize-vr4320 end-sanitize-vr4320 Mon Apr 13 16:28:07 1998 Elena Zannoni - * utils.c: (warning) added call to warning_hook + * utils.c (warning): added call to warning_hook - * source.c: (find_source_lines) modified to call warning in case + * source.c (find_source_lines): modified to call warning in case of source vs. executable time stamp mismatch. Simplified object file check. Initialized mtime to 0.