* ldlang.c (wild_doit): Don't bother initializing the vma and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5ff7b328
SC
1Fri May 6 13:24:04 1994 Steve Chamberlain (sac@cygnus.com)
2
3 * config/i386/go32.mh: Define CC.
4
b292fca8
SS
5Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
6
7 * gdbserver/Makefile.in: Remove irrelevant definitions and
8 comments inherited from the gdb Makefile.
9 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
10 (VERSION): Update to 4.12.3.
11 (gdbserver): Remove any existing executable first.
12 (distclean, realclean): Remove nm.h.
13 * gdbserver/low-lynx.c: Add Sparc Lynx support.
14 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
15 Don't use absolute pathname.
16
17Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
18
19 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
20 error.
21
ee5fca1f
JK
22Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
23
24 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
25 (print_it_normal): Add annotations for the inferior starting and
26 stopping, and for all the various messages related to how it
27 stopped.
28
29 * printcmd.c (do_one_display): Annotate.
30 * stack.c (print_frame_info): Annotate printing of stack frames.
31
731dca94
SG
32Wed May 4 18:15:51 1994 Stu Grossman (grossman@cygnus.com)
33
34 * remote.c (get_offsets): Handle case where stub doesn't support
35 qOffsets message.
36
36a2283d
PB
37Wed May 4 15:30:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
38
39 Add partial support for g++ code compiled with -fvtable-thunks.
40 * c-valprint.c (c_val_print): Add vtblprint support
41 when using thunks.
42 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
43 pointers (if using thunks) as well as array of structs (otherwise).
44 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
45 level, and make the latter non-static (so define_symbol can use it).
46 * stabsread.c (define_symbol): If the type being defined is a
47 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
48 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
49 * values.c (value_virtual_fn_field): Handle thunks.
50 * values.c (value_headof): Minor efficiency hack.
51 * values.c (value_headof): Incomplete thunk support. FIXME.
52
997c6a1d
JK
53Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
54
d24c0599
JK
55 * valprint.c (print_longest): Clarify comment about use_local.
56 * printcmd.c, defs.h (print_address_numeric), callers in
57 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
58 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
59 exec.c: New argument use_local.
60 * source.c (identify_source_line): Use filtered output. Use
61 print_address_numeric.
62
e16b9023
JK
63 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
64 language.c (type_error, range_error): Use filtered output.
65 * utils.c (error_begin): Update comment to tell people to use
66 filtered output.
67
997c6a1d
JK
68 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
69 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
70 bfd.h.
71
3f5e2fb5
JK
72Tue May 3 07:41:33 1994 Jim Kingdon (kingdon@cygnus.com)
73
74 * procfs.c (procfs_wait): Reinstate code which deduces the signal
75 from the fault, #ifndef FAULTED_USE_SIGINFO.
76 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
77
47ebe8fd
JK
78Fri Apr 29 18:15:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
79
80 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
81 Explicitly annotate each record.
82
0c4b30ea
SS
83Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
84
85 * xcoffexec.c: Reformat to standards and lint.
86 (language.h): Include.
87 (exec_close): Declare arg "quitting".
88 (file_command): Declare arg "from_tty".
89 (map_vmap): Cast xmalloc result to PTR.
90 * rs6000-nat.c: Reformat to standards and lint.
91 (exec_one_dummy_insn): Use char array for saved instruction.
92 (fixup_breakpoints): Declare.
93 (vmap_ldinfo): Be more informative in fatal error messages.
94 (xcoff_relocate_symtab): Define to return void.
95 * xcoffsolib.h: Reformat to standards, improve comments.
96 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
97
d8742f46
JK
98Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
99
a0cf4681
JK
100 * utils.c, defs.h (error_begin): New function.
101 (quit): Print annotation before printing the error message.
102 * main.c (return_to_top_level): Print annotation before doing the
103 longjmp.
104 * symtab.c (decode_line_1): Call error not warning and then
105 return_to_top_level. Call error_begin and printf_unfiltered
106 rather calling warning (before calls to return_to_top_level).
107 * core.c (memory_error): Use error_begin, printf_unfiltered,
108 print_address_numeric and return_to_top_level instead of error.
109 Cleans up a FIXME-32x64.
110 * language.c (type_error, range_error): Call error_begin
111 not just target_terminal_ours.
112
21ad7c45
JK
113 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
114 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
115 side of an assignment is non-portable.
116
d8742f46
JK
117 * utils.c (query): Change syntax of query annotations to be
118 consistent with other input annotations.
4dd876ac 119 (prompt_for_continue): Likewise for prompt-for-continue annotation.
d8742f46 120
11d26982
PS
121Thu Apr 28 01:20:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
122
123 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
124 for stabs symtabs.
125 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
126 that have a stack frame size of 32k or larger (from Paul Flinders).
127 Remove #if 0'd code.
128
aa175216
SS
129Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
130
131 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
132 for Lynx platforms that need it.
133 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
134
890634ed
JK
135Wed Apr 27 16:01:37 1994 Jim Kingdon (kingdon@cygnus.com)
136
137 * procfs.c (procfs_wait): Use the signal from the pr_info rather
138 than trying to deduce it from the fault.
139
c0c9b923
SC
140Wed Apr 27 12:22:46 1994 Steve Chamberlain (sac@cygnus.com)
141
142 * printcmd.c (print_address_symbolic): Initialize name to empty
143 string to avoid core dump if lookup fails.
144 * remote-e7000.c (printf_e7000debug): Error if target not open.
145
a49666fe
SG
146Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
147
148 * i386-nlmstub.c: Update to be more in line with PIN stub.
149 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
150 * (hex2mem): Init ptr.
151 * General cleanups to use ConsolePrintf, standard prologues, etc...
152
d0e2b767
SG
153Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
154
68ba2fa5
SG
155 * i386-nlmstub.c: More changes to be compatible with remote.c.
156
157 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
158 into (the far less frequently called) dbx_symfile_read.
159
d0e2b767
SG
160 * i386-nlmstub.c: An interim version till we get PIN for the x86.
161
a66e8382
SG
162Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
163
164 * dbxread.c (record_minimal_symbol): Record the section
165 associated with the symbol to make dynmaic relocation work.
166 * (dbx_symfile_read, process_one_symbol): Fixes to work around
167 Solaris brain-damage which don't apply to relocatable object
168 files.
169 * (stabsect_build_psymtabs): New routine to read stabs out of an
170 arbitrarily named section.
171 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
172 globals.
173 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
174 stabs out of the nlm.
175 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
176 brain-damage which don't apply to relocatable object files.
177 * remote.c (putpkt): Improve error reporting and error handling.
1624c38f
SG
178 * (get_offsets): Temporary kludge to force data & bss sections to
179 have the same relocation.
a66e8382
SG
180 * stabsread.c (define_symbol, scan_file_globals): Record section
181 info in sym.
182
fdb81aa1
JK
183Sat Apr 23 19:05:52 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
184
185 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
186 FIXME-32x64 comment.
187
0a2e98a9
JK
188Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
189
d084c93f
JK
190 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
191 to after call to target_wait. This means that flush_cached_frames
192 can call target_terminal_ours if it wants to.
193 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
194 comment about why the code is dubious.
195
0a2e98a9
JK
196 * stabsread.c (read_type): Call read_type, not nonexistent
197 os9k_read_type.
198
d5336fc5
KH
199Fri Apr 22 14:25:36 1994 Kung Hsu (kung@mexican.cygnus.com)
200
201 * remote-os9k.c (rombug_fetch_registers): set trace mode
202 correctly.
203 * remote-os9k.c (rombug_read_inferior_memory): cache data in
204 buffer.
205 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
206 extra info.
207 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
208 passed to process_one_symbol.
209 * stabsread.c (read_type): process os9k functio prototype.
210
f5a0908f
JK
211Fri Apr 22 11:27:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
212
213 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
214 dump core.
215
9e8db445
JK
216Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
217
da988c20
JK
218 * utils.c (prompt_for_continue): Annotate prompt.
219 (query): Annotate query.
220 * printcmd.c (print_frame_args): Change syntax of argument
221 annotation to make name and value part of a single group of
222 annotations, not two separate groups.
223 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
224 * valprint.c (val_print_array_elements): Change syntax of
225 annotation to be more concise.
226 * main.c, defs.h (command_line_input): New argument tells what
227 string to include in the annotations.
228 * symtab.c (decode_line_2), main.c (read_command_lines,
229 command_loop): Change callers.
230
9e8db445
JK
231 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
232 target null pointer.
233 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
234
235 * printcmd.c (output_command): Annotate things we print here too.
eb1e37a3 236 * printcmd.c (print_command_1): Add "value-history-value" annotation.
9e8db445
JK
237 * Move declaration of print_value_flags from defs.h to value.h.
238 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
239
0683ac4b
PS
240Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
241
242 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
243 BFD handles sun3 dynamic relocations now.
244 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
245 symbol table.
246
96f7edbd
JK
247Wed Apr 20 19:41:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
248
249 * printcmd.c (print_command_1): Annotate the top-level expressions
250 that we print.
251 (print_frame_args): Annotate each argument.
252 * printcmd.c, defs.h (print_value_flags): New function.
253 * cp-valprint.c (cp_print_value_fields): Annotate each field.
254 * valprint.c (val_print_array_elements): Annotate each array element.
255
59746d9f
PS
256Wed Apr 20 13:18:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
257
258 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
259 the register contains a pointer to the type, not the type itself.
260
6c803036
JK
261Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
262
263 * main.c (main): Accept --annotate=N option and make --fullname
264 the same as --annotate=1.
265 (command_line_input): Print annotatation before and after prompt.
266 * blockframe.c (flush_cached_frames): Print annotation.
267 * Rename frame_file_full_name to annotation_level and move it from
268 symtab.h to defs.h.
269 * source.c (identify_source_line): If annotation_level > 1,
270 change output format.
271 * breakpoint.c: Print annotation whenever a breakpoint changes.
272 * main.c: New variable server_command.
273 (command_line_input): Parse "server " and set server_command.
274 (dont_repeat): Check server_command.
275
d7a96d67
JK
276Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
277
963dbabe
JK
278 * xcoffread.c (xcoff_next_symbol_text): Don't return before
279 updating raw_symbol and symnum. Return a value in the case where
280 we complained.
281
d7a96d67
JK
282 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
283 takes care of it.
703e4251
JK
284 * parse.c: Don't define block_found; it is defined in symtab.c.
285 * parser-defs.h: Add comment regarding block_found.
d7a96d67 286
d782a995
JL
287Tue Apr 19 09:46:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
288
289 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
290 argument.
291
be78eb1a
PS
292Mon Apr 18 13:18:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
293
294 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
295 section vma. Do not read dynamic relocs for sun3 executables to
296 avoid BFD assertion message.
297
9c842e0c
JL
298Mon Apr 18 10:08:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
299
300 * nm-hppab.h (KERNEL_U_ADDR): Define.
301 (FIVE_ARG_PTRACE): Likewise.
302 (CANNOT_STORE_REGISTER): Likewise.
8bd8cef2 303 * nm-hppah.h (KERNEL_U_ADDR): Define.
9c842e0c
JL
304 (FIVE_ARG_PTRACE): Likewise.
305 (CANNOT_STORE_REGISTER): Likewise.
306 (NEED_TEXT_START_END): Likewise.
307
308 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
309 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
310 (FIVE_ARG_PTRACE): Likewise.
311 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
312 (FIVE_ARG_PTRACE): Likewise.
313
314 * hppa-tdep.c (read_unwind_info): Make static.
315 (restore_pc_queue): Indirect through the target vector to
316 reload the register state.
317
c5152d42
JL
318Sat Apr 16 22:20:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
319
320 * paread.c (compare_unwind_entries): Delete function. It's been
321 moved into hppa-tdep.c.
322 (read_unwind_info): Likewise.
323 (pa_symfile_read): No longer call read_unwind_info. The unwind
324 tables will be read in as they are needed.
325
326 * hppa-tdep.c (compare_unwind_entries): New function.
327 (read_unwind_info, internalize_unwinds): Likewise.
328 (find_unwind_entry): Read in unwind information on demand.
329
fad466eb
SS
330Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
331
332 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
333 to : in search path processing.
334 * defs.h (qsort): Rename argument in prototype.
335 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
336 some compilers.
337 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
338 (false): Eliminate usages.
339
63eef03a
SC
340Fri Apr 15 11:35:19 1994 Steve Chamberlain (sac@cygnus.com)
341
342 * h8500-tdep.c (initialize_h8500_tdep, large_command):
343 All references to value changed to value_ptrlage_command is now
344 called big_command.
345 All references to value changed to value_ptr.
346 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
347 * remote-hms.c (hms_wait): Timeout after five seconds.
348 * ser-go32.c (dosasync_read): Poll if timeout < 0.
349 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
350 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
351
e6b8a171
JL
352Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
353
354 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
355 #ifdefs.
6bc194d2 356 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
e6b8a171 357
999dd04b
JL
358Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
359
360 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
361 bp_watchpoint_scope breakpoints.
362 (struct breakpoint): Add val_chain and related_breakpoint fields
363 for use by watchpoints.
364
365 * breakpoint.c (within_scope): Delete. No longer used.
366 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
367 (target_{remove,insert}_watchpoint): Likewise.
368 (can_use_hardware_watchpoint): New function.
369 (remove_breakpoint): New function to remove a single breakpoint
370 or hardware watchpoint.
371 (insert_breakpoints): Handle insertion of hardware watchpoints.
372 Store a copy of the value chain derived from the watchpoint
373 expression.
374 (remove_breakpoints): Simplify by using remove_breakpoint.
375 (delete_breakpoint): Likewise.
376 (watchpoint_check): Delete the watchpoint and watchpoint scope
377 breakpoints when the watchpoint goes out of scope. Save & restore
378 the current frame after checking watchpoints.
379 (breakpoint_init_inferior): Likewise (restarting the program
380 makes all local watchpoints go out of scope).
381 (bpstat_stop_status): Handle hardware watchpoints much like normal
382 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
383 when the watchpoint goes out of scope. Remove and reinsert all
384 breakpoints before returning if we stopped when a hardware watchpoint
385 fired.
386 (watch_command): Use a hardware watchpoint when possible. If
387 watching a local expression, build a scope breakpoint too.
388 (map_breakpoint_numbers): Also call given function for any
389 related breakpoints.
390 (disable_breakpoint): Never disable a scope breakpoint.
391 (enable_breakpoint): Handle hardware breakpoints much like normal
392 breakpoints, but recompute the watchpoint_scope breakpoint's
393 frame and address (if we have an associated scope breakpoint).
394 (read_memory_nobpt): Handle hardware watchpoints like normal
395 watchpoints. When necessary handle watchpoint_scope breakpoints.
396 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
397 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
398 (disable_command): Likewise.
399
400 * blockframe.c (find_frame_addr_in_frame_chain): New function.
401 Extern prototype added to frame.h
402
403 * infrun.c (wait_for_inferior): Set current_frame and select
404 a frame before checking if we stopped due to a hardare watchpoint
405 firing. Handle stepping over hardware watchpoints.
406 (normal_stop): Remove unnecessary call to select_frame.
407
408 * value.h (value_release_to_mark): Declare.
409 * values.c (value_release_to_mark): New function.
410
411 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
412 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
413
414 * hppab-nat.c (hppa_set_watchpoint): New function.
415
416 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
417 (HAVE_STEPPABLE_WATCHPOINT): Define.
418 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
419 (target_{insert,delete}_watchpoint): Define.
420
9ec76784
JL
421 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
422 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
423 (target_{insert,remove}_watchpoint): Likewise.
424
70e375c3
SG
425Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
426
427 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
428 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
429 often have the same names as debug symbols for functions, and
430 confuse lookup_symbol().
431
2ddeed27
JK
432Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
433
434 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
435 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
436 REGISTER_RAW_SIZE (1).
437 Together these changes work around a bug in HP's compiler. Both
438 seem to be necessary.
439
699daa9c
JL
440Mon Apr 11 09:18:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
441
442 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
443 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
444 are type mst_solib_trampoline.
445
7b2b0758
JK
446Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
447
448 * config/m68k/es1800.mt: Change comments.
449
450Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
451
452 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
453
790a14a8
SG
454Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
455
456 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
457 for core files.
458
f3e4ac4a
JK
459Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
460
a110a1c3
JK
461 * values.c (unpack_long): Remove obsolete comment about using a
462 switch statement.
463
f3e4ac4a
JK
464 * symfile.c (symbol_file_command): Add comments about command syntax.
465
2fe3b329
PS
466Thu Apr 7 17:25:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
467 Jim Kingdon (kingdon@cygnus.com)
468
469 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
470 are in the .plt section.
471 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
472 find_solib_trampoline_target): New functions for handling
473 stepping into -g compiled shared libraries.
474 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
475 find_solib_trampoline_target): Add prototypes.
476 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
477 Define to handle stepping into -g compiled shared libraries.
478 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
479 stepping into -g compiled shared libraries.
480
481Thu Apr 7 17:22:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
482
483 * configure.in: Add mips-*-sysv4* support.
484 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
485 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
486 New files for MIPS SVR4 support.
487 * Makefile.in: Update for new mipsv4 files.
488 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
489 read_next_frame_reg to obtain the frame relative stack pointer.
490 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
491 obtain the frame relative stack pointer.
492 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
493 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
494 by entering them into the minimal symbol table.
495 * printcmd.c (print_scalar_formatted): Do not try to unpack to
496 a long for float formats.
497 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
498 get defined in <link.h>.
499 * solib.c (solib_add): Add shared library sections to the section
500 table of the target before adding the symbols.
501 * partial-stab.h: Relocate static and global functions.
502 * dbxread.c (read_dbx_symtab): Remove unused variable
503 end_of_text_address. Relocate text_addr when passing it
504 to end_psymtab.
505
506 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
507 library functions before the executable is run. Retrieve dynamic
508 symbols from stripped executables.
509 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
510 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
511 if no debugging symbols were found.
512 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
513 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
514 is defined.
515 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
516 OSF/1 has shared libraries.
517
192b64e7
ILT
518Thu Apr 7 15:11:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
519
520 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
521 to BFD handling of dynamic symbols.
522
45568424
JL
523Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
524
4f915914
JL
525 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
526 then gets its real address into FUN and its GOT/DP value into %r19.
527
528 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
529
7f43b9b7
JL
530 * hppa-tdep.c (frameless_function_invocation): If no unwind
531 descriptor was found, then assume this was not a frameless
532 function invocation.
533 (frame_saved_pc): If the saved PC is in a linker stub, then
534 return the return address which the linker stub will return to.
535
45568424
JL
536 * xm-hppab.h: Never define USG.
537 * xm-hppah.h: Always define USG.
538
b96bc1e4
PB
539Tue Apr 5 12:58:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
540
541 * values.c (unpack_long, value_from_longest),
542 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
543
d5412302
JK
544Fri Apr 1 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com)
545
546 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
547
38b90473
PS
548Fri Apr 1 00:44:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
549
550 For SVR4 targets, enable gdb to set breakpoints in shared
551 library functions before the executable is run.
552 * elfread.c (elf_symtab_read): Handle symbols for shared library
553 functions.
554 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
555 and moved to objfiles.c.
556 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
557 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
558 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
559 the new generic definition from tm-sysv4.h works for Solaris.
560
70f42bae
ILT
561Wed Mar 30 16:14:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
562
563 * elfread.c (elf_symtab_read): Change storage_needed,
564 number_of_symbols and i to long. Rename get_symtab_upper_bound to
565 bfd_get_symtab_upper_bound. Check for errors from
566 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
567 * nlmread.c (nlm_symtab_read): Same changes.
568
aece310f
JK
569Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
570
34d265dc
JK
571 * xcoffread.c (xcoff_next_symbol_text): New function.
572 (read_xcoff_symtab): Set next_symbol_text_func to it.
573 Move raw_symbol outside of read_xcoff_symtab.
574
aece310f
JK
575 * remote.c (getpkt): Remove unused "out" label.
576
bd2f0c85
JL
577Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
578
579 * breakpoint.c (print_it_normal): Allow GDB to notify the user
580 about more than one watchpoint being triggered.
581
c2216bfd
JK
582Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
583
584 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
585
db2302cb
PS
586Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
587
9e837b37
PS
588 * blockframe.c (find_pc_partial_function): mst_file_text
589 symbols do not live in the shared library transfer table.
db2302cb
PS
590 * ch-exp.y (decode_integer_value, match_character_literal,
591 match_bitstring_literal): Guard tolower calls with isupper,
592 tolower on old BSD systems blindly subtracts a constant.
593 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
594 well when determining the producer of the object file.
595 * mdebugread.c (has_opaque_xref): New function to check for
596 cross reference to an opaque aggregate.
597 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
598 enter typedefs to opaque aggregates into the symbol tables.
599 * mdebugread.c (parse_external): Remove skip_procedures argument,
600 it has always been 1. Remove code that handled stProc symbols,
601 it was never executed and was wrong, as the index of a
602 stProc symbol points to the local symbol table and not to the
603 auxiliary symbol info. Update caller.
604 * mdebugread.c (parse_partial_symbols): Do not enter external
605 stProc symbols into the partial symbol table, they are already
606 entered into the minimal symbol table.
607 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
608 Remove all conditionals and definitions for ptx.
609 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
610 Fix addresses of floating point registers in REGISTER_U_ADDR.
611 STORE_STRUCT_RETURN now handles cc and gcc conventions.
612 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
613 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
614 signal trampoline code work.
615 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
616 Remove all conditionals and definitions for ptx.
617 Remove KDB definitions.
618 * symm-nat.c (store_inferior_registers): Fetch registers before
619 storing them to obtain valid floating point control registers.
620 Store fpu registers.
621 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
622 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
623 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
624 Fix typos.
625 * symm-nat.c (child_resume): Update type of `signal' parameter.
626 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
627
19cd0c1f
JL
628Tue Mar 29 23:01:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
629
630 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
631 calling import stubs for functions in shared libraries.
632
73cd3b49
PB
633Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
634
58cda66e
PB
635 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
636
73cd3b49
PB
637 * ch-lang.c (chill_is_varying_struct): Magic string is
638 was "<var_length>" is now "__var_length" (more portable).
639
0c993550
JK
640Tue Mar 29 19:41:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
641
642 * remote.c (getpkt): If we get a timeout, actually retry rather
643 than just giving up the first time it happens.
644 * remote.c: Document sequence numbers.
645 (remote_store_registers): Change syntax of 'P' request so that it
646 never looks like a sequence number.
647
d80ff70c
KH
648Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
649
0c993550 650 * os9kread.c (record_minimal_symbol): add section_offset to
d80ff70c
KH
651 relocate minimal symbol table.
652 * os9kread.c (read_minimal_symbols): ditto.
653 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
654 file names.
655 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
656 return. Also if file addr is 0 leave it 0, not to relocate.
657 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
658 'set remotexoff' and 'set remotelog' commands.
659
4aa6fe10
JK
660Tue Mar 29 12:38:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
661
662 * remote.c (remote_store_registers): Add 'P' request to set an
663 individual register.
664 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
665 a target address.
666
72e35288
JK
667Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
668
649694ea
JK
669 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
670 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
671 combining all 'p' and 'r' pairs into a LOC_REGPARM.
672
72e35288
JK
673 * command.c (do_setshow_command, case var_string): Never add a
674 space to the end of the string.
675 * NEWS: Document this change.
676 * .gdbinit: Add a space to the "set prompt" command.
677
59144a81
JK
678Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
679
493424b1
JK
680 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
681 changes to make it compile (it doesn't link yet).
682
683 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
684 (set_demangling_style, set_demangling_command): Use savestring not
685 strdup. We were not dealing properly with a NULL return from
686 strdup, and were not declaring strdup (the system header may or
687 may not have it).
688
59144a81
JK
689 * valprint.c (val_print): Remove inaccurate comment about what
690 types can be stub types.
691
692 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
693 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
694 Supply alternate version if ATTACH_DETACH is not defined.
695 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
696 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
697 * configure.in: Recognize i[34]86-sequent-sysv4* host.
698
c8f75fe8
JL
699Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
700
de482138
JL
701 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
702 of a function.
703 (skip_trampoline_code): Rewrite and add support for argument
704 relocation stubs stubs, import/export stubs, calls through
705 "_sr4export" and cascaded trampolines.
706
fdafbfad
JL
707 * hppa-tdep.c (skip_prologue): Return "pc" not zero
708 if no unwind descriptor is found.
709
eb1167c6
JL
710 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
711 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
712 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
713 differently. All registers are four bytes.
714 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
715 the same size.
716 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
717
718 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
719 registers as both single and double values (fetching 2nd 32bit half
720 as necessary). Annotate each register printed with its precision.
721
c8f75fe8
JL
722 * paread.c (read_unwind_info): Fix off-by-one error.
723
0c1af47f
JK
724Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
725
726 * main.c (complete_command): Deal with it if arg is NULL.
727
5801f348
JK
728Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
729
4df6dcd1
JK
730 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
731 regarding using the PC--using the PC is necessary and all the
732 FIXME comments in the world won't make it go away.
733
2f3b7d8e
JK
734 * valops.c (value_at, value_at_lazy): Give error if we dereference
735 a pointer to void.
736 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
737 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
738
553e1862
JK
739 * stabsread.c (patch_block_stabs): Add comment about what happens
740 if the definition is in another compilation unit from the stab.
acdec954 741
5801f348
JK
742 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
743
09973223
JK
744Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
745
746 * main.c (complete_command): New command, from Rick Sladkey
747 <jrs@world.std.com>.
748 (symbol_completion_function): Don't declare rl_point and
749 rl_line_buffer; they are now declared in readline.h.
750 (show_commands): Don't declare history_base; it is declared in
751 history.h.
752 * command.c (lookup_cmd): Don't delete trailing whitespace.
acdec954 753 Reverts change of 14 May 1989.
09973223
JK
754
755Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
756
757 * minsyms.c (prim_record_minimal_symbol): Move section deduction
758 code from prim_record_minimal_symbol_and_info() to here. Callers
759 of the latter can legitimately supply a section number of -1.
760
e552788b
JK
761Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
762
763 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
764 member functions have an element in args for a (nonexistent) this
765 pointer.
766
84ad95c1
JL
767Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
768
0a64709e
JL
769 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
770
771 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
772 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
773
84ad95c1
JL
774 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
775 for the structure's type. All callers changed.
776
777 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
778 for each structure argument rather than assuming it's either
779 true or false for all structure arguments.
780
781 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
782 on the length structure passed, not the compiler used.
783
784 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
785 argument for the structure's type.
786
29f2ceed
JK
787Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
788
51f83933
JK
789 * values.c (set_internalvar): Don't set var->value until we are
790 sure there won't be an error().
791
29f2ceed
JK
792 * remote.c (get_offsets): Reinstate comment which was in
793 remote_wait about use of SECT_OFF_TEXT and so on.
794
795Mon Mar 21 13:11:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
796
797 * symmisc.c (maintenance_check_symtabs): New function to check
798 consistency of psymtabs and symtabs.
799 * symtab.h (maintenance_check_symtabs): Add prototype.
800 * maint.c: Add new `maint check-symtabs' command.
801 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
802 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
803 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
804 comment.
805 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
806 to write_memory to avoid warnings from gcc.
807 * config/i386/xm-symmetry.h: Add missing #endif.
808 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
809 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
810 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
811
4fd5eed4
JL
812Mon Mar 21 11:50:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
813
814 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
815 (hppa_push_arguments): Likewise.
816
72bba93b
SG
817Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
818
819 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
820 improve remote debugging efficiency. Also fixed problems with
821 doing function calls for programs with no entry points.
822 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
823 entry_point_address.
824 * inferior.h (PC_IN_CALL_DUMMY): ditto.
825 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
826 parse_lines): Pass section_offsets info to these routines so that
827 we can relocate symbol table entries upon readin.
828 * (psymtab_to_symtab_1): Set symtab->primary to tell
829 objfile_relocate to do relocations for our symbols.
830 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
831 (which hang off of the symbol table).
832 * Use prim_record_minimal_symbols_and_info instead of
833 prim_record_minimal_symbols to supply section info to make minimal
834 symbol relocations work.
835 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
836 -1, try to deduce it from ms_type.
837 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
838 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
839 add code to relocate objfile->sections data structure.
840 * remote.c (get_offsets): Use new protocol message to acquire
841 section offsets from the target.
842 * (remote_wait): Get rid of relocation stuff. That's all handled
843 by objfile_relocate now.
844 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
845 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
846 VM_MIN_ADDRESS.
847 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
848
d148e8c4
DE
849Sun Mar 20 15:21:57 1994 Doug Evans (dje@cygnus.com)
850
851 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
852 instead of 4.
d3688932 853
d148e8c4 854start-sanitize-v9
d3688932
DE
855 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
856 can no longer set this at run time.
7f695c07
DE
857 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
858 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
859 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
860 sparc-tdep.c compiles).
861 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
d3688932
DE
862end-sanitize-v9
863
94d4b713
JK
864Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
865
d0bff94e
JK
866 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
867 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
868 * configure.in: Recognize m68*-cisco*-*.
869
94d4b713
JK
870 * Makefile.in (TAGS): Use variables directly, rather than using
871 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
872 and means that these filenames no longer need be unique across all
873 the config/* directories.
874 * configure.in: Put the config/*/ into TM_FILE, etc.
875
876 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
877 and trapv exceptions.
878
879 * target.h (struct section_table), objfiles.h (struct obj_section):
880 Change name of field sec_ptr to the_bfd_section. More mnemonic
881 and avoids the (sort of, for the ptx compiler) name clash with
882 the name of the typedef.
883 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
884 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
885
886 * utils.c: Include readline.h.
887 * Makefile.in (utils.o): Add dependency.
888
889 * remote.c (getpkt): Add support for run-length encoding.
890
8eec3310
SC
891Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
892
893 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
894
ee6d646a
JK
895Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
896
20657f71
JK
897 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
898 prim_record_minimal_symbol.
899 Callers: Pass it.
900
ee6d646a
JK
901 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
902 computing their offset from the start of the old buffer and adding
903 to the new buffer, rather than by assuming we can add the
904 difference between the old buffer and the new buffer (it might not
905 fit in an int). Merge in cosmetic differences from emacs regex.c
906 version of this macro.
907
478d3811
JK
908Wed Mar 16 15:28:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
909
910 * Makefile.in (install-only): Fix use of program_transform_name.
911
c42b8af8
JK
912Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
913
f8715549 914 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
478d3811 915 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
f8715549
JK
916 so I'm nuking the command.
917 * symtab.c (find_addr_symbol): Comment out, no longer used.
918
a645ccc9
JK
919 * main.c (main): Don't init_source_path for the -cd argument. Now
920 that source_path doesn't contain the current_directory from when
921 GDB started up, init_source_path is no longer useful (and is
922 harmful because it clobbers a source_path set in $HOME/.gdbinit).
923
c42b8af8
JK
924 * TODO: Remove item about line numbers being off. It is useless
925 and confusing without a reproducible test case (it mentions
926 proceed(), but I was able to step through proceed without trouble).
927
ae6d035d
PS
928Tue Mar 15 13:39:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
929
930 For Sunos 4.x targets, enable gdb to set breakpoints in shared
931 library functions before the executable is run. Retrieve dynamic
932 symbols from stripped executables.
933 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
934 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
935 symtab.c (list_symbols): Handle mst_solib_trampoline.
936 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
937 for all targets, remove IBM6000_TARGET dependencies.
938 * dbxread.c (read_dbx_dynamic_symtab): New function.
939 * dbxread.c (dbx_symfile_read): Use it.
940 * dbxread.c (SET_NAMESTRING): Set namestring to
941 "<bad string table index>" instead of "foo" if the string index is
942 corrupt.
943 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
944 of mst_unknown.
945 * symtab.c (list_symbols): Take from_tty as parameter and pass it
946 to break_command. Handle mst_file_* minimal symbol types.
947 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
948
b427690a
KH
949Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
950
951 * c-exp.y(yylex): fix potential memory overflow.
952
f93b941b
JK
953Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
954
955 * environ.c (set_in_environ): Eliminate special handling of PATH and
956 GNUTARGET.
957 * putenv.c: Removed, conflicts with system declaration of
958 putenv on RS/6000 running AIX 3.2.5, and above change makes it
959 unnecessary.
960 * Makefile.in: Change accordingly.
961 * procfs.c (procfs_create_inferior): Change comment accordingly.
962
17221e41
JK
963Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
964
965 * rs6000-tdep.c: Change value to value_ptr.
966
8eb79598
JK
967Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
968
c4ad6b09
JK
969 * i386m3-nat.c: Include floatformat.h.
970 (get_i387_state): Use memset not bzero.
971
5fa83062
JK
972 * Version 4.12.3.
973
974 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
975 ieee-float.h to floatformat.h.
976
79f3d586
JK
977 * valprint.c (val_print_string): Ignore error if the error
978 happened after a terminating '\0'.
979
980 * c-valprint.c (c_val_print): Never add 1 to return value from
981 val_print_string; just return what it returns.
982
8eb79598
JK
983 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
984 looping through all of the enums.
985 * infrun.c (signals_info): Use it.
986
c4de6b30
JK
987Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
988
8e4c7b3e
JK
989 * main.c (main): When printing warning about bad baud rate, don't
990 use warning(); it relies on current_target which isn't set up yet.
991
c4de6b30 992 * breakpoint.c (_initialize_breakpoint): Update docstring for
d1bdad57
JK
993 tbreak to match what the code actually does. Don't mention tbreak
994 in docstrings for "enable once" or "enable breakpoints once".
c4de6b30 995
d78d4d16
JK
996Thu Mar 10 08:52:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
997
998 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
999 while (0). That defeats the whole purpose of using do . . . while (0).
1000 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
1001 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
1002 using a ?: expression as an lvalue is not portable.
1003
1004 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
1005 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
1006 'p' and 'r' symbol descriptors into a single symbol to look for a
1007 LOC_REF_ARG.
1008 * README, config/sparc/tm-sparc.h: Update comments.
1009
10373914
PS
1010Wed Mar 9 21:43:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1011
1012 * mdebugread.c (parse_type): Do not complain for types with
1013 an `indexNil' aux index, these are simply undefined types.
1014 Remove indexNil check from caller of parse_type.
1015 * mdebugread.c (parse_partial_symbols): Do not enter
1016 stGlobal, scCommon symbols into the minimal symbol table, their
1017 value is the size of the common, not its address.
1018 Handle scInit, scFini, scPData and scXData sections.
1019 Use minimal symbol type mst_file_* for stLabel symbols, instead of
1020 mst_*.
1021 Enter stProc symbols into the global_psymbols list once, not into
1022 the static_psymbols_list.
1023 Get rid of dummy psymtab if it is empty, to allow proper detection
1024 of stripped executables.
1025 * mdebugread.c (cross_ref): Allow cross references to Fortran
1026 common blocks.
1027
fddb9bda
JK
1028Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1029
1030 * stabsread.c (common_block_end, fix_common_block): Stash the
1031 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
1032 as to not assume that a pointer fits in an enum.
1033
d9389f37
KH
1034Wed Mar 9 18:56:36 1994 Kung Hsu (kung@mexican.cygnus.com)
1035
1036 * os9kread.c (fill_sym): check compiler verion number for pre-
1037 UltraC compiler.
1038 * os9kread.c (os9k_process_one_symbol): address of symbol is
1039 relative to section not module.
1040 * stabsread.c (define_symbol): add symbol type 's' as local
1041 symbol for os9k.
1042 * remote-os9k.c: add command 'set monitor_log' to turn on or off
1043 monitor logging.
1044 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
1045 * remote-os9k.c: fix bug in 'set remotebaud' function.
1046 * remote-os9k.c (rombug_link): minimize checking so to improve
1047 speed.
fddb9bda 1048 * symfile.c (symbol_file_command): check if failed to link, also make
d9389f37
KH
1049 the command be able to accept more than one filenames.
1050 * target.c (target_link): check if failed to link with rombug.
1051 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
1052
cdc7029d
JK
1053Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1054
1055 * remote-es.c (es1800_child_ops): Don't declare it static.
1056
352c21dd
JK
1057Tue Mar 8 11:42:39 1994 Jim Kingdon (kingdon@cygnus.com)
1058
1059 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
1060
ce2f21b2
JK
1061Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1062
9d2b8d50
JK
1063 * dbxread.c: New variable lowest_text_address.
1064 (record_minimal_symbol, read_dbx_symtab): Set it.
1065 (read_dbx_symtab): Use lowest_text_address + text_size instead of
1066 end_of_text_address.
1067 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
1068
1069 * dbxread.c (end_psymtab): Remove old and commented out
1070 capping_global and capping_static. Fix comments regarding
1071 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
1072
79448221
JK
1073 * parser-defs.h: Add "extern" to start of variable declarations so
1074 we don't end up with commons.
1075 * parse.c: Define these variables.
1076
ce2f21b2
JK
1077 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
1078 as one.
1079
7810d333
JK
1080Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1081
1082 * alpha-tdep.c: Change value to value_ptr.
1083
a6e21fba
PS
1084Sun Mar 6 17:36:53 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1085
1086 * solib.c (elf_locate_base): New function to locate the address
1087 of the dynamic linker's runtime structure in the dynamic info section.
1088 * solib.c (locate_base): Use it instead of iterating over the list
1089 of mapped address segments.
1090 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
1091 necessary.
1092
70e43abe
JL
1093Fri Mar 4 09:50:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1094
1095 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
1096 (pc_in_interrupt_handler): New function. Also add PARAM decl.
1097 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
1098 signal trampoline and interrupt routines.
1099 (frame_saved_pc): Handle signal trampolines and interrupt routines.
1100 (frame_chain, frame_chain_valid): Likewise.
1101 (hppa_frame_find_saved_regs): Likewise. Also deal with special
1102 saved regs convention for SP.
1103
1104 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
1105 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
1106 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
1107
1108 * tm-hppah.h (IN_SIGTRAMP): Define.
1109
833a2895
JK
1110Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1111
93dc3414
JK
1112 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
1113 alphabetic character as the start of a name.
1114
b855dfe7
JK
1115 * sparclite/Makefile.in (all install): Build and install aload.
1116
d9a5e91f
JK
1117 * configure.in: Accept i[34]86-*-*sysv32 because that is what
1118 config.guess and config.sub produce.
1119
833a2895
JK
1120 * mips-tdep.c: Change value to value_ptr.
1121
82a2edfb
JK
1122Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1123
1124 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
1125 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
1126 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
1127 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
1128 value with value_ptr. This is for the ptx compiler.
1129 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
1130 "sec_ptr" typedef.
1131 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
1132 #if 0 i386_float_info.
1133 * symm-tdep.c (round): Remove. Also remove sgttyb.
1134 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
1135 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
1136 * i386-tdep.c (i386_frame_find_saved_regs): Put in
1137 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
1138 someday.
1139 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
1140 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
1141 symm-nat.c. Define CHILD_WAIT and declare child_wait().
1142 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
1143 tm-i386v.h is apparently OK.
1144 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
1145 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
1146 USE_O_NOCTTY.
1147
c485c7a9
PS
1148Wed Mar 2 11:31:08 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1149
1150 * osfsolib.c (xfer_link_map_member): Update to use new
1151 target_read_string interface.
1152
d1c0c6cf
JK
1153Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1154
1155 * infrun.c (wait_for_inferior): In checking
1156 remove_breakpoints_on_following_step, check
1157 through_sigtramp_breakpoint as well as step_resume_breakpoint.
1158
25200748
JK
1159Tue Mar 1 16:22:56 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1160
1161 * os9kread.c (os9k_process_one_symbol): Rename
1162 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
1163 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
1164 (CORE_ADDR)0, from target_link, since that is what it uses.
1165 Process name at end, not during parsing (like we did before Kung's
1166 change), so that -readnow and -mapped can appear anywhere.
1167 Make text_relocation a local variable.
1168 * config/i386/i386os9k.mt: Fix comment.
1169 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
1170 * os9kread.c: Put "comments" after #endif inside /* */.
1171 * stabsread.h: Add os9k_stabs variable.
1172 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
1173 Set it.
1174 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
1175 descriptor in global_symbols not local_symbols.
1176 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
1177 descriptors.
1178 (read_type): If os9k_stabs, accept function parameters after 'f'
1179 type descriptor.
1180 (read_array_type): If os9k_stabs, don't expect index type and
1181 expect lower and upper to be separated by ',' not ';'.
1182 (read_enum_type): If os9k_stabs, read a number before the first
1183 enumeration constant.
1184 (os9k_init_type_vector): New function.
1185 (dbx_lookup_type): Call it when starting new type vector.
1186 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
1187 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
1188 * os9kstab.c: Removed.
1189 * Makefile.in: Update accordingly.
1190 * objfiles.c (objfile_relocate_data): Removed.
1191 * remote-os9k.c (rombug_wait): Call objfile_relocate
1192 not objfile_relocate_data.
1193 * objfiles.h, objfiles.c: Remove find_pc_objfile.
1194 * remote-os9k.c (rombug_wait): Call find_pc_section not
1195 find_pc_objfile.
1196 * main.c (quit_command): Check inferior_pid; revert Kung change.
1197 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
1198
1340861c
KH
1199Tue Mar 1 14:56:14 1994 Kung Hsu (kung@mexican.cygnus.com)
1200
1201 * os9kread.c: New file to read os9000 style symbo table.
1202 * os9kstab.c: new file to read os9000 style stabs.
1203 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
1204 * objfiles.c (find_pc_objfile): new function to search objfile
1205 from pc.
1206 * objfiles.c (objfile_relocate_data): new function to relocate
1207 data symbols in symbol table.
1208 * objfiles.h: Add two aux fields in struct objfile to handle
1209 multiple symbol table files situation like in os9000.
1210 * symfile.c: Change so 'symbol-file' command can handle multiple
1211 files. Also call target_link() to get relocation infos.
1212 * target.c (target_link): new function to get relocation info when
1213 a symbol file is requested to load.
1214 * main.c (quit_command): take out 'inferior_pid != 0' condition,
1215 because in cross mode there's no inferior pid, bit they need to
1216 be detached.
1217 Makefile.in: add os9kread.c os9kstab.c and .o's.
1218 configure.in: add i386os9k target.
1219 config/i386/i386os9k.mt: new add.
1220 config/i386/tm-i386os9k.h: new add.
1221
137b6849
PS
1222Tue Mar 1 13:16:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1223
1224 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
1225 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
1226
4ad0021e
JK
1227Tue Mar 1 11:54:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1228
1229 * target.c, target.h (target_read_string): Provide error detection to
1230 caller. Put string in malloc'd space, so caller need not impose
1231 arbitrary limits.
1232 * solib.c (find_solib): Update to use new interface.
1233 * irix5-nat.c (find_solib): Read o_path from inferior
1234 (clear_solib): Free storage for o_path.
1235 * valprint.c (val_print_string): Add comments.
1236
e3d6ec4a
PS
1237Mon Feb 28 23:54:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1238
1239 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
1240 advance `p'.
1241
c8ff77be
JK
1242Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1243
30974778
JK
1244 * value.h (struct value): Add modifiable field.
1245 * values.c (allocate_value, record_latest_value, value_copy): Set it.
1246 (record_latest_value): Don't mess with VALUE_LVAL of value.
1247 * valops.c (value_assign): Check it. Reword existing error
1248 message on not_lval.
1249
b5aff268
JK
1250 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
1251 (STEP_SKIPS_DELAY): Added.
1252 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
1253 the delay slot.
1254
c8ff77be
JK
1255 * valprint.c (val_print_string): If errcode is set, always print
1256 an error, regardless of force_ellipsis. In the non-EIO case,
1257 just print the error message rather than calling error(). Don't
1258 access *(bufptr-1) if bufptr points to the start of the buffer.
1259 When looking for '\0', don't increment bufptr and addr if bufptr
1260 started out already at limit. If an error happens on fetching the
1261 first character, don't print the string.
1262
2882219f
JK
1263Sun Feb 27 21:05:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1264
1265 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
1266 obsolete.
1267
1268 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
1269 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
1270 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
1271 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
1272 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
1273 * findvar.c: Update comment regarding ieee-float.h.
1274
28ee4b42
PS
1275Sun Feb 27 21:39:48 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1276
1277 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
1278 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
1279 Define to make backtracing through the various sigtramp handlers
1280 work.
1281 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
1282 the saved pc from ucontext on the stack for SVR4 signal handling.
1283
25354cef
JK
1284Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1285
c20c1bdf
JK
1286 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
1287 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
1288 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
1289 just use the global variable itself. When printing baud rate,
1290 don't print a baud rate if baud_rate is -1.
1291
25354cef
JK
1292 * coffread.c (read_coff_symtab): Pass mst_file_* to
1293 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
1294 symbols in the minimal symbols regardless of SDB_TYPE.
1295
7126c1d0
JK
1296Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1297
bcc37718
JK
1298 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
1299 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
1300 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
1301 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
1302 ignored bs->stop for a bp_step_resume breakpoint.
1303 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
1304 which performs one (the check_sigtramp2 one) of the functions
1305 which had been handled by the step_resume_breakpoint. For each
1306 use of the step_resume_breakpoint, make it still use the
1307 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
1308 operate on both.
1309 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
1310 When setting the frame address of the step resume breakpoint, set
1311 it to the address for frame *before* the call instruction is
1312 executed, not after.
1313
3fed1c4a
JK
1314 * mips-tdep.c (mips_print_register): Print integers using
1315 print_scalar_formatted rather than duplicating all the
1316 CC_HAS_LONG_LONG and so on.
1317 (mips_push_dummy_frame): Use read_register_gen rather than using
1318 read_register and then putting it back in target format with
1319 store_unsigned_integer. If registers are more than 4 bytes, give
1320 an error rather than have some registers overwrite other
1321 registers.
1322 #if 0 unused include of opcode/mips.h.
1323
1324 * symfile.h: Don't declare arguments for coff_getfilename.
1325
7126c1d0
JK
1326 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
1327
6bfd168c
JL
1328Thu Feb 24 08:06:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1329
1330 * configure.in (hppa*-*-osf*): New configuration.
1331 * config/pa/hppaosf.mt: New target makefile fragment.
1332 * config/pa/tm-hppao.h: New target include file.
1333
5c07a10b
PS
1334Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1335
1336 * exec.c (print_section_info): Print entry point for exec_bfd only.
1337 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
8ce2cfc0
PS
1338 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
1339 causes problems if <sys/types.h> has no multiple inclusion protection.
5c07a10b 1340
fce7695f
JL
1341Wed Feb 23 16:28:55 1994 Jeffrey A. Law (law@cygnus.com)
1342
1343 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
1344 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
1345 (CALL_DUMMY_LENGTH): Changed accordingly.
1346
318ee78a
SG
1347Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
1348
75a006d9
SG
1349 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
1350 numbers of register windows.
1351
318ee78a
SG
1352 * sparclite/hello.c: Add factorial function for testing.
1353 * salib.c: Use macros instead of constants for I/O addresses to
1354 make 931 support easier.
1355 * sparclite.h: Change constraint for LOC to "rJ" to force use of
1356 register in sta/lda instructions.
1357
56dd4126
JK
1358Wed Feb 23 10:39:18 1994 Jim Kingdon (kingdon@rtl.cygnus.com)
1359
1360 * dbxread.c (process_one_symbol): Set
1361 block_address_function_relative for COFF like we do for ELF and SOM.
1362
847d9775
PS
1363Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1364
1365 * mdebugread.c (new_psymtab): Pass in section_offsets and set
1366 them in the pst.
1367 * mdebugread.c (handle_psymbol_enumerators): New function to enter
1368 the enumerators of an ecoff enum into the partial symbol table.
1369 * mdebugread.c (parse_partial_symbols): Call it.
1370 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
1371 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
1372 offsets. Cast psymtab->read_symtab to PTR before passing it to
1373 gdb_print_address.
1374 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
1375 set up the global offset table pointer in pic compiled code.
1376 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
1377 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
1378 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
1379 ensures that floats are promoted to doubles before they are pushed
1380 on the stack.
1381
9f35e15a
SG
1382Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
1383
1384 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
1385 Fixup cache_on and flush_i_cache so that they work for both the
1386 930 and 932 processors. Rewrite most low level funcs (uart
1387 access & cache stuff) to use new ASI access macros in sparclite.h.
1388 Also make it easy to access second serial port.
1389
56173dc5
ILT
1390Fri Feb 18 22:17:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1391
1392 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
1393 <sys/stat.h>; not needed.
1394
c84bab2d
JK
1395Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1396
1397 * stack.c (print_frame_info): In "pathological" case, don't
1398 distrust the line number information.
1399
748d77d7
KH
1400Fri Feb 18 16:51:14 1994 Kung Hsu (kung@mexican.cygnus.com)
1401
1402 * mips-tdep.c (mips_print_register): handle 64 bits register.
1403 * valprint.c (print_longest): fix a bug in printing 64 bits value.
1404
889f1f03
JK
1405Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1406
1eb89b9e
JK
1407 * Version 4.12.2.
1408
ef1a0540
JK
1409 * Makefile.in (install): Do the sed for program_transform_name
1410 ourselves instead of worrying about INSTALL_XFORM. This enables
1411 users to override INSTALL_PROGRAM in the standard way.
1412
1413 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
1414 depend on Makefile.in.
1415
fb0f4231
JK
1416 * defs.h, valprint.c: Make longest_to_int a function not a macro.
1417 Only test against INT_MIN if a LONGEST is bigger than an int.
1418
889f1f03
JK
1419 * README: Change GhostScript to Ghostscript.
1420
662f3b3f
JK
1421Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
1422
d5cb2f7d
JK
1423 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
1424 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
1425 character file names.
1426 * Makefile.in (ALLPARAM): Add these files.
1427
662f3b3f
JK
1428 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
1429 character file names.
d5cb2f7d 1430 * Makefile.in: Add Kung's new mips64 files.
662f3b3f 1431
70126bf9
KH
1432Thu Feb 17 17:25:47 1994 Kung Hsu (kung@mexican.cygnus.com)
1433
1434 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
1435 mips64el-*-ecoff and mips64-big-*.
1436 * defs.h: get rid of FORCE_LONG_LONG.
1437 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
1438 parsing. Change register size to be MIPS_REGSIZE.
1439
c4a081e1
DM
1440Thu Feb 17 09:30:22 1994 David J. Mackenzie (djm@thepub.cygnus.com)
1441
1442 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
1443 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
1444 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
1445
3b5442f9
SC
1446Fri Feb 11 21:47:24 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
1447
1448 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
1449 (remove_commands, add_commands): Add/remove hms-drain when target
1450 is connected.
1451
d87d7b10
SG
1452Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
1453
1454 * configure.in: Add Lynx/rs6000 support.
1455 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
1456 messages. Add rs6000 support. Don't try to modify unwritable
1457 registers.
1458 * rs6000-nat.c: Move lots of native dependent stuff (like core
1459 file support) from rs6000-tdep.c & xcoffexec.c to here.
1460 * rs6000-tdep.c: Move native dependent stuff to nat.c.
1461 * xcoffexec.c: Move native dependent stuff to nat.c.
1462 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
1463 from tm file.
1464 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
1465 really native.
1466 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
1467 New files to support Lynx/rs6000.
1468
ba47c66a
PS
1469Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1470
1471 * README: Remove note about gcc warnings on alpha, these should be
1472 gone now.
1473 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
1474 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
1475 remote-utils.c, stabsread.c: Include <string.h>.
1476 * regex.c: Include "defs.h", change re_comp argument to const char *.
1477 * infptrace.c (fetch_register, store_inferior_registers): Change
1478 regaddr to type CORE_ADDR.
1479 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
1480 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
1481
1482Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1483
1484 * symtab.h: Always define BYTE_BITFIELD to nothing.
1485
ea5dad7f
JK
1486Mon Feb 7 08:44:17 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1487
1488 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
1489 * configure.in: Remove comment about m68k-em.mt.
1490 * Makefile.in: Remove references.
1491
6ddba992
JK
1492Mon Feb 7 08:22:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1493
1494 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
1495 BFD_HOST_64_TYPE.
1496
01cd70b9
JK
1497Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1498
1dd29bef
JK
1499 * target.c (target_preopen): If target_kill doesn't remove the
1500 target from the stack, use pop_target to do it.
1501
704aea43
JK
1502 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
1503 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
1504 changes to stabsread.c from summer 1993.
1505
4a00e1de
JK
1506 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
1507 printing the program, rather than passing NULL to printf.
1508 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
1509 try to call UDIDisconnect again. Print better message.
1510 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
1511 it via udi_close.
4a00e1de
JK
1512 (udi_create_inferior): If udi_session_id is negative, open a new
1513 TIP rather than giving an error.
1514
01cd70b9
JK
1515 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
1516 config/ns32k/ns32km3.mh: Define NAT_FILE.
1517 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
1518 (it was inconsistent and namespace-wrong) to NM_M3_H.
1519 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
1520 (m3_open): New function.
1521 (m3_ops): Use it.
1522 * TODO: Update Mach section.
1523
1524 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
1525
d41b3eed
PB
1526Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
1527
1528 * printcmd.c (printf_command): Add missing single-letter
1529 backslash-escape sequences, and improve error message.
1530
7343d716
JK
1531Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1532
842cf831
JK
1533 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
1534 rather than trying to shove an int into a pointer and back out
1535 again. This avoids compiler warnings.
1536
7343d716
JK
1537 * defs.h (alloca): Declare as void *, not char *, on hpux.
1538 Don't prototype it, just declare the return type.
1539
57a9fee3
PS
1540Sun Feb 6 03:25:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1541
1542 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
1543 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
1544
a1bd6534
JK
1545Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1546
021b10e3
JK
1547 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
1548 ZERO_REGNUM, just read it as zero without talking to the board.
1549
8b0a85ba
JK
1550 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
1551 backslash.
1552 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
1553 to store_floating, not nonexistent variable len.
1554
aa56c716
JK
1555 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1556 New functions.
1557 (mips_store_word): Change calling convention to return errors, and
1558 to provide old contents if the caller wants it.
1559 (mips_xfer_memory): Deal with errors from mips_store_word.
1560 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
1561 define now that remote-mips.c doesn't use BREAKPOINT.
1562
1563 * remote-mips.c (mips_create_inferior): Call warning if arguments
1564 specified, and then execute "set args" command. Call error, not
1565 mips_error, if executable file not specified.
1566
29fc92e8
JK
1567 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
1568 remote_debug.
1569
a1bd6534
JK
1570 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
1571 to unsigned int.
1572
65e98f5b
PS
1573Sat Feb 5 05:27:05 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1574
1575 * value.h (print_longest): Rename "value" to "val" in prototype
1576 declaration because some compilers don't like arguments whose
1577 names are the same as types.
1578 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
1579 before passing it to remote_*_bytes.
1580
edd01519
SC
1581Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
1582
1583 * h8500-tdep.c (saved_pc_after_call): The size of the
1584 pc is memory model dependent. (segmented_command,
1585 unsegmented_command, _initialize_h8500_tdep): New commands to
1586 change memory model.
29fc92e8 1587 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
edd01519 1588 command.
678ee700
SC
1589 * remote-hms.c (hms_load): Remove breakpoints when loaded.
1590 (hms_wait): Use new status structure
1591 (hms_open): Push the target here. (hms_before_main_loop): Not
1592 here. (supply_val, hms_fetch_register, hms_store_register): Cope
1593 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
1594 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
1595 all registers in a compact way.
edd01519 1596
9c01440d
JK
1597Fri Feb 4 07:41:13 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1598
1599 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
1600 as CORE_ADDR to match definition in rs6000-tdep.c.
1601
4386eff2
PS
1602Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1603
1604 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
1605 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
1606 definitions into the psymtab.
1607
d351c7a6
JK
1608Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1609
1610 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
1611 a special exceptionSize for the 68332.
1612
1613 * remote-udi.c (udi_attach): If no arguments, print error.
1614
4901e77d
FF
1615Thu Feb 3 17:34:05 1994 Fred Fish (fnf@cygnus.com)
1616
1617 * Makefile.in (VERSION): Bump to 4.12.1
1618 * NEWS, README: Update to match 4.12 release.
1619
159ada02
JK
1620Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1621
4901e77d
FF
1622 * command.c (empty_sfunc): New function.
1623 (add_set_cmd): Use it instead of not_just_help_class_command.
1624 (not_just_help_class_command): Change calling convention back to
1625 what it was before yesterday's change.
1626
159ada02
JK
1627 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
1628 of the type if present.
1629
5b3591ab
JK
1630Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1631
eade0c6c
JK
1632 * printcmd.c (decode_format): Don't blithely set the size for
1633 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
1634
1635 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
1636 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
1637 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
1638 always just check against INT_MIN and INT_MAX (this also fixes things
1639 if sizeof (long) > sizeof (int), e.g. Alpha).
1640 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
1641 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
1642 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
1643 BUILTIN_TYPE_UNSIGNED_LONGEST.
ce855594
JK
1644 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
1645 longest_int and longest_unsigned_int.
eade0c6c
JK
1646 * value.h (struct value): Just align to LONGEST, rather than worrying
1647 about CC_HAS_LONG_LONG.
b1de1647
JK
1648 * valarith.c (value_binop): Figure out type ourself based on
1649 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
1650 point is that we don't depend on CC_HAS_LONG_LONG anymore.
eade0c6c
JK
1651 * valprint.c (val_print_type_code_int): Just call
1652 extract_unsigned_integer directly, rather than going through
1653 unpack_long.
1654 * printcmd.c (decode_format): Remove code which would sometimes
1655 change 'g' size to 'w' for integers. print_scalar_formatted handles
1656 printing huge integers well enough, thank you.
1657
4901e77d 1658 * command.c (add_set_cmd, not_just_help_class_command): Change
719d9abb
JK
1659 to make this the sfunc, not cfunc, since that is how we call it.
1660 * command.h: Comment difference between sfunc and cfunc.
1661 * demangle.c (set_demangling_command): Add third arg since that
1662 is how it is called.
1663 (_initialize_demangler): Use sfunc, not cfunc, for
1664 set_demangling_command, since that is how it is called.
1665 Remove show_demangling_command; it has no effect.
1666
5b3591ab
JK
1667 * command.c (shell_escape): Report errors correctly (with error
1668 message from strerror).
1669
37f24dc9
ILT
1670Wed Feb 2 14:35:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1671
1672 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
1673 x_scnlen.l rather than x_scnlen to match corresponding change in
1674 coff/internal.h.
1675
61932a8e
JK
1676Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1677
1678 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
1679 Change comments regarding TYPE_CODE_BOOL.
1680 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
1681 regardless of the language.
1682 (value_true): Just call value_logical_not regardless of language.
1683 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
1684 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
1685 * language.h: Improve comment for la_builtin_type_vector.
1686 * m2-lang.c (_initialize_m2_language): Don't add any fields to
1687 builtin_type_m2_bool.
1688
7bec77b4
JK
1689Tue Feb 1 17:13:32 1994 Kevin Buettner (kev@cujo.geg.mot.com)
1690
1691 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
1692 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
1693
8afd05c0
JK
1694Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1695
1696 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
1697 by restarting the ioctl.
1698
10b9bb56
JK
1699Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1700
1701 * target.h (target_wait): Add comment about calling
1702 return_to_top_level.
1703
bf8d9d28
ILT
1704Tue Feb 1 12:21:00 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1705
1706 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
1707 additional arguments.
1708 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
1709
efe3ff3e
SG
1710Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
1711
1712 * sparc-stub.c: Remove unnecessary #include of memory.h.
1713
37dea45f
JK
1714Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1715
14d79562
JK
1716 * mips-tdep.c: Remove code which sets saved_regs from
1717 init_extra_frame_info and put it in new function mips_find_saved_regs.
1718 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
1719 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
1720 check if it is NULL and call mips_find_saved_regs if so.
1721
47d52968
JK
1722 * remote-mips.c: Use unfiltered, not filtered, output most places.
1723
37dea45f
JK
1724 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
1725 backtrace. Revise comments.
1726
0434c1a0
PS
1727Mon Jan 31 09:40:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1728
1729 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
1730 alpha and irix. The _sigtramp case has to be handled properly
1731 in the tdep files if we have no ecoff debugging info.
1732 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
1733 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
1734 without PC_REGNUM kludge.
1735 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
1736 Clean up handling of mips sigtramp frames, improve comments.
1737
d64956fa
JL
1738Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1739
1740 * paread.c (read_unwind_info): Fix typo.
1741
1742 * paread.c (pa_symtab_read): Update the "check_strange_names"
1743 filter to match GCC's current output. Filter out section symbols
1744 (which the HP linker sometimes puts in the wrong place).
1745
9db58d3a
JK
1746Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1747
3a479851
JK
1748 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
1749
a0b352c0
JK
1750 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
1751
1752 * Makefile.in: Remove all references to sparcly-nat.c.
1753
1754 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
1755 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
1756 duplicating serial.h and target.h.
1757
7a78db15
JK
1758 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
1759 are not used anywhere (a 5 Oct 1993 change removed the uses).
1760
895efe6b
JK
1761 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
1762 * config/m68k/es1800.mt: Add comment.
3a479851 1763 * remote-es.c: Extensive changes to update to current conventions.
895efe6b 1764
9db58d3a
JK
1765 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
1766 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
1767 to achieve the desired timeout.
1768 * serial.h (serial_t): Add field timeout_remaining.
1769
f28c6e38
JK
1770Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1771
1772 * c-exp.y (yylex): Reenable nested type code.
1773
b09f44d2
JK
1774Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1775
7f2ffa58
JK
1776 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
1777
796d1fd3
JK
1778 * remote-mips.c (mips_ops): Fix docstring.
1779
97cc0428
JK
1780 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
1781
ddd0223e
JK
1782 * config/m68k/tm-monitor.h: Changes to bring this into accordance
1783 with the old tm-m68k-em.h:
1784 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
97cc0428 1785 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
ddd0223e
JK
1786 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
1787 Add FIXME regarding GET_LONGJMP_TARGET.
1788
b09f44d2 1789 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
97cc0428
JK
1790 * infptrace.c (kill_inferior): Add comments.
1791 * main.c (quit_command): Call target_close after we kill or
1792 detach.
1793 * remote-udi.c (udi_close): Don't error() if QUITTING.
b09f44d2 1794
0ffba029
RS
1795Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)
1796
1797 * configure.in: Make m68k-coff and aout add monitor support in
1798 addition to the standard serial support.
1799
bb7cb982
JK
1800Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1801
1802 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
1803 index indexNil.
1804
9fdb3f7a
JK
1805Fri Jan 28 10:40:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1806
1807 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
1808 * elfread.c (record_minimal_symbol_and_info),
1809 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
1810
a28d16d3
JK
1811Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1812
6202263d
JK
1813 * i386-stub.c: Add ".text" right before "mem_fault:".
1814
9c41f6a6
JK
1815 * main.c (baud_rate): Add FIXME comment about printing -1 value.
1816
1817 * remote-utils.c (usage): Fix message to be accurate and conform
1818 more closely to normal conventions.
1819
1820 * remote-utils.c (gr_files_info): Have the exec_bfd test control
1821 whether to show information about exec_bfd, and not control whether
1822 to show information about device and speed.
1823
1824 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
1825 usage message, don't dump core.
1826
1827 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
1828 for variable size array.
1829 (bug_fetch_register, bug_store_register): Rename "value" to
1830 "fpreg_buf" because some compilers don't like variables whose
1831 names are the same as types.
1832 (bug_store_register): Use a cast when converting char * to
1833 unsigned char *.
1834
d5c551c9
JK
1835 * symmisc.c (maintenance_print_symbols): Don't refer to the name
1836 of the command in error message (the text was referring to the old
1837 name of the command).
1838
1839 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
1840
0e4ad984
JK
1841 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
1842 full details on structure elements without names. This partially
1843 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
1844 of those changes was accidental.
1845
577da8cb
JK
1846 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
1847 defined, make it an error to specify a single argument which is not
1848 a frame number.
1849
a28d16d3
JK
1850 * Makefile.in (version.c), main.c (print_gdb_version): Use
1851 host_alias and target_alias, not host_canonical and
1852 target_canonical, to print configuration.
1853
833e0d94
JK
1854Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1855
d92f3f08
JK
1856 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
1857 of builtin_type_long. It is necessary to get a type which is
1858 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
1859
833e0d94
JK
1860 Fix many sins which will come up in 32 bit x 64 bit GDB, and
1861 various miscellaneous things discovered in the process:
1862 * printcmd.c, defs.h (print_address_numeric): New function.
1863 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
1864 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
1865 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
1866 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
1867 Use it.
1868 * utils.c, defs.h (gdb_print_address): New function.
1869 * expprint (dump_expression), gdbtypes.h: Use it.
1870 * breakpoint.c (describe_other_breakpoints),
1871 symmisc.c (dump_symtab, print_symbol):
1872 Use filtered not unfiltered I/O.
1873 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
1874 just run gdb under a debugger for this (and it had problems with
1875 printing addresses, how to print b->shadow, etc.).
1876 * buildsym.c (make_blockvector), core.c (memory_error),
1877 exec.c (print_section_info), maint.c (print_section_table),
1878 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
1879 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
1880 Add comments saying code is broken. Marked with "FIXME-32x64".
1881 * dbxread.c (process_one_symbol), partial-stab.h (default),
1882 remote-vx.c (vx_run_files_info):
1883 Don't cast int being passed to local_hex_string.
1884 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
1885 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
1886 only being a long.
1887 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
1888 and LOC_LOCAL.
1889 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
1890 * source.c: Include <sys/types.h> regardless of USG.
1891
67e9b3b3
PS
1892Tue Jan 25 12:58:26 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1893
1894 * valops.c (value_assign): Set `type' after coercing toval.
1895 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
1896 Use extract_unsigned_integer to get the address of a reference.
1897
36464897
JK
1898Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1899
91a0575c
JK
1900 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
1901 AIX can use ? instead of \ for continuation. Deal with it.
1902
36464897
JK
1903 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
1904 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
1905 the HP compiler in ANSI mode doesn't like.
1906
1907 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
3bc45b7a
JK
1908 based on USG, rather than defining HAVE_SIGSETMASK to an
1909 expression containing defined. Having a macro used in #if expand
1910 to an expression containing "defined" is undefined according to
1911 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
1912 it to.
36464897 1913
2ba6182b
JG
1914Mon Jan 24 20:51:29 1994 John Gilmore (gnu@cygnus.com)
1915
1916 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
1917 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
1918
96b6b765
PB
1919Fri Jan 21 19:10:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
1920
1921 * ch-exp.y (match_string_literal): Allow a zero-length string.
1922 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
1923
dfd4c728
JK
1924Sat Jan 22 17:08:48 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1925
1926 * i386aix-nat.c (i386_float_info): Reverse order of registers before
1927 passing them to print_387_status.
1928 (print_387_status): Don't subtract top from 7 before using it.
1929 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
1930 from 7; the above explains it.
1931
5efd597b
PS
1932Sat Jan 22 20:25:11 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1933
1934 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
67e9b3b3 1935 pointer value when fixing up the frame at the start of a function.
5efd597b 1936
e90445c9
SG
1937Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
1938
1939 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
1940 Sparc from the stack.
1941
08f74b92
JK
1942Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
1943
864df7e6
JK
1944 * remote-mips.c (mips_initialize): Clear mips_initializing via
1945 cleanup chain, not directly.
1946
1947 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
1948 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
1949 munging the timeout due to the limited range of c_cc[VTIME].
1950
08f74b92
JK
1951 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
1952 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
1953 m3-nat.c (m3_create_inferior): Pass it.
1954 * procfs.c: Remove ptrace function. It was declared in a way which
1955 conflicted with the prototype in unistd.h on Solaris.
1956
cdcf48be
PS
1957Sat Jan 22 01:37:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1958
1959 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
1960 in the sigcontext if it is a signal trampoline frame.
1961 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
1962 Define for Solaris2.
1963
8bf94f44
SG
1964Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
1965
1966 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
1967 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
1968 tm-sparc.h so they can be overridden if necessary.
1969
d575ddc0
SG
1970Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
1971
1972 * lynx-nat.c: Add Sparc support.
1973 * sparcly-nat.c: Remove. It's useless.
1974 * config/sparc/nm-sparclynx.h: Rewrite.
1975 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
1976 with lynx-nat.o
1977 * config/sparc/tm-sparclynx.h: Rewrite.
1978
00240279
ILT
1979Fri Jan 21 19:08:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1980
1981 * rs6000-pinsn.c: Use the new disassembler in the opcodes
1982 directory. Old code was discarded, since the new opcode table has
1983 a different format.
1984
a2608ea1
FF
1985Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
1986
1987 * Makefile.in (realclean): Remove info files per make-stds.texi.
1988
6545c6a0
JK
1989Fri Jan 21 12:47:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1990
1991 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
1992 if N_SO_ADDRESS_MAYBE_MISSING is defined.
1993 * config/sparc/tm-sun4sol2.h: Define it.
1994
cd5ee294
JK
1995Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1996
1997 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
1998 if we did not find a symbol.
1999
918fea3e
JL
2000Fri Jan 21 08:20:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2001
2002 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
2003 is not defined.
2004
2005 * hppab-nat.c (call_ptrace): Delete redundant function.
2006 (kill_inferior, attach, detach, child_resume): Likewise.
2007 (child_xfer_memory): Likewise.
2008
2009 * hppah-nat.c (call_ptrace): Delete redundant function.
2010 (kill_inferior, attach, detach, child_resume): Likewise.
2011
2012 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
2013
2014 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
2015
2016 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
2017
2018 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
2019 (CHILD_XFER_MEMORY): Define.
2020 (PT_*): Define so that generic infptrace.c code can be used.
2021
27ad511f
JK
2022Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2023
1b880e74
JK
2024 * xcoffread.c (xcoff_symfile_read): Make second parameter a
2025 struct section_offsets *, not a (nonexistent) struct section_offset *.
2026
6657a0c7
JK
2027 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
2028 internal_xcoff_symtab, not an array of one of them. Change lots of
2029 "main_aux" to "&main_aux" and so on.
2030
27ad511f
JK
2031 * coffread.c, xcoffread.c: Include <coff/internal.h>
2032 before "symfile.h".
2033
d4a0983a
JK
2034Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2035
dbb0fae2
JK
2036 * coffread.c (coff_getfilename): Make it not static.
2037
d4a0983a
JK
2038 * xcoffread.c (read_xcoff_symtab): complain() not abort().
2039
2040 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
2041 a completely gratuitous difference between xcoffread.c and coffread.c).
2042
d7e7e851
JK
2043Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2044
2045 * infrun.c (wait_for_inferior): Don't set frame for
2046 step_resume_breakpoint for IN_SIGTRAMP cases.
2047
2048 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
2049 breakpoint.c (bpstat_what): Move step_resume from its own field of
2050 the struct bpstat_what into the main_action. Make it override
2051 other breakpoints. This is a conservative change in the sense
2052 that before the step resume breakpoint was a breakpoint.c
2053 breakpoint, hitting the step resume breakpoint overrode even
2054 calling bpstat_stop_status.
2055
f1de67d3
PS
2056Wed Jan 19 12:40:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2057
2058 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
2059 in case execution was stopped in the called function.
2060 * stack.c (print_frame_info, frame_info): If backtracing through
2061 a call dummy, handle the starting source line number on a line
2062 boundary like backtracing through sigtramp.
2063 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
2064 for call dummy frame right. Remove old test for dummy frame,
2065 it has been unused at least since gdb-3.5.
2066 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
2067 of the dummy frame.
2068
c6e0f918
JK
2069Tue Jan 18 16:16:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2070
2071 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
2072
db4340a6
JK
2073Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2074
2075 * infrun.c (signals_info), target.c (target_signal_from_name):
2076 Use ugly casts to avoid enumvar < enumvar or enumvar++.
2077
4d4f2d50
JK
2078Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2079
d881dd86
JK
2080 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
2081 * inflow.c (terminal_ours_1): When discussing how to deal with the
2082 tty state, make note of query() as well as readline.
2083
4d4f2d50
JK
2084 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
2085 signals for which stop and print are cleared by default.
2086
5c38fcee
JL
2087Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2088
c7f3b703
JL
2089 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
2090 reserved fields to hold a stub unwind entry type. Fix typo.
2091 (stub_unwind_entry): New structure for raw stub unwind entries.
2092 (stub_unwind_types): The types of stubs we may encounter.
2093 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
2094 * hppa-tdep.c (rp_saved): Use additional information provided
2095 by linker stub unwind descriptors.
2096 (frameless_function_invocation): Likewise.
2097 (frame_chain_valid): Likewise.
2098 * paread.c (compare_unwind_entries): New function for sorting
2099 unwind table entries.
2100 (read_unwind_info): Rewrite to remove dependency on host endianness.
2101 Read in data from the $UNWIND_END$ subspace which contains linker
2102 stub unwind descriptors. Merge that data into the basic unwind
2103 table.
2104
5c38fcee
JL
2105 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
2106
af8b7906
JK
2107Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2108
2109 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
2110 from either the symbol name or the auxent.
2111 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
2112 no longer static.
2113
0e7da49c
FF
2114Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
2115
2116 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
2117
b90811f9
PS
2118Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2119
2120 * README: Update notes for alpha port.
2121
24a11a79
JK
2122Mon Jan 17 11:15:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2123
2124 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
2125 for operation fault, constraint fault, and type fault.
2126
b76dcd4b
JK
2127Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2128
623d7380
JK
2129 * Makefile.in (init.c): Add comment explaining formatting conventions.
2130
a39f7739
JK
2131 * c-exp.y (parse_number): Assign to temporary between the right
2132 shifts, to work around a bug in the SCO compiler.
2133
07919221
JK
2134 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
2135 Add various files which were added to GDB recently.
2136
91cc45da
JK
2137 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
2138 within_function.
2139
b76dcd4b
JK
2140 * Makefile.in: Add mostlyclean target.
2141
d7a5ff3c
JK
2142Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2143
2144 * Version 4.11.4.
2145
8b564df8
PB
2146Sat Jan 15 18:27:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
2147
2148 * main.c (show_commands): Make return type of extern
2149 history_get be HIST_ENTRY, rather than struct _hist_entry.
2150 (The latter loses with the upcoming merged readline.)
2151
dac317dc
JK
2152Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2153
ab5f7971
JK
2154 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
2155 const char *, not char *.
2156
fb155ce3
JK
2157 * symtab.h (struct symbol): Make section short, not unsigned short.
2158
87041845
JK
2159 * symtab.c (lookup_symbol): Add comment about QUIT here.
2160
f29351d9
JK
2161 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
2162
a9b32d61
JK
2163 * c-exp.y (parse_number): Check for overflow regardless of range
2164 checking. Fix overflow check to use unsigned LONGEST, not
2165 unsigned int.
2166
2167 * c-exp.y (parse_number): Make it so that integer constants are
2168 builtin_type_long_long if builtin_type_long isn't big enough or if
2169 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
2170
dac317dc
JK
2171 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
2172 Print our "()" first, then recurse for the target type.
2173
4c0b3e57
JK
2174Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2175
831a39d7
JK
2176 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
2177
4c0b3e57
JK
2178 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
2179
44a09a68
JK
2180Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2181
2182 * utils.c (request_quit): Re-establish signal handler regardless
2183 of USG.
2184
2185 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
2186
98506620
JK
2187Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2188
2189 * i960-tdep.c: Include target.h.
2190
658821b9
SS
2191Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
2192
2193 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
2194
2195Fri Jan 14 11:06:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2196
2197 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
2198 changes (status -> ourstatus; declare status, etc.).
2199 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
2200
4e8bc56f
JK
2201Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2202
2203 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
2204
aeb145f8
ILT
2205Fri Jan 14 11:49:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2206
2207 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
2208
d253eb7a
JK
2209Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2210
2211 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
2212
52b3045e
PS
2213Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2214
2215 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
2216
ae682b80
JK
2217Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2218
d0acb092
JK
2219 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
2220 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
2221
2222 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
2223 writing it.
2224
63dcc380
JK
2225 Add search to target vector (#if 0'd until after 4.12):
2226 * target.h (to_search, target_search): Add.
2227 * gdbcore.h, core.c (generic_search): Add.
2228 * remote.c (remote_search): Add.
2229 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
2230 tag.
2231
d6596eee
JK
2232 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
2233 is on, call find_pc_function rather than relying just on the minimal
2234 symbols (probably only matters for symbol readers which don't put
2235 statics in the minimal symbols, but changing this strikes me as
2236 not conservative enough).
2237 Initialize name_location in all cases.
2238 If no symbol and no msymbol, don't print anything symbolic.
2239
ae682b80
JK
2240 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
2241
314e6bf3
JG
2242Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
2243
2244 * printcmd.c (print_address_symbolic): Make it search the
2245 symtabs for variables as well as functions. Add `set print
2246 fast-symbolic-addr' and default it to fast (the old way).
2247 Print line numbers for data items as well as functions.
2248
2249 * symtab.c (find_addr_symbol): Return the symtab and the symbol
2250 address, if a symbol is found (take two more args pointing to
2251 where to store these results).
2252
2253 * symtab.h (find_addr_symbol): Add prototype.
2254
470dfa0c
JK
2255Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2256
2257 * objfiles.h: Fix comments to reflect the fact that the phrase
2258 "top of stack" always refers to where the pushing and popping takes
2259 place, regardless of whether it is at the highest or lowest address.
2260
a8c49897
PS
2261Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2262
2263 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
2264 compiler generated tag names.
2265 * mdebugread.c (parse_type): Handle cross references to qualified
2266 aggregate types.
2267 * valops.c (value_struct_elt): Improve error message if the
2268 address of a method is requested from an object instance.
2269 * valops.c (search_struct_method): Make name_matched non-static
2270 to get it initialized correctly.
2271 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
2272 exclude segment register which are not writable on newer SCO versions.
2273
4ad942bf
JK
2274Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2275
2276 * go32-xdep.c: Remove unused function uerror.
2277 (sigsetmask): Declare return type. Declare argument (to match the
2278 way it is called). Explicitly return 0.
2279
21578747
JG
2280Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
2281
2282 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
2283 partial_symbol): Shrink the storage sizes of symbols, by making
2284 enums into 1-byte bitfields when compiled __GNUC__, moving all the
2285 enums and small ints to the end of each struct to improve
2286 alignment, and switching the section number from int to unsigned
2287 short.
2288
e0ea0fbd
JG
2289Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
2290
2291 * symtab.c (find_addr_symbol): New routine that will find the nearest
2292 symbol associated with an address. It does so by exhaustive
2293 search of the symtabs, so it's slow but complete.
2294
011d4ed9
JG
2295Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
2296
2297 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
2298 to [0,0] rather than [0, end of first source file]. This avoids
2299 problems with other parts of GDB looking for linetables in the
2300 _globals_ symtab. Eliminate variables num_object_files and
2301 first_object_file_end.
2302
eb5b74ca
JG
2303Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
2304
2305 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
2306 (pop_frame): Restore PC2 and LR0 from dummy frames.
2307 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
2308 (setup_arbitrary_frame): Handle 3 args and set up real frames.
2309 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
2310 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
2311 (SETUP_ARBITRARY_FRAME): Define.
2312
4d69cf57
JK
2313Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2314
2315 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
2316
6a69975f
ILT
2317Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
2318
2319 * remote-udi.c (udi_resume): Correct prototype.
2320
c598654a
JL
2321Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
2322
2323 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
2324 hppa_frame_find_saved_regs.
2325 * hppa-tdep.c (dig_fp_from_stack): Delete function.
2326 (prologue_inst_adjust_sp): New function.
2327 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
2328 (skip_prologue): Completely rewrite to use unwind information.
2329 (hppa_frame_find_saved_regs): Likewise.
2330
6397809b
JK
2331Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2332
f3fe8934
JK
2333 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
2334 to convert a signal number with appropriate bounds checking.
2335
6397809b
JK
2336 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
2337
c369b6a3
JG
2338Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
2339
a31f4b90
JG
2340 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
2341 print a newline to end the display anyway.
2342
c6d8db40
JG
2343 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
2344 coprocessor status regs) when popping a frame. This fixes
2345 float exceptions that occur after calling inferior functions.
2346
c369b6a3
JG
2347 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
2348 Read and write the fsr (float status register) to/from the child
c6d8db40
JG
2349 process along with the float regs. Remove Peter Schauer's change
2350 of May 24 '93, which has higher overhead and doesn't solve the
2351 real problem (which was that FSR wasn't being set).
c369b6a3 2352
7b2bcbf5
JG
2353Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
2354
2355 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
2356 stack overflow check isn't right after the register stack
2357 adjustment instruction. Metaware R2.3u compiler moves other
2358 things in front of it. This fix isn't perfect but is what's
2359 running.
2360
6aaa61de
JK
2361Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2362
85b8aa88
JK
2363 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
2364
6aaa61de
JK
2365 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
2366 character filenames.
2367 * configure.in: Change accordingly.
2368
ef118278
TL
2369Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
2370
2371 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
2372 _filtered io routines from these two files.
2373
9d51b3c5
PS
2374Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2375
2376 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
2377 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
2378 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
2379 DEC c89.
2380 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
2381
11ebf939
JK
2382Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2383
17d059d4
JK
2384 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
2385 printing to gdb_stderr.
2386
2387 * remote-udi.c (udi_kill): Don't close the connection, just set
2388 inferior_pid to zero.
2389 (udi_mourn): Call remove_breakpoints.
2390
2391 * remote-udi.c: Remove obsolete need_artificial_traps comment.
2392
11ebf939
JK
2393 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
2394
fcbc95a7
JK
2395Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
2396
d8a66e60
JK
2397 * symtab.c (lookup_symbol): Don't try adding .c to the name.
2398
e3a7e9d5
JK
2399 * remote-bug.c: At the start of each section, reset srec_frame
2400 back to 160.
2401
fcbc95a7
JK
2402 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
2403 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
2404 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
2405 code which looks for those two waitkinds. Use switch statement.
2406 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
2407 CHILD_SPECIAL_WAITSTATUS.
2408
2409 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
2410 * Move target_signal_from_host, target_signal_to_host, and
2411 store_waitstatus from inftarg.c to target.c. procfs needs them.
2412 * target.c: Include "wait.h" and <signal.h>.
2413 * target.h, infrun.c (proceed), proceed callers: Pass new code
2414 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
2415 enums being treated as unsigned and is cleaner.
2416 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
2417 TARGET_SIGNAL_0.
2418 * infcmd.c (signal_command), infrun.c (signals_info):
2419 Don't allow user to specify numeric equivalent of
2420 TARGET_SIGNAL_DEFAULT.
2421
7f85a716
SG
2422Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
2423
2424 * config/alpha/alpha-netware.mt: New target support for Alpha
2425 running Netware.
2426 * configure.in: Add alpha-*-netware* target.
2427
5efb3899
SS
2428Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
2429
2430 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
2431
67ac9759
JK
2432Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2433
2434 * target.h: Add enum target_waitkind, enum target_signal, and
2435 struct target_waitstatus. Change status argument to target_wait to
2436 be struct target_waitstatus * instead of int *.
2437 * target.h, infrun.c, all targets: Change type of signal arguments
2438 to resume(), proceed(), and target_resume() from int to enum
2439 target_signal.
2440 * All targets (*_wait, *_resume): Change accordingly.
2441 * infcmd.c (program_info, signal_command), throughout infrun.c,
2442 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
2443 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
2444 signal code stuff right with the new signals would be non-trivial).
2445 * inferior.h (stop_signal): Make it enum target_signal not int.
2446 * target.c, target.h (target_signal_to_string, target_signal_to_name,
2447 target_signal_from_name): New functions.
2448 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
2449 store_waitstatus): New functions.
2450 * procfs.c (procfs_notice_signals): Use them.
2451 * i960-tdep.c (i960_fault_to_signal): New function, to replace
2452 print_fault.
2453 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
2454
2455 * objfiles.c (build_objfile_section_table): Don't abort() if
2456 objfile->sections is already set.
2457
2458 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
2459 to match recent change to exec.c.
2460
2461 * Version 4.11.3.
2462
2463 * main.c (print_gdb_version): Change year to 1994.
2464
2465 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
2466 * Makefile.in (NONSRC): Add ChangeLog-93.
2467
b35885f2
JK
2468Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2469
4b404661
JK
2470 * stabsread.c (read_type): Allow defining several type numbers
2471 at once (e.g. "(1,2)=(3,4)="...).
2472
eaba7fae
JK
2473 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
2474
b35885f2
JK
2475 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
2476
ae5c71d6
PS
2477Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2478
2479 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
2480 to process_one_symbol.
2481 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
2482 avoid caching a bad endaddr in find_pc_partial_function.
2483
d568b76a
JK
2484Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2485
2486 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
2487
9ddb33a8
PS
2488Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2489
2490 * infrun.c (wait_for_inferior): Do not step or step resume past
2491 the end of a one-line function we just stepped into.
2492
67ac9759 2493For older changes see ChangeLog-93
bd5635a1
RP
2494\f
2495Local Variables:
2496mode: indented-text
2497left-margin: 8
2498fill-column: 74
2499version-control: never
2500End:
This page took 0.473596 seconds and 4 git commands to generate.