Commit Graph

13622 Commits

Author SHA1 Message Date
Christopher Faylor 610dd7f9a6 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings when
using MS-DOS paths.
2008-01-06 06:59:14 +00:00
Pedro Alves 7a404eba27 gdb/
* NEWS: Mention --pid and --core command line behaviour changes.

	gdb/doc/

	* gdb.texinfo (File Options): Remove mention of the attempt to
	open a core file with the -p option.  Don't list -c as a valid
	option to attach to a process.
2008-01-05 21:50:44 +00:00
Pedro Alves a4d9b460bd gdb/
* main.c (captured_main): Remove 'count' varible and the
	ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
	--pid options were issued simultaneously.  If an explicit pid
	option was passed, don't fallback to core file.  Detect extra
	arguments better in the presence of explicit pid or core
	arguments.

	gdb/doc/
	* gdbint.texinfo (Host Conditionals): Remove mention of
	ALIGN_STACK_ON_ENTRY.
2008-01-05 16:49:53 +00:00
Joel Brobecker 0c281816be * ada-lang.c (ada_which_variant_applies): Correctly compute
the value of the discriminant when the variant record is packed.
2008-01-05 15:44:53 +00:00
Joel Brobecker babe1480e8 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
that are used to differentiate homonyms.
2008-01-04 21:36:25 +00:00
Joel Brobecker 727e3d2e5c * ada-lang.c (decode_packed_array_type): Avoid a seg fault
when the type is an anonymous pointer type.
        (ada_check_typedef): Avoid a seg fault when the type is null.
        * ada-typeprint.c (print_array_type): Add support for pointer
        to packed arrays.
2008-01-04 20:45:05 +00:00
Joel Brobecker bb28a9dcd8 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment. 2008-01-04 19:46:28 +00:00
Joel Brobecker 6799def481 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
2008-01-04 19:01:30 +00:00
Joel Brobecker d3353bbdea * ada-exp.y (chop_separator): New function.
(write_selectors): Rewrite to re-use chop_separator.
        (ada_nget_field_index, get_symbol_field_type): New functions.
        (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
        expressions.
2008-01-04 15:04:10 +00:00
Thiago Jung Bauermann 82cf6c60c4 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
of SYMBOL_VALUE when working with function symbols.
2008-01-03 21:30:13 +00:00
Joel Brobecker b3dbf0087f * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
expressions.  These expressions do not need to be rewriten.
2008-01-03 19:15:10 +00:00
Joel Brobecker 02eb380e72 * dwarf2read.c (read_enumeration_type): Flag type as stub if
the given die is a declaration.
2008-01-03 17:29:56 +00:00
Joel Brobecker abb68b3e0c * ada-lang.c (ada_array_bound_from_type): Make non-static.
Handle properly the case when the index type is an enumerated type.
        Do not return the subtype of the bounds type, just return the
        bounds type directly - this is not needed and is more consistent
        with what we do for arrays when no XA parallel type exists.
2008-01-03 14:07:10 +00:00
Joel Brobecker f192137b09 * ada-lang.c (static_unwrap_type): Add forward declaration.
(template_to_static_fixed_type): Fields of dynamic types sometimes
        also need to be unwrapped. Take this into account.
        (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
        (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
        * ada-typeprint.c (ada_print_type): Get the typename from
        the original type, not the base type.
2008-01-03 13:11:51 +00:00
Joel Brobecker 1ed6ede010 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
(to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
        Update calls to ada_to_fixed_type.
        (ada_template_to_fixed_record_type_1): Ditto, but without looking
        for the tag.
        (ada_to_fixed_type): Add check_tag parameter; do not look for
        tag if null.  When looking for a tag, use a fixed record type.
        * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
        * ada-valprint.c (printable_val_type, ada_value_print): Update
        calls to ada_to_fixed_type.
2008-01-03 12:30:38 +00:00
Luis Machado 542a88d0e4 * doublest.c (convert_floatformat_to_doublest): Call
floatformat_to_doublest instead of floatformat_to_double and use
	DOUBLEST variables.
	(convert_doublest_to_floatformat): Call floatformat_from_doublest
	instead of floatformat_from_double and use DOUBLEST variables.
2008-01-03 11:39:35 +00:00
Nick Hudson dc2bbab20c 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
* MAINTAINERS (Write After Approval): Add self.
2008-01-03 10:33:10 +00:00
Joel Brobecker 8b60591b5d * symfile.c (set_initial_language): Make non-static.
* symfile.h (set_initial_language): Add declaration.
        * language.c: #include "symfile.h".
        (set_language): Call set_initial_language if the frame language
        could not be determined.
2008-01-03 04:23:46 +00:00
Joel Brobecker ceef53c1cb * eval.c (evaluate_subexp_for_address): Provide frame address to
locate_var_value only if it will be needed.
2008-01-03 04:11:16 +00:00
Jan Kratochvil ef29ce1ab3 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
* gdb.threads/fork-child-threads.exp, gdb.threads/fork-child-threads.c:
	New files
2008-01-02 13:36:38 +00:00
Joel Brobecker 0a07e705b7 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
        This is needed to make sure that any other treatment applied
        to the resulting value does not fail for spurious reason,
        such as trying to take the address of this value.
2008-01-02 12:03:06 +00:00
Joel Brobecker f58b38bf6a * ada-lang.c (ada_value_equal): Dereference reference types when
comparing arrays.
2008-01-02 11:18:03 +00:00
Daniel Jacobowitz 9b254dd1ce Updated copyright notices for most files. 2008-01-01 22:53:26 +00:00
Christopher Faylor 33605d3962 * win32-nat.c (psapi_module_handle): Remove static.
(get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to return
first module found if base_address is zero.  Don't initialize psapi function
pointers here.  Convert to cygwin paths when appropriate.
(win32_pid_to_exec_file): Use Cygwin's /proc interface to determine executable
name.  Use get_module_name when that fails or when !__CYGWIN__.
(_initialize_psapi): New function.  Initialize psapi stuff before it is needed
or issue a warning if it is not found.  Move psapi_module_handle here.
2008-01-01 18:42:08 +00:00
Joel Brobecker 29480c32d9 * ada-lang.c (ada_remove_trailing_digits): New function.
(ada_remove_po_subprogram_suffix): New function.
        (ada_decode): Improve. Move the description of the algorithm
        directly inside the code, instead of in the function global
        description.
2008-01-01 12:39:49 +00:00
Joel Brobecker 969a136098 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
and always print the dereferenced value.
2008-01-01 11:39:07 +00:00
Joel Brobecker b7789565fa * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
of the case where the first argument is a reference.
        (ada_evaluate_subexp, case BINOP_ADD): Likewise.
2008-01-01 07:38:37 +00:00
Joel Brobecker 73fb998568 Implement support for Ada interface types.
* ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
        (ada_is_ignored_field): Ignore fields that are a dispatch table
        of a tagged type.
2008-01-01 07:21:59 +00:00
Joel Brobecker 636265b635 * top.c (print_gdb_version): Update copyright year. 2008-01-01 04:27:43 +00:00
Joel Brobecker 9d200a2e61 * ChangeLog-2007: New ChangeLog rotation.
* ChangeLog: Reset for 2008.
        * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
        ChangeLog-2007.
2008-01-01 04:20:42 +00:00
Daniel Jacobowitz b7589f7df4 * remote.c (unpack_nibble): Use fromhex.
* symtab.c (find_line_common): Always set exact_match.
2007-12-31 18:38:43 +00:00
Daniel Jacobowitz afa3502125 * hppa-linux-nat.c: Use hppa-linux-offsets.h.
* hppa-linux-offsets.h: New file.
2007-12-31 15:49:44 +00:00
Pedro Alves fd39ac051a * configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
GDB_OSABI_WINCE.
	(*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
2007-12-30 22:13:55 +00:00
Mark Kettenis 70f13f6b00 * i386nbsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h"
(sigtramp_retcode, i386nbsd_sigtramp_offset, i386nbsd_sigtramp_p):
Remove
(i386nbsd_mc_reg_offset): New array.
(i386nbsd_sigtramp_cache_init): New function.
(i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2, i386nbsd_sigtramp_si2)
(i386nbsd_sigtramp_si31, i386nbsd_sigtramp_si4): New signal trampoline
frame descriptions.
(i386nbsd_init_abi): Override ABI sigcontext defaults and register
new signal frame unwinders
* Makefile.in (i386nbsd-tdep.o): Update dependencies.
* tramp-frame.h (struct tramp_frame): Allow for 48 instructions
2007-12-29 17:01:41 +00:00
Joel Brobecker 6b69afc449 * ada-lang.c (_initialize_ada_language): Attach executable_changed
observer.
2007-12-29 05:37:25 +00:00
Joel Brobecker 000d512403 * ada-lang.c (ada_evaluate_subexp): Break two large expressions
using temporary variables.
2007-12-28 13:06:17 +00:00
Joel Brobecker 6e48bd2c90 * ada-lang.c (ada_value_cast): New function, extracted out from
the code in ada_evaluate_subexp, case UNOP_CAST.  The code handling
        the obscure case has been removed as we think that it is actually
        unnecessary.
        (ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
        or an OP_LONG with a non-null expect_type. Replace extracted-out
        code with call to new ada_value_cast function.
2007-12-28 06:25:56 +00:00
Joel Brobecker 2330c6c69c * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
        BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
        * language.c (lang_bool_type): Add Ada case.
2007-12-28 06:13:51 +00:00
Joel Brobecker 1760d9d580 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion. 2007-12-26 12:36:18 +00:00
Luis Machado a6a5a94583 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
function to handle required actions for the DW_CFA_restore and
	DW_CFA_restore_extended instructions.
	(dwarf2_restore_rule): New function.
2007-12-26 10:57:50 +00:00
Joel Brobecker 5a517ebd81 * ada-lang.c (ada_is_character_type): Add recognition of type
"Wide_Wide_Character".
2007-12-24 16:52:24 +00:00
Joel Brobecker 7b9f71f288 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
for char and unsigned char types of Ada compilation units.
        * ada-lang.c (ada_is_character_type): Always return true if
        the type code is TYPE_CODE_CHAR.
2007-12-24 06:29:27 +00:00
Joel Brobecker 1ce9f7f229 * infrun.c (handle_inferior_event): Remove code that made us
stop when stepping into the last line of the current function.
2007-12-23 05:34:38 +00:00
Pierre Muller 8861631251 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
* win32-nat.c: Fix PR/2388.
	(do_win32_fetch_inferior_registers): Do not overwrite debug register
	array dr if debug_registers_changed variable is set.
2007-12-22 22:09:56 +00:00
Jan Kratochvil 680b30c7fe * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
(add_partial_symbol, pdi_needs_namespace, process_die)
	(is_type_tag_for_partial, load_partial_dies, new_symbol)
	(read_type_die, determine_prefix): Extend the current code of
	`DW_TAG_class_type' also for `DW_TAG_interface_type'.
2007-12-22 20:58:30 +00:00
Joel Brobecker aeb5907d62 * ada-lang.h (ada_renaming_category): New enumerated type.
(ada_lookup_encoded_symbol): Declare.
        (ada_parse_renaming): Declare.
        (ada_renaming_type,ada_is_object_renaming)
        (ada_simple_renamed_entity): Delete declarations.
        * ada-lang.c (ada_parse_renaming): New function to concentrate
        extraction of information from renaming symbols.
        (parse_old_style_renaming): New function to concentrate
        extraction of old-style (purely type-based) renaming information.
        (renaming_is_visible): Rename to...
        (old_renaming_is_invisible): Rename and change sense of
        renaming_is_visible.
        (remove_out_of_scope_renamings): Rename to...
        (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
        and augments with additional logic to handle cases where the same
        object renaming is encoded both as a reference variable and an
        encoded renaming.
        (ada_renaming_type,ada_is_object_renaming)
        (ada_simple_renamed_entity): Delete definitions.
        (ada_lookup_encoded_symbol): New function factored out of
        ada_lookup_symbol.
        (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
        (wild_match): Don't reject perfect match of prefix.
        (ada_find_renaming_symbol): Factor old-style renaming logic into
        find_old_style_renaming_symbol.
        (find_old_style_renaming_symbol): New name for content of old
        ada_find_renaming_symbol.
        (ada_prefer_type): Reimplement not to use ada_renaming_type.
        * ada-exp.y (write_object_renaming): Change interface.  Reimplement
        to use new arguments and ada_parse_renaming.
        Correct blocks used to find array index.
        (write_var_or_type): Reimplement to use ada_parse_renaming.
2007-12-21 11:50:11 +00:00
Joel Brobecker 27a98bd991 Minor reformatting. 2007-12-21 11:44:14 +00:00
Joel Brobecker 2d42f9a81c * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
value or to PATH_MAX when possible.
2007-12-21 07:37:26 +00:00
Joel Brobecker 3463063964 * rs6000-tdep.h: Remove defs.h #include.
* Makefile.in (rs6000_tdep_h): Update dependencies.
2007-12-21 04:59:00 +00:00
Thiago Jung Bauermann 213e4dc22e * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
to conform to C extension for decimal float.
	* c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
	Point types.
	(enum cplus_primitive_types): Likewise.
	(c_language_arch_info): Add Decimal Floating Point builtin types to
	the primitive_type_vector.
	(cplus_language_arch_info): Likewise.
2007-12-20 17:17:21 +00:00