Mark Kettenis
e3033f1585
* x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
...
cfi_init_extra_frame_info.
* x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
* x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2002-10-26 17:04:37 +00:00
Mark Kettenis
b83b026cdc
* x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
...
target where necessary. Add more comments and remove the ones
that don't provide any useful information.
2002-10-26 16:56:34 +00:00
Mark Kettenis
267bf4bb32
* i386-tdep.c (i386_frame_saved_pc): Replace call to
...
deprecated_read_register_dummy with
frame_unwind_unsigned_register.
2002-10-26 14:58:42 +00:00
Mark Kettenis
751f1375d6
* i386-tdep.c (i386_extract_struct_value_address): Use
...
regcache_raw_read_unsigned instead of
regcache_cooked_read_unsigned since we know that the register
we're reading isn't a pseudo register. Rename variable 'val' into
the more descriptive 'addr'.
2002-10-26 14:41:37 +00:00
Stephane Carrez
57266a339f
* tuiIO.c (tui_prep_terminal): Save the prompt registered in readline.
...
(tui_redisplay_readline): Use the last saved prompt.
(tui_rl_saved_prompt): New.
2002-10-26 10:38:57 +00:00
Mark Kettenis
26abbdc424
* x86-64-tdep.c: Fix some formatting problems, mostly in comments.
...
(x86_64_push_return_address): Add comment.
(x86_64_pop_frame): Make static.
(examine_argument): Clarify comment.
(x86_64_skip_prologue): Make prolog_expact variable static.
2002-10-26 10:37:45 +00:00
Mark Kettenis
9f1549cccc
* dwarf2cfi.c: Fix some formatting problems.
...
(context_cpy, read_encoded_pointer): Clarify comments.
2002-10-26 10:13:53 +00:00
Mark Kettenis
ab91194c40
* x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
...
(x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
i386 target back into x86_64_gdbarch_init. Add some comments and
remove meaningless ones.
2002-10-26 09:36:34 +00:00
gdbadmin
582a671da0
*** empty log message ***
2002-10-26 00:00:02 +00:00
Andrew Cagney
72367fb45b
2002-10-25 Andrew Cagney <cagney@redhat.com>
...
* complaints.h (struct deprecated_complaint): Rename `struct
complaint'.
* complaints.c (complain): Update.
* remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
incorrect comment indicating that "symfile.h" was being included
for the `struct complaint' definition.
* remote-vx.c: Update.
* objc-lang.c: Update.
* xcoffread.c: Update.
* hpread.c: Update.
* mdebugread.c: Update.
* stabsread.c: Update.
* dwarf2read.c: Update.
* dwarfread.c: Update.
* elfread.c: Update.
* coffread.c: Update.
* stabsread.h: Update.
* dbxread.c: Update.
* buildsym.c: Update.
* gdbtypes.c: Update.
* macrotab.c: Update.
2002-10-25 22:25:55 +00:00
Mark Kettenis
0c1a73d616
* x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
...
the version in i386-tdep.c. Move set_gdbarch_* calls out into...
(x86_64_init_abi): ...new function.
2002-10-25 21:53:08 +00:00
Mark Kettenis
6aee4d5437
* Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2002-10-25 21:23:57 +00:00
Stephane Carrez
17aae57035
Fix PR gdb/787
...
* tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER,
ACS_HLINE, ACS_VLINE): Define if they don't exist.
2002-10-25 19:46:04 +00:00
Stephane Carrez
0f59c96ffc
Fix PR gdb/478
...
* tuiIO.c (tui_initialize_io): Use setvbuf since this is portable.
2002-10-25 19:24:01 +00:00
Mark Kettenis
1f2baacc1f
* i386v-nat.c: Include "i386-tdep.h".
2002-10-25 18:50:23 +00:00
Andrew Cagney
5f11f35558
2002-10-25 Andrew Cagney <cagney@redhat.com>
...
* gdbtypes.c (address_space_name_to_int): Update.
(address_space_int_to_name): Update.
* gdbarch.sh (address_class_type_flags_to_name): Change to a pure
multi-arch predicate.
(address_class_name_to_type_flags): Ditto.
* gdbarch.h, gdbarch.c: Re-generate.
2002-10-25 15:59:56 +00:00
Andrew Cagney
8f9cbe0185
2002-10-25 Andrew Cagney <cagney@redhat.com>
...
* MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2002-10-25 14:08:44 +00:00
gdbadmin
d257524c51
*** empty log message ***
2002-10-25 00:00:02 +00:00
Martin Hunt
e8d96a5d56
2002-10-24 Martin M. Hunt <hunt@redhat.com>
...
* utils.c (string_to_core_addr): Revert patch from 11 Oct.
2002-10-24 23:46:09 +00:00
Elena Zannoni
fe39c6533d
2002-10-24 Elena Zannoni <ezannoni@redhat.com>
...
* symtab.h (INIT_SAL): Delete macro.
(init_sal): Export.
* symtab.c (init_sal): New function.
* ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
to init_sal function call.
(find_sal_from_funcs_and_line): Ditto.
(all_sals_for_line): Ditto.
* breakpoint.c (create_internal_breakpoint): Ditto.
(create_fork_vfork_event_catchpoint): Ditto.
(create_exec_event_catchpoint): Ditto.
(parse_breakpoint_sals): Ditto.
(watch_command_1): Ditto.
(handle_gnu_4_16_catch_command): Ditto.
(clear_command): Ditto.
* hppa-tdep.c (child_enable_exception_callback): Ditto.
* infcmd.c (run_stack_dummy): Ditto.
* infrun.c (process_event_stop_test): Ditto.
(check_sigtramp2): Ditto.
(step_over_function): Ditto.
* linespec.c (decode_line_2): Ditto.
(decode_line_1): Ditto.
* source.c (line_info): Ditto.
* symtab.c (find_pc_sect_line): Ditto.
2002-10-24 21:02:53 +00:00
Michal Ludvig
b64bbf8c48
Reindented.
2002-10-24 01:37:40 +00:00
Michal Ludvig
baed091b2b
2002-10-24 Michal Ludvig <mludvig@suse.cz>
...
* dwarf2cfi.c (struct context)
(struct context_reg): Moved to dwarf2cfi.h
(context_alloc, frame_state_alloc, context_cpy):
Made extern instead of static, removed prototypes.
* dwarf2cfi.h (struct context)
(struct context_reg): New, moved from dwarf2cfi.c
(context_alloc, frame_state_alloc, context_cpy):
New prototypes.
* x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
Changed from static to extern.
(LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
(LINUX_SIGCONTEXT_FP_OFFSET)
(LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
(x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
(x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
* x86-64-tdep.c (x86_64_gdbarch_init): Several
set_gdbarch_*() calls now use x86-64 specific functions
instead of DWARF2 CFI ones.
* x86-64-tdep.h (x86_64_linux_in_sigtramp)
(x86_64_linux_frame_chain, x86_64_init_frame_pc)
(x86_64_init_extra_frame_info): New prototypes.
2002-10-24 01:27:43 +00:00
David Carlton
c38da1aff1
2002-10-23 David Carlton <carlton@math.stanford.edu>
...
* linespec.c: #include "parser-defs.h".
Delete prototype for find_template_name_end.
* Makefile.in (linespec.o): Depend on $(parser_defs_h).
2002-10-24 00:13:57 +00:00
gdbadmin
1796d04a7c
*** empty log message ***
2002-10-24 00:00:02 +00:00
Jeff Johnston
7b8e064773
2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
...
* mi-var-cmd.exp: Add tests to verify that a -var-assign that changes
a value shows up in the changelist of a -var-update. Part of fix
for gdb/702.
* mi1-var-cmd.exp: Ditto.
2002-10-23 23:57:28 +00:00
Jeff Johnston
fb9b6b359f
2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
...
* NEWS: add recent mi fixes.
* varobj.c (struct varobj): Add new "updated" flag.
(new_variable): Default "updated" flag to 0.
(varobj_set_value): Set "updated" flag to 1 if value
changes.
(varobj_update): Check varobj "updated" flag before
comparing old and refreshed values. Fix for
PR gdb/702.
2002-10-23 23:54:33 +00:00
David Carlton
8da065d53c
2002-10-23 David Carlton <carlton@math.stanford.edu>
...
* parse.c (parse_exp_1): Use BLOCK_START.
* x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
SYMBOL_BLOCK_VALUE.
* objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2002-10-23 23:37:33 +00:00
David Carlton
87f2f08c7f
2002-10-23 David Carlton <carlton@math.stanford.edu>
...
* symtab.c: Delete cplusplus_hint.
Delete prototype for find_template_name_end.
2002-10-23 23:36:16 +00:00
Elena Zannoni
88cda038b7
2002-10-23 Elena Zannoni <ezannoni@redhat.com>
...
* symtab.h: Update comment.
2002-10-23 23:28:17 +00:00
Michael Snyder
2625d86c46
2002-10-23 Michael Snyder <msnyder@redhat.com>
...
* printcmd.c (address_info): Restore quotes in output.
* valops.c (value_of_local): Restore quotes in error message.
2002-10-23 21:33:07 +00:00
Jeff Johnston
6ad4a2cfb3
2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
...
* mi-cmd-var.c: Change all remaining occurrences of ui_out_tuple_begin
to make_cleanup_ui_out_tuple_begin_end. Change all remaining
occurrences of ui_out_list_begin to make_cleanup_ui_out_list_begin_end. Use do_cleanups instead of ui_out_list_end or ui_out_tuple_end. This
is a fix for PR gdb/680.
* mi-cmd-stack.c: Ditto.
* mi-main.c: Ditto.
2002-10-23 21:17:51 +00:00
Elena Zannoni
9cc0d196fc
2002-10-23 Elena Zannoni <ezannoni@redhat.com>
...
* symtab.c (symbol_demangled_name): New function.
* symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
turning most of it into a function.
(symbol_demangled_name): Export.
2002-10-23 20:09:28 +00:00
Michael Snyder
19de93d0c6
2002-10-23 Michael Snyder <msnyder@redhat.com>
...
* valops.c (value_of_local): Restore quotes in error message.
2002-10-23 19:22:28 +00:00
Elena Zannoni
89aad1f99e
2002-10-23 Elena Zannoni <ezannoni@redhat.com>
...
* symtab.c (symbol_init_language_specific): New function.
* symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
turning most of it into a function.
(symbol_init_language_specific): Export.
2002-10-23 18:16:44 +00:00
David Carlton
d9fa45febb
2002-10-23 David Carlton <carlton@math.stanford.edu>
...
* dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
(dwarf_attr_name): Ditto.
(dwarf_type_encoding_name): Ditto.
(scan_partial_symbols): Descend into DW_TAG_namespace entries.
(process_die): Handle DW_TAG_namespace,
DW_TAG_imported_declaration, DW_TAG_imported_module.
(read_namespace): New function.
2002-10-23 16:40:55 +00:00
Daniel Jacobowitz
322b3f65ca
* gdb.threads/schedlock.c (args): Make unsigned.
2002-10-23 03:22:56 +00:00
gdbadmin
fa6ae5ffb4
*** empty log message ***
2002-10-23 00:00:06 +00:00
Joel Brobecker
1045b512db
* configure.in: Define NEW_PROC_API on Interix too.
...
* configure: Regenerate.
2002-10-22 20:21:56 +00:00
Keith Seitz
99615eb88f
* mi-main.c (mi_cmd_thread_select): Only return MI_CMD_CAUGHT_ERROR
...
when we really did catch an error(). If we got GDB_RC_FAIL, return
MI_CMD_ERROR instead.
2002-10-22 17:53:42 +00:00
Joel Brobecker
8ec413174a
* configure: Regenerate using the proper version of autoconf.
2002-10-22 03:54:20 +00:00
Daniel Jacobowitz
8b1d7e37a4
* gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line
...
numbers. Allow "foo2|selected stack frame".
* gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end.
* gdb.asm/asmsrc2.s: Likewise.
* gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end. Update
comments.
* gdb.asm/mips.inc: New file.
2002-10-22 01:43:37 +00:00
gdbadmin
d1c1eb3f72
*** empty log message ***
2002-10-22 00:00:02 +00:00
Elena Zannoni
3987b9d413
2002-10-21 Elena Zannoni <ezannoni@redhat.com>
...
* findvar.c (read_var_value): Temporarily disable TLS code, until
complete TLS support is added.
2002-10-21 20:12:56 +00:00
Elena Zannoni
9d774e4455
2002-10-21 Jim Blandy <jimb@redhat.com>
...
Elena Zannoni <ezannoni@redhat.com>
* symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
for thread local storage locations.
(struct symbol): Add objfile field.
(SYMBOL_OBJFILE): Define.
* dwarf2read.c (is_thread_local): New static variable.
(new_symbol): If variable is in thread local fill in address class
and objfile appropriately.
(decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
stack operation.
* printcmd.c (address_info): Print the information for thread
local storage variable.
* findvar.c (read_var_value): In case of thread local variable,
defer to the target vector code to compute address.
2002-10-21 19:11:50 +00:00
Elena Zannoni
550633cbb1
2002-10-21 Elena Zannoni <ezannoni@redhat.com>
...
* solib-svr4.c (svr4_fetch_objfile_link_map): New function.
* solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2002-10-21 18:53:38 +00:00
Elena Zannoni
bc4a16aedd
2002-10-21 Elena Zannoni <ezannoni@redhat.com>
...
* solib-svr4.c (svr4_fetch_objfile_link_map): New function.
* solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2002-10-21 18:42:40 +00:00
Elena Zannoni
407caf07a4
2002-10-21 Elena Zannoni <ezannoni@redhat.com>
...
* symtab.h (address_class): Rename
LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
* hpread.c (hpread_process_one_debug_symbol): Ditto.
* printcmd.c (address_info): Ditto.
* findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2002-10-21 14:55:18 +00:00
gdbadmin
b0b05254fc
*** empty log message ***
2002-10-21 00:00:33 +00:00
Mark Kettenis
afdb036ab6
* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
...
DBREG_DRX macro to acces debug registers.
2002-10-20 21:18:59 +00:00
Mark Kettenis
ca02e098c5
* Makefile.in (i386obsd-tdep.o): New target.
2002-10-20 20:27:19 +00:00