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