* section.c (bfd_make_section_anyway): New function.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5573d7d4
JK
1Tue Sep 28 09:45:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2
3 * symmisc.c (print_symbol): Use %02x not %2x for LOC_CONST_BYTES.
4
5 Clean up problems with targets and hosts that have 64 bit longs
6 and pointers and 32 bit ints.
7 * breakpoint.c, buildsym.c, c-lang.c, c-valprint.c, ch-lang.c,
8 ch-valprint.c, core.c, cp-valprint.c, dbxread.c, exec.c,
9 expprint.c, gdbtypes.c, infcmd.c, language.c, language.h,
10 m2-lang.c, maint.c, mips-tdep.c, mipsread.c, partial-stab.h,
11 printcmd.c, remote-vx.c, solib.c, source.c, stack.c, symfile.c,
12 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
13 Change all printf formats from %x to %lx if outputting an address.
14 Change la_*_format to use long format.
15 local_hex_string, local_hex_string_custom now take an unsigned long
16 argument, change all callers.
17 * coffread.c (read_coff_symtab): Remove superfluous cast for
18 complaint output.
19 * dbxread.c (end_psymtab): Cast MSYMBOL_INFO to long, not int.
20 * findvar.c, value.h (write_register): Change register value to long.
21 * gdbtypes.h (struct type): Change `bitsize' to long as
22 TYPE_FIELD_STATIC_PHYSNAME uses this field as a pointer.
23 * inferior.h (struct inferior_status): Change type of stop_pc to
24 CORE_ADDR.
25 * language.h (local_octal_string, local_octal_string_custom):
26 Remove prototype, the functions are neither defined nor used.
27 * mipsread.c (parse_symbol): Use temporary variable for bitsize as
28 f->bitsize is a long now.
29 * objfiles.c (add_to_objfile_sections, build_objfile_section_table):
30 Use unsigned long casts instead of int for abusing sections_end
31 pointer as integer.
32 * stack.c (parse_frame_specification): Change type of `args' to
33 CORE_ADDR for SETUP_ARBITRARY_FRAME.
34
35 * printcmd.c (make_vasize): Allow redefinition via MAKEVA_SIZE.
36 * mipsread.c (parse_type): Alpha cc now supports the t->continued
37 bit, update algorithm to match the way the compiler uses it.
38
aca4585c
JK
39Tue Sep 28 12:05:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
40
41 * utils.c (fprintfi_filtered): Fix comments.
42
f0fcf00a
SG
43Mon Sep 27 18:10:08 1993 Stu Grossman (grossman at cygnus.com)
44
45 * coffread.c (read_coff_symtab): Don't call getfilename if there
46 are no auxents.
47
7fc6a6b5
JK
48Mon Sep 27 10:22:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
49
01d3fdba
JK
50 * symtab.c (find_pc_line): Fix comments.
51
7fc6a6b5
JK
52 * remote-udi.c (udi_mourn): Don't pop target.
53
d113e6b2
SG
54Fri Sep 24 17:25:41 1993 Stu Grossman (grossman at cygnus.com)
55
56 * corelow.c: Add multi thread/process support for core files with
57 .reg/XXX pseudo-sections.
58 * i386lynx-nat.c thread.h thread.c: Remove unnecessary core file
59 support.
60
114221b5
JK
61Thu Sep 23 10:49:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
62
d113e6b2
SG
63 * remote-udi.c (download): Skip zero length sections.
64
d4778d0f
JK
65 * valops.c (search_struct_method, value_struct_elt):
66 Use (value)-1, not -1, for error.
67
114221b5
JK
68 * infcmd.c (step_1), infrun.c (wait_for_inferior): Add comments
69 about SHIFT_INST_REGS.
70
71 * exec.c (exec_file_command): Set text_end based on all code readonly
72 sections, not just ".text".
73
74 * defs.h, infcmd.c, config/z8k/tm-z8k.h, config/m88k/tm-m88k.h,
75 config/sh/tm-sh.h, config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
76 z8k-tdep.c: Remove all references to ADDR_BITS_SET.
77 * config/m88k/tm-m88k.h: Define TARGET_WRITE_PC.
78
abef03ce 79 * config/m88k/tm-m88k.h, m88k-tdep.c: Add call function stuff.
114221b5 80
8b52d486
PS
81Thu Sep 23 00:13:06 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
82
83 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Define as noop as
84 the pushing of the struct return address is already handled in
85 mips_push_arguments.
86 * mips-tdep.c (reinit_frame_cache_sfunc): Fix typo in prototype
87 declaration.
88 * mipsread.c (parse_symbol, parse_type, upgrade_type): Add more
89 sanity checks for corrupt symbol entries to avoid core dumps
90 reported by benson@odi.com. Obviously Ultrix 4.3A cc now has
91 the same problems as the OSF/1 alpha cc.
92 * mipsread.c (parse_lines): Iterate over the range of the compressed
93 line number entries, the old iteration sometimes failed to stop
94 and wrote past the end of the LINETABLE. Add sanity check to avoid
95 the same problem in case the line number info is corrupt.
96 * mipsread.c (parse_procedure): Adjust pdr for alpha __sigtramp.
97 * mipsread.c (parse_external, parse_partial_symbols): Ignore stNil
98 symbols that are produced for statics in .o files and stLocal symbols
99 that are produced for every section in OSF/1 dynamically linked
100 executables.
101 * mipsread.c (psymtab_to_symtab_1): Put out `undefined symbols'
102 warning only under `verbose on' as there are many undefined symbols
103 in a dynamically linked executable.
104
6deb63ab
JK
105Wed Sep 22 10:28:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
106
a9b35c67
JK
107 * config/i960/nindy960.mt: Don't define REMOTE_O; REMOTE_O was
108 intended only for VxWorks. Remove dcache.o from TDEPFILES now
109 that we pick it up from the default REMOTE_O.
110
bdef72d2
JK
111 * breakpoint.c (bpstat_what): Initialize retval.call_dummy and
112 retval.step_resume.
113
e797b4bc 114 * mips-tdep.c (mips_frame_chain): If frame size zero, return zero.
3f528883 115 * rs6000-tdep.c: Add comment about framelessness.
bdef72d2 116
6deb63ab
JK
117 * remote-nindy.c: Declare ninMemGet and ninMemPut.
118
b1eaba9a
SG
119Wed Sep 22 08:02:57 1993 Stu Grossman (grossman at cygnus.com)
120
121 * Makefile.in: Add i386lynx-tdep to the right places.
122 (TARDIRS): Add gdbserver.
123
124 * exec.c (print_section_info): Print entry point.
125 * i386lynx-nat.c (i386lynx_saved_pc_after_call): Move into
126 i386lynx-tdep.c. Add core file support.
127 * i386lynx-tdep.c: New module for Lynx/386 target dependant code.
128 * maint.c: Add `maint info sections' command to print info about all
129 sections that BFD knows about for exec and core files.
130 * sparc-tdep.c (sparc_push_dummy_frame): Update stack pointer
131 before putting frame on the stack. Consolidate writes to reduce
132 traffic for remote debugging.
133 * config/i386/i386lynx.mh (NATDEPFILES): Remove exec.o.
134 * config/i386/i386lynx.mt (TDEPFILES): Add exec.o, i386lynx-tdep.o.
135 * config/i386/nm-i386lynx.h: Add target_pid_to_str().
136 * config/i386/tm-i386lynx.h: Remove target_pid_to_str().
137 * sparclite/Makefile.in: Add deps to keep Sun make happy.
138
cb6b0202
JK
139Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
140
141 * breakpoint.h, breakpoint.c (bpstat_stop_status): Add new argument
142 not_a_breakpoint.
143 * infrun.c (wait_for_inferior): Pass it. Also consolidate the
144 test of whether we are stepping into a CURRENTLY_STEPPING macro.
145
817ac7f8
RP
146Tue Sep 21 17:22:34 1993 K. Richard Pixley (rich@sendai.cygnus.com)
147
148 * breakpoint.c (bpstat_stop_status),
149 infcmd.c (step_1),
cb6b0202
JK
150 infrun.c (wait_for_inferior): collapse SHIFT_INST_REGS ifdef
151 and insert macro.
817ac7f8
RP
152
153 * m88k-tdep.c: include ieee-float.h. new global target_is_m88110.
154 new const struct ext_format_m88110 for float format.
155 (pic_prologue_code): add braces.
156 (next_insn): remove unused variable buf.
157 (frame_find_saved_regs): remove unused variables next_addr,
158 saved_regs, regnum.
159 (frame_locals_address): remove unused variables frame, ap.
160 (frame_args_address): remove unused variables frame, ap.
161 (push_parameters): add some breaks and a default case.
162
163 * remote-bug.c: remove redundant includes of value.h, target.h,
164 serial.h.
165 (bug_open): corrected typo, sr_multi_scan -> gr_multi_scan.
166 (bug_fetch_register): special case sfip register for m88110.
167 remove flag bit masking of pc registers. This should be handled
168 by the ADDR_BITS_* macros.
169 (bug_store_register): special case sfip register for m88110.
170 Corrected sprint format for extended registers.
171
172 * config/m88k/tm-m88k.h: white space and comment changes. include
173 ieee-float.h. expanded to cope with m88110 extended registers.
174 (R0_REGNUM, XFP_REGNUM, X0_REGNUM): new macros.
175 (SHIFT_INST_REGS): becomes a real macro.
176
bb7b3800
JK
177Tue Sep 21 17:48:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
178
179 * breakpoint.c (breakpoint_1): Support bp_call_dummy.
180
610a7e74
ILT
181Tue Sep 21 17:06:19 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
182
183 * elfread.c (record_minimal_symbol_and_info): Guess the section to
184 use from the type.
185 * objfiles.c: Include gdb-stabs.h for SECT_* macros.
186 (objfile_relocate): Relocate textlow and texthigh in psymtabs.
187 Relocate partial symbols. Check that minimal SYMBOL_SECTION is
188 nonnegative before using it.
189 * symtab.h: Adjust section field comment.
190
191 * remote.c (interrupt_query): New function.
192 (remote_interrupt_twice): Call interrupt_query.
193 (putpkt, getpkt): If quit_flag is set, call interrupt_query.
194 (remote_wait): Don't bother with objfile_relocate if the addresses
195 haven't changed.
196 (remote_fetch_registers): If we see a packet that doesn't start
197 with a hex character, fetch a new one.
198
8b05f64a
JK
199Tue Sep 21 11:44:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
200
e15f2a54
JK
201 * remote.c, remote-utils.c: Use SERIAL_FLUSH_INPUT after opening it.
202
4ef6b451
JK
203 * printcmd.c (print_scalar_formatted): When truncating value we are
204 going to print as unsigned, handle it generally for any length
205 less than sizeof (LONGEST), rather than special-casing sizeof (char),
206 sizeof (short), and sizeof (long). Clarify comment on what this
207 is for.
208
8b05f64a
JK
209 * symfile.c (deduce_language_from_filename): Accept .cxx for C++.
210 * buildsym.c (start_subfile): Use deduce_language_from_filename
211 rather than checking for .C or .cc ourself.
212
424ab390
JK
213Mon Sep 20 14:53:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
214
1bef45ea
JK
215 * defs.h: Declare argument of re_comp as const char *.
216
66a48870
JK
217 * remote.c, remote-mips.c: Use sr_get_debug not remote_debug.
218
424ab390
JK
219 * README: Say using bfd from another release doesn't generally work.
220
84d59861
JK
221Sat Sep 18 10:13:18 1993 Jim Kingdon (kingdon@poseidon.cygnus.com)
222
1fdbc4d1
JK
223 * mipsread.c (parse_type): Don't complain() if we guessed struct
224 and it was a union, or vice versa.
225
84d59861
JK
226 * defs.h (make_cleanup): Change PTR to void * when inside PARAMS.
227
228 Some of the following is in #ifdef CALL_DUMMY_BREAKPOINT_OFFSET.
229 * breakpoint.h (enum bptype): Add bp_call_dummy.
230 (struct bpstat_what): Add call_dummy field.
231 * infrun.c (wait_for_inferior): Deal with it.
232 * breakpoint.c (bpstat_what): Deal with call dummy breakpoint.
233 * infcmd.c (run_stack_dummy): Set the call dummy breakpoint.
234 * config/sparc/tm-sparc.h: Define CALL_DUMMY_BREAKPOINT_OFFSET.
40b92220
JK
235
236 * remote-sim.h: New file.
237 * remote-sim.c: Add remote debug feature. Rename stuff to distinguish
238 interface to simulator from gdb-specific stuff. Other changes.
239start-sanitize-v9
240 * remote-sp64sim.c: Renamed to remote-sim.c.
241 Use sr_get_debug instead of our own sim_verbose/simif_snoop.
242 Use gnutarget in call to bfd_openr.
243 Rename simif_* to gdbsim_*.
244 * config/sparc/sp64sim.mt: Change remote-sp64sim.c to remote-sim.c.
245end-sanitize-v9
246
30d20d15
PS
247Fri Sep 17 04:41:17 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
248
249 * findvar.c (extract_signed_integer): Cast *p to LONGEST before doing
250 the xor and subtract. Otherwise it will not sign extend if the type
251 of LONGEST is larger than int.
252 * cp-valprint.c (cp_print_class_method): Inhibit core dump if
253 domain is an undefined cross reference.
254 * valops.c (call_function_by_hand): Set real_pc to correct
255 value if CALL_DUMMY_LOCATION != ON_STACK.
256
f8efbf22
JK
257Thu Sep 16 20:37:06 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
258
259 * config/a29k/tm-a29k.h (FRAME_CHAIN): If rsize is zero, return zero.
260
c9de302b
SG
261Thu Sep 16 13:16:22 1993 Stu Grossman (grossman at cygnus.com)
262
263 * infrun.c (wait_for_inferior): Allow user to single step within
264 a stack dummy.
265
2670a1dd
JK
266Thu Sep 16 12:34:01 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
267
268 * dbxread.c (copy_pending): Deal with END NULL.
269 (process_one_symbol): Add comments about what common_block NULL means.
270
ca0622e7
JK
271Wed Sep 15 14:50:26 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
272
273 * remote-udi.c, remote-adapt.c, remote-mm.c: Move processor_type
274 to tm-a29k.h and a29k-tdep.c and make it an enum.
275 * a29k-tdep.c (a29k_get_processor_type): New function. Fix many
276 aspects of how we detected the processor type.
277 * remote-udi.c, remote-adapt.c, remote-mm.c (*_open): Call it
278 rather than figuring out the type ourselves.
279
f2e21136
SG
280Thu Sep 16 12:12:59 1993 Stu Grossman (grossman at cygnus.com)
281
282 * sparc-stub.c (_trap_low): Do restore/save sequence after
283 setting sp to ensure that we load the previous window from the
284 right place on the stack.
285
85999c05
PS
286Thu Sep 16 00:36:32 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
287
288 * mipsread.c: Many changes for alpha ecoff format:
289 Correct sizeof(int) == sizeof(long) assumptions.
290 Replace stParsed hack by putting the parsed types on the pending chain.
291 Replace mips specific ecoff mapping by ECOFF_REG_TO_REGNUM macro,
292 provide default for cross debugging.
293 Swapping the symbol back is no longer needed as the symbol is not
294 modified anymore.
295 Add new alpha basic types, handle btTypedef, handle stStaticProc
296 external symbols .
297 Update and clean up cross_ref for alpha cc cross ref variations.
298 Allocate types on the type_obstack to inhibit storage leaks.
299 * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM): Define.
300 * gdbtypes.c (recursive_dump_type): Dump TYPE_TAG_NAME if it is set.
301
5ed0ccaf
JK
302Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
303
304 * stabsread.c (read_type): Process "s" (size) type attribute.
305 If type is defined to another type, copy the type.
306
aa8fe907
ILT
307Tue Sep 14 18:37:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
308
309 * config/i386/i386v4.mh (NATDEPFILES): Move exec.o from here...
310 * config/i386/i386v4.mt (TDEPFILES): ...to here.
311
a94abe5b
RP
312Tue Sep 14 12:21:49 1993 K. Richard Pixley (rich@sendai.cygnus.com)
313
b70b042d
RP
314 * Makefile.in (remote_utils_h): add serial.h and target.h.
315 (main.o, remote-es.o, remote-nindy.o, remote.o): remove target.h
316 (already in remote_utils_h).
317 (remote-utils.o): new rule.
318
319 * remote-utils.h: include serial.h.
320
321 * serial.h: ifdef protect from multiple inclusion.
322
a94abe5b
RP
323 * remote.c, remote-nindy.c, remote-mon.c, remote-es.c: include
324 remote-utils.h.
325
326 * remote.c (remote_open), remote-nindy.c (nindy_open,
327 nindy_files_info), remote-mon.c (general_open), remote-es.c
328 (es1800_open): use remote-utils facilities for baud rate.
329
899931b6
JK
330Tue Sep 14 09:12:17 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
331
5ed0ccaf 332 * paread.c, coffread.c, elfread.c, dwarfread.c:
ddf5d7e8 333 Include <time.h> and <sys/types.h> before libbfd.h.
1225fcbd
JK
334
335 * paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
336
899931b6
JK
337 * Makefile.in (a29k-tdep.o): Depend on $(defs_h).
338 * config/a29k/tm-a29k.h (SAVED_PC_AFTER_CALL): Use gr122 not lr0
339 if this is a transparent procedure.
340
55fea07b
JK
341Mon Sep 13 16:06:43 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
342
343 * remote.c: Define remote_debug to 0 and #if 0 baud_rate. Temporary
344 hack so this file compiles again.
345
346 * remote-utils.c (gr_multi_scan): Cast return value from alloca.
347 (gr_multi_scan): #if 0 never-reached return(-1).
348
349 * remote-udi.c (udi_wait): Return inferior_pid not 0.
350
c6f494e8
RP
351Mon Sep 13 14:14:35 1993 K. Richard Pixley (rich@sendai.cygnus.com)
352
353 Collect some remote things into remote-utils.
354 * remote-utils.[ch]: new files of functions collected from several
355 different remote targets.
356 * Makefile.in (REMOTE_O): add remote-utils.o.
357 (dcache_h, remote_utils_h): new macros.
358 (HFILES): add $(remote_utils_h).
359 (ALLDEPFILES): add $(remote_utils_h).
360 (dcache.o): new rule.
361 (main.o, remote-bug.o): also depend on $(remote_utils_h).
362 * target.h (remote_debug): extern moved to remote-utils.h.
363 * target.c (find_default_run_target, find_core_target): initialize
364 runable.
365 (remote_debug): moved to remote-utils.c.
366 (_initialize_targets): move declaration of user variable
367 remotedebug to remote-utils.c.
368 * remote-bug.c: include remote-utils.h rather than dcache.h.
369 (bug_close, bug_write, bug_write_cr, desc, bug_dcache, timeout,
370 dev_name, check_open, is_open, readchar, readchar_nofail,
371 pollchar, expect, expect_prompt, get_hex_digit, get_hex_byte,
372 get_hex_word, bug_kill, bug_detach, bug_create_inferior,
373 multi-scan, bug_prepare_to_store, bug_fetch_word,
374 bug_store_word, bug_files_info, bug_mourn, bug_com, bug_device,
375 bug_speed): removed and replaced with facilities from
376 remote-utils.[ch].
377 (bug_read_inferior_memory): renamed to bug_read_memory.
378 (bug_write_inferior_memory): renamed to bug_write_memory.
379 (bug_xfer_inferior_memory): renamed to bug_xfer_memory.
380 (get_word): comment out this unused function for now.
381 (bug_settings, cpu_check_strings): new statics.
382 (bug_open): rewritten to use gr_open.
383 (_initialize_remote_bug): remove declarations of commands bug,
384 device, speed.
385 * main.c: include remote-utils.h.
386 (baud_rate): removed to remote-utils.c.
387 (main): handle baud rate settings using new facilities from
388 remote-utils.
389 * defs.h (baud_rate): removed extern.
390
391 m88110 support via bug-197 monitor.
392 * remote-bug.c (get_reg_name, bug_fetch_register,
393 bug_store_register): added m88110 extended register support.
394 (wait_strings): added bug-197 prompt.
395 (bug_wait): cope with bug-197 prompt.
396 (start_load): cope with either bug-197 or bug-187 prompt.
397
e3c16900
JK
398Mon Sep 13 12:53:09 1993 Jim Kingdon (kingdon@cirdan.cygnus.com)
399
37c99ddb
JK
400 * inferior.h, infrun.c, thread.c, infcmd.c: Remove all uses of
401 pc_changed. If it was ever set to a non-zero value, it was before
402 GDB 2.8. It doesn't seem to have any useful function.
403
e3c16900
JK
404 * defs.h: Don't define NORETURN (see comment).
405
406Sat Sep 11 10:46:09 1993 Jim Kingdon (kingdon@poseidon.cygnus.com)
407
408 * m88k-nat.c (fill_gregset): Set r31 and sfip.
409
f46ffb9e
JK
410Thu Sep 9 10:18:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
411
412 * remote-udi.c (udi_wait, case UDIStdinNeeded): Use a loop calling
413 getchar() (terminated only on '\n') instead of scanf. Send the
414 '\n' which terminates it to the remote system.
415
416 More gcc lint:
417 * exec.c (ignore): Return 0.
418 * stack.c (return_command): Fetch lazy value directly, not via
419 VALUE_CONTENTS, to avoid "value computed is not used".
420 * inflow.c (new_tty): Move osigttou inside #if.
421
422 * remote.c (remote_fetch_registers): If remote reply is short, just
423 note that fact and keep going (reading extra registers as all bits 0).
424 (remote_store_registers): Send number of registers that were found
425 by remote_fetch_registers.
426 * m68k-tdep.c, config/m68k/tm-m68k.h, config/m68k/tm-*.h: Remove
427 HAVE_68881. Define CANNOT_STORE_REGISTER if ptrace() can't write
428 floating registers.
429 * config/m68k/{tm-m68k-nofp.h,m68k-nofp.mt,tm-m68k-fp.h,m68k-fp.mt}:
430 Remove, replaced by {tm-m68k-em.h,m68k-em.mt}.
431 * Makefile.in, configure.in: Change accordingly.
432
da398610
PS
433Thu Sep 9 04:59:03 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
434
435 * mipsread.c (cross_ref): Allow SGI extended symbol types as cross
436 reference targets.
f46ffb9e 437 * symmisc.c (print_symbol): Use TYPE_TAG_NAME not TYPE_NAME to avoid
da398610
PS
438 printing of identities.
439
93bb0afa
JK
440Wed Sep 8 19:18:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
441
442 * breakpoint.c (breakpoint_1): Deal with step resume breakpoint.
443
46c28185
RP
444Wed Sep 8 13:01:10 1993 K. Richard Pixley (rich@cygnus.com)
445
446 Gcc lint.
89812a0e
RP
447 * config/m88k/tm-m88k.h (frame_find_saved_regs): prototype.
448 * config/h8300/tm-h8300.h (NUM_REGS): rewrite to avoid nested comment.
fee933f1
RP
449 * blockframe.c (get_prev_frame_info): initialize address.
450 * breakpoint.c (bpstat_copy): initialize retval.
451 (bpstat_stop_status): initialize value_is_zero.
452 (bpstat_what): initialize bs_class.
453 (breakpoint_1, mention): add do-nothing case for bp_step_resume.
454 (break_command_1): initialize cond_end, addr_end, &
455 canonical_strings_chain.
456 (enable_breakpoint): initialize save_selected_frame.
457 * buildsym.c (end_symtab): initialize symtab & linetablesize.
72cd0384
RP
458 * c-exp.y (parse_number): initialize i.
459 * c-typeprint.c (c_type_print_varspec_prefix): include
460 TYPE_CODE_BITSTRING in switch statements and do nothing.
461 * c-valprint.c (c_val_print): removed unused variable c.
462 * ch-valprint.c (chill_val_print): removed unused variable eltlen.
463 * cp-valprint.c (cp_print_class_method): initialize f & j.
464 * eval.c (evaluate_subexp): initialize pc2, arg1, arg2.
465 * expprint.c (print_subexp): initialize myprec, assoc, & tempstr.
6406a867
RP
466 * findvar.c (value_from_register): initialize first_addr.
467 * gdbtypes.c (lookup_struct_elt_type): localize use of temporary
468 variable typename.
469 * infcmd.c (run_stack_dummy): return zero rather than simple
470 return.
e7bf1152
RP
471 * infrun.c (wait_for_inferior): initialize stop_sp, prologue_pc.
472 remove symtab, appears unused.
473 (restore_selected_frame): return 1.
474 * mipsread.c (psymtab_to_symtab_1): initialize first_off.
475 (fixup_sigtramp): initialize b0.
0ac0a9f6
RP
476 * printcmd.c (do_examine): initialize val_type.
477 (print_frame_args): initialize b.
478 * ser-tcp.c (tcp_restore): comment out declaration. Appears
479 unused.
480 * ser-unix.c (hardwire_restore): comment out declaration. Appears
481 unused.
482 (hardwire_send_break): moved variable status into ifdef
483 HAVE_SGTTY.
484 (wait_for): moved variable numfds into ifdef HAVE_SGTTY.
485 * serial.h: comment change only.
486 * stabsread.c (rs6000_builtin_type): initialize rettype.
487 (read_range_type): initialize nbits.
46c28185
RP
488 * stack.c (print_frame_info): remove unused variable numargs.
489 (parse_frame_specification): remove unused variables arg1, arg2,
490 arg3.
491 (return_command): initialize return_value.
492 * symfile.c (cashier_psymtab): initialize pprev.
493 * symtab.c (find_pc_psymbol): initialize best.
494 (lookup_symbol): initialize s.
495 (make_symbol_completion_list): initialize quote_pos.
496 * thread.c: include command.h.
497 (thread_info): static declaration removed; unused.
498 (info_threads_command): fix == vs = typo.
499 * typeprint.c (whatis_exp): initialize old_chain.
500 * valprint.c (val_print_string): remove unused variable
501 first_addr_err. Initialize old_chain.
502 (_initialize_valprint): white space comment change.
503 * values.c (show_values): rewrite if statement to avoid empty
504 body.
505 (vb_match): remove unused variable fieldtype_target_type.
506
bf660885
JK
507Wed Sep 8 10:21:33 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
508
509 * Makefile.in (mipsread.o): Depend on $(bfd_h).
510
ed1a07ad
JK
511Tue Sep 7 13:06:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
512
8467b446
JK
513 * gdbserver/Makefile.in (TAGS): config files are in
514 $(srcdir)/../config, not $(srcdir)/config.
515
ed1a07ad 516 * config/pa/tm-hppa.h: Declare target_read_pc and target_write_pc.
bf660885 517 (STORE_RETURN_VALUE): Pass the correct offset of the return
ed1a07ad
JK
518 register to write_register_bytes.
519 * hppa-tdep.c: Use target_write_pc if PCOQ_TAIL_REGNUM was not saved.
520
4a87a64a
ILT
521Tue Sep 7 14:30:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
522
4f8a48e5
ILT
523 * remote.c (remote_wait): Don't call error. Instead, call warning
524 inside a loop. User can ^C to get out.
525
4a87a64a
ILT
526 * config/m68k/tm-m68k.h (FIX_CALL_DUMMY): Changed name of swapping
527 routine to match BFD name change.
528 * config/z8k/tm-z8k.h (FIX_CALL_DUMMY): Likewise.
529
538b2068
JW
530Mon Sep 6 15:01:57 1993 Jeffrey Wheat (cassidy@cygnus.com)
531
532 * elfread.c: change elf32_symbol_type to elf_symbol_type
533
758aeb93
ILT
534Mon Sep 6 15:43:25 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
535
536 * remote.c (remote_wait): Added 'W' and 'N' responses.
537
ac7a377f
JK
538Fri Sep 3 08:57:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
539
9e19dee1
JK
540 * main.c, utils.c: Add comments about immediate_quit.
541
5ec3ba25
JK
542 * elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
543 to minimal symbols.
544
38c5f504
JK
545 * target.c (pop_target): Don't try to deal with the stack becoming
546 empty. Shouldn't happen and the code that tried was broken.
547
ac7a377f
JK
548 * dcache.c: Cast return value from xmalloc.
549
550 * remote.c: Move setting of immediate_quit from remote_open to
551 remote_start_dummy and set it back to zero when done.
552
22202966
JK
553Thu Sep 2 00:07:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
554
eba94f7d
JK
555 * m88k-tdep.c: Remove a bunch of unused #includes.
556
a3178c64
JK
557 * language.h: Add comment about current_language.
558
fb27a962
JK
559 * mips-tdep.c (_initialize_mips_tdep): Change heuristic-fence-post
560 from var_uinteger to var_zinteger.
561
f9440640
JK
562 * configure.in: Fix typo (delta88r4 -> delta88v4).
563
564 * config/m88k/xm-delta88.h: Don't include sys/siginfo.h. It was
565 to make this work on SVR4 before SVR4 had its own configuration,
566 and it breaks SVR3.
567
568 * config/m88k/tm-delta88v4.h: Define FRAME_CHAIN_VALID_ALTERNATE.
569
7f5a51a4
JK
570 * config/m88k/delta88v4.h (NATDEPFILES): Remove infptrace.o inftarg.o.
571
22202966 572 * config/m88k/xm-dgux.h: Renamed from config/m88k/xm-m88k.h.
d9a23ef7 573 * config/m88k/m88k.mh: Use xm-dgux.h.
22202966
JK
574 * config/m88k/xm-m88k.h: New file, with HOST_BYTE_ORDER,
575 MAKEVA_END and MAKEVA_ARG.
576 * config/m88k/xm-*.h: Include m88k/xm-m88k.h.
577 * printcmd.c: Remove __INT_VARARGS_H code; now in xm-m88k.h.
578
996ccb30
JK
579Wed Sep 1 19:31:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
580
a80193ba
JK
581 * remote-udi.c (udi_wait): Call `warning' not `error'.
582
67a64bec
JK
583 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): If the symbol has a
584 demangling, don't put the mangled form in the completion list.
585
996ccb30
JK
586 * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c,
587 symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c
588 partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put
589 inside #if) unused variables and labels. Fix unclosed comment.
590 Deal with enumeration values unhandled in switch statements. Make
591 sure non-void functions return values. Include appropriate
592 headers.
593 * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned
594 value < 0.
595
c398de0c
RP
596Wed Sep 1 14:36:00 1993 K. Richard Pixley (rich@sendai.cygnus.com)
597
598 * i960-tdep.c, ns32k-pinsn.c, remote-adapt.c, xcoffread.c:
599 index -> strchr.
600
98105ba2
JK
601Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
602
603 * remote.c: Add comment explaining why dcache is disabled.
604 (remote_fetch_word, remote_store_word): Make static and #if 0.
605 They are not called from anywhere.
606
607Wed Sep 1 14:41:28 1993 K. Richard Pixley (rich@sendai.cygnus.com)
4ed97c9a
RP
608
609 * arm-tdep.c, convex-tdep.c, convex-xdep.c, dbxread.c,
610 h8300-tdep.c, h8500-tdep.c, i960-pinsn.c, i960-tdep.c,
611 infptrace.c, m88k-tdep.c, mips-tdep.c, regex.c, remote-vx.c,
612 rs6000-tdep.c, xcoffexec.c, xcoffread.c, z8k-tdep.c,
613 config/arm/tm-arm.h, config/convex/tm-convex.h,
614 config/gould/tm-np1.h, config/gould/tm-pn.h,
615 config/m68k/tm-isi.h, config/ns32k/tm-umax.h,
616 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
617 config/rs6000/tm-rs6000.h, config/tahoe/tm-tahoe.h,
618 config/vax/tm-vax.h: bzero -> memset.
9823e3f4
RP
619
620 * regex.c: bcmp -> memcmp.
621
c438b3af
JK
622Wed Sep 1 11:35:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
623
98105ba2
JK
624 * symtab.c (find_pc_line, find_line_common),
625 symtab.h (struct linetable), xcoffread.c (arrange_linetable):
c438b3af
JK
626 Revise comments re linetable sorting.
627 * buildsym.c (compare_line_numbers): Sort by pc, not by line.
628 * coffread.c: Tell end_symtab to sort the line table.
629
630 * coffread.c: Re-work a lot of the coff-specific stuff to use stuff
631 in buildsym.c. This includes coff_finish_block, coff_context_stack,
632 coff_local_symbols, coff_file_symbols, coff_global_symbols,
633 coff_end_symtab and coff_add_symbol_to_list.
634 (read_enum_type): Deal with it now that we have a "struct pending"
635 not a "struct coff_pending".
636
637 * buildsym.c (end_symtab): Don't realloc subfile->linetable.
638
ade40d31
RP
639Wed Sep 1 13:12:43 1993 K. Richard Pixley (rich@sendai.cygnus.com)
640
641 * a68v-nat.c, altos-xdep.c, convex-tdep.c, convex-xdep.c,
642 findvar.c, hppab-nat.c, hppah-nat.c, i386mach-nat.c,
643 irix4-nat.c, m68k-tdep.c, m88k-tdep.c, mipsread.c, regex.c,
644 remote-bug.c, remote-hms.c, rs6000-nat.c, rs6000-tdep.c,
645 sparc-nat.c, stabsread.c, sun3-nat.c, sun386-nat.c, symfile.c,
646 umax-xdep.c, xcoffread.c, 29k-share/udi/udip2soc.c,
647 29k-share/udi/udr.c, config/a29k/tm-a29k.h, config/arm/tm-arm.h,
648 config/convex/tm-convex.h, config/gould/tm-np1.h,
649 config/gould/tm-pn.h, config/h8300/tm-h8300.h,
650 config/h8500/tm-h8500.h, config/i386/tm-i386aix.h,
651 config/i386/tm-sun386.h, config/i386/tm-symmetry.h,
652 config/i960/tm-i960.h, config/m68k/tm-news.h,
653 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
654 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
655 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
656 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
657 config/tahoe/tm-tahoe.h, config/vax/tm-vax.h,
4ed97c9a 658 config/z8k/tm-z8k.h, nindy-share/nindy.c: bcopy -> memcpy.
ade40d31 659
e7e02420
PS
660Wed Sep 1 05:05:53 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
661
662 * mipsread.c (parse_partial_symbols): Use language from FDR if it
663 is unambigous. Patch from ptf@delcam.co.uk (Paul Flinders).
664 * mipsread.c (ecoff_symfile_info): New struct to hold the global
665 pending_list.
666 * mipsread.c (mipscoff_symfile_init, parse_partial_symbols):
667 Allocate the global pending list and link it to the objfile.
668 * mipsread.c (is_pending_symbol, add_pending): Use global pending
669 list from objfile. Allocate pending list entries from the
670 psymbol_obstack.
671 * mipsread.c (free_pending): Remove. The pending list is now
672 freed when the psymbol_obstack is freed.
673 * mipsread.c (psymtab_to_symtab1): Remove pending list allocation,
674 the global pending list is used now.
675 * mipsread.c (parse_partial_symbols): Skip only the first
676 file indirect entry when building the dependency list.
677
755892d6
RP
678Tue Aug 31 15:01:27 1993 K. Richard Pixley (rich@sendai.cygnus.com)
679
d538b510
RP
680 Break dcache code out of remote.c.
681 * dcache.h: white space changes only.
682 * dcache.c: add user settable variable to set whether data caching
683 is in use.
684 * remote.c: include dcache.h. removed data caching code which is
685 now in dcache.c. Compile in data caching again. (data caching
686 is currently off by default.)
687 (remote_read_bytes, remote_write_bytes): change second arg to
688 unsigned char.
689 (remote_dcache): new static variable.
690 * Makefile.in (REMOTE_O): add dcache.o.
691 * config/m88k/m88k.mt (TDEPFILES): removed dcache.o.
692
5a0a463f
RP
693 Break dcache code out of remote-nindy.c.
694 * remote-nindy.c: removed dcache code. Changed callers to use new
695 conventions. include dcache.h.
696 (nindy_dcache): new static variable.
697 * config/i960/nindy960.mt (TDEPFILES): added dcache.o.
698
755892d6
RP
699 Break dcache code out of remote-bug.c into dcache.[hc].
700 * Makefile.in (dcache_h): new macro.
701 (HFILES): added $(dcache_h).
702 (ALLDEPFILES): added dcache.c.
703 (dcache.o): new rule.
704 (remote-bug.o): now depends on $(dcache_h).
705 * remote-bug.c: include dcache.h. remove externs for insque and
706 remque, add extern for bcopy. Prototype bug_close,
707 bug_clear_breakpoints, bug_write_cr. dcache code moved to
708 dcache.[hc]. Changed dcache calling convention to include an
709 initial DCACHE argument.
710 (bug_dcache): new static variable.
711 (bug_read_inferior_memory): change second arg to
712 unsigned char.
713 * dcache.[ch]: new files.
714 * config/m88k/m88k.mt (TDEPFILES): add dcache.o.
715
875fc229
JK
716Tue Aug 31 10:33:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
717
718 * c-typeprint.c (c_print_type_base): Treat show = 0 just like
719 show < 0. The only case where we had been distinguishing is that
720 show = 0 used to print "struct " or "enum " instead of
721 "struct {...}" or "enum {...}" which seems clearly wrong.
722
df429798
RP
723Mon Aug 30 17:51:32 1993 K. Richard Pixley (rich@sendai.cygnus.com)
724
725 * configure.in: recognize m88110 as an m88k.
726
b556573d
JK
727Mon Aug 30 16:07:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
728
729 * valops.c (call_function_by_hand): If we discard cleanups, call
730 bpstat_clear (&inf_status.stop_bpstat).
731
cbba020f
PS
732Mon Aug 30 12:47:46 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
733
734 * stabsread.h, dbxread.c (end_psymtab): Return NULL if the psymtab
735 was empty and thrown away.
736 * mipsread.c (parse_partial_symbols): Do not add empty psymtabs to
737 dependency list, skip self dependencies.
738 * mipsread.c (parse_fdr): Removed, obsolete.
739 * mipsread.c (parse_lines): Check for cbLine being zero, not
740 cbLineOffset.
741 * mipsread.c (struct symloc): Add pst_language.
b556573d
JK
742 * mipsread.c (parse_partial_symbols): Set up proper language for
743 header files, save it in pst_language for psymtab_to_symtab_1.
cbba020f
PS
744 * mipsread.c (psymtab_to_symtab_1): Use pst_language.
745
d86a7c57
JK
746Mon Aug 30 10:48:06 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
747
748 * configure.in: Fix typo m88*-motorola-svr4* -> sysv4*.
749
61a29659
KR
750Fri Aug 27 17:09:19 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
751
752 * paread.c: Include som.h instead of libhppa.h. (From Utah.)
753
c033ec17
JK
754Fri Aug 27 09:30:40 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
755
13bd9622
JK
756 * symmisc.c (dump_symtab): Use catch_errors around print_symbol.
757 Change calling sequence of print_symbol to fit catch_errors.
758
427fec5d
JK
759 * mips-tdep.c: Call reinit_frame_cache every time the user does
760 "set heuristic-fence-post".
761
20bee06d
JK
762 * gdbserver/low-sun3.c: New file.
763 * gdbserver/Makefile.in, config/m68k/sun3.mh: Change accordingly.
764
c033ec17
JK
765 * Rename files for 14-character limits:
766 gdbserver/remote-gutils.c -> gdbserver/utils.c
767 gdbserver/remote-inflow.c -> gdbserver/low-lynx.c
768 gdbserver/remote-inflow-sparc.c -> gdbserver/low-sparc.c
769 gdbserver/remote-server.c -> gdbserver/server.c
770 remote-monitor.c -> remote-mon.c
f1538274
JK
771 * Makefile.in, gdbserver/Makefile.in, gdbserver/configure.in,
772 config/m68k/monitor.mt, config/i386/i386lynx.mh,
773 config/sparc/sun4os4.mh: Change accordingly.
c033ec17
JK
774 * gdbserver/Makefile.in: Remove more junk inherited from gdb Makefile.
775
eb03abe8
JK
776Thu Aug 26 14:32:51 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
777
860a1754
JK
778 * infcmd.c, inferior.h (run_stack_dummy): If we stop somewhere
779 besides the dummy, return 1 rather than calling error().
780 Let caller print the error message. Remove name argument.
781 * valops.c (call_function_by_hand): Deal with changes to calling
782 sequence of run_stack_dummy. Discard restore_inferior_status cleanup
783 if run_stack_dummy returns 1.
784
785 * Version 4.10.2.
786
787 * config/mips/tm-mips.h (EXTRACT_STRUCT_VALUE_ADDRESS):
788 Get struct return address from v0, not a0.
789
eb03abe8
JK
790 * infrun.c (restore_inferior_status): Use catch_errors when
791 restoring selected frame.
792
793Wed Aug 25 21:52:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
794
795 * infrun.c (save_inferior_status, restore_inferior_status):
796 Save and restore the registers too.
797 * inferior.h (struct inferior_status): Add "registers".
798
41a6194d
JK
799Tue Aug 24 00:36:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
800
fb2fc3b6
JK
801 * dbxread.c (end_psymtab): Clean up comment.
802
803 * frame.h, symtab.h, findvar.c (read_var_value): Change basereg
804 support to use LOC_BASEREG rather than SYMBOL_BASEREG_VALID.
a1c8d76e 805 * dwarfread.c: Use LOC_BASEREG where appropriate.
fb2fc3b6
JK
806 * Various: Support LOC_BASEREG and LOC_BASEREG_ARG.
807
9c75ce9f
JK
808 * coffread.c (init_lineno, init_stringtab): Don't check whether
809 xmalloc returned NULL.
810
0e646bd5
JK
811 * config/vax/xm-vaxult.h: Define NO_PTRACE_H.
812
41a6194d
JK
813 * target.c, target.h: Add "set remotedebug" command.
814 * remote-bug.c, remote.c, remote-mips.c: Remove "set remotedebug" and
815 "set m88ksnoop" options and use generic "set remotedebug" instead.
816 * NEWS: Describe this change.
817
2731625a
JK
818Mon Aug 23 20:26:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
819
820 * buildsym.h: Remove declaration of dbxread.c functions.
821 * stabsread.h: Group together dbxread.c functions.
822 Move elfstab_build_psymtabs here from symfile.h.
823 Declare pastab_build_psymtabs.
824 * elfread.c, paread.c: Include stabsread.h (for stabsread_new_init
825 declaration, etc).
826
e0508fdc
RP
827Mon Aug 23 17:16:23 1993 K. Richard Pixley (rich@sendai.cygnus.com)
828
16f6ab6b
RP
829 * remote-bug.c: rename quiet to bug88k_snoop.
830 (double_scan, multi_scan): generalize double_scan into a scan
831 for multiple patterns. Rename to multi_scan.
832 (bug_wait, bug_write_inferior_memory): adapt to use the new
833 multi_scan in order to catch and represent target bus errors.
834 (bug_scan): currently unused, so comment out.
835 (bug_quiet): removed. Replaced with a standard user settable boolean.
836
e0508fdc
RP
837 * m88k-tdep.c: remove include of sys/dir.h. Appears unnecessary
838 and isn't available on solaris.
839
304977ab
JK
840Mon Aug 23 14:56:42 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
841
842 * config/m88k/{delta88v4.mt,delta88v4.mh}: New files
843 * config/m88k/delta88.mh: Fix comment.
844 * config/m88k/tm-delta88.h: Remove unused BCS define.
845 * config/m88k/{tm-delta88v4.h,xm-delta88v4.h,nm-delta88v4.h}:
846 New files.
847 * configure.in: Recognize m88*-motorola-sysv4*.
848 * m88k-nat.c: Always include sys/types.h; don't depend on USG.
849
f5d6b0c5
PS
850Mon Aug 23 12:57:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
851
304977ab
JK
852 * mipsread.c (parse_symbol, parse_type, cross_ref): Pass name of
853 symbol as an argument and use it in complaints.
f5d6b0c5
PS
854 * symmisc.c (dump_psymtab): Dump filenames of dependencies.
855
a6565079
JK
856Mon Aug 23 1993 Sean Fagan (sef@cygnus.com)
857 and Jim Kingdon (kingdon@cygnus.com)
858
859 Add NetBSD support:
860 * configure.in: Recognize netbsd.
861
313dd520
JK
862Fri Aug 20 14:01:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
863
6ecb870e
JK
864 * remote-nindy.c: Remove unused include of sys/ioctl.h.
865
313dd520
JK
866 * frame.h, symtab.h: Revise comments regarding baseregs.
867
018ab14f
PS
868Fri Aug 20 15:07:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
869
870 * mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):
871 Set language for psymtab and symtab.
872 * mipsread.c (new_symbol): Set language and initialize demangled
873 name for symbol.
874 * symmisc.c (print_symbol): Use SYMBOL_SOURCE_NAME when printing
875 the symbol type.
876 * symtab.c (decode_line_1): Inhibit coredumps with cfront executables.
877
8af0de91
JK
878Fri Aug 20 14:01:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
879
0ca9bd12
JK
880 * Move KERNEL_U_ADDR from xm-hp300bsd.h to nm-hp300bsd.h and make
881 it conditionalized on 4.3 vs. 4.4.
882 * config/m68k/nm-hp300bsd.h: Move REGISTER_U_ADDR out of 4.3 and
883 4.4 sections; it was identical and now works for 4.4.
884
b33e0e0b
JK
885 * mips-tdep.c (is_delayed): Use INSN*BRANCH* not ANY_DELAY.
886
8af0de91
JK
887 * printcmd.c (MAKEVA_END): Update this version to use "aligner".
888
6ac14d25
PS
889Thu Aug 19 22:08:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
890
891 * config/vax/tm-vax.h (BELIEVE_PCC_PROMOTION): Define.
892 * mipsread.c (parse_symbol, parse_type, cross_ref): Handle corrupt
893 file indirect entries with complaints instead of core dumps. Remove
894 complaint for stTypedef within aggregates.
895
522b9962
JK
896Thu Aug 19 17:58:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
897
e09c5e26
JK
898 * coffread.c (process_coff_symbol): Ignore tagnames like .0fake.
899
900 * coffread.c (coff_read_enum_type): #if 0 out code which changes
901 enum {FALSE, TRUE} into boolean.
902
522b9962
JK
903 * config/m68k/delta68.m{t,h}: Use nm-delta68.h, etc. not
904 non-existent files nm-delta.h, etc.
905 * config/m68k/tm-delta68.h: Define CANNOT_STORE_REGISTER.
906 * delta68-nat.c: Add "[0]" in offsetof argument.
907 * delta68-nat.c (_initialize_kernel_u_addr): Don't try to set up
908 nl with initializer, just assign to it. Check n_scnum field on
909 return.
910
e56ac0ba
JK
911Wed Aug 18 12:03:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
912
b2ccb6a4
JK
913 * printcmd.c (print_address), values.c (value_as_pointer): Don't
914 use ADDR_BITS_REMOVE.
d3fa810c 915 * defs.h: Try to clarify comment about ADDR_BITS_REMOVE.
b2ccb6a4 916
479fdd26
JK
917 * blockframe.c (block_innermost_frame): Uncomment.
918 Return NULL if passed NULL.
919 * frame.h: Declare it.
920 * expression.h (union exp_element): Add field block.
921 * parse.c (write_exp_elt_block): New function.
922 * expression.h (OP_VAR_VALUE): Now takes additional struct block *.
923 * *-exp.y: Write block for OP_VAR_VALUE.
924 * eval.c, expprint.c, parse.c: Deal with block for OP_VAR_VALUE.
925 * valops.c, value.h (value_of_variable), callers:
926 Add second argument, for block.
927
e56ac0ba
JK
928 * main.c (gdb_readline): If we read some characters followed by EOF,
929 return them rather than returning NULL.
930
48be4c35
JK
931Tue Aug 17 11:14:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
932
933 * mips-tdep.c: Remove unused #ifndef NUMERIC_REG_NAMES and add comment.
934
2f03f9a6
RP
935Tue Aug 17 15:10:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
936
637603f9
RP
937 * config/m88k/tm-m88k.h: Fix typo in comment.
938 (FP_REGNUM): define in terms of SP_REGNUM
939 rather than by absolute number. Also clearly comment that this
940 is a convenient lie in order to decrease future confusion.
941 (ACTUAL_FP_REGNUM): new macro for FP.
942 (FRAME_CHAIN_VALID): removed. Standard default works fine.
943 * m88k-tdep.c (frame_chain_valid): redundant, so removed.
944 (NEXT_PROLOGUE_INSN): removed unused fourth arg, fixed all
945 callers.
946 (read_next_frame_reg): declare static.
947 (examine_prologue): removed unused variabel insn2, rename insn1
948 to insn, rewrote comment about finding fp, sp, etc. set frame_fp
949 based on ACTUAL_FP_REGNUM rather than FP_REGNUM which is
950 actually a scammed alias for SP_REGNUM on m88k.
951
2f03f9a6
RP
952 * frame.h: fixed typo in comment.
953
4f1afa16
JK
954Tue Aug 17 11:14:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
955
b80bd1e0
JK
956 * 29k-share/udi/udiphcfg.h: Always include udiphunix.h not udiphdos.h.
957
4f1afa16
JK
958 * complaints.c (complain): fflush (stdout) after output.
959
d541211d
PS
960Tue Aug 17 01:43:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
961
962 * blockframe.c, frame.h (sigtramp_saved_pc): New routine to fetch
963 the saved pc from sigcontext on the stack for BSD signal handling.
964 * config/i386/tm-i386bsd.h (SIGTRAMP_START, SIGTRAMP_END, FRAME_CHAIN,
965 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET):
966 Define to make backtracing through sigtramp work.
967 * config/vax/tm-vax.h (SIGTRAMP_START, SIGTRAMP_END, TARGET_UPAGES,
968 FRAME_SAVED_PC, SIGCONTEXT_PC_OFFSET): Ditto.
969
1109373a
JK
970Mon Aug 16 13:52:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
971
4f1afa16
JK
972 * main.c (cd_command): If current_directory on entry is "/", then
973 don't append an extra slash.
c307bb11 974 Don't assume that /../.. means /.
4f1afa16 975
d541211d
PS
976 * target.c (target_xfer_memory): Clear errno before calling
977 to_xfer_memory.
978
1109373a
JK
979 * stack.c (frame_info, print_frame_info): Add comment about using
980 the starting source line number on a line boundary if backtracing
981 through sigtramp.
982
4fd0b84e
PS
983Mon Aug 16 02:56:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
984
985 * blockframe.c (create_new_frame, get_prev_frame_info):
986 Use the function name when calling IN_SIGTRAMP.
987 * config/m68k/tm-m68k.h (SIG_PC_FP_OFFSET, SIG_SP_FP_OFFSET):
988 Define for correct handling of bachtraces through _sigtramp.
989 * m68k-tdep.c (m68k_find_saved_regs): Adjust saved sp for fake
990 sigtramp frames.
991 * mipsread.c (parse_type): Handle corrupt TIR info with complaint
992 instead of core dump.
993 * mipsread.c (parse_partial_symbols): Put static symbols into the
994 mimimal symbol table, use proper mst_types for all minimal symbols.
995 * stack.c (frame_info, print_frame_info): Use the starting source
996 line number on a line boundary if backtracing through sigtramp.
997
f2f848b8
RP
998Fri Aug 13 14:37:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
999
4fd0b84e
PS
1000 * remote-bug.c: include gdbcmd.h.
1001 (sleep, remque, insque): forward decls added.
1002 (bug_fetch_registers, bug_store_registers): forward decls
1003 removed.
1004 (bug_read_inferior_memory, bug_write_inferior_memory): forward
1005 decls added.
1006 (srec_frame, srec_max_retries, srec_bytes, srec_echo_pace,
1007 srec_sleep, srec_noise): new static variables for user settable
1008 options. Mostly these are for debugging and tuning. I don't
1009 expect them to stay user settable options for long.
1010 (timeout): change default to 4 seconds.
1011 (check_open): declare funtion static, force return value.
1012 (readchar_nofail): if timeout, then say so if not being quiet.
1013 (pollchar, double_scan, bug_scan, bug_srec_write_cr,
1014 start_load): new functions.
1015 (bug_wait): rewritten to use double scan.
1016 (expect): while (1) -> for (;;)
1017 (get_hex_digit): rewrite if condition to avoid gcc complaints.
1018 (bug_load, bug_create_inferior, bug_open, bug_store_register):
1019 removed unused variables.
1020 (bug_load): replaced DELTA macro with user settable srec_frame
1021 variable. Other minor lint.
1022 (find_end_of_word, is_baudrate_right, set_rate, not_bug_wait,
1023 gethex, timed_read, translate_addr, bug_before_main_loop):
1024 unsused and removed.
1025 (bug_resume): add missing first arg, pid.
1026 (get_reg_name): use ip rather than cr04.
1027 (bug_write, bug_write_cr, but_clear_breakpoints, bug_quiet):
1028 declare type, args, and explicitly return.
1029 (bug_store_register): straighten out the ip vs cr04 confusion.
1030 (bug_write_inferior_memory): rewrite to cope with errors while
1031 downloading s-records.
1032 (bug_read_inferior_memory): declare static.
1033 (bug_clear_breakpoints): expect nobr before prompt.
1034 (_initialize_remote_bug): add initializations for srec-bytes,
1035 srec-max-retries, srec-frame, srec-noise, srec-sleep,
1036 srec-echo-pace.
1037
4f4649a7
RP
1038 * Makefile.in (remote-bug.o): new rule.
1039 (ALLDEPFILES): added remote-bug.c
1040
e93790f0
RP
1041 * remote-hms.c (hms_wait): use -1 for timeout's which means block
1042 forever rather than 99999.
1043
057c2f47
RP
1044 * ser-unix.c (get_tty_state): if a descriptor is not a tty, then
1045 simply save encode this fact as the process group and return
1046 success rather than an error.
1047 (set_tty_state): if process group is -1, do not reset the
1048 process group.
1049 (hardwire_reachar): comment change.
1050
0e5f1b37
RP
1051 * serial.h: comment change.
1052
f2f848b8
RP
1053 * config/m88k/tm-m88k.h: comment change to remove embedded
1054 comment.
1055 (SKIP_PROLOGUE): skip_prologue returns a value which is expected
1056 to reset the pc argument. So reset it.
1057
5069d770
FF
1058Fri Aug 13 10:15:24 1993 Fred Fish (fnf@deneb.cygnus.com)
1059
1060 * Makefile.in (VERSION): Bump to 4.10.1 after release and cvs
1061 tagging.
1062
ff1cdb40
JK
1063Thu Aug 12 20:40:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1064
1065 * gdbserver/Makefile.in: Use GDBSERVER_LIBS and
1066 GDBSERVER_DEPFILES. Also remove much (but not all that could be
1067 removed) crud inherited from gdb Makefile.in.
1068 * config/i386/i386lynx.mh, config/sparc/sun4os4.mh: Define GDBSERVER_*.
1069 * gdbserver/README: Say it works on Sun and change configuration
1070 instructions slightly.
1071
1072Wed Aug 11 18:56:59 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1073
1074 * config/i386/i386v4.mh: use -lsocket and -lnsl, for remote
1075 targets that use BSD style network connections
1076
ae87844d
JK
1077Wed Aug 11 17:54:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1078
1079 * remote-{monitor,bug}.c: Make bug_ops not static (forward declaration
1080 of statics doesn't work with SunOS4 /bin/cc).
1081 Rename the occurrence in remote-monitor.c to monitor_bug_ops.
1082
523ef121
JK
1083Tue Aug 10 13:07:14 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1084
1085 * blockframe.c (find_pc_partial_function),
1086 mips-tdep.c (find_proc_desc): Deal with "pathological" case.
1087
0f1b1bcc
JK
1088Tue Aug 10 14:50:30 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1089
523ef121
JK
1090 * utils.c (wrap_here): Allow indent to be NULL.
1091 (fputs_filtered): Don't check for null wrap_indent (wrap_here now
1092 guarantees that it isn't, and anyway we were only checking one out
1093 of the two places we dereferenced it).
1094
0f1b1bcc
JK
1095 * objfiles.h (struct objfile): Clean up comments for
1096 {obj,sym}_private to clarify what they are private to.
1097
48f075eb
SS
1098Mon Aug 9 16:45:00 1993 Stan Shebs (shebs@rtl.cygnus.com)
1099
1100 * stabsread.c, buildsym.c (hashname): Moved function to
1101 buildsym.c, as suggested in the sources.
1102
0685d95f
JK
1103Mon Aug 9 09:53:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1104
525390a2
JK
1105 * remote-udi.c: Make udi_ops extern rather than trying forward
1106 declaration of a static variable.
1107
8a99c712
JK
1108 * hppab-nat.c: Define ptrace to call_ptrace and pass the 5th arg
1109 there, rather than using an ANSI C specific macro.
1110
a2fbd4c8
JK
1111 * 29k-share/udi/udr.c: Include fcntl.h not sys/fcntl.h. Also put
1112 sys/types.h near the top (just on general principles).
1113
b992d16b
JK
1114 * environ.c (set_in_environ): Remove G960BASE and G960BIN; they are
1115 no longer used.
1116
0685d95f
JK
1117 * gdbcore.h: New variable gnutarget.
1118 * core.c: Add commands to set and show it.
1119 * Callers to bfd_*open*: Pass gnutarget instead of NULL as target.
1120 * environ.c (set_in_environ): For GNUTARGET, use set_gnutarget not
1121 putenv.
1122
1123 * symtab.c (decode_line_1): Give error on unmatched single quote.
1124
3da5198c
JK
1125Sun Aug 8 13:59:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1126
95a98b5e
JK
1127 * ser-unix.c (hardwire_send_break) [HAVE_SGTTY]: Use select not usleep.
1128
3da5198c
JK
1129 * remote.c: Add comments about 'd', 'r', and unrecognized requests.
1130
1131 * inflow.c (terminal_init_inferior): Don't muck with tty state if
1132 gdb_has_a_terminal() is false.
1133
f645e835
FF
1134Sun Aug 8 10:07:47 1993 Fred Fish (fnf@cygnus.com)
1135
1136 * dwarfread.c (record_minimal_symbol): Remove prototype and
1137 function.
1138 * dwarfread.c (add_partial_symbol): Remove code to add minimal
1139 symbols and remove comment about limitations. Experiments show
1140 that now that gdb handles the ELF symtab better for creating
1141 minimal symbols, that no additional information is added by
1142 examining the DWARF information, and in fact, given the
1143 limitations, the DWARF code was actually making things worse.
1144
379dd965
FF
1145Sat Aug 7 10:59:03 1993 Fred Fish (fnf@deneb.cygnus.com)
1146
1147 * elfread.c (elf_symtab_read): Properly sort out the bss symbols
1148 from the data symbols and give them the correct minimal_symbol_type.
1149 Add file static symbols to the minimal symbol table, not just
6c8f91a1
FF
1150 global symbols. Add absolute symbols as well (like _edata, _end).
1151 Redo stabs-in-elf special symbol handling now that file static
1152 symbols are entered into the into the minimal symbol table.
379dd965
FF
1153 * dwarfread.c (add_partial_symbol): Add comment about limitations
1154 of DWARF symbols for distinquishing data from bss when adding
1155 minimal symbols. Add file local symbols to minimal symbols.
1156
8d9ec7b6
JK
1157Thu Aug 5 08:58:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1158
80b4aa1c 1159 * ser-go32.c: Define job_control variable.
e917bef3 1160
80b4aa1c
JK
1161Thu Aug 5 15:56:13 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
1162
1163 * configure.in: z8k-coff is the same as z8k-sim
1164
1165Thu Aug 5 08:58:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
80b4aa1c 1166
038de493
JK
1167 * 29k-share/udi/udip2soc.c: Include sys/types.h before sys/file.h.
1168
a824e46e
JK
1169 * config/i386/tm-i386bsd.h (NUM_REGS): There are only 10, not 11.
1170
d625b398
JK
1171 * inflow.c: Put all uses of F_GETFL and F_SETFL in #ifdef F_GETFL.
1172
8d9ec7b6
JK
1173 * 29k-share/udi/udip2soc.c: Include fcntl.h not sys/fcntl.h.
1174
a88797b5
FF
1175Wed Aug 4 18:32:12 1993 Fred Fish (fnf@cygnus.com)
1176
1177 * inflow.c (pass_signal): Signal handlers take one int arg;
1178 supply an unused one to make it type compatible as an arg to
1179 signal().
1180
05e9e188
ILT
1181Tue Aug 3 18:34:14 1993 Ian Lance Taylor (ian@cygnus.com)
1182
1183 * config/mips/tm-mips.h: Include bfd.h before coff/sym.h.
1184
8e92ade7
FF
1185Tue Aug 3 15:34:57 1993 Fred Fish (fnf@cygnus.com)
1186
1187 * Makefile.in (ALLCONFIG): Add config/i386/i386nw.mt,
1188 config/m68k/delta68.mh, config/m68k/delta68.mt,
1189 config/m68k/dpx2.mh, config/m68k/dpx2.mt, config/mips/riscos.mh,
1190 config/mips/news-mips.mh.
1191 * Makefile.in (ALLPARAM): Add config/i386/nm-symmetry.h,
1192 config/i386/tm-i386nw.h, config/m68k/nm-delta68.h,
1193 config/m68k/tm-delta68.h, config/m68k/xm-delta68.h,
1194 config/m68k/nm-dpx2.h, config/m68k/tm-dpx2.h,
1195 config/m68k/xm-dpx2.h, config/mips/xm-makeva.h.
1196 * Makefile.in (ALLDEPFILES): Add dpx2-nat.c.
1197
e906e7fa
ILT
1198Tue Aug 3 12:02:09 1993 Ian Lance Taylor (ian@cygnus.com)
1199
1200 * mipsread.c: Updated for BFD ECOFF changes. Now gets the
1201 swapping routines and external structure sizes via the
1202 ecoff_backend information. No longer includes coff/mips.h.
1203
511e0322
FF
1204Tue Aug 3 10:58:04 1993 Fred Fish (fnf@cygnus.com)
1205
1206 * Makefile.in (SFILES): Add thread.c
1207
6eb0b283
DE
1208start-sanitize-v9
1209Tue Aug 3 10:21:58 1993 Doug Evans (dje@canuck.cygnus.com)
1210
1211 * remote-sp64sim.c (simif_create_inferior): Add FIXME regarding
1212 sim_set_args return code.
1213end-sanitize-v9
1214
90fcdfbf
RP
1215Mon Aug 2 16:35:31 1993 K. Richard Pixley (rich@sendai.cygnus.com)
1216
1217 * Makefile.in (VERSION): bumped to 4.9.4.
1218
1219 * remote-monitor.c: updated copyright.
1220 (bug_ops, monitor_desc): now static.
1221 (monitor_desc): in several places, check and/or set to NULL.
1222
1223 * remote-hms.c (hms_files_info): Add the appropriate items where
1224 missing in the printf call.
1225
1226 * remote-bug.c: new file for m88k bug support.
1227
1228 * config/m88k/m88k.mt (TDEPFILES): added remote-bug.o.
1229
a3059251
SC
1230Mon Aug 2 14:22:09 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1231
1232 * h8300-tdep.c: Use new variable h8300hmode.
1233
ac88287f
JK
1234Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1235
802d6308
JK
1236 * valops.c (typecmp): If we are passing a non-reference to a function
1237 which takes a reference, pass the address.
1238 (value_arg_coerce): Don't use COERCE_ENUM; we don't want to dereference
1239 references here.
1240
3082244d
JK
1241 * thread.c (thread_switch): Define as static.
1242 (add_thread): Cast return value from xmalloc.
1243
ac88287f
JK
1244 * gdbtypes.c (fill_in_vptr_fieldno): Call check_stub_type.
1245 * gdbtypes.{c,h}: Improve comments on vptr_fieldno.
1246
c178776d
FF
1247Mon Aug 2 11:58:52 1993 Fred Fish (fnf@deneb.cygnus.com)
1248
1249 * README: Elaborate on gdb C++ support and cfront support.
1250
da0baf42
SG
1251Mon Aug 2 11:30:57 1993 Stu Grossman (grossman at cygnus.com)
1252
1253 * i386lynx-nat.c, thread.c, thread.h: Update copyrights.
1254
afa2499d
JK
1255Mon Aug 2 12:06:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1256
1257 * Makefile.in (ALLDEPFILES): Add i386lynx-nat.c.
1258
db691e4b
SG
1259Mon Aug 2 08:42:50 1993 Stu Grossman (grossman at cygnus.com)
1260
1261 * gdbserver/remote-inflow.c (create_inferior): Fix comments, and
1262 error msg. Setup seperate process group for child.
1263 * (write_inferior_memory): Sleep for 1 second and retry on ptrace
1264 failure.
1265
25286543
SG
1266Sun Aug 1 22:58:18 1993 Stu Grossman (grossman at cygnus.com)
1267
884914bf
SG
1268 * config/i386/i386lynx.mh (NATDEPFILES): Drop coredep (for now).
1269 * config/i386/nm-i386bsd.h: Protect from multiple inclusion.
1270 * config/i386/nm-i386lynx.h: Lotsa new host porting stuff.
1271 * config/i386/tm-i386lynx.h: Define SAVED_PC_AFTER_CALL and
1272 target_pid_to_str.
1273
25286543
SG
1274 * Makefile.in (CLIBS): Reorder to make Lynx ld happy.
1275 * (HFILES): New file thread.h.
1276 * (OBS): New file thread.c.
1277 * configure.in: Host config for Lynx/386.
1278 * fork-child.c (fork_inferior): Call init_thread_list().
1279 * infrun.c (resume): Add pid to invocation of target_resume().
1280 * (wait_for_inferior): Pay attention to pid from target_wait().
1281 Multi-threading code now uses this to determine what to do.
1282 * inftarg.c (child_wait): Conditionalize based on CHILD_WAIT macro.
1283 Use target_pid_to_str() macro throughout when printing pid.
1284 * inferior.h (child_resume): Add pid to prototype.
1285 * hppab-nat.c hppah-nat.c infptrace.c (child_resume): Pass in pid as
1286 argument, instead of using inferior_pid.
1287 * procfs.c (procfs_resume): Pass in pid as argument. Ignored for
1288 now. Use target_pid_to_str() macro throughout for printing process id.
1289 * remote-adapt.c (adapt_resume): Pass in pid as argument.
1290 * remote-eb.c (eb_resume): Pass in pid as argument.
1291 * remote-es.c (es1800_resume): Pass in pid as argument.
1292 * remote-hms.c (hms_resume): Pass in pid as argument.
1293 * remote-mips.c (mips_resume): Pass in pid as argument.
1294 * remote-mm.c (mm_resume): Pass in pid as argument.
1295 * remote-monitor.c (monitor_resume): Pass in pid as argument.
1296 * remote-nindy.c (nindy_resume): Pass in pid as argument.
1297 * remote-sa.sparc.c (remote_resume): Pass in pid as argument.
1298 * remote-sim.c (rem_resume): Pass in pid as argument.
38867a45 1299 start-sanitize-v9
25286543 1300 * remote-sp64sim.c (simif_resume): Pass in pid as argument.
38867a45 1301 end-sanitize-v9
25286543
SG
1302 * remote-st.c (st2000_resume): Pass in pid as argument.
1303 * remote-udi.c (udi_resume): Pass in pid as argument.
1304 * remote-vx.c (vx_resume): Pass in pid as argument.
1305 * remote-z8k.c (rem_resume): Pass in pid as argument.
1306 * remote.c (remote_resume): Pass in pid as argument.
1307 * solib.c (solid_create_inferior_hook): Pass inferior_pid to
1308 target_resume().
1309 * target.c (normal_pid_to_str): New routine to print out process
1310 ID normally.
1311 * target.h (struct target_ops): Add pid to prototype at
1312 to_resume(). (target_resume): Add pid argument.
1313 * (target_pid_to_str): Default definition for normal type pids.
38867a45 1314 * thread.h, thread.c: New modules for multi thread/process control.
25286543 1315
804d23f3
JG
1316Sun Aug 1 13:02:42 1993 John Gilmore (gnu@cygnus.com)
1317
1318 * README: Say that bug-gdb is also the place to send requests
1319 for help with GDB.
1320
d1445327
FF
1321Sun Aug 1 09:42:13 1993 Fred Fish (fnf@cygnus.com)
1322
84b5df32 1323 * Makefile.in (make-proto-gdb-1): Use -f opt on rm of Makefile.
d1445327
FF
1324 * h8500-tdep.c: Add parens around a few macro args.
1325
eec03ebb
JK
1326Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1327
77eb2e8f
JK
1328 * TODO: Remove items about unix-to-unix/rapp debugging (now we
1329 have gdbserver), moving xm files to subdirectory, ptype yylval,
1330 and file-local symbols.
1331
eec03ebb
JK
1332 * gdbtypes.h: Improve comments about C++ methods.
1333
bcca9a08
FF
1334Fri Jul 30 14:16:32 1993 Fred Fish (fnf@deneb.cygnus.com)
1335
1336 * c-exp.y: Add missing 5th arg for one call to lookup_symbol, cast
1337 NULL in all other calls to correct pointer types.
1338
6cfec929
JK
1339Fri Jul 30 15:43:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1340
1341 From Jeffrey Law:
1342 * tm-hppa.h (TARGET_WRITE_PC): Define.
1343 * hppa-tdep.c (hppa_fix_call_dummy): If in a syscall,
1344 then return the address of the dummy itself rather than
1345 the address of $$dyncall.
1346 (target_write_pc): New function to store a new PC.
1347
f5a197a2
PS
1348Fri Jul 30 12:51:27 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1349 and Jim Kingdon (kingdon@cygnus.com)
1350
1351 * breakpoint.c (breakpoint_re_set_one): Always reparse breakpoint
1352 conditions, they might contain symbol table references.
1353
1354Fri Jul 30 12:51:27 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1355
1356 * mipsread.c (parse_symbol): Handle opaque struct definitions and
1357 type naming for stTypedef symbols.
1358
96c68efa
JK
1359Fri Jul 30 14:44:21 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1360
1361 * c-exp.y (yylex): Detect C++ nested types.
1362
38cbb25c
DE
1363start-sanitize-v9
1364Fri Jul 30 11:07:37 1993 Doug Evans (dje@canuck.cygnus.com)
1365
1366 * sp64-tdep.c (sparc64_frame_chain, sparc64_frame_saved_pc): Deleted.
1367 (dump_ccreg, sparc_print_register_hook): New fns.
1368 * remote-sim.h: New file.
1369 * remote-sp64sim.h (sim_*): External fns. (simif_*): Internal fns.
1370
1371 * config/sparc/sp64.mt: New file.
1372 * config/sparc/tm-sp64.h (FRAME_CHAIN, FRAME_SAVED_PC): Deleted.
1373 (PRINT_REGISTER_HOOK): Call new fn sparc_print_register_hook.
1374end-sanitize-v9
1375
6879f0db
FF
1376Fri Jul 30 10:15:01 1993 Fred Fish (fnf@deneb.cygnus.com)
1377
1378 * Makefile.in (ALLCONFIG): Add config/i386/ptx.mh
1379
ca33fca1
JK
1380Fri Jul 30 08:58:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1381
d3862cae
JK
1382 From J. Law:
1383 * infcmd.c (read_pc): Remove PA specific code.
1384 * tm-hppa.h (TARGET_READ_PC): Define.
1385 * hppa-tdep.c (target_read_pc): New function.
1386
ca33fca1
JK
1387 * symtab.c (gdb_mangle_name): Deal with it if type lacks a name.
1388
598db9ee
FF
1389Fri Jul 30 07:36:53 1993 Fred Fish (fnf@deneb.cygnus.com)
1390
ebb962cd 1391 * NEWS: Add note that DEC alpha support is host only, not native.
598db9ee
FF
1392 * README: Emphasize that C++ support works best with GNU C++ and
1393 stabs debugging format.
1394 * delta68-nat.c: Add missing FSF copyright.
1395
f1a67de8
JK
1396Fri Jul 30 08:58:01 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1397
1398 * paread.c (pa_symtab_read): Put file-local symbols in minimal symbols.
247145e6
JK
1399 * hppa-tdep.c (frame_chain_valid): Check that our function has the
1400 same address as _start, not that it must be the same symbol.
f1a67de8 1401
68f49dae
FF
1402Fri Jul 30 00:18:40 1993 Fred Fish (fnf@deneb.cygnus.com)
1403
1404 * Makefile.in (ALLDEPFILES): Add delta68-nat.c
1405 * Makefile.in (delta68-nat.o): Add dependency.
1406
54a11a1d
JK
1407Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1408
5d38a0a8
JK
1409 * value.h (COERCE_ENUM): Use COERCE_REF to coerce refs; value_ind
1410 was adequate in gdb 3.5 but not now.
1411
1412 * valops.c (typecmp): An array in t2 matches a pointer in t1.
1413
1414 * valops.c (typecmp): When comparing type1& to type2, compare
1415 type1 and type2 as leniently as if we were comparing type1 to
1416 type2.
1417
1410f5f1
JK
1418 * cp-valprint.c (cplus_print_value): Don't dump core if the
1419 baseclass doesn't have a name.
1420 * values.c (vb_match): New function, which finds the virtual
1421 base class pointer even if the types are nameless.
1422 (baseclass_{addr,offset}): Use it.
1423
63757ecd
JK
1424 * hppa-tdep.c: Make "maintenance print unwind" command from old
1425 "unwind" command.
1426
54a11a1d
JK
1427 * remote-udi.c: Remove udi_timer, call to siginterrupt, and associated
1428 obsolete junk which apparently had been copied from the
1429 pre-serial.h remote.c, but which is no longer used.
1430
9b311b22
FF
1431Thu Jul 29 12:36:20 1993 Fred Fish (fnf@deneb.cygnus.com)
1432
1433 * Makefile.in (NONSRC): Need 29k-share/README, not
1434 29k-share/udi/README.
1435
6e35b037
JK
1436Thu Jul 29 12:09:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1437
93af329a
JK
1438 * paread.c (pa_symfile_init): If error reading string table, don't
1439 use errno in cases where it hasn't been set.
1440
d4c22c52
JK
1441 * ser-unix.c (gdb_setpgid): Pass our pid, not 0, to setpgid.
1442
60a60032
JK
1443 * remote-monitor.c (_initialize_monitor): Comment out use of
1444 connect_command, since connect_command itself is commented out.
1445
1446 * remote-monitor.c (generic_open): Parse arguments the same way
1447 as remote.c.
1448
6e35b037
JK
1449 * hppa-tdep.c (pc_in_linker_stub): Fix unclosed comments.
1450
c4ed7353
JK
1451Wed Jul 28 13:19:34 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1452
6e35b037
JK
1453 * config/mips/xm-mips.h: Define HAVE_TERMIOS.
1454
c4ed7353
JK
1455 * dbxread.c (record_minimal_symbol): Don't put gcc_compiled or
1456 __gnu_compiled* symbols into the minimal symbols.
1457
0907dc09
ILT
1458Wed Jul 28 08:26:58 1993 Ian Lance Taylor (ian@cygnus.com)
1459
1460 * remote-mips.c (_initialize_remote_mips): Added "timeout" and
1461 "retransmit-timeout" variables to set mips_receive_wait and
1462 mips_retransmit_wait, respectively.
1463
ffff16b3
PS
1464Wed Jul 28 03:58:58 1993 (pes@regent.e-technik.tu-muenchen.de)
1465
1466 * symmisc.c (dump_msymbols): Handle new mst_file_* types.
1467
7706616f
JK
1468Tue Jul 27 12:07:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1469
157ea89d
JK
1470 * remote-udi.c: Remove old comment about download not implemented.
1471
704deef2
JK
1472 * serial.h, ser-{unix,go32,tcp}.c: Add flush_input and send_break.
1473 * nindy-share/*, remote-nindy.c: Extensive hacking to make it
1474 conform to GDB conventions like using memcpy not bcopy, serial.h,
1475 etc. This is to make it host on Solaris, AIX, etc.
1476 * Makefile.in: Reflect removed nindy-share files.
8805c1ee 1477 * config/i960/nindy960.mt (TDEPFILES): Remove ttybreak.o.
157ea89d 1478
efdd6b64
JK
1479 * stack.c (print_frame_info): Revise comment about `pathological'
1480 case (there was a wrong FIXME about text labels; also asm() can
1481 trigger this as well as versions of ar which truncate .o names).
1482
56ad756a
JK
1483 * buildsym.c (start_subfile): If a .c file includes a .C file, set
1484 the language of both of them to C++.
1485
7706616f
JK
1486 * config/sparc/xm-sun4os4.h: Define MEM_FNS_DECLARED and include
1487 <memory.h>.
1488 Include <malloc.h> rather than declaring malloc functions ourself.
1489
1490 * ser-unix.c (set_tty_state): Don't ignore errors setting process
1491 group.
1492 * inflow.c (terminal_inferior): If attach_flag set, ignore errors
1493 from set_tty_state.
1494
1495 * fork-child.c (fork_inferior): Only quote exec file if needed.
1496
1497 * mipsread.c (parse_symbol): Remove 21 Jul 93 change with
1498 stTypedef inside an stBlock.
1499
0eb22669
PS
1500Tue Jul 27 12:36:49 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1501
1502 * breakpoint.c (breakpoint_1): Walk the breakpoint chain to decide if
1503 we have breakpoints or watchpoints as we might have to ignore internal
1504 breakpoints.
1505
1506 Fix gdb core dumps after `file newfile' commands.
1507 * symtab.h, symfile.c (clear_symtab_users): New routine which
1508 unconditionally clears symtab users. clear_symtab_users_once
1509 commented out as it was a noop anyway.
1510 * objfiles.c (free_objfile): Don't call clear_symtab_users_once.
1511 * objfiles.c (free_all_objfiles), symfile.c (new_symfile_objfile),
1512 xcoffexec.c (exec_close): Call clear_symtab_users if necessary.
1513 * symfile.c (syms_from_objfile): Install cleanups for errors during
1514 symbol reading.
1515 * coffread.c, dbxread.c, mipsread.c, xcoffread.c (*_symfile_read):
1516 Lint cleanup code, call do_cleanups explicitly.
1517 * symfile.c (symbol_file_add): Call new_symfile_objfile and
1518 reinit_frame_cache _after_ the new symbols are read in.
1519
b31ca3de
PS
1520Tue Jul 27 01:57:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1521
1522 * mipsread.c (parse_type): Do not set tag name for compiler
1523 generated fake tag names.
1524
333355f3
RP
1525Mon Jul 26 17:31:49 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1526
1527 * config/m88k/m88k.mt (TDEPFILES): add exec.o.
1528
91ab5674
JK
1529Mon Jul 26 13:17:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1530
b8ec9a79
JK
1531 * hppa-tdep.c: Remove all uses of use_unwind and `set use_unwind'
1532 command. Now we use unwind info by default if we can find it.
1533
1534 * config/sparc: Move VARIABLES_INSIDE_BLOCK and SUN_FIXED_LBRAC_BUG
1535 to tm-sparc.h so they are shared between Solaris and SunOS4.
1536 * dbxread.c (process_one_symbol): Deal with SunOS4 acc N_STSYM and
1537 N_GSYM functions.
1538
41c86b69
JK
1539 * config/pa/tm-hppa.h (REGISTER_NAMES): Use "fr" rather than "fp"
1540 for floating point registers.
1541
1c8961dd
JK
1542 * mipsread.c (parse_symbol): Put stStaticProc symbols in minimal
1543 symbols as mst_file_text.
1544
08ecd8f3
JK
1545 * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
1546
230a3ab0
JK
1547 * stabsread.c (rs6000_builtin_type): Make logical types be
1548 TYPE_CODE_BOOL.
91ab5674 1549
d889f6b7
JK
1550Sun Jul 25 23:41:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1551
1552 * breakpoint.{c,h} (struct breakpoint): Replace symtab field with
1553 source_file field.
1554
9aa3aa8c
JK
1555Fri Jul 23 09:57:25 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1556
d889f6b7
JK
1557 * remote.c: Don't error() on errors xferring memory.
1558 * target.h: Clean up comments about *xfer_memory.
1559
f47e56c9
JK
1560 * exec.c, corelow.c (target_ops struct): Don't allow
1561 {insert,remove}_breakpoints to be defaulted to
1562 memory_{insert_remove}_breakpoint.
1563
9aa3aa8c
JK
1564 * demangle.c: Make it so `help set dem' tells you how to get the
1565 list of demangling styles.
1566
f261333b
JK
1567Thu Jul 22 15:41:09 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1568
1569 * Makefile.in: Use REMOTE_O macro not remote.o.
1570 * config/i960/{nindy960,vxworks960}: Don't use remote.o.
1571
073c6b2b
ILT
1572Thu Jul 22 12:43:25 1993 Ian Lance Taylor (ian@cygnus.com)
1573
1574 * coredep.c: If NEED_SYS_CORE_H defined, include <sys/core.h>
1575 (can't include it in nm-*.h file because it causes conflicts with
1576 a.out symbol definitions).
1577 * hp300ux-nat.c (fetch_core_registers): Commented out; obsolete.
1578 * config/m68k/hp300hpux.mh (NATDEPFILES): Added coredep.o and
1579 corelow.o.
1580 * config/m68k/nm-hp300hpux.h (NEED_SYS_CORE_H): Defined.
1581 (REGISTER_U_ADDR): Defined.
1582 * config/m68k/xm-hp300hpux.h (HAVE_TERMIOS): Define instead of
1583 HAVE_TERMIO.
1584 * config/pa/xm-hppah.h: Likewise.
1585
22b4b223
JK
1586Wed Jul 21 11:37:30 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1587
70c7ec2e
JK
1588 * mipsread.c (parse_symbol): when stTypedef and friends occur within
1589 an stBlock, skip over the fields of the inner one.
1590
1591 * mips-tdep.c (init_extra_frame_info): If in lenient prologue, call
1592 heuristic_proc_desc rather than just assuming registers not saved.
1593
51b4195f
JK
1594 * Makefile.in (regex.o): Add dependency.
1595
72943ad0
JK
1596 * hppa{b,h}-nat.c: Warning, not error, if can't access registers.
1597
22b4b223
JK
1598 * config/pa/hppa{b,h}.h: Define ATTACH_DETACH.
1599
66fe7416
PS
1600Wed Jul 21 03:07:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1601
1602 * config/mips/xm-makeva.h: New file implements va_list alignment
1603 restrictions for mips hosts.
1604 * config/mips/{xm-irix3.h, xm-mips.h, xm-news-mips.h, xm-riscos.h}:
1605 Use it.
1606
579f0258
PS
1607Wed Jul 21 00:11:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1608
66fe7416
PS
1609 * mips-tdep.c (init_extra_frame_info): Do not check for
1610 mips_in_lenient_prologue if it is a dummy frame.
579f0258
PS
1611 * mipsread.c (fixup_sigtramp): Initialize pdr.adr, it is used by
1612 mips_in_lenient_prologue.
1613
f29b5686
JK
1614Tue Jul 20 12:53:47 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1615
23d35572
JK
1616 * mips-tdep.c (heuristic_proc_start): First time we print the
1617 warning, elaborate.
1618 (_initialize_mips_tdep): Improve docstring for `set heur'.
1619
726d33a4
JK
1620 * config/rs6000/tm-rs6000.h: Remove call to insert_step_breakpoint.
1621
f29b5686
JK
1622 * symtab.c (find_line_symtab): New function, to deal with multiple
1623 symtabs with the same name.
1624 (find_line_pc{,_range}): Use it.
1625 (find_pc_symtab): Add comment about overlapping symtabs.
1626
db85f523
FF
1627Mon Jul 19 21:29:14 1993 Fred Fish (fnf@deneb.cygnus.com)
1628
1629 * Makefile.in (SFILES): Add nlmread.c.
1630 * Makefile.in (OBS): Add nlmread.o.
1631 * Makefile.in (nlmread.o): Add new target.
1632 * configure.in (i[34]86-*-netware): New configuration.
1633 * nlmread.c, config/i386/{i386nw.mt, tm-i386nw.h}: New files
1634 for NLM/NetWare support.
1635
dc34b11d
JK
1636Mon Jul 19 11:48:57 1993 Jim Kingdon (kingdon@deneb.cygnus.com)
1637
164207ca
JK
1638 * symtab.h (enum minimal_symbol_type): Add mst_file_*.
1639 * partial-stab.h [DBXREAD_ONLY]: Record statics in miminal symbols.
1640 * dbxread.c (record_minimal_symbol): Deal with statics.
1641 * minsyms.c (lookup_minimal_symbol): Prefer externals to statics.
1642
3d7d2980
JK
1643 * config/i386/xm-i386sco.h: Define HAVE_TERMIOS.
1644
1cd080b5
JK
1645 * printcmd.c, config/pa/xm-pa.h, config/alpha/xm-alpha.h: Make it so
1646 arg_bytes field of makeva_list is always aligned.
1647 * config/pa/xm-pa.h: Make arglist_address a char *.
1648
dc34b11d
JK
1649 * ser-unix.c: Don't try to use job control with termio.
1650
6f87ec4a
PS
1651Sun Jul 18 23:11:28 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1652 and Jim Kingdon (kingdon@cygnus.com)
1653
1654 Make breakpoint_re_set_one work with overloaded member functions,
1655 `b 123' and `b foo' if foo is a static function.
1656 * symtab.c (decode_line_1, decode_line_2): New argument `canonical'
1657 to return canonical line specs if requested by the caller.
1658 * breakpoint.c, source.c, symtab.c, symtab.h: Change prototypes and
1659 callers accordingly.
1660 * symtab.c (build_canonical_line_spec): New helper function which
1661 constructs the canonical line spec.
1662 * breakpoint.c (break_command_1): Use canonical line spec instead
1663 of command string as addr_string if necessary.
1664 * source.c (line_info): Fix storage leak.
1665
fc39be58
JK
1666Sun Jul 18 15:22:45 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
1667
56eec3c7
JK
1668 * infptrace.c: Split out define of PT_KILL; Sequent defines PT_KILL
1669 but not the others.
1670 * symm-tdep.c: Remove exec_file_command.
1671 [_SEQUENT_] (ptx_coff_regno_to_gdb, register_addr): New functions.
1672 A few miscellaneous cleanups.
1673 * symm-nat.c: Renamed from symm-xdep.c.
29b8ed0a 1674 * All symmetry dependent files: Many changes.
56eec3c7 1675
ee5fb959
JK
1676 * mips-tdep.c (mips_skip_prologue): New argument lenient.
1677 Use read_memory_nobpt.
1678 (is_delayed, mips_in_lenient_prologue): New functions.
1679 (init_extra_frame_info): If in the prologue, don't use saved registers.
1680 * config/mips/tm-mips.h: Declare mips_skip_prologue.
1681
fc39be58
JK
1682 * partial-stab.h (N_SO): Add the text offset to valu before, not after,
1683 passing it to END_PSYMTAB.
1684
ac82e9a5
JK
1685Fri Jul 16 18:48:52 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
1686
1687 * symtab.c (find_pc_symtab): Call warning, not printf directly.
1688
1689 * solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
1690
2e9e6869
ILT
1691Fri Jul 16 09:56:42 1993 Ian Lance Taylor (ian@cygnus.com)
1692
1693 * mipsread.c: No longer need to undefine ZMAGIC.
1694
f75906eb
ILT
1695Thu Jul 15 18:03:37 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1696
1697 * m88k-pinsn.c: Moved code into opcodes/m88k-dis.c.
1698 (print_insn): Now just calls print_insn_m88k.
1699
ccdc578f
DE
1700Thu Jul 15 14:54:05 1993 Doug Evans (dje@canuck.cygnus.com)
1701
1702 * h8300-tdep.c (examine_prologue): Make prototype match definition.
1703
f09aae84
JK
1704Thu Jul 15 08:34:49 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1705
5b336d29
JK
1706 * NEWS: Mention that remote.c now has a `load' operation.
1707
5ac7f56e
JK
1708 * hppa-tdep.c (pc_in_linker_stub): New function.
1709 (find_proc_framesize): Return 0 for linker stubs.
1710 (rp_saved): Tell the caller where rp is saved.
1711 (frame_chain_valid): Return 1 for linker stubs.
1712 (frame_saved_pc): Use return value from rp_saved.
1713
f09aae84
JK
1714 * stack.c (print_frame_info): When checking PC_IN_CALL_DUMMY,
1715 pass the sp relative to the frame in question, not the sp in the
1716 innermost frame.
1717
1ab786f4
JK
1718Wed Jul 14 17:37:03 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1719
b5d4d6d7
JK
1720 * mipsread.c (parse_procedure): Take as argument the symtab to look
1721 the name up in. Look it up with mylookup_symbol, not lookup_symbol.
1722 (psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
9adb88b7
JK
1723
1724 * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
1725 already checked the first characters.
1726
1ab786f4
JK
1727 Changes from Jeffrey Law:
1728 * printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
1729 machine dependent fields in the makeva_list structure.
1730 (makeva_size): Allocate extra space to handle gaps made by
1731 alignment restrictions.
19318471 1732 * config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
1ab786f4
JK
1733 (MAKEVA_START): Initialize arglist_address field.
1734 (MAKEVA_ARG): Always store arguments on natural alignment
1735 boundaries. Set arglist_address to the address right after
1736 the args.
1737 (MAKEVA_END): Simply return the value stored in arglist_address.
1738
968dca8d
JK
1739Wed Jul 14 13:51:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1740
bf5b632d
JK
1741 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
1742 address, not addr.
1743
1744 * hppah-nat.c (store_inferior_registers): Don't print i in cases
1745 where we aren't using it.
1746
968dca8d
JK
1747 * a29k-tdep.c (get_saved_register): Fix typo.
1748
bd96254f
DE
1749Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
1750
1751 * configure.in: Recognize h8300h (variant of h8300).
1752
1753start-sanitize-v9
1754Wed Jul 14 09:45:52 1993 Doug Evans (dje@canuck.cygnus.com)
1755
1756 * configure.in: Recognize sparc64-*-*.
1757end-sanitize-v9
1758
5af4f5f6
JK
1759Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1760
1761 * stabsread.c (define_symbol): Make the caddr_t hack apply to `function
1762 returning foo' as well as `pointer to foo'.
1763
1764 * remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
1765 * config/m68k/tm-m68k.h: Define it.
1766 * mem-break.c, breakpoint.c: Improve comments.
1767
1768Tue Jul 13 13:35:31 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
1769
1770 * config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
1771 * config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
1772
524895ab
DE
1773Tue Jul 13 11:50:38 1993 Doug Evans (dje@canuck.cygnus.com)
1774
1775 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
1776 Make prototype match definition.
1777
98d82489
FF
1778Tue Jul 13 11:15:15 1993 Fred Fish (fnf@cygnus.com)
1779
8bdc1fd0
FF
1780 * elfread.c: Remove notice about file still being under
1781 construction.
98d82489
FF
1782 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'.
1783
85494909
JK
1784Mon Jul 12 17:46:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1785
1786 * a29k-tdep.c (read_register_stack): Make val static.
1787
e1f63216
DE
1788Mon Jul 12 14:10:48 1993 Doug Evans (dje@canuck.cygnus.com)
1789
1790 * config/h8300/tm-h8300.h (REGISTER_CONVERTIBLE): Change value to 0.
1791 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to
1792 usual spot.
1793
eabbe766
JK
1794Mon Jul 12 11:29:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1795
1326dace
JK
1796 * c-valprint.c (c_val_print): Fix thinko with unspecified length
1797 arrays.
1798
eabbe766
JK
1799 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
1800 use it.
1801
f6365bd6
JK
1802Sun Jul 11 19:35:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1803
f1ed4330
JK
1804 * symtab.c (decode_line_1): Use end of block to figure out whether
1805 val.end is in the same function, not minimal symbols.
1806
1807 * source.c (line_info): Add a few more wrap_here's.
1808
1809 * i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
1810 don't make assumptions about sizes of host data types.
1811
1812 * blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
1813 * infrun.c, breakpoint.c, printcmd.c: Change callers.
1814 * printcmd.c (containing_function_bounds): Remove.
1815 * printcmd.c (disassemble_command): Use find_pc_partial_function,
1816 not containing_function_bounds.
1817 * infcmd.c (step_1): Use find_pc_partial_function rather than
1818 trying to roll our own. Move check for a pc between SIGTRAMP_START and
1819 SIGTRAMP_END in find_pc_partial_function, not step_1.
1820
f6365bd6
JK
1821 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
1822 Keep unswapped value in array of char, not REGISTER_TYPE.
1823 Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
1824 (sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
1825 sizeof (CORE_ADDR).
1826
0a8f1742
JK
1827Thu Jul 1 15:50:05 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
1828
1829 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
1830 * config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
1831 * config/m68k/dpx2.m{h,t}: New files.
1832
53adb297
DE
1833Sun Jul 11 12:32:08 1993 Doug Evans (dje@canuck.cygnus.com)
1834
1835 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
1836 more parens around macro arg.
1837
fee44494
JK
1838Sat Jul 10 09:54:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1839
fe675038
JK
1840 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
1841 step_resume_break_address with step_resume_breakpoint (now local
1842 to wait_for_inferior).
1843 ({insert,remove}_step_breakpoint): Remove.
1844 (wait_for_inferior): Set step resume break with
1845 set_momentary_breakpoint. Test hitting it with bpstat_stop_status
1846 and bpstat_what (stop_step_resume_break removed).
1847 * breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
1848 which includes previous return value as main_action, and a step_resume
1849 bit.
1850 * breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
1851 there is another breakpoint there, insert it.
1852 * infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
1853 a few more gotos.
1854 Various: Clean up and add comments.
1855
fee44494
JK
1856 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
1857 for Wed Nov 13 16:45:13 1991).
1858
4d50f90a
JK
1859Fri Jul 9 12:36:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1860
58e49e21
JK
1861 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
1862
1863 * h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
1864 not short *.
1865
34df79fc
JK
1866 * findvar.c, defs.h
1867 ({extract,store}_{signed_integer,unsigned_integer,address}):
1868 New routines to replace SWAP_TARGET_AND_HOST.
1869 All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1870
271d7387
JK
1871 * config/sparc/tm-sparc.h: Add comment suggesting that removing
1872 ins and locals from the registers array might clean things up.
1873
19bdd57f
JK
1874 * utils.c: Clean up comments about wrap buffer and wrap_here.
1875 * printcmd.c (printf_command): Call wrap_here before vprintf.
1876
28d14fd8
JK
1877 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
1878 Patch from ptf@delcam.co.uk (Paul Flinders).
1879
4d50f90a
JK
1880 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins.
1881
2fcdae93
PS
1882Fri Jul 9 09:47:02 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1883
1884 * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
1885 * mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
1886 is at the start of the dummy code.
1887
47976ba7
JK
1888Thu Jul 8 14:48:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1889
dd99f8e4
JK
1890 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
1891 stuff, just write the sp and fp.
1892 (sparc_pop_frame): Skip the do_restore_insn; we already restore
1893 the sp with the other out registers.
1894
558f4183
JK
1895 * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
1896 arguments.
1897
47976ba7
JK
1898 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
1899
9fc8002c
DE
1900start-sanitize-v9
1901Thu Jul 8 14:47:00 1993 Doug Evans (dje@canuck.cygnus.com)
1902
1903 * sparc-tdep.c (sparc_frame_chain): Handle sizeof (CORE_ADDR)
1904 != sizeof (REGISTER_TYPE).
1905 (frame_saved_pc): Ditto.
1906end-sanitize-v9
1907
be474657
DE
1908Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com)
1909
6de931d2 1910 * config/h8300/tm-h8300.h: (REGISTER_TYPES): Adjust for h8/300h.
bc4937f3
DE
1911 (REGISTER_RAW_SIZE): Ditto.
1912 (REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs
1913 on the h8/300h (ints may still be 16 bits).
1914 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
1915 EXTRACT_STRUCT_VALUE_ADDRESS): Add FIXME's for h8/300h. Some
1916 thought needed here.
1917
d0414a11
DE
1918 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
1919 (examine_prologue): reg_save_depth is 4 if h8/300h.
1920
be474657
DE
1921 * findvar.c (read_register): Provide some support for 64 bit regs.
1922 (write_register): Ditto.
1923
23a8e291
JK
1924Wed Jul 7 14:30:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1925
3206db62
JK
1926 * config/mips/nm-riscos.h: machine/machparam.h is always the right
1927 place to look for BSD43_NBPG, not machine/vmparam.h
1928
54023465
JK
1929 * infcmd.c (run_stack_dummy): New argument name.
1930 Change error message in (another) attempt to make it comprehensible.
1931 * valops.c (call_function_by_hand): Pass name to run_stack_dummy.
1932 * symtab.h: Declare demangle and asm_demangle since macros use them.
1933
e860d210
JK
1934 * eval.c (evaluate_subexp): Add comment about calling a member
1935 function of a variable in a register.
1936
d3dd6800
JK
1937 * expression.h: Clean up comment about string in STRUCT_STRUCT etc.
1938
23a8e291
JK
1939 * config/{rs6000/tm-rs6000.h,sparc/tm-sparc.h,pyr/tm-pyr.h},
1940 inferior.h (PC_IN_CALL_DUMMY) [ON_STACK]: Add comments about stack
1941 frame tops and bottoms.
1942
1943 * frame.h, blockframe.c, stack.c, a29k-tdep.c,
1944 config/gould/tmp-{pn,np1}.h,
1945 config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
1946 next_frame from struct frame_info. It has no purpose beyond
1947 ->next->frame and is an artifact from GDB 2.8.
1948
de6a2704
JK
1949Tue Jul 6 11:51:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1950
c2153bf2
JK
1951 * Makefile.in: Remove gdb before creating a new one.
1952 Update init.c atomically.
1953
de6a2704
JK
1954 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
1955 (ALLCONFIG): Add config/alpha/alpha-osf1.mh.
1956
1957 * infcmd.c (_initialize_infcmd): In docstring for "continue",
1958 describe argument as setting ignore count.
1959
b1d0b161
DE
1960Sun Jul 4 15:04:47 1993 Doug Evans (dje@cygnus.com)
1961
1962 * h8300-tdep.c (examine_prologue): Fix call to
1963 read_memory_unsigned_integer.
1964
fdf138bb
JK
1965Fri Jul 2 18:22:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1966
0c5af733
JK
1967 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
1968 rather than including xm-bigmips.h.
1969
1500864f
JK
1970 * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
1971 default cases.
1972
fdf138bb
JK
1973 * Makefile.in (distclean): Remove y.tab.h.
1974
fdf138bb
JK
1975Fri Jul 2 14:55:48 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1976
1977 * exec.c (exec_file_command): Remove Mar 28 hack as BFD handles
1978 file updates properly now.
1979 * mipsread.c (mips_coff_new_init): Force reevaluation of sigtramp
1980 addresses if switching to a new symbol file.
1981 * dbxread.c (process_one_symbol): Avoid dereferencing NULL
1982 symbols that might be returned from define_symbol.
1983
85e07872
SC
1984Fri Jul 2 13:33:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1985
1986 New target macros for getting at the pc, sp and fp.
1987 * infcmd.c (read_pc, write_pc): Modify to use new macros.
1988 (read_sp, write_sp, read_fp, write_fp): New functions.
1500864f
JK
1989 * blockframe.c (reinit_frame_cache, get_prev_frame_info):
1990 Use new functions.
85e07872
SC
1991 * breakpoint.c (bpstat_alloc): ditto.
1992 * infrun.c (wait_for_inferior): ditto.
1993 * stack.c (print_frame_info): ditto.
1994 * valops (call_function_by_hand): ditto.
1995 * corelow.c (core_open): ditto.
1996 * h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
1997 target_write_pc, target_read_fp, target_write_fp): New functions.
1998 * inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
1999
2000 * config/alpha/xm-alpha.h: Add MAKEVA_END.
2001 * config/h8500/tm-h8500.h: Define new macros.
2002
d8a80e6d
ILT
2003Fri Jul 2 13:51:04 1993 Ian Lance Taylor (ian@cygnus.com)
2004
2005 * configure.in (mipos-*-riscos*): New host and target; use riscos.
2006 * config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
2007 vmparam.h, include machparam.h.
2008 (KERNEL_U_ADDR): Define to be BSD43_UADDR.
2009
75fa3e0f
JK
2010Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2011
c0bca41c
JK
2012 * c-exp.y (yylex): Give error if unmatched single quote.
2013
2014 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
2015
75fa3e0f
JK
2016 * Remove unused STACK_END_ADDR in the following files (in other
2017 files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
2018 tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
2019 tm-hp300hpux.h, tm-isi.h.
2020
a77a5278
JK
2021Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com)
2022
75fa3e0f
JK
2023 * config/mips/nm-riscos.h: Define NBPG and UPAGES.
2024 config/mips/xm-riscos.h: Include <sys/types.h>.
2025
2026 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
2027 not an initializer, to copy the structure.
2028
2029 * gdbtypes.h (struct type): Add field tag_name.
2030 * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
2031 Use it.
2032 * {coff,dwarf,mips,stabs}read.c: Set it.
2033
1f72a94a
JK
2034 * xm-sysv4.h: Undefine HAVE_TERMIO.
2035
0abbc771
JK
2036 * config/mips/nm-riscos.h: Remove unmatched #endif.
2037 Define FETCH_INFERIOR_REGISTERS.
2038 * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
2039 Fix misspelling of NAT_FILE.
3762d624
JK
2040 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
2041 we can still process "modern" core files.
0abbc771 2042
a77a5278
JK
2043 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
2044 print c_line.
2045 (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
2046 is defined; don't care what it is defined to.
2047
95f2d253
JK
2048Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2049
2050 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
2051
c2e247c4
JK
2052Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2053
2054 * inftarg.c: Remove unused include of terminal.h.
2055 * signals.h: Don't undefine signals anymore.
2056 * main.c: Use job_control from serial.h.
2057 * fork-child.c (fork_inferior): Use gdb_setpgid.
2058 * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
2059 * utils.c (quit): Use current_target->to_terminal_ours to figure
2060 out whether we care about lack of job control, rather than __GO32__.
2061 * utils.c: Include serial.h not terminal.h
2062 (quit): Use job_control not TIOCGPGRP.
2063 * terminal.h: Don't undefine TIOCGPGRP.
2064 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
2065 * utils.c (quit): Use it.
2066 * serial.h: Add SERIAL_UN_FDOPEN.
2067 * utils.c (quit): Use it.
2068 * ser-unix.c: Add process group to ttystate.
2069 [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
2070 * inflow.c: Include serial.h not terminal.h.
2071 Use serial.h stuff to replace most of the maze of #ifdef's.
2072 * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
2073 * serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
2074 * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
2075 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
2076 Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
2077 SERIAL_SET_PROCESS_GROUP.
2078 * inflow.c: Use them.
2079 * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
2080 Define HAVE_TERMIOS.
2081 * Various: Remove all use of TIOC*_BROKEN.
2082
eed6de01
PS
2083Wed Jun 30 12:20:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2084
2085 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define.
2086
2087Tue Jun 29 13:44:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2088
2089 * target.h (target_detach): Turn macro into function.
2090 * target.c (target_detach): Define it, do deferred register stores
2091 before calling the real target function.
2092
76a1bd4c
PS
2093Tue Jun 29 13:15:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2094 and Jim Kingdon (kingdon@cygnus.com)
2095
2096 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
2097 a function to avoid printing of function arguments in wrong order
2098 due to sorting.
2099 * symfile.c (compare_symbols): Remove code for sorting arguments
2100 as blocks containing arguments are no longer sorted.
2101 * symtab.c (lookup_block_symbol): Update comment accordingly.
2102
a8c25621
JK
2103Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2104
64b09778
JK
2105 * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
2106 (REG_STRUCT_HAS_ADDR): Add comment.
2107
a8c25621
JK
2108 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
2109 to check whether there is line number information.
2110
77641260
DZ
2111Tue Jun 29 08:29:17 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2112
fe76016a
DZ
2113 * remote-udi.c: Fix docstring so that it compiles.
2114
a8c25621
JK
2115 * remote-mips.c, remote-nindy.c: move bfd.h before symfile.h
2116 (for file_ptr).
77641260 2117
d63aae7f
JK
2118Tue Jun 29 09:11:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2119
fd09c963
JK
2120 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
2121 don't expect it, change it to LOC_STATIC so at least we don't coredump.
2122
2123 * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
2124
a8c25621 2125 * symtab.h: Add comments about line numbers.
d63aae7f
JK
2126 * source.c (identify_source_line): Fix off by one bug with line.
2127
6b9561a4
JK
2128Mon Jun 28 10:09:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2129
c702007b
JK
2130 * printcmd.c (makeva*): New interface, for making a va_list.
2131 (printf_command): Use it.
2132 * config/m88k/xm-delta88.h: Remove VPRINTF define, not needed.
2133 * config/pa/xm-pa.h: New file.
2134 * config/pa/xm-hppa{b,h}.h: Include it.
2135
6b9561a4
JK
2136 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment.
2137
be2860fb
PS
2138Sun Jun 27 08:54:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2139
2140 * valprint.c (val_print_type_code_int): Fix off by one error with
2141 eliminating leading zeroes for large little endian integers.
2142
ee0d1b65
JK
2143Sun Jun 27 08:58:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2144
42280556
JK
2145 * config/mips/riscos.mh (CC): Use -systype sysv.
2146
68d2db62
JK
2147 * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
2148
ee0d1b65
JK
2149 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
2150
751b4006
JK
2151Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2152
2153 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
2154 CALL_DUMMY between different 68k machines.
2155
ea7f0a9f
SG
2156Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
2157
2158 * gdbserver/Makefile.in: Add dependancies on server.h.
2159 * gdbserver/remote-gutils.c: Remove lots of unused functions and
2160 variables.
2161 * gdbserver/remote-inflow.c: Remove lots of unused variables and
2162 #includes. Also, use PTRACE_* symbols instead of constants.
2163 (mywait): Surround calls to wait() with enable/disable_async_io()
2164 so that we can be interrupted from GDB while waiting for the
2165 child. Also, handle child exit more gracefully.
2166 * gdbserver/remote-server.c: Remove lots of unused variables.
2167 Move all extern defs into server.h. Redo main loop so that
2168 failure from getpkt() causes communications to be re-established.
2169 Fix 'k' command so that it restarts the child.
2170 * gdbserver/remote-utils.c: Remove lots of unloved vars and
2171 subrs. Move many extern decls into server.h. (remote_open): For
2172 tcp, seperate usage of proto fd from connected fd. Close proto
2173 fd after getting connection. (putpkt/getpkt): Pay attention to
2174 errors when reading/writing. Report these to the caller. New
2175 routines input_interrupt/enable_async_io/disable_async_io to make
2176 it possible to get an I/O interrupt when data arrives from the
2177 comm link.
2178 * serial.h: New file to contain common defs for all remote files.
2179
a037b21e
SG
2180Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
2181
2182 * remote.c: Add arg names to prototypes, in a modest effort at
2183 clarification. Also add prototypes for some new functions.
2184 * (remote_wait): Better error reporting for 'T' responses.
2185 * ser-go32.c (strncasecmp): Make str1 & str2 be const.
2186 * (dos_async_init): Make usage message reflect requested port #.
2187 * ser-tcp.c (tcp_open): Terminate hostname properly to prevent
2188 random hostname lookup failures. Add nicer message for unknown
2189 host error. (wait_for): Wake up in case of exceptions. Also,
2190 restart select() if we got EINTR.
2191 * ser-unix.c (wait_for): Restart select() if we got EINTR.
2192 * serial.c: (serial_close): Clean up code.
2193
ea7f0a9f
SG
2194Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2195
2196 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
2197 CALL_DUMMY between different 68k machines.
2198
a38b1233
JK
2199Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2200
f3fe62b1
JK
2201 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
2202 Make comment explaining this comprehensible.
2203 (TAGFILES): Include ALLDEPFILES.
2204 (ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
2205 29k-share/udi/udi.
2206 (update-alldeps): Remove; obsolete.
2207
e50ebec8
JK
2208 * remote.c: Move comments regarding packets to top of file with the
2209 rest of the protocol comments.
2210 Fix incorrect description of 'T' response.
2211
3576a412
JK
2212 * README (Reporting Bugs): Refer people to the GDB manual.
2213
7e71985c
JK
2214 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
2215 * stabsread.c: Type -16 is 4 bytes.
2216
a38b1233
JK
2217 * remote-udi.c: Improve docstring.
2218
872dd3fe
FF
2219Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com)
2220
a38b1233
JK
2221 * elfread.c (elf_symfile_read): Call bfd_elf_find_section, not
2222 bfd_elf32_find_section, to track bfd changes.
872dd3fe 2223
f75ad5da
JK
2224Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2225
2226 * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define.
ef3986bb 2227 * config/mips/xm-riscos.h: Define USG.
f75ad5da 2228
a32ebcfd
JK
2229Thu Jun 24 14:52:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2230
2231 * main.c (filename_completer): Don't complete to files ending in ~.
2232
2233 * NEWS: Mention filename completion and "info line" enhancements.
2234
2235 * main.c (symbol_completion_function): On "info t foo", return NULL,
2236 don't error().
2237
2238 * main.c (symbol_completion_function): Don't use readline word
2239 breaking. Use new calling convention for c->completer and
2240 complete_on_cmdlist.
2241 * command.h (struct command): Change arguments; now the text passed
2242 to completer does not have any word breaking done. New arg word.
2243 * symtab.{c,h} (make_symbol_completion_list): Do word breaking. Take
2244 word argument.
2245 * {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
2246 * command.{c,h} (complete_on_cmdlist): Take word argument.
2247
2248 * command.c (lookup_cmd_1): Doc fix.
2249
b8774958
RP
2250Thu Jun 24 13:26:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2251
2252 * Makefile.in (OP_INCLUDE): define.
2253 (OPCODE_CFLAGS): use OP_INCLUDE.
2254
2255 * config/i386/ncr3000.mh, config/i386/i386v4.mh,
2256 config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
2257 config/m68k/amix.mh, config/mips/irix[34].mh,
2258 config/m88k/delta88.mh, config/sparc/sun4sol2.mh (ALLOCA,
2259 ALLOCA1): macros removed.
2260
2261 * config/mips/decstation.mh, config/rs6000/rs6000.mh
2262 (MMALLOC_LIB): renamed to MMALLOC.
2263
4ae030b9
JK
2264Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2265
2266 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
2267 * dbxread.c: Change comment regarding acc.
2268
c2df19bd
RP
2269Wed Jun 23 15:04:54 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2270
7ae7b919
RP
2271 Makefile overhaul dropping autodepend features.
2272 * Makefile.in: many comment changes. forced consistent use of $()
2273 for makefile variables references. dropped leading ./ in file
2274 references. Drop $(srcdir)/ prefix on all dependencies.
2275 Inserted contents of alldeps.mak and depend.
b8774958 2276 (INCLUDE_CFLAGS): defined as new macro for getting libiberty's
7ae7b919
RP
2277 include directory into the compilation line.
2278 (GDB_CFLAGS): new macro to take up the semantic previously held
2279 by INCLUDE_CFLAGS.
2280 (LIBIBERTY): dropped ancient subdir macro. I last removed this
2281 macro in feb of '92. How does it keep coming back?
2282 (MMALLOC_LIB): renamed to MMALLOC.
2283 (BFD_SRC_DIR): renamed to BFD_SRC.
2284 (BFD_OBJ_DIR): renamed to BFD_DIR.
2285 (BFD_LIB): renamed to BFD.
2286 (BFD_INCLUDES): renamed to BFD_CFLAGS.
2287 (READLINE_DIR): now represents object directory.
2288 (RL_LIB): renamed to READLINE.
2289 (READLINE_SRC, READLINE_CFLAGS, OPCODES, OPCODES_CFLAGS): new
2290 macros.
2291 (INTERNAL_CFLAGS): added GDB_CFLAGS, OPCODES_CFLAGS,
2292 READLINE_CFLAGS, BFD_CFLAGS. Dropped USER_CFLAGS.
2293 (LDFLAGS): removed default assignment.
2294 (TEXIDIR, INCLUDE_DEP, MMALLOC_DIR, MMALLOC_DEP, BFD_DEP,
2295 READLINE_DEP, LIBIBERTY_DIR, TESTS, depend, STAGESTUFF): unused, so removed.
2296 (ALLOCA1, ALLOCA): removed all references. alloca is now in
2297 libiberty.
2298 (VERSION): unilaterally and arbitrarily bumped to 4.9.3.
2299 (SFILES, NONSRC, HFILES, ALLDEPFILES, ALLPARAM, ALLCONFIG):
2300 removed all $(srcdir) prefixes.
2301 (getopt_h, ieee-float_h, bfd_h, wait_h, dis-asm_h): new macros
2302 for potential dependencies. commented out by default.
2303 (readline_headers, udiheaders): convenient abbreviations.
2304 (gdbcore_h, frame_h, symtab_h, gdbtypes_h, expression_h,
2305 value_h, breakpoint_h, command_h, gdbcmd_h, defs_h, inferior_h):
2306 new macros used for header file dependencies.
2307 (install-info, clean-info): collapse into the info rule.
2308 (install): now depends on all.
2309 (install-only): new target for installing without depending on
2310 all.
2311 (uninstall): new target.
2312 (config-check, config-check-hosts, config-check-targets): added
2313 fixme comments.
2314 (ch-exp.tab.c, m2-exp.tab.c): added artificial dependencies in
2315 order to force parallel makes into keeping these rules separate.
2316 * configure.in: omit cat'ing depend file onto generated Makefile.
2317 * alldeps.mak, depend: removed.
2318
baa38372
RP
2319 * inferior.h: remove redundant include of symtab.h which is
2320 included in value.h via breakpoint.h.
2321
fbca7519
RP
2322 * alloca.c: removed. alloca is now in libiberty.
2323
88607839
RP
2324 * config/m88k/delta88.mh, config/ns32k/merlin.mh (M_UNINSTALL):
2325 new macro to undo what M_INSTALL does.
c2df19bd 2326
29f3879c
JK
2327Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2328
4ae030b9
JK
2329 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
2330 of gdb-sh.
6ffbfcc2 2331
ec06a3cb
JK
2332 * dbxread.c (copy_pending): Change name and function of begi argument
2333 to endi, since that is what the caller needs.
2334
853a233b
JK
2335 * Makefile.in (TAGFILES): Don't include YYFILES.
2336
2337 * Makefile.in (HFILES): Include monitor.h.
2338
2339 * Makefile.in: Include text that used to be in alldeps.mak.
2340 Remove config/mips/{bigmips.mh,xm-bigmips} from it.
2341 * Makefile.in, configure.in: Remove all traces of alldeps.mak.
2342
29f3879c
JK
2343 * main.c (main): Print help message on stdout not stderr
2344 per standards.texi.
2345 New option --version per standards.texi.
2346 In help message, show long options with "--" not "-".
2347 Don't try to print help message or version until after we have
2348 called initialize_all_files.
2349
9ddfb9eb
JK
2350Tue Jun 22 03:15:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2351
15d4eb21
JK
2352 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
2353 (solib_add): Call special_symbol_handling once, not once per library.
2354
59ba57da
JK
2355 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
2356 is SIG_DFL.
2357
2358 * procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
2359 systems, not just Solaris.
2360
9ddfb9eb
JK
2361 * stabsread.c: Include <ctype.h>.
2362
3768398d
JK
2363Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
2364
2365 * fork-child.c (fork_inferior): Quote exec_file so it can contain
2366 funky characters.
2367
68eabdd3
FF
2368Mon Jun 21 16:56:47 1993 Fred Fish (fnf@cygnus.com)
2369
2370 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
2371 bfd.h is included by target.h, which most of gdb includes.
2372 * depend: Hand remove BFD_INCLUDES from ${CC} lines, now that
2373 it's in INCLUDE_CFLAGS.
2374
c96d68c2
JK
2375Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
2376
2c7ab4ca
JK
2377 * config/i386/*aix*, i386aix-nat.c: New files.
2378 * configure.in: Use them.
c96d68c2 2379 * alldeps.mak: List them.
2c7ab4ca
JK
2380 * coffread.c (decode_base_type): Deal with anonymous enum type.
2381 * i387-tdep.c (print_387_status_word): Add comment re "top".
2382 * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
2383 * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
2384 only if not defined by a header file.
2385 * mipsread.c: Don't define L_SET or L_INCR.
c96d68c2 2386
200a3470
FF
2387Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
2388
2389 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
2390 * depend: Hand updated to match.
2391
089dc220
JK
2392Sun Jun 20 13:11:11 1993 Jim Kingdon (kingdon@cygnus.com)
2393
2394 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
2395 (read_cpp_abbrev): Don't complain specially for $_. Also return 0 if
2396 we don't recognize the abbrev.
2397
2a4e8cc3
JK
2398Sun Jun 20 00:24:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2399
2400 * solib.c (solib_add_common_symbols): Add comment about performance.
2401
e64ec645
JK
2402Fri Jun 18 12:37:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2403
ee06f230
JK
2404 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
2405 * configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
2406
b487ba2e
JK
2407 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
2408 * config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
2409 * configure.in (mips-sony-*): Use news-mips for host.
2410
e64ec645
JK
2411 * buildsym.h: Doc fix for processing_acc_compilation.
2412
8715a9f3
JK
2413Thu Jun 17 19:57:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2414
2415 * printcmd.c (print_formatted): Don't use tab in wrap_here arg.
2416
fc61e9ee
JK
2417Thu Jun 17 17:29:30 1993 Jim Kingdon (kingdon@lisa.cygnus.com)
2418
2419 * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
2420 ${srcdir}/../include.
2421
2422 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
2423 with system headers.
2424 * printcmd.c (printf_command): Cast second arg to vprintf to PTR.
2425 Use VPRINTF macro if defined.
2426 * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>.
2427 Define TIOC{GETC,GLTC}_BROKEN.
2428 * m88k-nat.c: Uncomment include of <sys/ptrace.h>.
2429 * main.c: Rename initialize_{main,cmd_lists,history} to init_* to
2430 make things easier on munch (apparently this matters on
2431 the delta88 with svr3).
2432
c8fee4a5
DZ
2433Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
2434
2435 * Makefile.in: canonicalize install.sh; for use within
2436 this directory (and subdirs)
2437
2438Tue Jun 15 17:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2439
2440 * Makefile.in: remove parentdir support; use INSTALL_XFORM
2441
7ccb1e44
SC
2442Thu Jun 17 15:08:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2443
2444 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
2445 host.
2446 * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
2447 wired (and wrong) constant.
2448 * values.c (unpack_long): Add case to unpack when target object is
2449 sizeof(int).
2450 * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
2451 simulator defines.
2452
1c5d6049
RP
2453Wed Jun 16 16:08:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2454
21cc14d8
RP
2455 * NEWS: tracking user visible changes starting with
2456 vxworks-timeout.
2457
1c5d6049
RP
2458 * remote-vx.c (_initialize_vx): rename user settable option from
2459 rpcTimeout to vxworks-timeout.
2460
3ef6f604
FF
2461Wed Jun 16 12:21:49 1993 Fred Fish (fnf@cygnus.com)
2462
53f0969b
FF
2463 * Makefile.in (depend): More makefile diddling.
2464 * alldeps.mak, depend: Update to latest automatically built
2465 versions.
2466
3ef6f604
FF
2467 * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
2468 * alldeps.mak, depend: Update to latest automatically built
2469 versions.
2470
56894788
RP
2471Tue Jun 15 12:26:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2472
2473 * remote-vx.c: include gdbcmd.h for setlist.
2474 (_initialize_vx): make rpcTimeout user settable.
2475
3a6249b1
JK
2476Mon Jun 14 09:23:51 1993 Jim Kingdon (kingdon@cygnus.com)
2477
bd50d1b0 2478 * main.c, gdbcmd.h: Add function filename_completer.
df0f0dcc
JK
2479 * main.c, symfile.c, source.c, exec.c, core.c: Use it for
2480 "directory", "source", "cd", "symbol-file" "add-symbol-file",
2481 "load", "file", "exec-file", "core-file" commands.
2482 (But '/' is a word break, limiting usefulness; see comments).
bd50d1b0
JK
2483
2484 * source.c (mod_path): Warning not error if can't find directory.
2485
3a6249b1
JK
2486 * isi-xdep.c: New file.
2487 * config/m68k/isi.mh (XDEPFILES): Add isi-xdep.o
2488
9748446f
JK
2489Sun Jun 13 09:17:48 1993 Jim Kingdon (kingdon@cygnus.com)
2490
f92d5249
JK
2491 * config/m68k/xm-news.h: Include <sys/param.h>.
2492
dbbf9508
JK
2493 * m88k-tdep.c (IEEE_isNAN): Remove.
2494 config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same
2495 broken isNAN as on the mips.
2496
198133b9
JK
2497 * valprint.c (_initialize_valprint): Use c->function.sfunc not just
2498 c->function.
2499
a5e6391b
JK
2500 * dbxread.c (process_one_symbol): If SUN_FIXED_LBRAC_BUG is not
2501 defined, don't worry about Sun's silly LBRAC bug.
2502 * config/m68k/tm-sun3.h: Define SUN_FIXED_LBRAC_BUG to 0.
2503
2504 * dbxread.c (process_one_symbol): If there's a symbol before an
2505 N_SO, don't error().
2506 (case N_BCOMM): complain () not error ().
2507
9748446f
JK
2508 * defs.h, main.c (catch_errors): Add return_mask arg.
2509 stack.c (print_frame_info): Pass RETURN_MASK_ERROR.
2510 other callers: Pass RETURN_MASK_ALL.
2511 (return_to_top_level), callers: Add return_reason arg.
2512 * utils.c (quit):
2513 Use return_to_top_level (RETURN_QUIT) instead of error ().
2514 * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER):
2515 Use SET_TOP_LEVEL not setjmp (to_top_level).
2516 * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
2517
6e6656cc
JK
2518Sat Jun 12 14:40:54 1993 Jim Kingdon (kingdon@cygnus.com)
2519
ff56144e
JK
2520 * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]:
2521 Don't try to get the debug base yet.
2522
8357834f
JK
2523 * dbxread.c (process_one_symbol): Set n_opt_found based on whether
2524 a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
2525 which returns 0 or 1 to say whether to do it.
2526 * config/sparc/sun4{sol2,os4}.h
2527 (SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
2528 the right thing happens for both acc and SunOS4 /bin/cc.
2529
2530 * valprint.c (print_hex_chars): Use local_hex_format_{pre,suf}fix.
2531 * printcmd.c (print_scalar_formatted): Use val_print_type_code_int.
2532
6e6656cc
JK
2533 * mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
2534 probably contained byte-order sins too.
2535 config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
2536 The IEEE_FLOAT code in print_floating takes care of it.
2537
ce13daa7
FF
2538Sat Jun 12 14:47:04 1993 Fred Fish (fnf@cygnus.com)
2539
2540 * Makefile.in (VERSION): Bump to 4.9.2.
2541 * c-valprint.c (c_val_print): For array of chars printed with
2542 string syntax, don't print the address of the array. From
2543 bothner@cygnus.com.
2544 * c-exp.y (yylex): Recognize '.' as indicating a floating point
2545 number regardless of the radix. From wilson@cygnus.com.
2546 * valprint.c (set_input_radix_1, set_output_radix_1): New
2547 prototypes and functions that do the actual radix setting work.
2548 * valprint.c (set_radix, set_output_radix, set_input_radix):
2549 Rewrite to use set_input_radix_1 and set_output_radix_1.
2550 * valprint.c (initialize_valprint): Enable commands to
2551 independently set and show input and output radices.
2552 * valprint.c (show_radix): New prototype and function that
2553 handles separate input and output radices.
2554
112087ed
KR
2555Fri Jun 11 18:39:38 1993 Ken Raeburn (raeburn@cygnus.com)
2556
2557 Patches from Jeff Law, law@cs.utah.edu:
2558 * hppa-pinsn.c: Now uses disassembler from opcode library,
2559 this contains only the stub function print_insn.
2560
57cb418a
RP
2561Fri Jun 11 15:19:59 1993 K. Richard Pixley (rich@cygnus.com)
2562
2563 * main.c (main): back to two periods for elipse.
2564 (print_gdb_version): revised format for configuration info.
2565
ce13daa7
FF
2566Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
2567
2568 * defs.h (INT_MAX): Cast unsigned shift result to int.
2569
574dac8e
JK
2570Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
2571
2572 * dbxread.c (process_one_symbol): Rather than having
2573 BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
2574 is true if we are doing stabs-in-elf, false otherwise.
2575 config/sparc/tm-sun4sol2.h: Don't define it.
2576
f63f30e2
ILT
2577Fri Jun 11 13:33:40 1993 Ian Lance Taylor (ian@cygnus.com)
2578
2579 * remote-mips.c (mips_send_packet): Don't print garbage character
2580 in debugging info.
2581 (mips_request): Don't check that remote pid is 0, because
2582 sometimes it isn't.
83909c43
ILT
2583 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
2584 not an integer.
f63f30e2 2585
91c87211
JK
2586Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
2587
c94e7e75
JK
2588 * stack.c (print_frame_info): Use catch_errors around print_frame_args.
2589
702c0ff7
JK
2590 * Makefile.in (install): Don't depend on gdb.
2591
91c87211
JK
2592 * Rename remote-es1800.c to remote-es.c
2593 and remote-st2000.c to remote-st.c for 14-char filenames.
2594 config/m68k/{es1800,st2000}: Use the new names.
2595
2596 * mips-tdep.c (isa_NAN): Don't return true on -0.
2597
dd577ca5
FF
2598Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
2599
2600 * defs.h (INT_MAX): Cast unsigned shift result to int.
2601
a608f919
FF
2602Thu Jun 10 13:26:41 1993 Fred Fish (fnf@cygnus.com)
2603
2604 * elfread.c (elf_symtab_read): Add bfd section address to bfd
2605 symbols, now that they are section relative.
2606 * solib.c (bfd_lookup_symbol): Ditto.
2607
2608Thu Jun 10 10:56:56 1993 Jim Kingdon (kingdon@cygnus.com)
2609
2610 * Makefile.in (depend): Add bfd -I's for paread.c and xcoffexec.c
2611 depend: Updated accordingly.
2612
39d4639b
JK
2613Wed Jun 9 16:08:44 1993 Jim Kingdon (kingdon@cygnus.com)
2614
2615 * Makefile.in (*.tab.c): Use mv for atomic update.
2616
2617 * Makefile.in ({dist,real}clean): Also remove nm.h.
2618 (realclean): Also remove ${TESTS}, y.output, yacc.{acts,tmp}.
2619 (distclean): Don't rebuild *.tab.c or TAGS.
2620
fa48972a
RP
2621Wed Jun 9 12:56:58 1993 K. Richard Pixley (rich@cygnus.com)
2622
90494078
RP
2623 * Makefile.in (version.c): add host and target names to version.c.
2624 * main.c (main): print three periods for the elipse.
2625 (print_gdb_version): also print configuration.
2626
a29be236
RP
2627 * udi/udiids.h, udi/udip2soc.c, udi/udiphcfg.h, udi/udiphunix.h,
2628 udi/udiproc.h, udi/udipt29k.h, udi/udiptcfg.h, udi/udisoc.h,
2629 udi/udr.c: Change AMD copyrights to FSF copyleft '93.
2630
2631 * remote-eb.c (get_hex_regs, eb_fetch_registers), remote-adapt.c
2632 (get_hex_regs, adapt_fetch_registers): cast args to
2633 supply_register to avoid gcc warning.
2634
0b3556fe
RP
2635 * config/a29k/a29k.mt (TDEPFILES): drop minimon support. It
2636 doesn't compile on solaris and is now obsolete.
2637
fa48972a
RP
2638 * config/sparc/sun4os4.mh (XM_CLIBS): remove -lresolv. This
2639 breaks stock sunos installations.
2640
b01c21d0
JK
2641Wed Jun 9 06:14:33 1993 Jim Kingdon (kingdon@cygnus.com)
2642
4640902b
JK
2643 * m68k-stub.c: Add comment about frame cache.
2644
b01c21d0
JK
2645 * target.h (target_store_registers): Doc fix re error handling.
2646
2647 * findvar.c (write_register): Call SWAP_TARGET_AND_HOST regardless
2648 of register_valid[regno].
2649
9745ba07
JK
2650Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
2651
2652 * symtab.h, dwarfread.c: Doc fix re dependencies.
2653
f7630ec9
RS
2654Tue Jun 8 17:54:09 1993 Rob Savoye (rob@rtl.cygnus.com)
2655
2656 * serial.c (serial_close): If scb is NULL, don't try to close
2657 it.
1f72a94a 2658 * configure.in: Add support for rom68k and bug boot monitors.
f7630ec9 2659
df14b38b
SC
2660Tue Jun 8 17:39:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
2661
2662 * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
2663 * gdbcore.h, core.c (read_memory_unsigned_integer): New function.
2664 * findvar.c (read_register, write_register): Fix thinko where
2665 sizeof(host long) != sizeof(target int).
2666 * h8300-tdep.c: Use new read_memory_unsigned_integer call.
2667 * sh-tdep.c (_initialize_sh_tdep): Add memory_size command.
2668
e7ac0161
JK
2669Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
2670
2671 * Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
2672 m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
2673 68881 and non-68881 cases. Check for a pair of movel instructions.
d9e5694c 2674
75c319ff
RP
2675Tue Jun 8 14:52:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2676
54d44c8c
RP
2677 First cut at sparc-vxworks targetting.
2678 * config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt: new files.
2679 * configure.in: sparc-vxworks gdb_target now vxsparc.
2680
45d8db87 2681 * remote-eb.c, remote.c: symfile.h requires bfd.h so include it.
75c319ff 2682
683bf9b5
JK
2683Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
2684
2685 * config/m68k/xm-news.h: add "extern int errno".
2686
35799202
RP
2687Tue Jun 8 13:45:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
2688
2689 * remove-vx.c (vx_read_register, vx_write_register): collapse
2690 ifdef I80960 else (assumes) m68k into parameterizable macros
2691 VX_NUM_REGS and VX_SIZE_FPREGS.
2692 * config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
2693 VX_SIZE_FPREGS): new definitions.
2694
6b27ebe8
JK
2695Tue Jun 8 11:08:29 1993 Jim Kingdon (kingdon@cygnus.com)
2696
2697 * symfile.{c,h} (generic_load): New function.
2698 remote{,-nindy,-eb,-mips}.c: Use it.
2699
a5d61570
SG
2700Mon Jun 7 20:07:30 1993 Stu Grossman (grossman@cygnus.com)
2701
2702 * Makefile.in (depend): More sed gubbish to deal with
2703 ../bfd/bfd.h being generated during the build.
2704 * depend: Re-done with corrected makefile.
2705
6f4a4fbb
FF
2706Mon Jun 7 16:32:05 1993 Fred Fish (fnf@cygnus.com)
2707
2708 * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
2709 * Makefile.in (BFD_OBJ_DIR): New definition for the bfd build
2710 directory to find automatically generated header files and library.
2711 * Makefile.in (BFD_LIB): Use BFD_OBJ_DIR.
2712 * Makefile.in (LINTFLAGS): Include BFD_OBJ_DIR.
2713 * Makefile.in (saber_gdb): Include BFD_OBJ_DIR.
2714 * Makefile.in (depend): Include BFD_OBJ_DIR in gcc args.
2715 * Makefile.in (paread.o, xcoffexec.o): Remove, now in depend.
2716 * depend, alldeps.mak: Rebuild after Makefile.in changes.
2717
2718Fri Jun 4 10:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2719
2720 * configure.in: change lynx support to CPU-*-lynxos*
2721
2722 * Makefile.in (subdir_do): change test from existence of directory
2723 to existence of Makefile (the directory may exist but not be configured)
2724
2725Thu Jun 3 01:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2726
2727 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED
2728
761d5a4b
ILT
2729Fri Jun 4 10:43:33 1993 Ian Lance Taylor (ian@cygnus.com)
2730
2731 * configure.in (mips-idt-ecoffl*): New target; use idtl.
2732 (mips-idt-ecoff*): Added trailing '*'.
2733 * config/mips/idtl.mt: New file; like idt.mt, but little endian.
2734
452b4b00
SG
2735Thu Jun 3 17:36:56 1993 Stu Grossman (grossman@cygnus.com)
2736
2737 * ser-go32.c: Clean up lots of compilation nits.
2738
e835b5e7
SG
2739Thu Jun 3 14:44:57 1993 Stu Grossman (grossman@cygnus.com)
2740
2741 * Patches from Jeffrey Law <law@cs.utah.edu>.
2742 * hppab-nat.c: Eliminate unnecessary ifdefs for
2743 FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
2744 CANNOT_STORE_REGISTER.
2745 (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
2746 * hppa-pinsn.c: Support 'I', 'J', and 'K' in output
2747 templates for 1.1 FP computational instructions.
2748
3af7fb94
SG
2749Thu Jun 3 03:34:49 1993 Stu Grossman (grossman@cygnus.com)
2750
bd91ddd1
SG
2751 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
2752 * alldeps.mak, depend: Rebuild to account for ser-tcp.
2753 * config/sparc/sun4os4.mh: Add ser-tcp to XDEPFILES.
2754 * gdbserver/Makefile.in (gdbserver): Use -lbsd.
2755 * gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a
2756 shell when running the child, as args have been expanded by the
2757 time we get here. Simplify calling convention.
2758 * gdbserver/remote-server.c (main): Use new calling convention
2759 for create_inferior, remove defunct code for coalescing argv.
2760 Remove extra calls to mywait(), as we no longer have to wade
2761 through a shell.
2762
3af7fb94
SG
2763 * target.c (target_read_memory_partial): Don't deref errnoptr
2764 when checking for null pointer.
2765
2b577349
JG
2766Wed Jun 2 19:58:46 1993 John Gilmore (gnu@cygnus.com)
2767
2768 * remote-es1800.c: Fix typo.
2769
68feeeed
FF
2770Tue Jun 1 21:22:39 1993 Fred Fish (fnf@cygnus.com)
2771
2772 * target.c (target_read_memory_partial): Like target_read_memory,
2773 but does partial reads, such as reads that bump into the end of
2774 the address space.
2775 * target.h (target_read_memory_partial): Add prototype.
2776 * valprint.c (PRINT_MAX_DEFAULT): New define, initial value 200.
2777 * valprint.c (val_print_string): Complete rewrite to fix bug with
2778 bumping into end of memory, avoiding unnecessarily long reads, and
2779 fixing bug when print_max is set to 0 (unlimited print length).
2780 * valprint.c (_initialize_valprint): Use PRINT_MAX_DEFAULT to
2781 initialize print_max.
2782
c1128340
RS
2783Tue Jun 1 18:11:35 1993 Rob Savoye (rob at darkstar.cygnus.com)
2784
2785 * configure.in: Add support for rom68k and bug boot monitors.
2786
574a2a49
JK
2787Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com)
2788
6119aeeb
JK
2789 * printcmd.c (print_scalar_formatted): Print integers bigger than
2790 LONGEST in hex no matter how big, and no matter what the format
2791 and size.
2792
2793 * stabsread.c (read_type): Skip type attributes if present.
36bcda79 2794
574a2a49
JK
2795 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
2796 of number, just through '0' + radix - 1.
2797
2707b48a
FF
2798Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
2799
8f1cc6c6
FF
2800 * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
2801
c701c14c
FF
2802 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
2803 single parameter, the pointer to the partial symtab, rather than
2804 a bunch of args that are derived from the partial symtab. Change
2805 prototypes and callers to match.
2806
2707b48a
FF
2807 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
2808 set demangling style automatically.
2809 * defs.h (CPLUS_MARKER): Clarify comment that this is only for
2810 GNU C++, not C++ in general.
2811 * symtab.h (general_symbol_info): Simplify by eliminating one
2812 structure level for the language dependent info.
2813
86e3a5e4
FF
2814Sat May 29 15:59:29 1993 Fred Fish (fnf@cygnus.com)
2815
2816 * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
2817 names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
2818 TYPE_CODE_ENUM was already testing for this.
2819
38dc5e12
SG
2820Fri May 28 17:18:05 1993 Stu Grossman (grossman@cygnus.com)
2821
2822 * Makefile.in: Add new file ser-tcp.c.
2823 * defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
2824 * findvar.c (write_register): See if we are writing back the same
2825 value that's already in the register. If so, don't bother.
2826 * remote.c (putpkt, getpkt): Improve handling of communication
2827 problems.
2828 * ser-go32.c: Prototype it to death. Update serial_ops and add
2829 dummy routines where appropriate.
2830 * ser-tcp.c: New module to implement serial I/O via TCP
2831 connections.
2832 * ser-unix.c: Clean up getting/setting of tty state. Get rid of
2833 SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
2834 * serial.c: Add start of support for connect command.
2835 (serial_open): Distinguish between tcp and local devices.
2836 * serial.h (struct serial_ops): Get rid of restore, add
2837 get_tty_state and set_tty_state. Define protoypes and macros for
2838 this mess.
2839 * gdbserver/remote-utils.c: Add tcp support. (readchar): Do
2840 some real buffering. Handle error conditions gracefully.
2841 * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c
2842 (Lynx), remove lots of cruft.
2843
633c8b0a
DZ
2844Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2845
2846 * printcmd.c (print_address_symbolic): turn this into an assigment
2847 instead of an initialization (many compilers don't accept
2848 structure initialization).
2849
860b4da3
JK
2850Thu May 27 16:56:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2851
2852 * xcoffread.c (read_xcoff_symtab): If several program csects in one
2853 source file, give them all the name of the source file, rather than
2854 the 2nd and subsequent ones having NULL names.
2855
b7ccd8e0
PS
2856Thu May 27 06:16:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2857
2858 * printcmd.c (print_address_symbolic): Append source filename and
2859 linenumber of the symbol if print symbol-filename is on.
2860 (initialize_printcmd): `set print symbol-filename'.
2861
185a1705
SG
2862Wed May 26 13:46:16 1993 Stu Grossman (grossman@cygnus.com)
2863
5fa46c42
SG
2864 * configure.in: Add config for Lynx target. Configure gdbserver
2865 only for Lynx. Re-do selective configuration of sparclite.
2866
185a1705
SG
2867 * gdbserver/{remote-gutils.c remote-server.c Makefile.in
2868 configure.in remote-inflow.c remote-utils.c}: New files to
2869 support GDB remote server. Currently only works for Lynx.
2870
3a594d72
JK
2871Wed May 26 10:28:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2872
59d69506
JK
2873 * stabsread.c (define_symbol, case 't'): Only set the name if it
2874 is not a pointer type.
2875
2876 * stabsread.c (define_symbol): Clean up logic; move the read_type
2877 calls to inside the switch statement (this improves the error
2878 handling).
2879
3a594d72
JK
2880 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
2881 common blocks.
2882
b9298844
JK
2883Tue May 25 20:44:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2884
43795ece
JK
2885 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
2886
2887 * source.c (line_info): Change "pc" to "address" in messages and
2888 use print_address for addresses.
2889
2f2a70e5
JK
2890 * source.c (line_info): If we don't find a symtab, print more useful
2891 output, including the symbolic address.
2892
b9298844
JK
2893 * source.c (line_info): If --fullname, display the source.
2894 (identify_source_line), callers: Take pc as argument, rather than
2895 assuming innermost frame (emacs doesn't use this, so no one ever
2896 noticed).
2897 * symtab.h: Declare frame_file_full_name.
2898 * main.c: Don't.
2899
aea2312b
BK
2900Tue May 25 15:30:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
2901
2902 * breakpoint.c (catch_command_1): Fix typo in error msg.
2903
6b346f51
KR
2904Tue May 25 16:05:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
2905
2906 * elfread.c (elf_symfile_read): Update ELF structure and routine
2907 names to specify 32-bit versions.
2908 (elf_symtab_read): Retrieve size field directly from symbol,
2909 instead of using old kludge.
2910
2911 * mips-pinsn.c (print_insn): Cast address to bfd_vma before
2912 calling opcodes library.
2913 * z8k-tdep.c (print_insn): Likewise.
2914
ea753d03
JK
2915Tue May 25 13:06:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2916
2917 * stabsread.c: Remove all uses of error(). Make error_type and
2918 read_type_number static.
2919 (define_symbol): Don't try to deal with a missing symbol
2920 descriptor which isn't followed by digit, '(', or '-'.
2921 * stabsread.h: Don't declare read_type_number here.
2922 * gdbtypes.h: Don't declare error_type here.
2923 * xcoffread.c: Remove NO_TYPEDEFS code.
2924
619ccb24
ILT
2925Tue May 25 09:33:16 1993 Ian Lance Taylor (ian@cygnus.com)
2926
2927 * mips-tdep.c: Removed #include of many header files, and #define
2928 of MIPSMAGIC; no longer used.
2929
30ffb593
JK
2930Tue May 25 09:36:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2931
6fe90fc8
JK
2932 * Many places: replace "the inferior" in messages with "the program"
2933 or "the program being debugged".
ea753d03 2934 * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
6fe90fc8
JK
2935 and I'm getting sick of maintaining it.
2936
30ffb593
JK
2937 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
2938 support it.
2939
2940 * config/i386/go32.mh: Define SER_HARDWIRE.
2941 * Makefile.in: Define SER_HARDWIRE.
2942 (DEPFILES): Use it.
2943 (alldeps.mak): Add SER_HARDWIRE.
2944 Remove all references to ser-hardwire.{c,o}.
2945 * configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
2946
1b71de8e
PS
2947Mon May 24 23:50:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2948
2949 * sparc-nat.c (store_inferior_registers): Fill in all members of
2950 inferior_fp_registers by reading them from the inferior before
2951 modifying and writing them back.
2952 Fixes unexplainable inferior FP exceptions after calls to the inferior
2953 or setting of floating point registers.
2954 * mips-tdep.c (mips_skip_prologue): Skip move of argument register
2955 to register which is generated by gcc-2.4.
2956
3b17ee1b
KR
2957Tue May 25 00:42:39 1993 Ken Raeburn (raeburn@cygnus.com)
2958
2959 * hppa-pinsn.c: Define OLD_TABLE before including opcode/hppa.h.
2960
2961Mon May 24 13:55:14 1993 Stu Grossman (grossman@cygnus.com)
2962
2963 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
2964 xm-i386lynx.h}: New configuration for Lynx.
2965
8789d972
JK
2966Mon May 24 10:01:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2967
87c942a8
JK
2968 * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
2969 * symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
2970
8789d972
JK
2971 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
2972 as struct, union, or enum tags.
2973
8537c754
PS
2974Mon May 24 01:10:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2975
2976 * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
2977 executable.
2978
f52bde21
JK
2979Sat May 22 10:03:09 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2980
2632d6df
JK
2981 * infrun.c (wait_for_inferior),
2982 infcmd.c (program_info, signal_command): Use symbolic signal names.
2983
6b82a761
JK
2984 * inftarg.c (child_wait): Deal with EINTR and include message from
2985 strerror if printing an error message.
2986
2987 * main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
2988
f52bde21
JK
2989 * stabsread.c: Remove most uses of lookup_fundamental_type.
2990 (define_symbol): Use read_type for type of enum constant,
2991 not just read_type_number. Also don't call error().
2992 (define_symbol): For unrecognized constant type, one complaint (the
2993 one from error_type) is enough. Don't make our own in addition.
2994 (define_symbol): Don't treat an N_FUN 'R' as a prototype.
2995 * gdbtypes.h: Doc fixes.
2996
7cf92dd2
PS
2997Sat May 22 03:33:07 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2998
2999 Fix stack unwinding through _sigtramp on Irix. These patches are from
3000 Paul Flinders <ptf@delcam.co.uk>.
3001 * mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
3002 executable uses sigvec.
3003 * mips-tdep.c (read_next_frame_reg): Allow tm-file to override
3004 sigcontext offsets.
3005 * config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
3006
101b7f9c
PS
3007Sat May 22 00:39:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3008
3009 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
3010 be passed to the inferior to make "handle <signal> nopass nostop" work.
3011
ac8cf67d
PS
3012Sat May 22 00:21:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3013
3014 * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
3015 the necessary bits.
3016 * findvar.c (value_from_register): Fix uninitialized first_addr
3017 which caused problems with assignment of doubles to register variables
3018 on some targets.
3019 * mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
3020 missing mips definitions if necessary.
3021
3022 Fix handling of double register variables for mips targets and big
3023 endian hosts. These patches are from Paul Flinders <ptf@delcam.co.uk>.
3024 * config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
3025 8 bytes for doubles.
3026 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
3027 conversion of type held in multiple registers to host format.
3028 * config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
3029 companion to REGISTER_CONVERT_TO_TYPE.
3030 * config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
3031 Convert to function calls.
3032 * config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
3033 mips targets.
3034 * mips-tdep.c (mips_print_register): Raw buffer now needs just
3035 MAX_REGISTER_RAW_SIZE bytes.
3036 * mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
3037 (if defined) for doubles.
3038 * mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
3039 New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
3040 * valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
3041 defined.
3042 * findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
3043 defined.
3044
73262420
JK
3045Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3046
e23a6896
JK
3047 * configure.in: Add i[34]86-*-isc*.
3048
5e27c054 3049 * stabsread.c: Make sure all complain() pass the address of the struct.
b646b438
JK
3050
3051 * xcoffread.c: Make sure all struct complaints are static not auto.
3052
3053 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.
3054
73262420
JK
3055 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
3056
2c6af8c0
JK
3057Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3058
3059 * config/i386/linux.mh: Re-enable coredumps now that they should work.
3060
ee3d350d
RP
3061Wed May 19 15:44:20 1993 K. Richard Pixley (rich@cygnus.com)
3062
3063 * config/m68k/tm-m68k.h (FRAME_CHAIN): add missing close paren.
3064
f3fe87c7
SG
3065Wed May 19 15:33:57 1993 Stu Grossman (grossman@cygnus.com)
3066
3067 * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE.
3068
5b40415c
JK
3069Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3070
3071 * Makefile.in (INSTALLED_LIBS): New variable.
3072
31d16514
JK
3073Tue May 18 14:08:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3074
94d50340
JK
3075 * main.c (quit_command): In the "quit anyway?" message, tell the user
3076 whether we are planning to detach or kill the program.
3077
cdaa7905
JK
3078 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
3079 * config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
3080
15f78602
JK
3081 * infcmd.c (read_pc): Doc fix.
3082
511933e7
JK
3083 * printcmd.c (print_address_symbolic): Use %u not %d for offset.
3084
993583e5
JK
3085 * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
3086 signal_handler_caller.
3087 * tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
3088 * tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
3089 * inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
3090 Use SIGTRAMP_START if defined.
3091 * infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
3092 * infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
3093
7f8253c7
JK
3094 * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code.
3095
b1b4a89e
JK
3096 * infcmd.c (step_1): Fix poorly worded error message.
3097
865e574b
JK
3098 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
3099 Comment out corelow.c because core dumps are broken on these machines.
3100
31d16514
JK
3101 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
3102 if srcdir is not ".".
3103 Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
3104 (INCLUDE_CFLAGS): Remove BFD_DIR and READLINE_DIR.
3105 * depend: Update to latest automatically built version.
3106
6e50aeb4
FF
3107Tue May 18 08:10:45 1993 Fred Fish (fnf@cygnus.com)
3108
3109 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
3110 * Makefile.in (NONSRC): Add ChangeLog-92
3111
3112Tue May 18 08:03:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
f49cf589
JK
3113
3114 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
3115 not typo RAW_REGISTER_SIZE.
3116
3117 * frame.h, inferior.h: Doc fixes.
3118
35247ccd
SG
3119Mon May 17 15:43:03 1993 Stu Grossman (grossman@cygnus.com)
3120
3121 * findvar.c (write_register): Add sanity check for register size.
3122 (read_register): Fixup sanity check for register size to be
3123 consistent with write_register().
3124
3125Mon May 17 07:36:20 1993 Ian Lance Taylor (ian@cygnus.com)
3126
3127 * sparclite/Makefile.in: Add dummy info, install and install-info
3128 targets.
3129
d968d5b4
RP
3130Thu May 13 07:30:22 1993 Ian Lance Taylor (ian@cygnus.com)
3131
3132 * remote-nindy.c: Removed declaration of coffstrip.
3133 * nindy-share/nindy.c: #if 0 coffstrip routine; no longer used.
3134
377f53d2
FF
3135Wed May 12 00:35:19 1993 Fred Fish (fnf@cygnus.com)
3136
3137 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
3138 tagging.
3139
3140 * Makefile.in (VERSION): GDB 4.9 release.
3141
965a33af
FF
3142Tue May 11 08:04:41 1993 Fred Fish (fnf@cygnus.com)
3143
3144 * README: Update known bugs to include the Solaris bug that
3145 leaves core dumps in the current directory when restarting the
3146 inferior with "run". Expand on the testsuite information.
3147
3148 * Makefile.in (VERSION): Bump to 4.8.96 for what should hopefully
3149 be the last 4.9 prerelease test archive.
3150
d2712f02
JK
3151Mon May 10 22:13:23 1993 Jim Kingdon (kingdon@cygnus.com)
3152
3153 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
3154 redefined warnings.
3155
0a4a0f09
FF
3156Mon May 10 20:00:43 1993 Fred Fish (fnf@cygnus.com)
3157
3158 * README, NEWS: Update for gdb 4.9 release.
3159
57ffffe3
JG
3160Mon May 10 19:38:34 1993 John Gilmore (gnu@cygnus.com)
3161
3162 * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
3163 * target.c (MIN): #undef before defining.
3164
4a2383c1
JK
3165Mon May 10 16:03:03 1993 Jim Kingdon (kingdon@cygnus.com)
3166
3167 Patch from Jeffrey Law:
3168 * gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
3169
1edc5cd2
ILT
3170Mon May 10 15:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
3171
3172 * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
3173 memory.
3174
f39a2631
FF
3175Mon May 10 13:14:46 1993 Fred Fish (fnf@cygnus.com)
3176
3177 * ch-exp.y (start): Apply work-around to avoid bison warning.
3178
67d2bd1a
FF
3179Sun May 9 07:25:02 1993 Fred Fish (fnf@cygnus.com)
3180
0b81fc43
FF
3181 * Makefile.in (BISON): Remove double quotes around BISON
3182 definition when bison is used.
3183
8f59e92b
FF
3184 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
3185 * configure.in (hppa*-hp-hpux): Change to hppa*-hp-hpux*
3186 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
3187 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
3188 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
3189 * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
3190 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
3191 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
3192
67d2bd1a
FF
3193 * Makefile.in (VERSION): Bump to 4.8.6.
3194
64c5ac4f
FF
3195Sat May 8 12:36:03 1993 Fred Fish (fnf@cygnus.com)
3196
3197 * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
3198 include declarations for malloc/realloc/free. Both malloc and
3199 realloc return 'void *' for non-ANSI compilations.
3200
1adf2ba9
PS
3201Sat May 8 01:39:30 1993 (pes@regent.e-technik.tu-muenchen.de)
3202
3203 * coffread.c (read_coff_symtab): Don't fclose stream as it is no
3204 longer opened twice.
3205
7a758f71
JK
3206Thu May 6 21:08:55 1993 Jim Kingdon (kingdon@cygnus.com)
3207
3208 * solib.c (clear_solib): Don't close bfd if it is NULL.
3209
34b70237
FF
3210Thu May 6 20:55:35 1993 Fred Fish (fnf@cygnus.com)
3211
3212 * core.c (dis_asm_read_memory): Cast second arg of
3213 target_read_memory to "char *".
3214 * breakpoint.c (watchpoint_check): Change arg type from PTR to
3215 "char *", to match other functions called by catch_errors().
3216
2c298c09
SG
3217Thu May 6 15:47:45 1993 Stu Grossman (grossman@cygnus.com)
3218
3219 * More patches from Jeffrey Law (law@cs.utah.edu).
35247ccd 3220 * gdb/config/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
2c298c09
SG
3221 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
3222 Delete unnecessary declarations.
3223
9e15da4a
SG
3224Thu May 6 15:15:46 1993 Stu Grossman (grossman@cygnus.com)
3225
3226 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
3227 poll() for termio{s}.
3228
dfa592fb
JK
3229Thu May 6 10:03:41 1993 Jim Kingdon (kingdon@cygnus.com)
3230
3231 * i386-tdep.c (i386_frame_num_args): Always return -1.
3232
d83a6710
SG
3233Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com)
3234
a34d4bc1 3235 * Patches from Jeffrey Law <law@cs.utah.edu>.
8fa74880
SG
3236 * gdb/hppa-tdep.c: Declare frame_saved_pc.
3237 (frameless_function_invocation): New function.
3238 (frame_saved_pc, init_extra_frame_info): Use
3239 frameless_function_invocation.
f45e781f 3240 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
8fa74880
SG
3241 call instead of just grabbing the value currently in %r2.
3242 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
f45e781f 3243 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
8fa74880 3244 definition and use the common one in tm-hppa.h.
4b01383b
SG
3245 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
3246 use unwind descriptors to determine if the frame chain is valid.
b227992a
SG
3247 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
3248 it does not assume %r4 is the frame pointer.
68c8d698
SG
3249 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
3250 and ssm instructions.
3251 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
3252 helper functions for print_insn.
a34d4bc1 3253 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
d83a6710 3254 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
a34d4bc1 3255 which nullifies the following instruction.
d83a6710 3256
a7edcb25
JK
3257Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
3258
d83a6710
SG
3259 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
3260 pass the 5th arg there, rather than using an ANSI C-specific macro.
3261
a7edcb25
JK
3262 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
3263
d39fbfe3
FF
3264Tue May 4 19:33:12 1993 Fred Fish (fnf@cygnus.com)
3265
3266 * Makefile.in (VERSION): Bump to 4.8.5
3267 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
3268 directories to include search path.
3269 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
3270 whitespace.
3271 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
3272 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
3273 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
3274 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
3275 udr.o, udip2soc.o): Remove explicit rules, use the ones that
3276 are automatically generated in "depend".
3277 * Makefile.in (paread.o): Document why a dependency doesn't get
3278 automatically generated in "depend" and leave this explicit rule
3279 in for now (FIXME).
3280 * depend: Update to latest automatically generated version.
3281
5b8462fa
JK
3282Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
3283
67240bb8
JK
3284 * xcoffread.c: Doc fix.
3285
5b8462fa
JK
3286 * Makefile.in (depend): Include $(CC) command in generated output.
3287
5287eacd
FF
3288Mon May 3 22:51:05 1993 Fred Fish (fnf@cygnus.com)
3289
3290 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
3291 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
3292 * depend: Update to latest automatically built version.
3293
9775789d
SG
3294Mon May 3 19:20:20 1993 Stu Grossman (grossman@cygnus.com)
3295
f202f778
SG
3296 * sparclite/Makefile.in: Create default target that does nothing
3297 in order to force user to build by hand.
3298
1e8005d0
SG
3299 * sparclite/Makefile: Remove. It's not necessary anymore.
3300
9775789d
SG
3301 * ser-unix.c (wait_for): New routine to handle read timeouts,
3302 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
3303
588cca90
ILT
3304Mon May 3 13:52:08 1993 Ian Lance Taylor (ian@cygnus.com)
3305
3306 * mips-pinsn.c (print_insn): Return value.
3307
ebd99d54
FF
3308Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com)
3309
588cca90
ILT
3310 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
3311 at configuration time and doesn't belong in the distribution archive.
3312
d8aaff82
FF
3313 * Makefile.in (NONSRC): Add 29k-share/README.
3314 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
3315
ebd99d54
FF
3316 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
3317 constants with slightly more portable definitions (still depends
3318 on 2's complement arithmetic though).
3319 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
3320 * i386v-nat.c (sys/reg.h): Conditionalize include on
3321 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
3322 * ser-unix.c (termio.h): Include <termio.h> like other files that
3323 include termio.h, not <sys/termio.h> which may not exist (on
3324 linux for example).
3325
9b25bb09
FF
3326Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com)
3327
3328 * valprint.c (print_longest): Change format parameter from a
3329 'char' to an 'int'. We can't have 'char' parameters with the
3330 current coding style, where we mix prototypes with pre-ANSI
3331 style declarations.
3332 * value.h (print_longest): Change format parameter in prototype
3333 from a 'char' to an 'int'.
3334
dea149ce
PS
3335Sat May 1 02:47:20 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3336
23654371 3337 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
dea149ce 3338 definition.
23654371 3339 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
dea149ce
PS
3340 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
3341
2f1c04d1
SG
3342Fri Apr 30 17:45:32 1993 Stu Grossman (grossman@cygnus.com)
3343
3344 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
3345 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
3346 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
3347 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
3348 ptrace needs 5 arguments, #define ptrace to always
3349 pass zero as the 5th argument.
3350
c7cb9064
SC
3351Fri Apr 30 15:54:13 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3352
3353 * configure.in: Match z8k-*-sim for z8000.
3354 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
3355 * remote-hms.c: Update to use new serial protocol.
3356
5385e525
RP
3357Fri Apr 30 16:50:38 1993 K. Richard Pixley (rich@rtl.cygnus.com)
3358
5084717f
RP
3359 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
3360 necessary and Solaris doesn't have it.
3361
0139c441
RP
3362 * Makefile.in (clean-info, install, install-info, info, dvi,
3363 check, all): do not echo recursion lines.
3364
5084717f 3365 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
8317b39f 3366
13b464b2
RP
3367 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
3368 required target ports which use sockets (like a29k-udi).
3369
2f1c04d1 3370 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
5385e525 3371
8d57a263
JK
3372Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com)
3373
eca29634
JK
3374 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
3375 systems lacking select().
3376
db7c818b 3377 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
8d57a263 3378
496ca67c
FF
3379Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com)
3380
3381 * alldeps.mak, depend: Update with latest automatically built
3382 versions.
3383
3717e95b
FF
3384Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com)
3385
d5f608a4
FF
3386 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
3387
97e72c06
FF
3388 * Makefile.in (make-proto-testsuite.dir): New target to make
3389 prototype testsuite tree.
97e72c06 3390
3717e95b
FF
3391 * Makefile.in (VERSION): Bump to 4.8.4.
3392
ff580c7b
JK
3393Thu Apr 29 08:46:22 1993 Jim Kingdon (kingdon@cygnus.com)
3394
3395 * stabsread.c (define_symbol): If unrecognized constant type,
3396 complain() not error().
3397
7efb57c3
FF
3398Thu Apr 29 00:03:59 1993 Fred Fish (fnf@cygnus.com)
3399
f43aec2e
FF
3400 * infptrace.c: Add missing close paren to test for
3401 FIVE_ARG_PTRACE defined.
3402
7efb57c3
FF
3403 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
3404 when compiling with gcc, but disable it for now. See comment.
3405 * defs.h (LONGEST): Define as either "long" or "long long"
3406 based on CC_HAS_LONG_LONG.
3407 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
3408 how longest_to_int is defined.
3409 * c-valprint.c (c_val_print): Call print_longest.
3410 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
3411 instead of LONG_LONG.
3412 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
3413 CC_HAS_LONG_LONG.
3414 * printcmd.c (print_scalar_formatted): Call print_longest
3415 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
3416 * typeprint.c (print_type_scalar): Call print_longest and let
3417 it figure out what to do for PRINTF_HAS_LONG_LONG.
3418 * valprint.c (val_print_type_code_int): Call print_longest
3419 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
3420 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
3421 * value.h (struct value): Replace usage of LONG_LONG with
3422 CC_HAS_LONG_LONG.
3423 * value.h (print_longest): Add prototype.
3424 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
3425 * values.c (unpack_double): Collapse code that was unnecessarily
3426 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
3427 * values.c (value_from_longest): Remove dependency on
3428 CC_HAS_LONG_LONG and just use LONGEST.
3429 * solib.c (solib_map_sections): Use bfd_get_filename
3430 to access filename field.
3431 * solib.c (clear_solib): Save filename and free it later, after
3432 bfd_close, since bfd_close may reference it. Use bfd_get_filename
3433 to access the field.
3434 * config/convex/xm-convex.h (LONG_LONG): Replace with
3435 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
3436 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
3437 Add PRINTF_HAS_LONG_LONG references.
3438
0626f40d
JK
3439Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
3440
31b56726
JK
3441 * inflow.c (kill_command), infcmd.c (attach_command),
3442 remote.c (remote_interrupt_twice): In messages for the user, call it
3443 "the program" or "the program being debugged" not "the inferior".
3444
0626f40d
JK
3445 * hp300ux-nat.c: Cast second arg to supply_register calls.
3446 (_initialize_kernel_u_addr, getpagesize): New functions.
3447 (store_inferior_register_1): Change arg name from value to val.
3448 (fetch_core_registers): Make arg core_reg_size unsigned.
3449 Pass 5 args to ptrace.
3450 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
3451 Remove KERNEL_U_ADDR stuff.
3452 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
3453 * config/m68k/hp300hpux.m{t,h}:
3454 Move exec.o from NATDEPFILES to TDEPFILES
3455 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
3456 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
3457
d8f23320
PS
3458Wed Apr 28 13:27:54 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3459
3460 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
3461
08bb2617
JK
3462Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
3463
3464 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
3465
caa53d6d
RP
3466Wed Apr 28 11:39:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
3467
3468 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
3469 describe `set demangle-style arm' (not cfront);
3470 mention can type `q' to discard output, when gdb pages
3471
212e10cf
PS
3472Wed Apr 28 11:32:39 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3473
3474 * valops.c (search_struct_field): Fix gdb core dump with incomplete
3475 stabs info.
3476
ebdb9ade
JK
3477Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
3478
3479 * remote.c: Change timeout to 2.
3480 (remote_open): Use unpush_target not remote_close.
3481 (remote_resume): If siggnal != 0, give warning not error().
3482 (remote_wait, remote_interrupt, remote_interrupt_twice):
3483 If we get two interrupts, let the user get out if they want.
3484 (remote_{kill,mourn}): New functions.
3485 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
3486
c0f2f39c
ILT
3487Wed Apr 28 09:20:55 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
3488
3489 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
3490
609e1c57
JK
3491Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
3492
71607f9d
JK
3493 * Remote targets (mourn): Call unpush_target.
3494
e82980e4
JK
3495 * config/sparc/xm-sun4os4.h: Declare free() to return int.
3496 Remove twisted use of PARAMS.
3497
609e1c57
JK
3498 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
3499 that ansidecl.h assumes ANSI on AIX.
3500
ab425a9b
JK
3501Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
3502
3503 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
3504 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
3505
f661c4ca
PS
3506Tue Apr 27 13:44:19 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3507
3508 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
3509
ebe8362f
JK
3510Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
3511
3512 * remote-vx.c (net_connect): Allow numeric IP address for host.
3513
9faacb92
SC
3514Mon Apr 26 17:59:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3515
3516 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
3517
9aa31e91
JK
3518Mon Apr 26 07:13:32 1993 Jim Kingdon (kingdon@cygnus.com)
3519
3520 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
3521
3522 * symtab.h, xcoffread.c: Revise linetable sorting comments.
3523
24d45a63
PS
3524Sun Apr 25 02:32:16 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3525
3526 * valops.c (value_cast): A cast might also change the object
3527 representation in C++.
3528 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
3529 to get the proper read_symtab function when called from mipsread.c.
3530 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
3531 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
3532 for dummy psymtabs, inhibit processing of dummy psymtabs.
3533
8cba9703
JK
3534Sat Apr 24 19:59:54 1993 Jim Kingdon (kingdon@cygnus.com)
3535
87237c52
JK
3536 * Changes from (or inspired by) AMD:
3537 * remote-udi.c (udi_attach): Assignments to Space and Offset were
3538 switched, fix it.
3539 (udi_wait): Make error message (UDIGetStdout) match error.
3540 (udi_wait): Handle UDIStdinNeeded.
3541 * command.c [CANT_FORK]: Use system().
3542 * utils.c (prompt_for_continue): Allow quit with 'q'.
3543
8cba9703
JK
3544 * solib.c (solib_add): Don't call special_symbol_handling if there
3545 were errors in symbol_add_stub. Also set so->from_tty before
3546 calling symbol_add_stub.
3547
66a1aa07
SG
3548Fri Apr 23 16:17:00 1993 Stu Grossman (grossman@cygnus.com)
3549
3550 * Merge in HPPA/BSD patches from Utah:
3551 * defs.h: Add const to 2nd arg of psignal prototype.
3552 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
3553 BSD now.
3554 * hppab-core.c: Deleted. No longer useful.
3555 * hppab-nat.c: #include more files. Use PT_WUREGS, not
3556 PT_WRITE_U.
3557 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
3558 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
3559 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
3560 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
3561 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
3562
b5728692
SG
3563Fri Apr 23 10:34:02 1993 Stu Grossman (grossman@cygnus.com)
3564
3565 * Fix two bugs found by deja-gnu. One is the incorrect reporting
3566 of the PC being in a stack dummy when looking at a core file
3567 without symbols. The other is the incorrect passing of char
3568 arguments during expression evaluation (ie: p foo('a','b') would
3569 mess up the passing of it's args because it wasn't coercing the
3570 char's to ints).
3571 * hppah-tdep.c: Rename global functions to have consistent hppa_
3572 prefix. Make more functions static. Drop hp_ prefix from static
3573 functions. (hppa_push_arguments): Call value_arg_coerce to cast
3574 char to int args if necessary. (hppa_fix_call_dummy): Create
3575 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
3576 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
3577 valid (ie: != 0) before doing comparison against PC.
3578 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
3579 to reflect new arguments.
3580 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
3581 prefix for func name. (FIX_CALL_DUMMY): Move code into
3582 hppah-tdep.c.
3583
3584 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
3585 to malloc() so that we can test GDB eval of dynamically created
3586 arrays (like char strings in `print "foo"').
3587
7586127f
PS
3588Fri Apr 23 01:28:14 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3589
3590 * printcmd.c (print_address_symbolic): Search symtabs as well as the
3591 minimal symbols for a nearby symbol.
3592
158a0711
JG
3593Thu Apr 22 19:44:21 1993 John Gilmore (gnu@cacophony.cygnus.com)
3594
3595 * coffread.c: Comment changes around minimal symbol recording.
3596
3127785a
RP
3597Thu Apr 22 16:24:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
3598
158a0711 3599 * command.c: comment changes only.
f936e20d 3600
3127785a
RP
3601 * mips-tdep.c (heuristic_fence_post): new static variable.
3602 (heuristic_proc_start): use heuristic_fence_post, print better
3603 warnings, but only if not stop_soon_quietly.
3604 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
3605
5afa2040
JK
3606Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
3607
3608 * symtab.h: Fix LOC_REF_ARG comment.
3609
3610Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3611 and Jim Kingdon (kingdon@cygnus.com)
3612
3613 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
3614 LOC_REGPARM symbol.
3615 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
3616 symfile.c (compare_symbols): Don't check first character; STRCMP
3617 does that.
3618
3619 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
3620 structures that are passed by address in a register.
3621 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
3622 * findvar.c (read_var_value),
3623 printcmd.c (address_info, print_frame_args),
3624 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
3625 * symtab.c (lookup_block_symbol): Deal with it.
3626
fce30fa1
JK
3627Thu Apr 22 09:07:24 1993 Jim Kingdon (kingdon@cygnus.com)
3628
4365c36c
JK
3629 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
3630 Add objfile field.
3631 * objfiles.c (find_pc_section): Return a struct obj_section *.
3632 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
3633 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
3634 Don't use obj_section hack.
3635 * xcoffexec (vmap_symtab): Relocate obj_sections.
3636 * printcmd.c (containing_function_bounds): Use find_pc_section.
3637
fce30fa1
JK
3638 * symtab.h: Clean up SYMBOL_VALUE comments.
3639
f2c365f5
JK
3640Wed Apr 21 14:29:57 1993 Jim Kingdon (kingdon@cygnus.com)
3641
31258e4f
JK
3642 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
3643 Expand comments about LOC_ARG/LOC_LOCAL pairs.
3644
f2c365f5
JK
3645 * coffread.c (read_coff_symtab): Use rewind before fseek.
3646
32d8a6d3
PB
3647Wed Apr 21 14:24:19 1993 Per Bothner (bothner@cygnus.com)
3648
3649 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
3650 * Makefile.in: Add $(YFLAGS) when using $(YACC).
3651 * Makefile.in: Remove message to expect conflicts and unused
3652 rules in ch-exp.y, since there no longer are any such.
3653
1b5c6c05
DZ
3654Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3655
3656 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
3657
cee86be3
JK
3658Tue Apr 20 08:55:11 1993 Jim Kingdon (kingdon@cygnus.com)
3659
4cdcf3b9
JK
3660 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
3661 rather than dumping core.
3662
24c2857c 3663 * Makefile.in: Add ${srcdir}/ to all source files.
4cdcf3b9 3664 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
24c2857c
JK
3665 (TAGS): Deal with srcdir and new config directory scheme.
3666 createtags: Remove.
3667 Makefile.in (NONSRC): Remove createtags.
3668 alldeps.mak: Updated.
3669
cee86be3
JK
3670 * rs6000-tdep.c: Delete unused function print_frame.
3671
3672 * frame.h (struct frame_info): Doc fix for next_frame.
3673 New field signal_handler_caller.
3674 blockframe.c (create_new_frame, get_prev_frame_info),
3675 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
3676 INIT_FRAME_PC_FIRST).
3677 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
3678 Check it.
3679
9583b295
SG
3680Mon Apr 19 22:52:33 1993 Stu Grossman (grossman@cygnus.com)
3681
3682 * irix4-nat.c (fetch_core_registers): Special version of this for
3683 Irix 4.x, which stores regs a bit differently from other /proc
3684 based systems.
3685 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
3686 to new file core-svr4.c.
3687 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
3688 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
3689 to NATDEPFILES.
3690 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
3691
3f06498a
JK
3692Mon Apr 19 11:13:34 1993 Jim Kingdon (kingdon@cygnus.com)
3693
3694 * i387-tdep.c: Remove unused #includes.
3695
3696 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
3697
3698 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
3699
058eb766
JK
3700Sun Apr 18 10:39:35 1993 Jim Kingdon (kingdon@cygnus.com)
3701
3702 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
3703
3704 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
3705 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
3706 Don't muck with SYMBOL_CLASS.
3707
04c6a64f
SG
3708Fri Apr 16 17:38:33 1993 Stu Grossman (grossman@cygnus.com)
3709
3710 * munch: Don't use head command. It doesn't exist everywhere.
3711
9c225659
FF
3712Fri Apr 16 15:07:57 1993 Fred Fish (fnf@cygnus.com)
3713
3714 * inflow.c (new_tty): Remove spurious 'o' character at end
3715 of #endif line.
3716
e157305c
PS
3717Fri Apr 16 12:27:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3718
3719 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
3720 instructions and nothing more.
3721 * mipsread.c (add_line): Add comment why we have to combine line number
3722 entries for the same line number.
3723
0b28c260
JK
3724Fri Apr 16 09:42:03 1993 Jim Kingdon (kingdon@cygnus.com)
3725
3726 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
3727 in gdb 2.8!).
3728
dd052d9a
FF
3729Thu Apr 15 21:16:58 1993 Fred Fish (fnf@cygnus.com)
3730
3731 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
3732
9fa59efd
JK
3733Thu Apr 15 12:38:39 1993 Jim Kingdon (kingdon@cygnus.com)
3734
3735 * source.c (select_source_symtab): Clean up comment. Also, if
3736 we have a current_source_symtab, and s is NULL, return without
3737 doing anything.
3738 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
3739 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
3740
65ce5df4
JG
3741Thu Apr 15 02:37:48 1993 John Gilmore (gnu@cacophony.cygnus.com)
3742
3743 * dbxread.c (unknown_symchar_complaint): Add new complaint.
6f49b01e 3744 * stabsread.h: Declare it.
65ce5df4
JG
3745 * partial-stab.h: Use it.
3746
3747 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
3748
486b440e
JK
3749Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
3750
df2a1bd7
JK
3751 * stack.c (print_frame_info): Print specially if dummy frame.
3752
fa99ebe1
JK
3753 * breakpoint.c: Add comments regarding within_scope future direction.
3754
ee7e82fe
JK
3755 * Version 4.8.3.
3756
486b440e
JK
3757 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
3758
3759Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
3760
3761 * ch-exp.y: Fix thinko that broke parsing of FALSE.
3762
39cb3d04
PS
3763Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3764
3765 * stabsread.c (read_member_functions): Initialize domain for stubbed
3766 member functions to avoid gdb core dumps when printing pointers
3767 to member functions.
3768 * cp-valprint.c (cp_print_class_method): Check for stubbed member
3769 functions.
3770
ccd87bf2
JK
3771Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
3772
e2ff731b
JK
3773 * expprint.c (print_subexp): If opcode not found in op_print_tab,
3774 stop with an error().
3775 eval.c (evaluate_subexp): Change error message.
3776
ccd87bf2
JK
3777 * objfiles.c (build_objfile_section_table): Cast return value
3778 from obstack_finish.
3779
0a62ff36
JK
3780Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
3781
f3649227
JK
3782 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
3783 to rs6000_frame_chain and deal with it if we're in a signal handler.
3784 (FRAME_SAVED_PC): Use rs6000_frame_chain.
3785
0a819c04
JK
3786 * breakpoint.c (within_scope): New function.
3787 (enable_breakpoint, watchpoint_check): Use it.
3788
affc9686
JK
3789 * source.c (openp): Handle "exec-file ./ls" correctly.
3790
0a62ff36
JK
3791 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
3792
5a7c9cce
PB
3793Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
3794
3795 * ch-exp.y: Clean up lexing of identifiers and
3796 reserved words. (E.g. don't recognize FALSEXXX as the
3797 keyword FALSE followed by the identifier XXX.)
3798 Also, convert identifiers to lower case.
3799
1724c671
SG
3800Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
3801
3802 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
3803 new serial interface.
3804
4febd102
SG
3805Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
3806
3807 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
3808 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
3809 * ser-go32.c: Return -1 on most failures, 0 on most successes,
3810 and use new return codes for go32_readchar().
3811 * ser-unix.c: Ditto. Also, move error handling up to caller for
3812 SERIAL_SETBAUDRATE().
3813 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
3814 to specific routine.
3815 (serial_close): New routine to wrap around device close routine.
3816 serial.h: Clean & document return values more clearly.
3817
a80c7bf6
JK
3818Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
3819
944c1c2f
JK
3820 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
3821
3822 * rs6000-pinsn.c (print_operand, case LI): Print condition register
3823 operand in decimal rather than wrong textual versions.
3824
21486670
JK
3825 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
3826 (mention 't', remove false thing about 'g' only good with 'f').
3827
ddc6e6f7
JK
3828 * breakpoint.h: move "struct breakpoint" and friends to top of
3829 file so that bpstat_find_breakpoint prototype works.
3830
a80c7bf6
JK
3831 * solib.c (struct so_list): Add bfd field.
3832 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
3833 Put the bfd in bfd field of the so_list.
3834 (clear_solib): Free bfd name and close_bfd on the bfd.
3835
47f366bc
PB
3836Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
3837
3838 * valarith.c (value_subscript): Add COERCE_REF.
3839 * ch-exp.y (operand_5): We can generalize the 2nd operand
3840 of a string repetition ot 'literal' without ambiguity.
3841
cabd4da6
JK
3842Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
3843
3844 * breakpoint.h (struct bpstat): Remove momentary field.
3845 Remove bpstat_momentary_breakpoint. This was always kludgy
3846 and is no longer used.
3847
3848 * breakpoint.h: Add enum bpstat_what.
3849 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
3850 stop and print fields of bpstat now per-breakpoint, not just
3851 one for the whole chain.
3852 breakpoint.{c,h} (bpstat_what): New function.
3853 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
3854 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
3855 with call to bpstat_what.
3856 README: Remove watchpoint/breakpoint bug from known bugs.
3857
3858 * breakpoint.h: Prototype bpstat_find_breakpoint.
3859
dfbfbd96
FF
3860Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
3861
3862 * symtab.c (find_methods, gdb_mangle_name): Note that functions
3863 are g++ specific.
3864 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
3865 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
3866
3867Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
3868
3869 * i960-pinsn.c (tabent): Copied struct definition from
3870 opcodes/i960-dis.c.
3871
ca6a826d
PS
3872Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3873
3874 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
3875 is a C++ destructor.
3876 * symtab.c (gdb_mangle_name): Use it.
3877 * symtab.c (find_methods): Do not add destructors to choice list
3878 for constructors.
3879 * symtab.c (decode_line_1): Make breakpoints on destructors work
3880 for gcc-2.x again.
3881
40b56283
SG
3882Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
3883
b83bf6b3
SG
3884 * ser-go32.c: Make it use serial port name.
3885 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
3886
40b56283
SG
3887 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
3888 in a system call!
3889
41faa775
SG
3890Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
3891
3892 * configure.in: Only configure sparclite subdir when target_cpu
3893 is sparclite.
3894
f635bd47
JK
3895Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
3896
ef5b809c
JK
3897 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
3898 Remove FIXME comment regarding this.
3899
47045b36
JK
3900 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
3901
f635bd47
JK
3902 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
3903
73d0fc78
RP
3904Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
3905
3906 Add section table to objfile struct. Use it for find_pc_section.
3907 * objfiles.c (add_to_objfile_sections,
3908 build_objfile_section_table, find_pc_section): new functions.
3909 (allocate_objfile): build section table.
3910 * objfiles.h (struct obj_section): new structure.
3911 (struct objfile): add section table.
3912 (find_pc_section): new prototype.
3913 * solib.[ch] (find_pc_section_from_so_list): removed.
3914 * sparc-tdep.c: include objfiles.h for find_pc_section. include
3915 symfile.h for objfiles.h.
3916 (in_solib_trampoline): adjusted for new find_pc_section
3917 prototype. Removed BAD_RICH_HACK ifdefs.
3918 * symfile.c (syms_from_objfile): offset objfile sections.
3919 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
3920 * symfile.h (find_pc_section): prototype removed. Also fixed
3921 comment typo NUL -> NULL.
3922 * target.[ch] (find_pc_section_from_targets): removed.
3923 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
3924
07861607
SG
3925Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
3926
3927 * ser-go32.c: Format. (go32_open): Use proper return value.
3928
3929 * configure.in: Undo conditional configdirs hack for sparclite.
3930
118ec55a
JW
3931Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
3932
3933 * symtab.c (list_symbols): When call break_command, pass both
3934 filename and function name not just function name.
3935
3936Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
3937
3938 (Changes and new files to make "none" a full fledged configuration)
3939 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
3940 Currently only tm-none.h has any meaningful contents.
3941 * config/none/none.mh (NAT_FILE): Use nm-none.h
3942 * config/none/none.mh (XM_FILE): Use xm-none.h
3943 * config/none/none.mt (TM_FILE): Use tm-none.h
3944 * Makefile.in (depend): Remove comment about parse errors in
3945 valops.c, it now parses correctly and generates a correct depend
3946 line. Remove line that touches xm.h, tm.h, and nm.h; they are
3947 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
3948
786757a9
JK
3949Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
3950
9925b928
JK
3951 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
3952
786757a9
JK
3953 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
3954 exactly 8 characters.
3955
0c101d49
SG
3956Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
3957
3958 * configure.in: Sparclite uses sparc config dir. Also has it's
3959 own tm- & .mt files now. Also add sparclite to configdirs.
3960 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
3961 * config/i386/go32.mh: Nullify def of TERMCAP.
3962 * config/i386/xm-go32.h: Get rid of redef of EIO.
3963 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
3964 specific configs. Very similar to sun4os4, but without solib.
3965 * sparclite/{Makefile.in configure.in}: First cut at making this
3966 dir configgable.
3967
5d2b030a
SG
3968Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
3969
3970 * ser-go32.c: First cut at adapting to new serial interface.
3971
4e772f44
SG
3972Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
3973
3974 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
3975 These implement a new serial line interface for talking to remote
3976 targets.
3977 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
3978 EXCEPT go32, which gets ser-go32.c.
3979 * remote.c: Use new serial interface. More remote-xxx's to be
3980 converted later.
3981 * ser-bsd.c, ser-termios.c: Removed.
3982 * serial.c: New. Implements common operations for all serial
3983 types.
3984 * ser-unix.c: New. Unix specific serial operations for various
3985 flavors of Unix (Posix, SysV, BSD).
3986 * serial.h: Generic serial interface defs.
3987 * config/i386/go32.mh, config/i386/i386bsd.h,
3988 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
3989 ser-bsd.o from XDEPFILES. All the magic is now handled in
3990 configure.in.
3991
9acdb2dc
SG
3992Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
3993
3994 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
3995
0848ad1c
JK
3996Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
3997
1d7e34e1
JK
3998 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
3999
b0e932ad 4000 * rs6000-tdep.c (frameless_function_invocation): Don't even think
1d7e34e1 4001 about framelessness except on the innermost frame.
b0e932ad 4002
0848ad1c
JK
4003 * xcoffexec.c: Call fatal() not abort().
4004
4005 * stabsread.c (patch_block_stabs): If stab & no symbol, make
4006 a LOC_OPTIMIZED_OUT symbol.
4007 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
4008 findvar.c (read_var_value), printcmd.c (address_info),
4009 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
4010 m2-exp.y (yylex): Deal with it.
0848ad1c 4011 ch-exp.y (yylex): Deal with it.
0848ad1c
JK
4012
4013Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
4014
4015 * findvar.c (value_from_register): H8500 specific, check to see
4016 if we are looking at short pointer. If so, skip crock.
4017 * h8500-tdep.c (h8500_frame_chain): Mask down value from
4018 read_memory_integer() to avoid getting messed up by sign extension.
4019
0e184833
RP
4020Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
4021
4022 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
4023 ifdef protect using BAD_RICH_HACK. This should be removed soon.
4024 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
4025
a6cead71
JK
4026Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
4027
720b3aed
JK
4028 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
4029
4030 * core.c (dis_asm_print_address): New function.
4031
a6cead71
JK
4032 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
4033 has been fixed.
4034
494503c7
PS
4035Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4036
4037 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
4038 entire breakpoint chain and print only the first entry that needs to
4039 be printed and needs to be stopped for. Fixes problems with printing
4040 of multiple breakpoints with different conditions.
4041 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
4042 effectively stops printing of the breakpoint chain.
4043 * breakpoint.c (print_it_noop): New routine to print nothing
4044 for this breakpoint entry and dont stop printing.
4045 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
4046 watchpoint only if it is enabled.
4047 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
4048 descriptor from the library to make backtraces through setjmp work.
4049 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
4050 sigtramp.
4051 * mips-tdep.c (read_next_frame_reg): Provide correct values for
4052 all registers saved within sigtramp, cleanup.
4053
f7ed13c7
JK
4054Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4055
4056 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
4057
bf097a0b
RP
4058Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
4059
4060 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
4061 with prototype in ../include/dis-asm.h.
4062
5d0734a7
JK
4063Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
4064
4065 * core.c (dis_asm_{read_memory,memory_error}): New functions.
4066 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
4067 Use read_memory_func interface to disassembler.
4068
2093fe68
RP
4069Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
4070
4071 Teach sparc solaris to next over shared library functions.
4072 * solib.[hc] (find_pc_section_from_so_list): new function and
4073 prototype.
4074 * sparc-tdep.c (in_solib_trampoline): new function.
4075 * symfile.[hc] (find_pc_section): new function and prototypes.
4076 * target.[hc] (find_pc_section_from_targets): new function and
4077 prototypes.
4078 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
4079 in_solib_trampoline.
4080
b27be792
JK
4081Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
4082
deae7611
JK
4083 * infrun.c (wait_for_inferior): Revise comment.
4084
359a097f
JK
4085 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
4086
4087 * command.{c,h}: New var_type var_integer.
4088 main.c: Use it for history_size.
4089
4090 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
4091 Lint and byte-order fixups.
4092
3f031adf
JK
4093 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
4094
8af68e4e
JK
4095 * breakpoint.h (bpstat): New field print_it.
4096 breakpoint.c (bpstat_print): Use it.
4097 (print_it_normal): New function (from old bpstat_print code).
4098 (bpstat_{alloc,stop_status}): Set print_it field.
4099
4100 * breakpoint.c (bpstat_stop_status): Use catch_errors when
4101 evaluating watchpoint condition, via new function watchpoint_check.
4102 Also stop if watchpoint disabled due to leaving its block.
4103
b27be792
JK
4104 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
4105
aa66fddd
PS
4106Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4107
4108 * mips-pinsn.c: Add missing include of dis-asm.h.
4109
d7d35f00
FF
4110Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
4111
239121e2
FF
4112 * Makefile.in (clean, distclean, realclean): Recursively apply
4113 to subdirs first, rather than last. This avoids, for example,
4114 Makefile being removed in a parent directory before the recursive
4115 make is run.
4116
141ccc03
FF
4117 * alldeps.mak, depend: Update for below changes.
4118
2225eb85
FF
4119 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
4120 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
4121 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
4122 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
4123 instead of tm-68k.h.
4124 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
4125 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
4126 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
4127 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
4128 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
4129 tm-68k.h to tm-m68k.h.
4130 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
4131 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
4132 tm-m68k-nofp.h.
4133
d7d35f00
FF
4134 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
4135 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
4136 * a29k-tdep.c: Renamed from am29k-tdep.c.
4137 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
4138 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
4139 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
4140 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
4141 Map '29k' to 'a29k'.
4142 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
4143 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
4144 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
4145 tm-a29k.h.
4146 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
4147 define that does not appear anywhere else in the gdb source tree.
4148 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
4149
ad376893
JK
4150Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
4151
2225eb85
FF
4152 * breakpoint.c: Add comments regarding breakpoint_re_set.
4153
e5c00760
JK
4154 * xcoffread.c (sort_syms, compare_symbols): Remove.
4155 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
4156 not our own sort_syms (it is identical).
4157
ad376893
JK
4158 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
4159
0b0d6c3f
PS
4160Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4161
4162 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
4163 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
4164 went out of scope.
4165 * exec.c (exec_close): Fix storage leak.
4166 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
4167 output sections when patching an executable.
4168 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
4169 when writing all registers.
4170 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
4171 at the right offset in the dummy frame.
4172 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
4173 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
4174 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
4175
0f0834c5
JG
4176Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
4177
4178 * Makefile.in (TARFILES): Avoid trailing backslash.
4179
2d313932
JK
4180Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
4181
d7d35f00
FF
4182 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
4183 it in breakpoint_re_set.
2d313932
JK
4184 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
4185
4186 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
4187 don't use sizeof(int) for target stuff, etc).
4188
53f6119f 4189Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
3c02636b 4190
53f6119f
FF
4191 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
4192 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
4193 support that can't be integrated anyway due to lack of clear
4194 authorship.
3c02636b 4195
ccf1e898
SG
4196Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
4197
4198 * findvar.c (read_register, write_register): Make these capable
4199 of reading/writing registers that are shorter than REGISTER_TYPE.
4200 * (value_from_register): Install H8500 specific code to return
4201 proper value when register is being used as a pointer.
4202 * h8500-tdep.c: Remove extra defines of NUM_REGS.
4203 (h8500_skip_prologue): Use correct lengths for LINK instructions.
4204 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
4205 chain frames properly by combining frame pointer with T reg.
4206 (init_extra_frame_info): Delete. It's now a macro.
4207 (frame_args_address): Don't add PTR_SIZE. Stack args are already
4208 offset by the correct amount off of the frame pointer.
4209 (register_byte): Delete. It's now a macro.
4210 (register_raw_size, register_virtual_size): Delete. Replaced by
4211 common routine h8500_register_size, cuz there's no difference
4212 between the raw & virtual sizes on this machine.
4213 (register_convert_to_raw, register_convert_to_virtual): Delete,
4214 cuz there's no difference between the raw & virtual forms.
4215 Replaced by memcpy in tm file.
4216 (register_virtual_type): Rename to h8500_register_virtual_type.
4217 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
4218 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
4219 emulator have same reg offsets. This is all handled in the
4220 simulator code now.
4221 (h8500_trapped_internalvar): New routine to detect references to
4222 convenience vars acting as pointer pseudo-regs.
4223 (h8500_value_trapped_internalvar): Conjure up value of pointer
4224 pseudo-regs.
4225 (h8500_set_trapped_internalvar): Convert set value in real
4226 register references.
4227 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
4228 code segment register.
4229 infrun.c (proceed): Simplify. Call write_pc instead of doing it
4230 by hand.
4231 (wait_for_inferior): Add h8500 specific code to add stack segment
4232 when reading SP register.
4233 remote-sim.c (fetch_register): Spacing.
4234 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
4235 detect cruft. Redo all register manipulation stuff. Get rid of
4236 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
4237 to frame pointer. (IS_TRAPPED_INTERNALVAL,
4238 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
4239 to create internal vars for pointer pseudo-regs.
4240
2531303c
FF
4241Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
4242
4243 * Makefile.in: Numerous small changes to macro definitions
4244 and rules for building gdb distribution tree. Many macros
4245 eliminated or merged, and rules simplified.
4246 * alldeps.mak: Update.
4247 * depend: Update.
4248
b396a969
DZ
4249Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
4250
4251 * Makefile.in: recurse through SUBDIRS for dvi target too
4252
53f6119f
FF
4253Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
4254
4255 * Clean up xcoff relocation.
4256 objfiles.h (struct objfiles): Add section_offsets, num_sections.
4257 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
4258 Set them.
4259 symtab.h (struct general_symbol_info): Add section field.
4260 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
4261 xcoffread.c: Set section for symbols and msymbols.
4262 (struct symtab): Add block_line_section field.
4263 buildsym.c (end_symtab): Set it.
4264 (end_symtab and callers): Add section parameter.
4265 objfiles.c (objfile_relocate): New funciton.
4266 xcoffexec.c (vmap_symtab): Use it.
4267 xcoffsolib.h (struct vmap): Remove unused fields.
4268 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
4269 CORE_NEEDS_RELOCATION, symtab_relocated.
4270 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
4271 rs6000-tdep.c: Make loadinfotext static.
4272 breakpoint.c (fixup_breakpoints): Doc fix.
4273 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
4274 (end_symtab): primary field replaces nonreloc.
4275
ece2e98a
JG
4276Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
4277
4278 * symtab.h (struct linetable_entry): Remove confusing comment.
4279
80c8fd72
DZ
4280Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4281
4282 * Makefile.in: add installcheck target
4283
1a0edbc7
FF
4284Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
4285
4286 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
4287 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
4288 z8k}: New directories to hold cpu specific configuration files.
4289 Naming follows gcc convention.
4290 * config/{*.mt, *.mh}: All target and host makefile fragment
4291 config files moved to an appropriate config/<cpu> subdirectory.
4292 * nm-*, xm-*, tm-*: All native, host, and target files, which
4293 get linked to nm.h, xm.h, and tm.h respectively by configure,
4294 moved to appropriate config/<cpu> subdirectory.
4295 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
4296 Native, host, and target files that are common across more than
4297 one cpu architecture and included by one of the configured
4298 native, host, or target files, get moved to config directory.
4299 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
4300 pick up native, host, or target include files moved to one of
4301 the config subdirectories, and that are included by other files.
4302 * Makefile.in (alldeps.mak): Modify to account for new config
4303 directory structure.
4304 * alldeps.mak, depend: Update for new config directory structure.
4305 * config/*/[ntx]m-*.h: Modify all files that include other
4306 [ntx]m-*.h files to use path relative to gdb/config. I.E.
4307 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
4308 "tm-29k.h".
4309 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
4310 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
4311 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
4312 * configure.in: Default gdb_host_cpu to host_cpu, and remap
4313 the ones where the default is not unique or different than the
4314 config subdirectory name. Similarly, handle gdb_target_cpu.
4315 Modify configure.in as appropriate to make use of gdb_host_cpu
4316 and gdb_target_cpu to find makefile fragments and make links.
4317
5f5341a7
ILT
4318Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
4319
4320 * mipsread.c (compare_blocks): Sort blocks with the same start
4321 address by decreasing ending address.
4322
1a3579df
PS
4323Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4324
4325 * mipsread.c (parse_procedure): Save cur_fdr accross call to
4326 lookup_symbol as it might get clobbered by the call.
4327
4328 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
4329 The previous code did not initialize the language field for the psymtab
4330 entry.
4331
f24c159f
JG
4332Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
4333
4334 * c-exp.y (parse_number): Avoid shift warning.
4335 * serial.h (struct ttystate): Declare empty one on DOS.
4336
bc0d4cb9
SG
4337Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
4338
733a9015
SG
4339 * xm-sun4os4.h: Return type of free() should be void, not int.
4340
bc0d4cb9
SG
4341 * vx-share/vxWorks.h: Remove #def of NULL.
4342
deb3f296
JK
4343Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
4344
4345 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
4346
52f8e6a0
SC
4347Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
4348
4349 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
4350
00cea52f
PB
4351Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
4352
4353 * ieee-float.c: Moved to ../libiberty.
4354 * ieee-float.h: Moved to ../include.
4355 * Makefile.in: Update accordingly.
4356 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
4357 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
4358 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
4359 it is now in ../opcodes/m68881-ext.c.
4360 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
4361 prologue (some callers _do_ care).
4362 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
4363 new interface of ../opcodes/*-dis.c.
4364 * ch-exp.y: Add #include <ctype.h>.
4365
b60b2e3e
JK
4366Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
4367
c161de74
JK
4368 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
4369
b60b2e3e
JK
4370 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
4371
ecfd2b60
JK
4372Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
4373
4374 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
4375
2d8d693a
SC
4376Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4377
4378 * z8k-tdep.c (extract_return_value, write_return_value,
4379 store_struct_return): New functions from macros in tm-z8k.h.
4380
898e13c8
FF
4381Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
4382
4383 * valops.c (value_arg_coerce): Apply temporary patch to
4384 fix problem with coercion of array and function types when
4385 passed as arguments to C functions, pending a more complete
4386 review of when and how coercion should be done, depending
4387 upon context and language.
4388
9d61147e
JK
4389Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
4390
3e57da38
JK
4391 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
4392
9d61147e
JK
4393 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
4394 debugsec if there are a non-zero number of symbols.
4395
3021c40d
JG
4396Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
4397
4398 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
4399
8112a711
JK
4400Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
4401
4402 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
4403
4404 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
4405 not just 50 symbols.
4406 (symtbl_num_syms): New variable.
4407 (read_xcoff_symtab): Set it.
4408 (read_symbol_nvalue): Check for bad symno.
4409 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
4410 always symtbl.
4411
e829d983
SG
4412Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
4413
4414 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
4415 This is defined in defs.h if necessary.
4416 * vx-share/vxWorks.h: Remove #defs of min and max.
4417 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
4418 vx-share/xdr_rdb.c: include defs.h.
4419
c8ade719
JK
4420Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
4421
4422 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
4423 of while condition.
4424
4425 * xcoffread.c (enter_line_range): complain() on bad endoffset.
4426 xcoffread.c: Doc fixes.
4427
4428Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
4429
4430 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
4431 xcoffexec.c (xcoff_relocate_core): New function.
4432 (text_adjustment): Removed.
4433 (add_vmap): Return the vmap.
4434 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
4435
4436Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
4437
4438 * xcoffsolib.h: Add objfile member to struct vmap.
4439 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
4440 xcoffexec.c (add_vmap): Allocate objfiles here.
4441
48a522d9
JG
4442Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
4443
01deac12
JG
4444 Support 68000 series without floating point.
4445
4446 * configure.in (m68000-*-{aout,elf,coff}): New configs.
48a522d9
JG
4447 * tm-68k-nofp.h: New file, lacks 68881 support.
4448 * config/m68k-nofp.mt: New file.
4449
84a05e52
JG
4450Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
4451
4452 Remove a few remaining underscore/no-underscore remnants from
4453 config files.
4454
4455 * config/{m68k-un.mt, sparc-un.mt}: Remove.
4456 * config/m68k-noun.mt: Rename to m68k-fp.mt.
4457 * config/sparc-noun.mt: Rename to sparc-em.mt.
4458 * tm-68k-noun.h, tm-spc-noun.h: Remove.
4459 * tm-68k-un.h: Rename to tm-68k-fp.h.
4460 * tm-spc-un.h: Rename to tm-spc-em.h.
4461 * tm-sun4sol2.h: Cleanup.
4462 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
4463
961ee88e
JG
4464Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
4465
4466 * symmisc.c (std_in, std_out, std_err): Move initializations
4467 to runtime code, in case they aren't constant.
4468
a8172eea
RP
4469Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
4470
aa8f3210
RP
4471 * symtab.c (find_pc_symtab): some object file formats, notably
4472 mips, have holes in the address ranges of symtabs. Change
0a4a0f09 4473 this algorithm from first hit to tightest fit.
aa8f3210 4474
a8172eea
RP
4475 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
4476 fence post without finding the enclosing function, then print a
4477 warning.
4478
bd5d07d9
FF
4479Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
4480
5e81259d
FF
4481 * utils.c (fputs_demangled, fprint_symbol): Remove.
4482 * utils.c (fprintf_symbol_filtered): New function which combines
4483 the functionality of fputs_demangled and fprint_symbol. Uses a
4484 caller provided language parameter to select the appropriate
4485 demangler, and caller provided args to pass to the demangler.
bd5d07d9
FF
4486 * defs.h (enum language): Move further up in file so enum can
4487 be used in prototypes.
5e81259d
FF
4488 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
4489 * defs.h (fprintf_symbol_filtered): Add prototype.
4490 * c-typeprint.c (cp_type_print_method_args): Replace calls to
4491 fputs_demangled with call to fprintf_symbol_filtered.
4492 * cp-valprint.c (demangle.h): Include
4493 * cp-valprint.c (cp_print_value_fields): Replace calls to
4494 fprint_symbol with calls to fprintf_symbol_filtered.
4495 * printcmd.c (print_frame_args): Replace call to fprint_symbol
4496 with call to fprintf_symbol_filtered.
bd5d07d9
FF
4497 * stack.c (print_frame_info): Remove obsolete code so we don't
4498 have to update fputs_demangled usage in it.
4499 * stack.c (print_frame_info, frame_info): Add language variable
5e81259d
FF
4500 to pass to fprintf_symbol_demangled and initialize it from the
4501 symbol's language. Replace calls to fputs_demangled with calls
4502 to fprintf_symbol_filtered.
4503 * symtab.c (find_methods): Replace call to fputs_demangled with
4504 call to fprintf_symbol_filtered.
5e81259d
FF
4505 * ch-valprint.c (demangle.h): Include.
4506 * ch-valprint.c (chill_print_value_fields): Replace call to
4507 fprint_symbol with call to new fprintf_symbol_filtered.
bd5d07d9 4508
f77ad505
FF
4509Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
4510
0b96ed06
FF
4511 * Makefile.in (VERSION): Bump version to 4.8.2.
4512
f77ad505
FF
4513 * main.c (source_command): Require an explicit pathname of file
4514 to source, since previous behavior of defaulting to gdb init file
4515 was troublesome and undocumented.
4516 * printcmd.c (disassemble_command): Add missing '{}' pair to
4517 else with two statements. Bug reported by Stephane Tsacas
4518 <slt@isoft.fr>.
4519 * symtab.c (find_pc_line): Don't complain about zero length or
4520 negative length line numbers for the moment, since we may not own
4521 the terminal when called, such as when single stepping. (FIXME)
4522 * language.h (CAST_IS_CONVERSION): True if current language is
4523 C++ as well as C. Fix from Peter Schauer.
4524 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
4525 Use STREQN macro rather than bare '!strncmp()'.
4526 * environ.c (unset_in_environ): Avoid use of memcpy on
4527 overlapping memory regions, as suggested by Paul Eggert
4528 <eggert@twinsun.com>.
4529 * c-exp.y (%union struct): Remove unused ulval as suggested
4530 by Paul Eggert <eggert@twinsun.com>.
4531
4532Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
4533
4534 * main.c (gdbinit): Make static.
4535 * main.c (inhibit_gdbinit): Move to file scope.
4536 * main.c (main): Remove local inhibit_gdbinit.
4537 * main.c (source_command): Don't source '.gdbinit' file by
4538 default if gdb has been told to ignore it.
4539
aecc5459
ILT
4540Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
4541
4542 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
4543 3.63.
4544
19327ea5
JG
4545Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
4546
aecc5459
ILT
4547 * printcmd.c (print_address_symbolic): Only print if offset
4548 is shorter than max_symbolic_offset.
4549 (initialize_printcmd): `set print max-symbolic-offset'.
4550
946f014b
JG
4551 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
4552 (examine_tag): Use it.
4553 (read_register_stack): Only look in the local registers for a
4554 memory address if it's between rfb and rsp; go to memory otherwise.
4555 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
19327ea5
JG
4556 (reginv_com): Remove ancient kludge command.
4557
81029114
RP
4558Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
4559
24365af9
RP
4560 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
4561 irix4 will again compile.
4562
5870d848
RP
4563 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
4564
81029114
RP
4565 * configure.in: accept mips-sgi-irix4* for irix4.
4566
4567Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
4568
4569 * z8k-tdep.c (print_register_hook): Lint.
4570
4966c17c
JG
4571Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
4572
4573 Lint fixes from Paul Eggert (eggert@twinsun.com):
4574
4575 * command.c (do_setshow_command): var_uintegers are unsigned.
4576 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
4577 unsigned, since they use hex values with the high bit set.
4578
83386662
FF
4579Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
4580
2456bacb
FF
4581 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
4582 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
4583 access symbol name.
e5bb7e61 4584 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2456bacb 4585 macro definitions in parenthesis.
e5bb7e61 4586
83386662
FF
4587 * dbxread.c (dbx_symfile_init): Catch the case where there is
4588 no string table, but the only way we find out is by reading zero
4589 bytes from EOF.
4590
69a272c4
FF
4591Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
4592
4593 * dbxread.c (dbx_symfile_init): Make size of the string table
4594 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
4595 offset to the string table is nonzero and handle the nonexistant
4596 string table case, should it occur. Ensure that the string table
4597 size read from the file is reasonable, with a minimum lower bound
4598 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
4599
b010e283
ILT
4600Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
4601
4602 * Makefile.in: Changes to build testsuite correctly.
4603 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
4604 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
4605 (TARGET_FLAGS_TO_PASS): New variable.
4606 (SUBDIRS): Added testsuite.
4607 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
4608 testsuite is compiled with CC_FOR_TARGET rather than CC.
4609
45364c8a
FF
4610Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
4611
6985bc54
FF
4612 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
4613 reported by mycroft@gnu.ai.mit.edu.
4614
4615 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
4616 * configure.in (vax-*-ultrix2*): New triplet.
4617 * config/vaxult2.mh: New file.
4618 * xm-vaxult2.h: New file.
4619
45364c8a
FF
4620 * c-exp.y (parse_number): Change high_bit to unsigned.
4621 * demangle.c: Change all references to cfront to ARM, since the
4622 actual algorithm is the one specified in the Annotated Reference
4623 Manual. This was confusing users into thinking that full cfront
4624 support was implemented.
4625 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
4626 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
4627 directly to lookup_struct_elt_type, which will do the
4628 dereferencing itself.
4629 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
4630 NULL dereferencing bug for unnamed structs, comment out
4631 questionable code.
4632
fefe2ed9
JG
4633Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
4634
1d9449ab
JG
4635 * coffread.c (process_coff_symbol): Change PCC argument correction
4636 so that it only happens on big-endian targets; so that it only
4637 happens if the short or char argument is aligned on an int
4638 boundary; and so that it changes the location, rather than the
4639 type, of the argument. These changes tend to parallel similar
4640 (old) changes in stabsread.c.
4641
4642 * coffread.c (coff_read_enum_type): Use the specified size for
4643 enums, don't assume that they are int-sized.
4644
4645 * c-valprint.c (c_val_print): Don't assume enums are the same as
4646 ints.
4647
fefe2ed9
JG
4648 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
4649 Rendell, <michael@mercury.cs.mun.ca>.
4650
58a66e24
FF
4651Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
4652
4653 * language.h (local_decimal_format_custom): Add prototype.
4654 * language.c (local_decimal_format_custom): Add function, bug
4655 reported by Robert R. Henry (rrh@tera.com).
4656
9116f7c7
JG
4657Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
4658
4659 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
4660 by Josef Leherbauer, joe@takeFive.co.at.
4661
4662Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
4663
4664 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
4665 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
4666 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
4667 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
4668 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
4669 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
4670 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
4671 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
4672
8fbdca53
FF
4673Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
4674
f31e2e7a
FF
4675 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
4676 of demangled name fields to NULL if no demangling exists for
4677 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
4678 symbols if their language is known at the time they are created,
4679 but sometimes the language is not known until later.
4680
8fbdca53
FF
4681 * ch-typeprint.c (chill_print_type_base): Name changed to
4682 chill_type_print_base to match pattern for C and C++ names.
4683 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
4684 to be consistent with other usages.
4685 * ch-typeprint.c (chill_type_print_base): Add support for
4686 printing Chill STRUCT types.
4687 * ch-valprint.c: Include values.h.
4688 * ch-valprint.c (chill_print_value_fields): New function and
4689 prototype for printing Chill STRUCT values.
4690 * ch-valprint.c (chill_val_print): Fix call to val_print_string
4691 that was being called with two args instead of three.
4692 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
4693 to print Chill STRUCT values.
8fbdca53 4694
b12529c1
MW
4695Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
4696
4697 * configure.in: added testsuite to configdirs.
4698
c2dc518b
MS
4699Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
4700
4701 * doc/stabs.texi: The `this' pointer is now known by the name
4702 `this' instead of `$t'.
4703
b6236d6e
FF
4704Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
4705
bb6e8fe6
FF
4706 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
4707 references of TAG_string_type DIEs in user defined types.
b6236d6e
FF
4708 * ch-lang.c (chill_create_fundamental_type): Track compiler
4709 change that now emits debugging info with the type long for Chill
4710 longs.
b6236d6e 4711
c2a0f1cb
ILT
4712Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
4713
4714 * remote-mips.c: New file; implements MIPS remote debugging
4715 protocol.
4716 * config/idt.mt: New file; uses remote-mips.c
4717 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
4718
4719 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
4720 floating point coprocessor.
4721 (mips_push_dummy_frame): If not mips_fpu, don't save floating
4722 point registers.
4723 (mips_pop_frame): If not mips_fpu, don't restore floating point
4724 registers.
4725 (_initialize_mips_tdep): New function; let the user reset mips_fpu
4726 variable.
4727 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
4728 mips_fpu, don't use fp0 as floating point return register.
4729 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
4730 registers.
4731
bf3d2b75
MW
4732Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
4733
4734 * gdb/testsuite: made modifications to testcases, etc., to allow
4735 them to work properly given the reorganization of deja-gnu and the
4736 relocation of the testcases from deja-gnu to a "tool" subdirectory.
4737
19fa4a0a
MW
4738Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
4739
4740 * gdb/testsuite: Initial creation of gdb/testsuite.
4741 Migrated dejagnu testcases and support files for testing nm to
4742 gdb/testsuite from deja-gnu. These files were moved "as is"
4743 with no modifications. This migration is part of a major overhaul
4744 of dejagnu. The modifications to these testcases, etc., which
4745 will allow them to work with the new version of dejagnu will be
4746 made in a future update.
4747
cb46c402
JG
4748Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
4749
4750 * NEWS: Add reminders for next release.
4751
254dec35
ILT
4752Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
4753
4754 * mipsread.c (parse_lines): Correct check for files compiled with
4755 -g1.
4756
dba02c60
JG
4757Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
4758
4759 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
4760
c7cb1025 4761Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
ead97959
JG
4762
4763 * Makefile.in (VERSION): GDB-4.8 release!
dba02c60 4764 * README, NEWS: Update for release.
ead97959 4765
b9163d1a
SG
4766Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
4767
4768 * am29k-pinsn.c (print_insn): Minor nits with const.
4769 * am29k-tdep.c: More minor nits with arg types for
4770 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
4771
5e3d0ab0
JG
4772Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
4773
4774 * gcc.patch: Update for a different GCC (G++) bug.
4775 * main.c (print_gdb_version): Update copyright year to 1993.
4776 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
4777 conditionalize this file on it. FIXME, right way is to split
4778 these into two config files.
4779 (ATTACH_DETACH): Define for BSD 4.4
4780 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
4781 (U_REGS_OFFSET): Revise for 4.4.
4782 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
4783 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
4784 LONG_MAX into this file to avoid cpp "redefinition" warnings.
4785
add04f8b
RP
4786Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
4787
4788 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
4789 caddr_t.
4790
c5c00171
JG
4791Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
4792
961ccde6
JG
4793 * c-lang.c (c_printstr): Bugfix for length==0 case.
4794
c5c00171
JG
4795 * c-lang.c (c_printstr): If a C string ends in a null, don't
4796 print the null.
4797
eece984d
SG
4798Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
4799
4800 * defs.h (STRCMP): Make it work for unsigned chars.
4801
ec4bf6a0
JG
4802Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
4803
4804 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
4805 * config/hp300bsd.mh (REGEX, REGEX1): Define.
4806 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
4807 define to kludge the large opcode table into two smaller tables,
4808 since GCC take exponential space to build the table. Lint.
4809 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
4810
0ae975ea
JG
4811Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
4812
be220da1
JG
4813 * Makefile.in (VERSION): Roll to 4.7.9.
4814 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
4815 definition here, to handle both BSD 4.3 and 4.4 systems.
5824e607
JG
4816 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
4817 * remote.c (alarm): Move declaration to global level, before
4818 first reference to it.
4819 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
0ae975ea
JG
4820 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
4821
8631194d
RP
4822Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
4823
fce7f2d9
RP
4824 * remote.c (readchar): forward declare alarm which otherwise looks
4825 like an undeclared variable to gcc.
4826
040b9597
RP
4827 * dbxread.c (process_one_symbol): cast enum value N_SO into int
4828 when comparing against an int. Avoids superfluous warning from
4829 vax ultrix 4.2 cc.
4830
9549404e
RP
4831 * inflow.c (set_sigint_trap): add cast to assignment from signal.
4832 Avoids superfluous warnings from some systems and/or compilers
4833 (like vax ultrix 4.2.)
4834
8631194d
RP
4835 * language.c (struct op_print unk_op_print_tab): use the enum
4836 values rather naked zeros as initializers. Avoids warnings from
4837 ultrix type compilers.
4838
f4ed8840
JG
4839Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
4840
4841 * Makefile.in (VERSION): Roll to 4.7.6.
4842 (SFILES_SUBDIR): Add 29k-share/udi_soc.
4843 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
62e859f0
JG
4844 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
4845 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
f4ed8840
JG
4846 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
4847 (depend): Fix bug where nm-files in config files weren't noticed.
4848 (make-proto-gdb-1): Avoid changing directories while building new
4849 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
4850
7c622b41
JG
4851Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
4852
4853 * remote.c: Improve error recovery. Allow user to break out
4854 of initial connection attempt with INTERRUPT. Treat a timeout
4855 while waiting for remote packet like a retry, unless the remote
4856 side is actively running user code. Fix a few long printf_filtered's.
4857
4858 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
4859 trampoline symbols.
4860
4861 * buildsym.c (start_subfile): Allow null file name.
4862
e9916390
RP
4863Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
4864
4865 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
4866 expects a pointer to complaint rather than a complaint
4867 structure.
6d4ea3a5
RP
4868 (process_linenos): free the previously allocated subfile name,
4869 then allocate the new one from the heap.
e9916390 4870
256b4f37
SC
4871Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
4872
4873 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
4874
e5eeaaf8
JG
4875Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
4876
256b4f37
SC
4877 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
4878 Previously, would bogusly index off the bottom of type_vector.
4879 (rs6000_builtin_type): Accept type number as argument.
4880 (read_type, case '-'): Handle negatives like any other type number.
4881
4882 * symfile.c (deduce_language_from_filename): Handle null name.
4883
015605c5
JG
4884 * mips-tdep.c (isa_NAN): Fix byte order dependency.
4885 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
4886 fixed by sato@sm.sony.co.jp.
4887
e5eeaaf8
JG
4888 * xcoffread.c (parmsym): Don't use an initializer to set up
4889 this struct symbol. Set it up in initialize_xcoffread.
4890 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
4891 works on real rs/6000 target with #ifndef FAKING_RS6000.
4892
dd469789
JG
4893Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
4894
4895 * stabsread.c (rs6000_builtin_type): Move function from
4896 xcoffread.c:builtin_type.
4897 * xcoffread.c (builtin_type): Move to stabsread. Remove
4898 IBM6000_HOST dependency. Move misplaced comments.
4899 (various): Change printf's to complaints.
4900 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
4901 objfile argument to read_type calls under #if 0.
4902 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
4903 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
4904 * Makefile.in: xcoffread.o is not built by default.
364c1151 4905 * xm-rs6000.h (IBM6000_HOST): Remove.
dd469789
JG
4906 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
4907 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
4908 IBM6000_TARGET.
4909
733a94e8
SG
4910Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
4911
4912 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
4913 VALUE_LVAL to be lval_memory so that we don't try to modify wild
4914 register numbers when user tries to modify elements in structs
4915 passed as arguments.
4916 * inflow.c (child_terminal_info): Move banner outside of system
4917 specific #ifdefs.
4918 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
4919 passes struct/union arguments by address.
4920
4921Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
4922
14b1f0d9 4923 * Based on patch from Kean Johnston <maw@netcom.com>:
733a94e8
SG
4924 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
4925 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
4926 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
4927
79533adf
JG
4928Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
4929
4930 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
4931 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
4932
2368ffb6
ILT
4933Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
4934
4935 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
4936 cc debugging output.
4937
2a021f21
JG
4938Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
4939
4940 * stabsread.c (define_symbol): Complain about unrecognized names
4941 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
4942 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
4943 (read_cpp_abbrev): Don't use the class name as part of the
4944 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
4945 abbrevs. Inspired by Mike Tiemann.
4946 (read_tilde_fields): Comment. Remove ancient dead code.
4947 Remove erroneous but non-dead code. Simplify. Add complaints.
4948 (in general): Remove extraneous (parentheses) in return
4949 statements.
4950
c653bc6d
JG
4951Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
4952
931bf12a
JG
4953 * coffread.c (coff_lookup_type): Fix fencepost error reported
4954 by Art Berggreen, <arg@opal.acc.com>.
4955
c653bc6d 4956 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
931bf12a 4957 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
c653bc6d
JG
4958
4959 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
4960 test, which is apparently left over from when we used native
4961 include files and couldn't depend on the member names being there.
4962 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
4963
4964Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
4965
4966 * mipsread.c: Major overhaul to use new BFD symbol table reading
4967 routines. Now swaps information as it is needed, rather than
4968 swapping everything when the file is read.
4969
b076f024
JG
4970Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
4971
4972 * Makefile.in (TARDIRS): Add sparclite demo dir.
4973 (*.tab.c): Change dependency on Makefile to depend on
4974 Makefile.in, otherwise it always rebuilds after configuring.
4975 Force output *.tab.c file into current directory even in "make"
4976 versions that rewrite dependent file names used in command lines.
4977
4978 * TODO: Remove some things we did.
4979 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
4980 * os68k-xdep.c: Remove; useless file (os68k is a target only).
4981 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
4982 * symtab.h: Eliminate unnamed unions and structs.
4983
ad89bdfd
JG
4984Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
4985
4986 * Makefile.in (VERSION): Roll to 4.7.5.
ad89bdfd 4987
ca5a72cd
JG
4988Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
4989
4990 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
4991 re-evaluating symbol pointers.
4992
9da75ad3
FF
4993Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
4994
4995 * c-exp.y (lcurly, rcurly): New nonterminals.
4996 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
4997 constructs.
4998 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
4999 made function static.
5000 * parse.c (struct funcall): Moved struct def from parser-defs.h.
5001 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
5002 * parse.c (start_arglist):
5003 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
5004 * parser-defs.h (struct funcall): Moved struct def to parse.c.
5005 * parser-defs.h (funcall_chain): Moved to parse.c.
5006 * printcmd.c (print_frame_nameless_args): Fix prototype.
5007 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
5008 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
5009 * valops.c (typecmp): Moved prototype from values.h.
5010 * value.h (typecmp): Moved prototype to valops.c, made static.
9da75ad3 5011 * ch-exp.y (yylex): Change way control sequences are disabled.
9da75ad3 5012
58bcc08c
JG
5013Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
5014
5015 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
5016
fee754c9
ILT
5017Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
5018
5019 * mipsread.c (upgrade_type): Build array types correctly, using
5020 create_range_type and create_array_type.
5021
7dc15bb7
JG
5022Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
5023
58bcc08c
JG
5024 * remote-nindy.c: Cleanup.
5025
1b6a2087
JG
5026 * infrun.c (wait_for_inferior): When rolling back the PC after
5027 a breakpoint, call write_pc so that NPC gets rolled back as well
5028 (for the 29K).
5029
d122f257
JG
5030 * blockframe.c (inside_entry_file, inside_main_func,
5031 inside_entry_func): PC of zero is always "bottom of stack".
5032
7dc15bb7
JG
5033 * printcmd.c (print_frame_args, print_frame_nameless_args):
5034 Let print_frame_nameless_args decide whether there are any,
5035 laying groundwork for possibly later printing 29K args for
5036 functions where we have tag words but no symbols.
5037
2b21d8aa
RP
5038Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
5039
5040 * Makefile.in: fix GDB doc targets for new doc subdir structure
5041
07c2fa3e
JG
5042Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
5043
5044 * stack.c (parse_frame_specification): Parse as many arguments
5045 as there are (up to MAXARGS). Pass all of them in argc, argv
5046 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
5047 many there were, onto SETUP_ARBITRARY_FRAME.
5048 * tm-mips.h, tm-sparc.h: Corresponding changes.
5049 * mips-tdep.c, sparc-tdep.c: Ditto.
5050
6edd74ae
JG
5051Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
5052
5053 * hp300ux-nat.c: Update copyrights.
5054 * mipsread.c (parse_partial_symbols): Complain about block
5055 indexes that go backwards. Fix from Peter Schauer.
5056 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
5057 symbol-file that has no linkage symbols to be read.
5058 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
5059 from tm- file to xm-file, since they're host dependent.
5060 * valarith.c (value_binop): Typo.
797bc12b 5061
6edd74ae 5062Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
797bc12b
SG
5063
5064 * sparclite/aload.c: Add copyleft.
5065 * sparclite/crt0.s: Add comment at beginning.
5066
2431d063
SC
5067Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5068
5069 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
5070 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
5071
d112a0c6
MT
5072Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
5073
7cb0f870
MT
5074 * values.c (value_headof): Fix typo in which VTBL and ARG were
5075 being confused for one another.
5076
a163ddec
MT
5077 * valops.c (typecmp): Now static.
5078
edf67bd1
MT
5079 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
5080 baseclass--we don't always inherit its virtual function table
5081 pointer.
5082
271e5030
MT
5083 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
5084 pointer correctly in case value_struct_elt moves it around.
5085
5086 * valops.c (typecmp): Now static. Also, now groks references
5087 better.
5088
d112a0c6 5089 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
271e5030 5090 zero on recursive call. If NAME is the name of TYPE, return TYPE.
d112a0c6 5091
3d9b9577
JG
5092Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
5093
ec68a93f
JG
5094 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
5095 to avoid "too much defining" error from native C compiler (!).
5096
3d9b9577
JG
5097 * Makefile.in (HFILES): Add typeprint.h.
5098 * typeprint.[ch]: Update copyrights.
5099
926d7800
JG
5100Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
5101
bdec39b3
JG
5102 * Makefile.in: Update to match doc/ subdir changes.
5103
92063c3e 5104 * config/hp300hpux.mh: No cross-host file needed, just native.
71e60679
JG
5105 * config/go32.mh: Remove nonexistent "native" support.
5106
2a770cac
JG
5107 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
5108 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
5109 * m88k-tdep.c (next_insn): Lint, cleanup.
5110 (store_parm_word): Lint.
5111
926d7800
JG
5112 * README: Fix typo (reported by karl@hq.ileaf.com).
5113
2fcc38b8
FF
5114Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
5115
5116 * expression.h (BINOP_CONCAT): Document use for self concatenation
5117 an integral number of times.
5118 * language.c (binop_type_check): Extend BINOP_CONCAT for self
5119 concatenation case.
5120 * valarith.c (value_concat): Rewrite to support self
5121 concatenation an integral number of times.
2fcc38b8
FF
5122 * Makefile.in (ch-exp.tab.c): Change "expect" message.
5123 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
5124 eliminate hundreds of spurious shift/reduce and reduce/reduce
5125 conflicts that mask the 5 real ones.
5126 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
5127 * ch-exp.y (integer_literal_expression): Remove production,
5128 no longer used.
2fcc38b8
FF
5129
5130Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
5131
5132 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
5133 implied that "no side effects" was nonfunctional.
5134 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
5135 character string and bitstring concatenation.
5136 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
5137 * expression.h (exp_opcode): Add BINOP_CONCAT.
5138 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
5139 * language.c (string_type): Add function to determine if a type
5140 is a string type.
5141 * language.c (binop_type_check): Add case for BINOP_CONCAT.
5142 * valarith.c (value_concat): New function to concatenate two
5143 values, such as character strings or bitstrings.
5144 * valops.c (value_string): Remove error stub and implement
5145 function body.
5146 * value.h (value_concat): Add prototype.
2fcc38b8
FF
5147 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
5148 * ch-exp.y (yylex): Recognize SLASH_SLASH.
5149 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
5150 BINOP_CONCAT.
2fcc38b8
FF
5151
5152Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
5153
5154 * c-exp.y (exp): Add production to support direct creation
5155 of array constants using the obvious syntax.
5156 * c-valprint.c (c_val_print): Set printed string length.
5157 * dwarfread.c (read_tag_string_type): New prototype and
5158 function that handles TAG_string_type DIEs.
5159 * dwarfread.c (process_dies): Add case for TAG_string_type
5160 that calls new read_tag_string_type function.
5161 * expprint.c (print_subexp): Add support for OP_ARRAY.
5162 * gdbtypes.c (create_range_type, create_array_type): Inherit
5163 objfile from the index type.
2fcc38b8
FF
5164 * ch-typeprint.c (chill_print_type): Add case for
5165 TYPE_CODE_STRING.
5166 * ch-valprint.c (chill_val_print): Fix case for
5167 TYPE_CODE_STRING.
2fcc38b8 5168
201c1243
ILT
5169Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
5170
5171 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
5172 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
5173 include/coff/mips.h.
5174
c4413e2c
FF
5175Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
5176
5177 * c-exp.y (exp:STRING): Convert C strings into array-of-char
5178 constants with an explicit null byte terminator. OP_STRING is
5179 now used for real string types.
5180 * c-lang.c (builtin_type_*): Move declarations to lang.c since
5181 they are used by all languages.
5182 * c-lang.c (_initialize_c_language): Move initializations of
5183 builtin_type_* to lang.c.
5184 * c-typeprint.c (c_type_print_varspec_prefix,
5185 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
5186 to TYPE_CODE_STRING.
5187 * c-valprint.c (c_val_print): Change the way character arrays
5188 are printed as strings to be consistent with the way strings
5189 are printed when pointer-to-char types are dereferenced.
5190 Remove test of print_max before calling val_print_string, which
5191 now does it's own test.
5192 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
5193 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
5194 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
5195 * gdbtypes.c (builtin_type_*): Add declarations moved from
5196 c-lang.c.
5197 * gdbtypes.c (create_string_type): New function to create real
5198 string types.
5199 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
5200 renamed to TYPE_CODE_STRING.
5201 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
5202 builtin_type_* types moved from c-lang.c.
5203 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
5204 to TYPE_CODE_STRING.
5205 * gdbtypes.h (builtin_type_string): Add extern declaration.
5206 * gdbtypes.h (create_string_type): Add prototype.
5207 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
5208 renamed to TYPE_CODE_STRING.
5209 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
5210 TYPE_CODE_STRING.
5211 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
5212 renamed to TYPE_CODE_STRING.
5213 * parse.c (length_of_subexp, prefixify_subexp): Add case for
5214 OP_ARRAY.
5215 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
5216 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
5217 to TYPE_CODE_STRING.
5218 * valops.c (allocate_space_in_inferior): New function and
5219 prototype, using code ripped out of value_string.
5220 * valops.c (value_string): Rewritten to use new function
5221 allocate_space_in_inferior, but temporarily disabled until some
5222 other support is in place.
5223 * valops.c (value_array): New function to create array constants.
5224 * valprint.c (val_print_string): Add comment to document use,
5225 complete rewrite to fix several small buglets.
5226 * value.h (value_array): Add prototype.
5227 * value.h (val_print_string): Change prototype to match rewrite.
c4413e2c
FF
5228 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
5229 * ch-exp.y (match_character_literal): Disable recognition of
5230 control sequence form of character literals and document why.
c4413e2c 5231
6d1e8f54
SG
5232Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
5233
5234 * nindy-share/nindy.c: Add comments to #endif's to clarify
5235 grouping.
5236
5237 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
5238 read_memory to get byte order right.
5239 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
5240 anymore. This is done in paread.c now. We expect unwind info
5241 to hang off of objfiles, and search all of the objfiles when until
5242 we find a match.
5243 * (skip_trampoline_code): Cast arg to target_read_memory.
5244 * objfiles.h (struct objfile): Add new field obj_private to hold
5245 per object file private data (unwind info in this case).
5246 * paread.c (read_unwind_info): New routine to read unwind info
5247 for the objfile. This data is hung off of obj_private.
5248 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
5249 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
5250 make this easier to access.
5251
c7da3ed3
FF
5252Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
5253
5254 * c-valprint.c (cp_print_class_member): Add extern decl.
5255 * c-valprint.c (c_val_print): Extract code for printing methods
5256 and move it to cp_print_class_method in cp-valprint.c.
5257 * c-valprint.c (c_val_print): Extract code to print strings and
5258 move it to val_print_string in valprint.c.
5259 * cp-valprint.c (cp_print_class_method): New function using
5260 code extracted from c_val_print.
5261 * valprint.c (val_print_string): New function using code
5262 extracted from c_val_print.
5263 * value.h (val_print_string): Add prototype.
c7da3ed3
FF
5264 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
5265 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
5266 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
5267 CHECKBUF, growbuf_by_size): New variables, macros, and support
5268 functions for implementing a dynamically expandable temp buffer.
5269 * ch-exp.y (match_string_literal): New lexer function.
5270 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
5271 removed and replaced with new CHECKBUF macro.
5272 * ch-exp.y (yylex): Call match_string_literal when appropriate.
5273 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
c7da3ed3 5274
0213d96f
SG
5275Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
5276
78205fb6
SG
5277 * Makefile.in: Add info for paread.o.
5278 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
5279
0213d96f
SG
5280 * blockframe.c (frameless_look_for_prologue): Correct the
5281 comment.
5282 * gdbtypes.h, gdbtypes.c: Use const in decl of
5283 cplus_struct_default, now that pa-gas assembler has been fixed.
5284 * hppah-nat.c: Formatting.
5285 * hppah-tdep.c: Remove lots of useless externs for variables we
5286 don't use.
5287 * (find_unwind_entry): Speed up by using binary search, and a one
5288 entry cache.
5289 * (rp_saved): New routine to see what unwind info says about RP
5290 being saved on the stack frame.
5291 * (frame_saved_pc): Look for prologue to see if we need to
5292 examine the stack for the saved RP or not.
5293 * (init_extra_frame_info): Check for prologue, instead of
5294 framesize to determine if we are frameless or not.
5295 * (frame_chain_valid): Stop backtraces when we run into _start.
5296 * (push_dummy_frame): Reformat to make more readable.
5297 * (find_dummy_frame_regs): ditto.
5298 * (hp_pop_frame): ditto.
5299 * (hp_restore_pc_queue): small cleanup.
5300 * (hp_push_arguments): ditto.
5301 * (pa_do_registers_info): ditto.
5302 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
5303 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
5304 * Define FRAME_CHAIN_VALID.
5305 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
5306 passed to functions.
5307
5308 * paread.c (pa_symtab_read): Use new bfd conventions for
5309 accessing linker symbol table.
5310 * (pa_symfile_init): Access embedded STAB info via BFD section
5311 mechanism and related macros.
5312
5313
bfc55a5d
SG
5314Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
5315
5316 * sparc-stub.c: Use a seperate stack for our traps.
5317 * Handle recursive traps.
5318 * Remove all trap init code. This needs to be done by the
5319 environment.
5320 * (set_mem_fault_trap): Call exceptionHandler() to setup this
5321 trap.
5322 * (handle_exception): See if we are at breakinst, if so, then
5323 advance PC sp that users can just step out of breakpoint().
5324 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
5325 new place if SP has changed.
5326 * (case 's'): Get rid of this, we can't do it yet.
5327 * (case 't'): New command to test any old random feature.
5328 * (case 'r'): New command to reset the system.
5329 * (breakpoint): Add label to breakpoint trap instruction so that
5330 handle_exception() can detect where we are and get past the
5331 breakpoint trivially.
5332
f92743ae
ILT
5333Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
5334
5335 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
5336
bfc55a5d
SG
5337Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5338
5339 * configure.in: recognise all sparclite variants
5340
f92743ae
ILT
5341Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5342
5343 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
5344 binary files oring in the right bit.
5345
5346 * main.c, source.c, state.c, symmisc.c: use macros defined in
5347 fopen-{bin|both} when fopening files.
5348
81028ab0
FF
5349Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
5350
5351 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
5352 from a configuration file (typically including <limits.h>), or to
5353 TARGET_CHAR_BIT if CHAR_BIT is not defined.
5354 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
5355 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
5356 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
5357 * exppritn.c (print_subexp, dump_expression): Add case for
5358 OP_BITSTRING.
5359 * expression.h (OP_BITSTRING): New expression element type for
5360 packed bitstrings.
5361 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
5362 macros to convert between number of expression elements and bytes
5363 to store that many elements.
5364 * i960-tdep.c (leafproc_return): Use new macros to access
5365 minimal symbol name and address fields.
5366 * m88k-pinsn.c (sprint_address): Use new macros to access
5367 minimal symbol name and address fields.
5368 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
5369 minimal symbol address field.
5370 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
5371 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
5372 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
5373 Use new BYTES_TO_EXP_ELEM macro.
5374 * parse.c (write_exp_bitstring): New function to write packed
5375 bitstrings into the expression element vector.
5376 * parse.c (length_of_subexp, prefixify_subexp): Add case for
5377 OP_BITSTRING.
5378 * parser-defs.h (struct stoken): Document that it is used for
5379 OP_BITSTRING as well as OP_STRING.
5380 * parser-defs.h (write_exp_bitstring): Add prototype.
81028ab0
FF
5381 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
5382 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
5383 LOWER, LENGTH): New tokens for keywords.
5384 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
5385 upper_lower_argument, length_argument, array_mode_name,
5386 string_mode_name, variant_structure_mode_name): New non-terminals
5387 and productions.
5388 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
5389 * ch-exp.y (match_bitstring_literal): New lexer support function
5390 to recognize bitstring literals.
5391 * ch-exp.y (tokentab6): New token table for 6 character keywords.
5392 * ch-exp.y (tokentab5): Add LOWER, UPPER.
5393 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
5394 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
5395 * ch-exp.y (yylex): Check tokentab6.
5396 * ch-exp.y (yylex): Call match_bitstring_literal.
81028ab0 5397
76a0ffb4
FF
5398Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
5399
2eda1cdf
FF
5400 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
5401 symbol name and value fields.
5402
533d1dc7
FF
5403 * c-exp.y (yylex): Make static, to match prototype and other
5404 <lang>-exp.y files.
5405
76a0ffb4
FF
5406 * expression.h (exp_opcode): Add BINOP_MOD.
5407 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
5408 * expprint.c (dump_expression): Handle new BINOP_MOD.
5409 * language.c (binop_type_check): Handle new BINOP_MOD.
5410 * main.c (float_handler): Re-enable float handler when hit.
5411 * valarith.c (language.h): Include, need current_language.
5412 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
5413 for integer divide truncates towards zero for negative results.
5414 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
5415 * valarith.c (value_binop): Allow arithmetic operations on
5416 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
76a0ffb4
FF
5417 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
5418 * ch-exp.y (tokentab3): Add MOD and REM.
5419 * ch-exp.y (yylex): Set innermost_block for symbols found
5420 in local scopes. Return LOCATION_NAME for local symbols.
5421 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
5422 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
76a0ffb4 5423
f92743ae
ILT
5424Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
5425
5426 * command.c (shell_escape, make_command, _initialize_command):
5427 don't create or use fork if CANT_FORK is defined.
5428 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
5429 code written for the IBM PC" remain.
5430 * xm-go32.h: define CANT_FORK
5431
ec25d19b
SC
5432Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
5433
5434 * remote-sim.c: first attempt at general simulator interface
5435 * remote-hms.c: whitespace
5436 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
5437 understand new stack layout. (print_register_hook): print ccr
5438 register in a fancy way.
5439
fb6e675f
FF
5440Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
5441
5442 * eval.c (language.h): Include.
5443 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
5444 to pointer types when the current language is C. It loses for
5445 other languages when the lower index bound is nonzero.
5446 * valarith.c (value_subscript): Take array lower bounds into
5447 account when performing subscripting operations.
5448 * valops.c (value_coerce_array): Add comment describing why
5449 arrays with nonzero lower bounds are dealt with in value_subscript,
5450 rather than in value_coerce_array.
5451
54bbbfb4
FF
5452Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
5453
1188fbbf
FF
5454 * ch-exp.y (FLOAT_LITERAL): Add token.
5455 * ch-exp.y (literal): Add FLOAT_LITERAL.
5456 * ch-exp.y (match_float_literal): New lexer routine.
5457 * ch-exp.y (convert_float): Remove.
5458 * ch-exp.y (yylex): Call match_float_literal.
5459 * ch-exp.y (yylex): Match single '.' after trying
5460 to match floating point literals.
1188fbbf 5461
54bbbfb4
FF
5462 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
5463 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
5464 MULTI_SUBSCRIPT.
5465 * expprint.c (dump_expression): New function for dumping
5466 expression vectors during gdb debugging.
5467 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
5468 MULTI_SUBSCRIPT and moved out of BINOP range.
5469 * expression.h (DUMP_EXPRESSION): New macro that calls
5470 dump_expression if DEBUG_EXPRESSIONS is defined.
5471 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
5472 * parse.c (length_of_subexp, prefixify_subexp): Change
5473 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
5474 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
5475 prefixify'ing the expression.
5476 * printcmd.c (print_command_1): Add comment.
54bbbfb4
FF
5477 * ch-exp.y (expression_list): Add useful actions.
5478 * ch-exp.y (value_array_element): Add useful actions.
5479 * ch-exp.y (array_primitive_value): Add production.
5480 * ch-exp.y (yylex): Recognize ',' as a token.
54bbbfb4 5481
ea81b10d
DZ
5482Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
5483
5484 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
5485 POSIXize the recursive makes (make [variable assignments] target{s})
5486
7532cf10
FF
5487Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
5488
5489 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
5490 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
5491 CPLUS_MARKER for all SVR4 systems, so follow suit.
5492 * defs.h (strdup_demangled): Remove prototype.
5493 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
5494 SYMBOL_INIT_LANGUAGE_SPECIFIC.
5495 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
5496 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
5497 prim_record_minimal_symbol_and_info): Use new macro
5498 SYMBOL_INIT_LANGUAGE_SPECIFIC.
5499 * minsyms.c (install_minimal_symbols): Use new macro
5500 SYMBOL_INIT_DEMANGLED_NAME.
5501 * stabsread.c (define_symbol): Use new macro
5502 SYMBOL_INIT_DEMANGLED_NAME.
5503 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
5504 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
5505 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
5506 SYMBOL_INIT_DEMANGLED_NAME.
5507 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
5508 SYMBOL_DEMANGLED_NAME now tests language itself.
5509 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
5510 now tests language itself.
5511 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
5512 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
5513 mangled name member in the language dependent portion of a symbol.
5514 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
5515 mangled name member appropriate for a symbol's language.
5516 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
5517 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
5518 SYMBOL_DEMANGLED_NAME now tests language itself.
5519 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
5520 initializes language dependent portion of symbol.
5521 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
5522 demangles and caches the demangled form of symbol names.
5523 * utils.c (fputs_demangled, fprint_symbol): Use current language
5524 to select an appropriate demangling algorithm.
5525 * utils.c (strdup_demangled): Remove, no longer used.
7532cf10
FF
5526 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
5527 access the Chill mangled name member in the language dependent
5528 portion of a symbol.
5529 * ch-lang.c (chill_demangle): New function, simple demangler.
5530 * defs.h (chill_demangle): Add prototype.
5531 * symtab.h (language_dependent_info): Add struct for Chill.
7532cf10 5532
6e50aeb4 5533For older changes see ChangeLog-92
bd5635a1
RP
5534\f
5535Local Variables:
5536mode: indented-text
5537left-margin: 8
5538fill-column: 74
5539version-control: never
5540End:
This page took 0.447082 seconds and 4 git commands to generate.