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