Stu Grossman [Tue, 15 Jun 1993 20:37:37 +0000 (20:37 +0000)]
Changes from Jeff Law, [email protected]:
* hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
Do not print a space before the completers specified by
'a' and 'd'.
Ian Lance Taylor [Mon, 14 Jun 1993 20:17:35 +0000 (20:17 +0000)]
o - size
Currently assumes that the only relevant sections are named .text,
.data and either .bss or .stack. This is not very general, and it
doesn't work for ECOFF.
Jim Kingdon [Mon, 14 Jun 1993 19:23:37 +0000 (19:23 +0000)]
* main.c, gdbcmd.h: Add function filename_completer.
source.c: Use it for "directory" command.
(But '/' is a word break, limiting usefulness; see comments).
* source.c (mod_path): Warning not error if can't find directory.
Jim Kingdon [Sun, 13 Jun 1993 02:26:18 +0000 (02:26 +0000)]
* dbxread.c (process_one_symbol): Set n_opt_found based on whether
a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
which returns 0 or 1 to say whether to do it.
* config/sparc/sun4{sol2,os4}.h
(SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
the right thing happens for both acc and SunOS4 /bin/cc.
Jim Kingdon [Sat, 12 Jun 1993 22:12:45 +0000 (22:12 +0000)]
* mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
probably contained byte-order sins too.
config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
The IEEE_FLOAT code in print_floating takes care of it.
Fred Fish [Sat, 12 Jun 1993 22:09:59 +0000 (22:09 +0000)]
* gdb.t00/{default.exp, help.exp}: Account for changes to radix
commands.
* gdb.t16/gdbme.c: Add and use struct containing arrays of char.
* gdb.t16/printcmds.exp: Fix all lines that match "unsigned char *".
* gdb.t16/printcmds.exp (test_print_char_arrays): Test printing
of struct of char arrays.
* gdb.t00/radix.exp: New tests for radix commands.
Fred Fish [Sat, 12 Jun 1993 22:03:27 +0000 (22:03 +0000)]
* Makefile.in (VERSION): Bump to 4.9.2.
* c-valprint.c (c_val_print): For array of chars printed with
string syntax, don't print the address of the array. From [email protected].
* c-exp.y (yylex): Recognize '.' as indicating a floating point
number regardless of the radix. From [email protected].
* valprint.c (set_input_radix_1, set_output_radix_1): New
prototypes and functions that do the actual radix setting work.
* valprint.c (set_radix, set_output_radix, set_input_radix):
Rewrite to use set_input_radix_1 and set_output_radix_1.
* valprint.c (initialize_valprint): Enable commands to
independently set and show input and output radices.
* valprint.c (show_radix): New prototype and function that
handles separate input and output radices.
Ken Raeburn [Fri, 11 Jun 1993 23:20:54 +0000 (23:20 +0000)]
Lots of changes from Jeff Law for HPPA support:
Clean up cruft in opcode table; improve opcodes library disassembler; make
gdb use opcodes library disassembler.
Jim Kingdon [Fri, 11 Jun 1993 21:53:49 +0000 (21:53 +0000)]
* dbxread.c (process_one_symbol): Rather than having
BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
is true if we are doing stabs-in-elf, false otherwise.
config/sparc/tm-sun4sol2.h: Don't define it.
Ian Lance Taylor [Fri, 11 Jun 1993 20:35:35 +0000 (20:35 +0000)]
* remote-mips.c (mips_send_packet): Don't print garbage character
in debugging info.
(mips_request): Don't check that remote pid is 0, because
sometimes it isn't.
Ian Lance Taylor [Thu, 10 Jun 1993 21:02:59 +0000 (21:02 +0000)]
* ldexp.c (exp_fold_tree): Don't lose the old flag bits.
* ldgram.y (statement_list_opt): New nonterminal, either empty or
statement_list.
(section): Use statement_list_opt, not statement_list.
* m68kcoff.sc-sh: Gather constructors and destructors and define
__CTOR_LIST__ and __DTOR_LIST__ appropriately.
* sa29200.sc-sh: Gather constructors and destructors and define
___CTOR_LIST__ and ___DTOR_LIST__ appropriately.
Ian Lance Taylor [Thu, 10 Jun 1993 18:51:48 +0000 (18:51 +0000)]
* coff-mips.c (ecoff_sec_to_styp_flags): Use STYP_MIPS_INIT for
section named _INIT. Don't set STYP_TEXT unless SEC_CODE is set.
(ecoff_styp_to_sec_flags): Treat a STYP_MIPS_INIT section like
a STYP_TEXT section.
* coff-mips.c (ecoff_mkobject_hook): Mark ZMAGIC files as D_PAGED.
(ecoff_write_object_contents): If not D_PAGED, don't add the
section headers to text_size. If not D_PAGED, set the magic
number to OMAGIC rather than ZMAGIC. If creating a D_PAGED
executable, the executable must fully occupy an even number of
pages.
(ecoff_set_symbol_info, make_bfd_asection, ecoff_little_vec,
ecoff_big_vec): Consistently set section alignment power to 4,
since ECOFF sections should be multiples of 16 bytes.
(ecoff_little_vec, ecoff_big_vec): Added D_PAGED to object_flags.
Made ar_pad_char and ar_max_namelen agree for both.
Mark Eichin [Wed, 9 Jun 1993 00:30:58 +0000 (00:30 +0000)]
* elfcode.h (elf_slurp_symbol_table): subtract section vma from
symbol value, since bfd symbols are section relative, but ELF
symbols aren't.
for previous change.
Jim Kingdon [Tue, 8 Jun 1993 23:35:00 +0000 (23:35 +0000)]
* Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
68881 and non-68881 cases. Check for a pair of movel instructions.