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