Add v9 sanitization support.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
1Thu Jul 1 15:50:05 1993 Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)
2
3 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
4 * config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
5 * config/m68k/dpx2.m{h,t}: New files.
6
7Sun Jul 11 12:32:08 1993 Doug Evans (dje@canuck.cygnus.com)
8
9 * config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
10 more parens around macro arg.
11
12Sat Jul 10 09:54:17 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
13
14 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
15 step_resume_break_address with step_resume_breakpoint (now local
16 to wait_for_inferior).
17 ({insert,remove}_step_breakpoint): Remove.
18 (wait_for_inferior): Set step resume break with
19 set_momentary_breakpoint. Test hitting it with bpstat_stop_status
20 and bpstat_what (stop_step_resume_break removed).
21 * breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
22 which includes previous return value as main_action, and a step_resume
23 bit.
24 * breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
25 there is another breakpoint there, insert it.
26 * infrun.c (wait_for_inferior): Rearrange the spaghetti a bit. Use
27 a few more gotos.
28 Various: Clean up and add comments.
29
30 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
31 for Wed Nov 13 16:45:13 1991).
32
33Fri Jul 9 12:36:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
34
35 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
36
37 * h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
38 not short *.
39
40 * findvar.c, defs.h
41 ({extract,store}_{signed_integer,unsigned_integer,address}):
42 New routines to replace SWAP_TARGET_AND_HOST.
43 All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
44
45 * config/sparc/tm-sparc.h: Add comment suggesting that removing
46 ins and locals from the registers array might clean things up.
47
48 * utils.c: Clean up comments about wrap buffer and wrap_here.
49 * printcmd.c (printf_command): Call wrap_here before vprintf.
50
51 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
52 Patch from ptf@delcam.co.uk (Paul Flinders).
53
54 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins.
55
56Fri Jul 9 09:47:02 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
57
58 * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
59 * mips-tdep.c (init_extra_frame_info): Set proper fci->frame if pc
60 is at the start of the dummy code.
61
62Thu Jul 8 14:48:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
63
64 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
65 stuff, just write the sp and fp.
66 (sparc_pop_frame): Skip the do_restore_insn; we already restore
67 the sp with the other out registers.
68
69 * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
70 arguments.
71
72 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep.
73
74Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com)
75
76 * config/h8300/tm-h8300.h: (REGISTER_TYPES): Adjust for h8/300h.
77 (REGISTER_RAW_SIZE): Ditto.
78 (REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs
79 on the h8/300h (ints may still be 16 bits).
80 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
81 EXTRACT_STRUCT_VALUE_ADDRESS): Add FIXME's for h8/300h. Some
82 thought needed here.
83
84 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
85 (examine_prologue): reg_save_depth is 4 if h8/300h.
86
87 * findvar.c (read_register): Provide some support for 64 bit regs.
88 (write_register): Ditto.
89
90Wed Jul 7 14:30:00 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
91
92 * config/mips/nm-riscos.h: machine/machparam.h is always the right
93 place to look for BSD43_NBPG, not machine/vmparam.h
94
95 * infcmd.c (run_stack_dummy): New argument name.
96 Change error message in (another) attempt to make it comprehensible.
97 * valops.c (call_function_by_hand): Pass name to run_stack_dummy.
98 * symtab.h: Declare demangle and asm_demangle since macros use them.
99
100 * eval.c (evaluate_subexp): Add comment about calling a member
101 function of a variable in a register.
102
103 * expression.h: Clean up comment about string in STRUCT_STRUCT etc.
104
105 * config/{rs6000/tm-rs6000.h,sparc/tm-sparc.h,pyr/tm-pyr.h},
106 inferior.h (PC_IN_CALL_DUMMY) [ON_STACK]: Add comments about stack
107 frame tops and bottoms.
108
109 * frame.h, blockframe.c, stack.c, a29k-tdep.c,
110 config/gould/tmp-{pn,np1}.h,
111 config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
112 next_frame from struct frame_info. It has no purpose beyond
113 ->next->frame and is an artifact from GDB 2.8.
114
115Tue Jul 6 11:51:18 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
116
117 * Makefile.in: Remove gdb before creating a new one.
118 Update init.c atomically.
119
120 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
121 (ALLCONFIG): Add config/alpha/alpha-osf1.mh.
122
123 * infcmd.c (_initialize_infcmd): In docstring for "continue",
124 describe argument as setting ignore count.
125
126Sun Jul 4 15:04:47 1993 Doug Evans (dje@cygnus.com)
127
128 * h8300-tdep.c (examine_prologue): Fix call to
129 read_memory_unsigned_integer.
130
131Fri Jul 2 18:22:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
132
133 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
134 rather than including xm-bigmips.h.
135
136 * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
137 default cases.
138
139 * Makefile.in (distclean): Remove y.tab.h.
140
141Fri Jul 2 14:55:48 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
142
143 * exec.c (exec_file_command): Remove Mar 28 hack as BFD handles
144 file updates properly now.
145 * mipsread.c (mips_coff_new_init): Force reevaluation of sigtramp
146 addresses if switching to a new symbol file.
147 * dbxread.c (process_one_symbol): Avoid dereferencing NULL
148 symbols that might be returned from define_symbol.
149
150Fri Jul 2 13:33:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
151
152 New target macros for getting at the pc, sp and fp.
153 * infcmd.c (read_pc, write_pc): Modify to use new macros.
154 (read_sp, write_sp, read_fp, write_fp): New functions.
155 * blockframe.c (reinit_frame_cache, get_prev_frame_info):
156 Use new functions.
157 * breakpoint.c (bpstat_alloc): ditto.
158 * infrun.c (wait_for_inferior): ditto.
159 * stack.c (print_frame_info): ditto.
160 * valops (call_function_by_hand): ditto.
161 * corelow.c (core_open): ditto.
162 * h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
163 target_write_pc, target_read_fp, target_write_fp): New functions.
164 * inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
165
166 * config/alpha/xm-alpha.h: Add MAKEVA_END.
167 * config/h8500/tm-h8500.h: Define new macros.
168
169Fri Jul 2 13:51:04 1993 Ian Lance Taylor (ian@cygnus.com)
170
171 * configure.in (mipos-*-riscos*): New host and target; use riscos.
172 * config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
173 vmparam.h, include machparam.h.
174 (KERNEL_U_ADDR): Define to be BSD43_UADDR.
175
176Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
177
178 * c-exp.y (yylex): Give error if unmatched single quote.
179
180 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
181
182 * Remove unused STACK_END_ADDR in the following files (in other
183 files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
184 tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
185 tm-hp300hpux.h, tm-isi.h.
186
187Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com)
188
189 * config/mips/nm-riscos.h: Define NBPG and UPAGES.
190 config/mips/xm-riscos.h: Include <sys/types.h>.
191
192 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
193 not an initializer, to copy the structure.
194
195 * gdbtypes.h (struct type): Add field tag_name.
196 * gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
197 Use it.
198 * {coff,dwarf,mips,stabs}read.c: Set it.
199
200 * xm-sysv4.h: Undefine HAVE_TERMIO.
201
202 * config/mips/nm-riscos.h: Remove unmatched #endif.
203 Define FETCH_INFERIOR_REGISTERS.
204 * config/mips/riscos.mh: Don't include coredep.o; mips-nat.o is enough.
205 Fix misspelling of NAT_FILE.
206 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
207 we can still process "modern" core files.
208
209 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
210 print c_line.
211 (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
212 is defined; don't care what it is defined to.
213
214Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
215
216 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO.
217
218Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
219
220 * inftarg.c: Remove unused include of terminal.h.
221 * signals.h: Don't undefine signals anymore.
222 * main.c: Use job_control from serial.h.
223 * fork-child.c (fork_inferior): Use gdb_setpgid.
224 * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
225 * utils.c (quit): Use current_target->to_terminal_ours to figure
226 out whether we care about lack of job control, rather than __GO32__.
227 * utils.c: Include serial.h not terminal.h
228 (quit): Use job_control not TIOCGPGRP.
229 * terminal.h: Don't undefine TIOCGPGRP.
230 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
231 * utils.c (quit): Use it.
232 * serial.h: Add SERIAL_UN_FDOPEN.
233 * utils.c (quit): Use it.
234 * ser-unix.c: Add process group to ttystate.
235 [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
236 * inflow.c: Include serial.h not terminal.h.
237 Use serial.h stuff to replace most of the maze of #ifdef's.
238 * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
239 * serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
240 * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
241 * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
242 Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
243 SERIAL_SET_PROCESS_GROUP.
244 * inflow.c: Use them.
245 * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
246 Define HAVE_TERMIOS.
247 * Various: Remove all use of TIOC*_BROKEN.
248
249Wed Jun 30 12:20:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
250
251 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define.
252
253Tue Jun 29 13:44:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
254
255 * target.h (target_detach): Turn macro into function.
256 * target.c (target_detach): Define it, do deferred register stores
257 before calling the real target function.
258
259Tue Jun 29 13:15:42 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
260 and Jim Kingdon (kingdon@cygnus.com)
261
262 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
263 a function to avoid printing of function arguments in wrong order
264 due to sorting.
265 * symfile.c (compare_symbols): Remove code for sorting arguments
266 as blocks containing arguments are no longer sorted.
267 * symtab.c (lookup_block_symbol): Update comment accordingly.
268
269Tue Jun 29 11:02:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
270
271 * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
272 (REG_STRUCT_HAS_ADDR): Add comment.
273
274 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
275 to check whether there is line number information.
276
277Tue Jun 29 08:29:17 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
278
279 * remote-udi.c: Fix docstring so that it compiles.
280
281 * remote-mips.c, remote-nindy.c: move bfd.h before symfile.h
282 (for file_ptr).
283
284Tue Jun 29 09:11:27 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
285
286 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
287 don't expect it, change it to LOC_STATIC so at least we don't coredump.
288
289 * c-typeprint.c (c_type_print_base): Don't error() on invalid type.
290
291 * symtab.h: Add comments about line numbers.
292 * source.c (identify_source_line): Fix off by one bug with line.
293
294Mon Jun 28 10:09:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
295
296 * printcmd.c (makeva*): New interface, for making a va_list.
297 (printf_command): Use it.
298 * config/m88k/xm-delta88.h: Remove VPRINTF define, not needed.
299 * config/pa/xm-pa.h: New file.
300 * config/pa/xm-hppa{b,h}.h: Include it.
301
302 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment.
303
304Sun Jun 27 08:54:55 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
305
306 * valprint.c (val_print_type_code_int): Fix off by one error with
307 eliminating leading zeroes for large little endian integers.
308
309Sun Jun 27 08:58:56 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
310
311 * config/mips/riscos.mh (CC): Use -systype sysv.
312
313 * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section.
314
315 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h.
316
317Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
318
319 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
320 CALL_DUMMY between different 68k machines.
321
322Fri Jun 25 17:02:45 1993 Stu Grossman (grossman at cygnus.com)
323
324 * remote.c: Add arg names to prototypes, in a modest effort at
325 clarification. Also add prototypes for some new functions.
326 * (remote_wait): Better error reporting for 'T' responses.
327 * ser-go32.c (strncasecmp): Make str1 & str2 be const.
328 * (dos_async_init): Make usage message reflect requested port #.
329 * ser-tcp.c (tcp_open): Terminate hostname properly to prevent
330 random hostname lookup failures. Add nicer message for unknown
331 host error. (wait_for): Wake up in case of exceptions. Also,
332 restart select() if we got EINTR.
333 * ser-unix.c (wait_for): Restart select() if we got EINTR.
334 * serial.c: (serial_close): Clean up code.
335
336Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
337
338 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
339 Make comment explaining this comprehensible.
340 (TAGFILES): Include ALLDEPFILES.
341 (ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
342 29k-share/udi/udi.
343 (update-alldeps): Remove; obsolete.
344
345 * remote.c: Move comments regarding packets to top of file with the
346 rest of the protocol comments.
347 Fix incorrect description of 'T' response.
348
349 * README (Reporting Bugs): Refer people to the GDB manual.
350
351 * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
352 * stabsread.c: Type -16 is 4 bytes.
353
354 * remote-udi.c: Improve docstring.
355
356Fri Jun 25 11:16:31 1993 Fred Fish (fnf@cygnus.com)
357
358 * elfread.c (elf_symfile_read): Call bfd_elf_find_section, not
359 bfd_elf32_find_section, to track bfd changes.
360
361Fri Jun 25 11:22:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
362
363 * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define.
364 * config/mips/xm-riscos.h: Define USG.
365
366Thu Jun 24 14:52:45 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
367
368 * main.c (filename_completer): Don't complete to files ending in ~.
369
370 * NEWS: Mention filename completion and "info line" enhancements.
371
372 * main.c (symbol_completion_function): On "info t foo", return NULL,
373 don't error().
374
375 * main.c (symbol_completion_function): Don't use readline word
376 breaking. Use new calling convention for c->completer and
377 complete_on_cmdlist.
378 * command.h (struct command): Change arguments; now the text passed
379 to completer does not have any word breaking done. New arg word.
380 * symtab.{c,h} (make_symbol_completion_list): Do word breaking. Take
381 word argument.
382 * {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
383 * command.{c,h} (complete_on_cmdlist): Take word argument.
384
385 * command.c (lookup_cmd_1): Doc fix.
386
387Thu Jun 24 13:26:04 1993 K. Richard Pixley (rich@sendai.cygnus.com)
388
389 * Makefile.in (OP_INCLUDE): define.
390 (OPCODE_CFLAGS): use OP_INCLUDE.
391
392 * config/i386/ncr3000.mh, config/i386/i386v4.mh,
393 config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
394 config/m68k/amix.mh, config/mips/irix[34].mh,
395 config/m88k/delta88.mh, config/sparc/sun4sol2.mh (ALLOCA,
396 ALLOCA1): macros removed.
397
398 * config/mips/decstation.mh, config/rs6000/rs6000.mh
399 (MMALLOC_LIB): renamed to MMALLOC.
400
401Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
402
403 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
404 * dbxread.c: Change comment regarding acc.
405
406Wed Jun 23 15:04:54 1993 K. Richard Pixley (rich@sendai.cygnus.com)
407
408 Makefile overhaul dropping autodepend features.
409 * Makefile.in: many comment changes. forced consistent use of $()
410 for makefile variables references. dropped leading ./ in file
411 references. Drop $(srcdir)/ prefix on all dependencies.
412 Inserted contents of alldeps.mak and depend.
413 (INCLUDE_CFLAGS): defined as new macro for getting libiberty's
414 include directory into the compilation line.
415 (GDB_CFLAGS): new macro to take up the semantic previously held
416 by INCLUDE_CFLAGS.
417 (LIBIBERTY): dropped ancient subdir macro. I last removed this
418 macro in feb of '92. How does it keep coming back?
419 (MMALLOC_LIB): renamed to MMALLOC.
420 (BFD_SRC_DIR): renamed to BFD_SRC.
421 (BFD_OBJ_DIR): renamed to BFD_DIR.
422 (BFD_LIB): renamed to BFD.
423 (BFD_INCLUDES): renamed to BFD_CFLAGS.
424 (READLINE_DIR): now represents object directory.
425 (RL_LIB): renamed to READLINE.
426 (READLINE_SRC, READLINE_CFLAGS, OPCODES, OPCODES_CFLAGS): new
427 macros.
428 (INTERNAL_CFLAGS): added GDB_CFLAGS, OPCODES_CFLAGS,
429 READLINE_CFLAGS, BFD_CFLAGS. Dropped USER_CFLAGS.
430 (LDFLAGS): removed default assignment.
431 (TEXIDIR, INCLUDE_DEP, MMALLOC_DIR, MMALLOC_DEP, BFD_DEP,
432 READLINE_DEP, LIBIBERTY_DIR, TESTS, depend, STAGESTUFF): unused, so removed.
433 (ALLOCA1, ALLOCA): removed all references. alloca is now in
434 libiberty.
435 (VERSION): unilaterally and arbitrarily bumped to 4.9.3.
436 (SFILES, NONSRC, HFILES, ALLDEPFILES, ALLPARAM, ALLCONFIG):
437 removed all $(srcdir) prefixes.
438 (getopt_h, ieee-float_h, bfd_h, wait_h, dis-asm_h): new macros
439 for potential dependencies. commented out by default.
440 (readline_headers, udiheaders): convenient abbreviations.
441 (gdbcore_h, frame_h, symtab_h, gdbtypes_h, expression_h,
442 value_h, breakpoint_h, command_h, gdbcmd_h, defs_h, inferior_h):
443 new macros used for header file dependencies.
444 (install-info, clean-info): collapse into the info rule.
445 (install): now depends on all.
446 (install-only): new target for installing without depending on
447 all.
448 (uninstall): new target.
449 (config-check, config-check-hosts, config-check-targets): added
450 fixme comments.
451 (ch-exp.tab.c, m2-exp.tab.c): added artificial dependencies in
452 order to force parallel makes into keeping these rules separate.
453 * configure.in: omit cat'ing depend file onto generated Makefile.
454 * alldeps.mak, depend: removed.
455
456 * inferior.h: remove redundant include of symtab.h which is
457 included in value.h via breakpoint.h.
458
459 * alloca.c: removed. alloca is now in libiberty.
460
461 * config/m88k/delta88.mh, config/ns32k/merlin.mh (M_UNINSTALL):
462 new macro to undo what M_INSTALL does.
463
464Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
465
466 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
467 of gdb-sh.
468
469 * dbxread.c (copy_pending): Change name and function of begi argument
470 to endi, since that is what the caller needs.
471
472 * Makefile.in (TAGFILES): Don't include YYFILES.
473
474 * Makefile.in (HFILES): Include monitor.h.
475
476 * Makefile.in: Include text that used to be in alldeps.mak.
477 Remove config/mips/{bigmips.mh,xm-bigmips} from it.
478 * Makefile.in, configure.in: Remove all traces of alldeps.mak.
479
480 * main.c (main): Print help message on stdout not stderr
481 per standards.texi.
482 New option --version per standards.texi.
483 In help message, show long options with "--" not "-".
484 Don't try to print help message or version until after we have
485 called initialize_all_files.
486
487Tue Jun 22 03:15:38 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
488
489 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
490 (solib_add): Call special_symbol_handling once, not once per library.
491
492 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
493 is SIG_DFL.
494
495 * procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
496 systems, not just Solaris.
497
498 * stabsread.c: Include <ctype.h>.
499
500Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
501
502 * fork-child.c (fork_inferior): Quote exec_file so it can contain
503 funky characters.
504
505Mon Jun 21 16:56:47 1993 Fred Fish (fnf@cygnus.com)
506
507 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
508 bfd.h is included by target.h, which most of gdb includes.
509 * depend: Hand remove BFD_INCLUDES from ${CC} lines, now that
510 it's in INCLUDE_CFLAGS.
511
512Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
513
514 * config/i386/*aix*, i386aix-nat.c: New files.
515 * configure.in: Use them.
516 * alldeps.mak: List them.
517 * coffread.c (decode_base_type): Deal with anonymous enum type.
518 * i387-tdep.c (print_387_status_word): Add comment re "top".
519 * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
520 * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
521 only if not defined by a header file.
522 * mipsread.c: Don't define L_SET or L_INCR.
523
524Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
525
526 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
527 * depend: Hand updated to match.
528
529Sun Jun 20 13:11:11 1993 Jim Kingdon (kingdon@cygnus.com)
530
531 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
532 (read_cpp_abbrev): Don't complain specially for $_. Also return 0 if
533 we don't recognize the abbrev.
534
535Sun Jun 20 00:24:41 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
536
537 * solib.c (solib_add_common_symbols): Add comment about performance.
538
539Fri Jun 18 12:37:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
540
541 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
542 * configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
543
544 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
545 * config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
546 * configure.in (mips-sony-*): Use news-mips for host.
547
548 * buildsym.h: Doc fix for processing_acc_compilation.
549
550Thu Jun 17 19:57:08 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
551
552 * printcmd.c (print_formatted): Don't use tab in wrap_here arg.
553
554Thu Jun 17 17:29:30 1993 Jim Kingdon (kingdon@lisa.cygnus.com)
555
556 * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
557 ${srcdir}/../include.
558
559 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
560 with system headers.
561 * printcmd.c (printf_command): Cast second arg to vprintf to PTR.
562 Use VPRINTF macro if defined.
563 * config/m88k/xm-delta88.h: Define VPRINTF. Include <sys/siginfo.h>.
564 Define TIOC{GETC,GLTC}_BROKEN.
565 * m88k-nat.c: Uncomment include of <sys/ptrace.h>.
566 * main.c: Rename initialize_{main,cmd_lists,history} to init_* to
567 make things easier on munch (apparently this matters on
568 the delta88 with svr3).
569
570Thu Jun 17 16:53:56 1993 david d `zoo' zuhn (zoo@cygnus.com)
571
572 * Makefile.in: canonicalize install.sh; for use within
573 this directory (and subdirs)
574
575Tue Jun 15 17:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
576
577 * Makefile.in: remove parentdir support; use INSTALL_XFORM
578
579Thu Jun 17 15:08:35 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
580
581 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
582 host.
583 * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
584 wired (and wrong) constant.
585 * values.c (unpack_long): Add case to unpack when target object is
586 sizeof(int).
587 * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
588 simulator defines.
589
590Wed Jun 16 16:08:18 1993 K. Richard Pixley (rich@sendai.cygnus.com)
591
592 * NEWS: tracking user visible changes starting with
593 vxworks-timeout.
594
595 * remote-vx.c (_initialize_vx): rename user settable option from
596 rpcTimeout to vxworks-timeout.
597
598Wed Jun 16 12:21:49 1993 Fred Fish (fnf@cygnus.com)
599
600 * Makefile.in (depend): More makefile diddling.
601 * alldeps.mak, depend: Update to latest automatically built
602 versions.
603
604 * Makefile.in (depend): Bfd.h keeps moving, keep up with it.
605 * alldeps.mak, depend: Update to latest automatically built
606 versions.
607
608Tue Jun 15 12:26:05 1993 K. Richard Pixley (rich@sendai.cygnus.com)
609
610 * remote-vx.c: include gdbcmd.h for setlist.
611 (_initialize_vx): make rpcTimeout user settable.
612
613Mon Jun 14 09:23:51 1993 Jim Kingdon (kingdon@cygnus.com)
614
615 * main.c, gdbcmd.h: Add function filename_completer.
616 * main.c, symfile.c, source.c, exec.c, core.c: Use it for
617 "directory", "source", "cd", "symbol-file" "add-symbol-file",
618 "load", "file", "exec-file", "core-file" commands.
619 (But '/' is a word break, limiting usefulness; see comments).
620
621 * source.c (mod_path): Warning not error if can't find directory.
622
623 * isi-xdep.c: New file.
624 * config/m68k/isi.mh (XDEPFILES): Add isi-xdep.o
625
626Sun Jun 13 09:17:48 1993 Jim Kingdon (kingdon@cygnus.com)
627
628 * config/m68k/xm-news.h: Include <sys/param.h>.
629
630 * m88k-tdep.c (IEEE_isNAN): Remove.
631 config/m88k/tm-m88k.h (INVALID_FLOAT): Return 0. This was the same
632 broken isNAN as on the mips.
633
634 * valprint.c (_initialize_valprint): Use c->function.sfunc not just
635 c->function.
636
637 * dbxread.c (process_one_symbol): If SUN_FIXED_LBRAC_BUG is not
638 defined, don't worry about Sun's silly LBRAC bug.
639 * config/m68k/tm-sun3.h: Define SUN_FIXED_LBRAC_BUG to 0.
640
641 * dbxread.c (process_one_symbol): If there's a symbol before an
642 N_SO, don't error().
643 (case N_BCOMM): complain () not error ().
644
645 * defs.h, main.c (catch_errors): Add return_mask arg.
646 stack.c (print_frame_info): Pass RETURN_MASK_ERROR.
647 other callers: Pass RETURN_MASK_ALL.
648 (return_to_top_level), callers: Add return_reason arg.
649 * utils.c (quit):
650 Use return_to_top_level (RETURN_QUIT) instead of error ().
651 * main.c (main), tm-nindy960.h (ADDITIONAL_OPTION_HANDLER):
652 Use SET_TOP_LEVEL not setjmp (to_top_level).
653 * remote-nindy.c: Use catch_errors not setjmp (to_top_level).
654
655Sat Jun 12 14:40:54 1993 Jim Kingdon (kingdon@cygnus.com)
656
657 * solib.c (solib_create_inferior_hook) [SVR4_SHARED_LIBS]:
658 Don't try to get the debug base yet.
659
660 * dbxread.c (process_one_symbol): Set n_opt_found based on whether
661 a non-gcc N_OPT symbol is found. Make SUN_FIXED_LBRAC_BUG a macro
662 which returns 0 or 1 to say whether to do it.
663 * config/sparc/sun4{sol2,os4}.h
664 (SUN_FIXED_LBRAC_BUG,VARIABLES_INSIDE_BLOCK): Use n_opt_found so
665 the right thing happens for both acc and SunOS4 /bin/cc.
666
667 * valprint.c (print_hex_chars): Use local_hex_format_{pre,suf}fix.
668 * printcmd.c (print_scalar_formatted): Use val_print_type_code_int.
669
670 * mips-tdep.c: Remove isa_NAN; it assumed sizeof(host int) == 4 and
671 probably contained byte-order sins too.
672 config/mips/tm-mips.h (INVALID_FLOAT): Define to 0 like most machines.
673 The IEEE_FLOAT code in print_floating takes care of it.
674
675Sat Jun 12 14:47:04 1993 Fred Fish (fnf@cygnus.com)
676
677 * Makefile.in (VERSION): Bump to 4.9.2.
678 * c-valprint.c (c_val_print): For array of chars printed with
679 string syntax, don't print the address of the array. From
680 bothner@cygnus.com.
681 * c-exp.y (yylex): Recognize '.' as indicating a floating point
682 number regardless of the radix. From wilson@cygnus.com.
683 * valprint.c (set_input_radix_1, set_output_radix_1): New
684 prototypes and functions that do the actual radix setting work.
685 * valprint.c (set_radix, set_output_radix, set_input_radix):
686 Rewrite to use set_input_radix_1 and set_output_radix_1.
687 * valprint.c (initialize_valprint): Enable commands to
688 independently set and show input and output radices.
689 * valprint.c (show_radix): New prototype and function that
690 handles separate input and output radices.
691
692Fri Jun 11 18:39:38 1993 Ken Raeburn (raeburn@cygnus.com)
693
694 Patches from Jeff Law, law@cs.utah.edu:
695 * hppa-pinsn.c: Now uses disassembler from opcode library,
696 this contains only the stub function print_insn.
697
698Fri Jun 11 15:19:59 1993 K. Richard Pixley (rich@cygnus.com)
699
700 * main.c (main): back to two periods for elipse.
701 (print_gdb_version): revised format for configuration info.
702
703Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
704
705 * defs.h (INT_MAX): Cast unsigned shift result to int.
706
707Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
708
709 * dbxread.c (process_one_symbol): Rather than having
710 BLOCK_ADDRESS_FUNCTION_RELATIVE a macro, make it a variable which
711 is true if we are doing stabs-in-elf, false otherwise.
712 config/sparc/tm-sun4sol2.h: Don't define it.
713
714Fri Jun 11 13:33:40 1993 Ian Lance Taylor (ian@cygnus.com)
715
716 * remote-mips.c (mips_send_packet): Don't print garbage character
717 in debugging info.
718 (mips_request): Don't check that remote pid is 0, because
719 sometimes it isn't.
720 (mips_fetch_registers): Pass a pointer to SWAP_TARGET_AND_HOST,
721 not an integer.
722
723Fri Jun 11 10:17:41 1993 Jim Kingdon (kingdon@cygnus.com)
724
725 * stack.c (print_frame_info): Use catch_errors around print_frame_args.
726
727 * Makefile.in (install): Don't depend on gdb.
728
729 * Rename remote-es1800.c to remote-es.c
730 and remote-st2000.c to remote-st.c for 14-char filenames.
731 config/m68k/{es1800,st2000}: Use the new names.
732
733 * mips-tdep.c (isa_NAN): Don't return true on -0.
734
735Fri Jun 11 10:24:35 1993 Fred Fish (fnf@cygnus.com)
736
737 * defs.h (INT_MAX): Cast unsigned shift result to int.
738
739Thu Jun 10 13:26:41 1993 Fred Fish (fnf@cygnus.com)
740
741 * elfread.c (elf_symtab_read): Add bfd section address to bfd
742 symbols, now that they are section relative.
743 * solib.c (bfd_lookup_symbol): Ditto.
744
745Thu Jun 10 10:56:56 1993 Jim Kingdon (kingdon@cygnus.com)
746
747 * Makefile.in (depend): Add bfd -I's for paread.c and xcoffexec.c
748 depend: Updated accordingly.
749
750Wed Jun 9 16:08:44 1993 Jim Kingdon (kingdon@cygnus.com)
751
752 * Makefile.in (*.tab.c): Use mv for atomic update.
753
754 * Makefile.in ({dist,real}clean): Also remove nm.h.
755 (realclean): Also remove ${TESTS}, y.output, yacc.{acts,tmp}.
756 (distclean): Don't rebuild *.tab.c or TAGS.
757
758Wed Jun 9 12:56:58 1993 K. Richard Pixley (rich@cygnus.com)
759
760 * Makefile.in (version.c): add host and target names to version.c.
761 * main.c (main): print three periods for the elipse.
762 (print_gdb_version): also print configuration.
763
764 * udi/udiids.h, udi/udip2soc.c, udi/udiphcfg.h, udi/udiphunix.h,
765 udi/udiproc.h, udi/udipt29k.h, udi/udiptcfg.h, udi/udisoc.h,
766 udi/udr.c: Change AMD copyrights to FSF copyleft '93.
767
768 * remote-eb.c (get_hex_regs, eb_fetch_registers), remote-adapt.c
769 (get_hex_regs, adapt_fetch_registers): cast args to
770 supply_register to avoid gcc warning.
771
772 * config/a29k/a29k.mt (TDEPFILES): drop minimon support. It
773 doesn't compile on solaris and is now obsolete.
774
775 * config/sparc/sun4os4.mh (XM_CLIBS): remove -lresolv. This
776 breaks stock sunos installations.
777
778Wed Jun 9 06:14:33 1993 Jim Kingdon (kingdon@cygnus.com)
779
780 * m68k-stub.c: Add comment about frame cache.
781
782 * target.h (target_store_registers): Doc fix re error handling.
783
784 * findvar.c (write_register): Call SWAP_TARGET_AND_HOST regardless
785 of register_valid[regno].
786
787Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
788
789 * symtab.h, dwarfread.c: Doc fix re dependencies.
790
791Tue Jun 8 17:54:09 1993 Rob Savoye (rob@rtl.cygnus.com)
792
793 * serial.c (serial_close): If scb is NULL, don't try to close
794 it.
795 * configure.in: Add support for rom68k and bug boot monitors.
796
797Tue Jun 8 17:39:12 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
798
799 * coffread.c (init_stringtab): Fix bug where sizeof(long) != 4.
800 * gdbcore.h, core.c (read_memory_unsigned_integer): New function.
801 * findvar.c (read_register, write_register): Fix thinko where
802 sizeof(host long) != sizeof(target int).
803 * h8300-tdep.c: Use new read_memory_unsigned_integer call.
804 * sh-tdep.c (_initialize_sh_tdep): Add memory_size command.
805
806Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
807
808 * Move config/m68k/tm-m68k.h (FRAME_FIND_SAVED_REGS) to
809 m68k-tdep.c (m68k_find_saved_regs). Don't duplicate code between
810 68881 and non-68881 cases. Check for a pair of movel instructions.
811
812Tue Jun 8 14:52:55 1993 K. Richard Pixley (rich@sendai.cygnus.com)
813
814 First cut at sparc-vxworks targetting.
815 * config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt: new files.
816 * configure.in: sparc-vxworks gdb_target now vxsparc.
817
818 * remote-eb.c, remote.c: symfile.h requires bfd.h so include it.
819
820Tue Jun 8 14:42:10 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
821
822 * config/m68k/xm-news.h: add "extern int errno".
823
824Tue Jun 8 13:45:07 1993 K. Richard Pixley (rich@sendai.cygnus.com)
825
826 * remove-vx.c (vx_read_register, vx_write_register): collapse
827 ifdef I80960 else (assumes) m68k into parameterizable macros
828 VX_NUM_REGS and VX_SIZE_FPREGS.
829 * config/m68k/tm-vx68.h, config/i960/tm-vx960.h (VX_NUM_REGS,
830 VX_SIZE_FPREGS): new definitions.
831
832Tue Jun 8 11:08:29 1993 Jim Kingdon (kingdon@cygnus.com)
833
834 * symfile.{c,h} (generic_load): New function.
835 remote{,-nindy,-eb,-mips}.c: Use it.
836
837Mon Jun 7 20:07:30 1993 Stu Grossman (grossman@cygnus.com)
838
839 * Makefile.in (depend): More sed gubbish to deal with
840 ../bfd/bfd.h being generated during the build.
841 * depend: Re-done with corrected makefile.
842
843Mon Jun 7 16:32:05 1993 Fred Fish (fnf@cygnus.com)
844
845 * Makefile.in (BFD_SRC_DIR): Renamed def and usages from BFD_DIR.
846 * Makefile.in (BFD_OBJ_DIR): New definition for the bfd build
847 directory to find automatically generated header files and library.
848 * Makefile.in (BFD_LIB): Use BFD_OBJ_DIR.
849 * Makefile.in (LINTFLAGS): Include BFD_OBJ_DIR.
850 * Makefile.in (saber_gdb): Include BFD_OBJ_DIR.
851 * Makefile.in (depend): Include BFD_OBJ_DIR in gcc args.
852 * Makefile.in (paread.o, xcoffexec.o): Remove, now in depend.
853 * depend, alldeps.mak: Rebuild after Makefile.in changes.
854
855Fri Jun 4 10:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
856
857 * configure.in: change lynx support to CPU-*-lynxos*
858
859 * Makefile.in (subdir_do): change test from existence of directory
860 to existence of Makefile (the directory may exist but not be configured)
861
862Thu Jun 3 01:18:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
863
864 * config/sparc/xm-sun4sol2.h: define MEM_FNS_DECLARED
865
866Fri Jun 4 10:43:33 1993 Ian Lance Taylor (ian@cygnus.com)
867
868 * configure.in (mips-idt-ecoffl*): New target; use idtl.
869 (mips-idt-ecoff*): Added trailing '*'.
870 * config/mips/idtl.mt: New file; like idt.mt, but little endian.
871
872Thu Jun 3 17:36:56 1993 Stu Grossman (grossman@cygnus.com)
873
874 * ser-go32.c: Clean up lots of compilation nits.
875
876Thu Jun 3 14:44:57 1993 Stu Grossman (grossman@cygnus.com)
877
878 * Patches from Jeffrey Law <law@cs.utah.edu>.
879 * hppab-nat.c: Eliminate unnecessary ifdefs for
880 FETCH_INFERIOR_REGISTERS, CANNOT_FETCH_REGISTER, and
881 CANNOT_STORE_REGISTER.
882 (fetch_register): Delete code to handle CANNOT_FETCH_REGISTER.
883 * hppa-pinsn.c: Support 'I', 'J', and 'K' in output
884 templates for 1.1 FP computational instructions.
885
886Thu Jun 3 03:34:49 1993 Stu Grossman (grossman@cygnus.com)
887
888 * Makefile.in: Remove ser-tcp.[co]. (Use XDEPFILES instead.)
889 * alldeps.mak, depend: Rebuild to account for ser-tcp.
890 * config/sparc/sun4os4.mh: Add ser-tcp to XDEPFILES.
891 * gdbserver/Makefile.in (gdbserver): Use -lbsd.
892 * gdbserver/remote-inflow{-sparc}.c (create_inferior): Don't use a
893 shell when running the child, as args have been expanded by the
894 time we get here. Simplify calling convention.
895 * gdbserver/remote-server.c (main): Use new calling convention
896 for create_inferior, remove defunct code for coalescing argv.
897 Remove extra calls to mywait(), as we no longer have to wade
898 through a shell.
899
900 * target.c (target_read_memory_partial): Don't deref errnoptr
901 when checking for null pointer.
902
903Wed Jun 2 19:58:46 1993 John Gilmore (gnu@cygnus.com)
904
905 * remote-es1800.c: Fix typo.
906
907Tue Jun 1 21:22:39 1993 Fred Fish (fnf@cygnus.com)
908
909 * target.c (target_read_memory_partial): Like target_read_memory,
910 but does partial reads, such as reads that bump into the end of
911 the address space.
912 * target.h (target_read_memory_partial): Add prototype.
913 * valprint.c (PRINT_MAX_DEFAULT): New define, initial value 200.
914 * valprint.c (val_print_string): Complete rewrite to fix bug with
915 bumping into end of memory, avoiding unnecessarily long reads, and
916 fixing bug when print_max is set to 0 (unlimited print length).
917 * valprint.c (_initialize_valprint): Use PRINT_MAX_DEFAULT to
918 initialize print_max.
919
920Tue Jun 1 18:11:35 1993 Rob Savoye (rob at darkstar.cygnus.com)
921
922 * configure.in: Add support for rom68k and bug boot monitors.
923
924Mon May 31 10:37:04 1993 Jim Kingdon (kingdon@cygnus.com)
925
926 * printcmd.c (print_scalar_formatted): Print integers bigger than
927 LONGEST in hex no matter how big, and no matter what the format
928 and size.
929
930 * stabsread.c (read_type): Skip type attributes if present.
931
932 * stabsread.c (read_huge_number): Don't accept '0' + radix as part
933 of number, just through '0' + radix - 1.
934
935Sun May 30 15:35:21 1993 Fred Fish (fnf@cygnus.com)
936
937 * Makefile.in (SER_HARDWIRE): Temporarily comment out ser-tcp.o.
938
939 * {dbxread.c, dwarfread.c} (read_ofile_symtab): Rewrite to take
940 single parameter, the pointer to the partial symtab, rather than
941 a bunch of args that are derived from the partial symtab. Change
942 prototypes and callers to match.
943
944 * dbxread.c (read_ofile_symtab): Remove "#if 1" around code to
945 set demangling style automatically.
946 * defs.h (CPLUS_MARKER): Clarify comment that this is only for
947 GNU C++, not C++ in general.
948 * symtab.h (general_symbol_info): Simplify by eliminating one
949 structure level for the language dependent info.
950
951Sat May 29 15:59:29 1993 Fred Fish (fnf@cygnus.com)
952
953 * c-typeprint.c (c_type_print_base): Avoid dereferencing NULL
954 names for TYPE_CODE_STRUCT and TYPE_CODE_UNION types.
955 TYPE_CODE_ENUM was already testing for this.
956
957Fri May 28 17:18:05 1993 Stu Grossman (grossman@cygnus.com)
958
959 * Makefile.in: Add new file ser-tcp.c.
960 * defs.h (memcmp): Add decl for memcmp to #ifndef MEM_FNS_DECLARED.
961 * findvar.c (write_register): See if we are writing back the same
962 value that's already in the register. If so, don't bother.
963 * remote.c (putpkt, getpkt): Improve handling of communication
964 problems.
965 * ser-go32.c: Prototype it to death. Update serial_ops and add
966 dummy routines where appropriate.
967 * ser-tcp.c: New module to implement serial I/O via TCP
968 connections.
969 * ser-unix.c: Clean up getting/setting of tty state. Get rid of
970 SERIAL_RESTORE, add SERIAL_{GET|SET}_TTY_STATE interfaces.
971 * serial.c: Add start of support for connect command.
972 (serial_open): Distinguish between tcp and local devices.
973 * serial.h (struct serial_ops): Get rid of restore, add
974 get_tty_state and set_tty_state. Define protoypes and macros for
975 this mess.
976 * gdbserver/remote-utils.c: Add tcp support. (readchar): Do
977 some real buffering. Handle error conditions gracefully.
978 * gdbserver/remote-inflow-sparc.c: Update to remote-inflow.c
979 (Lynx), remove lots of cruft.
980
981Fri May 28 17:24:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
982
983 * printcmd.c (print_address_symbolic): turn this into an assigment
984 instead of an initialization (many compilers don't accept
985 structure initialization).
986
987Thu May 27 16:56:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
988
989 * xcoffread.c (read_xcoff_symtab): If several program csects in one
990 source file, give them all the name of the source file, rather than
991 the 2nd and subsequent ones having NULL names.
992
993Thu May 27 06:16:56 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
994
995 * printcmd.c (print_address_symbolic): Append source filename and
996 linenumber of the symbol if print symbol-filename is on.
997 (initialize_printcmd): `set print symbol-filename'.
998
999Wed May 26 13:46:16 1993 Stu Grossman (grossman@cygnus.com)
1000
1001 * configure.in: Add config for Lynx target. Configure gdbserver
1002 only for Lynx. Re-do selective configuration of sparclite.
1003
1004 * gdbserver/{remote-gutils.c remote-server.c Makefile.in
1005 configure.in remote-inflow.c remote-utils.c}: New files to
1006 support GDB remote server. Currently only works for Lynx.
1007
1008Wed May 26 10:28:14 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1009
1010 * stabsread.c (define_symbol, case 't'): Only set the name if it
1011 is not a pointer type.
1012
1013 * stabsread.c (define_symbol): Clean up logic; move the read_type
1014 calls to inside the switch statement (this improves the error
1015 handling).
1016
1017 * mipsread.c (parse_symbol, parse_partial_symbols): Deal with Fortran
1018 common blocks.
1019
1020Tue May 25 20:44:24 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1021
1022 * printcmd.c (print_formatted, case 'i'): Pass a tab to wrap_here.
1023
1024 * source.c (line_info): Change "pc" to "address" in messages and
1025 use print_address for addresses.
1026
1027 * source.c (line_info): If we don't find a symtab, print more useful
1028 output, including the symbolic address.
1029
1030 * source.c (line_info): If --fullname, display the source.
1031 (identify_source_line), callers: Take pc as argument, rather than
1032 assuming innermost frame (emacs doesn't use this, so no one ever
1033 noticed).
1034 * symtab.h: Declare frame_file_full_name.
1035 * main.c: Don't.
1036
1037Tue May 25 15:30:43 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
1038
1039 * breakpoint.c (catch_command_1): Fix typo in error msg.
1040
1041Tue May 25 16:05:55 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1042
1043 * elfread.c (elf_symfile_read): Update ELF structure and routine
1044 names to specify 32-bit versions.
1045 (elf_symtab_read): Retrieve size field directly from symbol,
1046 instead of using old kludge.
1047
1048 * mips-pinsn.c (print_insn): Cast address to bfd_vma before
1049 calling opcodes library.
1050 * z8k-tdep.c (print_insn): Likewise.
1051
1052Tue May 25 13:06:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1053
1054 * stabsread.c: Remove all uses of error(). Make error_type and
1055 read_type_number static.
1056 (define_symbol): Don't try to deal with a missing symbol
1057 descriptor which isn't followed by digit, '(', or '-'.
1058 * stabsread.h: Don't declare read_type_number here.
1059 * gdbtypes.h: Don't declare error_type here.
1060 * xcoffread.c: Remove NO_TYPEDEFS code.
1061
1062Tue May 25 09:33:16 1993 Ian Lance Taylor (ian@cygnus.com)
1063
1064 * mips-tdep.c: Removed #include of many header files, and #define
1065 of MIPSMAGIC; no longer used.
1066
1067Tue May 25 09:36:13 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1068
1069 * Many places: replace "the inferior" in messages with "the program"
1070 or "the program being debugged".
1071 * inflow.c (try_writing_regs): Remove; it's been #if 0'd forever
1072 and I'm getting sick of maintaining it.
1073
1074 * config/i386/linux.mh: Don't use \ newline; the awk scripts don't
1075 support it.
1076
1077 * config/i386/go32.mh: Define SER_HARDWIRE.
1078 * Makefile.in: Define SER_HARDWIRE.
1079 (DEPFILES): Use it.
1080 (alldeps.mak): Add SER_HARDWIRE.
1081 Remove all references to ser-hardwire.{c,o}.
1082 * configure.in: Remove all ser_hardwire and gdb_serial_driver stuff.
1083
1084Mon May 24 23:50:05 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1085
1086 * sparc-nat.c (store_inferior_registers): Fill in all members of
1087 inferior_fp_registers by reading them from the inferior before
1088 modifying and writing them back.
1089 Fixes unexplainable inferior FP exceptions after calls to the inferior
1090 or setting of floating point registers.
1091 * mips-tdep.c (mips_skip_prologue): Skip move of argument register
1092 to register which is generated by gcc-2.4.
1093
1094Tue May 25 00:42:39 1993 Ken Raeburn (raeburn@cygnus.com)
1095
1096 * hppa-pinsn.c: Define OLD_TABLE before including opcode/hppa.h.
1097
1098Mon May 24 13:55:14 1993 Stu Grossman (grossman@cygnus.com)
1099
1100 * config/i386/{i386lynx.mh i386lynx.mt nm-i386lynx.h tm-i386lynx.h
1101 xm-i386lynx.h}: New configuration for Lynx.
1102
1103Mon May 24 10:01:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1104
1105 * mipsread.c (parse_symbol): Deal with scVar and scVarRegister.
1106 * symtab.h: Comment that LOC_REGPARM_ADDR can be call by reference.
1107
1108 * c-typeprint.c (c_type_print_base): Don't print typedef'd names
1109 as struct, union, or enum tags.
1110
1111Mon May 24 01:10:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1112
1113 * symmisc.c (dump_msymbols): Avoid gdb coredump with stripped
1114 executable.
1115
1116Sat May 22 10:03:09 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1117
1118 * infrun.c (wait_for_inferior),
1119 infcmd.c (program_info, signal_command): Use symbolic signal names.
1120
1121 * inftarg.c (child_wait): Deal with EINTR and include message from
1122 strerror if printing an error message.
1123
1124 * main.c (command_line_input): Use STOP_SIGNAL not SIGTSTP.
1125
1126 * stabsread.c: Remove most uses of lookup_fundamental_type.
1127 (define_symbol): Use read_type for type of enum constant,
1128 not just read_type_number. Also don't call error().
1129 (define_symbol): For unrecognized constant type, one complaint (the
1130 one from error_type) is enough. Don't make our own in addition.
1131 (define_symbol): Don't treat an N_FUN 'R' as a prototype.
1132 * gdbtypes.h: Doc fixes.
1133
1134Sat May 22 03:33:07 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1135
1136 Fix stack unwinding through _sigtramp on Irix. These patches are from
1137 Paul Flinders <ptf@delcam.co.uk>.
1138 * mipsread.c (fixup_sigtramp): Find _sigtramp on Irix even when the
1139 executable uses sigvec.
1140 * mips-tdep.c (read_next_frame_reg): Allow tm-file to override
1141 sigcontext offsets.
1142 * config/mips/tm-irix3.h: Add sigcontext offsets for Irix.
1143
1144Sat May 22 00:39:01 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1145
1146 * infrun.c (wait_for_inferior): Clear stop_signal if it should not
1147 be passed to the inferior to make "handle <signal> nopass nostop" work.
1148
1149Sat May 22 00:21:41 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1150
1151 * config/mips/tm-irix3.h: Clean up, use tm-bigmips.h and redefine
1152 the necessary bits.
1153 * findvar.c (value_from_register): Fix uninitialized first_addr
1154 which caused problems with assignment of doubles to register variables
1155 on some targets.
1156 * mipsread.c: Remove TM_FILE_OVERRIDE, include tm.h and provide the
1157 missing mips definitions if necessary.
1158
1159 Fix handling of double register variables for mips targets and big
1160 endian hosts. These patches are from Paul Flinders <ptf@delcam.co.uk>.
1161 * config/mips/tm-mips.h: Increase MAX_REGISTER_{RAW,VIRTUAL}_SIZE to
1162 8 bytes for doubles.
1163 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): New macro for
1164 conversion of type held in multiple registers to host format.
1165 * config/mips/tm-mips.h (REGISTER_CONVERT_FROM_TYPE): New macro,
1166 companion to REGISTER_CONVERT_TO_TYPE.
1167 * config/mips/tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE):
1168 Convert to function calls.
1169 * config/mips/tm-mips.h (FIX_CALL_DUMMY): New code for big endian
1170 mips targets.
1171 * mips-tdep.c (mips_print_register): Raw buffer now needs just
1172 MAX_REGISTER_RAW_SIZE bytes.
1173 * mips-tdep.c (mips_print_register): Use REGISTER_CONVERT_TO_TYPE
1174 (if defined) for doubles.
1175 * mips-tdep.c: (mips_extract_return_value, mips_store_return_value):
1176 New functions, take care of REGISTER_CONVERT_TO/FROM_TYPE.
1177 * valops.c (value_assign): Use REGISTER_CONVERT_TO_TYPE if
1178 defined.
1179 * findvar.c (value_from_register): Use REGISTER_CONVERT_TO_TYPE if
1180 defined.
1181
1182Fri May 21 09:04:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1183
1184 * configure.in: Add i[34]86-*-isc*.
1185
1186 * stabsread.c: Make sure all complain() pass the address of the struct.
1187
1188 * xcoffread.c: Make sure all struct complaints are static not auto.
1189
1190 * Makefile.in: Add rule for xcoffexec.o like that for paread.o.
1191
1192 * xcoffread.c (process_xcoff_symbol, case C_LSYM): Use define_symbol.
1193
1194Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1195
1196 * config/i386/linux.mh: Re-enable coredumps now that they should work.
1197
1198Wed May 19 15:44:20 1993 K. Richard Pixley (rich@cygnus.com)
1199
1200 * config/m68k/tm-m68k.h (FRAME_CHAIN): add missing close paren.
1201
1202Wed May 19 15:33:57 1993 Stu Grossman (grossman@cygnus.com)
1203
1204 * config/pa/nm-hppab.h: Comment PTRACE_ARG3_TYPE.
1205
1206Wed May 19 12:33:59 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1207
1208 * Makefile.in (INSTALLED_LIBS): New variable.
1209
1210Tue May 18 14:08:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1211
1212 * main.c (quit_command): In the "quit anyway?" message, tell the user
1213 whether we are planning to detach or kill the program.
1214
1215 * config/vax/vaxbsd.mh: Add "NAT_FILE= nm-vax.h".
1216 * config/vax/xm-vaxbsd.h: Use <sys/param.h> not <machine/limits.h>
1217
1218 * infcmd.c (read_pc): Doc fix.
1219
1220 * printcmd.c (print_address_symbolic): Use %u not %d for offset.
1221
1222 * blockframe.c (get_prev_frame_info): If pc in sigtramp, set
1223 signal_handler_caller.
1224 * tm-68k.h (FRAME_{CHAIN,SAVED_PC}): Deal with sigtramp.
1225 * tm-hp300bsd.h: Define SIGTRAMP_{START,END} not IN_SIGTRAMP.
1226 * inferior.h (IN_SIGTRAMP): Definition moved from infrun.c.
1227 Use SIGTRAMP_START if defined.
1228 * infcmd.c (step_1): Use SIGTRAMP_{START,END} if needed.
1229 * infrun.c (wait_for_inferior): Check IN_SIGTRAMP before SKIP_PROLOGUE.
1230
1231 * infptrace.c: Remove unused KERNEL_U_ADDR_HPUX code.
1232
1233 * infcmd.c (step_1): Fix poorly worded error message.
1234
1235 * config/{i386/linux.mh,m68k/isi.mh} (NATDEPFILES):
1236 Comment out corelow.c because core dumps are broken on these machines.
1237
1238 * Makefile.in (depend): Put "${srcdir}" in generated dependencies
1239 if srcdir is not ".".
1240 Also put in -I${BFD_DIR} or -I${READLINE_DIR} for files which need it.
1241 (INCLUDE_CFLAGS): Remove BFD_DIR and READLINE_DIR.
1242 * depend: Update to latest automatically built version.
1243
1244Tue May 18 08:10:45 1993 Fred Fish (fnf@cygnus.com)
1245
1246 * ChangeLog, ChangeLog-92: Split ChangeLog at 1993.
1247 * Makefile.in (NONSRC): Add ChangeLog-92
1248
1249Tue May 18 08:03:37 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1250
1251 * findvar.c ({read,write}_register): Use REGISTER_RAW_SIZE
1252 not typo RAW_REGISTER_SIZE.
1253
1254 * frame.h, inferior.h: Doc fixes.
1255
1256Mon May 17 15:43:03 1993 Stu Grossman (grossman@cygnus.com)
1257
1258 * findvar.c (write_register): Add sanity check for register size.
1259 (read_register): Fixup sanity check for register size to be
1260 consistent with write_register().
1261
1262Mon May 17 07:36:20 1993 Ian Lance Taylor (ian@cygnus.com)
1263
1264 * sparclite/Makefile.in: Add dummy info, install and install-info
1265 targets.
1266
1267Thu May 13 07:30:22 1993 Ian Lance Taylor (ian@cygnus.com)
1268
1269 * remote-nindy.c: Removed declaration of coffstrip.
1270 * nindy-share/nindy.c: #if 0 coffstrip routine; no longer used.
1271
1272Wed May 12 00:35:19 1993 Fred Fish (fnf@cygnus.com)
1273
1274 * Makefile.in (VERSION): Bump to 4.9.1 after release and cvs
1275 tagging.
1276
1277 * Makefile.in (VERSION): GDB 4.9 release.
1278
1279Tue May 11 08:04:41 1993 Fred Fish (fnf@cygnus.com)
1280
1281 * README: Update known bugs to include the Solaris bug that
1282 leaves core dumps in the current directory when restarting the
1283 inferior with "run". Expand on the testsuite information.
1284
1285 * Makefile.in (VERSION): Bump to 4.8.96 for what should hopefully
1286 be the last 4.9 prerelease test archive.
1287
1288Mon May 10 22:13:23 1993 Jim Kingdon (kingdon@cygnus.com)
1289
1290 * config/m68k/xm-hp300bsd.h: Include <sys/param.h> to avoid INT_MAX
1291 redefined warnings.
1292
1293Mon May 10 20:00:43 1993 Fred Fish (fnf@cygnus.com)
1294
1295 * README, NEWS: Update for gdb 4.9 release.
1296
1297Mon May 10 19:38:34 1993 John Gilmore (gnu@cygnus.com)
1298
1299 * ch-exp.y (MAX, MIN): Rename to MAX_TOKEN, MIN_TOKEN.
1300 * target.c (MIN): #undef before defining.
1301
1302Mon May 10 16:03:03 1993 Jim Kingdon (kingdon@cygnus.com)
1303
1304 Patch from Jeffrey Law:
1305 * gdb/config/pa/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
1306
1307Mon May 10 15:28:27 1993 Ian Lance Taylor (ian@cygnus.com)
1308
1309 * hppa-tdep.c (hppa_push_arguments): Allocate correct amount of
1310 memory.
1311
1312Mon May 10 13:14:46 1993 Fred Fish (fnf@cygnus.com)
1313
1314 * ch-exp.y (start): Apply work-around to avoid bison warning.
1315
1316Sun May 9 07:25:02 1993 Fred Fish (fnf@cygnus.com)
1317
1318 * Makefile.in (BISON): Remove double quotes around BISON
1319 definition when bison is used.
1320
1321 * configure.in (hppa*-hp-bsd): Change to hppa*-hp-bsd*
1322 * configure.in (hppa*-hp-hpux): Change to hppa*-hp-hpux*
1323 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
1324 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
1325 * configure.in (hppa*-*-bsd): Change to hppa*-*-bsd*
1326 * configure.in (hppa*-*-hpux): Change to hppa*-*-hpux*
1327 * configure.in (m68*-hp-bsd): Change to m68*-hp-bsd*
1328 * configure.in (m68*-hp-hpux): Change to m68*-hp-hpux*
1329
1330 * Makefile.in (VERSION): Bump to 4.8.6.
1331
1332Sat May 8 12:36:03 1993 Fred Fish (fnf@cygnus.com)
1333
1334 * config/pa/xm-hppah.h (MALLOC_INCOMPATIBLE): Define it, and
1335 include declarations for malloc/realloc/free. Both malloc and
1336 realloc return 'void *' for non-ANSI compilations.
1337
1338Sat May 8 01:39:30 1993 (pes@regent.e-technik.tu-muenchen.de)
1339
1340 * coffread.c (read_coff_symtab): Don't fclose stream as it is no
1341 longer opened twice.
1342
1343Thu May 6 21:08:55 1993 Jim Kingdon (kingdon@cygnus.com)
1344
1345 * solib.c (clear_solib): Don't close bfd if it is NULL.
1346
1347Thu May 6 20:55:35 1993 Fred Fish (fnf@cygnus.com)
1348
1349 * core.c (dis_asm_read_memory): Cast second arg of
1350 target_read_memory to "char *".
1351 * breakpoint.c (watchpoint_check): Change arg type from PTR to
1352 "char *", to match other functions called by catch_errors().
1353
1354Thu May 6 15:47:45 1993 Stu Grossman (grossman@cygnus.com)
1355
1356 * More patches from Jeffrey Law (law@cs.utah.edu).
1357 * gdb/config/nm-hppab.h (PTRACE_ARG3_TYPE): Define as caddr_t.
1358 * gdb/config/pa/tm-hppah.h (millicode_start, millicode_end):
1359 Delete unnecessary declarations.
1360
1361Thu May 6 15:15:46 1993 Stu Grossman (grossman@cygnus.com)
1362
1363 * ser-unix.c (wait_for): Use VTIME to do timeouts instead of
1364 poll() for termio{s}.
1365
1366Thu May 6 10:03:41 1993 Jim Kingdon (kingdon@cygnus.com)
1367
1368 * i386-tdep.c (i386_frame_num_args): Always return -1.
1369
1370Wed May 5 15:16:33 1993 Stu Grossman (grossman@cygnus.com)
1371
1372 * Patches from Jeffrey Law <law@cs.utah.edu>.
1373 * gdb/hppa-tdep.c: Declare frame_saved_pc.
1374 (frameless_function_invocation): New function.
1375 (frame_saved_pc, init_extra_frame_info): Use
1376 frameless_function_invocation.
1377 * gdb/config/pa/tm-hppa.h (SAVED_PC_AFTER_CALL): Use saved_pc_after
1378 call instead of just grabbing the value currently in %r2.
1379 (FRAMELESS_FUNCTION_INVOCATION): Use frameless_function_invocation.
1380 * gdb/config/pa/tm-hppah.h (SAVED_PC_AFTER_CALL): Delete private
1381 definition and use the common one in tm-hppa.h.
1382 * gdb/hppa-tdep.c (frame_chain_valid): If "use_unwind" is true, then
1383 use unwind descriptors to determine if the frame chain is valid.
1384 * gdb/hppa-tdep.c (find_dummy_frame_regs): Rework so that
1385 it does not assume %r4 is the frame pointer.
1386 * gdb/hppa-pinsn.c (print_insn): Handle 'r' and 'R' for break, rsm,
1387 and ssm instructions.
1388 * gdb/hppa-tdep.c (extract_5r_store, extract_5R_store): New
1389 helper functions for print_insn.
1390 * gdb/hppa-tdep.c (gcc_p, hpux_cc_p): Delete unused functions.
1391 * gdb/config/pa/tm-hppa.h (ABOUT_TO_RETURN): Handle a return
1392 which nullifies the following instruction.
1393
1394Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1395
1396 * infptrace.c [FIVE_ARG_PTRACE]: Define ptrace to call_ptrace and
1397 pass the 5th arg there, rather than using an ANSI C-specific macro.
1398
1399 * Makefile.in (depend): Don't include ${CC} command for *.tab.c.
1400
1401Tue May 4 19:33:12 1993 Fred Fish (fnf@cygnus.com)
1402
1403 * Makefile.in (VERSION): Bump to 4.8.5
1404 * Makefile.in (INCLUDE_CFLAGS): Add BFD_DIR and READLINE_DIR
1405 directories to include search path.
1406 * Makefile.in (CLIBS, CDEPS, ADD_FILES, ADD_DEPS): Clean up
1407 whitespace.
1408 * Makefile.in (depend): For gcc -MM line, use INTERNAL_CFLAGS
1409 * Makefile.in (main.o, dbxread.o, coffread.o, mipsread.o,
1410 elfread.o, dwarfread.o, stabsread.o, xcoffread.o, xcoffexec.o,
1411 xdr_ld.o, xdr_rdb.o, nindy.o, Onindy.o, ttybreak.o, ttyflush.o,
1412 udr.o, udip2soc.o): Remove explicit rules, use the ones that
1413 are automatically generated in "depend".
1414 * Makefile.in (paread.o): Document why a dependency doesn't get
1415 automatically generated in "depend" and leave this explicit rule
1416 in for now (FIXME).
1417 * depend: Update to latest automatically generated version.
1418
1419Tue May 4 12:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1420
1421 * xcoffread.c: Doc fix.
1422
1423 * Makefile.in (depend): Include $(CC) command in generated output.
1424
1425Mon May 3 22:51:05 1993 Fred Fish (fnf@cygnus.com)
1426
1427 * Makefile.in (NONSRC): Remove ${srcdir}/putenv.c.
1428 * Makefile.in (SFILES): Add ${srcdir}/putenv.c.
1429 * depend: Update to latest automatically built version.
1430
1431Mon May 3 19:20:20 1993 Stu Grossman (grossman@cygnus.com)
1432
1433 * sparclite/Makefile.in: Create default target that does nothing
1434 in order to force user to build by hand.
1435
1436 * sparclite/Makefile: Remove. It's not necessary anymore.
1437
1438 * ser-unix.c (wait_for): New routine to handle read timeouts,
1439 etc. Uses poll() if HAVE_TERMIO[S] is defined, select() otherwise.
1440
1441Mon May 3 13:52:08 1993 Ian Lance Taylor (ian@cygnus.com)
1442
1443 * mips-pinsn.c (print_insn): Return value.
1444
1445Sun May 2 11:43:57 1993 Fred Fish (fnf@cygnus.com)
1446
1447 * Makefile.in (SFILES): Remove ser-hardwire.c; it is a link made
1448 at configuration time and doesn't belong in the distribution archive.
1449
1450 * Makefile.in (NONSRC): Add 29k-share/README.
1451 * Makefile.in (HFILES): Add 29k-share/udi/udiids.h.
1452
1453 * defs.h (UINT_MAX, LONG_MAX, INT_MAX, INT_MIN): Replace hex
1454 constants with slightly more portable definitions (still depends
1455 on 2's complement arithmetic though).
1456 * config/i386/nm-linux.h: Define NO_SYS_REG_H for no <sys/reg.h>.
1457 * i386v-nat.c (sys/reg.h): Conditionalize include on
1458 NO_SYS_REG_H. Linux doesn't have <sys/reg.h>.
1459 * ser-unix.c (termio.h): Include <termio.h> like other files that
1460 include termio.h, not <sys/termio.h> which may not exist (on
1461 linux for example).
1462
1463Sat May 1 16:05:24 1993 Fred Fish (fnf@cygnus.com)
1464
1465 * valprint.c (print_longest): Change format parameter from a
1466 'char' to an 'int'. We can't have 'char' parameters with the
1467 current coding style, where we mix prototypes with pre-ANSI
1468 style declarations.
1469 * value.h (print_longest): Change format parameter in prototype
1470 from a 'char' to an 'int'.
1471
1472Sat May 1 02:47:20 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1473
1474 * config/mips/tm-mips.h (STAB_REG_TO_REGNUM): Match it with the gcc
1475 definition.
1476 * config/mips/tm-irix3.h (STAB_REG_TO_REGNUM): Add.
1477 * irix4-nat.c (fill_fpregset): Fix bug with indexing into fpregsetp.
1478
1479Fri Apr 30 17:45:32 1993 Stu Grossman (grossman@cygnus.com)
1480
1481 * The following patches are from Jeffrey Law <law@cs.utah.edu>.
1482 * config/pa/hppabsd.mh: Add more files to NATDEPFILES.
1483 * config/pa/xm-hppa[bh].h: Define FIVE_ARG_PTRACE.
1484 * hppab-nat.c: Delete WANT_NATIVE_TARGET ifdefs.
1485 ptrace needs 5 arguments, #define ptrace to always
1486 pass zero as the 5th argument.
1487
1488Fri Apr 30 15:54:13 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1489
1490 * configure.in: Match z8k-*-sim for z8000.
1491 * config/h8500/tm-h8500.h, h8500-tdep.c: Lint.
1492 * remote-hms.c: Update to use new serial protocol.
1493
1494Fri Apr 30 16:50:38 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1495
1496 * mips-tdep.c: remove include of sys/dir.h. Doesn't seem
1497 necessary and Solaris doesn't have it.
1498
1499 * Makefile.in (clean-info, install, install-info, info, dvi,
1500 check, all): do not echo recursion lines.
1501
1502 * 29k-share/udip2soc.c (UDIConnect): replace union wait with int.
1503
1504 * config/sparc/sun4sol2.mh (XM_CLIBS): add -lsocket which is
1505 required target ports which use sockets (like a29k-udi).
1506
1507 * remote-udi.c (udi_wait): Use SIGURG, as Solaris doesn't have SIGLOST.
1508
1509Fri Apr 30 11:05:42 1993 Jim Kingdon (kingdon@cygnus.com)
1510
1511 * ser-unix.c [USE_{TERMIO,ALARM}_TIMEOUT]: New code to deal with
1512 systems lacking select().
1513
1514 * Makefile.in (TAGS): Doc fix. Deal with empty DEPFILES.
1515
1516Fri Apr 30 10:06:46 1993 Fred Fish (fnf@cygnus.com)
1517
1518 * alldeps.mak, depend: Update with latest automatically built
1519 versions.
1520
1521Thu Apr 29 12:03:23 1993 Fred Fish (fnf@cygnus.com)
1522
1523 * Makefile.in (SFILES): Add ser-unix.c and ser-go32.c.
1524
1525 * Makefile.in (make-proto-testsuite.dir): New target to make
1526 prototype testsuite tree.
1527
1528 * Makefile.in (VERSION): Bump to 4.8.4.
1529
1530Thu Apr 29 08:46:22 1993 Jim Kingdon (kingdon@cygnus.com)
1531
1532 * stabsread.c (define_symbol): If unrecognized constant type,
1533 complain() not error().
1534
1535Thu Apr 29 00:03:59 1993 Fred Fish (fnf@cygnus.com)
1536
1537 * infptrace.c: Add missing close paren to test for
1538 FIVE_ARG_PTRACE defined.
1539
1540 * defs.h (CC_HAS_LONG_LONG): Set up to define CC_HAS_LONG_LONG
1541 when compiling with gcc, but disable it for now. See comment.
1542 * defs.h (LONGEST): Define as either "long" or "long long"
1543 based on CC_HAS_LONG_LONG.
1544 * defs.h (longest_to_int): Use CC_HAS_LONG_LONG to control
1545 how longest_to_int is defined.
1546 * c-valprint.c (c_val_print): Call print_longest.
1547 * expprint.c (dump_expression): Use PRINTF_HAS_LONG_LONG
1548 instead of LONG_LONG.
1549 * {printcmd.c, gdbtypes.h} (LONG_LONG): Replace usages with
1550 CC_HAS_LONG_LONG.
1551 * printcmd.c (print_scalar_formatted): Call print_longest
1552 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
1553 * typeprint.c (print_type_scalar): Call print_longest and let
1554 it figure out what to do for PRINTF_HAS_LONG_LONG.
1555 * valprint.c (val_print_type_code_int): Call print_longest
1556 and let it figure out what to do for PRINTF_HAS_LONG_LONG.
1557 * stabsread.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
1558 * value.h (struct value): Replace usage of LONG_LONG with
1559 CC_HAS_LONG_LONG.
1560 * value.h (print_longest): Add prototype.
1561 * values.c (LONG_LONG): Replace usages with CC_HAS_LONG_LONG.
1562 * values.c (unpack_double): Collapse code that was unnecessarily
1563 dependent on CC_HAS_LONG_LONG. Use LONGEST instead of direct types.
1564 * values.c (value_from_longest): Remove dependency on
1565 CC_HAS_LONG_LONG and just use LONGEST.
1566 * solib.c (solib_map_sections): Use bfd_get_filename
1567 to access filename field.
1568 * solib.c (clear_solib): Save filename and free it later, after
1569 bfd_close, since bfd_close may reference it. Use bfd_get_filename
1570 to access the field.
1571 * config/convex/xm-convex.h (LONG_LONG): Replace with
1572 CC_HAS_LONG_LONG. Add define for PRINTF_HAS_LONG_LONG.
1573 * doc/gdbint.texinfo (LONG_LONG): Replace with CC_HAS_LONG_LONG.
1574 Add PRINTF_HAS_LONG_LONG references.
1575
1576Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1577
1578 * inflow.c (kill_command), infcmd.c (attach_command),
1579 remote.c (remote_interrupt_twice): In messages for the user, call it
1580 "the program" or "the program being debugged" not "the inferior".
1581
1582 * hp300ux-nat.c: Cast second arg to supply_register calls.
1583 (_initialize_kernel_u_addr, getpagesize): New functions.
1584 (store_inferior_register_1): Change arg name from value to val.
1585 (fetch_core_registers): Make arg core_reg_size unsigned.
1586 Pass 5 args to ptrace.
1587 * config/m68k/xm-hp300hpux.h: Define FIVE_ARG_PTRACE.
1588 Remove KERNEL_U_ADDR stuff.
1589 * infptrace.c [FIVE_ARG_PTRACE]: Pass 5th arg to ptrace.
1590 * config/m68k/hp300hpux.m{t,h}:
1591 Move exec.o from NATDEPFILES to TDEPFILES
1592 * config/m68k/hp300hpux.mt: Mention GAS requirement. Remove
1593 hp-include stuff. Add m68k-tdep.o to TDEPFILES.
1594
1595Wed Apr 28 13:27:54 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1596
1597 * ch-exp.y (yylex): Don't STREQ with simplename if it is NULL.
1598
1599Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1600
1601 * config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
1602
1603Wed Apr 28 11:39:18 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
1604
1605 * doc/gdb.texinfo: make node "Shell Commands" unconditional;
1606 describe `set demangle-style arm' (not cfront);
1607 mention can type `q' to discard output, when gdb pages
1608
1609Wed Apr 28 11:32:39 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1610
1611 * valops.c (search_struct_field): Fix gdb core dump with incomplete
1612 stabs info.
1613
1614Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1615
1616 * remote.c: Change timeout to 2.
1617 (remote_open): Use unpush_target not remote_close.
1618 (remote_resume): If siggnal != 0, give warning not error().
1619 (remote_wait, remote_interrupt, remote_interrupt_twice):
1620 If we get two interrupts, let the user get out if they want.
1621 (remote_{kill,mourn}): New functions.
1622 i386-stub.c (handle_exception, case 'k'): Don't BREAKPOINT.
1623
1624Wed Apr 28 09:20:55 1993 Ian Lance Taylor (ian@rtl.cygnus.com)
1625
1626 * config/sparc/sun4sol2.mh (XM_CLIBS): Define to be -lnsl.
1627
1628Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com)
1629
1630 * Remote targets (mourn): Call unpush_target.
1631
1632 * config/sparc/xm-sun4os4.h: Declare free() to return int.
1633 Remove twisted use of PARAMS.
1634
1635 * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now
1636 that ansidecl.h assumes ANSI on AIX.
1637
1638Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
1639
1640 * README: Move most stuff about hacking GDB to doc/gdbint.texinfo.
1641 (Known bugs): Remove AIX bugs, revise SPARC struct bug description.
1642
1643Tue Apr 27 13:44:19 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1644
1645 * expprint.c (print_subexp): Fix bug with OP_SCOPE operator output.
1646
1647Tue Apr 27 10:01:33 1993 Jim Kingdon (kingdon@cygnus.com)
1648
1649 * remote-vx.c (net_connect): Allow numeric IP address for host.
1650
1651Mon Apr 26 17:59:38 1993 Steve Chamberlain (sac@thepub.cygnus.com)
1652
1653 * config/sh/sh.mt, config/sh/tm-sh.h, sh-tdep.c: New files.
1654
1655Mon Apr 26 07:13:32 1993 Jim Kingdon (kingdon@cygnus.com)
1656
1657 * rs6000-tdep.c (branch_dest): Deal with stepping through system call.
1658
1659 * symtab.h, xcoffread.c: Revise linetable sorting comments.
1660
1661Sun Apr 25 02:32:16 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1662
1663 * valops.c (value_cast): A cast might also change the object
1664 representation in C++.
1665 * dbxread.c (end_psymtab): Copy subpst read_symtab function from pst
1666 to get the proper read_symtab function when called from mipsread.c.
1667 * mipsread.c (mipscoff_psymtab_to_symtab, psymtab_to_symtab_1):
1668 Set cur_bfd in psymtab_to_symtab_1 as CURBFD(pst) is invalid
1669 for dummy psymtabs, inhibit processing of dummy psymtabs.
1670
1671Sat Apr 24 19:59:54 1993 Jim Kingdon (kingdon@cygnus.com)
1672
1673 * Changes from (or inspired by) AMD:
1674 * remote-udi.c (udi_attach): Assignments to Space and Offset were
1675 switched, fix it.
1676 (udi_wait): Make error message (UDIGetStdout) match error.
1677 (udi_wait): Handle UDIStdinNeeded.
1678 * command.c [CANT_FORK]: Use system().
1679 * utils.c (prompt_for_continue): Allow quit with 'q'.
1680
1681 * solib.c (solib_add): Don't call special_symbol_handling if there
1682 were errors in symbol_add_stub. Also set so->from_tty before
1683 calling symbol_add_stub.
1684
1685Fri Apr 23 16:17:00 1993 Stu Grossman (grossman@cygnus.com)
1686
1687 * Merge in HPPA/BSD patches from Utah:
1688 * defs.h: Add const to 2nd arg of psignal prototype.
1689 * hppah-tdep.c: Renamed to hppa-tdep.c 'cuz it's common code with
1690 BSD now.
1691 * hppab-core.c: Deleted. No longer useful.
1692 * hppab-nat.c: #include more files. Use PT_WUREGS, not
1693 PT_WRITE_U.
1694 * hppab-tdep.c: Deleted. Supplanted by hppa-tdep.c.
1695 * config/pa/hppabsd.mh (NATDEPFILES): Remove hppab-core.o.
1696 * config/pa/hppabsd.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
1697 * config/pa/hppahpux.mt (TDEPFILES): hppab-tdep.o => hppa-tdep.o
1698 * config/pa/xm-hppab.h: #define SET_STACK_LIMIT_HUGE.
1699
1700Fri Apr 23 10:34:02 1993 Stu Grossman (grossman@cygnus.com)
1701
1702 * Fix two bugs found by deja-gnu. One is the incorrect reporting
1703 of the PC being in a stack dummy when looking at a core file
1704 without symbols. The other is the incorrect passing of char
1705 arguments during expression evaluation (ie: p foo('a','b') would
1706 mess up the passing of it's args because it wasn't coercing the
1707 char's to ints).
1708 * hppah-tdep.c: Rename global functions to have consistent hppa_
1709 prefix. Make more functions static. Drop hp_ prefix from static
1710 functions. (hppa_push_arguments): Call value_arg_coerce to cast
1711 char to int args if necessary. (hppa_fix_call_dummy): Create
1712 this routine from FIX_CALL_DUMMY macro in tm-hppa.h.
1713 * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being
1714 valid (ie: != 0) before doing comparison against PC.
1715 * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY
1716 to reflect new arguments.
1717 * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_
1718 prefix for func name. (FIX_CALL_DUMMY): Move code into
1719 hppah-tdep.c.
1720
1721 * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls
1722 to malloc() so that we can test GDB eval of dynamically created
1723 arrays (like char strings in `print "foo"').
1724
1725Fri Apr 23 01:28:14 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1726
1727 * printcmd.c (print_address_symbolic): Search symtabs as well as the
1728 minimal symbols for a nearby symbol.
1729
1730Thu Apr 22 19:44:21 1993 John Gilmore (gnu@cacophony.cygnus.com)
1731
1732 * coffread.c: Comment changes around minimal symbol recording.
1733
1734Thu Apr 22 16:24:36 1993 K. Richard Pixley (rich@rtl.cygnus.com)
1735
1736 * command.c: comment changes only.
1737
1738 * mips-tdep.c (heuristic_fence_post): new static variable.
1739 (heuristic_proc_start): use heuristic_fence_post, print better
1740 warnings, but only if not stop_soon_quietly.
1741 (_initialize_mips_tdep): add_set_cmd for heuristic-fence-post.
1742
1743Thu Apr 22 14:50:05 1993 Jim Kingdon (kingdon@cygnus.com)
1744
1745 * symtab.h: Fix LOC_REF_ARG comment.
1746
1747Wed Apr 22 20:21:30 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1748 and Jim Kingdon (kingdon@cygnus.com)
1749
1750 * stabsread.c (define_symbol): Combine a 'p', 'r' arg pair to a
1751 LOC_REGPARM symbol.
1752 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Revise comments.
1753 symfile.c (compare_symbols): Don't check first character; STRCMP
1754 does that.
1755
1756 * stabsread.c (define_symbol): Generate a LOC_REGPARM_ADDR for
1757 structures that are passed by address in a register.
1758 * symtab.h (enum address_class): Add LOC_REGPARM_ADDR.
1759 * findvar.c (read_var_value),
1760 printcmd.c (address_info, print_frame_args),
1761 stack.c (print_frame_arg_vars), symmisc.c (print_{,partial_}symbol),
1762 * symtab.c (lookup_block_symbol): Deal with it.
1763
1764Thu Apr 22 09:07:24 1993 Jim Kingdon (kingdon@cygnus.com)
1765
1766 * objfiles.h (obj_section), objfiles.c (build_objfile_section_table):
1767 Add objfile field.
1768 * objfiles.c (find_pc_section): Return a struct obj_section *.
1769 * sparc-tdep.c (in_solib_trampoline): Deal with find_pc_section return.
1770 * symfile.c (syms_from_objfile) [IBM6000_TARGET]:
1771 Don't use obj_section hack.
1772 * xcoffexec (vmap_symtab): Relocate obj_sections.
1773 * printcmd.c (containing_function_bounds): Use find_pc_section.
1774
1775 * symtab.h: Clean up SYMBOL_VALUE comments.
1776
1777Wed Apr 21 14:29:57 1993 Jim Kingdon (kingdon@cygnus.com)
1778
1779 * stack.c (print_frame_arg_vars), printcmd.c (print_frame_args):
1780 Expand comments about LOC_ARG/LOC_LOCAL pairs.
1781
1782 * coffread.c (read_coff_symtab): Use rewind before fseek.
1783
1784Wed Apr 21 14:24:19 1993 Per Bothner (bothner@cygnus.com)
1785
1786 * ch-exp.y: Removed unused structure_primitive_value and FIXME_23.
1787 * Makefile.in: Add $(YFLAGS) when using $(YACC).
1788 * Makefile.in: Remove message to expect conflicts and unused
1789 rules in ch-exp.y, since there no longer are any such.
1790
1791Wed Apr 21 13:27:50 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1792
1793 * stabs.texinfo: fixed bad xrefs (un-initialized statics)
1794
1795Tue Apr 20 08:55:11 1993 Jim Kingdon (kingdon@cygnus.com)
1796
1797 * xcoffexec.c (xcoff_relocate_core): If no exec file, error()
1798 rather than dumping core.
1799
1800 * Makefile.in: Add ${srcdir}/ to all source files.
1801 (alldeps.mak): Add "${srcdir}/" to files when generating alldeps.mak.
1802 (TAGS): Deal with srcdir and new config directory scheme.
1803 createtags: Remove.
1804 Makefile.in (NONSRC): Remove createtags.
1805 alldeps.mak: Updated.
1806
1807 * rs6000-tdep.c: Delete unused function print_frame.
1808
1809 * frame.h (struct frame_info): Doc fix for next_frame.
1810 New field signal_handler_caller.
1811 blockframe.c (create_new_frame, get_prev_frame_info),
1812 config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO): Set it (needs
1813 INIT_FRAME_PC_FIRST).
1814 stack.c (print_frame_info), rs6000-tdep.c (rs6000_frame_chain):
1815 Check it.
1816
1817Mon Apr 19 22:52:33 1993 Stu Grossman (grossman@cygnus.com)
1818
1819 * irix4-nat.c (fetch_core_registers): Special version of this for
1820 Irix 4.x, which stores regs a bit differently from other /proc
1821 based systems.
1822 * procfs.c, core-svr4.c: Move fetch_core_registers from procfs.c
1823 to new file core-svr4.c.
1824 * config/i386/i386sol2.mh, config/i386/i386v4.mh, config/m68k/amix.mh,
1825 config/i386/ncr3000.mh, config/sparc/sun4sol2.mh: Add core-svr4.o
1826 to NATDEPFILES.
1827 * config/mips/irix4.mh: Add corelow.o to NATDEPFILES.
1828
1829Mon Apr 19 11:13:34 1993 Jim Kingdon (kingdon@cygnus.com)
1830
1831 * i387-tdep.c: Remove unused #includes.
1832
1833 * configure.in: Match i[34]86-*-sysv3.2 not i[34]86-*-sysv32.
1834
1835 * config/i386/nm-i386v.h: Define NO_PTRACE_H.
1836
1837Sun Apr 18 10:39:35 1993 Jim Kingdon (kingdon@cygnus.com)
1838
1839 * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
1840
1841 * stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
1842 xcoffread.c (process_xcoff_symbol, case C_RPSYM):
1843 Don't muck with SYMBOL_CLASS.
1844
1845Fri Apr 16 17:38:33 1993 Stu Grossman (grossman@cygnus.com)
1846
1847 * munch: Don't use head command. It doesn't exist everywhere.
1848
1849Fri Apr 16 15:07:57 1993 Fred Fish (fnf@cygnus.com)
1850
1851 * inflow.c (new_tty): Remove spurious 'o' character at end
1852 of #endif line.
1853
1854Fri Apr 16 12:27:11 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1855
1856 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
1857 instructions and nothing more.
1858 * mipsread.c (add_line): Add comment why we have to combine line number
1859 entries for the same line number.
1860
1861Fri Apr 16 09:42:03 1993 Jim Kingdon (kingdon@cygnus.com)
1862
1863 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
1864 in gdb 2.8!).
1865
1866Thu Apr 15 21:16:58 1993 Fred Fish (fnf@cygnus.com)
1867
1868 * depend, alldeps.mak: Update, now that gcc -MM bug is fixed.
1869
1870Thu Apr 15 12:38:39 1993 Jim Kingdon (kingdon@cygnus.com)
1871
1872 * source.c (select_source_symtab): Clean up comment. Also, if
1873 we have a current_source_symtab, and s is NULL, return without
1874 doing anything.
1875 xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
1876 breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
1877
1878Thu Apr 15 02:37:48 1993 John Gilmore (gnu@cacophony.cygnus.com)
1879
1880 * dbxread.c (unknown_symchar_complaint): Add new complaint.
1881 * stabsread.h: Declare it.
1882 * partial-stab.h: Use it.
1883
1884 * utils.c (malloc_botch): Don't forward-declare if NO_MMALLOC.
1885
1886Wed Apr 14 17:12:51 1993 Jim Kingdon (kingdon@cygnus.com)
1887
1888 * stack.c (print_frame_info): Print specially if dummy frame.
1889
1890 * breakpoint.c: Add comments regarding within_scope future direction.
1891
1892 * Version 4.8.3.
1893
1894 * xcoffread.c (record_include_{begin,end}): Change fatal to complain.
1895
1896Wed Apr 14 14:03:18 1993 Per Bothner (bothner@cygnus.com)
1897
1898 * ch-exp.y: Fix thinko that broke parsing of FALSE.
1899
1900Wed Apr 14 12:49:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1901
1902 * stabsread.c (read_member_functions): Initialize domain for stubbed
1903 member functions to avoid gdb core dumps when printing pointers
1904 to member functions.
1905 * cp-valprint.c (cp_print_class_method): Check for stubbed member
1906 functions.
1907
1908Tue Apr 13 08:28:26 1993 Jim Kingdon (kingdon@cygnus.com)
1909
1910 * expprint.c (print_subexp): If opcode not found in op_print_tab,
1911 stop with an error().
1912 eval.c (evaluate_subexp): Change error message.
1913
1914 * objfiles.c (build_objfile_section_table): Cast return value
1915 from obstack_finish.
1916
1917Mon Apr 12 10:53:50 1993 Jim Kingdon (kingdon@cygnus.com)
1918
1919 * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
1920 to rs6000_frame_chain and deal with it if we're in a signal handler.
1921 (FRAME_SAVED_PC): Use rs6000_frame_chain.
1922
1923 * breakpoint.c (within_scope): New function.
1924 (enable_breakpoint, watchpoint_check): Use it.
1925
1926 * source.c (openp): Handle "exec-file ./ls" correctly.
1927
1928 * breakpoint.c (breakpoint_1): Use wrap_here before "at".
1929
1930Sat Apr 10 01:32:43 1993 Per Bothner (bothner@rtl.cygnus.com)
1931
1932 * ch-exp.y: Clean up lexing of identifiers and
1933 reserved words. (E.g. don't recognize FALSEXXX as the
1934 keyword FALSE followed by the identifier XXX.)
1935 Also, convert identifiers to lower case.
1936
1937Fri Apr 9 15:53:19 1993 Stu Grossman (grossman@cygnus.com)
1938
1939 * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
1940 new serial interface.
1941
1942Fri Apr 9 15:01:12 1993 Stu Grossman (grossman@cygnus.com)
1943
1944 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
1945 (putpkt, getpkt): Use new return codes for SERIAL_READCHAR.
1946 * ser-go32.c: Return -1 on most failures, 0 on most successes,
1947 and use new return codes for go32_readchar().
1948 * ser-unix.c: Ditto. Also, move error handling up to caller for
1949 SERIAL_SETBAUDRATE().
1950 * serial.c (serial_open): Internal call, not SERIAL_OPEN to get
1951 to specific routine.
1952 (serial_close): New routine to wrap around device close routine.
1953 serial.h: Clean & document return values more clearly.
1954
1955Fri Apr 9 10:20:55 1993 Jim Kingdon (kingdon@cygnus.com)
1956
1957 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
1958
1959 * rs6000-pinsn.c (print_operand, case LI): Print condition register
1960 operand in decimal rather than wrong textual versions.
1961
1962 * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
1963 (mention 't', remove false thing about 'g' only good with 'f').
1964
1965 * breakpoint.h: move "struct breakpoint" and friends to top of
1966 file so that bpstat_find_breakpoint prototype works.
1967
1968 * solib.c (struct so_list): Add bfd field.
1969 (solib_map_sections): Leave bfd open and scratch_pathname allocated.
1970 Put the bfd in bfd field of the so_list.
1971 (clear_solib): Free bfd name and close_bfd on the bfd.
1972
1973Fri Apr 9 00:45:41 1993 Per Bothner (bothner@rtl.cygnus.com)
1974
1975 * valarith.c (value_subscript): Add COERCE_REF.
1976 * ch-exp.y (operand_5): We can generalize the 2nd operand
1977 of a string repetition ot 'literal' without ambiguity.
1978
1979Thu Apr 8 10:15:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
1980
1981 * breakpoint.h (struct bpstat): Remove momentary field.
1982 Remove bpstat_momentary_breakpoint. This was always kludgy
1983 and is no longer used.
1984
1985 * breakpoint.h: Add enum bpstat_what.
1986 breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
1987 stop and print fields of bpstat now per-breakpoint, not just
1988 one for the whole chain.
1989 breakpoint.{c,h} (bpstat_what): New function.
1990 breakpoint.h: Remove bpstat_stop and bpstat_should_print.
1991 infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
1992 with call to bpstat_what.
1993 README: Remove watchpoint/breakpoint bug from known bugs.
1994
1995 * breakpoint.h: Prototype bpstat_find_breakpoint.
1996
1997Thu Apr 8 16:01:21 1993 Fred Fish (fnf@cygnus.com)
1998
1999 * symtab.c (find_methods, gdb_mangle_name): Note that functions
2000 are g++ specific.
2001 * symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
2002 DESTRUCTOR_PREFIX_P): Note that macros are g++ specific.
2003
2004Thu Apr 8 12:45:32 1993 Ian Lance Taylor (ian@cygnus.com)
2005
2006 * i960-pinsn.c (tabent): Copied struct definition from
2007 opcodes/i960-dis.c.
2008
2009Thu Apr 8 10:34:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2010
2011 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
2012 is a C++ destructor.
2013 * symtab.c (gdb_mangle_name): Use it.
2014 * symtab.c (find_methods): Do not add destructors to choice list
2015 for constructors.
2016 * symtab.c (decode_line_1): Make breakpoints on destructors work
2017 for gcc-2.x again.
2018
2019Wed Apr 7 18:43:09 1993 Stu Grossman (grossman@cygnus.com)
2020
2021 * ser-go32.c: Make it use serial port name.
2022 * go32-xdep.c: Put in def for strlwr, needed by dir.o in go32 libc.
2023
2024 * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
2025 in a system call!
2026
2027Wed Apr 7 15:52:11 1993 Stu Grossman (grossman@cygnus.com)
2028
2029 * configure.in: Only configure sparclite subdir when target_cpu
2030 is sparclite.
2031
2032Wed Apr 7 10:11:22 1993 Jim Kingdon (kingdon@cygnus.com)
2033
2034 * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
2035 Remove FIXME comment regarding this.
2036
2037 * symfile.h: Change NULL->'\0' in comment (that wasn't a typo).
2038
2039 * xcoffread.c (read_xcoff_symtab): Use E_SYMNMLEN.
2040
2041Tue Apr 6 22:30:58 1993 K. Richard Pixley (rich@cygnus.com)
2042
2043 Add section table to objfile struct. Use it for find_pc_section.
2044 * objfiles.c (add_to_objfile_sections,
2045 build_objfile_section_table, find_pc_section): new functions.
2046 (allocate_objfile): build section table.
2047 * objfiles.h (struct obj_section): new structure.
2048 (struct objfile): add section table.
2049 (find_pc_section): new prototype.
2050 * solib.[ch] (find_pc_section_from_so_list): removed.
2051 * sparc-tdep.c: include objfiles.h for find_pc_section. include
2052 symfile.h for objfiles.h.
2053 (in_solib_trampoline): adjusted for new find_pc_section
2054 prototype. Removed BAD_RICH_HACK ifdefs.
2055 * symfile.c (syms_from_objfile): offset objfile sections.
2056 (find_pc_section): removed. Also removed BAD_RICH_HACK ifdefs.
2057 * symfile.h (find_pc_section): prototype removed. Also fixed
2058 comment typo NUL -> NULL.
2059 * target.[ch] (find_pc_section_from_targets): removed.
2060 * config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
2061
2062Tue Apr 6 21:41:13 1993 Stu Grossman (grossman@cygnus.com)
2063
2064 * ser-go32.c: Format. (go32_open): Use proper return value.
2065
2066 * configure.in: Undo conditional configdirs hack for sparclite.
2067
2068Tue Apr 6 17:07:37 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
2069
2070 * symtab.c (list_symbols): When call break_command, pass both
2071 filename and function name not just function name.
2072
2073Tue Apr 6 15:00:09 1993 Fred Fish (fnf@cygnus.com)
2074
2075 (Changes and new files to make "none" a full fledged configuration)
2076 * config/none/{nm-none.h, tm-none.h, xm-none.h}: New files.
2077 Currently only tm-none.h has any meaningful contents.
2078 * config/none/none.mh (NAT_FILE): Use nm-none.h
2079 * config/none/none.mh (XM_FILE): Use xm-none.h
2080 * config/none/none.mt (TM_FILE): Use tm-none.h
2081 * Makefile.in (depend): Remove comment about parse errors in
2082 valops.c, it now parses correctly and generates a correct depend
2083 line. Remove line that touches xm.h, tm.h, and nm.h; they are
2084 now linked to config/none/{xm-none.h, tm-none.h, nm-none.h}.
2085
2086Tue Apr 6 09:54:29 1993 Jim Kingdon (kingdon@cygnus.com)
2087
2088 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1.
2089
2090 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
2091 exactly 8 characters.
2092
2093Tue Apr 6 10:31:26 1993 Stu Grossman (grossman@cygnus.com)
2094
2095 * configure.in: Sparclite uses sparc config dir. Also has it's
2096 own tm- & .mt files now. Also add sparclite to configdirs.
2097 * go32-xdep.c: Dummy routines for sigsetmask & strlwr.
2098 * config/i386/go32.mh: Nullify def of TERMCAP.
2099 * config/i386/xm-go32.h: Get rid of redef of EIO.
2100 * config/sparc/{sparclite.mh tm-sparclite.h}: New sparclite
2101 specific configs. Very similar to sun4os4, but without solib.
2102 * sparclite/{Makefile.in configure.in}: First cut at making this
2103 dir configgable.
2104
2105Tue Apr 6 03:10:44 1993 Stu Grossman (grossman@cygnus.com)
2106
2107 * ser-go32.c: First cut at adapting to new serial interface.
2108
2109Mon Apr 5 22:29:43 1993 Stu Grossman (grossman@cygnus.com)
2110
2111 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
2112 These implement a new serial line interface for talking to remote
2113 targets.
2114 * configure.in: Link ser-hardwire.c to ser-unix.c for all hosts,
2115 EXCEPT go32, which gets ser-go32.c.
2116 * remote.c: Use new serial interface. More remote-xxx's to be
2117 converted later.
2118 * ser-bsd.c, ser-termios.c: Removed.
2119 * serial.c: New. Implements common operations for all serial
2120 types.
2121 * ser-unix.c: New. Unix specific serial operations for various
2122 flavors of Unix (Posix, SysV, BSD).
2123 * serial.h: Generic serial interface defs.
2124 * config/i386/go32.mh, config/i386/i386bsd.h,
2125 config/m68k/apollo68b.mh, config/sparc/sun4os4.mh: Remove
2126 ser-bsd.o from XDEPFILES. All the magic is now handled in
2127 configure.in.
2128
2129Mon Apr 5 20:48:54 1993 Stu Grossman (grossman@cygnus.com)
2130
2131 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC.
2132
2133Fri Apr 2 08:23:14 1993 Jim Kingdon (kingdon@cygnus.com)
2134
2135 * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets.
2136
2137 * rs6000-tdep.c (frameless_function_invocation): Don't even think
2138 about framelessness except on the innermost frame.
2139
2140 * xcoffexec.c: Call fatal() not abort().
2141
2142 * stabsread.c (patch_block_stabs): If stab & no symbol, make
2143 a LOC_OPTIMIZED_OUT symbol.
2144 symtab.h (enum address_class): Add LOC_OPTIMIZED_OUT.
2145 findvar.c (read_var_value), printcmd.c (address_info),
2146 symmisc.c (print_{,partial_}symbol), c-exp.y (variable),
2147 m2-exp.y (yylex): Deal with it.
2148 ch-exp.y (yylex): Deal with it.
2149
2150Thu Apr 1 18:43:02 1993 Stu Grossman (grossman@cygnus.com)
2151
2152 * findvar.c (value_from_register): H8500 specific, check to see
2153 if we are looking at short pointer. If so, skip crock.
2154 * h8500-tdep.c (h8500_frame_chain): Mask down value from
2155 read_memory_integer() to avoid getting messed up by sign extension.
2156
2157Thu Apr 1 16:44:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2158
2159 * sparc-tdep.c (in_solib_trampoline), symfile.c (find_pc_section):
2160 ifdef protect using BAD_RICH_HACK. This should be removed soon.
2161 * config/sparc/tm-sun4sol2.h (BAD_RICH_HACK): define.
2162
2163Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
2164
2165 * i960-pinsn.c, a29k-pinsn.c: Much abridged, just use libopcodes.a.
2166
2167 * core.c (dis_asm_print_address): New function.
2168
2169 * core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
2170 has been fixed.
2171
2172Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2173
2174 * breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the
2175 entire breakpoint chain and print only the first entry that needs to
2176 be printed and needs to be stopped for. Fixes problems with printing
2177 of multiple breakpoints with different conditions.
2178 * breakpoint.c (print_it_done): Renamed from print_it_noop as it
2179 effectively stops printing of the breakpoint chain.
2180 * breakpoint.c (print_it_noop): New routine to print nothing
2181 for this breakpoint entry and dont stop printing.
2182 * breakpoint.c (breakpoint_re_set_one): mention the reevaluated
2183 watchpoint only if it is enabled.
2184 * mipsread.c (parse_procedure): Correct incorrect setjmp procedure
2185 descriptor from the library to make backtraces through setjmp work.
2186 * mipsread.c (fixup_sigtramp): Correct pcreg and fregoffset for
2187 sigtramp.
2188 * mips-tdep.c (read_next_frame_reg): Provide correct values for
2189 all registers saved within sigtramp, cleanup.
2190
2191Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2192
2193 * sparc-pinsn.c: Much abridged, just calls version in libopcodes.a.
2194
2195Wed Mar 31 21:23:41 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2196
2197 * core.c (dis_asm_read_memory): drop fourth arg which conflicts
2198 with prototype in ../include/dis-asm.h.
2199
2200Wed Mar 31 12:52:12 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
2201
2202 * core.c (dis_asm_{read_memory,memory_error}): New functions.
2203 m68k-pinsn.c, h8500-tdep.c, i386-pinsn.c, mips-pinsn.c, z8k-tdep.c:
2204 Use read_memory_func interface to disassembler.
2205
2206Tue Mar 30 15:46:14 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2207
2208 Teach sparc solaris to next over shared library functions.
2209 * solib.[hc] (find_pc_section_from_so_list): new function and
2210 prototype.
2211 * sparc-tdep.c (in_solib_trampoline): new function.
2212 * symfile.[hc] (find_pc_section): new function and prototypes.
2213 * target.[hc] (find_pc_section_from_targets): new function and
2214 prototypes.
2215 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): redefine to
2216 in_solib_trampoline.
2217
2218Tue Mar 30 08:06:24 1993 Jim Kingdon (kingdon@cygnus.com)
2219
2220 * infrun.c (wait_for_inferior): Revise comment.
2221
2222 * command.c (do_setshow_command): Use %u with var_{u,z}integer.
2223
2224 * command.{c,h}: New var_type var_integer.
2225 main.c: Use it for history_size.
2226
2227 * rs6000-tdep.c, xcoffexec.c, config/rs6000/xm-rs6000.h, breakpoint.c:
2228 Lint and byte-order fixups.
2229
2230 * breakpoint.c (print_it_normal): Return 0 after hitting watchpoint.
2231
2232 * breakpoint.h (bpstat): New field print_it.
2233 breakpoint.c (bpstat_print): Use it.
2234 (print_it_normal): New function (from old bpstat_print code).
2235 (bpstat_{alloc,stop_status}): Set print_it field.
2236
2237 * breakpoint.c (bpstat_stop_status): Use catch_errors when
2238 evaluating watchpoint condition, via new function watchpoint_check.
2239 Also stop if watchpoint disabled due to leaving its block.
2240
2241 * findvar.c [REG_STRUCT_HAS_ADDR]: Add comment.
2242
2243Tue Mar 30 00:14:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2244
2245 * mips-pinsn.c: Add missing include of dis-asm.h.
2246
2247Mon Mar 29 15:03:25 1993 Fred Fish (fnf@cygnus.com)
2248
2249 * Makefile.in (clean, distclean, realclean): Recursively apply
2250 to subdirs first, rather than last. This avoids, for example,
2251 Makefile being removed in a parent directory before the recursive
2252 make is run.
2253
2254 * alldeps.mak, depend: Update for below changes.
2255
2256 * config/m68k/tm-m68k.h: Renamed from config/m68k/tm-68k.h.
2257 * m68k/{tm-3b1.h, tm-altos.h, tm-amix.h, tm-es1800.h,
2258 tm-hp300bsd.h, tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-os68k.h,
2259 tm-st2000.h, tm-sun2.h, tm-sun3.h, tm-vx68.h}: Include tm-m68k.h
2260 instead of tm-68k.h.
2261 * Makefile.in (HFILES): tm-68k.h renamed to tm-m68k.h.
2262 * README, a29k-pinsn.c, m68k-pinsn.c, m68k-stub.c, remote-vx.c,
2263 m68k/{altos.mh, altos.mt, apollo68b.mh, nm-apollo68b.h,
2264 nm-hp300bsd.h, config/m68k/xm-apollo68b.h}: Map '68k' to 'm68k'.
2265 * a29k/tm-a29k.h, doc/gdbint.texinfo: Account for renaming of
2266 tm-68k.h to tm-m68k.h.
2267 * m68k/m68k-fp.mt (TM_FILE): tm-68k-fp.h renamed to tm-m68k-fp.h.
2268 * m68k/m68k-nofp.mt (TM_FILE): tm-68k-nofp.h renamed to
2269 tm-m68k-nofp.h.
2270
2271 * config/a29k/tm-a29k.h: Renamed from config/a29k/tm-29k.h.
2272 * a29k-pinsn.c: Renamed from am29k-pinsn.c.
2273 * a29k-tdep.c: Renamed from am29k-tdep.c.
2274 * remote-eb.c, config/a29k/tm-ultra3.h: Include renamed tm-a29k.h.
2275 * remote-monitor.c, remote-st2000.c, config/a29k/{nm-ultra3.h,
2276 tm-a29k.h, xm-ultra3.h}, config/romp/rtbsd.mh, doc/gdbinv-s.texi,
2277 testsuite/gdb.t15/funcargs.exp, testsuite/gdb.t17/callfuncs.exp:
2278 Map '29k' to 'a29k'.
2279 * config/a29k/{a29k-kern.mt, a29k-udi.mt, a29k.mt, ultra3.mt}
2280 (TDEPFILES): Use renamed a29k-pinsn.o and a29k-tdep.o.
2281 * config/a29k/{a29k-udi.mt, a29k.mt} (TM_FILE): Use renamed
2282 tm-a29k.h.
2283 * config/a29k/a29k-udi.mt (MT_CFLAGS): Remove TARGET_AM29K
2284 define that does not appear anywhere else in the gdb source tree.
2285 * doc/gdbinit.texinfo: Document renaming of tm-29k.h to tm-a29k.h.
2286
2287Mon Mar 29 13:55:29 1993 Jim Kingdon (kingdon@cygnus.com)
2288
2289 * breakpoint.c: Add comments regarding breakpoint_re_set.
2290
2291 * xcoffread.c (sort_syms, compare_symbols): Remove.
2292 (xcoff_symfile_read): Use sort_all_symtab_syms from symfile.c
2293 not our own sort_syms (it is identical).
2294
2295 * xcoffread.c: Nuke NAMES_HAVE_DOT define (not used).
2296
2297Sun Mar 28 11:24:37 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2298
2299 * breakpoint.c (breakpoint_re_set_one): Fix storage leak.
2300 * breakpoint.c (enable_breakpoint): Don't enable watchpoint if it
2301 went out of scope.
2302 * exec.c (exec_close): Fix storage leak.
2303 * exec.c (exec_file_command): Make sure that bfd doesn't realign the
2304 output sections when patching an executable.
2305 * mips-nat.c (store_inferior_registers): Use REGISTER_PTRACE_ADDR
2306 when writing all registers.
2307 * mips-tdep.c (mips_push_dummy_frame): Save floating point registers
2308 at the right offset in the dummy frame.
2309 * mipsread.c (psymtab_to_symtab_1): Do not complain for stProc,
2310 stStaticProc and stEnd symbols as they are generated by gcc-2.x.
2311 * mipsread.c (mipscoff_new_init): Initialize stabsread and buildsym.
2312
2313Fri Mar 26 15:25:05 1993 John Gilmore (gnu@cygnus.com)
2314
2315 * Makefile.in (TARFILES): Avoid trailing backslash.
2316
2317Fri Mar 26 11:29:30 1993 Jim Kingdon (kingdon@cygnus.com)
2318
2319 * breakpoint.{c,h}: Add exp_string to struct breakpoint and use
2320 it in breakpoint_re_set.
2321 * breakpoint.c (watch_command, enable_breakpoint): Fetch lazy values.
2322
2323 * rs6000-tdep.c (single_step): Misc cleanups (CORE_ADDR not int,
2324 don't use sizeof(int) for target stuff, etc).
2325
2326Thu Mar 25 15:03:53 1993 Fred Fish (fnf@cygnus.com)
2327
2328 * alldeps.mak, configure.in, i860-break.h, i860-opcode.h,
2329 i860-pinsn.c, i860-tdep.c, config/i860/*: Remove incomplete i860
2330 support that can't be integrated anyway due to lack of clear
2331 authorship.
2332
2333Thu Mar 25 12:26:50 1993 Stu Grossman (grossman@cygnus.com)
2334
2335 * findvar.c (read_register, write_register): Make these capable
2336 of reading/writing registers that are shorter than REGISTER_TYPE.
2337 * (value_from_register): Install H8500 specific code to return
2338 proper value when register is being used as a pointer.
2339 * h8500-tdep.c: Remove extra defines of NUM_REGS.
2340 (h8500_skip_prologue): Use correct lengths for LINK instructions.
2341 (FRAME_CHAIN): Change name to h8500_frame_chain. Rewrite code to
2342 chain frames properly by combining frame pointer with T reg.
2343 (init_extra_frame_info): Delete. It's now a macro.
2344 (frame_args_address): Don't add PTR_SIZE. Stack args are already
2345 offset by the correct amount off of the frame pointer.
2346 (register_byte): Delete. It's now a macro.
2347 (register_raw_size, register_virtual_size): Delete. Replaced by
2348 common routine h8500_register_size, cuz there's no difference
2349 between the raw & virtual sizes on this machine.
2350 (register_convert_to_raw, register_convert_to_virtual): Delete,
2351 cuz there's no difference between the raw & virtual forms.
2352 Replaced by memcpy in tm file.
2353 (register_virtual_type): Rename to h8500_register_virtual_type.
2354 Get rid of pointer pseudo-regs, use _REGNUM with all reg names.
2355 (_initialize_h8500_tdep): Get rid of crock to ensure that GDB &
2356 emulator have same reg offsets. This is all handled in the
2357 simulator code now.
2358 (h8500_trapped_internalvar): New routine to detect references to
2359 convenience vars acting as pointer pseudo-regs.
2360 (h8500_value_trapped_internalvar): Conjure up value of pointer
2361 pseudo-regs.
2362 (h8500_set_trapped_internalvar): Convert set value in real
2363 register references.
2364 infcmd.c (read_pc, write_pc): Add h8500 specific code to handle
2365 code segment register.
2366 infrun.c (proceed): Simplify. Call write_pc instead of doing it
2367 by hand.
2368 (wait_for_inferior): Add h8500 specific code to add stack segment
2369 when reading SP register.
2370 remote-sim.c (fetch_register): Spacing.
2371 tm-h8500.h: #define GDB_TARGET_IS_H8500 to make it easier to
2372 detect cruft. Redo all register manipulation stuff. Get rid of
2373 pointer pseudo-regs. (INIT_EXTRA_FRAME_INFO): Adds stack segment
2374 to frame pointer. (IS_TRAPPED_INTERNALVAL,
2375 VALUE_OF_TRAPPED_INTERNALVAR, SET_TRAPPED_INTERNALVAR): Use these
2376 to create internal vars for pointer pseudo-regs.
2377
2378Thu Mar 25 10:10:28 1993 Fred Fish (fnf@cygnus.com)
2379
2380 * Makefile.in: Numerous small changes to macro definitions
2381 and rules for building gdb distribution tree. Many macros
2382 eliminated or merged, and rules simplified.
2383 * alldeps.mak: Update.
2384 * depend: Update.
2385
2386Wed Mar 24 13:52:29 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
2387
2388 * Makefile.in: recurse through SUBDIRS for dvi target too
2389
2390Wed Mar 24 08:48:30 1993 Jim Kingdon (kingdon@cygnus.com)
2391
2392 * Clean up xcoff relocation.
2393 objfiles.h (struct objfiles): Add section_offsets, num_sections.
2394 symfile.c (syms_from_objfile), xcoffread.c (xcoff_symfile_offsets):
2395 Set them.
2396 symtab.h (struct general_symbol_info): Add section field.
2397 minsyms.c (prim_record_minimal_symbol{,_and_info}): Set it.
2398 xcoffread.c: Set section for symbols and msymbols.
2399 (struct symtab): Add block_line_section field.
2400 buildsym.c (end_symtab): Set it.
2401 (end_symtab and callers): Add section parameter.
2402 objfiles.c (objfile_relocate): New funciton.
2403 xcoffexec.c (vmap_symtab): Use it.
2404 xcoffsolib.h (struct vmap): Remove unused fields.
2405 config/rs6000/tm-rs6000.h, stack.c, xcoffexec.c: Remove
2406 CORE_NEEDS_RELOCATION, symtab_relocated.
2407 config/rs6000/tm-rs6000.h: Remove use of loadinfotext.
2408 rs6000-tdep.c: Make loadinfotext static.
2409 breakpoint.c (fixup_breakpoints): Doc fix.
2410 symtab.h (struct symtab), config/rs6000/tm-rs6000.h, buildsym.c
2411 (end_symtab): primary field replaces nonreloc.
2412
2413Tue Mar 23 00:10:53 1993 John Gilmore (gnu@cygnus.com)
2414
2415 * symtab.h (struct linetable_entry): Remove confusing comment.
2416
2417Tue Mar 23 00:01:23 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2418
2419 * Makefile.in: add installcheck target
2420
2421Mon Mar 22 16:17:58 1993 Fred Fish (fnf@cygnus.com)
2422
2423 * config/{a29k, arm, convex, gould, h8300, i386, i860, i960, m68k,
2424 m88k, mips, none, ns32k, pa, pyr, romp, rs6000, sparc, tahoe, vax,
2425 z8k}: New directories to hold cpu specific configuration files.
2426 Naming follows gcc convention.
2427 * config/{*.mt, *.mh}: All target and host makefile fragment
2428 config files moved to an appropriate config/<cpu> subdirectory.
2429 * nm-*, xm-*, tm-*: All native, host, and target files, which
2430 get linked to nm.h, xm.h, and tm.h respectively by configure,
2431 moved to appropriate config/<cpu> subdirectory.
2432 * nm-sysv4.h, xm-sysv4.h, tm-sysv4.h, tm-sunos.h, nm-trash.h:
2433 Native, host, and target files that are common across more than
2434 one cpu architecture and included by one of the configured
2435 native, host, or target files, get moved to config directory.
2436 * Makefile.in (INCLUDE_CFLAGS): Add -I${srcdir}/config to
2437 pick up native, host, or target include files moved to one of
2438 the config subdirectories, and that are included by other files.
2439 * Makefile.in (alldeps.mak): Modify to account for new config
2440 directory structure.
2441 * alldeps.mak, depend: Update for new config directory structure.
2442 * config/*/[ntx]m-*.h: Modify all files that include other
2443 [ntx]m-*.h files to use path relative to gdb/config. I.E.
2444 "a29k/tm-ultra3.h" includes "a29k/tm-29k.h" rather than just
2445 "tm-29k.h".
2446 * remote-eb.c (tm-29k.h): Include a29k/tm-29k.h.
2447 * mipsread.c (tm-mips.h): Include mips/tm-mips.h.
2448 * i860-pinsn.c (tm-i860.h): Include i860/tm-i860.h.
2449 * configure.in: Default gdb_host_cpu to host_cpu, and remap
2450 the ones where the default is not unique or different than the
2451 config subdirectory name. Similarly, handle gdb_target_cpu.
2452 Modify configure.in as appropriate to make use of gdb_host_cpu
2453 and gdb_target_cpu to find makefile fragments and make links.
2454
2455Mon Mar 22 12:36:24 1993 Ian Lance Taylor (ian@cygnus.com)
2456
2457 * mipsread.c (compare_blocks): Sort blocks with the same start
2458 address by decreasing ending address.
2459
2460Mon Mar 22 20:36:04 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2461
2462 * mipsread.c (parse_procedure): Save cur_fdr accross call to
2463 lookup_symbol as it might get clobbered by the call.
2464
2465 * mipsread.c (parse_partial_symbols): Use ADD_PSYMBOL_ADDR_TO_LIST.
2466 The previous code did not initialize the language field for the psymtab
2467 entry.
2468
2469Sat Mar 20 00:33:39 1993 John Gilmore (gnu@cygnus.com)
2470
2471 * c-exp.y (parse_number): Avoid shift warning.
2472 * serial.h (struct ttystate): Declare empty one on DOS.
2473
2474Fri Mar 19 12:59:50 1993 Stu Grossman (grossman@cygnus.com)
2475
2476 * xm-sun4os4.h: Return type of free() should be void, not int.
2477
2478 * vx-share/vxWorks.h: Remove #def of NULL.
2479
2480Fri Mar 19 11:28:18 1993 Jim Kingdon (kingdon@cygnus.com)
2481
2482 * tm-rs6000.h: Nuke no-op STAB_REG_TO_REGNUM.
2483
2484Fri Mar 19 07:40:09 1993 Steve Chamberlain (sac@cygnus.com)
2485
2486 * z8k-tdep.c (print_insn): Include the new dis-asm header file.
2487
2488Thu Mar 18 14:26:57 1993 Per Bothner (bothner@rtl.cygnus.com)
2489
2490 * ieee-float.c: Moved to ../libiberty.
2491 * ieee-float.h: Moved to ../include.
2492 * Makefile.in: Update accordingly.
2493 * i386-pinsn.c (print_insn), m68k-pinsn.c (print_insn):
2494 Convert to stubs that call disassemblers in ../opcodes/*-dis.c.
2495 * m68k-tdep.c: Removed definition of ext_format ext_format_68881;
2496 it is now in ../opcodes/m68881-ext.c.
2497 * mips-tdep.c (mips_skip_prologue): Try to skip more of the
2498 prologue (some callers _do_ care).
2499 * mips-pinsn.c (print_insn), z8k-tdep.c (print_insn): Convert to
2500 new interface of ../opcodes/*-dis.c.
2501 * ch-exp.y: Add #include <ctype.h>.
2502
2503Thu Mar 18 11:57:49 1993 Jim Kingdon (kingdon@cygnus.com)
2504
2505 * xcoffexec.c (exec_close): Don't close exec_bfd twice.
2506
2507 * xcoffread.c (enter_line_range): endaddr is exclusive, not inclusive.
2508
2509Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
2510
2511 * xcoffread.c (arrange_linetable): Use x{m,re}alloc not {m,re}alloc.
2512
2513Wed Mar 17 11:28:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
2514
2515 * z8k-tdep.c (extract_return_value, write_return_value,
2516 store_struct_return): New functions from macros in tm-z8k.h.
2517
2518Wed Mar 17 11:23:06 1993 Fred Fish (fnf@cygnus.com)
2519
2520 * valops.c (value_arg_coerce): Apply temporary patch to
2521 fix problem with coercion of array and function types when
2522 passed as arguments to C functions, pending a more complete
2523 review of when and how coercion should be done, depending
2524 upon context and language.
2525
2526Wed Mar 17 09:46:31 1993 Jim Kingdon (kingdon@cygnus.com)
2527
2528 * xcoffread.c (MIN_TBTABSIZ): Change to 12.
2529
2530 * xcoffread.c (xcoff_symfile_read): Only read stringtab and
2531 debugsec if there are a non-zero number of symbols.
2532
2533Tue Mar 16 18:08:45 1993 John Gilmore (gnu@cygnus.com)
2534
2535 * command.c (show_user): Avoid fprintf_filtered botch (AGAIN!).
2536
2537Tue Mar 16 15:18:17 1993 Jim Kingdon (kingdon@cygnus.com)
2538
2539 * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
2540
2541 * xcoffread.c (read_symbol_lineno): Look to end of symbols for .bf,
2542 not just 50 symbols.
2543 (symtbl_num_syms): New variable.
2544 (read_xcoff_symtab): Set it.
2545 (read_symbol_nvalue): Check for bad symno.
2546 (read_symbol_{lineno,nvalue}, callers): Don't pass symtable; it's
2547 always symtbl.
2548
2549Tue Mar 16 10:09:05 1993 Stu Grossman (grossman@cygnus.com)
2550
2551 * config/rs6000.mh: Get rid of -Dfd_set=int crock.
2552 This is defined in defs.h if necessary.
2553 * vx-share/vxWorks.h: Remove #defs of min and max.
2554 * vx-share/xdr_ld.c, vx-share/xdr_ptrace.c,
2555 vx-share/xdr_rdb.c: include defs.h.
2556
2557Fri Mar 12 09:33:23 1993 Jim Kingdon (kingdon@cygnus.com)
2558
2559 * xcoffread.c (retrieve_tracebackinfo): Move assignment out
2560 of while condition.
2561
2562 * xcoffread.c (enter_line_range): complain() on bad endoffset.
2563 xcoffread.c: Doc fixes.
2564
2565Tue Mar 9 09:56:12 1993 Jim Kingdon (kingdon@cygnus.com)
2566
2567 * tm-rs6000.h (CORE_NEEDS_RELOCATION): Just call xcoff_relocate_core.
2568 xcoffexec.c (xcoff_relocate_core): New function.
2569 (text_adjustment): Removed.
2570 (add_vmap): Return the vmap.
2571 rs6000-tdep.c (add_text_to_loadinfo): No longer static.
2572
2573Fri Mar 5 05:22:46 1993 Jim Kingdon (kingdon@cygnus.com)
2574
2575 * xcoffsolib.h: Add objfile member to struct vmap.
2576 xcoff{exec,solib}.c: Use it, not lookup_objfile_bfd.
2577 xcoffexec.c (add_vmap): Allocate objfiles here.
2578
2579Sun Mar 14 02:54:15 1993 John Gilmore (gnu@cygnus.com)
2580
2581 Support 68000 series without floating point.
2582
2583 * configure.in (m68000-*-{aout,elf,coff}): New configs.
2584 * tm-68k-nofp.h: New file, lacks 68881 support.
2585 * config/m68k-nofp.mt: New file.
2586
2587Sun Mar 14 02:30:08 1993 John Gilmore (gnu@cygnus.com)
2588
2589 Remove a few remaining underscore/no-underscore remnants from
2590 config files.
2591
2592 * config/{m68k-un.mt, sparc-un.mt}: Remove.
2593 * config/m68k-noun.mt: Rename to m68k-fp.mt.
2594 * config/sparc-noun.mt: Rename to sparc-em.mt.
2595 * tm-68k-noun.h, tm-spc-noun.h: Remove.
2596 * tm-68k-un.h: Rename to tm-68k-fp.h.
2597 * tm-spc-un.h: Rename to tm-spc-em.h.
2598 * tm-sun4sol2.h: Cleanup.
2599 * configure.in (m68k-*, sparc-* targets): Corresponding changes.
2600
2601Sat Mar 13 14:58:22 1993 John Gilmore (gnu@cygnus.com)
2602
2603 * symmisc.c (std_in, std_out, std_err): Move initializations
2604 to runtime code, in case they aren't constant.
2605
2606Fri Mar 12 16:23:54 1993 K. Richard Pixley (rich@cygnus.com)
2607
2608 * symtab.c (find_pc_symtab): some object file formats, notably
2609 mips, have holes in the address ranges of symtabs. Change
2610 this algorithm from first hit to tightest fit.
2611
2612 * mips-tdep.c (heuristic_proc_start): if we walk the pc into the
2613 fence post without finding the enclosing function, then print a
2614 warning.
2615
2616Thu Mar 11 09:33:01 1993 Fred Fish (fnf@cygnus.com)
2617
2618 * utils.c (fputs_demangled, fprint_symbol): Remove.
2619 * utils.c (fprintf_symbol_filtered): New function which combines
2620 the functionality of fputs_demangled and fprint_symbol. Uses a
2621 caller provided language parameter to select the appropriate
2622 demangler, and caller provided args to pass to the demangler.
2623 * defs.h (enum language): Move further up in file so enum can
2624 be used in prototypes.
2625 * defs.h (fputs_demangled, fprint_symbol): Remove prototypes.
2626 * defs.h (fprintf_symbol_filtered): Add prototype.
2627 * c-typeprint.c (cp_type_print_method_args): Replace calls to
2628 fputs_demangled with call to fprintf_symbol_filtered.
2629 * cp-valprint.c (demangle.h): Include
2630 * cp-valprint.c (cp_print_value_fields): Replace calls to
2631 fprint_symbol with calls to fprintf_symbol_filtered.
2632 * printcmd.c (print_frame_args): Replace call to fprint_symbol
2633 with call to fprintf_symbol_filtered.
2634 * stack.c (print_frame_info): Remove obsolete code so we don't
2635 have to update fputs_demangled usage in it.
2636 * stack.c (print_frame_info, frame_info): Add language variable
2637 to pass to fprintf_symbol_demangled and initialize it from the
2638 symbol's language. Replace calls to fputs_demangled with calls
2639 to fprintf_symbol_filtered.
2640 * symtab.c (find_methods): Replace call to fputs_demangled with
2641 call to fprintf_symbol_filtered.
2642 * ch-valprint.c (demangle.h): Include.
2643 * ch-valprint.c (chill_print_value_fields): Replace call to
2644 fprint_symbol with call to new fprintf_symbol_filtered.
2645
2646Wed Mar 10 17:37:11 1993 Fred Fish (fnf@cygnus.com)
2647
2648 * Makefile.in (VERSION): Bump version to 4.8.2.
2649
2650 * main.c (source_command): Require an explicit pathname of file
2651 to source, since previous behavior of defaulting to gdb init file
2652 was troublesome and undocumented.
2653 * printcmd.c (disassemble_command): Add missing '{}' pair to
2654 else with two statements. Bug reported by Stephane Tsacas
2655 <slt@isoft.fr>.
2656 * symtab.c (find_pc_line): Don't complain about zero length or
2657 negative length line numbers for the moment, since we may not own
2658 the terminal when called, such as when single stepping. (FIXME)
2659 * language.h (CAST_IS_CONVERSION): True if current language is
2660 C++ as well as C. Fix from Peter Schauer.
2661 * environ.c (get_in_environ, set_in_environ, unset_in_environ):
2662 Use STREQN macro rather than bare '!strncmp()'.
2663 * environ.c (unset_in_environ): Avoid use of memcpy on
2664 overlapping memory regions, as suggested by Paul Eggert
2665 <eggert@twinsun.com>.
2666 * c-exp.y (%union struct): Remove unused ulval as suggested
2667 by Paul Eggert <eggert@twinsun.com>.
2668
2669Mon Mar 8 19:03:06 1993 Fred Fish (fnf@cygnus.com)
2670
2671 * main.c (gdbinit): Make static.
2672 * main.c (inhibit_gdbinit): Move to file scope.
2673 * main.c (main): Remove local inhibit_gdbinit.
2674 * main.c (source_command): Don't source '.gdbinit' file by
2675 default if gdb has been told to ignore it.
2676
2677Sun Mar 7 21:58:53 1993 Ian Lance Taylor (ian@cygnus.com)
2678
2679 * Makefile.in (MAKEOVERRIDES): Define to be empty for GNU Make
2680 3.63.
2681
2682Fri Mar 5 17:39:45 1993 John Gilmore (gnu@cacophony.cygnus.com)
2683
2684 * printcmd.c (print_address_symbolic): Only print if offset
2685 is shorter than max_symbolic_offset.
2686 (initialize_printcmd): `set print max-symbolic-offset'.
2687
2688 * am29k-tdep.c (TAGWORD_ZERO_MASK): New #define.
2689 (examine_tag): Use it.
2690 (read_register_stack): Only look in the local registers for a
2691 memory address if it's between rfb and rsp; go to memory otherwise.
2692 (initialize_29k): Fix call_scratch_address doc. Remove reginv_com.
2693 (reginv_com): Remove ancient kludge command.
2694
2695Fri Mar 5 17:16:26 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2696
2697 * tm-irix3.h (ZERO_REGNUM): copy this macro from tm-mips.h so that
2698 irix4 will again compile.
2699
2700 * tm-mips.h (GDB_TARGET_IS_MIPS): no longer used, now removed.
2701
2702 * configure.in: accept mips-sgi-irix4* for irix4.
2703
2704Fri Mar 5 07:49:48 1993 Steve Chamberlain (sac@lisa.cygnus.com)
2705
2706 * z8k-tdep.c (print_register_hook): Lint.
2707
2708Thu Mar 4 17:42:03 1993 John Gilmore (gnu@cygnus.com)
2709
2710 Lint fixes from Paul Eggert (eggert@twinsun.com):
2711
2712 * command.c (do_setshow_command): var_uintegers are unsigned.
2713 * sparc-tdep.c (save_insn_opcodes, restore_insn_opcodes):
2714 unsigned, since they use hex values with the high bit set.
2715
2716Thu Mar 4 08:22:55 1993 Fred Fish (fnf@cygnus.com)
2717
2718 Fixes submitted by Karl Berry (karl@nermal.hq.ileaf.com):
2719 * m88k-pinsn.c (sprint_address): Use SYMBOL_NAME macro to
2720 access symbol name.
2721 * m88k-nat-c (SXIP_OFFSET, SNIP_OFFSET, SFIP_OFFSET): Enclose
2722 macro definitions in parenthesis.
2723
2724 * dbxread.c (dbx_symfile_init): Catch the case where there is
2725 no string table, but the only way we find out is by reading zero
2726 bytes from EOF.
2727
2728Wed Mar 3 15:51:28 1993 Fred Fish (fnf@cygnus.com)
2729
2730 * dbxread.c (dbx_symfile_init): Make size of the string table
2731 size field a define (DBX_STRINGTAB_SIZE_SIZE). Ensure that the
2732 offset to the string table is nonzero and handle the nonexistant
2733 string table case, should it occur. Ensure that the string table
2734 size read from the file is reasonable, with a minimum lower bound
2735 of DBX_STRINGTAB_SIZE_SIZE instead of zero.
2736
2737Wed Mar 3 07:23:03 1993 Ian Lance Taylor (ian@cygnus.com)
2738
2739 * Makefile.in: Changes to build testsuite correctly.
2740 (FLAGS_TO_PASS): Added CXX and CXXFLAGS.
2741 (CC_FOR_TARGET, CXX, CXX_FOR_TARGET): New variables.
2742 (TARGET_FLAGS_TO_PASS): New variable.
2743 (SUBDIRS): Added testsuite.
2744 (all): Build testsuite using TARGET_FLAGS_TO_PASS, so that
2745 testsuite is compiled with CC_FOR_TARGET rather than CC.
2746
2747Tue Mar 2 17:57:56 1993 Fred Fish (fnf@cygnus.com)
2748
2749 * dbxread.c (dbx_symfile_init): Fix for nonexistant string table,
2750 reported by mycroft@gnu.ai.mit.edu.
2751
2752 (Ultrix 2.2 support from Michael Rendell <michael@mercury.cs.mun.ca>)
2753 * configure.in (vax-*-ultrix2*): New triplet.
2754 * config/vaxult2.mh: New file.
2755 * xm-vaxult2.h: New file.
2756
2757 * c-exp.y (parse_number): Change high_bit to unsigned.
2758 * demangle.c: Change all references to cfront to ARM, since the
2759 actual algorithm is the one specified in the Annotated Reference
2760 Manual. This was confusing users into thinking that full cfront
2761 support was implemented.
2762 * dwarfread.c (CFRONT_PRODUCER): Remove, was never really used.
2763 * eval.c (evaluate_subexp): For STRUCTOP_PTR pass the arg type
2764 directly to lookup_struct_elt_type, which will do the
2765 dereferencing itself.
2766 * gdbtypes.c (lookup_struct_elt_type): Expand comments. Fix
2767 NULL dereferencing bug for unnamed structs, comment out
2768 questionable code.
2769
2770Mon Mar 1 17:54:41 1993 John Gilmore (gnu@cygnus.com)
2771
2772 * coffread.c (process_coff_symbol): Change PCC argument correction
2773 so that it only happens on big-endian targets; so that it only
2774 happens if the short or char argument is aligned on an int
2775 boundary; and so that it changes the location, rather than the
2776 type, of the argument. These changes tend to parallel similar
2777 (old) changes in stabsread.c.
2778
2779 * coffread.c (coff_read_enum_type): Use the specified size for
2780 enums, don't assume that they are int-sized.
2781
2782 * c-valprint.c (c_val_print): Don't assume enums are the same as
2783 ints.
2784
2785 * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
2786 Rendell, <michael@mercury.cs.mun.ca>.
2787
2788Mon Mar 1 09:25:57 1993 Fred Fish (fnf@cygnus.com)
2789
2790 * language.h (local_decimal_format_custom): Add prototype.
2791 * language.c (local_decimal_format_custom): Add function, bug
2792 reported by Robert R. Henry (rrh@tera.com).
2793
2794Fri Feb 26 18:33:18 1993 John Gilmore (gnu@cacophony.cygnus.com)
2795
2796 * xcoffexec.c (vmap_ldinfo): Fix "/" for '/' typo, reported
2797 by Josef Leherbauer, joe@takeFive.co.at.
2798
2799Wed Feb 24 19:17:11 1993 John Gilmore (gnu@cacophony.cygnus.com)
2800
2801 * symfile.c (syms_from_objfile), tm-29k.h, tm-3b1.h, tm-68k-un.h,
2802 tm-altos.h, tm-arm.h, tm-convex.h, tm-es1800.h, tm-h8300.h,
2803 tm-hp300bsd.h, tm-hp300hpux.h, tm-hppa.h, tm-i386bsd.h,
2804 tm-i386v.h, tm-i960.h, tm-irix3.h, tm-isi.h, tm-linux.h,
2805 tm-m88k.h, tm-merlin.h, tm-mips.h, tm-news.h, tm-np1.h, tm-pn.h,
2806 tm-pyr.h, tm-rs6000.h, tm-spc-un.h, tm-sun386.h, tm-sunos.h,
2807 tm-symmetry.h, tm-sysv4.h, tm-tahoe.h, tm-umax.h, tm-vax.h,
2808 tm-vx68.h, tm-z8k.h: Remove remnants of NAMES_HAVE_UNDERSCORE.
2809
2810Wed Feb 24 07:41:15 1993 Fred Fish (fnf@cygnus.com)
2811
2812 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize contents
2813 of demangled name fields to NULL if no demangling exists for
2814 a symbol. SYMBOL_INIT_LANGUAGE_SPECIFIC does this for new
2815 symbols if their language is known at the time they are created,
2816 but sometimes the language is not known until later.
2817
2818 * ch-typeprint.c (chill_print_type_base): Name changed to
2819 chill_type_print_base to match pattern for C and C++ names.
2820 * ch-typeprint.c (chill_print_type): Change "char" to "CHAR"
2821 to be consistent with other usages.
2822 * ch-typeprint.c (chill_type_print_base): Add support for
2823 printing Chill STRUCT types.
2824 * ch-valprint.c: Include values.h.
2825 * ch-valprint.c (chill_print_value_fields): New function and
2826 prototype for printing Chill STRUCT values.
2827 * ch-valprint.c (chill_val_print): Fix call to val_print_string
2828 that was being called with two args instead of three.
2829 * ch-valprint.c (chill_val_print): Call chill_print_value_fields
2830 to print Chill STRUCT values.
2831
2832Tue Feb 23 18:58:11 1993 Mike Werner (mtw@poseidon.cygnus.com)
2833
2834 * configure.in: added testsuite to configdirs.
2835
2836Tue Feb 23 11:46:11 1993 Mike Stump (mrs@cygnus.com)
2837
2838 * doc/stabs.texi: The `this' pointer is now known by the name
2839 `this' instead of `$t'.
2840
2841Tue Feb 23 11:21:33 1993 Fred Fish (fnf@cygnus.com)
2842
2843 * dwarfread.c (read_tag_string_type): Rewrite to allow forward
2844 references of TAG_string_type DIEs in user defined types.
2845 * ch-lang.c (chill_create_fundamental_type): Track compiler
2846 change that now emits debugging info with the type long for Chill
2847 longs.
2848
2849Mon Feb 22 15:21:54 1993 Ian Lance Taylor (ian@cygnus.com)
2850
2851 * remote-mips.c: New file; implements MIPS remote debugging
2852 protocol.
2853 * config/idt.mt: New file; uses remote-mips.c
2854 * configure.in (mips-idt-ecoff): New target; uses idt.mt.
2855
2856 * mips-tdep.c (mips_fpu): New variable; controls use of MIPS
2857 floating point coprocessor.
2858 (mips_push_dummy_frame): If not mips_fpu, don't save floating
2859 point registers.
2860 (mips_pop_frame): If not mips_fpu, don't restore floating point
2861 registers.
2862 (_initialize_mips_tdep): New function; let the user reset mips_fpu
2863 variable.
2864 * tm-mips.h (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE): If not
2865 mips_fpu, don't use fp0 as floating point return register.
2866 (FIX_CALL_DUMMY): If not mips_fpu, don't save floating point
2867 registers.
2868
2869Mon Feb 22 07:54:03 1993 Mike Werner (mtw@poseidon.cygnus.com)
2870
2871 * gdb/testsuite: made modifications to testcases, etc., to allow
2872 them to work properly given the reorganization of deja-gnu and the
2873 relocation of the testcases from deja-gnu to a "tool" subdirectory.
2874
2875Sun Feb 21 10:55:55 1993 Mike Werner (mtw@poseidon.cygnus.com)
2876
2877 * gdb/testsuite: Initial creation of gdb/testsuite.
2878 Migrated dejagnu testcases and support files for testing nm to
2879 gdb/testsuite from deja-gnu. These files were moved "as is"
2880 with no modifications. This migration is part of a major overhaul
2881 of dejagnu. The modifications to these testcases, etc., which
2882 will allow them to work with the new version of dejagnu will be
2883 made in a future update.
2884
2885Fri Feb 19 18:36:55 1993 John Gilmore (gnu@cygnus.com)
2886
2887 * NEWS: Add reminders for next release.
2888
2889Fri Feb 19 10:01:39 1993 Ian Lance Taylor (ian@cygnus.com)
2890
2891 * mipsread.c (parse_lines): Correct check for files compiled with
2892 -g1.
2893
2894Fri Feb 19 05:56:15 1993 John Gilmore (gnu@cygnus.com)
2895
2896 * Makefile.in (VERSION): 4.8.1 to distinguish local versions.
2897
2898Fri Feb 19 01:32:58 1993 John Gilmore (gnu@cygnus.com)
2899
2900 * Makefile.in (VERSION): GDB-4.8 release!
2901 * README, NEWS: Update for release.
2902
2903Thu Feb 18 22:44:40 1993 Stu Grossman (grossman@cygnus.com)
2904
2905 * am29k-pinsn.c (print_insn): Minor nits with const.
2906 * am29k-tdep.c: More minor nits with arg types for
2907 supply_register, NULL vs. 0, read_register_gen, & reginv_com.
2908
2909Thu Feb 18 22:38:03 1993 John Gilmore (gnu@cygnus.com)
2910
2911 * gcc.patch: Update for a different GCC (G++) bug.
2912 * main.c (print_gdb_version): Update copyright year to 1993.
2913 * nm-hp300bsd.h: Decide whether this is BSD 4.3 or 4.4,
2914 conditionalize this file on it. FIXME, right way is to split
2915 these into two config files.
2916 (ATTACH_DETACH): Define for BSD 4.4
2917 (PTRACE_ARG_TYPE): caddr_t for BSD 4.4, unset for 4.3.
2918 (U_REGS_OFFSET): Revise for 4.4.
2919 (REGISTER_U_ADDR): Separate for 4.4, but it doesn't work yet.
2920 * xm-hp300bsd.h: Move definitions of UINT_MAX, INT_MAX, INT_MIN,
2921 LONG_MAX into this file to avoid cpp "redefinition" warnings.
2922
2923Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
2924
2925 * nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
2926 caddr_t.
2927
2928Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
2929
2930 * c-lang.c (c_printstr): Bugfix for length==0 case.
2931
2932 * c-lang.c (c_printstr): If a C string ends in a null, don't
2933 print the null.
2934
2935Thu Feb 18 02:39:21 1993 Stu Grossman (grossman at cygnus.com)
2936
2937 * defs.h (STRCMP): Make it work for unsigned chars.
2938
2939Thu Feb 18 01:56:06 1993 John Gilmore (gnu@cygnus.com)
2940
2941 * nm-hp300bsd.h (ATTACH_DETACH, PTRACE_ATTACH, PTRACE_DETACH): define.
2942 * config/hp300bsd.mh (REGEX, REGEX1): Define.
2943 * m68k-pinsn.c (BREAK_UP_BIG_DECL, AND_OTHER_PART): #if __GNUC__,
2944 define to kludge the large opcode table into two smaller tables,
2945 since GCC take exponential space to build the table. Lint.
2946 (NOPCODES): Remove, use "numopcodes" from opcode/m68k.h instead.
2947
2948Wed Feb 17 19:24:40 1993 John Gilmore (gnu@cygnus.com)
2949
2950 * Makefile.in (VERSION): Roll to 4.7.9.
2951 * xm-hp300bsd.h: Define PSIGNAL_IN_SIGNAL_H and put a compatible
2952 definition here, to handle both BSD 4.3 and 4.4 systems.
2953 * mipsread.c (ZMAGIC): #undef to avoid duplicate define.
2954 * remote.c (alarm): Move declaration to global level, before
2955 first reference to it.
2956 * tm-i386bsd.h (NUM_REGS): There are only eleven, not twelve.
2957 * dbxread.c (process_one_symbol): Cast to unsigned char, not int.
2958
2959Wed Feb 17 13:40:29 1993 K. Richard Pixley (rich@cygnus.com)
2960
2961 * remote.c (readchar): forward declare alarm which otherwise looks
2962 like an undeclared variable to gcc.
2963
2964 * dbxread.c (process_one_symbol): cast enum value N_SO into int
2965 when comparing against an int. Avoids superfluous warning from
2966 vax ultrix 4.2 cc.
2967
2968 * inflow.c (set_sigint_trap): add cast to assignment from signal.
2969 Avoids superfluous warnings from some systems and/or compilers
2970 (like vax ultrix 4.2.)
2971
2972 * language.c (struct op_print unk_op_print_tab): use the enum
2973 values rather naked zeros as initializers. Avoids warnings from
2974 ultrix type compilers.
2975
2976Tue Feb 16 00:53:20 1993 John Gilmore (gnu@cygnus.com)
2977
2978 * Makefile.in (VERSION): Roll to 4.7.6.
2979 (SFILES_SUBDIR): Add 29k-share/udi_soc.
2980 (SFILES_SUBSUBDIR): Move 29k-share/udi files to this macro.
2981 (alldeps.mak): Make ALLDEPFILES_SUBSUBDIR for files in sub sub dirs.
2982 (ALLDEPFILES_SUBSUBDIR): Depend on this for deeper dep files.
2983 (HFILES): Remove all nm-* except nm-trash.h. Add ns32k-opcode.h.
2984 (depend): Fix bug where nm-files in config files weren't noticed.
2985 (make-proto-gdb-1): Avoid changing directories while building new
2986 prototype. Build SFILES_SUBSUBDIR with longer symlinks.
2987
2988Mon Feb 15 20:48:09 1993 John Gilmore (gnu@cygnus.com)
2989
2990 * remote.c: Improve error recovery. Allow user to break out
2991 of initial connection attempt with INTERRUPT. Treat a timeout
2992 while waiting for remote packet like a retry, unless the remote
2993 side is actively running user code. Fix a few long printf_filtered's.
2994
2995 * xcoffread.c (read_xcoff_symtab): Don't use null symbol name for
2996 trampoline symbols.
2997
2998 * buildsym.c (start_subfile): Allow null file name.
2999
3000Fri Feb 12 15:46:49 1993 K. Richard Pixley (rich@cygnus.com)
3001
3002 * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
3003 expects a pointer to complaint rather than a complaint
3004 structure.
3005 (process_linenos): free the previously allocated subfile name,
3006 then allocate the new one from the heap.
3007
3008Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3009
3010 * h8300-tdep.c, tm-h8300.h: turn off some experimental features
3011
3012Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
3013
3014 * stabsread.c (dbx_lookup_type): Handle negative type numbers.
3015 Previously, would bogusly index off the bottom of type_vector.
3016 (rs6000_builtin_type): Accept type number as argument.
3017 (read_type, case '-'): Handle negatives like any other type number.
3018
3019 * symfile.c (deduce_language_from_filename): Handle null name.
3020
3021 * mips-tdep.c (isa_NAN): Fix byte order dependency.
3022 Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
3023 fixed by sato@sm.sony.co.jp.
3024
3025 * xcoffread.c (parmsym): Don't use an initializer to set up
3026 this struct symbol. Set it up in initialize_xcoffread.
3027 (read_xcoff_symtab, xcoff_symfile_read): Surround code that only
3028 works on real rs/6000 target with #ifndef FAKING_RS6000.
3029
3030Wed Feb 10 23:42:37 1993 John Gilmore (gnu@cygnus.com)
3031
3032 * stabsread.c (rs6000_builtin_type): Move function from
3033 xcoffread.c:builtin_type.
3034 * xcoffread.c (builtin_type): Move to stabsread. Remove
3035 IBM6000_HOST dependency. Move misplaced comments.
3036 (various): Change printf's to complaints.
3037 (patch_block_stabs, process_xcoff_symbol case C_DECL): Add
3038 objfile argument to read_type calls under #if 0.
3039 (process_xcoff_symbol case C_RSYM): Fix typo in #ifdef.
3040 * xcoffexec.c (map_vmap): Don't allocate an objfile for the exec_file.
3041 * Makefile.in: xcoffread.o is not built by default.
3042 * xm-rs6000.h (IBM6000_HOST): Remove.
3043 * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
3044 * doc/gdbint.texinfo: Eliminate IBM6000_HOST, document
3045 IBM6000_TARGET.
3046
3047Wed Feb 10 18:31:20 1993 Stu Grossman (grossman at cygnus.com)
3048
3049 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
3050 VALUE_LVAL to be lval_memory so that we don't try to modify wild
3051 register numbers when user tries to modify elements in structs
3052 passed as arguments.
3053 * inflow.c (child_terminal_info): Move banner outside of system
3054 specific #ifdefs.
3055 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Define this for HPPA, which
3056 passes struct/union arguments by address.
3057
3058Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
3059
3060 * Based on patch from Kean Johnston <maw@netcom.com>:
3061 * nm-i386sco4.h: New file. Like nm-i386sco.h, but define
3062 ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
3063 * config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
3064
3065Tue Feb 9 20:07:18 1993 John Gilmore (gnu@cygnus.com)
3066
3067 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
3068 fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.
3069
3070Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
3071
3072 * config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
3073 cc debugging output.
3074
3075Tue Feb 9 00:19:28 1993 John Gilmore (gnu@cygnus.com)
3076
3077 * stabsread.c (define_symbol): Complain about unrecognized names
3078 that begin with CPLUS_MARKER (often '$'), but don't die. Fix
3079 suggested by gb@cs.purdue.edu (Gerald Baumgartner).
3080 (read_cpp_abbrev): Don't use the class name as part of the
3081 vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
3082 abbrevs. Inspired by Mike Tiemann.
3083 (read_tilde_fields): Comment. Remove ancient dead code.
3084 Remove erroneous but non-dead code. Simplify. Add complaints.
3085 (in general): Remove extraneous (parentheses) in return
3086 statements.
3087
3088Fri Feb 5 14:01:22 1993 John Gilmore (gnu@cygnus.com)
3089
3090 * coffread.c (coff_lookup_type): Fix fencepost error reported
3091 by Art Berggreen, <arg@opal.acc.com>.
3092
3093 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
3094 <Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>:
3095
3096 * coffread.c (getfilename): Eliminate COFF_NO_LONG_FILE_NAMES
3097 test, which is apparently left over from when we used native
3098 include files and couldn't depend on the member names being there.
3099 * tm-3b1.h, tm-altos.h, tm-i386v.h: Don't set it.
3100
3101Thu Feb 4 12:23:15 1993 Ian Lance Taylor (ian@cygnus.com)
3102
3103 * mipsread.c: Major overhaul to use new BFD symbol table reading
3104 routines. Now swaps information as it is needed, rather than
3105 swapping everything when the file is read.
3106
3107Thu Feb 4 01:52:36 1993 John Gilmore (gnu@cygnus.com)
3108
3109 * Makefile.in (TARDIRS): Add sparclite demo dir.
3110 (*.tab.c): Change dependency on Makefile to depend on
3111 Makefile.in, otherwise it always rebuilds after configuring.
3112 Force output *.tab.c file into current directory even in "make"
3113 versions that rewrite dependent file names used in command lines.
3114
3115 * TODO: Remove some things we did.
3116 * am29k-opcode.h, convx-opcode: Remove; now in ../include/opcode.
3117 * os68k-xdep.c: Remove; useless file (os68k is a target only).
3118 * convex-pinsn.c: Use ../include/opcode/convex.h. Add CONST.
3119 * symtab.h: Eliminate unnamed unions and structs.
3120
3121Wed Feb 3 14:48:08 1993 John Gilmore (gnu@cygnus.com)
3122
3123 * Makefile.in (VERSION): Roll to 4.7.5.
3124
3125Tue Feb 2 20:47:42 1993 John Gilmore (gnu@cygnus.com)
3126
3127 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
3128 re-evaluating symbol pointers.
3129
3130Tue Feb 2 16:10:31 1993 Fred Fish (fnf@cygnus.com)
3131
3132 * c-exp.y (lcurly, rcurly): New nonterminals.
3133 * c-exp.y (exp): Use lcurly and rcurly for arrays and UNOP_MEMVAL
3134 constructs.
3135 * parse.c (free_funcalls): Moved prototype from parser-defs.h,
3136 made function static.
3137 * parse.c (struct funcall): Moved struct def from parser-defs.h.
3138 * parse.c (funcall_chain): Moved from parser-defs.h, made static.
3139 * parse.c (start_arglist):
3140 * parser-defs.h (free_funcalls): Moved prototype to parse.c.
3141 * parser-defs.h (struct funcall): Moved struct def to parse.c.
3142 * parser-defs.h (funcall_chain): Moved to parse.c.
3143 * printcmd.c (print_frame_nameless_args): Fix prototype.
3144 * tm-mips.h (setup_arbitrary_frame): Fix prototype.
3145 * tm-sparc.h (setup_arbitrary_frame): Fix prototype.
3146 * valops.c (typecmp): Moved prototype from values.h.
3147 * value.h (typecmp): Moved prototype to valops.c, made static.
3148 * ch-exp.y (yylex): Change way control sequences are disabled.
3149
3150Tue Feb 2 16:11:43 1993 John Gilmore (gnu@cygnus.com)
3151
3152 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
3153
3154Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
3155
3156 * mipsread.c (upgrade_type): Build array types correctly, using
3157 create_range_type and create_array_type.
3158
3159Tue Feb 2 00:19:08 1993 John Gilmore (gnu@cygnus.com)
3160
3161 * remote-nindy.c: Cleanup.
3162
3163 * infrun.c (wait_for_inferior): When rolling back the PC after
3164 a breakpoint, call write_pc so that NPC gets rolled back as well
3165 (for the 29K).
3166
3167 * blockframe.c (inside_entry_file, inside_main_func,
3168 inside_entry_func): PC of zero is always "bottom of stack".
3169
3170 * printcmd.c (print_frame_args, print_frame_nameless_args):
3171 Let print_frame_nameless_args decide whether there are any,
3172 laying groundwork for possibly later printing 29K args for
3173 functions where we have tag words but no symbols.
3174
3175Mon Feb 1 18:09:58 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
3176
3177 * Makefile.in: fix GDB doc targets for new doc subdir structure
3178
3179Mon Feb 1 17:56:47 1993 John Gilmore (gnu@cygnus.com)
3180
3181 * stack.c (parse_frame_specification): Parse as many arguments
3182 as there are (up to MAXARGS). Pass all of them in argc, argv
3183 format to SETUP_ARBITRARY_FRAME. Put the burden of checking how
3184 many there were, onto SETUP_ARBITRARY_FRAME.
3185 * tm-mips.h, tm-sparc.h: Corresponding changes.
3186 * mips-tdep.c, sparc-tdep.c: Ditto.
3187
3188Mon Feb 1 17:19:37 1993 John Gilmore (gnu@cygnus.com)
3189
3190 * hp300ux-nat.c: Update copyrights.
3191 * mipsread.c (parse_partial_symbols): Complain about block
3192 indexes that go backwards. Fix from Peter Schauer.
3193 * symfile.c (syms_from_objfile, symbol_file_add): Allow a
3194 symbol-file that has no linkage symbols to be read.
3195 * tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends): Move
3196 from tm- file to xm-file, since they're host dependent.
3197 * valarith.c (value_binop): Typo.
3198
3199Mon Feb 1 16:16:59 1993 Stu Grossman (grossman at cygnus.com)
3200
3201 * sparclite/aload.c: Add copyleft.
3202 * sparclite/crt0.s: Add comment at beginning.
3203
3204Mon Feb 1 14:36:11 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3205
3206 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
3207 * parse.c (std_regs): Only declare if NO_STD_REGS is defined.
3208
3209Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
3210
3211 * values.c (value_headof): Fix typo in which VTBL and ARG were
3212 being confused for one another.
3213
3214 * valops.c (typecmp): Now static.
3215
3216 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
3217 baseclass--we don't always inherit its virtual function table
3218 pointer.
3219
3220 * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
3221 pointer correctly in case value_struct_elt moves it around.
3222
3223 * valops.c (typecmp): Now static. Also, now groks references
3224 better.
3225
3226 * gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
3227 zero on recursive call. If NAME is the name of TYPE, return TYPE.
3228
3229Sat Jan 30 19:55:52 1993 John Gilmore (gnu@cygnus.com)
3230
3231 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
3232 to avoid "too much defining" error from native C compiler (!).
3233
3234 * Makefile.in (HFILES): Add typeprint.h.
3235 * typeprint.[ch]: Update copyrights.
3236
3237Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
3238
3239 * Makefile.in: Update to match doc/ subdir changes.
3240
3241 * config/hp300hpux.mh: No cross-host file needed, just native.
3242 * config/go32.mh: Remove nonexistent "native" support.
3243
3244 M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
3245 * tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
3246 * m88k-tdep.c (next_insn): Lint, cleanup.
3247 (store_parm_word): Lint.
3248
3249 * README: Fix typo (reported by karl@hq.ileaf.com).
3250
3251Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
3252
3253 * expression.h (BINOP_CONCAT): Document use for self concatenation
3254 an integral number of times.
3255 * language.c (binop_type_check): Extend BINOP_CONCAT for self
3256 concatenation case.
3257 * valarith.c (value_concat): Rewrite to support self
3258 concatenation an integral number of times.
3259 * Makefile.in (ch-exp.tab.c): Change "expect" message.
3260 * ch-exp.y (FIXME's): Make all FIXME tokens distinct, to
3261 eliminate hundreds of spurious shift/reduce and reduce/reduce
3262 conflicts that mask the 5 real ones.
3263 * ch-exp.y (STRING, CONSTANT, SC): Remove unused tokens.
3264 * ch-exp.y (integer_literal_expression): Remove production,
3265 no longer used.
3266
3267Thu Jan 21 09:58:36 1993 Fred Fish (fnf@cygnus.com)
3268
3269 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
3270 implied that "no side effects" was nonfunctional.
3271 * eval.c (evaluate_subexp): Add BINOP_CONCAT case to deal with
3272 character string and bitstring concatenation.
3273 * expprint.c (dump_expression): Add case for BINOP_CONCAT.
3274 * expression.h (exp_opcode): Add BINOP_CONCAT.
3275 * gdbtypes.h (type_code): Add TYPE_CODE_BITSTRING.
3276 * language.c (string_type): Add function to determine if a type
3277 is a string type.
3278 * language.c (binop_type_check): Add case for BINOP_CONCAT.
3279 * valarith.c (value_concat): New function to concatenate two
3280 values, such as character strings or bitstrings.
3281 * valops.c (value_string): Remove error stub and implement
3282 function body.
3283 * value.h (value_concat): Add prototype.
3284 * ch-exp.y (operand_3): Add actions for SLASH_SLASH (//).
3285 * ch-exp.y (yylex): Recognize SLASH_SLASH.
3286 * ch-lang.c (chill_op_print_tab): Add SLASH_SLASH (//) as
3287 BINOP_CONCAT.
3288
3289Tue Jan 19 14:26:15 1993 Fred Fish (fnf@cygnus.com)
3290
3291 * c-exp.y (exp): Add production to support direct creation
3292 of array constants using the obvious syntax.
3293 * c-valprint.c (c_val_print): Set printed string length.
3294 * dwarfread.c (read_tag_string_type): New prototype and
3295 function that handles TAG_string_type DIEs.
3296 * dwarfread.c (process_dies): Add case for TAG_string_type
3297 that calls new read_tag_string_type function.
3298 * expprint.c (print_subexp): Add support for OP_ARRAY.
3299 * gdbtypes.c (create_range_type, create_array_type): Inherit
3300 objfile from the index type.
3301 * ch-typeprint.c (chill_print_type): Add case for
3302 TYPE_CODE_STRING.
3303 * ch-valprint.c (chill_val_print): Fix case for
3304 TYPE_CODE_STRING.
3305
3306Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
3307
3308 * mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
3309 MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
3310 include/coff/mips.h.
3311
3312Fri Jan 15 20:26:50 1993 Fred Fish (fnf@cygnus.com)
3313
3314 * c-exp.y (exp:STRING): Convert C strings into array-of-char
3315 constants with an explicit null byte terminator. OP_STRING is
3316 now used for real string types.
3317 * c-lang.c (builtin_type_*): Move declarations to lang.c since
3318 they are used by all languages.
3319 * c-lang.c (_initialize_c_language): Move initializations of
3320 builtin_type_* to lang.c.
3321 * c-typeprint.c (c_type_print_varspec_prefix,
3322 c_type_print_varspec_suffix): TYPE_CODE_PASCAL_ARRAY renamed
3323 to TYPE_CODE_STRING.
3324 * c-valprint.c (c_val_print): Change the way character arrays
3325 are printed as strings to be consistent with the way strings
3326 are printed when pointer-to-char types are dereferenced.
3327 Remove test of print_max before calling val_print_string, which
3328 now does it's own test.
3329 * eval.c (evaluate_subexp): Add case for OP_ARRAY.
3330 * expprint.c (print_subexp, dump_expression): Add case for OP_ARRAY.
3331 * expression.h (enum exp_opcode): Add OP_ARRAY and document.
3332 * gdbtypes.c (builtin_type_*): Add declarations moved from
3333 c-lang.c.
3334 * gdbtypes.c (create_string_type): New function to create real
3335 string types.
3336 * gdbtypes.c (recursive_dump_type): TYPE_CODE_PASCAL_ARRAY
3337 renamed to TYPE_CODE_STRING.
3338 * gdbtypes.c (_initialize_gdbtypes): Add initializations of
3339 builtin_type_* types moved from c-lang.c.
3340 * gdbtypes.h (enum type_code): TYPE_CODE_PASCAL_ARRAY renamed
3341 to TYPE_CODE_STRING.
3342 * gdbtypes.h (builtin_type_string): Add extern declaration.
3343 * gdbtypes.h (create_string_type): Add prototype.
3344 * m2-lang.c (m2_create_fundamental_type): TYPE_CODE_PASCAL_ARRAY
3345 renamed to TYPE_CODE_STRING.
3346 * m88k-tdep.c (pushed_size): TYPE_CODE_PASCAL_ARRAY renamed to
3347 TYPE_CODE_STRING.
3348 * mipsread.c (_initialize_mipsread): TYPE_CODE_PASCAL_ARRAY
3349 renamed to TYPE_CODE_STRING.
3350 * parse.c (length_of_subexp, prefixify_subexp): Add case for
3351 OP_ARRAY.
3352 * printcmd.c (print_formatted): Recognize TYPE_CODE_STRING.
3353 * typeprint.c (print_type_scalar): TYPE_CODE_PASCAL_ARRAY renamed
3354 to TYPE_CODE_STRING.
3355 * valops.c (allocate_space_in_inferior): New function and
3356 prototype, using code ripped out of value_string.
3357 * valops.c (value_string): Rewritten to use new function
3358 allocate_space_in_inferior, but temporarily disabled until some
3359 other support is in place.
3360 * valops.c (value_array): New function to create array constants.
3361 * valprint.c (val_print_string): Add comment to document use,
3362 complete rewrite to fix several small buglets.
3363 * value.h (value_array): Add prototype.
3364 * value.h (val_print_string): Change prototype to match rewrite.
3365 * ch-valprint.c (chill_val_print): Add case for TYPE_CODE_STRING.
3366 * ch-exp.y (match_character_literal): Disable recognition of
3367 control sequence form of character literals and document why.
3368
3369Thu Jan 14 15:48:12 1993 Stu Grossman (grossman at cygnus.com)
3370
3371 * nindy-share/nindy.c: Add comments to #endif's to clarify
3372 grouping.
3373
3374 * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
3375 read_memory to get byte order right.
3376 * hppah-tdep.c (find_unwind_info): Don't read in unwind info
3377 anymore. This is done in paread.c now. We expect unwind info
3378 to hang off of objfiles, and search all of the objfiles when until
3379 we find a match.
3380 * (skip_trampoline_code): Cast arg to target_read_memory.
3381 * objfiles.h (struct objfile): Add new field obj_private to hold
3382 per object file private data (unwind info in this case).
3383 * paread.c (read_unwind_info): New routine to read unwind info
3384 for the objfile. This data is hung off of obj_private.
3385 * tm-hppa.h: Define struct obj_unwind_info, to hold pointers to
3386 the unwind info for this objfile. Also define OBJ_UNWIND_INFO to
3387 make this easier to access.
3388
3389Wed Jan 13 20:49:59 1993 Fred Fish (fnf@cygnus.com)
3390
3391 * c-valprint.c (cp_print_class_member): Add extern decl.
3392 * c-valprint.c (c_val_print): Extract code for printing methods
3393 and move it to cp_print_class_method in cp-valprint.c.
3394 * c-valprint.c (c_val_print): Extract code to print strings and
3395 move it to val_print_string in valprint.c.
3396 * cp-valprint.c (cp_print_class_method): New function using
3397 code extracted from c_val_print.
3398 * valprint.c (val_print_string): New function using code
3399 extracted from c_val_print.
3400 * value.h (val_print_string): Add prototype.
3401 * ch-exp.y (CHARACTER_STRING_LITERAL): Set correct token type.
3402 * ch-exp.y (literal): Add action for CHARACTER_STRING_LITERAL.
3403 * ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
3404 CHECKBUF, growbuf_by_size): New variables, macros, and support
3405 functions for implementing a dynamically expandable temp buffer.
3406 * ch-exp.y (match_string_literal): New lexer function.
3407 * ch-exp.y (match_bitstring_literal): Dynamic buffer code
3408 removed and replaced with new CHECKBUF macro.
3409 * ch-exp.y (yylex): Call match_string_literal when appropriate.
3410 * ch-valprint.c (ch_val_print): Add code for TYPE_CODE_PTR.
3411
3412Sat Jan 9 19:59:33 1993 Stu Grossman (grossman at cygnus.com)
3413
3414 * Makefile.in: Add info for paread.o.
3415 * config/hppahpux.mh: Add paread.o to NATDEPFILES.
3416
3417 * blockframe.c (frameless_look_for_prologue): Correct the
3418 comment.
3419 * gdbtypes.h, gdbtypes.c: Use const in decl of
3420 cplus_struct_default, now that pa-gas assembler has been fixed.
3421 * hppah-nat.c: Formatting.
3422 * hppah-tdep.c: Remove lots of useless externs for variables we
3423 don't use.
3424 * (find_unwind_entry): Speed up by using binary search, and a one
3425 entry cache.
3426 * (rp_saved): New routine to see what unwind info says about RP
3427 being saved on the stack frame.
3428 * (frame_saved_pc): Look for prologue to see if we need to
3429 examine the stack for the saved RP or not.
3430 * (init_extra_frame_info): Check for prologue, instead of
3431 framesize to determine if we are frameless or not.
3432 * (frame_chain_valid): Stop backtraces when we run into _start.
3433 * (push_dummy_frame): Reformat to make more readable.
3434 * (find_dummy_frame_regs): ditto.
3435 * (hp_pop_frame): ditto.
3436 * (hp_restore_pc_queue): small cleanup.
3437 * (hp_push_arguments): ditto.
3438 * (pa_do_registers_info): ditto.
3439 * (skip_prologue): New routine created from SKIP_PROLOGUE macro.
3440 * tm-hppa.h: Move contents of SKIP_PROLOGUE into hppah-tdep.c.
3441 * Define FRAME_CHAIN_VALID.
3442 * Turn on BELIEVE_PCC_PROMOTION so that we can access char args
3443 passed to functions.
3444
3445 * paread.c (pa_symtab_read): Use new bfd conventions for
3446 accessing linker symbol table.
3447 * (pa_symfile_init): Access embedded STAB info via BFD section
3448 mechanism and related macros.
3449
3450
3451Sat Jan 9 19:31:43 1993 Stu Grossman (grossman at cygnus.com)
3452
3453 * sparc-stub.c: Use a seperate stack for our traps.
3454 * Handle recursive traps.
3455 * Remove all trap init code. This needs to be done by the
3456 environment.
3457 * (set_mem_fault_trap): Call exceptionHandler() to setup this
3458 trap.
3459 * (handle_exception): See if we are at breakinst, if so, then
3460 advance PC sp that users can just step out of breakpoint().
3461 * (case 'G'): Don't let GDB hack CWP. Also, copy saved regs to
3462 new place if SP has changed.
3463 * (case 's'): Get rid of this, we can't do it yet.
3464 * (case 't'): New command to test any old random feature.
3465 * (case 'r'): New command to reset the system.
3466 * (breakpoint): Add label to breakpoint trap instruction so that
3467 handle_exception() can detect where we are and get past the
3468 breakpoint trivially.
3469
3470Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
3471
3472 * mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
3473
3474Thu Jan 7 09:21:51 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3475
3476 * configure.in: recognise all sparclite variants
3477
3478Wed Jan 6 10:14:51 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3479
3480 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
3481 binary files oring in the right bit.
3482
3483 * main.c, source.c, state.c, symmisc.c: use macros defined in
3484 fopen-{bin|both} when fopening files.
3485
3486Wed Jan 6 08:19:11 1993 Fred Fish (fnf@cygnus.com)
3487
3488 * defs.h (HOST_CHAR_BIT): New macro, defaults to either CHAR_BIT
3489 from a configuration file (typically including <limits.h>), or to
3490 TARGET_CHAR_BIT if CHAR_BIT is not defined.
3491 * eval.c (evaluate_subexp): Use new BYTES_TO_EXP_ELEM macro.
3492 * eval.c (evaluate_subexp): Add case for OP_BITSTRING.
3493 * expprint.c (print_subexp): Use new BYTES_TO_EXP_ELEM macro.
3494 * exppritn.c (print_subexp, dump_expression): Add case for
3495 OP_BITSTRING.
3496 * expression.h (OP_BITSTRING): New expression element type for
3497 packed bitstrings.
3498 * expression.h (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): New
3499 macros to convert between number of expression elements and bytes
3500 to store that many elements.
3501 * i960-tdep.c (leafproc_return): Use new macros to access
3502 minimal symbol name and address fields.
3503 * m88k-pinsn.c (sprint_address): Use new macros to access
3504 minimal symbol name and address fields.
3505 * nindy-tdep.c (nindy_frame_chain_valid): Use new macro to access
3506 minimal symbol address field.
3507 * parse.c (write_exp_elt, write_exp_string, prefixify_expression,
3508 parse_exp_1): Use new EXP_ELEM_TO_BYTES macro.
3509 * parse.c (write_exp_string, length_of_subexp, prefixify_expression):
3510 Use new BYTES_TO_EXP_ELEM macro.
3511 * parse.c (write_exp_bitstring): New function to write packed
3512 bitstrings into the expression element vector.
3513 * parse.c (length_of_subexp, prefixify_subexp): Add case for
3514 OP_BITSTRING.
3515 * parser-defs.h (struct stoken): Document that it is used for
3516 OP_BITSTRING as well as OP_STRING.
3517 * parser-defs.h (write_exp_bitstring): Add prototype.
3518 * ch-exp.y (BIT_STRING_LITERAL): Change token type to sval.
3519 * ch-exp.y (NUM, PRED, SUCC, ABS, CARD, MAX, MIN, SIZE, UPPER,
3520 LOWER, LENGTH): New tokens for keywords.
3521 * ch-exp.y (chill_value_built_in_routine_call, mode_argument,
3522 upper_lower_argument, length_argument, array_mode_name,
3523 string_mode_name, variant_structure_mode_name): New non-terminals
3524 and productions.
3525 * ch-exp.y (literal): Useful production for BIT_STRING_LITERAL.
3526 * ch-exp.y (match_bitstring_literal): New lexer support function
3527 to recognize bitstring literals.
3528 * ch-exp.y (tokentab6): New token table for 6 character keywords.
3529 * ch-exp.y (tokentab5): Add LOWER, UPPER.
3530 * ch-exp.y (tokentab4): Add PRED, SUCC, CARD, SIZE.
3531 * ch-exp.y (tokentab3): Add NUM, ABS, MIN, MAX.
3532 * ch-exp.y (yylex): Check tokentab6.
3533 * ch-exp.y (yylex): Call match_bitstring_literal.
3534
3535Mon Jan 4 16:54:18 1993 Fred Fish (fnf@cygnus.com)
3536
3537 * xcoffexec.c (vmap_symtab): Use new macros to access minimal
3538 symbol name and value fields.
3539
3540 * c-exp.y (yylex): Make static, to match prototype and other
3541 <lang>-exp.y files.
3542
3543 * expression.h (exp_opcode): Add BINOP_MOD.
3544 * eval.c (evaluate_subexp): Handle new BINOP_MOD.
3545 * expprint.c (dump_expression): Handle new BINOP_MOD.
3546 * language.c (binop_type_check): Handle new BINOP_MOD.
3547 * main.c (float_handler): Re-enable float handler when hit.
3548 * valarith.c (language.h): Include, need current_language.
3549 * valarith.c (TRUNCATION_TOWARDS_ZERO): Define default macro
3550 for integer divide truncates towards zero for negative results.
3551 * valarith.c (value_x_binop): Handle BINOP_MOD if seen.
3552 * valarith.c (value_binop): Allow arithmetic operations on
3553 TYPE_CODE_CHAR variables. Add case to handle new BINOP_MOD.
3554 * ch-exp.y (operand_4): Add useful actions for MOD and REM.
3555 * ch-exp.y (tokentab3): Add MOD and REM.
3556 * ch-exp.y (yylex): Set innermost_block for symbols found
3557 in local scopes. Return LOCATION_NAME for local symbols.
3558 * ch-lang.c (chill_op_print_tab): Fix MOD entry to use
3559 BINOP_MOD instead of BINOP_REM. Add REM entry, using BINOP_REM.
3560
3561Mon Jan 4 07:35:31 1993 Steve Chamberlain (sac@wahini.cygnus.com)
3562
3563 * command.c (shell_escape, make_command, _initialize_command):
3564 don't create or use fork if CANT_FORK is defined.
3565 * serial.h, ser-go32.c: now compiles, but "the obvious problems of
3566 code written for the IBM PC" remain.
3567 * xm-go32.h: define CANT_FORK
3568
3569Sun Jan 3 14:24:56 1993 Steve Chamberlain (sac@thepub.cygnus.com)
3570
3571 * remote-sim.c: first attempt at general simulator interface
3572 * remote-hms.c: whitespace
3573 * h8300-tdep.c: (h8300_skip_prologue, examine_prologue):
3574 understand new stack layout. (print_register_hook): print ccr
3575 register in a fancy way.
3576
3577Sun Jan 3 14:16:10 1993 Fred Fish (fnf@cygnus.com)
3578
3579 * eval.c (language.h): Include.
3580 * eval.c (evaluate_subexp_with_coercion): Only coerce arrays
3581 to pointer types when the current language is C. It loses for
3582 other languages when the lower index bound is nonzero.
3583 * valarith.c (value_subscript): Take array lower bounds into
3584 account when performing subscripting operations.
3585 * valops.c (value_coerce_array): Add comment describing why
3586 arrays with nonzero lower bounds are dealt with in value_subscript,
3587 rather than in value_coerce_array.
3588
3589Sat Jan 2 12:16:41 1993 Fred Fish (fnf@cygnus.com)
3590
3591 * ch-exp.y (FLOAT_LITERAL): Add token.
3592 * ch-exp.y (literal): Add FLOAT_LITERAL.
3593 * ch-exp.y (match_float_literal): New lexer routine.
3594 * ch-exp.y (convert_float): Remove.
3595 * ch-exp.y (yylex): Call match_float_literal.
3596 * ch-exp.y (yylex): Match single '.' after trying
3597 to match floating point literals.
3598
3599 * eval.c (evaluate_subexp): Add case MULTI_SUBSCRIPT.
3600 * expprint.c (print_subexp): Rename BINOP_MULTI_SUBSCRIPT to
3601 MULTI_SUBSCRIPT.
3602 * expprint.c (dump_expression): New function for dumping
3603 expression vectors during gdb debugging.
3604 * expression.h (BINOP_MULTI_SUBSCRIPT): Name changed to
3605 MULTI_SUBSCRIPT and moved out of BINOP range.
3606 * expression.h (DUMP_EXPRESSION): New macro that calls
3607 dump_expression if DEBUG_EXPRESSIONS is defined.
3608 * m2-exp.y (BINOP_MULTI_SUBSCRIPT): Changed to MULTI_SUBSCRIPT.
3609 * parse.c (length_of_subexp, prefixify_subexp): Change
3610 BINOP_MULTI_SUBSCRIPT to MULTI_SUBSCRIPT.
3611 * parse.c (parse_exp_1): Call DUMP_EXPRESSION before and after
3612 prefixify'ing the expression.
3613 * printcmd.c (print_command_1): Add comment.
3614 * ch-exp.y (expression_list): Add useful actions.
3615 * ch-exp.y (value_array_element): Add useful actions.
3616 * ch-exp.y (array_primitive_value): Add production.
3617 * ch-exp.y (yylex): Recognize ',' as a token.
3618
3619Fri Jan 1 18:22:02 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3620
3621 * Makefile.in: pass prefix and exec_prefix via FLAGS_TO_PASS,
3622 POSIXize the recursive makes (make [variable assignments] target{s})
3623
3624Fri Jan 1 11:56:23 1993 Fred Fish (fnf@cygnus.com)
3625
3626 * tm-sun4sol2.h (CPLUS_MARKER): Remove, now set in tm-sysv4.h.
3627 * tm-sysv4.h (CPLUS_MARKER): By default, g++ uses '.' as the
3628 CPLUS_MARKER for all SVR4 systems, so follow suit.
3629 * defs.h (strdup_demangled): Remove prototype.
3630 * dwarfread.c (enum_type, synthesize_typedef): Use new macro
3631 SYMBOL_INIT_LANGUAGE_SPECIFIC.
3632 * dwarfread.c (new_symbol): Use SYMBOL_INIT_DEMANGLED_NAME.
3633 * minsyms.c (install_minimal_symbols, prim_record_minimal_symbol,
3634 prim_record_minimal_symbol_and_info): Use new macro
3635 SYMBOL_INIT_LANGUAGE_SPECIFIC.
3636 * minsyms.c (install_minimal_symbols): Use new macro
3637 SYMBOL_INIT_DEMANGLED_NAME.
3638 * stabsread.c (define_symbol): Use new macro
3639 SYMBOL_INIT_DEMANGLED_NAME.
3640 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
3641 Use new macro SYMBOL_INIT_DEMANGLED_NAME.
3642 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Use new macro
3643 SYMBOL_INIT_DEMANGLED_NAME.
3644 * symmisc.c (dump_msymbols, dump_symtab, print_partial_symbol):
3645 SYMBOL_DEMANGLED_NAME now tests language itself.
3646 * symtab.c (COMPLETION_LIST_ADD_SYMBOL): SYMBOL_DEMANGLED_NAME
3647 now tests language itself.
3648 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): New macro that does
3649 what SYMBOL_DEMANGLED_NAME used to do, directly access the C++
3650 mangled name member in the language dependent portion of a symbol.
3651 * symtab.h (SYMBOL_DEMANGLED_NAME): New macro that returns the
3652 mangled name member appropriate for a symbol's language.
3653 * symtab.h (SYMBOL_SOURCE_NAME, SYMBOL_LINKAGE_NAME,
3654 SYMBOL_MATCHES_NAME, SYMBOL_MATCHES_REGEXP):
3655 SYMBOL_DEMANGLED_NAME now tests language itself.
3656 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): New macro that
3657 initializes language dependent portion of symbol.
3658 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): New macro that
3659 demangles and caches the demangled form of symbol names.
3660 * utils.c (fputs_demangled, fprint_symbol): Use current language
3661 to select an appropriate demangling algorithm.
3662 * utils.c (strdup_demangled): Remove, no longer used.
3663 * symtab.h (SYMBOL_CHILL_DEMANGLED_NAME): New macro that directly
3664 access the Chill mangled name member in the language dependent
3665 portion of a symbol.
3666 * ch-lang.c (chill_demangle): New function, simple demangler.
3667 * defs.h (chill_demangle): Add prototype.
3668 * symtab.h (language_dependent_info): Add struct for Chill.
3669
3670For older changes see ChangeLog-92
3671\f
3672Local Variables:
3673mode: indented-text
3674left-margin: 8
3675fill-column: 74
3676version-control: never
3677End:
This page took 0.034424 seconds and 4 git commands to generate.