Daniel Jacobowitz
3526781ecf
* configure.ac (build_warnings): Add -Wno-format for mingw.
...
* configure: Regenerated.
2008-06-09 15:03:59 +00:00
Daniel Jacobowitz
d001be7a29
* NEWS: Make indentation consistent. Move exec tracing entry out
...
of remote packet list.
2008-06-07 22:21:28 +00:00
Tom Tromey
65d12d83a5
gdb
...
* value.h (evaluate_subexpression_type, extract_field_op):
Declare.
* printcmd.c (_initialize_printcmd): Use expression_completer for
'p', 'inspect', 'call'.
* parser-defs.h (parse_field_expression): Declare.
* parse.c: Include exceptions.h.
(in_parse_field, expout_last_struct): New globals.
(mark_struct_expression): New function.
(prefixify_expression): Return int.
(prefixify_subexp): Return int. Use expout_last_struct.
(parse_exp_1): Update.
(parse_exp_in_context): Add 'out_subexp' argument. Handle
in_parse_field.
(parse_field_expression): New function.
* expression.h (parse_field_expression): Declare.
(in_parse_field): Likewise.
* eval.c (evaluate_subexpression_type): New function.
(extract_field_op): Likewise.
* completer.h (expression_completer): Declare.
* completer.c (expression_completer): New function.
(count_struct_fields, add_struct_fields): New functions.
* c-exp.y (yyparse): Redefine.
(COMPLETE): New token.
(exp): New productions.
(saw_name_at_eof, last_was_structop): New globals.
(yylex): Return COMPLETE when needed. Recognize in_parse_field.
(c_parse): New function.
* breakpoint.c (_initialize_breakpoint): Use expression_completer
for watch, awatch, and rwatch.
* Makefile.in (parse.o): Depend on exceptions_h.
gdb/testsuite
* gdb.base/break1.c (struct some_struct): New struct.
(values): New global.
* gdb.base/completion.exp: Add field name completion test.
gdb/doc
* gdb.texinfo (Completion): Add field name example.
2008-06-06 20:58:08 +00:00
Paul Pluzhnikov
fed276330d
2008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
...
PR gdb/1147
* gdb/valopts.c (find_overload_match): Handle references
to pointers.
2008-06-06 18:29:00 +00:00
Paul N. Hilfinger
aced2898db
ada_value_assign: Correct big-endian case to take into account the bitsize
...
of the 'from' operand.
2008-06-06 06:48:36 +00:00
Pedro Alves
a2b87ed119
* annotate.h (annotate_thread_changed): Declare.
2008-06-06 02:35:47 +00:00
Nick Roberts
3d6d0b9dd5
*** empty log message ***
2008-06-06 00:30:27 +00:00
Joseph Myers
c16158bc9c
2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
...
Nathan Sidwell <nathan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* acinclude.m4: Include ../config/acx.m4.
* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
* configure, config.in: Regenerate.
* main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
address.
* top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
doc:
2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* configure.ac: Include ../../config/acx.m4. Use ACX_PKGVERSION
and ACX_BUGURL.
* configure: Regenerate.
* Makefile.in (PKGVERSION, BUGURL_TEXI): Define.
(GDBvn.texi): Define VERSION_PACKAGE, BUGURL and BUGURL_DEFAULT.
* gdb.texinfo: Use VERSION_PACKAGE and BUGURL. Remove
mailing-list-specific text about bug reporting unless
BUGURL_DEFAULT.
gdbserver:
2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
Joseph Myers <joseph@codesourcery.com>
* acinclude.m4: Include ../../config/acx.m4.
* configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
* configure, config.in: Regenerate.
* Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
* server.c (gdbserver_version): Print PKGVERSION.
(gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
(main): Adjust gdbserver_usage calls.
* gdbreplay.c (version, host_name): Add declarations.
(gdbreplay_version, gdbreplay_usage): New.
(main): Accept --version and --help options.
2008-06-05 22:36:57 +00:00
Pedro Alves
75c9938534
Replace 'target async' by 'maintenance set remote-async' and
...
'target remote' combination.
* remote.c (remote_async_wait): Merge into remote_wait, and
remove.
(remote_async_permitted, remote_async_permitted_set): New
variables.
(set_maintenance_remote_async_permitted)
(show_maintenance_remote_async_permitted): New functions.
(remote_async_ops, extended_async_remote_ops): Delete.
(remote_async_open, extended_remote_async_open): Delete.
(remote_open_1): Drop async_p parameter. Update callers. Replace
async_p with remote_async_permitted checks.
(extended_async_remote_attach): Delete.
(remote_resume, remote_async_resume): Merge and leave remote_resume.
(remote_async_terminal_inferior): Rename to...
(remote_terminal_inferior): ... this, and add
remote_async_termitted check.
(remote_async_terminal_ours): Rename to...
(remote_terminal_ours): ... this, and add remote_async_termitted
check.
(remote_wait, remote_async_wait): Merge and leave remote_wait
only.
(remote_kill, remote_async_kill): Merge and leave remote_kill
only.
(remote_async_mourn, extended_async_remote_mourn): Delete.
(extended_remote_create_inferior_1): Drop async_p parameter.
Update callers. Always use extended_remote_ops.
(extended_remote_async_create_inferior): Delete.
(remote_return_zero): Delete.
(init_remote_ops): Register remote_can_async_p, remote_async,
remote_async_mask, remote_terminal_inferior and
remote_terminal_ours.
(remote_can_async_p, remote_is_async_p): Check for
remote_async_permitted.
(init_remote_async_ops, init_extended_async_remote_ops): Remove.
(set_remote_cmd): Don't add async and extended-async targets.
(_initialize_remote): Add set/show remote-async maintenance
commands.
gdb/doc/
* gdb.texinfo (-target-select): Remove reference to target async.
(Maintenance Commands): Document "maint set/show remote-async".
2008-06-05 21:35:00 +00:00
Pedro Alves
cf30943b93
* remote.c (kill_kludge): Delete.
...
(remote_wait, remote_async_wait): Don't set it.
(remote_kill, remote_async_kill): Don't do anything with it.
2008-06-05 21:13:58 +00:00
Pedro Alves
49fd4a422b
gdb/
...
* linux-thread-db.c (thread_db_wait): Don't trim event ptid.
testsuite/
* gdb.threads/execl.c, gdb.threads/execl1.c,
gdb.threads/execl.exp: New tests.
2008-06-05 21:03:59 +00:00
Aleksandar Ristovski
2e618c13af
* bcache.c (bcache_data): Call deprecated_bcache_added function.
...
(deprecated_bcache_added): New function name. Body of function
bcache_data is used here with the addition of 'added' argument.
* bcache.h (deprecated_bcache_added): New function.
* symfile.c (add_psymbol_to_bcache): New helper function, takes part of
work from add_psymbol_to_list - initialises partial symbol and stashes
it in objfile's cache.
(append_psymbol_to_list): New helper function, takes other part of
work from add_psymbol_to_list - adds partial symbol to the given list.
(add_psymbol_to_list): Call helper functions instead of doing work
here. If adding to global list, do not duplicate partial symbols in the
partial symtab.
2008-06-05 19:21:55 +00:00
Aleksandar Ristovski
c0b37c48d0
* breakpoint.c (print_exception_catchpoint): Put 'exception' back to
...
'exception caught|thrown' message.
2008-06-05 18:31:53 +00:00
Jan Kratochvil
1e3a102aba
* Makefile.in: Update dependencies.
...
* dwarf2expr.c: New include "gdb_assert.h".
(new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
(dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
(execute_stack_op): Error out on too large RECURSION_DEPTH.
Increase/decrease RECURSION_DEPTH around the function.
2008-06-05 18:25:30 +00:00
Daniel Jacobowitz
8d38543126
* remote.c (get_offsets): Handle a single segment.
...
* symfile.c (symfile_map_offsets_to_segments): Allow more bases
than segments.
2008-06-05 16:17:54 +00:00
Daniel Jacobowitz
93a57060b7
* solib-svr4.c (struct lm_info): Add lm_addr.
...
(main_lm_addr): New.
(svr4_default_sos): Set lm_addr.
(svr4_current_sos): Set lm_addr and main_lm_addr.
(svr4_fetch_objfile_link_map): Rewrite.
(svr4_clear_solib): Clear main_lm_addr.
2008-06-03 12:59:37 +00:00
Joseph Myers
609ba7801a
2008-06-03 Michael Snyder <msnyder@redhat.com>
...
Joseph Myers <joseph@codesourcery.com>
* mips-tdep.c (mips_eabi_return_value): Replace stub that always
returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2008-06-03 10:53:34 +00:00
Joel Brobecker
c95f502610
* m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2008-06-02 16:06:52 +00:00
Joel Brobecker
e4d8bc0898
* m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2008-06-02 16:05:57 +00:00
Joel Brobecker
40adab5634
* rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
...
treat pointers in data space as function descriptors if the
target address is also in the data space.
2008-06-02 03:12:33 +00:00
Joel Brobecker
bfd66dd95a
* alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
...
the trad-frame register value for the SP register.
2008-05-30 17:03:55 +00:00
Mark Kettenis
7ea566bee7
* sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2008-05-29 15:51:37 +00:00
Joel Brobecker
fcac911af1
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
...
that identifies function descriptors outside of the .opd section.
2008-05-29 00:19:33 +00:00
Aleksandar Ristovski
ade9271736
* breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
...
temporary catchpoints. In MI add missing fields 'reason', 'disp',
'bkptno'.
(print_mention_exception_catchpoint): Add 'Temporary' for temporary
catchpoints.
(handle_gnu_v3_exceptions): Use tempflag.
2008-05-28 14:04:21 +00:00
Vladimir Prus
f7f9ae2c16
Refactor varobj_update interface.
...
* varobj.c (varobj_update): Report changes as vector. Also
return not just a list of varobj, but a list of special structures
that tell what exactly has changed.
* varobj.h (enum varobj_update_error): Rename to
varobj_scope_status.
(struct varobj_update_result_t): New.
(varobj_update): Adjust prototype.
* mi/mi-cmd-var.c: Adjust for changes.
2008-05-28 12:06:36 +00:00
Vladimir Prus
ea56f9c264
* varobj.c (varobj_update): Fix comment typo.
...
Fix indentation.
2008-05-28 06:49:56 +00:00
Joel Brobecker
c7efd0b9df
Set the symtab field of symbols read from ECOFF debugging entries.
...
* mdebugread.c (add_symbol): Add new parameter symtab.
(parse_symbol): Update calls to add_symbol throughout.
2008-05-27 20:24:51 +00:00
Andreas Schwab
2a2d4dc301
* symtab.h (enum address_class): Remove LOC_REGPARM and
...
LOC_COMPUTED_ARG.
(struct symbol): Add is_argument.
(SYMBOL_IS_ARGUMENT): Define.
* ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
* buildsym.c (finish_block): Likewise.
* stack.c (print_frame_args, print_block_frame_locals)
(print_frame_arg_vars): Likewise.
* symtab.c (lookup_block_symbol): Likewise.
* tracepoint.c (add_local_symbols): Likewise.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
* dwarf2read.c (new_symbol): Likewise.
* mdebugread.c (parse_symbol): Likewise.
* stabsread.c (define_symbol): Likewise.
* ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
and LOC_COMPUTED_ARG.
* ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
* ax-gdb.c (gen_var_ref): Likewise.
* eval.c (evaluate_subexp_for_address): Likewise.
* findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
* m2-exp.y (yylex): Likewise.
* printcmd.c (address_info): Likewise.
* symmisc.c (print_symbol, print_partial_symbols): Likewise.
* tracepoint.c (collect_symbol, scope_info): Likewise.
testsuite/:
* gdb.base/frame-args.exp: Handle arguments that are optimized
out.
2008-05-27 19:29:52 +00:00
Carlos Eduardo Seo
17ea7499a9
* gdbarch.sh: Added new gdbarch struct
...
core_regset_sections.
* gdbarch.c: Refreshed.
* gdbarch.h: Refreshed.
* regset.h (core_regset_section): Declared.
* linux-nat.c (linux_nat_do_thread_registers): Added
support for the new gdbarch struct core_regset_sections.
* utils.c (host_address_to_string): New function.
* defs.h (host_address_to_string): New prototype.
* i386-linux-tdep.c (i386_regset_rections): New register
sections list for i386.
(i386_linux_init_abi): Initialized new gdbarch struct
core_regset_sections.
* Makefile.in: Updated to reflect dependency changes.
* ppc-linux-tdep.c (ppc_regset_sections): Register
sections list for ppc.
(ppc_linux_init_abi): Initialized new gdbarch struct
core_regset_sections
2008-05-24 16:32:01 +00:00
Andreas Schwab
c4fc331b68
* linespec.c (decode_objc): Save current language around call to
...
get_selected_block.
2008-05-23 23:39:03 +00:00
Joel Brobecker
e936309cee
* valprint.h (get_array_bounds): Renames get_array_low_bound.
...
* valprint.c (get_array_bounds): Renames get_array_low_bound.
Return the proper bound value if the array index type is an
enumerated type. Compute the high bound if requested.
(val_print_array_elements): Handle the case when the array
element has a null size.
* ada-valprint.c (print_optional_low_bound): Add handling
for empty arrays or arrays of zero-size elements.
(ada_val_print_array): New function, extracted out from
ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
handle empty arrays and arrays of zero-size elements.
(ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
code by call to ada_val_print_array.
(ada_value_print): Remove handling of null array. The handling
was incomplete and is now better handled by ada_val_print_array.
2008-05-23 18:13:35 +00:00
Markus Deuling
50ee753532
* annotate.c (annotate_source, annotate_frame_begin): Replace
...
deprecated_print_address_numeric with paddress.
* cli/cli-cmds.c (list_command, edit_command): Likewise.
* tui/tui-stack.c (tui_make_status_line): Likewise.
* defs.h (deprecated_print_address_numeric): Remove.
* printcmd.c (deprecated_print_address_numeric): Remove.
* maint.c (maint_print_section_info): Fix comment.
2008-05-23 04:31:40 +00:00
Markus Deuling
d44e847372
* valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
...
print_binary_chars, print_char_chars): Add byte_order parameter and
replace gdbarch_byte_order.
(print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
expressions and remove them. Remove unused TWO_TO_FOURTH.
(val_print_type_code_int): Introduce gdbarch_byte_order to get at the
endianness. Update call to print_hex_chars.
* valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
print_binary_chars, print_char_chars): Add byte_order parameter.
* printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
get at the endianness. Update print_*_char calls to use byte_order.
2008-05-23 04:28:05 +00:00
Ulrich Weigand
10f4ecb8fa
* symtab.h (struct symbol): Make "aux_value" member a void pointer
...
instead of a union.
(SYMBOL_LOCATION_BATON): Update.
2008-05-22 17:00:50 +00:00
Ulrich Weigand
c3b22bd09c
* symtab.h (enum address_class): Remove LOC_BASEREG and
...
LOC_BASEREG_ARG.
(struct symbol): Remove "basereg" member of "aux_value" union.
(SYMBOL_BASEREG): Remove.
* ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
or LOC_BASEREG_ARG.
* ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
(ada_add_block_symbols): Likewise.
* ax-gdb.c (gen_var_ref): Likewise.
* buildsym.c (finish_block): Likewise.
* findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
* m2-exp.y (yylex): Likewise.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* printcmd.c (address_info): Likewise.
* stack.c (print_frame_args, print_block_frame_locals): Likewise.
(print_frame_arg_vars): Likewise.
* symmisc.c (print_symbol): Likewise.
* symtab.c (lookup_block_symbol): Likewise.
* tracepoint.c (collect_symbol, add_local_symbols): Likewise.
(scope_info): Likewise.
2008-05-22 17:00:07 +00:00
Ulrich Weigand
aa59ba6b27
* symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
...
* ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
* ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
(ada_add_block_symbols): Likewise.
* ax-gdb.c (gen_var_ref): Likewise.
* buildsyms.c (finish_block): Likewise.
* findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
* m2-exp.y (yylex): Likewise.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* printcmd.c (address_info): Likewise.
* stack.c (print_frame_args, print_frame_arg_vars): Likewise.
* symmisc.c (print_symbol, print_partial_symbols): Likewise.
* symtab.c (lookup_block_symbol): Likewise.
* tracepoint.c (collect_symbol, add_local_symbols): Likewise.
(scope_info): Likewise.
2008-05-22 16:59:01 +00:00
Ulrich Weigand
0bb4e8c4ad
* symtab.h (enum address_class): Remove LOC_INDIRECT and
...
LOC_HP_THREAD_LOCAL_STATIC.
* findvar.c (symbol_read_needs_frame, read_var_value): Do not
handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
(read_var_value): Likewise.
* buildsym.c (finish_block): Likewise.
* objfiles.c (objfile_relocate): Likewise.
* printcmd.c (address_info): Likewise.
* symmisc.c (print_symbol, print_partial_symbols): Likewise.
* tracepoint.c (scope_info): Likewise.
2008-05-22 16:58:02 +00:00
Maxim Grigoriev
9f61f19bbf
2008-05-21 Markus Deuling <deuling@de.ibm.com>
...
Maxim Grigoriev <maxim2405@gmail.com>
* xtensa-tdep.c (xtensa_read_register): Remove.
(xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
argument litbase to call0_frame_cache().
(call0_track_op, call0_analyze_prologue)
(call0_frame_cache): Use extra argument litbase.
2008-05-21 18:37:30 +00:00
Joel Brobecker
0e479716ae
* infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2008-05-21 17:54:24 +00:00
Ulrich Weigand
214be669de
* frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2008-05-21 15:08:39 +00:00
Ulrich Weigand
0cd9ab92e5
* alpha-mdebug-tdep.c: Include "trad-frame.h".
...
(struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
struct trad_frame_saved_reg *.
(alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
trad_frame_alloc_saved_regs. Update accesses. Record previous
value of SP as being vfp.
(alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
* Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2008-05-21 14:47:26 +00:00
Markus Deuling
f52cb1b84b
* score-tdep.c (score_print_insn): Get the current endianess from
...
disassemble_info instead of gdbarch_byte_order.
2008-05-21 04:19:44 +00:00
Pedro Alves
8fa75a5d17
* frame.c (get_prev_frame_1): Build frame id before setting
...
this_frame->prev_p, not after.
2008-05-20 22:21:19 +00:00
Nick Roberts
e8e48118bb
*** empty log message ***
2008-05-20 21:02:27 +00:00
Joel Brobecker
c57918b25b
* win32-nat.c (win32_wait): Block the control-c event while
...
waiting for a debug event.
2008-05-20 18:36:36 +00:00
Pedro Alves
6c9353d346
* symtab.h (lookup_symbol_in_language): Update comment.
...
* symtab.c (lookup_symbol_aux_block): Update comment.
* ada-lang.c (ada_lookup_symbol_list): Update comment.
2008-05-19 18:37:07 +00:00
Ulrich Weigand
2570f2b7e1
* symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
...
(lookup_symbol): Likewise.
* symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
(lookup_symbol): Likewise.
(search_symbols): Update.
* linespec.c (find_methods, collect_methods): Update.
(add_matching_methods, add_constructors): Update.
(decode_compound, decode_dollar, decode_variable): Update.
(lookup_prefix_sym): Update.
(symbol_found): Remove SYM_SYMTAB parameter.
Use SYMBOL_SYMTAB (sym) instead.
* gdbtypes.c (lookup_typename): Update.
(lookup_struct, lookup_union, lookup_enum): Update.
(lookup_template_type): Update.
(check_typedef): Update.
* language.c (lang_bool_type): Update.
* mdebugread.c (parse_procedure): Update.
* mi/mi-cmd-stack.c (list_args_or_locals): Update.
* parse.c (write_dollar_variable): Update.
* printcmd.c (address_info): Update.
* source.c (select_source_symtab): Update.
* stack.c (print_frame_args, print_frame_arg_vars): Update.
* valops.c (find_function_in_inferior): Update.
(value_struct_elt_for_reference): Update.
* value.c (value_static_field, value_fn_field): Update.
* alpha-mdebug-tdep.c (find_proc_desc): Update.
* arm-tdep.c (arm_skip_prologue): Update.
* mt-tdep.c (mt_skip_prologue): Update.
* xstormy16-tdep.c (xstormy16_skip_prologue): Update.
* ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
* ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
(add_defn_to_vec): Likewise.
(ada_add_block_symbols): Likewise.
(lookup_cached_symbol, cache_symbol): Likewise.
(standard_lookup): Update.
(ada_lookup_symbol_list): Update.
* c-valprint.c (c_val_print): Update.
* cp-support.c (cp_lookup_rtti_type): Update.
* jv-lang.c (java_lookup_class, get_java_object_type): Update.
* objc-lang.c (lookup_struct_typedef, find_imps): Update.
* p-valprint.c (pascal_val_print): Update.
* scm-lang.c (scm_lookup_name): Update.
* c-exp.y: Update.
* f-exp.y: Update.
* jv-exp.y: Update.
* m2-exp.y: Update.
* objc-exp.y: Update.
* p-exp.y: Update.
2008-05-19 15:50:10 +00:00
Ulrich Weigand
21b556f400
* language.h (struct language_defn): Remove SYMTAB parameter from
...
la_lookup_symbol_nonlocal callback function pointer.
* ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
(ada_lookup_encoded_symbol): Likewise.
* ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
Always call fixup_symbol_section.
(ada_lookup_symbol): Remove SYMTAB parameter.
(ada_lookup_symbol_nonlocal): Likewise.
* ada-exp.y (write_object_renaming): Update.
(find_primitive_type): Likewise.
* cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
(cp_lookup_symbol_namespace): Likewise.
* cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
(lookup_symbol_file): Likewise.
(lookup_possible_namespace_symbol): Likewise.
(cp_lookup_symbol_nonlocal): Likewise.
(cp_lookup_symbol_namespace): Likewise.
(cp_lookup_nested_type): Update.
* scm-valprint.c (scm_inferior_print): Update.
* valops.c (value_maybe_namespace_elt): Update.
* solist.h (struct target_so_ops): Remove SYMTAB parameter from
lookup_lib_global_symbol callback function pointer.
(solib_global_lookup): Remove SYMTAB parameter.
* solib.c (solib_global_lookup): Remove SYMTAB parameter.
* solib-svr4.c (elf_lookup_lib_symbol): Likewise.
* symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
(lookup_symbol_static): Likewise.
(lookup_symbol_global): Likewise.
(lookup_symbol_aux_block): Likewise.
(lookup_global_symbol_from_objfile): Likewise.
* symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
(lookup_symbol_aux_local): Likewise.
(lookup_symbol_aux_block): Likewise.
(lookup_symbol_aux_symtabs): Likewise.
(lookup_symbol_aux_psymtabs): Likewise.
(lookup_global_symbol_from_objfile): Likewise.
(basic_lookup_symbol_nonlocal): Likewise.
(lookup_symbol_static): Likewise.
(lookup_symbol_global): Likewise.
(lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2008-05-19 15:49:14 +00:00
Pedro Alves
39237dd126
* remote.c (init_extended_remote_ops): Fix typo.
2008-05-17 11:28:30 +00:00
Pedro Alves
7c0d47a533
* NEWS: Mention new DICOS x86 target configuration.
2008-05-16 15:54:08 +00:00
Ulrich Weigand
907fc20268
gdb/
...
2008-05-15 Pedro Alves <pedro@codesourcery.com>
Ulrich Weigand <uweigand@de.ibm.com>
* minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
* symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
* symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
use it instead of ginfo->value.address. Look up minimal symbol by
address and name. Assume OBJFILE is non-NULL.
(fixup_symbol_section): Ensure we always have an objfile to look
into. Extract and pass to fixup_section the symbol's address that
will match the minimal symbol's address.
(fixup_psymbol_section): Likewise.
(find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
overlays and the addrmap returned the wrong section.
* dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
calling fixup_symbol_section.
gdb/testsuite/
2008-05-15 Pedro Alves <pedro@codesourcery.com>
* gdb.base/fixsection.exp: New file.
* gdb.base/fixsection0.c: New file.
* gdb.base/fixsection1.c: New file.
2008-05-16 12:58:49 +00:00
Ulrich Weigand
42848c9656
* minsyms.c: Include "target.h".
...
(find_solib_trampoline_target): Handle minimal symbols pointing
to function descriptors as well.
* Makefile.in (minsyms.o): Update dependencies.
* ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
(ppc64_standard_linkage1): ... this. Fix optional instructions.
(PPC64_STANDARD_LINKAGE_LEN): Rename to ...
(PPC64_STANDARD_LINKAGE1_LEN): ... this.
(ppc64_standard_linkage2, ppc64_standard_linkage3): New.
(PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
(ppc64_standard_linkage_target): Rename to ...
(ppc64_standard_linkage1_target): ... this.
(ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
(ppc64_skip_trampoline_code): Support three variants of standard
linkage stubs. Call find_solib_trampoline_target to handle
glink stubs.
2008-05-16 12:51:21 +00:00
Ulrich Weigand
74d1f0631a
* ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
...
ppc64_sysv_abi_adjust_breakpoint_address.
* ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
* ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2008-05-16 12:49:47 +00:00
Ulrich Weigand
8526f32824
* ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
...
(ppc_linux_init_abi): Install find_solib_trampoline_target instead
of ppc_linux_skip_trampoline_code.
2008-05-16 12:48:59 +00:00
Daniel Jacobowitz
ba2b1c567f
* gdbarch.sh: Delete dwarf_reg_to_regnum.
...
* gdbarch.c, gdbarch.h: Regenerated.
* amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
* gdbint.texinfo (Target Conditionals): Delete entry for
gdbarch_dwarf_reg_to_regnum.
2008-05-16 00:27:24 +00:00
Pedro Alves
4fdebdd056
* linux-nat.c (trap_ptid): Delete.
...
(linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
Adjust.
* linux-thread-db.c (thread_db_wait): Adjust.
2008-05-15 20:11:48 +00:00
Joel Brobecker
bc882aa937
* linespec.c (decode_line_1): Fix a couple of comments.
2008-05-15 19:24:46 +00:00
Alan Modra
83b94be541
* dbxread.c: Formatting.
...
(INTERNALIZE_SYMBOL): Init n_other.
(set_namestring): Take pointer to nlist arg rather than struct
copy. Update all callers.
2008-05-15 13:23:34 +00:00
Andreas Schwab
87669130a4
(dwarf2loc.o): Remove $(addrmap_h).
...
(dwarf2read.o): Add $(addrmap_h).
2008-05-15 09:38:40 +00:00
Ulrich Weigand
00d5f93a89
* ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
...
(ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
to handle ppc32 PLT entries.
(ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
only on ppc64.
2008-05-14 18:28:59 +00:00
Daniel Jacobowitz
2eaf8d2a14
* elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
...
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
(lookup_minimal_symbol_by_pc_section): Use
lookup_minimal_symbol_by_pc_section_1.
(lookup_solib_trampoline_symbol_by_pc): Likewise.
2008-05-14 18:14:34 +00:00
Joel Brobecker
20c625669c
* findcmd.c: Add #include "gdb_stdint.h".
...
* Makefile.in (findcmd.o): Update dependencies.
2008-05-14 04:23:03 +00:00
David S. Miller
de0c3d9d6e
* sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
...
long double size override, Linux does use 128-bit now.
2008-05-11 22:43:53 +00:00
David S. Miller
e8467b5ac5
* sparc-linux-tdep.c (PSR_SYSCALL): Define.
...
(sparc_linux_write_pc): New function.
(sparc32_linux_init_abi): Register it.
* sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
(sparc64_linux_write_pc): New function.
(sparc64_linux_init_abi): Register it.
2008-05-11 22:10:30 +00:00
David S. Miller
87a7da84fb
* sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
...
dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2008-05-11 20:03:26 +00:00
Ulrich Weigand
8a4c2d245d
* rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
...
and info.tdep_info before calling gdbarch_init_osabi.
2008-05-11 15:29:47 +00:00
Joel Brobecker
003f381353
* ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
...
the type of the right hand side of the assignment to the type
of the left hand side if the left hand side is a convenience
variable.
2008-05-09 23:50:41 +00:00
Ulrich Weigand
7ae0e2a243
* NEWS: Mention gdbserver bi-arch capability.
2008-05-09 19:17:46 +00:00
Doug Evans
08388c79d5
New "find" command.
...
* NEWS: Document find command and qSearch:memory packet.
* Makefile.in (SFILES): Add findcmd.c.
(COMMON_OBJS): Add findcmd.o.
(findcmd.o): New rule.
* findcmd.c: New file.
* target.h (target_ops): New member to_search_memory.
(simple_search_memory): Declare.
(target_search_memory): Declare.
* target.c (simple_search_memory): New fn.
(target_search_memory): New fn.
* remote.c (PACKET_qSearch_memory): New packet kind.
(remote_search_memory): New fn.
(init_remote_ops): Init to_search_memory.
(init_extended_remote_ops): Ditto.
(_initialize_remote): Add qSearch:memory packet config command.
* gdbserver/server.h (decode_search_memory_packet): Declare.
* gdbserver/remote-utils.c (decode_search_memory_packet): New fn.
* gdbserver/server.c (handle_search_memory_1): New fn.
(handle_search_memory): New fn.
(handle_query): Process qSearch:memory packets.
* doc/gdb.texinfo: Document "find" command, qSearch:memory packet.
* testsuite/gdb.base/find.exp: New file.
* testsuite/gdb.base/find.c: New file.
2008-05-09 17:02:03 +00:00
Eli Zaretskii
11c68c4748
* thread.c (_initialize_thread): Don't use commas and periods in
...
first line of doc string of "set/show print thread-events".
2008-05-09 08:14:47 +00:00
Joel Brobecker
6834c9bb08
* alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
...
Update for unwinder changes.
2008-05-09 03:58:26 +00:00
Joel Brobecker
86c3139987
* frame.c (get_frame_base_address, get_frame_locals_address)
...
(get_frame_args_address): Pass the correct frame when calling
frame_base_find_by_frame.
2008-05-09 03:52:11 +00:00
Ulrich Weigand
96ef33845a
* remote.c (extended_remote_attach_1): Call target_find_description.
2008-05-08 19:48:55 +00:00
Daniel Jacobowitz
45280a5259
* remote.c (extended_remote_create_inferior_1): Clean up
...
before marking the target running.
2008-05-08 16:08:10 +00:00
Joel Brobecker
227e86ad15
* hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
...
changes.
2008-05-08 04:21:45 +00:00
Joel Brobecker
236369e7e7
* sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
...
sparc64-sol2-tdep.c: Update for unwinder changes.
2008-05-07 19:30:04 +00:00
Daniel Jacobowitz
de237128e5
* cp-support.c (mangled_name_to_comp): Initialize storage.
...
(unqualified_name_from_comp): Likewise.
2008-05-07 12:43:54 +00:00
Jie Zhang
4fff24118a
* remote.c (remote_insert_breakpoint): Call get_remote_state
...
after gdbarch_breakpoint_from_pc is called.
(remote_insert_hw_breakpoint): Likewise.
2008-05-07 11:54:41 +00:00
Joel Brobecker
d8ca156b0e
* valprint.c (val_print): Add new language parameter and use it
...
instead of using the current_language. Update calls to val_print
throughout.
(common_val_print): Add new langauge parameter and pass it to
val_print.
* value.h (struct language_defn): Add opaque declaration.
(val_print, common_val_print): Update declarations.
* stack.c (print_frame_args): Update call to common_val_print
using the appropriate language.
* mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
* c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
#include "language.h" if necessary.
Update calls to val_print and common_val_print.
* Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
Update dependencies.
2008-05-06 21:35:01 +00:00
Joel Brobecker
b1e6fd1961
* ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
...
pointing inside a non-executable section as function descriptors.
2008-05-06 20:03:03 +00:00
Pedro Alves
02b19d8463
* inf-loop.c (inferior_event_handler): Run all continuations and
...
print any language change before running the breakpoint commands.
2008-05-06 18:49:19 +00:00
Joel Brobecker
15c1e57ffb
* frame-unwind.c (frame_unwind_got_bytes): New function.
...
* frame-unwind.h (frame_unwind_got_bytes): Add declaration.
* libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
for unwinder changes.
2008-05-06 18:37:46 +00:00
Doug Evans
d14508fea9
* NEWS: Mention new /m modifier for disassemble command.
...
* cli/cli-cmds.c (print_disassembly): New function.
(disassemble_current_function): New function
(disassemble_command): Recognize /m modifier, print mixed
source+assembly.
(init_cli_cmds): Update disassemble help text.
* gdb.texinfo (disassemble): Document /m modifier.
2008-05-05 21:14:37 +00:00
Maxim Grigoriev
5142f611ca
2008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
...
* xtensa-tdep.c: Update for unwinder changes.
2008-05-05 20:49:44 +00:00
Andreas Schwab
f36bf22c92
Update m68k port for unwinder changes.
...
* m68k-tdep.c (m68k_frame_cache): Expect this_frame.
(m68k_frame_this_id, m68k_frame_prev_register): Update signature.
(m68k_frame_unwind): Use default_frame_sniffer.
(m68k_frame_sniffer): Remove.
(m68k_frame_base_address): Expect this_frame.
(m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
this_frame.
(m68k_gdbarch_init): Use set_gdbarch_dummy_id,
dwarf2_append_unwinders, and frame_unwind_append_unwinder.
* m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
parameter instead of pc value.
(m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
Expect this_frame.
(m68k_linux_sigtramp_frame_this_id)
(m68k_linux_sigtramp_frame_prev_register)
(m68k_linux_sigtramp_frame_sniffer): Update signature.
(m68k_linux_sigtramp_frame_unwind): Use
m68k_linux_sigtramp_frame_sniffer.
(m68k_linux_init_abi): Use frame_unwind_append_unwinder.
* m68klinux-nat.c (store_register): Fix typo.
2008-05-05 20:47:02 +00:00
Pedro Alves
b3dc826bc7
* infcmd.c (step_1): Put thread id on the stack to avoid possible
...
NULL dereferencing.
2008-05-05 16:41:42 +00:00
Luis Machado
6528a9eabd
* symfile.c (reread_symbols): Update objfile's entry point.
2008-05-05 16:13:49 +00:00
Aleksandar Ristovski
1f906a60f5
Minor typing error fixes in ChangeLog.
2008-05-05 14:47:09 +00:00
Aleksandar Ristovski
5eeb253942
* ada-lang.c: Update throughout to use symbol_matches_domain
...
instead of matching the symbol domain explictly.
* dwarf2read.c (add_partial_symbol): Do not add new psym for
STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
class as typedefs. See lookup_partial_symbol function.
(new_symbol): Similar to add_partial_symbol, do not create
symbol for the typedef. See lookup_block_symbol.
* symtab.c (symbol_matches_domain): New function, takes care
of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
(lookup_partial_symbol): Use symbol_matches_domain to see if the
found psym domain matches the given domain.
(lookup_block_symbol): Likewise.
2008-05-05 14:37:32 +00:00
Vladimir Prus
e2b7ddeae3
* top.c (command_line_handler_continuation): Remove.
...
(execute_command): Do not install the above.
2008-05-05 09:47:47 +00:00
Vladimir Prus
fcfb8b02aa
* inf-loop.c (inferior_event_handler): Call bpstat_do_action,
...
and catch all exceptions from it.
* top.c (command_line_handler_continuation): Don't
call bpstat_do_action here.
2008-05-05 09:02:59 +00:00
Daniel Jacobowitz
f792889aa7
* dwarf2read.c (struct dwarf2_cu): Add type_hash.
...
(struct die_info): Remove type.
(read_type_die, read_typedef, read_base_type, read_subrange_type)
(read_structure_type, read_enumeration_type, read_array_type)
(read_tag_pointer_type, read_tag_ptr_to_member_type)
(read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
(read_tag_string_type, read_subroutine_type, read_set_type)
(read_unspecified_type): Delete prototypes. Remove check for
already-loaded type. Return the new type.
(set_die_type): Return the new type.
(reset_die_and_siblings_types): Delete.
(load_comp_unit, load_full_comp_unit): Set type_hash.
(process_queue): Remove call to reset_die_and_siblings_types.
(process_die): Do not read most types here. Use read_type_die
for others.
(read_func_scope, dwarf2_add_member_fn): Use read_type_die.
(quirk_gcc_member_function_pointer): Return the new type.
(process_structure_scope, process_enumeration_scope): Use
get_die_type and read the DIE's type.
(read_full_die): Do not initialize die->type.
(tag_type_to_type): Use read_type_die.
(read_type_die): Check for already defined types. Return the
type.
(determine_prefix): Use get_die_type.
(set_die_type): Return the type.
(get_die_type): Take a CU argument. Check for no type_hash.
2008-05-04 22:49:47 +00:00
Daniel Jacobowitz
e7030f1508
* dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
...
locals.
2008-05-04 20:04:48 +00:00
Pedro Alves
611c83ae47
gdb/
...
* breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
and bp_longjmp_resume breakpoints.
(breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
meaningful.
(create_longjmp_breakpoint): Don't create bp_longjmp_resume
breakpoints. Create bp_longjmp breakpoints as momentary
breakpoints.
(enable_longjmp_breakpoint): Delete.
(set_longjmp_breakpoint): New.
(disable_longjmp_breakpoint): Delete.
(delete_longjmp_breakpoint): New.
(set_longjmp_resume_breakpoint): Delete.
(set_momentary_breakpoint_at_pc): New.
(breakpoint_re_set_one): Don't delete bp_longjmp and
bp_longjmp_resume breakpoints.
(breakpoint_re_set): Don't create longjmp and longjmp-resume
breakpoints.
* infrun.c (step_resume_breakpoint): Add comment.
(struct execution_control_state): Delete handling_longjmp member.
(init_execution_control_state). Don't clear handling_longjmp.
(context_switch): Don't context switch handling_longjmp.
(handle_inferior_event): If handling a bp_longjmp breakpoint,
create a bp_longjmp_resume breakpoint, and set it as current
step_resume_breakpoint, then step over the longjmp breakpoint. If
handling a bp_longjmp_resume breakpoint, don't delete the longjmp
breakpoint, delete the longjmp-resume breakpoint, and stop
stepping.
(currently_stepping): Remove handling_longjmp from expression.
(insert_step_resume_breakpoint_at_sal): Update comment.
(insert_longjmp_resume_breakpoint): New.
* breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
(enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
declarations.
(set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
(set_longjmp_resume_breakpoint): Delete declaration.
* gdbthread.h (save_infrun_state): Remove handling_longjmp
parameter.
(load_infrun_state): Delete *handling_longjmp parameter.
* thread.c (save_infrun_state): Remove handling_longjmp parameter.
Update body.
(load_infrun_state): Delete *handling_longjmp parameter. Update
body.
* infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
(delete_longjmp_breakpoint_cleanup): New.
(step_1): Call set_longjmp_breakpoint instead of
enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
instead of disable_longjmp_breakpoint_cleanup when making cleanup.
(step_1_continuation): Pass thread id in the continuation args to
step_once.
(step_once): Add thread parameter. Pass thread id the the
continuation.
gdb/testsuite/
* gdb.cp/annota2.exp: Adjust to breakpoints invalidations at
different times.
2008-05-04 19:39:00 +00:00
Jan Kratochvil
ff013f42f4
gdb/
...
* Makefile.in: Update dependencies.
* dwarf2read.c: Include "addrmap.h"
(struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
(dwarf2_ranges_read): New prototype.
(dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
HAS_RANGES_OFFSET, otherwise add there the contiguous range.
(dwarf2_ranges_read): New parameter RANGES_PST, update the function
comment for it. Add the found ranges to RANGES_PST. New variable
BASEADDR, initialize it the common way.
(dwarf2_get_pc_bounds): Update the caller for the new parameter.
(read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
HAS_RANGES_OFFSET for the later processing.
* objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
* symtab.c: Include "addrmap.h"
(find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
Move the psymtab locator into ...
(find_pc_sect_psymtab_closer): ... a new function.
gdb/testsuite/
* gdb.dwarf2/dw2-ranges.S: Merge the secondary section with `.fini'.
* gdb.dwarf2/dw2-ranges.exp: Compile also `dw2-ranges2.S' and
`dw2-ranges3.S' and test also their MAIN2, FUNC2 and MAIN3 symbols.
* gdb.dwarf2/dw2-ranges2.S, gdb.dwarf2/dw2-ranges3.S: New files.
2008-05-04 17:27:01 +00:00
Jan Kratochvil
85cbf3d35d
Set CU BASE_ADDRESS already from partial DIEs.
...
* dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
from these variables if it was still unset.
2008-05-04 17:19:06 +00:00
Ulrich Weigand
a7f1256dcb
* arch-utils.c (gdbarch_update_p): Use default values for
...
info.abfd and info.target_desc if they are NULL.
(gdbarch_from_bfd): Remove assertion.
(set_gdbarch_from_file): Call gdbarch_find_by_info directly,
using the current target description.
(gdbarch_info_fill): Do not use default values for info->abfd
and info->target_desc.
2008-05-04 15:21:05 +00:00
Jan Kratochvil
b2de52bb5a
* symfile.c (reread_symbols): Reload EXEC_BFD on its change.
2008-05-04 14:34:06 +00:00
Ulrich Weigand
515630c5e5
* inferior.h (read_pc_pid, write_pc_pid): Remove.
...
* regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
* regcache.c (read_pc_pid): Remove, replace by ...
(regcache_read_pc): ... this function.
(write_pc_pid): Remove, replace by ...
(regcache_write_pc): ... this function.
(read_pc, write_pc): Update.
* infrun.c (displaced_step_prepare): Replace read_pc_pid and
write_pc_pid by regcache_read_pc and regcache_write_pc.
(displaced_step_fixup): Likewise.
(resume): Likewise. Use regcache arch instead of current_gdbarch.
(prepare_to_proceed): Likewise.
(proceed): Likewise.
(adjust_pc_after_break): Likewise.
(handle_inferior_event): Likewise.
* linux-nat.c (cancel_breakpoint): Likewise.
* linux-thread-db.c (check_event): Likewise.
* aix-thread.c (aix_thread_wait): Likewise.
* tracepoint.c (trace_dump_command): Likewise.
2008-05-04 14:12:34 +00:00
Jan Kratochvil
ebd3bcc132
* dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
...
SYMBOL_LOCATION_BATON.
2008-05-04 12:44:16 +00:00