* Makefile.in (GDB_SUPPORT_FILES): Remove
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f6d5d006
JK
1Tue Jul 26 14:15:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2
3 * target.c (push_target): Cast result from xmalloc.
4
d54b2c50
SS
5Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
6
7 * elfread.c (elf_symtab_read): Discard compiler labels generated
8 by the Solaris 2.1/Intel SunPro compiler.
9
4fc5969d
SG
10Mon Jul 25 18:19:24 1994 Stu Grossman (grossman@cygnus.com)
11
12 * target.c (nomemory): Fix prototype and routine to take correct
13 args.
14
1ded65d1
JK
15Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
16
17 * Makefile.in (clean): Remove libgdb-files.
18
9a989b1f
SS
19Mon Jul 25 11:50:57 1994 Stan Shebs (shebs@andros.cygnus.com)
20
21 * coredep.c: Include inferior.h.
22
159f3816
C
23Mon Jul 25 11:36:02 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
24
25 * Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
26
27 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
28 line arguments.
29
557f3a0e
SS
30Sat Jul 23 14:36:09 1994 Stan Shebs (shebs@andros.cygnus.com)
31
9e38b2fa
SS
32 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
33 .cp as C++, alphabetize better.
34
557f3a0e
SS
35 * breakpoint.c (ignore, condition): Move usage note into body of
36 help text, so first line can be one-line summary.
37
67e947de
SG
38Sat Jul 23 00:58:15 1994 Stu Grossman (grossman@cygnus.com)
39
40 * target.c (unpush_target): Fix handling of removal of top target.
41
cad1498f
SG
42Fri Jul 22 17:30:39 1994 Stu Grossman (grossman@cygnus.com)
43
44 * Makefile.in: Add stuff to build nlmstub.
45 * Add rule for annotate.o to keep Sun make happy.
46 * configure.in: Add config for powerpc/Netware.
47
48 * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null
49 filename. This speeds up handling of trailing N_SO stabs (they
50 mark the end of a .o file).
51
52 * target.c, target.h: Change the way pushing and popping of
53 targets work to support target overlays and inheritance.
54 * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
55 Fixup references to current_target, due to previous changes.
56
57 * config/i386/tm-i386nw.h: Enable longjmp support. More work is
58 needed to get the address of longjmp out of the target.
59
844750e3
SS
60Tue Jul 19 13:25:06 1994 Stan Shebs (shebs@andros.cygnus.com)
61
62 * main.c: Include <ctype.h>.
63
b0a0ee52
KH
64Mon Jul 18 15:32:17 1994 Kung Hsu (kung@mexican.cygnus.com)
65
66 * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
67 prompt.
68
b0fbe5a2
SS
69Mon Jul 18 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
70
71 * solib.c (look_for_base): Don't deref exec_bfd if NULL.
72
0f221a69
FF
73Sun Jul 17 15:38:36 1994 Fred Fish (fnf@cygnus.com)
74
005234f5 75 * Makefile.in (VERSION): Bump to 4.12.4.
0f221a69
FF
76
77Sun Jul 17 12:20:35 1994 Stan Shebs (shebs@andros.cygnus.com)
78
79 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
80 * configure.in (m88*-harris-cxux*): New configuration.
81 * cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
82 config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
83 New files.
84 * config/m88k/tm-m88k.h: Add comment about Harris OS.
85 (TARGET_WRITE_PC): Pass pid through to register writers.
86
87 * configure.in (m68*): Put vendor-only-specified host configs
88 after vendor-and-os-specified configs.
89 (m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
90
91 * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
92 * config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
93 consistently.
94
00306b1e
PS
95Sat Jul 16 23:39:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
96
97 * elfread.c (elf_symtab_read): Handle error return from
98 bfd_get_dynamic_symtab_upper_bound gracefully.
99
49b476bd
SS
100Sat Jul 16 14:43:17 1994 Stan Shebs (shebs@andros.cygnus.com)
101
62a5dabc
SS
102 * inferior.h (ARCH_NUM_REGS): New macro, actual number of
103 registers in use by the inferior.
104 * coredep.c (fetch_core_registers, register_addr): Use it.
105 * findvar.c (registers_changed, registers_fetched,
106 read_register_bytes): Ditto.
107 * infcmd.c (do_registers_info, registers_info): Ditto.
108 * infptrace.c (fetch_inferior_registers,
109 store_inferior_registers): Ditto.
110 * stack.c (frame_info): Ditto.
111
112 * coredep.c (CORE_REGISTER_ADDR): New macro.
113 (fetch_core_registers): Use it.
114
49b476bd
SS
115 * breakpoint.c (ignore, condition): Add usage notes to help strings.
116 * symfile.c (add-symbol-file): Add usage note to help string.
117 (add_shared_symbol_files_command): New command.
118
119 gcc -Wall lint.
120 * inferior.h (read_pc_pid): Declare.
121 * breakpoint.c (watchpoint_check): Cache breakpoint in local
122 variable b, remove unused variable other_type_used.
123 * main.c (inferior.h, call-cmds.h): Include.
124 (gdb_init): Declare.
125 * remote.c (remote_wait): Return 0 by default.
126
0568ccb0
SS
127Fri Jul 15 16:43:33 1994 Stan Shebs (shebs@andros.cygnus.com)
128
129 Stop printing at null char option, from Oliver Meyer
130 (omeyer@i3.informatik.rwth-aachen.de).
131 * valprint.h, valprint.c (stop_print_at_null): New global.
132 * valprint.c (_initialize_valprint): New print set subcommand
133 "null-stop".
134 * c-valprint.c (c_val_print): If stop_print_at_null is on, and
135 printing a char array, adjust the number of chars to print.
136
08f32e32
SS
137Fri Jul 15 14:33:40 1994 Stan Shebs (shebs@andros.cygnus.com)
138
139 From Kevin A. Buettner (kev@cujo.geg.mot.com).
140 * m88k-tdep.c (examine_prologue): Modified to handle prologues for
141 pic code in addition to prologues where an instruction from the
142 prologue gets moved into the delay slot of a branch instruction
143 immediately following the prologue. A table of potential prologue
144 instructions (prologue_insn_tbl) is now used for picking apart a
145 function prologue.
146 (frame_find_saved_regs): Changed the way in which limit gets set
147 so that the delay slot of branch instructions immediately
148 following the prologue gets examined.
149 (pushed_size, store_parm_word, store_parm, push_parameters,
150 collect_returned_value): Deleted.
151
0b0ee55e
PS
152Fri Jul 15 01:06:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
153
154 * infrun.c (wait_for_inferior): Handle stepping into leaf
155 functions whose prologue consists of gp loading code only.
156
8e3ff823
SS
157Thu Jul 14 14:22:12 1994 Stan Shebs (shebs@andros.cygnus.com)
158
159 * dbxread.c: Don't include libbfd.h.
160 * dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
161 <time.h>, or <sys/types.h>.
162 * elfread.c (elf_symfile_read): Use only standard BFD functions to
163 collect information about the stab and stab string sections.
164
8dbe58d8
KH
165Thu Jul 14 13:17:39 1994 Kung Hsu (kung@x1.cygnus.com)
166
167 * stabsread.c (read_huge_number): handle large unsigned number
168 for stabs generated by os9k C compiler.
169
9f577285
SS
170Wed Jul 13 18:58:15 1994 Stan Shebs (shebs@andros.cygnus.com)
171
172 Breakpoint hit counts, from Bob Rusk (rrusk@mail.csd.harris.com).
173 * breakpoint.h (hit_count): New breakpoint field.
174 * breakpoint.c (show_breakpoint_hit_counts): New variable.
175 (clear_breakpoint_hit_counts): New function.
176 (bpstat_stop_status): Increment the hit count.
177 (breakpoint_1): Display the hit count.
178 * infcmd.c (run_command): Reset breakpoint hit counts.
179 * target.c (generic_mourn_inferior): Don't clear ignore counts if
180 displaying hit counts.
181
6d9b8a93
PS
182Tue Jul 12 12:23:15 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
183
184 * elfread.c (elf_symfile_read): Unconditionally add dynamic
185 symbols for all symbol files. Makes skipping over the
186 trampoline code work when stepping from a function in a shared
187 library into a function in a different shared library for Irix 5.
188 Other ELF targets do not have enough information in their
189 dynamic symbol tables to make this work.
190 (elf_symtab_read): Relocate mst_solib_trampoline address.
191
02176ddb
SS
192Mon Jul 11 16:38:49 1994 Stan Shebs (shebs@andros.cygnus.com)
193
194 Atari support, from Uwe Seimet (seimet@chemie.uni-kl.de).
195 * configure.in (m68*-atari-sysv4*): New configuration.
196 (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
197 * m68k-tdep.c (R_PS): Define as R_SR if necessary.
198 * config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
199 config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
200 * config/m68k/amix.mh, config/m68k/amix.mt,
201 config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
202 by m68kv4 files.
203
defa6c74
PS
204Sat Jul 9 16:28:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
205
206 * symtab.c (find_function_start_sal): New function to find
207 the start of a function from a function symbol.
208 (decode_line_1, decode_line_2): Use it instead of open coded
209 partial copies of the code.
210 (list_symbols): Quote symbol name before passing it to
211 break_command to enable proper handling of mangled symbols.
212
213Wed Jul 6 20:22:07 1994 Per Bothner (bothner@kalessin.cygnus.com)
214
215 * ch-exp.y (match_simple_name_string): Don't lower-case here.
216 * ch-exp.y (yylex): First try name lookup using exact name
217 typed by user; if that fails, try lower-cased name.
218
cef0333e
PS
219Wed Jul 6 00:48:57 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
220
221 * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
222 Move "no debugging symbols found" test to symfile.c.
223 * symfile.c (syms_from_objfile, reread_symbols): Add
224 "no debugging symbols found" test.
225 * coffread.c (init_stringtab): Handle stripped files with a
226 stringtab offset of zero gracefully.
227 * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from
228 BFD instead of stop_pc heuristic to determine if it is a dynamically
229 linked object file.
230 * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP
231 ioctl, it indicates that the process has exited.
232
0fc27289
JL
233Mon Jul 4 19:28:56 1994 Jeff Law (law@snake.cs.utah.edu)
234
235 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
236 .PARISC.unwind section now.
237
51684caa
SS
238Mon Jul 4 17:06:26 1994 Stan Shebs (shebs@andros.cygnus.com)
239
240 * breakpoint.c (mention): Always show breakpoint address if no
241 source file.
242
243Sat Jul 2 01:51:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
244
245 * solib.c (bfd_lookup_symbol, look_for_base): Reinstate to reenable
246 handling of shared libraries for non-ELF executables, but only if
247 HANDLE_SVR4_EXEC_EMULATORS is defined.
248 (locate_base): Try to find debug_base in the dynamic linker
249 for non-ELF executables if HANDLE_SVR4_EXEC_EMULATORS is defined.
250 * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
251 Define to enable handling of shared libraries for a.out executables,
252 run under Solaris BCP.
253
018d94f5
JK
254Thu Jun 30 13:59:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
255
256 * infrun.c (wait_for_inferior): Print "Program exited normally"
257 regardless of batch_mode.
258 * defs.h, top.c (batch_mode): Removed.
259
7d13174e
SS
260Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com)
261
054308ad
SS
262 * Makefile.in (dcache_h): Remove redundant definition.
263 (init.c): Add a comment.
264 (top.c): Remove explicit compile action.
265 * breakpoint.c (mention): Share code indicating location of
266 break/watchpoints, don't print address if addressprint is off.
267 * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
268 (demangle): Remove redundant declarations.
269 * eval.c: Remove redundant function declarations.
270 * objfiles.h: Cosmetic and grammatical improvements.
271 * TODO: Various updates.
272
7d13174e
SS
273 * remote-mips.c: Replace all \r chars with \015.
274 (mips_receive_header): Display control characters readably.
275 (mips_xfer_memory): Add a simple progress display.
276
402b0d2e
SC
277Wed Jun 29 13:11:45 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
278
279 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
280 using go32.
281 * remote-hms.c (flush): New function.
282 (expect): Get edge case right.
283 (hms_read_inferior_memory): Be more tolerant of line noise.
284
3563094d
JMD
285Tue Jun 28 14:17:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
286
287 * configure.in: Use i386m3.mh and i386m3.mt as names of host and
288 target files, not non-existent mach3.mh and mach3.mt.
289
ca694bfd
PS
290Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
291
292 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
293 symbols for all symbol files. Makes skipping over the
294 trampoline code work when stepping from a function in a shared
295 library into a function in a different shared library.
296 (read_dbx_dynamic_symtab): Relocate mst_solib_trampoline address.
297
320f93f7
SG
298Tue Jun 28 15:28:01 1994 Stu Grossman (grossman@cygnus.com)
299
300 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
301 names mean end of .o file.
302 * infrun.c (wait_for_inferior): Clean up multi-thread logic near
303 top of routine. Handle new thread notification cleanly.
304 * lynx-nat.c (child_wait): General cleanups, handle new LynxOS
305 thread notification scheme.
306 * (child_resume): General cleanups, handle resumption of all
307 threads properly.
308
aa48187b
SC
309Mon Jun 27 09:57:23 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
310
311 * ser-go32.c: Rewrite to run under windows.
312 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
313 bus interface.
314 * serial.c (serial_open): Notice device "pc".
315 * remote-e7000.c: Fix copyright date.
316 (expect): Compare \n and \r the same.
317 (e7000_open): Allow pc as a serial port
318 * sh/sh.mt: Add ser-e7kpc.
319 * h8300/h8300hms.mt: Add ser-e7kpc.
320 * main.c (proc_wait): Don't wait if using go32.
321
6a86fa48
JL
322Mon Jun 27 00:35:51 1994 Jeff Law (law@snake.cs.utah.edu)
323
324 * somread.c: Simplify by using stabsect_build_psymtabs.
325 * dbxread.c (stabsect_build_psymtabs): New argument "text_name"
326 corresponding to the name of the text section. All references
327 changed.
328 (somstab_build_psymtabs): Delete function, no longer needed.
329
bfe2f12b
JL
330Sun Jun 26 23:54:08 1994 Jeff Law (law@snake.cs.utah.edu)
331
332 * somread.c: Renamed from paread.c. Changed function names and
333 comments to reflect that this file deals with SOM (an object file
334 format), rather than the PA (a cpu).
335 (Makefile.in): Chaned appropriately.
336 (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
337 * dbxread.c (somstab_build_psymtabs): Renamed from
338 pastab_build_psymtabs.
339
a8044a2d
PS
340Fri Jun 24 08:15:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
341
256533df
PS
342 * core-sol2.c: New file to handle ELF and BCP core file flavours.
343 * config/sparc/sun4sol2.mh (NATDEPFILES): Use it instead of
344 core-svr4.
345 * Makefile.in: Updated for core-sol2.c.
346 * README: Add notes about SPARCworks cc under Solaris 2.x,
347 from Casper H.S. Dik (casper@fwi.uva.nl).
a8044a2d
PS
348 * config/mips/xm-makeva.h: Removed, no longer necessary.
349 * Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
350 config/mips/xm-mips.h, config/mips/xm-news-mips.h,
351 config/mips/xm-riscos.h: Remove references to xm-makeva.h
352
cca32606
JK
353Wed Jun 22 17:48:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
354
6ccc157f 355 * gdba.el: Put program input and output in a separate buffer.
cca32606 356
b7ec5b8d
FF
357Wed Jun 22 16:54:15 1994 Fred Fish (fnf@cygnus.com)
358
359 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
360 top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
361 with global variable of same name in libnsl.so on UnixWare.
362
c79b49bb
KH
363Wed Jun 22 14:40:52 1994 Kung Hsu (kung@mexican.cygnus.com)
364
365 * symtab.c (decode_line_1): fix a bug in dealing with '<>'
366 embedded in template name.
367
416b47c6
KH
368Tue Jun 21 14:06:46 1994 Kung Hsu (kung@mexican.cygnus.com)
369
370 * config/i386/nm-linux.h: change calling convention of
371 TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
372 target_insert_watchpoint() and
373 target_remove_watchpoint().
374
375 * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
376 to be long long in gdb.
377 * config/mips/tm-bigmips.h: ditto.
378
2c068010
PS
379Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
380
381 * c-lang.c (asm_language_defn): New definitions for language_asm,
382 mostly copied from c_language_defn, to avoid warnings when
383 switching between c and asm stack frames.
384
6187dfac
ILT
385Mon Jun 20 13:51:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
386
387 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
388 ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
389 (upgrade_type, handle_psymbol_enumerators): Likewise.
390 (has_opaque_xref, cross_ref): Likewise.
391 (elfmdebug_build_psymtabs): Call swap->read_debug_info to read
392 debugging information, rather than doing it here.
393 * mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
394 point in ecoff_debug_swap backend structure, rather than calling
395 ecoff_slurp_symbolic_info directly.
396
afd3e3b1
JK
397Fri Jun 17 20:58:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
398
fb71d422
JK
399 * breakpoint.c: Include annotate.h. Call annotate_field rather
400 than printing annotation directly.
401
afd3e3b1
JK
402 * main.c: Include string.h.
403
6ec7e4d3
SS
404Thu Jun 16 14:41:37 1994 Stan Shebs (shebs@andros.cygnus.com)
405
9f8219f1
SS
406 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
407 call it instead of doing normal loop.
408 * infcmd.c (attach_command): Don't call wait_for_inferior if
409 running Mach 3.
410 * infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
411 hook that can decide whether to step over the next breakpoint.
412 * utils.c (wrap_here): Abort if wrap_buffer not allocated.
413 (request_quit) [REQUEST_QUIT]: If defined, call it instead of
414 doing normal quit.
415
6ec7e4d3
SS
416 * configure.in: Improve sorting/formatting of hosts and targets.
417 (i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
418 m88*-*-mach3*, ns32k-*-mach3*): Recognize.
9f8219f1
SS
419 * Makefile.in (stop-gdb): New target.
420 * stop-gdb.c: New file, utility to get attention of waiting GDBs
6ec7e4d3
SS
421 in Mach 3.
422
f36b58b1
TL
423Wed Jun 15 00:41:03 1994 Tom Lord (lord@rtl.cygnus.com)
424
425 * top.c (gdb_init): Init current_directory in gdb_init. Probably
426 the identical initialization can be deleted from main.c, but i
427 haven't done so just in case.
428
e91c1816
TL
429Tue Jun 14 17:24:41 1994 Tom Lord (lord@x1.cygnus.com)
430
431 * gdba.el: Added menu windows and slightly improved window
432 handling to gdba.el. Fixed numerous minor bugs that were causing
433 emacs and gdb to fall out of sync.
434
f2d9c058
KH
435Tue Jun 14 16:18:44 1994 Kung Hsu (kung@mexican.cygnus.com)
436
437 * breakpoint.c: annotate changes lost at merge, put back in.
438
e884f418 439Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
2b14c195 440
e884f418
SS
441 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
442 i387-tdep.o.
2b14c195 443
33c66e44
PS
444Sun Jun 12 03:51:52 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
445
446 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
447 of inftarg.o.
448 * config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER): Define to inhibit
449 writing of floating registers, the dpx2 kernel disallows it.
450 * irix5-nat.c (LM_ADDR): The loaded address of the shared library
451 is contained in o_praw.
452 * irix5-nat.c (solib_map_sections): Adjust sections by the
453 difference between the loaded address and the prelinked address.
454 * irix5-nat.c (solib_address): Use LM_ADDR for the loaded start
455 address.
456 * mdebugread.c (parse_symbol): Do not relocate stEnd/scText
457 symbols, their value is absolute.
458 * mdebugread.c (parse_partial_symbols): Handle Irix 5.2 shared
459 libraries fh->adr fields of zero. Relocate minimal symbol values
460 upon readin. Relocate non-stabs symbols upon readin.
461 * mdebugread.c (psymtab_to_symtab_1): Use pst->textlow for the
462 start address of the outermost block.
463 * mdebugread.c (parse_lines, parse_procedure): Pass in pst
464 instead of section_offsets and use relocated pst->textlow for
465 line number and procedure address relocations.
466
467 From gmo@MicroUnity.com (Guillermo A. Loyola):
468 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
469 Handle SGI Irix5 stIndirect symbol type.
470
2c3fb46a
KH
471Fri Jun 10 14:52:56 1994 Kung Hsu (kung@mexican.cygnus.com)
472
11054881
KH
473 * breakpoint.c: fix a syntax error native cc does not like.
474
1782eb41
KH
475 * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
476 * sparclite/Makefile.in: ditto.
477 * sparcl-tdpe.c: change file name because first 8 chars has to be
478 unique.
479 * sparcl-stub.c: ditto.
480
481 * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
482
2c3fb46a
KH
483 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
484
e9a3cde8
JL
485Fri Jun 10 10:38:15 1994 Jeff Law (law@snake.cs.utah.edu)
486
487 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
488 ignore) a PID argument.
489 (hppa_pop_frame): Pass a PID to target_write_pc.
490 * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
491 and pass through a PID argument.
492 (target_read_pc, target_write_pc): Update prototypes.
493
494Thu Jun 9 18:10:44 1994 Kung Hsu (kung@mexican.cygnus.com)
495
496 * Makefile.in: add new file sparclite-tdep.c.
497 * sparclite/Makefile.in: add new file sparclite-stub.c.
498 * sparclite/hw_breakpoint.note: note for SPARClite hardware breapoint
499 support.
500 * config/sparc/sparclite.mt: add sparclite-tdep.o.
501 * config/sparc/tm-sparclite.h: add hardware breakpoints support
502 defiines and code.
503 * sparclite-tdep.c: new file, contains hardware breakpoint support
504 code.
505 * sparclite-stub.c: new file, stub code that add support hardware
506 breakpoint support.
507 * breakpoint.c: add hardware breakpoint support.
508 * breakpoint.h: add new breakpoint type to support hardware
509 breakpoint.
510 * config/mips/nm-irix4.h: change interface for target dependent
511 code supporting watch point.
512 * config/pa/nm-hppab.h: change interface for target dependent
513 code supporting watch point.
514
2c012f9e
KH
515Thu Jun 9 14:59:58 1994 Kung Hsu (kung@mexican.cygnus.com)
516
517 * remote-os9k.c (rombuf_command): fix a bug accepting rombug
518 output.
519 * stabsread.c (read_struct_fields): os9k nested structure does not
520 have terminating ';', instead it just get to ',' and bit position
521 and length.
522
a4b4f520
SG
523Wed Jun 8 23:20:45 1994 Stu Grossman (grossman@cygnus.com)
524
525 * nlmread.c (nlm_symtab_read): Clean up a bit.
526 * (nlm_symfile_read): Record bounds of main() so that backtrace
527 command will know where to stop.
528 * objfiles.c (objfile_relocate): Relocate entry point/func info
529 for backtrace as well.
530 * objfiles.h: Define values for invalid PCs for entry point info.
531 * symfile.c (init_entry_point_info): Initialize invalid values
532 with aforementioned macros.
533 * config/alpha/tm-alphanw.h: Turn on FRAME_CHAIN_VALID_ALTERNATE
534 to cause backtrace to stop when it gets back to main().
535 * config/i386/tm-i386nw.h: Ditto.
536
e10cfcaa
PB
537Sat Jun 4 18:17:03 1994 Per Bothner (bothner@kalessin.cygnus.com)
538
e884f418 539 Fix value_print, which used to be ostensibly language-independent,
e10cfcaa
PB
540 but would print pointers and arrays in C syntax. Instead, call
541 a language-specific function.
542 * language.h (struct language_defn): New functional field
e884f418
SS
543 la_value_print.
544 (LA_VALUE_PRINT): New macro.
545 * language.c (unk_lang_value_print): New stub/dummy function.
e10cfcaa
PB
546 (unknown_language_defn, auto_language_defn, local_language_defn):
547 Use it.
548 * c-valprint.c (c_value_print): New function, with code moved from:
549 * valprint.c (value_print): ... here. Now just invoke
550 LA_VALUE_PRINT to do language-specific stuff.
551 * valprint.c (value_print_array_elements): Make non-static.
552 * c-lang.c (c_language_defn, cplus_language_defn): Add
e884f418 553 c_value_print in the la_value_print field.
e10cfcaa
PB
554 * m2-lang.c (m2_language_defn): Likewise.
555 * ch-lang.c (chill_language_defn): But here use chill_value_print.
556 * ch-valprint.c (chill_val_print): Print null pointer as NULL.
557 * ch-valprint.c (chill_value_print): New function, based on
558 c_value_print, but use Chill "look and feel."
559 * c-lang.h (c_value_print): New prototype.
560 * ch-lang.h (chill_value_print): New prototype.
561 * value.h (value_print_array_elements): New prototype.
562
563 * ch-valprint.c (chill_val_print, case TYPE_CODE_BITSTRING
564 and case TYPE_CODE_SET): Check that the element type isn't a stub.
565
172559ec
JK
566Fri Jun 3 09:15:00 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
567
568 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
569 to new file top.c. Make things extern instead of static and
570 similar rearrangements to deal with this.
571 * top.h: New file.
572 * utils.c: Move fputs_unfiltered to main.c. Remove
573 FPUTS_UNFILTERED_OVERRIDE ifndef.
574 * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
575 and libgdb uses utils.c and top.c.
576
36af5ec6
JL
577Thu Jun 2 23:19:10 1994 Jeff Law (law@snake.cs.utah.edu)
578
579 * hppa-tdep.c (skip_trampoline_code): Fix typo.
580
35f8a588
PB
581Thu Jun 2 18:09:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
582
583 * ch-valprint.c (chill_val_print_array_elements): New function.
584 A Chill version of val_print_array_elements, it prints the
585 array index labels, in additions ot the array element values.
586 (chill_val_print): Use the new function.
587
2e6784a8
SG
588Thu Jun 2 08:50:00 1994 Stu Grossman (grossman@cygnus.com)
589
590 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
591 target.
592 * defs.h (enum language): Add language_asm.
593 * findvar.c (read_register_bytes read_register_gen
594 write_register_bytes read_register read_register_pid
595 write_register write_register_pid supply_register): Move multi-
596 thread handling down into these routines. Create XXX_pid routines
597 that allow register references to specify the pid.
598 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
599 read_sp write_sp read_fp write_fp): Move these routines from
600 infcmd to findvar to centralize the whole mess.
601 * i386-nlmstub.c: Portability fixes.
602 * infptrace.c (child_resume): Conditionalize to allow other natives
603 to override it. Remove PIDGET gubbish, it's no longer necessary.
604 * infrun.c (wait_for_inferior): Put registers_changed() before
605 target_wait() to speed up remote debugging.
606 * Replace code that reads registers from other threads with much
607 nicer looking new function calls (see changes to findvar.c).
608 * Don't skip prologues if debugging assembly source.
609 * lynx-nat.c (child_resume): Lynx now needs it's own version of
610 child_resume to handle multi-thread debugging properly.
611 * remote.c: Add O response to get console output from target.
612 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
613 SERIAL_ERROR here to simplify callers.
614 * Change static var timeout to remote_timeout.
615 * (fromhex): Remove unnecessary return -1 at end of routine.
616 * (remote_wait): Turn this into a big switch statement. Add
617 support for O response.
618 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
619 * (getpkt): Split getpkt into two parts. read_frame deals with
620 all formatting issues, run-length encoding, and framing. getpkt
621 now handles error recovery, and frame detection.
622 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
623 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
624 control. (hardwire_readchar): Handle EINTR from read().
625 * symfile.c (deduce_language_from_filename): Add support for .s
626 files.
627 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
628 override infptrace's child_wait.
629 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
630 instead of XXXlynx.h.
631 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
632 tm-rs6000lynx.h.
633 * nlm/gdbserve.c: Portability fixes.
634
d3507982
JK
635Tue May 31 20:35:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
636
637 * inftarg.c (child_wait): Call proc_wait, not wait.
638 (child_mourn_inferior): Call proc_remove_foreign.
639 * main.c (gdb_init): Call init_proc.
640 * main.c: Provide dummy versions of init_proc, proc_wait, and
641 proc_remove_foreign for the gdb case (the libgdb case provides its
642 own versions of these functions).
643 * Makefile.in (libgdb-files): Add libproc.a.
644
6d40175d
SS
645Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
646
647 Hardware watchpoints for Linux, from Rick Sladkey
648 (jrs@world.std.com).
649 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
650 new hardware breakpoint recovery method.
651 * i386v-nat.c (i386_insert_watchpoint,
652 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
653 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
654 New functions to support the 386 hardware debugging registers.
655 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
656 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
657 target_insert_watchpoint, target_remove_watchpoint): Define these
658 macros to use the hardware debugging functions in i386v-nat.c.
659
667fb5c3
JK
660Wed May 25 17:06:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
661
662 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
663 build it.
664
429f1c9f
JK
665Thu May 19 09:56:20 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
666
667 * target.c, target.h: New variables target_activity_function and
668 target_activity_fd.
669 * inflow.c, inferior.h: New functions set_sigio_trap and
670 clear_sigio_trap.
671 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
672
bc67bf96
DE
673Wed May 18 13:01:55 1994 Doug Evans (dje@canuck.cygnus.com)
674
47424e79
DE
675 * remote-sim.h (sim_verbose): Delete.
676 Document callbacks needed.
677 (sim_*): Change result to void where there isn't one.
678 (sim_open): Clarify argument and error response.
679 (sim_close): Declare.
680 (sim_load): Change bfd_handle argument to file name. Clarify result.
681 (sim_create_inferior): Renamed from sim_set_args.
682 (sim_set_pc): Delete.
683 (sim_info): Delete printf_fn argument.
684 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
685 (gdbsim_load): Try sim_load first.
686 (gdbsim_create_inferior): Call sim_create_inferior.
687 (gdbsim_open): Handle args == NULL. Update call to sim_open.
688 (gdbsim_close): Call sim_close.
689 (gdbsim_files_info): Update call to sim_info.
690 (gdbsim_ops): Realign comments.
691
bc67bf96
DE
692 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
693
298f0428
SS
694Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
695
696 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
697 the auxent if the symbol's name is ".file". From David Edelsohn
698 <c1dje@watson.ibm.com>.
699
9c036bd8
JK
700Tue May 17 11:08:22 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
701
20b3c1aa
JK
702 * breakpoint.c (breakpoint_1): Fix typo.
703
704 * annotate.c (annotate_field_end): Fix typo.
705
706 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
707
708 * Makefile.in (TSSTART): Remove; no longer used.
709
9c036bd8
JK
710 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
711 fputs_unfiltered and exit directly, rather than fatal. The latter
712 calls vfprintf_unfiltered!
713
714 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
715 * value.h, printcmd.c (print_value_flags): Move from here...
716 * annotate.c: ...to here, and make it use can_dereference.
717
16d2cc80
SS
718Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
719
720 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
721 Remove, needed for both native and cross.
722 * target.c (attach_flag, generic_mourn_inferior): Put here.
723 * utils.c (job_control): Put here.
724 (terminal.h): Don't include anymore.
725
d8fc8773
JK
726Sat May 14 09:11:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
727
728 * source.c (find_source_lines): Always use code that was #ifdef
729 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
730 leaving it on the chain. Reindent much of this function.
731 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
732 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
733 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
734 config/ns32k/xm-ns32km3.h: Remove all references to
735 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
736 * main.c, fork-child.c, many config files: Remove all
737 SET_STACK_LIMIT_HUGE code; with the above changes it should no
738 longer be needed.
739
740 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
741 This avoids __eprintf troubles.
742
1c95d7ab
JK
743Fri May 13 08:10:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
744
d8fc8773
JK
745 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
746 initialization code which needs to be called even if we bypass the
747 command line stuff into gdb_init.
748 * utils.c (fputs_unfiltered): Surround in #ifndef
749 FPUTS_UNFILTERED_OVERRIDE.
750 * Makefile.in (libgdb.a): New target.
751
752 * utils.c: Rearrange I/O stuff a bit so that all output goes
753 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
754 which made %s not work with arbitrarily large strings.
755 * printcmd.c (printf_command): Use printf_filtered, not
756 printf_unfiltered and printf, now that arbitrary limit is gone.
757
1c95d7ab
JK
758 gcc -Wall lint:
759 * breakpoint.c (watchpoint_check): Remove unused variable b.
760 * stack.c (print_frame_info): Move sp and buf inside #if.
761 * eval.c (evaluate_subexp): Remove unused variables pp,
762 mangle_ptr, ptr, and mangle_tstr.
763 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
764 and mangle_ptr.
765 * symtab.c (lookup_symtab): Put variable copy inside #if.
766 (decode_line_1): Put variable q1 inside #if 0.
767 * target.h: Declare target_link.
768 * infrun.c (wait_for_inferior): Remove unused variables signame.
769 * remote.c (remote_resume): Remove unused variable name.
770 * c-exp.y (parse_number): Parenthesize operand of shift.
771 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
772 (this is a semantic change, the warning seems to have detected a bug).
773 * dbxread.c (end_psymtab): Move variable p1 inside #if.
774 * coffread.c: Move variable temptype inside #if.
775 * ch-typeprint.c (chill_type_print_base): Remove unused variable
776 name.
777 * ch-valprint.c: #include typeprint.h and ch-lang.h.
778 (chill_val_print): Remove unused variable in_range.
779 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
780 (chill_val_print): Add default case for switch.
781 * stabsread.h: Declare stabsect_build_psymtabs.
782 * os9kread.c (read_minimal_symbols): Make this return void.
783 (os9k_symfile_read): Remove unused variables stb_exist and val.
784 (os9k_symfile_init): Remove unused variable val.
785 (fill_sym): Remove unused variable id.
786 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
787 unused variable nsl.
788 Remove unused variable symfile_bfd.
789 #if 0 unused variables lbrac_unmatched_complaint and
790 lbrac_mismatch_complaint.
791 Remove declaration for non-existent function os9k_next_symbol_text.
792
793 * annotate.c, annotate.h: New files, containing a function for
794 each annotation which outputs it.
795 * Move breakpoints_changed from breakpoint.c to annotate.c.
796 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
797 printcmd.c, source.c, stack.c, utils.c, valprint.c:
798 Use annotate.c functions to output annotations.
799 * Makefile.in (OBS): Add annotate.o.
800
88b91d4a
JL
801Thu May 12 10:46:27 1994 Jeff Law (law@snake.cs.utah.edu)
802
f55179cb
JL
803 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
804 elf_unwind_entries are always initialized.
805
88b91d4a
JL
806 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
807 stubs which return directly to the caller rather than to the stub
808 itself.
809
8db1a922
SS
810Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)
811
812 * c-exp.y (yyerror): Display a more informative error message.
813 * ch-exp.y (yyerror): Ditto, don't use global yychar.
814 * m2-exp.y (yyerror): Ditto.
815
91ecc8ef
SS
816Tue May 10 11:57:53 1994 Stan Shebs (shebs@andros.cygnus.com)
817
818 * inflow.c (job_control): Move definition to front of file.
819
0286d386
ILT
820Tue May 10 14:42:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
821
822 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
823 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
824
825Fri May 6 13:30:22 1994 Stan Shebs (shebs@andros.cygnus.com)
826
827 * Makefile.in (kdb): Remove old init.c creation commands.
828 * configure.in (sparclite): Match on sparclite*.
829 * sparclite/aload.c (main): Only change section addresses for
830 a.out format object files.
831
5ff7b328
SC
832Fri May 6 13:24:04 1994 Steve Chamberlain (sac@cygnus.com)
833
834 * config/i386/go32.mh: Define CC.
835
b292fca8
SS
836Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
837
838 * gdbserver/Makefile.in: Remove irrelevant definitions and
839 comments inherited from the gdb Makefile.
840 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
841 (VERSION): Update to 4.12.3.
842 (gdbserver): Remove any existing executable first.
843 (distclean, realclean): Remove nm.h.
844 * gdbserver/low-lynx.c: Add Sparc Lynx support.
845 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
846 Don't use absolute pathname.
847
848Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
849
850 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
851 error.
852
ee5fca1f
JK
853Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
854
855 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
856 (print_it_normal): Add annotations for the inferior starting and
857 stopping, and for all the various messages related to how it
858 stopped.
859
860 * printcmd.c (do_one_display): Annotate.
861 * stack.c (print_frame_info): Annotate printing of stack frames.
862
731dca94
SG
863Wed May 4 18:15:51 1994 Stu Grossman (grossman@cygnus.com)
864
865 * remote.c (get_offsets): Handle case where stub doesn't support
866 qOffsets message.
867
36a2283d
PB
868Wed May 4 15:30:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
869
870 Add partial support for g++ code compiled with -fvtable-thunks.
871 * c-valprint.c (c_val_print): Add vtblprint support
872 when using thunks.
873 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
874 pointers (if using thunks) as well as array of structs (otherwise).
875 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
876 level, and make the latter non-static (so define_symbol can use it).
877 * stabsread.c (define_symbol): If the type being defined is a
878 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
879 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
880 * values.c (value_virtual_fn_field): Handle thunks.
881 * values.c (value_headof): Minor efficiency hack.
882 * values.c (value_headof): Incomplete thunk support. FIXME.
883
997c6a1d
JK
884Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
885
d24c0599
JK
886 * valprint.c (print_longest): Clarify comment about use_local.
887 * printcmd.c, defs.h (print_address_numeric), callers in
888 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
889 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
890 exec.c: New argument use_local.
891 * source.c (identify_source_line): Use filtered output. Use
892 print_address_numeric.
893
e16b9023
JK
894 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
895 language.c (type_error, range_error): Use filtered output.
896 * utils.c (error_begin): Update comment to tell people to use
897 filtered output.
898
997c6a1d
JK
899 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
900 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
901 bfd.h.
902
3f5e2fb5
JK
903Tue May 3 07:41:33 1994 Jim Kingdon (kingdon@cygnus.com)
904
905 * procfs.c (procfs_wait): Reinstate code which deduces the signal
906 from the fault, #ifndef FAULTED_USE_SIGINFO.
907 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
908
47ebe8fd
JK
909Fri Apr 29 18:15:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
910
911 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
912 Explicitly annotate each record.
913
0c4b30ea
SS
914Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
915
916 * xcoffexec.c: Reformat to standards and lint.
917 (language.h): Include.
918 (exec_close): Declare arg "quitting".
919 (file_command): Declare arg "from_tty".
920 (map_vmap): Cast xmalloc result to PTR.
921 * rs6000-nat.c: Reformat to standards and lint.
922 (exec_one_dummy_insn): Use char array for saved instruction.
923 (fixup_breakpoints): Declare.
924 (vmap_ldinfo): Be more informative in fatal error messages.
925 (xcoff_relocate_symtab): Define to return void.
926 * xcoffsolib.h: Reformat to standards, improve comments.
927 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
928
d8742f46
JK
929Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
930
a0cf4681
JK
931 * utils.c, defs.h (error_begin): New function.
932 (quit): Print annotation before printing the error message.
933 * main.c (return_to_top_level): Print annotation before doing the
934 longjmp.
935 * symtab.c (decode_line_1): Call error not warning and then
936 return_to_top_level. Call error_begin and printf_unfiltered
937 rather calling warning (before calls to return_to_top_level).
938 * core.c (memory_error): Use error_begin, printf_unfiltered,
939 print_address_numeric and return_to_top_level instead of error.
940 Cleans up a FIXME-32x64.
941 * language.c (type_error, range_error): Call error_begin
942 not just target_terminal_ours.
943
21ad7c45
JK
944 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
945 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
946 side of an assignment is non-portable.
947
d8742f46
JK
948 * utils.c (query): Change syntax of query annotations to be
949 consistent with other input annotations.
4dd876ac 950 (prompt_for_continue): Likewise for prompt-for-continue annotation.
d8742f46 951
11d26982
PS
952Thu Apr 28 01:20:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
953
954 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
955 for stabs symtabs.
956 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
957 that have a stack frame size of 32k or larger (from Paul Flinders).
958 Remove #if 0'd code.
959
aa175216
SS
960Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
961
962 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
963 for Lynx platforms that need it.
964 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
965
890634ed
JK
966Wed Apr 27 16:01:37 1994 Jim Kingdon (kingdon@cygnus.com)
967
968 * procfs.c (procfs_wait): Use the signal from the pr_info rather
969 than trying to deduce it from the fault.
970
c0c9b923
SC
971Wed Apr 27 12:22:46 1994 Steve Chamberlain (sac@cygnus.com)
972
973 * printcmd.c (print_address_symbolic): Initialize name to empty
974 string to avoid core dump if lookup fails.
975 * remote-e7000.c (printf_e7000debug): Error if target not open.
976
a49666fe
SG
977Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
978
979 * i386-nlmstub.c: Update to be more in line with PIN stub.
980 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
981 * (hex2mem): Init ptr.
982 * General cleanups to use ConsolePrintf, standard prologues, etc...
983
d0e2b767
SG
984Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
985
68ba2fa5
SG
986 * i386-nlmstub.c: More changes to be compatible with remote.c.
987
988 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
989 into (the far less frequently called) dbx_symfile_read.
990
d0e2b767
SG
991 * i386-nlmstub.c: An interim version till we get PIN for the x86.
992
a66e8382
SG
993Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
994
995 * dbxread.c (record_minimal_symbol): Record the section
996 associated with the symbol to make dynmaic relocation work.
997 * (dbx_symfile_read, process_one_symbol): Fixes to work around
998 Solaris brain-damage which don't apply to relocatable object
999 files.
1000 * (stabsect_build_psymtabs): New routine to read stabs out of an
1001 arbitrarily named section.
1002 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
1003 globals.
1004 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
1005 stabs out of the nlm.
1006 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
1007 brain-damage which don't apply to relocatable object files.
1008 * remote.c (putpkt): Improve error reporting and error handling.
1624c38f
SG
1009 * (get_offsets): Temporary kludge to force data & bss sections to
1010 have the same relocation.
a66e8382
SG
1011 * stabsread.c (define_symbol, scan_file_globals): Record section
1012 info in sym.
1013
fdb81aa1
JK
1014Sat Apr 23 19:05:52 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1015
1016 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
1017 FIXME-32x64 comment.
1018
0a2e98a9
JK
1019Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1020
d084c93f
JK
1021 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
1022 to after call to target_wait. This means that flush_cached_frames
1023 can call target_terminal_ours if it wants to.
1024 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
1025 comment about why the code is dubious.
1026
0a2e98a9
JK
1027 * stabsread.c (read_type): Call read_type, not nonexistent
1028 os9k_read_type.
1029
d5336fc5
KH
1030Fri Apr 22 14:25:36 1994 Kung Hsu (kung@mexican.cygnus.com)
1031
1032 * remote-os9k.c (rombug_fetch_registers): set trace mode
1033 correctly.
1034 * remote-os9k.c (rombug_read_inferior_memory): cache data in
1035 buffer.
1036 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
1037 extra info.
1038 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
1039 passed to process_one_symbol.
1040 * stabsread.c (read_type): process os9k functio prototype.
1041
f5a0908f
JK
1042Fri Apr 22 11:27:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1043
1044 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
1045 dump core.
1046
9e8db445
JK
1047Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1048
da988c20
JK
1049 * utils.c (prompt_for_continue): Annotate prompt.
1050 (query): Annotate query.
1051 * printcmd.c (print_frame_args): Change syntax of argument
1052 annotation to make name and value part of a single group of
1053 annotations, not two separate groups.
1054 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
1055 * valprint.c (val_print_array_elements): Change syntax of
1056 annotation to be more concise.
1057 * main.c, defs.h (command_line_input): New argument tells what
1058 string to include in the annotations.
1059 * symtab.c (decode_line_2), main.c (read_command_lines,
1060 command_loop): Change callers.
1061
9e8db445
JK
1062 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
1063 target null pointer.
1064 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
1065
1066 * printcmd.c (output_command): Annotate things we print here too.
eb1e37a3 1067 * printcmd.c (print_command_1): Add "value-history-value" annotation.
9e8db445
JK
1068 * Move declaration of print_value_flags from defs.h to value.h.
1069 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
1070
0683ac4b
PS
1071Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1072
1073 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
1074 BFD handles sun3 dynamic relocations now.
1075 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
1076 symbol table.
1077
96f7edbd
JK
1078Wed Apr 20 19:41:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1079
1080 * printcmd.c (print_command_1): Annotate the top-level expressions
1081 that we print.
1082 (print_frame_args): Annotate each argument.
1083 * printcmd.c, defs.h (print_value_flags): New function.
1084 * cp-valprint.c (cp_print_value_fields): Annotate each field.
1085 * valprint.c (val_print_array_elements): Annotate each array element.
1086
59746d9f
PS
1087Wed Apr 20 13:18:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1088
1089 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
1090 the register contains a pointer to the type, not the type itself.
1091
6c803036
JK
1092Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1093
1094 * main.c (main): Accept --annotate=N option and make --fullname
1095 the same as --annotate=1.
1096 (command_line_input): Print annotatation before and after prompt.
1097 * blockframe.c (flush_cached_frames): Print annotation.
1098 * Rename frame_file_full_name to annotation_level and move it from
1099 symtab.h to defs.h.
1100 * source.c (identify_source_line): If annotation_level > 1,
1101 change output format.
1102 * breakpoint.c: Print annotation whenever a breakpoint changes.
1103 * main.c: New variable server_command.
1104 (command_line_input): Parse "server " and set server_command.
1105 (dont_repeat): Check server_command.
1106
d7a96d67
JK
1107Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1108
963dbabe
JK
1109 * xcoffread.c (xcoff_next_symbol_text): Don't return before
1110 updating raw_symbol and symnum. Return a value in the case where
1111 we complained.
1112
d7a96d67
JK
1113 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
1114 takes care of it.
703e4251
JK
1115 * parse.c: Don't define block_found; it is defined in symtab.c.
1116 * parser-defs.h: Add comment regarding block_found.
d7a96d67 1117
d782a995
JL
1118Tue Apr 19 09:46:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1119
1120 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
1121 argument.
1122
be78eb1a
PS
1123Mon Apr 18 13:18:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1124
1125 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
1126 section vma. Do not read dynamic relocs for sun3 executables to
1127 avoid BFD assertion message.
1128
9c842e0c
JL
1129Mon Apr 18 10:08:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1130
1131 * nm-hppab.h (KERNEL_U_ADDR): Define.
1132 (FIVE_ARG_PTRACE): Likewise.
1133 (CANNOT_STORE_REGISTER): Likewise.
8bd8cef2 1134 * nm-hppah.h (KERNEL_U_ADDR): Define.
9c842e0c
JL
1135 (FIVE_ARG_PTRACE): Likewise.
1136 (CANNOT_STORE_REGISTER): Likewise.
1137 (NEED_TEXT_START_END): Likewise.
1138
1139 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
1140 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
1141 (FIVE_ARG_PTRACE): Likewise.
1142 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
1143 (FIVE_ARG_PTRACE): Likewise.
1144
1145 * hppa-tdep.c (read_unwind_info): Make static.
1146 (restore_pc_queue): Indirect through the target vector to
1147 reload the register state.
1148
c5152d42
JL
1149Sat Apr 16 22:20:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1150
1151 * paread.c (compare_unwind_entries): Delete function. It's been
1152 moved into hppa-tdep.c.
1153 (read_unwind_info): Likewise.
1154 (pa_symfile_read): No longer call read_unwind_info. The unwind
1155 tables will be read in as they are needed.
1156
1157 * hppa-tdep.c (compare_unwind_entries): New function.
1158 (read_unwind_info, internalize_unwinds): Likewise.
1159 (find_unwind_entry): Read in unwind information on demand.
1160
fad466eb
SS
1161Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
1162
1163 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
1164 to : in search path processing.
1165 * defs.h (qsort): Rename argument in prototype.
1166 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
1167 some compilers.
1168 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
1169 (false): Eliminate usages.
1170
63eef03a
SC
1171Fri Apr 15 11:35:19 1994 Steve Chamberlain (sac@cygnus.com)
1172
1173 * h8500-tdep.c (initialize_h8500_tdep, large_command):
1174 All references to value changed to value_ptrlage_command is now
1175 called big_command.
1176 All references to value changed to value_ptr.
1177 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
1178 * remote-hms.c (hms_wait): Timeout after five seconds.
1179 * ser-go32.c (dosasync_read): Poll if timeout < 0.
1180 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
1181 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
1182
e6b8a171
JL
1183Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1184
1185 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
1186 #ifdefs.
6bc194d2 1187 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
e6b8a171 1188
999dd04b
JL
1189Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1190
1191 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
1192 bp_watchpoint_scope breakpoints.
1193 (struct breakpoint): Add val_chain and related_breakpoint fields
1194 for use by watchpoints.
1195
1196 * breakpoint.c (within_scope): Delete. No longer used.
1197 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
1198 (target_{remove,insert}_watchpoint): Likewise.
1199 (can_use_hardware_watchpoint): New function.
1200 (remove_breakpoint): New function to remove a single breakpoint
1201 or hardware watchpoint.
1202 (insert_breakpoints): Handle insertion of hardware watchpoints.
1203 Store a copy of the value chain derived from the watchpoint
1204 expression.
1205 (remove_breakpoints): Simplify by using remove_breakpoint.
1206 (delete_breakpoint): Likewise.
1207 (watchpoint_check): Delete the watchpoint and watchpoint scope
1208 breakpoints when the watchpoint goes out of scope. Save & restore
1209 the current frame after checking watchpoints.
1210 (breakpoint_init_inferior): Likewise (restarting the program
1211 makes all local watchpoints go out of scope).
1212 (bpstat_stop_status): Handle hardware watchpoints much like normal
1213 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
1214 when the watchpoint goes out of scope. Remove and reinsert all
1215 breakpoints before returning if we stopped when a hardware watchpoint
1216 fired.
1217 (watch_command): Use a hardware watchpoint when possible. If
1218 watching a local expression, build a scope breakpoint too.
1219 (map_breakpoint_numbers): Also call given function for any
1220 related breakpoints.
1221 (disable_breakpoint): Never disable a scope breakpoint.
1222 (enable_breakpoint): Handle hardware breakpoints much like normal
1223 breakpoints, but recompute the watchpoint_scope breakpoint's
1224 frame and address (if we have an associated scope breakpoint).
1225 (read_memory_nobpt): Handle hardware watchpoints like normal
1226 watchpoints. When necessary handle watchpoint_scope breakpoints.
1227 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
1228 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
1229 (disable_command): Likewise.
1230
1231 * blockframe.c (find_frame_addr_in_frame_chain): New function.
1232 Extern prototype added to frame.h
1233
1234 * infrun.c (wait_for_inferior): Set current_frame and select
1235 a frame before checking if we stopped due to a hardare watchpoint
1236 firing. Handle stepping over hardware watchpoints.
1237 (normal_stop): Remove unnecessary call to select_frame.
1238
1239 * value.h (value_release_to_mark): Declare.
1240 * values.c (value_release_to_mark): New function.
1241
1242 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
1243 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
1244
1245 * hppab-nat.c (hppa_set_watchpoint): New function.
1246
1247 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
1248 (HAVE_STEPPABLE_WATCHPOINT): Define.
1249 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
1250 (target_{insert,delete}_watchpoint): Define.
1251
9ec76784
JL
1252 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
1253 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1254 (target_{insert,remove}_watchpoint): Likewise.
1255
70e375c3
SG
1256Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
1257
1258 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
1259 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
1260 often have the same names as debug symbols for functions, and
1261 confuse lookup_symbol().
1262
2ddeed27
JK
1263Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1264
1265 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
1266 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
1267 REGISTER_RAW_SIZE (1).
1268 Together these changes work around a bug in HP's compiler. Both
1269 seem to be necessary.
1270
699daa9c
JL
1271Mon Apr 11 09:18:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1272
1273 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
1274 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
1275 are type mst_solib_trampoline.
1276
7b2b0758
JK
1277Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1278
1279 * config/m68k/es1800.mt: Change comments.
1280
1281Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
1282
1283 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
1284
790a14a8
SG
1285Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
1286
1287 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
1288 for core files.
1289
f3e4ac4a
JK
1290Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1291
a110a1c3
JK
1292 * values.c (unpack_long): Remove obsolete comment about using a
1293 switch statement.
1294
f3e4ac4a
JK
1295 * symfile.c (symbol_file_command): Add comments about command syntax.
1296
2fe3b329
PS
1297Thu Apr 7 17:25:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1298 Jim Kingdon (kingdon@cygnus.com)
1299
1300 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
1301 are in the .plt section.
1302 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
1303 find_solib_trampoline_target): New functions for handling
1304 stepping into -g compiled shared libraries.
1305 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
1306 find_solib_trampoline_target): Add prototypes.
1307 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
1308 Define to handle stepping into -g compiled shared libraries.
1309 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
1310 stepping into -g compiled shared libraries.
1311
1312Thu Apr 7 17:22:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1313
1314 * configure.in: Add mips-*-sysv4* support.
1315 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
1316 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
1317 New files for MIPS SVR4 support.
1318 * Makefile.in: Update for new mipsv4 files.
1319 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
1320 read_next_frame_reg to obtain the frame relative stack pointer.
1321 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
1322 obtain the frame relative stack pointer.
1323 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
1324 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
1325 by entering them into the minimal symbol table.
1326 * printcmd.c (print_scalar_formatted): Do not try to unpack to
1327 a long for float formats.
1328 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
1329 get defined in <link.h>.
1330 * solib.c (solib_add): Add shared library sections to the section
1331 table of the target before adding the symbols.
1332 * partial-stab.h: Relocate static and global functions.
1333 * dbxread.c (read_dbx_symtab): Remove unused variable
1334 end_of_text_address. Relocate text_addr when passing it
1335 to end_psymtab.
1336
1337 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
1338 library functions before the executable is run. Retrieve dynamic
1339 symbols from stripped executables.
1340 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
1341 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
1342 if no debugging symbols were found.
1343 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
1344 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
1345 is defined.
1346 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
1347 OSF/1 has shared libraries.
1348
192b64e7
ILT
1349Thu Apr 7 15:11:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1350
1351 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
1352 to BFD handling of dynamic symbols.
1353
45568424
JL
1354Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1355
4f915914
JL
1356 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
1357 then gets its real address into FUN and its GOT/DP value into %r19.
1358
1359 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
1360
7f43b9b7
JL
1361 * hppa-tdep.c (frameless_function_invocation): If no unwind
1362 descriptor was found, then assume this was not a frameless
1363 function invocation.
1364 (frame_saved_pc): If the saved PC is in a linker stub, then
1365 return the return address which the linker stub will return to.
1366
45568424
JL
1367 * xm-hppab.h: Never define USG.
1368 * xm-hppah.h: Always define USG.
1369
b96bc1e4
PB
1370Tue Apr 5 12:58:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
1371
1372 * values.c (unpack_long, value_from_longest),
1373 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
1374
d5412302
JK
1375Fri Apr 1 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com)
1376
1377 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
1378
38b90473
PS
1379Fri Apr 1 00:44:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1380
1381 For SVR4 targets, enable gdb to set breakpoints in shared
1382 library functions before the executable is run.
1383 * elfread.c (elf_symtab_read): Handle symbols for shared library
1384 functions.
1385 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
1386 and moved to objfiles.c.
1387 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
1388 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
1389 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
1390 the new generic definition from tm-sysv4.h works for Solaris.
1391
70f42bae
ILT
1392Wed Mar 30 16:14:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1393
1394 * elfread.c (elf_symtab_read): Change storage_needed,
1395 number_of_symbols and i to long. Rename get_symtab_upper_bound to
1396 bfd_get_symtab_upper_bound. Check for errors from
1397 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
1398 * nlmread.c (nlm_symtab_read): Same changes.
1399
aece310f
JK
1400Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1401
34d265dc
JK
1402 * xcoffread.c (xcoff_next_symbol_text): New function.
1403 (read_xcoff_symtab): Set next_symbol_text_func to it.
1404 Move raw_symbol outside of read_xcoff_symtab.
1405
aece310f
JK
1406 * remote.c (getpkt): Remove unused "out" label.
1407
bd2f0c85
JL
1408Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1409
1410 * breakpoint.c (print_it_normal): Allow GDB to notify the user
1411 about more than one watchpoint being triggered.
1412
c2216bfd
JK
1413Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1414
1415 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
1416
db2302cb
PS
1417Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1418
9e837b37
PS
1419 * blockframe.c (find_pc_partial_function): mst_file_text
1420 symbols do not live in the shared library transfer table.
db2302cb
PS
1421 * ch-exp.y (decode_integer_value, match_character_literal,
1422 match_bitstring_literal): Guard tolower calls with isupper,
1423 tolower on old BSD systems blindly subtracts a constant.
1424 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
1425 well when determining the producer of the object file.
1426 * mdebugread.c (has_opaque_xref): New function to check for
1427 cross reference to an opaque aggregate.
1428 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
1429 enter typedefs to opaque aggregates into the symbol tables.
1430 * mdebugread.c (parse_external): Remove skip_procedures argument,
1431 it has always been 1. Remove code that handled stProc symbols,
1432 it was never executed and was wrong, as the index of a
1433 stProc symbol points to the local symbol table and not to the
1434 auxiliary symbol info. Update caller.
1435 * mdebugread.c (parse_partial_symbols): Do not enter external
1436 stProc symbols into the partial symbol table, they are already
1437 entered into the minimal symbol table.
1438 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
1439 Remove all conditionals and definitions for ptx.
1440 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
1441 Fix addresses of floating point registers in REGISTER_U_ADDR.
1442 STORE_STRUCT_RETURN now handles cc and gcc conventions.
1443 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
1444 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
1445 signal trampoline code work.
1446 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
1447 Remove all conditionals and definitions for ptx.
1448 Remove KDB definitions.
1449 * symm-nat.c (store_inferior_registers): Fetch registers before
1450 storing them to obtain valid floating point control registers.
1451 Store fpu registers.
1452 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
1453 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
1454 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
1455 Fix typos.
1456 * symm-nat.c (child_resume): Update type of `signal' parameter.
1457 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
1458
19cd0c1f
JL
1459Tue Mar 29 23:01:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1460
1461 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
1462 calling import stubs for functions in shared libraries.
1463
73cd3b49
PB
1464Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
1465
58cda66e
PB
1466 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
1467
73cd3b49
PB
1468 * ch-lang.c (chill_is_varying_struct): Magic string is
1469 was "<var_length>" is now "__var_length" (more portable).
1470
0c993550
JK
1471Tue Mar 29 19:41:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1472
1473 * remote.c (getpkt): If we get a timeout, actually retry rather
1474 than just giving up the first time it happens.
1475 * remote.c: Document sequence numbers.
1476 (remote_store_registers): Change syntax of 'P' request so that it
1477 never looks like a sequence number.
1478
d80ff70c
KH
1479Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
1480
0c993550 1481 * os9kread.c (record_minimal_symbol): add section_offset to
d80ff70c
KH
1482 relocate minimal symbol table.
1483 * os9kread.c (read_minimal_symbols): ditto.
1484 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
1485 file names.
1486 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
1487 return. Also if file addr is 0 leave it 0, not to relocate.
1488 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
1489 'set remotexoff' and 'set remotelog' commands.
1490
4aa6fe10
JK
1491Tue Mar 29 12:38:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1492
1493 * remote.c (remote_store_registers): Add 'P' request to set an
1494 individual register.
1495 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
1496 a target address.
1497
72e35288
JK
1498Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1499
649694ea
JK
1500 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
1501 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
1502 combining all 'p' and 'r' pairs into a LOC_REGPARM.
1503
72e35288
JK
1504 * command.c (do_setshow_command, case var_string): Never add a
1505 space to the end of the string.
1506 * NEWS: Document this change.
1507 * .gdbinit: Add a space to the "set prompt" command.
1508
59144a81
JK
1509Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1510
493424b1
JK
1511 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
1512 changes to make it compile (it doesn't link yet).
1513
1514 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
1515 (set_demangling_style, set_demangling_command): Use savestring not
1516 strdup. We were not dealing properly with a NULL return from
1517 strdup, and were not declaring strdup (the system header may or
1518 may not have it).
1519
59144a81
JK
1520 * valprint.c (val_print): Remove inaccurate comment about what
1521 types can be stub types.
1522
1523 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
1524 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
1525 Supply alternate version if ATTACH_DETACH is not defined.
1526 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
1527 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
1528 * configure.in: Recognize i[34]86-sequent-sysv4* host.
1529
c8f75fe8
JL
1530Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1531
de482138
JL
1532 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
1533 of a function.
1534 (skip_trampoline_code): Rewrite and add support for argument
1535 relocation stubs stubs, import/export stubs, calls through
1536 "_sr4export" and cascaded trampolines.
1537
fdafbfad
JL
1538 * hppa-tdep.c (skip_prologue): Return "pc" not zero
1539 if no unwind descriptor is found.
1540
eb1167c6
JL
1541 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
1542 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
1543 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
1544 differently. All registers are four bytes.
1545 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
1546 the same size.
1547 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
1548
1549 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
1550 registers as both single and double values (fetching 2nd 32bit half
1551 as necessary). Annotate each register printed with its precision.
1552
c8f75fe8
JL
1553 * paread.c (read_unwind_info): Fix off-by-one error.
1554
0c1af47f
JK
1555Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1556
1557 * main.c (complete_command): Deal with it if arg is NULL.
1558
5801f348
JK
1559Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1560
4df6dcd1
JK
1561 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
1562 regarding using the PC--using the PC is necessary and all the
1563 FIXME comments in the world won't make it go away.
1564
2f3b7d8e
JK
1565 * valops.c (value_at, value_at_lazy): Give error if we dereference
1566 a pointer to void.
1567 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
1568 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
1569
553e1862
JK
1570 * stabsread.c (patch_block_stabs): Add comment about what happens
1571 if the definition is in another compilation unit from the stab.
acdec954 1572
5801f348
JK
1573 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
1574
09973223
JK
1575Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1576
1577 * main.c (complete_command): New command, from Rick Sladkey
1578 <jrs@world.std.com>.
1579 (symbol_completion_function): Don't declare rl_point and
1580 rl_line_buffer; they are now declared in readline.h.
1581 (show_commands): Don't declare history_base; it is declared in
1582 history.h.
1583 * command.c (lookup_cmd): Don't delete trailing whitespace.
acdec954 1584 Reverts change of 14 May 1989.
09973223
JK
1585
1586Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
1587
1588 * minsyms.c (prim_record_minimal_symbol): Move section deduction
1589 code from prim_record_minimal_symbol_and_info() to here. Callers
1590 of the latter can legitimately supply a section number of -1.
1591
e552788b
JK
1592Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1593
1594 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
1595 member functions have an element in args for a (nonexistent) this
1596 pointer.
1597
84ad95c1
JL
1598Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1599
0a64709e
JL
1600 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
1601
1602 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
1603 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
1604
84ad95c1
JL
1605 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
1606 for the structure's type. All callers changed.
1607
1608 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
1609 for each structure argument rather than assuming it's either
1610 true or false for all structure arguments.
1611
1612 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
1613 on the length structure passed, not the compiler used.
1614
1615 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
1616 argument for the structure's type.
1617
29f2ceed
JK
1618Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1619
51f83933
JK
1620 * values.c (set_internalvar): Don't set var->value until we are
1621 sure there won't be an error().
1622
29f2ceed
JK
1623 * remote.c (get_offsets): Reinstate comment which was in
1624 remote_wait about use of SECT_OFF_TEXT and so on.
1625
1626Mon Mar 21 13:11:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1627
1628 * symmisc.c (maintenance_check_symtabs): New function to check
1629 consistency of psymtabs and symtabs.
1630 * symtab.h (maintenance_check_symtabs): Add prototype.
1631 * maint.c: Add new `maint check-symtabs' command.
1632 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
1633 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
1634 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
1635 comment.
1636 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
1637 to write_memory to avoid warnings from gcc.
1638 * config/i386/xm-symmetry.h: Add missing #endif.
1639 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
1640 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
1641 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
1642
4fd5eed4
JL
1643Mon Mar 21 11:50:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1644
1645 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
1646 (hppa_push_arguments): Likewise.
1647
72bba93b
SG
1648Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
1649
1650 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
1651 improve remote debugging efficiency. Also fixed problems with
1652 doing function calls for programs with no entry points.
1653 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
1654 entry_point_address.
1655 * inferior.h (PC_IN_CALL_DUMMY): ditto.
1656 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
1657 parse_lines): Pass section_offsets info to these routines so that
1658 we can relocate symbol table entries upon readin.
1659 * (psymtab_to_symtab_1): Set symtab->primary to tell
1660 objfile_relocate to do relocations for our symbols.
1661 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
1662 (which hang off of the symbol table).
1663 * Use prim_record_minimal_symbols_and_info instead of
1664 prim_record_minimal_symbols to supply section info to make minimal
1665 symbol relocations work.
1666 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
1667 -1, try to deduce it from ms_type.
1668 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
1669 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
1670 add code to relocate objfile->sections data structure.
1671 * remote.c (get_offsets): Use new protocol message to acquire
1672 section offsets from the target.
1673 * (remote_wait): Get rid of relocation stuff. That's all handled
1674 by objfile_relocate now.
1675 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
1676 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
1677 VM_MIN_ADDRESS.
1678 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
1679
d148e8c4
DE
1680Sun Mar 20 15:21:57 1994 Doug Evans (dje@cygnus.com)
1681
1682 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
1683 instead of 4.
d3688932
DE
1684 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
1685 can no longer set this at run time.
7f695c07
DE
1686 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
1687 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
1688 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
1689 sparc-tdep.c compiles).
1690 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
d3688932 1691
94d4b713
JK
1692Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1693
d0bff94e
JK
1694 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
1695 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
1696 * configure.in: Recognize m68*-cisco*-*.
1697
94d4b713
JK
1698 * Makefile.in (TAGS): Use variables directly, rather than using
1699 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
1700 and means that these filenames no longer need be unique across all
1701 the config/* directories.
1702 * configure.in: Put the config/*/ into TM_FILE, etc.
1703
1704 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
1705 and trapv exceptions.
1706
1707 * target.h (struct section_table), objfiles.h (struct obj_section):
1708 Change name of field sec_ptr to the_bfd_section. More mnemonic
1709 and avoids the (sort of, for the ptx compiler) name clash with
1710 the name of the typedef.
1711 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
1712 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
1713
1714 * utils.c: Include readline.h.
1715 * Makefile.in (utils.o): Add dependency.
1716
1717 * remote.c (getpkt): Add support for run-length encoding.
1718
8eec3310
SC
1719Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1720
1721 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
1722
ee6d646a
JK
1723Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1724
20657f71
JK
1725 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
1726 prim_record_minimal_symbol.
1727 Callers: Pass it.
1728
ee6d646a
JK
1729 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
1730 computing their offset from the start of the old buffer and adding
1731 to the new buffer, rather than by assuming we can add the
1732 difference between the old buffer and the new buffer (it might not
1733 fit in an int). Merge in cosmetic differences from emacs regex.c
1734 version of this macro.
1735
478d3811
JK
1736Wed Mar 16 15:28:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1737
1738 * Makefile.in (install-only): Fix use of program_transform_name.
1739
c42b8af8
JK
1740Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1741
f8715549 1742 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
478d3811 1743 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
f8715549
JK
1744 so I'm nuking the command.
1745 * symtab.c (find_addr_symbol): Comment out, no longer used.
1746
a645ccc9
JK
1747 * main.c (main): Don't init_source_path for the -cd argument. Now
1748 that source_path doesn't contain the current_directory from when
1749 GDB started up, init_source_path is no longer useful (and is
1750 harmful because it clobbers a source_path set in $HOME/.gdbinit).
1751
c42b8af8
JK
1752 * TODO: Remove item about line numbers being off. It is useless
1753 and confusing without a reproducible test case (it mentions
1754 proceed(), but I was able to step through proceed without trouble).
1755
ae6d035d
PS
1756Tue Mar 15 13:39:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1757
1758 For Sunos 4.x targets, enable gdb to set breakpoints in shared
1759 library functions before the executable is run. Retrieve dynamic
1760 symbols from stripped executables.
1761 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
1762 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
1763 symtab.c (list_symbols): Handle mst_solib_trampoline.
1764 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
1765 for all targets, remove IBM6000_TARGET dependencies.
1766 * dbxread.c (read_dbx_dynamic_symtab): New function.
1767 * dbxread.c (dbx_symfile_read): Use it.
1768 * dbxread.c (SET_NAMESTRING): Set namestring to
1769 "<bad string table index>" instead of "foo" if the string index is
1770 corrupt.
1771 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
1772 of mst_unknown.
1773 * symtab.c (list_symbols): Take from_tty as parameter and pass it
1774 to break_command. Handle mst_file_* minimal symbol types.
1775 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
1776
b427690a
KH
1777Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
1778
1779 * c-exp.y(yylex): fix potential memory overflow.
1780
f93b941b
JK
1781Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1782
1783 * environ.c (set_in_environ): Eliminate special handling of PATH and
1784 GNUTARGET.
1785 * putenv.c: Removed, conflicts with system declaration of
1786 putenv on RS/6000 running AIX 3.2.5, and above change makes it
1787 unnecessary.
1788 * Makefile.in: Change accordingly.
1789 * procfs.c (procfs_create_inferior): Change comment accordingly.
1790
17221e41
JK
1791Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
1792
1793 * rs6000-tdep.c: Change value to value_ptr.
1794
8eb79598
JK
1795Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1796
c4ad6b09
JK
1797 * i386m3-nat.c: Include floatformat.h.
1798 (get_i387_state): Use memset not bzero.
1799
5fa83062
JK
1800 * Version 4.12.3.
1801
1802 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
1803 ieee-float.h to floatformat.h.
1804
79f3d586
JK
1805 * valprint.c (val_print_string): Ignore error if the error
1806 happened after a terminating '\0'.
1807
1808 * c-valprint.c (c_val_print): Never add 1 to return value from
1809 val_print_string; just return what it returns.
1810
8eb79598
JK
1811 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
1812 looping through all of the enums.
1813 * infrun.c (signals_info): Use it.
1814
c4de6b30
JK
1815Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1816
8e4c7b3e
JK
1817 * main.c (main): When printing warning about bad baud rate, don't
1818 use warning(); it relies on current_target which isn't set up yet.
1819
c4de6b30 1820 * breakpoint.c (_initialize_breakpoint): Update docstring for
d1bdad57
JK
1821 tbreak to match what the code actually does. Don't mention tbreak
1822 in docstrings for "enable once" or "enable breakpoints once".
c4de6b30 1823
d78d4d16
JK
1824Thu Mar 10 08:52:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1825
1826 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
1827 while (0). That defeats the whole purpose of using do . . . while (0).
1828 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
1829 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
1830 using a ?: expression as an lvalue is not portable.
1831
1832 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
1833 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
1834 'p' and 'r' symbol descriptors into a single symbol to look for a
1835 LOC_REF_ARG.
1836 * README, config/sparc/tm-sparc.h: Update comments.
1837
10373914
PS
1838Wed Mar 9 21:43:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1839
1840 * mdebugread.c (parse_type): Do not complain for types with
1841 an `indexNil' aux index, these are simply undefined types.
1842 Remove indexNil check from caller of parse_type.
1843 * mdebugread.c (parse_partial_symbols): Do not enter
1844 stGlobal, scCommon symbols into the minimal symbol table, their
1845 value is the size of the common, not its address.
1846 Handle scInit, scFini, scPData and scXData sections.
1847 Use minimal symbol type mst_file_* for stLabel symbols, instead of
1848 mst_*.
1849 Enter stProc symbols into the global_psymbols list once, not into
1850 the static_psymbols_list.
1851 Get rid of dummy psymtab if it is empty, to allow proper detection
1852 of stripped executables.
1853 * mdebugread.c (cross_ref): Allow cross references to Fortran
1854 common blocks.
1855
fddb9bda
JK
1856Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1857
1858 * stabsread.c (common_block_end, fix_common_block): Stash the
1859 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
1860 as to not assume that a pointer fits in an enum.
1861
d9389f37
KH
1862Wed Mar 9 18:56:36 1994 Kung Hsu (kung@mexican.cygnus.com)
1863
1864 * os9kread.c (fill_sym): check compiler verion number for pre-
1865 UltraC compiler.
1866 * os9kread.c (os9k_process_one_symbol): address of symbol is
1867 relative to section not module.
1868 * stabsread.c (define_symbol): add symbol type 's' as local
1869 symbol for os9k.
1870 * remote-os9k.c: add command 'set monitor_log' to turn on or off
1871 monitor logging.
1872 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
1873 * remote-os9k.c: fix bug in 'set remotebaud' function.
1874 * remote-os9k.c (rombug_link): minimize checking so to improve
1875 speed.
fddb9bda 1876 * symfile.c (symbol_file_command): check if failed to link, also make
d9389f37
KH
1877 the command be able to accept more than one filenames.
1878 * target.c (target_link): check if failed to link with rombug.
1879 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
1880
cdc7029d
JK
1881Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1882
1883 * remote-es.c (es1800_child_ops): Don't declare it static.
1884
352c21dd
JK
1885Tue Mar 8 11:42:39 1994 Jim Kingdon (kingdon@cygnus.com)
1886
1887 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
1888
ce2f21b2
JK
1889Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1890
9d2b8d50
JK
1891 * dbxread.c: New variable lowest_text_address.
1892 (record_minimal_symbol, read_dbx_symtab): Set it.
1893 (read_dbx_symtab): Use lowest_text_address + text_size instead of
1894 end_of_text_address.
1895 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1896
1897 * dbxread.c (end_psymtab): Remove old and commented out
1898 capping_global and capping_static. Fix comments regarding
1899 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
1900
79448221
JK
1901 * parser-defs.h: Add "extern" to start of variable declarations so
1902 we don't end up with commons.
1903 * parse.c: Define these variables.
1904
ce2f21b2
JK
1905 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
1906 as one.
1907
7810d333
JK
1908Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1909
1910 * alpha-tdep.c: Change value to value_ptr.
1911
a6e21fba
PS
1912Sun Mar 6 17:36:53 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1913
1914 * solib.c (elf_locate_base): New function to locate the address
1915 of the dynamic linker's runtime structure in the dynamic info section.
1916 * solib.c (locate_base): Use it instead of iterating over the list
1917 of mapped address segments.
1918 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
1919 necessary.
1920
70e43abe
JL
1921Fri Mar 4 09:50:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1922
1923 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
1924 (pc_in_interrupt_handler): New function. Also add PARAM decl.
1925 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
1926 signal trampoline and interrupt routines.
1927 (frame_saved_pc): Handle signal trampolines and interrupt routines.
1928 (frame_chain, frame_chain_valid): Likewise.
1929 (hppa_frame_find_saved_regs): Likewise. Also deal with special
1930 saved regs convention for SP.
1931
1932 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
1933 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
1934 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
1935
1936 * tm-hppah.h (IN_SIGTRAMP): Define.
1937
833a2895
JK
1938Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1939
93dc3414
JK
1940 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
1941 alphabetic character as the start of a name.
1942
b855dfe7
JK
1943 * sparclite/Makefile.in (all install): Build and install aload.
1944
d9a5e91f
JK
1945 * configure.in: Accept i[34]86-*-*sysv32 because that is what
1946 config.guess and config.sub produce.
1947
833a2895
JK
1948 * mips-tdep.c: Change value to value_ptr.
1949
82a2edfb
JK
1950Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1951
1952 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
1953 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
1954 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
1955 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
1956 value with value_ptr. This is for the ptx compiler.
1957 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
1958 "sec_ptr" typedef.
1959 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
1960 #if 0 i386_float_info.
1961 * symm-tdep.c (round): Remove. Also remove sgttyb.
1962 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
1963 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
1964 * i386-tdep.c (i386_frame_find_saved_regs): Put in
1965 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
1966 someday.
1967 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
1968 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
1969 symm-nat.c. Define CHILD_WAIT and declare child_wait().
1970 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
1971 tm-i386v.h is apparently OK.
1972 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
1973 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
1974 USE_O_NOCTTY.
1975
c485c7a9
PS
1976Wed Mar 2 11:31:08 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1977
1978 * osfsolib.c (xfer_link_map_member): Update to use new
1979 target_read_string interface.
1980
d1c0c6cf
JK
1981Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1982
1983 * infrun.c (wait_for_inferior): In checking
1984 remove_breakpoints_on_following_step, check
1985 through_sigtramp_breakpoint as well as step_resume_breakpoint.
1986
25200748
JK
1987Tue Mar 1 16:22:56 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1988
1989 * os9kread.c (os9k_process_one_symbol): Rename
1990 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
1991 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
1992 (CORE_ADDR)0, from target_link, since that is what it uses.
1993 Process name at end, not during parsing (like we did before Kung's
1994 change), so that -readnow and -mapped can appear anywhere.
1995 Make text_relocation a local variable.
1996 * config/i386/i386os9k.mt: Fix comment.
1997 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
1998 * os9kread.c: Put "comments" after #endif inside /* */.
1999 * stabsread.h: Add os9k_stabs variable.
2000 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
2001 Set it.
2002 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
2003 descriptor in global_symbols not local_symbols.
2004 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
2005 descriptors.
2006 (read_type): If os9k_stabs, accept function parameters after 'f'
2007 type descriptor.
2008 (read_array_type): If os9k_stabs, don't expect index type and
2009 expect lower and upper to be separated by ',' not ';'.
2010 (read_enum_type): If os9k_stabs, read a number before the first
2011 enumeration constant.
2012 (os9k_init_type_vector): New function.
2013 (dbx_lookup_type): Call it when starting new type vector.
2014 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
2015 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
2016 * os9kstab.c: Removed.
2017 * Makefile.in: Update accordingly.
2018 * objfiles.c (objfile_relocate_data): Removed.
2019 * remote-os9k.c (rombug_wait): Call objfile_relocate
2020 not objfile_relocate_data.
2021 * objfiles.h, objfiles.c: Remove find_pc_objfile.
2022 * remote-os9k.c (rombug_wait): Call find_pc_section not
2023 find_pc_objfile.
2024 * main.c (quit_command): Check inferior_pid; revert Kung change.
2025 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
2026
1340861c
KH
2027Tue Mar 1 14:56:14 1994 Kung Hsu (kung@mexican.cygnus.com)
2028
2029 * os9kread.c: New file to read os9000 style symbo table.
2030 * os9kstab.c: new file to read os9000 style stabs.
2031 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
2032 * objfiles.c (find_pc_objfile): new function to search objfile
2033 from pc.
2034 * objfiles.c (objfile_relocate_data): new function to relocate
2035 data symbols in symbol table.
2036 * objfiles.h: Add two aux fields in struct objfile to handle
2037 multiple symbol table files situation like in os9000.
2038 * symfile.c: Change so 'symbol-file' command can handle multiple
2039 files. Also call target_link() to get relocation infos.
2040 * target.c (target_link): new function to get relocation info when
2041 a symbol file is requested to load.
2042 * main.c (quit_command): take out 'inferior_pid != 0' condition,
2043 because in cross mode there's no inferior pid, bit they need to
2044 be detached.
2045 Makefile.in: add os9kread.c os9kstab.c and .o's.
2046 configure.in: add i386os9k target.
2047 config/i386/i386os9k.mt: new add.
2048 config/i386/tm-i386os9k.h: new add.
2049
137b6849
PS
2050Tue Mar 1 13:16:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2051
2052 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
2053 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
2054
4ad0021e
JK
2055Tue Mar 1 11:54:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2056
2057 * target.c, target.h (target_read_string): Provide error detection to
2058 caller. Put string in malloc'd space, so caller need not impose
2059 arbitrary limits.
2060 * solib.c (find_solib): Update to use new interface.
2061 * irix5-nat.c (find_solib): Read o_path from inferior
2062 (clear_solib): Free storage for o_path.
2063 * valprint.c (val_print_string): Add comments.
2064
e3d6ec4a
PS
2065Mon Feb 28 23:54:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2066
2067 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
2068 advance `p'.
2069
c8ff77be
JK
2070Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2071
30974778
JK
2072 * value.h (struct value): Add modifiable field.
2073 * values.c (allocate_value, record_latest_value, value_copy): Set it.
2074 (record_latest_value): Don't mess with VALUE_LVAL of value.
2075 * valops.c (value_assign): Check it. Reword existing error
2076 message on not_lval.
2077
b5aff268
JK
2078 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
2079 (STEP_SKIPS_DELAY): Added.
2080 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
2081 the delay slot.
2082
c8ff77be
JK
2083 * valprint.c (val_print_string): If errcode is set, always print
2084 an error, regardless of force_ellipsis. In the non-EIO case,
2085 just print the error message rather than calling error(). Don't
2086 access *(bufptr-1) if bufptr points to the start of the buffer.
2087 When looking for '\0', don't increment bufptr and addr if bufptr
2088 started out already at limit. If an error happens on fetching the
2089 first character, don't print the string.
2090
2882219f
JK
2091Sun Feb 27 21:05:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2092
2093 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
2094 obsolete.
2095
2096 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
2097 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
2098 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
2099 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
2100 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
2101 * findvar.c: Update comment regarding ieee-float.h.
2102
28ee4b42
PS
2103Sun Feb 27 21:39:48 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2104
2105 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
2106 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
2107 Define to make backtracing through the various sigtramp handlers
2108 work.
2109 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
2110 the saved pc from ucontext on the stack for SVR4 signal handling.
2111
25354cef
JK
2112Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2113
c20c1bdf
JK
2114 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
2115 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
2116 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
2117 just use the global variable itself. When printing baud rate,
2118 don't print a baud rate if baud_rate is -1.
2119
25354cef
JK
2120 * coffread.c (read_coff_symtab): Pass mst_file_* to
2121 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
2122 symbols in the minimal symbols regardless of SDB_TYPE.
2123
7126c1d0
JK
2124Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2125
bcc37718
JK
2126 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
2127 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
2128 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
2129 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
2130 ignored bs->stop for a bp_step_resume breakpoint.
2131 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
2132 which performs one (the check_sigtramp2 one) of the functions
2133 which had been handled by the step_resume_breakpoint. For each
2134 use of the step_resume_breakpoint, make it still use the
2135 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
2136 operate on both.
2137 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
2138 When setting the frame address of the step resume breakpoint, set
2139 it to the address for frame *before* the call instruction is
2140 executed, not after.
2141
3fed1c4a
JK
2142 * mips-tdep.c (mips_print_register): Print integers using
2143 print_scalar_formatted rather than duplicating all the
2144 CC_HAS_LONG_LONG and so on.
2145 (mips_push_dummy_frame): Use read_register_gen rather than using
2146 read_register and then putting it back in target format with
2147 store_unsigned_integer. If registers are more than 4 bytes, give
2148 an error rather than have some registers overwrite other
2149 registers.
2150 #if 0 unused include of opcode/mips.h.
2151
2152 * symfile.h: Don't declare arguments for coff_getfilename.
2153
7126c1d0
JK
2154 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
2155
6bfd168c
JL
2156Thu Feb 24 08:06:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2157
2158 * configure.in (hppa*-*-osf*): New configuration.
2159 * config/pa/hppaosf.mt: New target makefile fragment.
2160 * config/pa/tm-hppao.h: New target include file.
2161
5c07a10b
PS
2162Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2163
2164 * exec.c (print_section_info): Print entry point for exec_bfd only.
2165 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
8ce2cfc0
PS
2166 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
2167 causes problems if <sys/types.h> has no multiple inclusion protection.
5c07a10b 2168
fce7695f
JL
2169Wed Feb 23 16:28:55 1994 Jeffrey A. Law (law@cygnus.com)
2170
2171 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
2172 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
2173 (CALL_DUMMY_LENGTH): Changed accordingly.
2174
318ee78a
SG
2175Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
2176
75a006d9
SG
2177 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
2178 numbers of register windows.
2179
318ee78a
SG
2180 * sparclite/hello.c: Add factorial function for testing.
2181 * salib.c: Use macros instead of constants for I/O addresses to
2182 make 931 support easier.
2183 * sparclite.h: Change constraint for LOC to "rJ" to force use of
2184 register in sta/lda instructions.
2185
56dd4126
JK
2186Wed Feb 23 10:39:18 1994 Jim Kingdon (kingdon@rtl.cygnus.com)
2187
2188 * dbxread.c (process_one_symbol): Set
2189 block_address_function_relative for COFF like we do for ELF and SOM.
2190
847d9775
PS
2191Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2192
2193 * mdebugread.c (new_psymtab): Pass in section_offsets and set
2194 them in the pst.
2195 * mdebugread.c (handle_psymbol_enumerators): New function to enter
2196 the enumerators of an ecoff enum into the partial symbol table.
2197 * mdebugread.c (parse_partial_symbols): Call it.
2198 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
2199 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
2200 offsets. Cast psymtab->read_symtab to PTR before passing it to
2201 gdb_print_address.
2202 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
2203 set up the global offset table pointer in pic compiled code.
2204 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
2205 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
2206 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
2207 ensures that floats are promoted to doubles before they are pushed
2208 on the stack.
2209
9f35e15a
SG
2210Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
2211
2212 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
2213 Fixup cache_on and flush_i_cache so that they work for both the
2214 930 and 932 processors. Rewrite most low level funcs (uart
2215 access & cache stuff) to use new ASI access macros in sparclite.h.
2216 Also make it easy to access second serial port.
2217
56173dc5
ILT
2218Fri Feb 18 22:17:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2219
2220 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
2221 <sys/stat.h>; not needed.
2222
c84bab2d
JK
2223Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2224
2225 * stack.c (print_frame_info): In "pathological" case, don't
2226 distrust the line number information.
2227
748d77d7
KH
2228Fri Feb 18 16:51:14 1994 Kung Hsu (kung@mexican.cygnus.com)
2229
2230 * mips-tdep.c (mips_print_register): handle 64 bits register.
2231 * valprint.c (print_longest): fix a bug in printing 64 bits value.
2232
889f1f03
JK
2233Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2234
1eb89b9e
JK
2235 * Version 4.12.2.
2236
ef1a0540
JK
2237 * Makefile.in (install): Do the sed for program_transform_name
2238 ourselves instead of worrying about INSTALL_XFORM. This enables
2239 users to override INSTALL_PROGRAM in the standard way.
2240
2241 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
2242 depend on Makefile.in.
2243
fb0f4231
JK
2244 * defs.h, valprint.c: Make longest_to_int a function not a macro.
2245 Only test against INT_MIN if a LONGEST is bigger than an int.
2246
889f1f03
JK
2247 * README: Change GhostScript to Ghostscript.
2248
662f3b3f
JK
2249Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
2250
d5cb2f7d
JK
2251 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
2252 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
2253 character file names.
2254 * Makefile.in (ALLPARAM): Add these files.
2255
662f3b3f
JK
2256 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
2257 character file names.
d5cb2f7d 2258 * Makefile.in: Add Kung's new mips64 files.
662f3b3f 2259
70126bf9
KH
2260Thu Feb 17 17:25:47 1994 Kung Hsu (kung@mexican.cygnus.com)
2261
2262 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
2263 mips64el-*-ecoff and mips64-big-*.
2264 * defs.h: get rid of FORCE_LONG_LONG.
2265 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
2266 parsing. Change register size to be MIPS_REGSIZE.
2267
c4a081e1
DM
2268Thu Feb 17 09:30:22 1994 David J. Mackenzie (djm@thepub.cygnus.com)
2269
2270 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
2271 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
2272 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
2273
3b5442f9
SC
2274Fri Feb 11 21:47:24 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
2275
2276 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
2277 (remove_commands, add_commands): Add/remove hms-drain when target
2278 is connected.
2279
d87d7b10
SG
2280Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
2281
2282 * configure.in: Add Lynx/rs6000 support.
2283 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
2284 messages. Add rs6000 support. Don't try to modify unwritable
2285 registers.
2286 * rs6000-nat.c: Move lots of native dependent stuff (like core
2287 file support) from rs6000-tdep.c & xcoffexec.c to here.
2288 * rs6000-tdep.c: Move native dependent stuff to nat.c.
2289 * xcoffexec.c: Move native dependent stuff to nat.c.
2290 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
2291 from tm file.
2292 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
2293 really native.
2294 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
2295 New files to support Lynx/rs6000.
2296
ba47c66a
PS
2297Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2298
2299 * README: Remove note about gcc warnings on alpha, these should be
2300 gone now.
2301 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
2302 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
2303 remote-utils.c, stabsread.c: Include <string.h>.
2304 * regex.c: Include "defs.h", change re_comp argument to const char *.
2305 * infptrace.c (fetch_register, store_inferior_registers): Change
2306 regaddr to type CORE_ADDR.
2307 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
2308 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
2309
2310Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2311
2312 * symtab.h: Always define BYTE_BITFIELD to nothing.
2313
ea5dad7f
JK
2314Mon Feb 7 08:44:17 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2315
2316 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
2317 * configure.in: Remove comment about m68k-em.mt.
2318 * Makefile.in: Remove references.
2319
6ddba992
JK
2320Mon Feb 7 08:22:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2321
2322 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
2323 BFD_HOST_64_TYPE.
2324
01cd70b9
JK
2325Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2326
1dd29bef
JK
2327 * target.c (target_preopen): If target_kill doesn't remove the
2328 target from the stack, use pop_target to do it.
2329
704aea43
JK
2330 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
2331 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
2332 changes to stabsread.c from summer 1993.
2333
4a00e1de
JK
2334 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
2335 printing the program, rather than passing NULL to printf.
2336 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
2337 try to call UDIDisconnect again. Print better message.
2338 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
2339 it via udi_close.
4a00e1de
JK
2340 (udi_create_inferior): If udi_session_id is negative, open a new
2341 TIP rather than giving an error.
2342
01cd70b9
JK
2343 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
2344 config/ns32k/ns32km3.mh: Define NAT_FILE.
2345 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
2346 (it was inconsistent and namespace-wrong) to NM_M3_H.
2347 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
2348 (m3_open): New function.
2349 (m3_ops): Use it.
2350 * TODO: Update Mach section.
2351
2352 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
2353
d41b3eed
PB
2354Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2355
2356 * printcmd.c (printf_command): Add missing single-letter
2357 backslash-escape sequences, and improve error message.
2358
7343d716
JK
2359Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2360
842cf831
JK
2361 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
2362 rather than trying to shove an int into a pointer and back out
2363 again. This avoids compiler warnings.
2364
7343d716
JK
2365 * defs.h (alloca): Declare as void *, not char *, on hpux.
2366 Don't prototype it, just declare the return type.
2367
57a9fee3
PS
2368Sun Feb 6 03:25:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2369
2370 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
2371 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
2372
a1bd6534
JK
2373Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2374
021b10e3
JK
2375 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
2376 ZERO_REGNUM, just read it as zero without talking to the board.
2377
8b0a85ba
JK
2378 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
2379 backslash.
2380 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
2381 to store_floating, not nonexistent variable len.
2382
aa56c716
JK
2383 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
2384 New functions.
2385 (mips_store_word): Change calling convention to return errors, and
2386 to provide old contents if the caller wants it.
2387 (mips_xfer_memory): Deal with errors from mips_store_word.
2388 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
2389 define now that remote-mips.c doesn't use BREAKPOINT.
2390
2391 * remote-mips.c (mips_create_inferior): Call warning if arguments
2392 specified, and then execute "set args" command. Call error, not
2393 mips_error, if executable file not specified.
2394
29fc92e8
JK
2395 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
2396 remote_debug.
2397
a1bd6534
JK
2398 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
2399 to unsigned int.
2400
65e98f5b
PS
2401Sat Feb 5 05:27:05 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2402
2403 * value.h (print_longest): Rename "value" to "val" in prototype
2404 declaration because some compilers don't like arguments whose
2405 names are the same as types.
2406 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
2407 before passing it to remote_*_bytes.
2408
edd01519
SC
2409Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
2410
2411 * h8500-tdep.c (saved_pc_after_call): The size of the
2412 pc is memory model dependent. (segmented_command,
2413 unsegmented_command, _initialize_h8500_tdep): New commands to
2414 change memory model.
29fc92e8 2415 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
edd01519 2416 command.
678ee700
SC
2417 * remote-hms.c (hms_load): Remove breakpoints when loaded.
2418 (hms_wait): Use new status structure
2419 (hms_open): Push the target here. (hms_before_main_loop): Not
2420 here. (supply_val, hms_fetch_register, hms_store_register): Cope
2421 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
2422 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
2423 all registers in a compact way.
edd01519 2424
9c01440d
JK
2425Fri Feb 4 07:41:13 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2426
2427 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
2428 as CORE_ADDR to match definition in rs6000-tdep.c.
2429
4386eff2
PS
2430Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2431
2432 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
2433 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
2434 definitions into the psymtab.
2435
d351c7a6
JK
2436Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2437
2438 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
2439 a special exceptionSize for the 68332.
2440
2441 * remote-udi.c (udi_attach): If no arguments, print error.
2442
4901e77d
FF
2443Thu Feb 3 17:34:05 1994 Fred Fish (fnf@cygnus.com)
2444
2445 * Makefile.in (VERSION): Bump to 4.12.1
2446 * NEWS, README: Update to match 4.12 release.
2447
159ada02
JK
2448Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2449
4901e77d
FF
2450 * command.c (empty_sfunc): New function.
2451 (add_set_cmd): Use it instead of not_just_help_class_command.
2452 (not_just_help_class_command): Change calling convention back to
2453 what it was before yesterday's change.
2454
159ada02
JK
2455 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
2456 of the type if present.
2457
5b3591ab
JK
2458Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2459
eade0c6c
JK
2460 * printcmd.c (decode_format): Don't blithely set the size for
2461 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
2462
2463 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
2464 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
2465 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
2466 always just check against INT_MIN and INT_MAX (this also fixes things
2467 if sizeof (long) > sizeof (int), e.g. Alpha).
2468 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
2469 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
2470 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
2471 BUILTIN_TYPE_UNSIGNED_LONGEST.
ce855594
JK
2472 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
2473 longest_int and longest_unsigned_int.
eade0c6c
JK
2474 * value.h (struct value): Just align to LONGEST, rather than worrying
2475 about CC_HAS_LONG_LONG.
b1de1647
JK
2476 * valarith.c (value_binop): Figure out type ourself based on
2477 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
2478 point is that we don't depend on CC_HAS_LONG_LONG anymore.
eade0c6c
JK
2479 * valprint.c (val_print_type_code_int): Just call
2480 extract_unsigned_integer directly, rather than going through
2481 unpack_long.
2482 * printcmd.c (decode_format): Remove code which would sometimes
2483 change 'g' size to 'w' for integers. print_scalar_formatted handles
2484 printing huge integers well enough, thank you.
2485
4901e77d 2486 * command.c (add_set_cmd, not_just_help_class_command): Change
719d9abb
JK
2487 to make this the sfunc, not cfunc, since that is how we call it.
2488 * command.h: Comment difference between sfunc and cfunc.
2489 * demangle.c (set_demangling_command): Add third arg since that
2490 is how it is called.
2491 (_initialize_demangler): Use sfunc, not cfunc, for
2492 set_demangling_command, since that is how it is called.
2493 Remove show_demangling_command; it has no effect.
2494
5b3591ab
JK
2495 * command.c (shell_escape): Report errors correctly (with error
2496 message from strerror).
2497
37f24dc9
ILT
2498Wed Feb 2 14:35:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2499
2500 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
2501 x_scnlen.l rather than x_scnlen to match corresponding change in
2502 coff/internal.h.
2503
61932a8e
JK
2504Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2505
2506 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
2507 Change comments regarding TYPE_CODE_BOOL.
2508 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
2509 regardless of the language.
2510 (value_true): Just call value_logical_not regardless of language.
2511 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
2512 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
2513 * language.h: Improve comment for la_builtin_type_vector.
2514 * m2-lang.c (_initialize_m2_language): Don't add any fields to
2515 builtin_type_m2_bool.
2516
7bec77b4
JK
2517Tue Feb 1 17:13:32 1994 Kevin Buettner (kev@cujo.geg.mot.com)
2518
2519 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
2520 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
2521
8afd05c0
JK
2522Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2523
2524 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
2525 by restarting the ioctl.
2526
10b9bb56
JK
2527Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2528
2529 * target.h (target_wait): Add comment about calling
2530 return_to_top_level.
2531
bf8d9d28
ILT
2532Tue Feb 1 12:21:00 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2533
2534 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
2535 additional arguments.
2536 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
2537
efe3ff3e
SG
2538Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
2539
2540 * sparc-stub.c: Remove unnecessary #include of memory.h.
2541
37dea45f
JK
2542Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2543
14d79562
JK
2544 * mips-tdep.c: Remove code which sets saved_regs from
2545 init_extra_frame_info and put it in new function mips_find_saved_regs.
2546 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
2547 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
2548 check if it is NULL and call mips_find_saved_regs if so.
2549
47d52968
JK
2550 * remote-mips.c: Use unfiltered, not filtered, output most places.
2551
37dea45f
JK
2552 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
2553 backtrace. Revise comments.
2554
0434c1a0
PS
2555Mon Jan 31 09:40:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2556
2557 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
2558 alpha and irix. The _sigtramp case has to be handled properly
2559 in the tdep files if we have no ecoff debugging info.
2560 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
2561 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
2562 without PC_REGNUM kludge.
2563 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
2564 Clean up handling of mips sigtramp frames, improve comments.
2565
d64956fa
JL
2566Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2567
2568 * paread.c (read_unwind_info): Fix typo.
2569
2570 * paread.c (pa_symtab_read): Update the "check_strange_names"
2571 filter to match GCC's current output. Filter out section symbols
2572 (which the HP linker sometimes puts in the wrong place).
2573
9db58d3a
JK
2574Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2575
3a479851
JK
2576 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
2577
a0b352c0
JK
2578 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
2579
2580 * Makefile.in: Remove all references to sparcly-nat.c.
2581
2582 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
2583 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
2584 duplicating serial.h and target.h.
2585
7a78db15
JK
2586 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
2587 are not used anywhere (a 5 Oct 1993 change removed the uses).
2588
895efe6b
JK
2589 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
2590 * config/m68k/es1800.mt: Add comment.
3a479851 2591 * remote-es.c: Extensive changes to update to current conventions.
895efe6b 2592
9db58d3a
JK
2593 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
2594 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
2595 to achieve the desired timeout.
2596 * serial.h (serial_t): Add field timeout_remaining.
2597
f28c6e38
JK
2598Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2599
2600 * c-exp.y (yylex): Reenable nested type code.
2601
b09f44d2
JK
2602Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2603
7f2ffa58
JK
2604 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
2605
796d1fd3
JK
2606 * remote-mips.c (mips_ops): Fix docstring.
2607
97cc0428
JK
2608 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
2609
ddd0223e
JK
2610 * config/m68k/tm-monitor.h: Changes to bring this into accordance
2611 with the old tm-m68k-em.h:
2612 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
97cc0428 2613 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
ddd0223e
JK
2614 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
2615 Add FIXME regarding GET_LONGJMP_TARGET.
2616
b09f44d2 2617 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
97cc0428
JK
2618 * infptrace.c (kill_inferior): Add comments.
2619 * main.c (quit_command): Call target_close after we kill or
2620 detach.
2621 * remote-udi.c (udi_close): Don't error() if QUITTING.
b09f44d2 2622
0ffba029
RS
2623Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)
2624
2625 * configure.in: Make m68k-coff and aout add monitor support in
2626 addition to the standard serial support.
2627
bb7cb982
JK
2628Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2629
2630 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
2631 index indexNil.
2632
9fdb3f7a
JK
2633Fri Jan 28 10:40:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2634
2635 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
2636 * elfread.c (record_minimal_symbol_and_info),
2637 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
2638
a28d16d3
JK
2639Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2640
6202263d
JK
2641 * i386-stub.c: Add ".text" right before "mem_fault:".
2642
9c41f6a6
JK
2643 * main.c (baud_rate): Add FIXME comment about printing -1 value.
2644
2645 * remote-utils.c (usage): Fix message to be accurate and conform
2646 more closely to normal conventions.
2647
2648 * remote-utils.c (gr_files_info): Have the exec_bfd test control
2649 whether to show information about exec_bfd, and not control whether
2650 to show information about device and speed.
2651
2652 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
2653 usage message, don't dump core.
2654
2655 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
2656 for variable size array.
2657 (bug_fetch_register, bug_store_register): Rename "value" to
2658 "fpreg_buf" because some compilers don't like variables whose
2659 names are the same as types.
2660 (bug_store_register): Use a cast when converting char * to
2661 unsigned char *.
2662
d5c551c9
JK
2663 * symmisc.c (maintenance_print_symbols): Don't refer to the name
2664 of the command in error message (the text was referring to the old
2665 name of the command).
2666
2667 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
2668
0e4ad984
JK
2669 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
2670 full details on structure elements without names. This partially
2671 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
2672 of those changes was accidental.
2673
577da8cb
JK
2674 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
2675 defined, make it an error to specify a single argument which is not
2676 a frame number.
2677
a28d16d3
JK
2678 * Makefile.in (version.c), main.c (print_gdb_version): Use
2679 host_alias and target_alias, not host_canonical and
2680 target_canonical, to print configuration.
2681
833e0d94
JK
2682Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2683
d92f3f08
JK
2684 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
2685 of builtin_type_long. It is necessary to get a type which is
2686 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
2687
833e0d94
JK
2688 Fix many sins which will come up in 32 bit x 64 bit GDB, and
2689 various miscellaneous things discovered in the process:
2690 * printcmd.c, defs.h (print_address_numeric): New function.
2691 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
2692 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
2693 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
2694 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
2695 Use it.
2696 * utils.c, defs.h (gdb_print_address): New function.
2697 * expprint (dump_expression), gdbtypes.h: Use it.
2698 * breakpoint.c (describe_other_breakpoints),
2699 symmisc.c (dump_symtab, print_symbol):
2700 Use filtered not unfiltered I/O.
2701 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
2702 just run gdb under a debugger for this (and it had problems with
2703 printing addresses, how to print b->shadow, etc.).
2704 * buildsym.c (make_blockvector), core.c (memory_error),
2705 exec.c (print_section_info), maint.c (print_section_table),
2706 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
2707 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
2708 Add comments saying code is broken. Marked with "FIXME-32x64".
2709 * dbxread.c (process_one_symbol), partial-stab.h (default),
2710 remote-vx.c (vx_run_files_info):
2711 Don't cast int being passed to local_hex_string.
2712 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
2713 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
2714 only being a long.
2715 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
2716 and LOC_LOCAL.
2717 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
2718 * source.c: Include <sys/types.h> regardless of USG.
2719
67e9b3b3
PS
2720Tue Jan 25 12:58:26 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2721
2722 * valops.c (value_assign): Set `type' after coercing toval.
2723 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
2724 Use extract_unsigned_integer to get the address of a reference.
2725
36464897
JK
2726Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2727
91a0575c
JK
2728 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
2729 AIX can use ? instead of \ for continuation. Deal with it.
2730
36464897
JK
2731 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
2732 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
2733 the HP compiler in ANSI mode doesn't like.
2734
2735 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
3bc45b7a
JK
2736 based on USG, rather than defining HAVE_SIGSETMASK to an
2737 expression containing defined. Having a macro used in #if expand
2738 to an expression containing "defined" is undefined according to
2739 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
2740 it to.
36464897 2741
2ba6182b
JG
2742Mon Jan 24 20:51:29 1994 John Gilmore (gnu@cygnus.com)
2743
2744 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2745 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
2746
96b6b765
PB
2747Fri Jan 21 19:10:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
2748
2749 * ch-exp.y (match_string_literal): Allow a zero-length string.
2750 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
2751
dfd4c728
JK
2752Sat Jan 22 17:08:48 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2753
2754 * i386aix-nat.c (i386_float_info): Reverse order of registers before
2755 passing them to print_387_status.
2756 (print_387_status): Don't subtract top from 7 before using it.
2757 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
2758 from 7; the above explains it.
2759
5efd597b
PS
2760Sat Jan 22 20:25:11 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2761
2762 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
67e9b3b3 2763 pointer value when fixing up the frame at the start of a function.
5efd597b 2764
e90445c9
SG
2765Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
2766
2767 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
2768 Sparc from the stack.
2769
08f74b92
JK
2770Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2771
864df7e6
JK
2772 * remote-mips.c (mips_initialize): Clear mips_initializing via
2773 cleanup chain, not directly.
2774
2775 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
2776 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
2777 munging the timeout due to the limited range of c_cc[VTIME].
2778
08f74b92
JK
2779 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
2780 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
2781 m3-nat.c (m3_create_inferior): Pass it.
2782 * procfs.c: Remove ptrace function. It was declared in a way which
2783 conflicted with the prototype in unistd.h on Solaris.
2784
cdcf48be
PS
2785Sat Jan 22 01:37:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2786
2787 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
2788 in the sigcontext if it is a signal trampoline frame.
2789 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
2790 Define for Solaris2.
2791
8bf94f44
SG
2792Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
2793
2794 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
2795 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
2796 tm-sparc.h so they can be overridden if necessary.
2797
d575ddc0
SG
2798Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
2799
2800 * lynx-nat.c: Add Sparc support.
2801 * sparcly-nat.c: Remove. It's useless.
2802 * config/sparc/nm-sparclynx.h: Rewrite.
2803 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
2804 with lynx-nat.o
2805 * config/sparc/tm-sparclynx.h: Rewrite.
2806
00240279
ILT
2807Fri Jan 21 19:08:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2808
2809 * rs6000-pinsn.c: Use the new disassembler in the opcodes
2810 directory. Old code was discarded, since the new opcode table has
2811 a different format.
2812
a2608ea1
FF
2813Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
2814
2815 * Makefile.in (realclean): Remove info files per make-stds.texi.
2816
6545c6a0
JK
2817Fri Jan 21 12:47:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2818
2819 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
2820 if N_SO_ADDRESS_MAYBE_MISSING is defined.
2821 * config/sparc/tm-sun4sol2.h: Define it.
2822
cd5ee294
JK
2823Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2824
2825 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
2826 if we did not find a symbol.
2827
918fea3e
JL
2828Fri Jan 21 08:20:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2829
2830 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
2831 is not defined.
2832
2833 * hppab-nat.c (call_ptrace): Delete redundant function.
2834 (kill_inferior, attach, detach, child_resume): Likewise.
2835 (child_xfer_memory): Likewise.
2836
2837 * hppah-nat.c (call_ptrace): Delete redundant function.
2838 (kill_inferior, attach, detach, child_resume): Likewise.
2839
2840 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
2841
2842 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
2843
2844 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
2845
2846 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
2847 (CHILD_XFER_MEMORY): Define.
2848 (PT_*): Define so that generic infptrace.c code can be used.
2849
27ad511f
JK
2850Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2851
1b880e74
JK
2852 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2853 struct section_offsets *, not a (nonexistent) struct section_offset *.
2854
6657a0c7
JK
2855 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
2856 internal_xcoff_symtab, not an array of one of them. Change lots of
2857 "main_aux" to "&main_aux" and so on.
2858
27ad511f
JK
2859 * coffread.c, xcoffread.c: Include <coff/internal.h>
2860 before "symfile.h".
2861
d4a0983a
JK
2862Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2863
dbb0fae2
JK
2864 * coffread.c (coff_getfilename): Make it not static.
2865
d4a0983a
JK
2866 * xcoffread.c (read_xcoff_symtab): complain() not abort().
2867
2868 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
2869 a completely gratuitous difference between xcoffread.c and coffread.c).
2870
d7e7e851
JK
2871Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2872
2873 * infrun.c (wait_for_inferior): Don't set frame for
2874 step_resume_breakpoint for IN_SIGTRAMP cases.
2875
2876 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
2877 breakpoint.c (bpstat_what): Move step_resume from its own field of
2878 the struct bpstat_what into the main_action. Make it override
2879 other breakpoints. This is a conservative change in the sense
2880 that before the step resume breakpoint was a breakpoint.c
2881 breakpoint, hitting the step resume breakpoint overrode even
2882 calling bpstat_stop_status.
2883
f1de67d3
PS
2884Wed Jan 19 12:40:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2885
2886 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
2887 in case execution was stopped in the called function.
2888 * stack.c (print_frame_info, frame_info): If backtracing through
2889 a call dummy, handle the starting source line number on a line
2890 boundary like backtracing through sigtramp.
2891 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
2892 for call dummy frame right. Remove old test for dummy frame,
2893 it has been unused at least since gdb-3.5.
2894 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
2895 of the dummy frame.
2896
c6e0f918
JK
2897Tue Jan 18 16:16:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2898
2899 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
2900
db4340a6
JK
2901Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2902
2903 * infrun.c (signals_info), target.c (target_signal_from_name):
2904 Use ugly casts to avoid enumvar < enumvar or enumvar++.
2905
4d4f2d50
JK
2906Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2907
d881dd86
JK
2908 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
2909 * inflow.c (terminal_ours_1): When discussing how to deal with the
2910 tty state, make note of query() as well as readline.
2911
4d4f2d50
JK
2912 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
2913 signals for which stop and print are cleared by default.
2914
5c38fcee
JL
2915Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2916
c7f3b703
JL
2917 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
2918 reserved fields to hold a stub unwind entry type. Fix typo.
2919 (stub_unwind_entry): New structure for raw stub unwind entries.
2920 (stub_unwind_types): The types of stubs we may encounter.
2921 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
2922 * hppa-tdep.c (rp_saved): Use additional information provided
2923 by linker stub unwind descriptors.
2924 (frameless_function_invocation): Likewise.
2925 (frame_chain_valid): Likewise.
2926 * paread.c (compare_unwind_entries): New function for sorting
2927 unwind table entries.
2928 (read_unwind_info): Rewrite to remove dependency on host endianness.
2929 Read in data from the $UNWIND_END$ subspace which contains linker
2930 stub unwind descriptors. Merge that data into the basic unwind
2931 table.
2932
5c38fcee
JL
2933 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
2934
af8b7906
JK
2935Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2936
2937 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
2938 from either the symbol name or the auxent.
2939 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
2940 no longer static.
2941
0e7da49c
FF
2942Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
2943
2944 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
2945
b90811f9
PS
2946Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2947
2948 * README: Update notes for alpha port.
2949
24a11a79
JK
2950Mon Jan 17 11:15:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2951
2952 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
2953 for operation fault, constraint fault, and type fault.
2954
b76dcd4b
JK
2955Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2956
623d7380
JK
2957 * Makefile.in (init.c): Add comment explaining formatting conventions.
2958
a39f7739
JK
2959 * c-exp.y (parse_number): Assign to temporary between the right
2960 shifts, to work around a bug in the SCO compiler.
2961
07919221
JK
2962 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
2963 Add various files which were added to GDB recently.
2964
91cc45da
JK
2965 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
2966 within_function.
2967
b76dcd4b
JK
2968 * Makefile.in: Add mostlyclean target.
2969
d7a5ff3c
JK
2970Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2971
2972 * Version 4.11.4.
2973
8b564df8
PB
2974Sat Jan 15 18:27:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
2975
2976 * main.c (show_commands): Make return type of extern
2977 history_get be HIST_ENTRY, rather than struct _hist_entry.
2978 (The latter loses with the upcoming merged readline.)
2979
dac317dc
JK
2980Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2981
ab5f7971
JK
2982 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
2983 const char *, not char *.
2984
fb155ce3
JK
2985 * symtab.h (struct symbol): Make section short, not unsigned short.
2986
87041845
JK
2987 * symtab.c (lookup_symbol): Add comment about QUIT here.
2988
f29351d9
JK
2989 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
2990
a9b32d61
JK
2991 * c-exp.y (parse_number): Check for overflow regardless of range
2992 checking. Fix overflow check to use unsigned LONGEST, not
2993 unsigned int.
2994
2995 * c-exp.y (parse_number): Make it so that integer constants are
2996 builtin_type_long_long if builtin_type_long isn't big enough or if
2997 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
2998
dac317dc
JK
2999 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
3000 Print our "()" first, then recurse for the target type.
3001
4c0b3e57
JK
3002Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3003
831a39d7
JK
3004 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
3005
4c0b3e57
JK
3006 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
3007
44a09a68
JK
3008Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3009
3010 * utils.c (request_quit): Re-establish signal handler regardless
3011 of USG.
3012
3013 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
3014
98506620
JK
3015Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3016
3017 * i960-tdep.c: Include target.h.
3018
658821b9
SS
3019Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
3020
3021 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
3022
3023Fri Jan 14 11:06:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3024
3025 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
3026 changes (status -> ourstatus; declare status, etc.).
3027 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
3028
4e8bc56f
JK
3029Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3030
3031 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
3032
aeb145f8
ILT
3033Fri Jan 14 11:49:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3034
3035 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
3036
d253eb7a
JK
3037Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3038
3039 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
3040
52b3045e
PS
3041Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3042
3043 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
3044
ae682b80
JK
3045Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3046
d0acb092
JK
3047 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
3048 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
3049
3050 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
3051 writing it.
3052
63dcc380
JK
3053 Add search to target vector (#if 0'd until after 4.12):
3054 * target.h (to_search, target_search): Add.
3055 * gdbcore.h, core.c (generic_search): Add.
3056 * remote.c (remote_search): Add.
3057 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
3058 tag.
3059
d6596eee
JK
3060 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
3061 is on, call find_pc_function rather than relying just on the minimal
3062 symbols (probably only matters for symbol readers which don't put
3063 statics in the minimal symbols, but changing this strikes me as
3064 not conservative enough).
3065 Initialize name_location in all cases.
3066 If no symbol and no msymbol, don't print anything symbolic.
3067
ae682b80
JK
3068 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
3069
314e6bf3
JG
3070Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
3071
3072 * printcmd.c (print_address_symbolic): Make it search the
3073 symtabs for variables as well as functions. Add `set print
3074 fast-symbolic-addr' and default it to fast (the old way).
3075 Print line numbers for data items as well as functions.
3076
3077 * symtab.c (find_addr_symbol): Return the symtab and the symbol
3078 address, if a symbol is found (take two more args pointing to
3079 where to store these results).
3080
3081 * symtab.h (find_addr_symbol): Add prototype.
3082
470dfa0c
JK
3083Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3084
3085 * objfiles.h: Fix comments to reflect the fact that the phrase
3086 "top of stack" always refers to where the pushing and popping takes
3087 place, regardless of whether it is at the highest or lowest address.
3088
a8c49897
PS
3089Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3090
3091 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
3092 compiler generated tag names.
3093 * mdebugread.c (parse_type): Handle cross references to qualified
3094 aggregate types.
3095 * valops.c (value_struct_elt): Improve error message if the
3096 address of a method is requested from an object instance.
3097 * valops.c (search_struct_method): Make name_matched non-static
3098 to get it initialized correctly.
3099 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
3100 exclude segment register which are not writable on newer SCO versions.
3101
4ad942bf
JK
3102Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3103
3104 * go32-xdep.c: Remove unused function uerror.
3105 (sigsetmask): Declare return type. Declare argument (to match the
3106 way it is called). Explicitly return 0.
3107
21578747
JG
3108Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
3109
3110 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
3111 partial_symbol): Shrink the storage sizes of symbols, by making
3112 enums into 1-byte bitfields when compiled __GNUC__, moving all the
3113 enums and small ints to the end of each struct to improve
3114 alignment, and switching the section number from int to unsigned
3115 short.
3116
e0ea0fbd
JG
3117Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
3118
3119 * symtab.c (find_addr_symbol): New routine that will find the nearest
3120 symbol associated with an address. It does so by exhaustive
3121 search of the symtabs, so it's slow but complete.
3122
011d4ed9
JG
3123Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
3124
3125 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
3126 to [0,0] rather than [0, end of first source file]. This avoids
3127 problems with other parts of GDB looking for linetables in the
3128 _globals_ symtab. Eliminate variables num_object_files and
3129 first_object_file_end.
3130
eb5b74ca
JG
3131Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
3132
3133 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
3134 (pop_frame): Restore PC2 and LR0 from dummy frames.
3135 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
3136 (setup_arbitrary_frame): Handle 3 args and set up real frames.
3137 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
3138 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
3139 (SETUP_ARBITRARY_FRAME): Define.
3140
4d69cf57
JK
3141Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3142
3143 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
3144
6a69975f
ILT
3145Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3146
3147 * remote-udi.c (udi_resume): Correct prototype.
3148
c598654a
JL
3149Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3150
3151 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
3152 hppa_frame_find_saved_regs.
3153 * hppa-tdep.c (dig_fp_from_stack): Delete function.
3154 (prologue_inst_adjust_sp): New function.
3155 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
3156 (skip_prologue): Completely rewrite to use unwind information.
3157 (hppa_frame_find_saved_regs): Likewise.
3158
6397809b
JK
3159Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3160
f3fe8934
JK
3161 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
3162 to convert a signal number with appropriate bounds checking.
3163
6397809b
JK
3164 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
3165
c369b6a3
JG
3166Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
3167
a31f4b90
JG
3168 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
3169 print a newline to end the display anyway.
3170
c6d8db40
JG
3171 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
3172 coprocessor status regs) when popping a frame. This fixes
3173 float exceptions that occur after calling inferior functions.
3174
c369b6a3
JG
3175 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
3176 Read and write the fsr (float status register) to/from the child
c6d8db40
JG
3177 process along with the float regs. Remove Peter Schauer's change
3178 of May 24 '93, which has higher overhead and doesn't solve the
3179 real problem (which was that FSR wasn't being set).
c369b6a3 3180
7b2bcbf5
JG
3181Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
3182
3183 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
3184 stack overflow check isn't right after the register stack
3185 adjustment instruction. Metaware R2.3u compiler moves other
3186 things in front of it. This fix isn't perfect but is what's
3187 running.
3188
6aaa61de
JK
3189Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3190
85b8aa88
JK
3191 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
3192
6aaa61de
JK
3193 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
3194 character filenames.
3195 * configure.in: Change accordingly.
3196
ef118278
TL
3197Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
3198
3199 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
3200 _filtered io routines from these two files.
3201
9d51b3c5
PS
3202Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3203
3204 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
3205 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
3206 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
3207 DEC c89.
3208 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
3209
11ebf939
JK
3210Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3211
17d059d4
JK
3212 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
3213 printing to gdb_stderr.
3214
3215 * remote-udi.c (udi_kill): Don't close the connection, just set
3216 inferior_pid to zero.
3217 (udi_mourn): Call remove_breakpoints.
3218
3219 * remote-udi.c: Remove obsolete need_artificial_traps comment.
3220
11ebf939
JK
3221 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
3222
fcbc95a7
JK
3223Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3224
d8a66e60
JK
3225 * symtab.c (lookup_symbol): Don't try adding .c to the name.
3226
e3a7e9d5
JK
3227 * remote-bug.c: At the start of each section, reset srec_frame
3228 back to 160.
3229
fcbc95a7
JK
3230 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
3231 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
3232 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
3233 code which looks for those two waitkinds. Use switch statement.
3234 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
3235 CHILD_SPECIAL_WAITSTATUS.
3236
3237 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
3238 * Move target_signal_from_host, target_signal_to_host, and
3239 store_waitstatus from inftarg.c to target.c. procfs needs them.
3240 * target.c: Include "wait.h" and <signal.h>.
3241 * target.h, infrun.c (proceed), proceed callers: Pass new code
3242 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
3243 enums being treated as unsigned and is cleaner.
3244 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
3245 TARGET_SIGNAL_0.
3246 * infcmd.c (signal_command), infrun.c (signals_info):
3247 Don't allow user to specify numeric equivalent of
3248 TARGET_SIGNAL_DEFAULT.
3249
7f85a716
SG
3250Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
3251
3252 * config/alpha/alpha-netware.mt: New target support for Alpha
3253 running Netware.
3254 * configure.in: Add alpha-*-netware* target.
3255
5efb3899
SS
3256Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
3257
3258 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
3259
67ac9759
JK
3260Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3261
3262 * target.h: Add enum target_waitkind, enum target_signal, and
3263 struct target_waitstatus. Change status argument to target_wait to
3264 be struct target_waitstatus * instead of int *.
3265 * target.h, infrun.c, all targets: Change type of signal arguments
3266 to resume(), proceed(), and target_resume() from int to enum
3267 target_signal.
3268 * All targets (*_wait, *_resume): Change accordingly.
3269 * infcmd.c (program_info, signal_command), throughout infrun.c,
3270 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
3271 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
3272 signal code stuff right with the new signals would be non-trivial).
3273 * inferior.h (stop_signal): Make it enum target_signal not int.
3274 * target.c, target.h (target_signal_to_string, target_signal_to_name,
3275 target_signal_from_name): New functions.
3276 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
3277 store_waitstatus): New functions.
3278 * procfs.c (procfs_notice_signals): Use them.
3279 * i960-tdep.c (i960_fault_to_signal): New function, to replace
3280 print_fault.
3281 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
3282
3283 * objfiles.c (build_objfile_section_table): Don't abort() if
3284 objfile->sections is already set.
3285
3286 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
3287 to match recent change to exec.c.
3288
3289 * Version 4.11.3.
3290
3291 * main.c (print_gdb_version): Change year to 1994.
3292
3293 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
3294 * Makefile.in (NONSRC): Add ChangeLog-93.
3295
b35885f2
JK
3296Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3297
4b404661
JK
3298 * stabsread.c (read_type): Allow defining several type numbers
3299 at once (e.g. "(1,2)=(3,4)="...).
3300
eaba7fae
JK
3301 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
3302
b35885f2
JK
3303 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
3304
ae5c71d6
PS
3305Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3306
3307 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
3308 to process_one_symbol.
3309 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
3310 avoid caching a bad endaddr in find_pc_partial_function.
3311
d568b76a
JK
3312Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3313
3314 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
3315
9ddb33a8
PS
3316Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3317
3318 * infrun.c (wait_for_inferior): Do not step or step resume past
3319 the end of a one-line function we just stepped into.
3320
67ac9759 3321For older changes see ChangeLog-93
bd5635a1
RP
3322\f
3323Local Variables:
3324mode: indented-text
3325left-margin: 8
3326fill-column: 74
3327version-control: never
3328End:
This page took 0.394888 seconds and 4 git commands to generate.