Jim Blandy
01c464e928
* s390-nat.c: (s390_push_arguments): Write a back chain pointer
...
into the dummy frame, to help us get backtraces.
2001-11-09 18:58:14 +00:00
Jim Blandy
f312f05740
* values.c (value_as_address): If VAL is a function or method,
...
just return its address; don't let COERCE_ARRAY convert its
address to a pointer, and then have unpack_long convert it back to
an address.
2001-11-09 16:41:50 +00:00
Pierre Muller
5598ce1171
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-lang.c (is_pascal_string_type): New function to determine if a
type is a string type.
* p-lang.h: Add prototype for is_pascal_string_type.
* p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
to display strings nicely.
2001-11-09 09:48:09 +00:00
Pierre Muller
94a716bf57
2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
...
* p-exp.y (yylex): Only change case of expression if symbol is found.
Also check for GPC standard name form.
2001-11-09 09:46:40 +00:00
Andrew Cagney
f6a9480ec1
A simple script to indent GDB source code.
2001-11-09 04:00:00 +00:00
Jim Blandy
64f9bb983b
* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
...
got_load_len, to placate compiler.
2001-11-08 23:28:36 +00:00
Mark Kettenis
cd3c07fc0b
* i386-tdep.c (i386_gdbarch_init): Fix typo.
2001-11-08 20:26:42 +00:00
Jim Blandy
8001d1e4ef
* s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
...
file_frame_chain_valid.
2001-11-08 19:16:10 +00:00
Jim Blandy
8ac0e65a44
* s390-tdep.c (s390_get_frame_info): If the prologue loads r12
...
from the constant pool, but doesn't add in the constant pool's
address to it, then this function probably isn't using r12 as a
GOT pointer, and that load probably wasn't part of the prologue.
2001-11-08 19:06:04 +00:00
Jim Blandy
4c801202fe
* s390-tdep.c (s390_gdbarch_init): Use the default
...
prepare_to_proceed function established by config/nm-linux.h;
don't try to set it to linuxthreads_prepare_to_proceed.
2001-11-08 19:03:54 +00:00
Andrew Cagney
a62cc96ec5
Enable multi-arch for i386.
2001-11-08 18:32:08 +00:00
Andrew Cagney
8ea43c6d5a
Don't update `set architecture'' when
`set disassembly-flavor[sic]''
2001-11-08 18:23:43 +00:00
Elena Zannoni
6a34fd2fd5
2001-11-07 Elena Zannoni <ezannoni@redhat.com>
...
* dbxread.c (set_namestring): New function, replacing the
SET_NAMESTRING macro.
(SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
definitions.
(read_dbx_symtab): Don't include partial-stab.h any more. Don't
reuse code in partial-stab.h, include the code directly, instead.
* Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
(HFILES_NO_SRCDIR): Remove partial-stab.h.
2001-11-08 04:39:04 +00:00
Andrew Cagney
a72293e2a7
When non-multi-arch, use predefault as the value of a pure-multi-arch
...
method.
2001-11-08 01:33:04 +00:00
Mark Kettenis
8cf03c4c87
* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
...
terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
hardcoding the register number.
2001-11-08 00:03:52 +00:00
Andrew Cagney
56f127518f
gdbarch.sh provides default for USE_STRUCT_CONVENTION.
2001-11-07 22:42:29 +00:00
Andrew Cagney
a4a7d16f8b
gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
2001-11-07 04:28:38 +00:00
Fred Fish
4dc13854e5
2001-11-06 Fred Fish <fnf@redhat.com>
...
* complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
* dbxread.c: Ditto
* dwarf2read.c: Ditto.
* dwarfread.c: Ditto.
* exec.c: Ditto.
* hpread.c: Ditto.
* hpread.h: Ditto.
* mdebugread.c: Ditto.
* os9kread.c: Ditto.
* stack.c: Ditto.
* symfile.c: Ditto.
* tracepoint.c: Ditto.
2001-11-06 23:38:15 +00:00
Andrew Cagney
7fe4d0d2dc
* MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
...
David Taylor and Nick Duffek in past maintainers.
2001-11-06 22:40:06 +00:00
Elena Zannoni
d3119d1ec7
2001-11-06 Elena Zannoni <ezannoni@redhat.com>
...
* mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
(parse_partial_symbols): Don't include partial-stab.h any
more. Don't reuse code in partial-stab.h, include the code
directly, instead. Simplify code from partial-stab.h eliminating
ifdef DBXREAD_ONLY code.
* Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
2001-11-06 22:35:25 +00:00
Jim Blandy
3ecc0ae2c0
* s390-nat.c: #include "regcache.h", to get declaration for
...
`supply_register'. (The last change already added the dependency
of s390-nat.o on regcache.h. Oops.)
2001-11-06 22:18:13 +00:00
Jim Blandy
e81b020b49
* Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
...
(s390-tdep.o, s390-nat.o): New rules.
2001-11-06 21:58:53 +00:00
Jim Blandy
3893775531
Fix typo.
2001-11-06 21:34:00 +00:00
Jim Blandy
e2d46a8c2c
* gdb/s390-nat.c (s390_register_u_addr): Pass proper arguments to
...
internal_error.
2001-11-06 21:28:29 +00:00
Andrew Cagney
a985cd4128
gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
2001-11-06 21:20:23 +00:00
Andrew Cagney
e6b47f070d
Zap another #ifdef INIT_EXTRA_FRAME_INFO
2001-11-06 18:54:11 +00:00
Andrew Cagney
69a0d5f4fa
Add predicate for PUSH_RETURN_ADDRESS.
2001-11-06 18:06:00 +00:00
Corinna Vinschen
c12260ac38
* arch-utils.c (generic_in_function_epilogue_p): New function.
...
* arch-utils.h (generic_in_function_epilogue_p): Declare extern.
* breakpoint.c (watchpoint_check): Add test whether the pc is
currently in the epilogue of a function.
* gdbarch.c: Autogenerated from gdbarch.sh.
* gdbarch.h: Ditto.
* gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
2001-11-06 11:02:12 +00:00
Jim Blandy
8114216ba3
* config/s390/s390.mh (NATDEPFILES): Don't split this across
...
several lines with backslashes; the `sed' command in
configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
assignment doesn't handle lines extended with backslashes.
2001-11-06 00:04:51 +00:00
Jim Blandy
c462020561
* configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
...
using `+=' as well as `='.
* configure: Regenerated.
2001-11-05 23:54:49 +00:00
Michael Snyder
53e8ad3d81
2001-11-01 Michael Snyder <msnyder@redhat.com>
...
* symtab.c (operator_chars): Allow '*' and '[' to be quoted in
operator names, to avoid regexp expansion.
(search_symbols): Alloca buffer is too small, may get clobbered.
2001-11-05 23:27:31 +00:00
Andrew Cagney
5fdff4261c
Change INIT_EXTRA_FRAME_INFO() to a function with predicate.
2001-11-05 23:11:31 +00:00
Andrew Cagney
f16a1923df
* gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
...
error messages. Print in a single batch.
* gdbarch.c: Regenerate.
2001-11-05 21:34:33 +00:00
Mark Kettenis
3fb1c83804
* i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
...
fill_gregset): Add support for "orig_eax" register.
2001-11-04 14:30:42 +00:00
Mark Kettenis
6441c4a026
Add support for "orig_eax" pseudo register on Linux/x86.
...
* i386-linux-tdep.c: Include "inferior.h".
(i386_linux_register_name, i386_linux_register_byte,
i386_linux_register_raw_size): New functions.
(i386_linux_write_pc): New function.
* config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
(NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
register.
(i386_linux_register_name, i386_linux_register_byte,
i386_linux_register_raw_size): New prototypes.
(TARGET_WRITE_PC): New define.
(i386_linux_write_pc): New prototype.
2001-11-04 14:06:16 +00:00
Mark Kettenis
1a11ba71e2
* i386-tdep.c (i386_register_offset): Renamed from
...
i386_register_byte. Made static.
(i386_register_size): Renamed from i386_register_raw_size. Made
static.
(i386_register_virtual_size): Removed.
(i386_register_byte, i386_register_raw_size,
i386_register_virtual_size): New functions.
(_initialize_i386_tdep): Initialize i386_register_offset instead
of i386_register_byte. Remove code to initialize
i386_register_virtual_size.
* config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
i386_register_byte function.
(REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
function.
(REGISTER_VIRTUAL_SIZE): Redefine to use
i386_register_virtual_size function.
(i386_register_byte, i386_register_raw_size,
i386_register_virtual_size): New functions.
2001-11-04 13:51:48 +00:00
Mark Kettenis
0fc087fe41
* Makefile.in (ALLDEPFILES): Add i387-nat.c.
...
(i387-nat.o): Add dependencies.
2001-11-04 13:14:43 +00:00
Andrew Cagney
1396e6f1d3
Doco problem with alpha-dec-osf5.1.
2001-11-02 21:59:18 +00:00
Andrew Cagney
5c7dd74823
* utils.c (internal_verror): Restore calls to abort().
...
Fix PR gdb/219.
2001-11-02 21:46:52 +00:00
Michael Chastain
3559696cf5
2001-11-02 Michael Chastain <mec@shout.net>
...
* MAINTAINERS: Update my entry.
2001-11-02 15:41:16 +00:00
Fred Fish
990f9fe3aa
Approved by kev@cygnus.com
...
ChangeLog entry:
2001-11-01 Fred Fish <fnf@redhat.com>
* coff-solib.c (coff_solib_add): Add new readsyms arg.
* irix5-nat.c (solib_add): Ditto.
* osfsolib.c (solib_add): Ditto.
* pa64solib.c (pa64_solib_add): Ditto.
* pa64solib.c (add_to_solist): Ditto.
* pa64solib.c (read_dld_descriptor): Ditto.
* solib.c (solib_add): Ditto.
* somsolib.c (som_solib_add): Ditto.
* win32-nat.c (child_solib_add): Ditto.
* xcoffsolib.c (solib_add): Ditto.
* coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
* pa64solib.c (add_to_solist): Ditto.
* pa64solib.c (read_dld_descriptor): Ditto.
* pa64solib.h (pa64_solib_add): Ditto.
* solib.h (solib_add): Ditto.
* somsolib.h (som_solib_add): Ditto.
* config/i386/tm-cygwin.h (child_solib_add): Ditto.
* coff-solib.c (coff_solib_add): If readsyms is zero don't read
symbols but do any other needed work for shared libs.
* irix5-nat.c: Ditto.
* osfsolib.c (solib_add): Ditto.
* solib.c (solib_add): Ditto.
* win32-nat.c (child_solib_add): Ditto.
* xcoffsolib.c (solib_add): Ditto.
* irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
solib_add to force reading of shared library symbols.
* osfsolib.c (sharedlibrary_command;): Ditto.
* pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
* solib.c (sharedlibrary_command): Ditto.
* somsolib.c (som_solib_sharedlibrary_command): Ditto.
* xcoffsolib.c (sharedlibrary_command): Ditto.
* coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
unconditionally with auto_solib_add.
* irix5-nat.c (solib_create_inferior_hook): Ditto.
* osfsolib.c (solib_create_inferior_hook): Ditto.
* solib.c (solib_create_inferior_hook): Ditto.
* solib-osf.c (osf_solib_create_inferior_hook): Ditto.
* solib-svr4.c (enable_break): Ditto.
* solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
* corelow.c (solib_add_stub): Add auto_solib_add to args passed
via SOLIB_ADD.
* sol-thread.c (sol_thread_attach): Ditto.
* config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
* infcmd.c (attach_command): Remove auto_solib_add decl.
Call SOLIB_ADD directly with auto_solib_add.
* infrun.c (handle_inferior_event): Ditto.
* coff-solib.h (SOLIB_ADD): Add readsyms arg.
* pa64solib.h (SOLIB_ADD): Ditto.
* solib.h (SOLIB_ADD): Ditto.
* somsolib.h (SOLIB_ADD): Ditto.
* config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
* fork-child.c (clone_and_follow_inferior): Remove unused
auto_solib_add decl.
* pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
(read_dld_descriptor): Ditto.
(pa64_solib_add): Call read_dld_descriptor with readsyms.
(pa64_solib_in_dynamic_linker): Ditto.
* corelow.c (symfile.h): Need this for auto_solib_add declaration.
* sol-thread.c (symfile.h): Ditto.
Approved by eliz@is.elta.co.il
doc/ChangeLog entry:
2001-11-01 Fred Fish <fnf@redhat.com>
* gdbint.texinfo (SOLIB_ADD): Document additional new
"readsyms" arg.
2001-11-01 16:17:08 +00:00
Andrew Cagney
1de2edba33
use xmalloc() and xfree().
2001-11-01 02:53:05 +00:00
Andrew Cagney
30b28db19b
s/value_ptr/struct value */
2001-11-01 02:37:56 +00:00
Andrew Cagney
72330bd63b
Re-indent.
2001-11-01 02:22:21 +00:00
Andrew Cagney
d45fc520b1
s/value_ptr/struct value */
2001-11-01 01:21:35 +00:00
Andrew Cagney
3a1c5313da
value_ptr tweeks.
2001-11-01 01:07:35 +00:00
Corinna Vinschen
68e9cc944c
* arch-utils.c (generic_in_solib_call_trampoline): New function.
...
* arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
* gdbarch.c: Regenerated from gdbarch.sh.
* gdbarch.h: Ditto.
* gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
* infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
2001-10-31 23:21:33 +00:00
Andrew Cagney
60e6cc428d
From DJ Barrow.
...
* s390-tdep.c: (s390_gdbarch_init): Don't initialize
find_solib_trampoline_target.
2001-10-31 22:57:46 +00:00
Andrew Cagney
6138715944
* remote-vx.c (net_wait): Fix typo from PIDGET change.
2001-10-31 22:29:21 +00:00
Mark Kettenis
fc633446cd
* config/i386/tm-i386.h (REGISTER_NAMES): Remove.
...
(REGISTER_NAME): New define.
(i386_register_name): New prototype.
* i386-tdep.c (i386_register_names): New variable.
(i386_register_name): New function.
* config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
REGISTER_NAMES.
2001-10-31 22:24:06 +00:00