Add search to target vector (#if 0'd until after 4.12):
[binutils-gdb.git] / gdb / ChangeLog
1 Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2
3 Add search to target vector (#if 0'd until after 4.12):
4 * target.h (to_search, target_search): Add.
5 * gdbcore.h, core.c (generic_search): Add.
6 * remote.c (remote_search): Add.
7 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
8 tag.
9
10 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
11 is on, call find_pc_function rather than relying just on the minimal
12 symbols (probably only matters for symbol readers which don't put
13 statics in the minimal symbols, but changing this strikes me as
14 not conservative enough).
15 Initialize name_location in all cases.
16 If no symbol and no msymbol, don't print anything symbolic.
17
18 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
19
20 Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
21
22 * printcmd.c (print_address_symbolic): Make it search the
23 symtabs for variables as well as functions. Add `set print
24 fast-symbolic-addr' and default it to fast (the old way).
25 Print line numbers for data items as well as functions.
26
27 * symtab.c (find_addr_symbol): Return the symtab and the symbol
28 address, if a symbol is found (take two more args pointing to
29 where to store these results).
30
31 * symtab.h (find_addr_symbol): Add prototype.
32
33 Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
34
35 * objfiles.h: Fix comments to reflect the fact that the phrase
36 "top of stack" always refers to where the pushing and popping takes
37 place, regardless of whether it is at the highest or lowest address.
38
39 Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
40
41 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
42 compiler generated tag names.
43 * mdebugread.c (parse_type): Handle cross references to qualified
44 aggregate types.
45 * valops.c (value_struct_elt): Improve error message if the
46 address of a method is requested from an object instance.
47 * valops.c (search_struct_method): Make name_matched non-static
48 to get it initialized correctly.
49 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
50 exclude segment register which are not writable on newer SCO versions.
51
52 Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
53
54 * go32-xdep.c: Remove unused function uerror.
55 (sigsetmask): Declare return type. Declare argument (to match the
56 way it is called). Explicitly return 0.
57
58 Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
59
60 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
61 partial_symbol): Shrink the storage sizes of symbols, by making
62 enums into 1-byte bitfields when compiled __GNUC__, moving all the
63 enums and small ints to the end of each struct to improve
64 alignment, and switching the section number from int to unsigned
65 short.
66
67 Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
68
69 * symtab.c (find_addr_symbol): New routine that will find the nearest
70 symbol associated with an address. It does so by exhaustive
71 search of the symtabs, so it's slow but complete.
72
73 Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
74
75 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
76 to [0,0] rather than [0, end of first source file]. This avoids
77 problems with other parts of GDB looking for linetables in the
78 _globals_ symtab. Eliminate variables num_object_files and
79 first_object_file_end.
80
81 Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
82
83 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
84 (pop_frame): Restore PC2 and LR0 from dummy frames.
85 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
86 (setup_arbitrary_frame): Handle 3 args and set up real frames.
87 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
88 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
89 (SETUP_ARBITRARY_FRAME): Define.
90
91 Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
92
93 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
94
95 Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
96
97 * remote-udi.c (udi_resume): Correct prototype.
98
99 Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
100
101 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
102 hppa_frame_find_saved_regs.
103 * hppa-tdep.c (dig_fp_from_stack): Delete function.
104 (prologue_inst_adjust_sp): New function.
105 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
106 (skip_prologue): Completely rewrite to use unwind information.
107 (hppa_frame_find_saved_regs): Likewise.
108
109 Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
110
111 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
112 to convert a signal number with appropriate bounds checking.
113
114 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
115
116 Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
117
118 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
119 print a newline to end the display anyway.
120
121 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
122 coprocessor status regs) when popping a frame. This fixes
123 float exceptions that occur after calling inferior functions.
124
125 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
126 Read and write the fsr (float status register) to/from the child
127 process along with the float regs. Remove Peter Schauer's change
128 of May 24 '93, which has higher overhead and doesn't solve the
129 real problem (which was that FSR wasn't being set).
130
131 Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
132
133 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
134 stack overflow check isn't right after the register stack
135 adjustment instruction. Metaware R2.3u compiler moves other
136 things in front of it. This fix isn't perfect but is what's
137 running.
138
139 Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
140
141 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
142
143 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
144 character filenames.
145 * configure.in: Change accordingly.
146
147 Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
148
149 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
150 _filtered io routines from these two files.
151
152 Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
153
154 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
155 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
156 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
157 DEC c89.
158 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
159
160 Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
161
162 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
163 printing to gdb_stderr.
164
165 * remote-udi.c (udi_kill): Don't close the connection, just set
166 inferior_pid to zero.
167 (udi_mourn): Call remove_breakpoints.
168
169 * remote-udi.c: Remove obsolete need_artificial_traps comment.
170
171 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
172
173 Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
174
175 * symtab.c (lookup_symbol): Don't try adding .c to the name.
176
177 * remote-bug.c: At the start of each section, reset srec_frame
178 back to 160.
179
180 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
181 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
182 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
183 code which looks for those two waitkinds. Use switch statement.
184 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
185 CHILD_SPECIAL_WAITSTATUS.
186
187 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
188 * Move target_signal_from_host, target_signal_to_host, and
189 store_waitstatus from inftarg.c to target.c. procfs needs them.
190 * target.c: Include "wait.h" and <signal.h>.
191 * target.h, infrun.c (proceed), proceed callers: Pass new code
192 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
193 enums being treated as unsigned and is cleaner.
194 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
195 TARGET_SIGNAL_0.
196 * infcmd.c (signal_command), infrun.c (signals_info):
197 Don't allow user to specify numeric equivalent of
198 TARGET_SIGNAL_DEFAULT.
199
200 Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
201
202 * config/alpha/alpha-netware.mt: New target support for Alpha
203 running Netware.
204 * configure.in: Add alpha-*-netware* target.
205
206 Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
207
208 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
209
210 Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
211
212 * target.h: Add enum target_waitkind, enum target_signal, and
213 struct target_waitstatus. Change status argument to target_wait to
214 be struct target_waitstatus * instead of int *.
215 * target.h, infrun.c, all targets: Change type of signal arguments
216 to resume(), proceed(), and target_resume() from int to enum
217 target_signal.
218 * All targets (*_wait, *_resume): Change accordingly.
219 * infcmd.c (program_info, signal_command), throughout infrun.c,
220 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
221 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
222 signal code stuff right with the new signals would be non-trivial).
223 * inferior.h (stop_signal): Make it enum target_signal not int.
224 * target.c, target.h (target_signal_to_string, target_signal_to_name,
225 target_signal_from_name): New functions.
226 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
227 store_waitstatus): New functions.
228 * procfs.c (procfs_notice_signals): Use them.
229 * i960-tdep.c (i960_fault_to_signal): New function, to replace
230 print_fault.
231 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
232
233 * objfiles.c (build_objfile_section_table): Don't abort() if
234 objfile->sections is already set.
235
236 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
237 to match recent change to exec.c.
238
239 * Version 4.11.3.
240
241 * main.c (print_gdb_version): Change year to 1994.
242
243 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
244 * Makefile.in (NONSRC): Add ChangeLog-93.
245
246 Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
247
248 * stabsread.c (read_type): Allow defining several type numbers
249 at once (e.g. "(1,2)=(3,4)="...).
250
251 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
252
253 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
254
255 Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
256
257 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
258 to process_one_symbol.
259 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
260 avoid caching a bad endaddr in find_pc_partial_function.
261
262 Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
263
264 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
265
266 Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
267
268 * infrun.c (wait_for_inferior): Do not step or step resume past
269 the end of a one-line function we just stepped into.
270
271 For older changes see ChangeLog-93
272 \f
273 Local Variables:
274 mode: indented-text
275 left-margin: 8
276 fill-column: 74
277 version-control: never
278 End: