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