bba5fc50d3e0486791549ba074582c3dff0aa193
[binutils-gdb.git] / gdb / ChangeLog
1 Thu Sep 19 17:04:12 1991 Per Bothner (bothner at cygnus.com)
2
3 Patches from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4 * mipsread.c (parse_partial_symbols): Enter the name of all
5 structs/unions... into the psymtab so we can access them if the
6 symtab is not read in.
7 * mips-tdep.c: Remove some unneded (?) #includes.
8 * xconfig/dec3100: Add HAVE_STRSTR.
9
10 Thu Sep 19 15:14:23 1991 John Gilmore (gnu at cygnus.com)
11
12 * Makefile.in: Circumvent Sun Make bug on *-exp.tab.o.
13 * c-exp.y, m2-exp.y: Lint.
14 * m2-exp.y: Avoid using yytname[] which is a Bison-ism.
15 * valprint.c (val_print_fields): Check for stub type.
16 * mipsread.c (_initialize_mipsread): Avoid using
17 builtin_type_void at initialize time.
18 (mipscoff_symfile_read): use it now.
19
20 Wed Sep 18 15:55:51 1991 John Gilmore (gnu at cygnus.com)
21
22 Merge multiple-language support, and partial Modula-2 support,
23 from Andrew Beers <beers@cs.buffalo.edu>.
24
25 * i387-tdep.c: New file, consolidates most 80387 support,
26 and eliminates host dependency on double<->extended conversions.
27 * i386-xdep.c, symm-xdep.c: Remove most 387 support.
28 * xconfig/i386{sco,v,v-g,v32,v32-g}: Now need i387-tdep.o.
29
30 * symfile.c (allocate_symtab): New fn, consolidates the work
31 of allocating and initializing a new struct symtab. Set the
32 language of the symtab based on its filename extension.
33 * symfile.h: Declare it.
34 * mipsread.c (new_symtab): Use it. Minor formatting changes.
35 * dbxread.c (end_symtab): Use it.
36
37 * mipsread.c (parse_symbol, case stParam and stProc): Add #if 0'd
38 code for saving types of parameters with each function definition.
39 * dbxread.c (define_symbol, function and parameter cases): Ditto.
40 (read_dbx_symtab, case N_DEFD): Ignore.
41 (read_enum_type): Recognize FALSE/TRUE enum as Modula-2 BOOLEAN.
42 (read_range_type): Rename MAX_OF_TYPE to MAX_OF_C_TYPE, etc.
43 #if 0 out its uses, though, since they set a dead value.
44 * coffread.c (end_symtab): Use allocate_symtab.
45 (process_coff_symbol): #if 0'd for functions and params as above.
46 (read_enum_type): Recognize Modula-2 BOOLEAN.
47 * symtab.c (add_param_to_type): #if 0'd function to add a
48 parameter type to a function type's field list.
49
50 * defs.h (local_hex_format, local_hex_string, *_custom): Add.
51 * i386-xdep.c, pyr-tdep.c, pyr-xdep.c, remote-vx.c, solib.c,
52 source.c, symfile.c, dbxread.c, breakpoint.c, core.c, exec.c,
53 i387-tdep.c, infcmd.c, mips-tdep.c, stack.c, printcmd.c: Output
54 hex with local_hex_string for Modula-2 support.
55
56 * breakpoint.c (breakpoint_cond_eval): Use new value_true to test
57 breakpoint condition language-independently.
58
59 * parse.c: New file with the common code remains of expread.y.
60 * parser-defs.h: New file with common declarations from expread.y.
61 * c-exp.y: New file with the C parser from expread.y, and other
62 language-specific information.
63 * m2-exp.y: New file with the Modula-2 parser and etc.
64 * expread.y, expread.tab.c: Remove.
65 * breakpoint.c, eval.c, printcmd.c, expression.h: Use
66 parse_expression and parse_exp_1 rather than parse_c_expression
67 and parse_c_1.
68
69 * symtab.h (enum languages): Move to defs.h.
70 (enum type_code): Add TYPE_CODE_CHAR and TYPE_CODE_BOOL.
71 Declare Modula-2 builtin types.
72 Add MAX_OF_TYPE and MIN_OF_TYPE macros.
73
74 * symtab.c (_initialize_symtab): Remove builtin type
75 definition and initialization to *-exp.y.
76 (lookup_primitive_typename): Use language-dependent vector.
77 (lookup_typename): Fix bug, make it work if primitive typename.
78 (lookup_unsigned_typename): Call above.
79 (create_array_type): Set up range type for array index.
80 (list_symbols): Call typedef_print to print typedefs.
81 (Currently #ifndef FIXME'd out awaiting integration.)
82
83 * values.c (unpack_long, value_from_longest): Handle
84 TYPE_CODE_BOOL and TYPE_CODE_CHAR.
85
86 * expression.h (enum exp_opcode): Add Modula-2 specific opcodes.
87 * expprint.c: Look up expression opcodes in language-specific
88 table, based on expression's language. Handle some Modula-2
89 specific opcodes.
90
91 * stack.c (frame_info): Print language of stack frame.
92 (select_frame): Also select language, if in auto-mode.
93 (get_frame_language): New subroutine.
94 * main.c (execute_command): Warn as language changes automatically.
95
96 * printcmd.c (ptype_command): Parse types using the language
97 parser, both for language-independence, and so that scopes can
98 be specified.
99
100 * language.h, language.c: New files for language-specific macros,
101 declarations, and definitions.
102
103 Misc fixes:
104
105 * main.c (main): If error() is called during early
106 initialization, print its message and then exit(1) from GDB.
107
108 * valprint.c (type_print_base): Avoid printing garbage for ints
109 of unusual sizes.
110 (_initialize_valprint): Warn about host/target size assumption;
111 improve long long support slightly.
112
113 * convex-tdep.c (comm_registers_info): Avoid parsing decimal and
114 hex -- let parse_and_eval_address do it.
115
116 * doc/gdbint.texinfo (Languages): Doc how to add a language.
117
118 * Makefile.in: Cope with new files and removed files.
119
120 Tue Sep 17 08:37:41 1991 John Gilmore (gnu at cygint.cygnus.com)
121
122 Add Andrew Beers' changes for Modula-2 support. His ChangeLog
123 entries are enclosed herein:
124
125 Mon Jun 3 17:05:45 EDT 1991
126
127 m2-exp.y Created. Tested outside of GDB for a few days. Proper
128 operators were added, C specific operators and tokens
129 removed. yylex() revamped to some extent. Still things
130 missing from the grammar, such as sets.
131 Tested for two weeks in GDB v3.5.
132
133 Tue Jun 11 17:23:48 EDT 1991
134
135 m2-exp.y Added boolean constants TRUE and FALSE to the grammar
136 so they are built-in. Sort of a hack.
137
138 Fri Jun 14 12:53:51 EDT 1991
139
140 m2-exp.y Added range checking for numeric constants. Any numeric
141 constant is assumed to be of builtin type INTEGER unless:
142 (1) it is octal or hexadecimal, in which case it is a
143 CARDINAL; (2) it is too big to fit into an INTEGER, in
144 which case it is a CARDINAL.
145 eval.c Added simple range checking for +, -, and * on integers.
146 Doesn't work very well for *, since 6 * 1,000,000,000 =
147 1,705,032,704, which fails the simple test of result >=
148 first_operand, no matter in what order the operands are.
149
150 Tue Jun 18 14:11:30 EDT 1991
151
152 Broke the parser into parts, one containing the C grammar and the other
153 containing code to be shared by all of the grammars.
154
155 The following files no longer exist:
156
157 expread.y
158 expread.tab.c
159
160 The following files were added:
161
162 c-exp.y (The C grammar)
163 m2-exp.y (The Modula-2 grammar)
164 parser-code.c (Code that is shared by the above grammar)
165 parser-code.h
166 parser-defs.h
167
168 Makefile.dist Changed to reflect the above dependencies. NOTE: It is
169 now necessary to use the Bison compiler compiler, since it
170 will generate function/variable prefixes other than yy.
171
172 Tue Jun 18 16:47:49 EDT 1991
173
174 symtab.[ch] Added the external variable working_lang, than holds the
175 value of the current working language.
176 Added the ennumerated type language_mode, with the values
177 language_auto and language_manual, the former meaning that
178 GDB sets working_lang as needed, and the latter meaning
179 that the value of working_lang is totally under user
180 control.
181 symtab.[ch] Added the Modula-2 pervasive types INTEGER, CARDINAL,
182 REAL, BOOLEAN and CHAR. Also added the type codes
183 TYPE_CODE_BOOL and TYPE_CODE_CHAR.
184 utils.c Added set_language_command and show_language_command to
185 implement the GDB support commands "set language" and
186 "show language".
187 expression.h A number of identifiers were added to the type exp_opcode
188 to facilitate Modula-2 builtin functions, integer
189 division, and array indexing.
190
191 Wed Jun 19 13:25:58 EDT 1991
192
193 language.h Added the macro STRICT_TYPE, which evaluates to non-zero
194 if the language specified by working_lang requires the use
195 of strict typing of expressions. Eventually, even this
196 will be able to be changed by the user.
197 Added the macro RANGE_CHECK, which evaluates to non-zero
198 if the language specified by working_lang requires the
199 checking of a value against the domain of its type.
200 Eventually, even this will be able to be changed by the
201 user.
202 language.[ch] Predicates involving types (simple_type, ordered_type,
203 same_type, integral_type, numeric_type, character_type,
204 boolean_type, float_type) are added. These predicates are
205 based on the current value of working_lang, and are handy
206 in type-checking.
207
208 Wed Jun 19 15:39:34 EDT 1991
209
210 eval.c Added the function type_array_rank which computes the rank
211 of an array type.
212 valarith.c Added the funtion value_bool, which when given a integer
213 value.h value (ie. struct value *) as an argument, it returns a
214 boolean value (ie. struct value *) true if that integer
215 is non-zero, and a boolean value false otherwise.
216 valprint.c Added cases for TYPE_CODE_BOOL, so Modula-2 BOOLEAN values
217 will print out properly.
218
219 Wed Jun 19 16:36:34 EDT 1991
220
221 valops.c Added the function value_capitalize, which returns it
222 value.h argument capitalized if its argument is a lowercase
223 letter, or the argument unchanged if its argument is not a
224 letter.
225 valarith.c Added the function range_check_p, which returns non-zero
226 value.h if its value argument is between the integral bounds upper
227 and lower.
228 Added the function range_check_enum_p, which makes sure
229 that its value argument is a valid member of the domain of
230 its type argument.
231 Added the function range_check_range_p, which makes sure
232 its value argument lies between the upper and lower bounds
233 of its type argument, which must be a ranged type.
234 Added the function check_array_index, which range and type
235 checks an index of an array.
236 Added the function value_multi_subscript, which computes
237 array[idx1,idx2...idxN], given a value array and an array
238 of values representing indicies.
239 values.c Changed value_from_long to work with TYPE_CODE_CHAR and
240 unpack_long to work with TYPE_CODE_BOOL and
241 TYPE_CODE_CHAR.
242
243 Wed Jun 19 18:04:08 EDT 1991
244
245 symtab.c Stored pervasive types in a structure and make
246 lookup_pervasive_type() a lookup function that was based
247 on working_lang. If lookup_pervasive_type() returned
248 non-zero, then that value was returned (a fix, since
249 before it simply wouldn't return the pervasive type.)
250 language.h Added the macro CAST_IS_CONVERSION, which evaluates to
251 non-zero if the language specified by working_lang means
252 "conversion" when it says "cast".
253 valops.c Added the function value_real_cast(), which performs a
254 value.h *cast*, not a *conversion*, which is what value_cast()
255 does when it can. In particular,
256 value_cast(<float_type>,4) = 4.0, while
257 value_real_cast(<float_type>,4) = some mess.
258 eval.c Modula-2 builtin functions implemented: ABS, CAP, CHR,
259 parser-code.c FLOAT, HIGH, MAX, MIN, ODD, ORD, TRUNC, and VAL.
260 expression.h Added macros MAX_OF_TYPE and MIN_OF_TYPE to work with MAX
261 and MIN on integral types. *NOTE*: These are currently
262 hardcoded to work only if there are 8 bits per storage
263 unit. FIXME.
264 eval.c Made logical functions call value_bool to return a
265 properly typed boolean value, based on working_lang.
266
267 Thu Jun 20 11:55:27 EDT 1991
268
269 valprint.c Types now print out in a Modula-2 fashion. This works for
270 the cases when the type is printed out step-by-step, that
271 is, it doesn't work when the name of a structured type
272 (which includes the keyword "struct", etc.) is simply
273 displayed.
274 FIXME: Perhaps this is bad. Parts of it seem to kludgey,
275 since type specifications in C and Modula-2 are very
276 different. The C printing of a type is very recursive,
277 whereas in Modula-2 it is generally very simple. C has
278 type prefixes and suffixes, which have no real analogue in
279 Modula-2. Maybe type_print() should call a language
280 specific type printer. This is also advantageous if we
281 compile GDB to exclude some of the languages. We'll just
282 leave those functions out.
283
284 Thu Jun 20 16:57:10 EDT 1991
285
286 dbxread.c When reading the complete symbol table in (via
287 psymtab_to_symtab()), the number and types of function
288 arguments are added to a function type. define_symbol()
289 calls add_param_to_type() to accomplish this.
290 Assumption: when we come across a function definition
291 (N_FUN symbol with an 'f' or 'F' in the name), its
292 arguments will appear before another function definition.
293 When a function is found, a pointer to its type is placed
294 in the global in_function_type. Changes that
295 add_param_to_type() makes are to this global.
296 valprint.c The type of a function now includes (for Modula-2) the
297 types of its parameters.
298 eval.c Type checking and a check for the proper number of
299 arguments is now done for function calls. Not sure of the
300 impact this has on C++ member function yet.
301
302 Thu Jun 20 19:58:48 EDT 1991
303
304 valprint.c Rewrote the type printer. Broke it into two language
305 specific parts, adding the functions type_print_m2() and
306 type_print_m2_1().
307 An unfortunate consequence is this: if you debugging a C
308 program in Modula-2 mode (why?), info types does not work
309 well with regular expressions, since the types are printed
310 out in Modula-2 terminology, but stored in C terminology.
311 language.[ch] Added the functions new_type_last(), type_keyword(), and
312 type_sep() to aid in the printing of typedefs.
313 symtab.c Made the printing of typedefs as language independent as
314 possible through calls to new_type_last(), type_keyword(),
315 and type_sep().
316
317 Fri Jun 21 11:50:26 EDT 1991
318
319 dbxread.c Check all incoming ennumerated types. If it looks like
320 Modula-2's BOOLEAN type, then change the type_code of the
321 type to TYPE_CODE_BOOL so we can process it as a boolean
322 variable.
323 valprint.c Replaced some of the 0x%x with calls to sprintf and
324 hexformat() in val_print().
325 language.[ch] Added the function hex_to_string(), which converts its
326 integral argument to a hexadecimal number (format is
327 language based) and returns the result as a string.
328
329 Mon Jun 24 12:25:07 EDT 1991
330
331 valprint.c Some functions call type_print_1() directly, instead of
332 value.h using type_print(), so they can specify where (column) to
333 print things. Since type_print() takes care of language
334 dependence, that needs to be called first. Added a
335 parameter depth to type_print() (so it is now like
336 type_print_1). Changed type_print to type_print_at, and
337 made type_print a macro that passes a depth argument of
338 zero.
339 symmisc.c Changed all calls to type_print_1 to calls to
340 type_print_at.
341 Makefile.dist Made it possible to build GDB for a specific set of
342 depend languages. Do this by passing a definition for the macro
343 LANGS to make. LANGS should be a string containing a
344 space-separated list of language names (ie. LANGS="c m2").
345 The default is to build all languages. Note that grammar
346 files must follow the naming convention of <lang>-exp.y.
347 gdb.lang This holds the current value of the LANGS macro. It is
348 examined every time make is called, and is updated if
349 necessary.
350 eval.c Added #ifdef _LANG_<lang> to these files.
351 expread.c Still need to add them to dbxread.c and coffread.c.
352 main.c
353 source.c
354 symtab.c
355 utils.c
356 valarith.c
357 valprint.c
358
359 Mon Jun 24 16:33:11 EDT 1991
360
361 language.[ch] Added the functions hexformat_pre() and
362 hex_to_string_pre(), which take a prefix argument to
363 include in the format string. Thus, hexformat_pre("08") will
364 return "0x08x" (if the working language is language_c).
365 Made hexformat() and hex_to_string() calls to the above
366 with "" as the prefix argument.
367
368 am29k-pinsn.c, arm-pinsn.c, breakpoint.c, convex-tdep.c, exec.c, core.c,
369 dbxread.c, i386-pinsn.c, i386-stub.c, i386-xdep.c, i960-pinsn.c,
370 infcmd.c, inflow.c, m68k-pinsn.c, m68k-stub.c, m88k-pinsn.c,
371 mips-pinsn.c, mips-tdep.c, ns32k-pinsn.c, printcmd.c, pyr-pinsn.c,
372 pyr-tdep.c, pyr-xdep.c, remote-vx.c, remote.c, solib.c, source.c,
373 stack.c, sun386-xdep.c, symfile.c, symm-xdep.c, symmisc.c, tahoe-pinsn.c,
374 valprint.c, vax-pinsn.c
375
376 Changed all occurences of 0x%[0-9]*l*x in printf format strings to
377 calls to hexformat() and hex_to_string(). Format strings without
378 the leading "0x" were ignored.
379
380 depend Updated to take the above into account.
381
382
383 Tue Jun 25 15:27:18 EDT 1991
384
385 symtab.h Added the types range_mode_t, range_check_t, type_mode_t,
386 and type_check_t to keep track of the current state of
387 range and type checking.
388 main.c Added the variables range_mode, range_check, type_mode,
389 and type_check to record the current state of range and
390 type checking. Added initialization code to main().
391 language.h Changed the macros STRICT_TYPE and RANGE_CHECK to examine
392 the above variables.
393
394
395 Tue Jun 25 17:57:08 EDT 1991
396
397 dbxread.c process_one_symbol() updates the variable (enum language)
398 source_lang based on the extension of the filename
399 contained in the N_SO sybmol that started this symtab.
400 When end_symtab() is called, the value of source_lang is
401 put into the language field.
402 stack.c select_frame() sets working_lang (and possibly type_check
403 and range_check) to the language field of the symtab
404 associated with the frame that is selected if working_mode
405 is language_auto. If working_mode is language_manual, a
406 warning is printed and working_lang is not set.
407 language.c Added the function set_type_range(), which sets the value of
408 type_check and range_check (if their modes call for
409 automatic setting) based on the current value of
410 working_lang. A non-zero argument will cause the current
411 settings to be output.
412
413
414 Wed Jun 26 14:51:40 EDT 1991
415
416 eval.c Added range checks on assignment.
417 m2-exp.y Added the grammar for sets to the language. Currently,
418 these do not do anything except print an error message.
419
420 Wed Jun 26 17:01:04 EDT 1991
421
422 m2-exp.y Added the ability for parse_number() to parse negative
423 numbers. A global flag is set upon encountering a unary
424 minus. This was done to make, for example, 1 parse as a
425 CARDINAL, and not as an integer, per Wirth's examples in
426 Programming in Modula-2 ed.4.
427 valprint.c Added support for "set radix 2" by then setting
428 output_format to 't'.
429 eval.c Implemented range checking on subrange types. Added calls
430 to range_check_range_p for BINOP_ASSIGN and BINOP_VAL.
431 Implemented MIN and MAX for ennumerated types. The
432 minimum value of an ennumerated type is defined by Wirth
433 as the first identifier, and the maximum as the last.
434 m2-exp.y Made octal numbers ending with "B" be characters and those
435 ending with "C" be numbers, per Wirth's book. (p. 34)
436
437 Thu Jun 27 14:11:52 EDT 1991
438
439 stack.c select_frame() now only sets working_lang, it does not
440 notify the user. If working_mode is language_manual, then
441 a warning is issued once.
442 main.c At the end of each call to execute_command(), working_lang
443 is checked against the local static (enum language)
444 current. If they differ and working_mode is
445 language_auto, the new settings of language, type and
446 range checking are printed out.
447 stack.c Modified frame_info() to include the language of the
448 current frame in the output of "info frame".
449 language.[ch] Added the function language_str() which returns the name
450 of the current language.
451
452 Fri Jun 28 15:33:14 EDT 1991
453
454 m2-exp.y Added the built-in procedures INC, INCL, DEC, and DECL to
455 the language. INCL and DECL currently cause an error,
456 since sets are not implemented yet. INC and DEC are
457 implemented as PREINCREMENT/PREDECREMENT with one
458 argument, and as ASSIGN_MODIFY with two arguments.
459 eval.c Added type checking to the above cases.
460 value.h Added not_lval_constant to the lval_type ennumerated type.
461 not_lval_constant means that the value is a constant
462 value; that is 3 or 'a' or TRUE, not as in a constant
463 identifier. This is used to help coerce numbers such as 3
464 to either signed or unsigned numbers.
465 valops.c Added the function value_coerce_constants() which coerces
466 constant integers as following: if one is a constant and
467 the other is not, the constant's type is set to the type
468 of the other argument. If both are constants and one is
469 signed, the other is converted to a signed constant.
470
471 Sat Jun 29 17:26:29 EDT 1991
472
473 valarith.c Added a better range checker. It now checks range
474 (successfully) on integral operations [+-] (signed and
475 unsigned) for any C sized type. Still does not work well
476 for multiplication.)
477 int_in_size() returns an integer that is coerced to fit into
478 specified number of bytes.
479
480 Mon Jul 1 13:04:14 EDT 1991
481
482 language.[ch] Added the function binop_result_type(), which returns the
483 builtin (struct type *) type that would be the result of a
484 binop on the two values V1 and V2.
485
486 Wed Jul 3 19:22:53 EDT 1991
487
488 source.c Extended source_info() to include the source language in
489 the output from "info source".
490
491 Fri Jul 5 13:48:52 EDT 1991
492
493 utils.c Moved the support functions for the GDB set/show commands
494 dealing with language into language.c.
495 language.c Added the function language_info(), which displays info
496 about the current working language, type and range check
497 settings. Called via the GDB command "info language".
498 Added an initialization routine _initialize_language(),
499 that sets defaults for the language, type and range
500 variables and sets up the new GDB commands.
501 main.c Language setup moved to language.c.
502 depend Rebuilt.
503
504 Mon Jul 8 10:10:22 EDT 1991
505
506 valarith.c Debugged the range checker for arithmetic. Still does not
507 work for multiplication very well.
508
509 Mon Jul 8 12:40:37 EDT 1991
510
511 language.[ch] Added the function value_true() which returns non-zero if
512 its argument represents a boolean true value.
513 breakpoint.c Changed breakpoint_cond_eval() to call value_true() to
514 check the truth of an expression.
515
516 Thu Jul 11 12:51:34 EDT 1991
517
518 language.[ch] Added the predicate structured_type(), which returns
519 non-zero if the argument is a structured type.
520 Added the predicate pointer_type(), which returns non-zero
521 if the argument is a pointer type.
522 eval.c Added the ability to do addition and substraction on
523 pointers and integers. This case simply bypasses the
524 type checker.
525
526 Thu Jul 11 14:41:42 EDT 1991
527
528 include/stab.def
529 Added the symbol N_DEFD (0x4a) which is a definition
530 module dependency that is used by the GNU Modula-2
531 compiler and the linker. It is not important to GDB,
532 except that [dbx|coff|mips]read.c should ignore these
533 symbols.
534
535 Fri Jul 12 16:07:00 EDT 1991
536
537 valprint.c Changed the TYPE_LENGTH(type) >= 0 to TYPE_LENGTH(type) >
538 0 in val_print(). Also added statements to the else part
539 to coerce type (argument to val_print) to a pointer type
540 if it is an "array of unspecified length".
541 valops.c Added the function value_m2_string(), which returns a
542 (value) value which is a constant string, whose type is
543 (ARRAY [0..n] OF CHAR). The length field of the type
544 structure is set to zero, so it will be interpreted as an
545 "array of unspecified length".
546 stack.c Moved the language/frame mismatch check to
547 main.c:execute_command().
548 main.c The working language is recorded each time
549 execute_command() is executed. If working lang has
550 changed during its execution, then the new
551 language/type/range info is printed out for the user. If
552 the working language does not match the language of the
553 frame, a warning is issued.
554
555 Sat Jul 13 16:16:39 EDT 1991
556
557 eval.c Moved all the type-checking stuff for operators to
558 language.[ch] language.c. This is so we can keep language-specific
559 stuff (like for what type operators are defined) in
560 language.c.
561 language.[ch] Added the function binop_type_check(), which checks to see
562 if its two (value) arguments are type-compatible with its
563 opcode argument. The opcode should represent an operation
564 involving an operator. Also added the macro function
565 unop_type_check, which calls binop_type_check with a
566 NULL second argument.
567 expprint.c Added Modula-2 operators to the op_print_tab, so info
568 expression.h break works correctly. Also added "op_string", which
569 returns the string corresponding to the (enum exp_opcode)
570 opcode that is its argument.
571
572
573 Sat Jul 13 18:26:18 EDT 1991
574
575 coffread.c Added code to record the type of function arguments with
576 each paricular function. Code is very similar to that
577 added to dbxread.c.
578 dbxread.c Moved add_param_to_type() to symtab.c
579 symtab.[ch] Added function add_param_to_type() from dbxread.c
580
581 *** NOTE: The above additions have not been tested.
582
583 Mon Jul 15 12:50:47 EDT 1991
584
585 langauge.[ch] Added the functions type_error and range_error, which work
586 like error() except if the type/range mode is set to
587 *_mode_warn, then they do not do a return_to_top_level(),
588 but merely print a warning.
589 Also changed [set|show]_[type|range]_command() to support
590 the new "warn" feature.
591
592 Thu Jul 18 17:50:54 EDT 1991
593
594 mipsread.c Added code to record the type of function arguments with
595 each particular function. Code is very similar to that
596 added to dbxread.c.
597
598 *** NOTE: The above additions have not been tested.
599
600 Fri Jul 19 11:19:10 EDT 1991
601
602 defs.h Added macros MAX_OF_SIZE, MIN_OF_SIZE, UMAX_OF_SIZE, and
603 UMIN_OF_SIZE, which when given a size of a numeric type,
604 return the maximum and minimum value it can hold. UMAX...
605 and UMIN... return the result for unsigned types.
606 symtab.h Added the macros MAX_OF_TYPE and MIN_OF_TYPE to operate on
607 struct types. They call above macros.
608 dbxread.c Renamed the MAX and MIN_OF_TYPE macros to ..._OF_CTYPE to
609 avoid a name conlict with the above.
610 c-exp.y Added range checking on numeric constants in
611 parse_number() for completeness.
612 valarith.c Made binop_user_defined_p() and unop_user_defined_p()
613 return 0 if working_lang is not language_c.
614
615 Thu Aug 8 14:17:22 EDT 1991
616
617 main.c
618 printcmd.c
619 breakpoint.c Documentation strings of some commands changed to
620 eliminate the references to the C language where
621 appropriate.
622
623 Tue Aug 13 15:48:03 EDT 1991
624
625 m2-exp.y Added qualified identifiers to the grammar. The semantics
626 are slightly different from those of the GDB operator ::
627 c-exp.y
628 m2-exp.y Added a rule to each grammar of the form: start ::= exp |
629 type_exp, where type_exp is any valid type expression.
630 expression.h
631 eval.c Added the opcode OP_TYPE, and an error case in eval.c.
632 printcmd.c Modified ptype_command() so it actually parses the input
633 (necessary for type expressions with scope qualifiers).
634 Added the function ptype_eval() which expects an
635 expression composed of one OP_TYPE element.
636 *.[ch] Replaced all occurences of parse_c_expression with
637 parse_expression
638 *.[ch] Replaced all occurences of parse_c_1 with parse_exp_1
639
640 [End of ChangeLog entries from Andrew Beers for Modula-2 support.]
641
642 Mon Sep 16 17:19:46 1991 John Gilmore (gnu at cygnus.com)
643
644 Small fixes from Peter Schauer:
645
646 * infrun.c (child_attach): Lint.
647 * solib.c (find_solib): Handle shared libs version 2.
648
649 Small fixes from David Wood:
650
651 * xm-ultra3.h (SYS_SIGLIST_MISSING): Typo.
652
653 Small fixes:
654
655 * remote-vx.c: Move <stdio.h> to top, for FILE. Fix from
656 John S <basrai%kanga.dnet@c3po.sm-alc.af.mil>.
657
658 * utils.c (wrap_here): Avoid wrap action of fputs_filtered if
659 chars_per_line is at maximum (user typed `set width 0'). Fix
660 from Andreas Schwab <schwab@ls5.informatik.uni-dortmund.de>.
661
662 Tue Sep 17 17:31:04 1991 Stu Grossman (grossman at cygnus.com)
663
664 * coredep.c: include ptrace.h where necessary.
665 * mipsread.c(parse_lines): fix unsigned char problem that was
666 messing up line numbers on SGI's and possibly other MIPS based
667 platforms.
668 * infrun.c (child_create_inferior): use better test to check
669 return val from setpgrp().
670 * tm-irix3.h, xm-irix3.h, tconfig/irix3, xconfig/irix3: add these
671 for sgi/irix support.
672
673 Wed Sep 18 04:33:31 1991 Per Bothner (bothner at cygnus.com)
674
675 * mipsread.c (parse_symbol): Put non-static procedures
676 in the global block.
677
678 Fri Sep 13 00:14:52 1991 John Gilmore (gnu at cygnus.com)
679
680 Patch together `text_start' and `text_end' for 29K port.
681
682 * exec.c (exec_command): If NEED_TEXT_START_END, define the
683 variables and set them based on the exec file.
684 * am29k-tdep.c: declare text_start.
685 * valops.c (call_function_by_hand): declare text_end.
686
687 * inferior.h: Eliminate CANNOT_EXECUTE_STACK in favor of
688 defining CALL_DUMMY_LOCATION as BEFORE_TEXT_END. This is
689 because machines that do this will also have to know to
690 set NEED_TEXT_START_END. Besides, it was a redundant way to
691 say the same thing.
692 * tm-29k.h, tm-convex.h, tm-np1.h: Eliminate
693 CANNOT_EXECUTE_STACK, define CALL_DUMMY_LOCATION and
694 NEED_TEXT_START_END.
695
696 Thu Sep 12 00:22:24 1991 John Gilmore (gnu at cygint.cygnus.com)
697
698 AMD 29000 changes from David Wood <wood@david.ultra.nyu.edu>:
699
700 * Makefile.in (CLIBS): Put XM_CLIBS and TM_CLIBS at end.
701 Pass MUNCH_DEFINE to munch whenever we run it.
702 * am29k-pinsn.c (print_insn): Handle NOP specially. Avoid %#x
703 format string; use 0x%x instead.
704 * am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM.
705 * ultra-xdep.c, xm-ultra.h: New files for Ultracomputer host system.
706 * xm-rtbsd.h: New host support for RT/PC running BSD Unix.
707 * inflow.c: Handle `short' process group IDs.
708 * infptrace.c (fetch_register): Support CANNOT_FETCH_REGISTER,
709 and check for ptrace errors.
710 * coffread.c (SDB_REG_TO_REGNUM): Define if not already.
711 (coff_symfile_init): Initialize text_bfd_scnum.
712 (read_coff_symtab): Use it to find the text [and absolute?] sections.
713 * ../config.sub: Add vendor nyu and os "sym[1-9]*".
714 * configure.in: Add hosts rtpc-*-* and a29k-*-*.
715 Merge target arm case with other "easy" cases. Add target
716 cases a29k-*-none (rehack of am29k), a29k-*-kern (remote to
717 Ultracomputer kernel), and a29k-*-sym1 (ultracomputer OS's user
718 process).
719 * minimon.h, remote-adapt.c, remote-mm.c: Add.
720 * munch: Cope with RT/PC putting fns in data segment.
721 Restore ability to override `nm' by specifying MUNCH_NM.
722 * xconfig/rtbsd, xconfig/ultra3: New host systems.
723 * tconfig/a29k: Rename from tconfig/am29k. Add remote-mm
724 and remote-adapt. Remove encapsulated coff #define's (the
725 support should go in BFD, and gdb shouldn't know or care).
726 * tconfig/a29k-kern: Same, but for remote kernel debugging.
727 * tconfig/ultra3: For debugging user processes on Ultra3/Sym1.
728 * tm-29k.h: Update BADMAG (though it should go away).
729 Allow the register definitions to be overridden in another
730 tm-file. Fix SR_REGNUM. Add a mess of _REGNUM's. Separate
731 RETURN_REGNUM from GR96_REGNUM and DUMMY_SAVE_GREGS from
732 DUMMY_SAVE_GR96, for handling kernel calling conventions
733 that use GR64+ rather than GR96+.
734 * tm-ultra3.h: New file, for use on Ultra3 Unix as well as for
735 remote debugging of Ultra3 kernel. Includes tm-29k.h and
736 overrides various things.
737
738 * remote-mm.c (mm_attach, mm_wait): Handle attach like
739 child_attach does, making a clean stop in the newly attached
740 program.
741 * remote-eb.c: Lint.
742
743 * coffread.c: Make coffread independent of any particular
744 variant of COFF. Avoid #include-ing any particular one except
745 internalcoff.h. BFD now passes key values for symbol reading
746 as part of its coff_data structure (LINESZ, SYMESZ, AUXESZ,
747 and the symbol masks and shifts); use them.
748 Remove obsolete end_of_text_addr.
749
750 * exec.c: Remove unused include files.
751
752 Wed Sep 11 19:38:44 1991 John Gilmore (gnu at cygint.cygnus.com)
753
754 * Makefile.in (documentation targets): Pass $(M4).
755 Bugfix from eggert@twinsun.com (Paul Eggert).
756
757 * stack.c (down_silently_command): Check for stack existence.
758
759 Tue Sep 10 23:08:29 1991 John Gilmore (gnu at cygint.cygnus.com)
760
761 * Makefile.in (VERSION): Update to 4.0.3.
762
763 Tue Sep 10 09:19:29 1991 John Gilmore (gnu at cygint.cygnus.com)
764
765 * core.c (core_file_command): Print frame at coredump with
766 its level number, by calling print_stack_frame.
767 * frame.h: Add selected_frame_level, print_stack_frame.
768 * frame.h, stack.c: Remove print_sel_frame, print_selected_frame.
769 * convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c:
770 Change print_sel_frame and print_selected_frame callers to
771 print_stack_frame.
772
773 * dbxread.c (read_ofile_symtab): Avoid empty else clause.
774 * symfile.c (free_named_symtabs): Ditto.
775 * main.c (main): wrap_here needs an arg.
776 * solib.c (find_solib): Avoid memory access if _DYNAMIC is zero.
777 (solib_add): Avoid noise.
778 (solib_create_inferior_hook): Lint.
779 (sharedlibrary_command): Move dont_repeat to here.
780 * utils.c (error): Call wrap_here to force buffered output.
781
782 Small patches from Peter Schauer:
783
784 * coffread.c (start_symtab): Free any existing line_vector before
785 malloc-ing new one.
786 (read_coff_symtab): Ditto for type_vector.
787
788 * source.c (lines_to_list): New variable, replacing function.
789 (all uses): Use as variable.
790 (_initialize_source): Add 'set listsize' and 'show listsize'.
791 * utils.c (lines_to_list): Remove function.
792 * stack.c (print_frame_info): Use as variable.
793 * defs.h (lines_to_list): Remove declaration.
794
795 Mon Sep 9 13:45:57 1991 John Gilmore (gnu at cygint.cygnus.com)
796
797 * breakpoint.c (insert_breakpoints): Restore warning about
798 the program might be running in another process, but only for
799 systems with this brain death (#ifdef ONE_PROCESS_WRITETEXT).
800 * xm-hp300bsd.h, xm-mips.h, xm-vax.h: Define it.
801
802 * utils.c (error): if error_pre_print is set, print the string
803 first.
804 * main.c (main, print_gnu_advertisement, print_gdb_version):
805 Reformat legalese so it always prints, but acts as an "I'm here"
806 message while symbols are being read. If any errors occur,
807 print a few newlines to set off the message and start it at the
808 left margin. Remove mention of "help" command, and don't yak
809 about symbol reading.
810 (catch_errors): Error string is now printed first in case of
811 error, not last.
812 * command.c (undef_cmd_error, lookup_cmd): On undefined command,
813 suggest the "help" command.
814
815 * Makefile.in (VERSION): Set to 4.0.2.
816
817 Thu Sep 5 23:49:48 1991 John Gilmore (gnu at cygint.cygnus.com)
818
819 * .gdbinit: Remove useless "rr" command. Set complaints
820 to 1 for people debugging gdb.
821
822 * breakpoint.c, remote-vx.c: Reword strings printed by
823 catch_errors callers.
824
825 Wed Sep 4 11:07:50 1991 John Gilmore (gnu at cygint.cygnus.com)
826
827 * WHATS.NEW: "history write -> history save". Doc "write on/off".
828 (Fix from kenc@viewlogic.com.)
829
830 Fix some infrastructure to be able to cope with host and target
831 machines with different sized basic types (ints, ptrs, etc).
832 (Idea from pierre@la.tce.com (Pierre Willard).)
833
834 * values.c (value_from_longest): Rename from value_from_long.
835 Handle pointer types as well as integers, so that targets with
836 different pointer sizes from the host can be accomodated.
837 * breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c,
838 valarith.c, valops.c, valprint.c, value.h, values.c: Rename
839 uses of value_from_long to value_from_longest.
840 * eval.c, findvar.c, printcmd.c, valarith.c, valops.c: Pass
841 the correct pointer type to value_from_long{est}.
842
843 * doc/gdb.texinfo ($_, $__): Describe types of these variables.
844
845 * remote-vx.c: Remove obsolete code for calling functions via
846 vxworks kludge interface (it referenced value_from_long).
847
848 * valops.c (value_string): Find malloc with lookup_misc_func, not
849 raw search.
850
851 Tue Sep 3 18:37:46 1991 John Gilmore (gnu at cygint.cygnus.com)
852
853 Make writing to files work properly. (Fixes to BFD are also needed.)
854
855 * core.c (core_open): Open file ourselves, read or r/w, depending on
856 write_files. Use bfd_fdopenr.
857 * gdbcore.h (write_files): New variable.
858 * exec.c (write_files): Define variable, add set&show for it.
859 (exec_file_command): Use write_files to open for read or r/write.
860
861 Make shared library reading happen automatically. These changes
862 are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.
863
864 * inferior.h (stop_soon_quietly): Add to exported variables.
865 * infrun.c (child_create_inferior): call solib hook, if defined.
866 (child_attach): call solib hook, if defined.
867 * solib.c: Include inferior.h. Add from_tty to so_list as kludge.
868 (find_solib): Use lookup_misc_func rather than hand-rolled.
869 (symbol_add_stub): New stub for catch_errors.
870 (solib_add): Avoid output if !from_tty. Catch errors rather
871 than just calling symbol_file_add and bombing.
872 (solib_create_inferior_hook): Interface with the target process
873 to let it read and alloc shared libs, then figure out what it did.
874
875 * core.c (validate_files): Fix typo, soften warning.
876 (Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.)
877
878 * utils.c (fputs_demangled): Avoid duplicate printing if
879 demangling is off. (Fix from J.T. Conklin <jtc@cayenne.com>.)
880
881 * infrun.c (proceed): Cast -1 to (CORE_ADDR) before comparing.
882 (Fix from pierre@la.tce.com (Pierre Willard).)
883
884 * main.c (catch_errors): Change argument to a char * from an int,
885 since a char * can point to a struct full of glop, but an int
886 is not guaranteed to be able to hold a pointer.
887 * breakpoint.c (breakpoint_cond_eval, bpstat_stop_status,
888 breakpoint_re_set_one, breakpoint_re_set): Adapt.
889 * core.c (core_open, solib_add_stub): Adapt.
890 * remote-vx.c (symbol_stub, add_symbol_stub, callers): Adapt.
891
892 Wed Aug 28 18:18:05 1991 John Gilmore (gnu at cygint.cygnus.com)
893
894 * Makefile.in: Update VERSION to 4.0.1. Evade GNU Make bug
895 by adding .NOEXPORT target.
896
897 Fri Aug 23 17:14:25 1991 John Gilmore (gnu at cygint.cygnus.com)
898
899 * GDB-4.0 release!
900 * Update README.
901 * Makefile.in (VERSION): Roll to 4.0.
902 (gdb.tar.Z): Make refcard.ps as well, for shipment.
903
904 Fri Aug 23 14:07:09 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
905
906 * doc/gdb.texinfo: minor rewordings, crossref to ptype from print,
907 more on printsyms.
908
909 * doc/Makefile, Makefile.in: generate "gdb-all.texi" rather than
910 "gdb-all.texinfo"
911
912 * doc/rdl-apps.texi: renamed from rdl-apps.texinfo
913
914 * Makefile.in, doc/Makefile, doc/.Sanitize, doc/gdb.texinfo:
915 reflect above name change
916
917 * WHATS.NEW: correct pointer to refcard.
918
919 * doc/gdb.texinfo: update New Features, Installing
920
921 * doc/gdbint.texinfo: add short description of configure +template
922
923 Fri Aug 23 11:46:08 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
924
925 * doc/gdb.texinfo: update, fix bugs in "Installing" appendix
926
927 Fri Aug 23 01:02:00 1991 John Gilmore (gnu at cygint.cygnus.com)
928
929 * Makefile.in: Add config.sub, make doc/rdl-apps.texinfo for
930 tar file, add dependencies for referenced doc files.
931
932 Thu Aug 22 22:17:06 1991 Stu Grossman (grossman at cygint.cygnus.com)
933
934 * coffread.c, symfile.c, stack.c: saberized.
935
936 Thu Aug 22 16:20:27 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
937
938 * doc/refcard.tex: permuted Essential Commands sec
939
940 * doc/gdb.texinfo: new C++ chapter; revised installation appendix;
941 new doc for
942 set/show symbol-reloading
943 default set complaints 0
944 info all-registers
945 RET-repeat disabled after prompted long displays
946 processID (attach) interpretation of 2nd GDB cmdline arg
947
948 Thu Aug 22 14:05:47 1991 Stu Grossman (grossman at cygint.cygnus.com)
949
950 * expread.y, coffread.c, dbxread.c, target.c, mem-break.c,
951 cplus-dem.c, values.c, valprint.c, symfile.c, remote.c,
952 breakpoint.c, main.c: lint.
953
954 Thu Aug 22 02:02:26 1991 John Gilmore (gnu at cygint.cygnus.com)
955
956 Install new configuration scheme for GDB and friends.
957
958 * config.sub: Translate ordinary names to three-part names.
959 * configure: Use three-part names internally.
960 * configure.in: Translate three-part names to filenames.
961
962 * README, WHATS.NEW: Update for gdb-4.0.
963 * Makefile.in: Roll VERSION to 3.99.
964
965 Wed Aug 21 18:21:09 1991 John Gilmore (gnu at cygint.cygnus.com)
966
967 * infptrace.c (KERNEL_U_ADDR_BSD): Include a.out.gnu.h.
968 * i960-tdep.c, m68k-tdep.c, sparc-tdep.c, tm-i960.h,
969 tm-m68k.h, remote-nindy.c: Change ext_format_XXX structs
970 to single structures rather than arrays; when passing
971 their address, use &. This avoids trouble with bdead compilers.
972 * mcheck.c: Don't include <stdlib.h>; just declare "void abort();"
973 instead. This avoids portability headaches.
974 * mips-tdep.c (mips_do_registers_info): Only print FP regs if
975 asked to.
976 * source.c (open_source_file): Avoid ANSI const bdeath by
977 skipping declaration and then casting result value.
978 * tm-hp300bsd.h: Clarify comment.
979 * utils.c (strstr): Result is const char *; ANSI bdeath.
980 * xm-hp300bsd.h: Define HOST_BYTE_ORDER. Redefine INT_MIN,
981 since system include file defines it differently from "defs.h",
982 though the two are equivalent for our purposes.
983 * tconfig/hp300bsd: Add m68k-tdep.o.
984
985 Tue Aug 20 16:01:11 1991 John Gilmore (gnu at cygint.cygnus.com)
986
987 * tconfig/sun*4: Remove warnings about system assembler.
988
989 Mon Aug 19 13:44:46 1991 John Gilmore (gnu at cygint.cygnus.com)
990
991 * mcheck.c: Avoid warning about undeclared abort fn.
992 * tm-sparc.h (PC_ADJUST): Avoid calling error() from this;
993 it causes recursive calls to error() when used in cleanups.
994 To do so requires that we make it a function, so we do.
995 * sparc-tdep.c (sparc_pc_adjust): New implem of PC_ADJUST.
996 * utils.c (do_cleanups): Remove the current cleanup from the
997 chain *before* calling it, in case error() is called from it.
998 The result won't be pretty, but won't be an infinite loop either.
999
1000 Mon Aug 19 00:41:04 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
1001
1002 * dbxread.c (read_struct_type): Grok anon structs for C++.
1003 (vb_name, vptr_name): Null terminate these strings.
1004
1005 Fri Aug 16 08:31:03 1991 John Gilmore (gnu at cygint.cygnus.com)
1006
1007 Minor bug fixes from BSD Net2 gdb:
1008
1009 * blockframe.c (get_prev_frame_info): If FRAME_CHAIN_COMBINE
1010 returns 0, there is no previous frame.
1011 * breakpoint.c (commands_command): If !from_tty, don't call
1012 input_from_terminal_p().
1013 * dbxread.c (record_misc_function): Speed up slightly.
1014 (compare_psymbols): Ditto.
1015 * infcmd.c (do_registers_info): Take a second argument to
1016 determine whether to print float registers. "info registers"
1017 does not do so anymore. "info all-registers" does, now.
1018 * mips-tdep.c, pyr-tdep.c (xxx_do_registers_info): Take second
1019 arg and ignore it.
1020 * tm-mips.h, tm-pyr.h (DO_REGISTERS_INFO): Pass second arg.
1021 * inflow.c (initialize_inflow): Set tflags_ours correctly.
1022
1023 Other fixes:
1024
1025 * breakpoint.c (bpstat_do_actions): Use a cleanup to restore
1026 executing_breakpoint_commands if we are interrupted by error.
1027 * coffread.c (init_lineno): Avoid problem with zero-sized linetab
1028 versus malloc/free. From: john@labtam.labtam.oz.au (John Carey).
1029 * core.c (solib_add_stub, core_open): Call SOLIB_ADD inside a
1030 catch_errors() so we can setup the frame regardless of whether
1031 the shared libs work.
1032 * ieee-float.c (double_to_ieee_extended): Get exponent from
1033 right place in little-endian systems. From John Carey.
1034
1035 Thu Aug 15 18:43:57 1991 John Gilmore (gnu at cygint.cygnus.com)
1036
1037 * main.c: Remove unused terminating_signals and catch_termination().
1038 (long_options): Terminate with a zero element.
1039 [Bugfix from Atsuo Kawaguchi <atsuo@hark86.harl.hitachi.co.jp>.]
1040 (gdb_readline): Make call-compatible with readline.
1041 (init_signals): Improve comments re vfork vs. signal.
1042
1043 * utils.c (prompt_for_continue): Use new gdb_readline().
1044 If we prompt for continuation, we don't let CR repeat the previous
1045 command, once we get back to a prompt. It's too easy to keep
1046 hitting CR, expecting "--more--" prompts, and have some long
1047 command start repeating on you.
1048
1049 Tue Aug 13 16:17:56 1991 John Gilmore (gnu at cygint.cygnus.com)
1050
1051 * blockframe.c (frameless_look_for_prologue): Speed up by
1052 calling SKIP_PROLOGUE_FRAMELESS_P if it's defined.
1053 * tm-sparc.h (SKIP_PROLOGUE, SKIP_PROLOGUE_FRAMELESS_P):
1054 Define two variants, one faster.
1055 * sparc-tdep.c (sparc_frame_chain): Use target_read_memory
1056 and return zero, rather than giving an error.
1057 (setup_arbitrary_frame): Initialize the PC in the new frame.
1058 (skip_prologue): Add a second arg saying whether we're just
1059 checking for a frameless function or not.
1060
1061 * core.c (core_open, core_close, core_xfer_memory): Move
1062 section table pointers and bfd* into the target_ops.
1063 (core_open): Allow errors in shared lib reading, etc.
1064 (core_files_info): Describe shared library sections.
1065
1066 * exec.c (exec_open, exec_close, exec_xfer_memory, xfer_memory,
1067 exec_files_info, set_section_command): Move section table
1068 pointers and bfd* into the target_ops.
1069 (add_to_section_table): Add BFD to section table.
1070
1071 * target.c (target_xfer_memory, target_info): Pass target to
1072 xfer_memory and target_info functions.
1073 * target.h: ''
1074
1075 * gdbcore.h: Move struct section_table.
1076 * target.h: New home of struct section_table.
1077
1078 * solib.c (solib_add): New argument is the target_ops whose
1079 section list is to be added to, if any. Reallocate the
1080 sections in that target to add any that come from shared libs.
1081 (throughout) so_sections renamed to sections.
1082 (solib_xfer_memory): Deleted.
1083 * tm-sunos.h (SOLIB_ADD): Add target argument.
1084 (SOLIB_XFER_MEMORY): Delete.
1085
1086 * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c,
1087 remote-vx.c, remote.c, target.c, target.h: Remove add_syms vector
1088 from target_ops. It's the same on all targets. Add two section
1089 pointers to target_ops.
1090
1091 * stack.c (find_relative_frame): Dump ancient algorithm for
1092 "down", just use handy "next" pointers.
1093 (frame_command): Don't error if there is no stack; let user
1094 set one.
1095
1096 * inflow.c (new_tty_prefork, new_tty): New prefork routine
1097 modifies static state in the parent process; new_tty itself
1098 runs in the child and modifies the child's file descriptors
1099 to match the saved static state.
1100 * infrun.c (child_create_inferior): Call new_tty_prefork,
1101 fork, then new_tty.
1102
1103 * infptrace.c (child_xfer_memory): Add ignored target arg.
1104 * remote-eb.c (eb_xfer_inferior_memory): ''
1105 * remote-nindy.c (nindy_xfer_inferior_memory): ''
1106 * remote-vx.c (vx_xfer_memory): ''
1107 * remote.c (remote_xfer_memory): ''. Rename from
1108 remote_xfer_inferior_memory.
1109
1110 * main.c (main): Only try to attach "corefile" argument if
1111 it starts with a digit.
1112
1113 * symfile.c (symbol_reloading): New "set/show" variable.
1114 (symbol_file_add): Shorten message about symbol reading.
1115 (add_symbol_file_command): Merge with add_syms_addr_command,
1116 since this should work on all targets now.
1117 (stop_whining): Default to zero, to shut up complaints
1118 about bad symbol tables on many systems.
1119 (free_named_symtabs): Just exit unless symbol_reloading.
1120
1121 * xm-sun3os4.h, xm-sun4os4.h: Define BROKEN_LARGE_ALLOCA,
1122 and add comment explaining shared library screw.
1123
1124 * source.c: #if defined => #ifdef.
1125
1126 Thu Aug 8 12:23:19 1991 John Gilmore (gnu at cygint.cygnus.com)
1127
1128 * doc/gdbint.texinfo: Improve doc on porting to new OS's.
1129
1130 Tue Aug 6 17:16:15 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
1131
1132 * doc/rdl-apps.texinfo: provide default readline-appendix finder
1133 (doc/Makefile knows how to make one for local config)
1134
1135 * Makefile.in: use doc/Makefile for doc targets
1136
1137 * doc/Makefile: GDB documentation now has its own Makefile
1138 doc/refcard.tex: renamed from "gdbrc.tex"
1139 doc/.Sanitize: add Makefile; recognize renamed refcard.tex
1140 doc/gdbint.texinfo: add markup in "Cleanups" chapter
1141
1142
1143 Fri Aug 2 00:13:06 1991 John Gilmore (gnu at cygint.cygnus.com)
1144
1145 * values.c (baseclass_addr): When reading target memory, use the
1146 length of the basetype, not the upper type. We've only malloc'd
1147 enough space for the basetype, leading to errors in free().
1148
1149 * expprint.c (print_subexp): Print UNOP_MEMVAL of an OP_LONG that
1150 ends up as a function specially, since we know the actual type of
1151 the pointed-to address. This (somewhat) fixes display of
1152 expressions that include misc_function_vector names. Try `cond 1
1153 !strcmp("a","b")' then `i b'.
1154
1155 * infrun.c: Move DO_DEFERRED_STORES from proceed() to resume().
1156 The child can be proceeded from inside wait_for_inferior in
1157 evaluating breakpoint conditions, and DO_DEFERRED_STORES was
1158 getting skipped in that case.
1159
1160 * expprint.c (print_subexp): Use filtered output, since the
1161 subroutines we call use it, otherwise the output is horribly
1162 mangled, since output of wrappable stuff comes out late.
1163
1164 * Makefile.in: Bump VERSION to 3.98.1
1165
1166 * infrun.c (child_create_process): Use execlp to find the
1167 shell to exec our target program. This requires some fiddling
1168 with `environ' since there is no execlpe().
1169
1170 Thu Aug 1 15:35:17 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1171
1172 * Makefile.in, doc/gdbrc.tex, doc/rc-* (new files):
1173 Minor rearrangement of refcard permits two new make targets--
1174 gdbrc.dvi DVI output for refcard, using CM fonts
1175 gdbrc.ps PostScript refcard, using PS fonts
1176
1177 Wed Jul 31 16:46:21 1991 John Gilmore (gnu at cygint.cygnus.com)
1178
1179 * GDB-3.98 release.
1180
1181 * TODO, Projects, WHATS.NEW, README: Update for gdb-3.98.
1182 * Makefile.in (gdb-all.texinfo): Avoid touching file if M4 dies.
1183
1184 Wed Jul 31 16:35:58 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
1185
1186 * doc/gdb.texinfo: last changes for release.
1187 Minor typo and formatting fixes; incorporated most fixes remaining from
1188 filed mail commenting on earlier drafts.
1189
1190 Added warnings: pipes don't work in run command;
1191 conditions are converse of assertions;
1192 step over fn without debug info goes to next fn;
1193 vars may have "wrong" values near fn entrance, exit
1194
1195 Added example from Kingston on printing repeated nonadjacent values
1196
1197 Added explicit mention that in Emacs gdb mode C-c and C-z are like
1198 shell mode for signals
1199
1200 Renamed "Stepping and Continuing" to "Continuing and Stepping" so it
1201 doesn't sound so much like its parent "Stopping and Continuing"; also
1202 moved entries on continue to top of section, so they don't get lost.
1203
1204 Improved installation directions in appendix, added manual formatting
1205 instructions
1206
1207 Tue Jul 30 17:26:39 1991 John Gilmore (gnu at cygint.cygnus.com)
1208
1209 * configure.in: Remove xm.h and tm.h even if we aren't linking
1210 new ones, so "./configure sun4; ./configure none" does the right
1211 thing. Assume that alldeps.mak and depend are already built in
1212 srcdir, and avoid running "make" (particularly "make depend",
1213 which involves "gcc") from inside configure. Build Makefile
1214 directly rather than building Makefile.conf first.
1215 * configure: Regenerate with above changes.
1216 * Makefile.in: Use $(BISON) to find bison. Roll VERSION
1217 to 3.98. Revise gdb.tar.Z procedure to produce a file
1218 called gdb-$(VERSION).tar.Z but which unpacks into a
1219 directory called "gdb". Move non-source files out of
1220 $(SFILES_SUBDIR). Pretty up alldeps.mak with comments.
1221 (depend): Don't try to do "gcc expread.y".
1222 (expread.o): Update dependencies by hand.
1223
1224 Mon Jul 29 15:21:09 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
1225
1226 * doc/gdb.texinfo:
1227 Fixed a variety of small typos that prevented info from formatting
1228 cleanly; altered too-long heading for GPL Appendix, as discussed
1229 w/RMS; Changed date on cover to July 91.
1230
1231 Fri Jul 26 13:20:02 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
1232
1233 * doc/gdb.texinfo:
1234 (1) Applied some fixes due to comments from Larry Breed (easier ones
1235 through chapsec 5.2)
1236 (2) Eliminated use of @footnote---had my doubts about it anyways, and
1237 it's broken in latest texinfo
1238 (3) Introduced *some* use of [] for optional arguments, where
1239 explanation is not simpler by listing cmd w arg and cmd w/out arg
1240 separately. Still not using @deffn.
1241 (4) Dropped in GPL-2. NOTE: one of GPL-2 or texinfo is broken; a
1242 couple of headings are too long. Need patches to texinfo or revision
1243 to GPL-2.
1244
1245 * Partial update to README (which still needs work for this
1246 release!): (1) use of configure corrected for new script,
1247 (2) "make gdb.dvi" and "make gdb.info" mentioned.
1248
1249 Wed Jul 24 06:44:02 1991 John Gilmore (gnu at cygint.cygnus.com)
1250
1251 * symtab.c (lookup_symbol): Don't complain right off about
1252 no debug symbols; use the misc function vector first.
1253 (list_symbols): Use misc function vector to find symbols
1254 that don't have debug info, and print them.
1255 (find_pc_symtab): Temporarily avoid fatal() when psymtab
1256 PC range doesn't match symtab PC range, as it does on the
1257 MIPS because our symtab reading isn't perfect.
1258
1259 * dbxread.c (dbx_symfile_read): Make warning about
1260 "no debug symbols" slightly nicer.
1261
1262 * source.c (select_source_symtab): If "main" symbol exists,
1263 but decode_line_spec can't find line info, don't just return
1264 a zero; try other source symtabs or give an error.
1265
1266 * mipsread.c (parse_partial_symbols): Sort the psymtabs by
1267 their low addresses first, then rip through fixing high addrs.
1268
1269 * ns32k-opcode.h (sfsr): Bugfix from Rune Nerg}rd,
1270 <runene@ifi.uio.no>.
1271 (NS32K_SVC_IMMED_OPERANDS): Reverse the #ifndef.
1272
1273 Tue Jul 23 18:52:43 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
1274
1275 * Minor, mostly mechanical, cleanup of doc subdir for clean
1276 makeinfo'ing and TeXing; also ensured gdb-all.texinfo (post-m4)
1277 and gdb.info (post- texinfo2 makeinfo) generated for distribution.
1278
1279 Sun Jul 21 03:54:52 1991 John Gilmore (gnu at cygint.cygnus.com)
1280
1281 Mostly MIPS and general symbol-reading fixups.
1282
1283 * doc/gdbint.texinfo: Add documentation on symbol-reading
1284 interface.
1285
1286 * mipsread.c: Remove kludges around #include "ecoff.h".
1287 Remove redefinitions of a_magic, etc, no longer used.
1288 (parse_symbol, ): Convert "Internal:" printfs to complain()ts.
1289 Fix global overview comments to match symfile.c protocol.
1290 (mipscoff_new_init): Eliminate cur_hdr if we have one.
1291 (mipscoff_symfile_read): Eliminate unused code. Avoid
1292 sorting all the symtabs, when all we have read here is psymtabs.
1293 The symtabs are sorted as they are created anyway. Tell
1294 condense_misc_bunches whether we're mainline.
1295 (psymtab_to_symtab_1): Pass filename when recursing, to make
1296 stack trace more informative.
1297 (parse_partial_symbols): Assume cur_hdr as argument.
1298 (read_mips_symtab): Don't clobber cur_hdr, so it can be freed.
1299 Pass cur_hdr implicitly to parse_partial_symbols. Avoid checking
1300 the TYPE_NAME of char *, since that's done in symfile.c.
1301 (free_numargs, parse_symbol, add_symbol, add_block,
1302 shrink_linetable): Declare these fns void.
1303 (upgrade_type): Convert tree of if's to switch. Clean up
1304 bogus "off == 0" handling with a complaint. Avoid setting
1305 field bitpos and bitsize of array with lower and upper bounds.
1306 Check specified bitsize of elements against their actual type's
1307 bitsize, and complain if different. Complain about unknown
1308 type qualifiers.
1309 (parse_fdr): Don't assume sizeof(char *) == sizeof (struct *).
1310 (psymtab_to_symtab_1): Print names of subsidiary files that
1311 are being read in. FIXME, we read far too many files. This code
1312 is not the problem, the problem is in parse_fdr where the psymtabs
1313 are set up.
1314 (cross_ref): Result should indicate that we used one aux entry
1315 normally, or two if we encountered a "next" entry. This used
1316 to leave the caller pointing at the wrong aux entry.
1317 (add_symbol): If overflowed cur_block, reallocate it larger,
1318 chase all pointers to it, and complain(), rather than clobber memory.
1319 (shrink_block): Use xrealloc rather than xmalloc-and-copy.
1320 (new_field): Only allocate one field initially, not two.
1321 Pull ++ out of macro argument. Simplify.
1322 (_initialize_mipsread): Avoid initialization of importd
1323 global_psymbols and static_psymbols.
1324
1325 * symfile.c (psymtab_to_symtab): Depend on XXX_psymtab_to_symtab
1326 to properly set pst->symtab; avoid searching for it.
1327 (symfile_fns): Improve comments, add a FIXME.
1328 * dbxread.c: Update comments to reflect symfile protocol.
1329 (read_ofile_symtab, end_symtab): Return the symtab.
1330 (psymtab_to_symtab_1): Set pst->symtab.
1331
1332 * coffread.c (coff_symfile_read): tell condense_misc_bunches
1333 whether we're mainline.
1334
1335 * symfile.h (sym_fns): Remove unused sym_discard member.
1336 * coffread.c, mipsread.c, dbxread.c: Remove XXX_symfile_discard.
1337
1338 * mtrace.c (mtrace): Take effect if mallwatch is set, even if
1339 the environment variable is not.
1340 * infcmd.c (finish_command): Use filtered printfs.
1341 * cplus-dem.c: Add struct tags to a few unnamed structs.
1342 * valops.c (value_coerce_array): Improve comments.
1343 * valprint.c (type_print_varspec_suffix): Print array size only
1344 if greater than zero.
1345 * m88k-tdep.c: Shift some lines left by one space, that had
1346 apparently been trashed at some point.
1347 * TODO: More things to do, a few got done.
1348
1349 Thu Jul 18 22:46:05 1991 John Gilmore (gnu at cygint.cygnus.com)
1350
1351 * symtab.h (LOC_EXTERNAL): Eliminate in favor of LOC_STATIC.
1352 (ldsymoff, ldsymlen, globals_offset, statics_offset): Improve
1353 comments.
1354 * dbxread.c (read_dbx_symtab): LOC_EXTERNAL -> LOC_STATIC.
1355 * expread.y, findvar.c, symmisc.c: Ditto.
1356 * printcmd.c (address_info): Update printed forms of LOC_
1357 symbols. Elim LOC_EXTERNAL.
1358 (print_frame_args): Keep track of param stack offsets before
1359 re-looking up to find the local register param is kept in.
1360
1361 * mipsread.c: Use <symconst.h> and <sym.h> rather than <syms.h>.
1362 Further integration of mipsread into gdb. Eliminate unused
1363 routines, duplicate declarations. Handle static symbols in
1364 psymtabs as well as external symbols. When reading symtabs,
1365 insert symbols into the correct block (global, static, or a local
1366 block).
1367 (read_mips_symtab, parse_partial_symbols): Don't pass useless
1368 "incremental" arg.
1369 (mipscoff_symfile_read): Don't call select_source_symtab.
1370 (parse_symbol): Use SYMBOL_VALUE_ADDRESS where appropriate,
1371 rather than SYMBOL_VALUE.
1372 (parse_external): Comment clobbering of top_stack.
1373 (parse_partial_symbols): Update comments. Allocate and parse
1374 static symbols as well as external symbols. FIXME, enum values
1375 are not handled in this pass, but should be. Inline new_psymbol.
1376 Use SYMBOL_VALUE_ADDRESS.
1377 (psymtab_to_symtab_1): Read symbols into global static block
1378 by default (until enter some function's local block context).
1379 (sort_blocks): Clean up STATIC_BLOCK as well as GLOBAL_BLOCK.
1380 (destroy_all_symtabs, new_psymbol): Eliminate, unused.
1381
1382 * source.c (select_source_symtab): Select a source symtab
1383 from either the symtabs or, failing that, the psymtabs.
1384 (list_command): Update error message.
1385 (forward_search_command, reverse_search_command): Use getc, not
1386 fgetc, for speed. FIXME, add comment about buffers that die if
1387 overrun by long line.
1388
1389 * values.c (unpack_field_as_long, modify_field): Avoid shifting
1390 by an entire word, which is not portable, if we have a 32-bit
1391 field. (Code in dbxread.c already turns such bitfields, if
1392 aligned, into ordinary ints, but fixing this will help for other
1393 symbol formats and for future changes.)
1394 * core.c (core_open): Handle ANSI const brain death.
1395 * utils.c (vprintf): Fix varargs typo.
1396
1397 Sun Jul 14 00:42:53 1991 John Gilmore (gnu at cygint.cygnus.com)
1398
1399 * findvar.c (find_var_value): Handle &function better.
1400 * TODO: Document work needed on &fn and &array.
1401 * printcmd.c (print_address_symbolic): New arg is the prefix
1402 to print if a name is printed.
1403 (print_address_demangle): Honor "set print address" now.
1404 Use new arg above to improve spacing of output.
1405 * valprint.c (val_print): When printing function pointers,
1406 print symbolic form too.
1407 * breakpoint.c (breakpoint_1): Use new print_address_symbolic.
1408
1409 Mon Jul 8 19:02:46 1991 John Gilmore (gnu at cygint.cygnus.com)
1410
1411 * core.c (memory_error): Reword error msg to mislead less.
1412
1413 * mips-pinsn.c (print_insn_arg 'd'): Print $ with reg name.
1414
1415 * mipsread.c (read_mips_symtab, read_the_mips_symtab,
1416 parse_partial_symbols): Use newer BFD internals (external_filehdr
1417 and external_aouthdr), byte-swap the fields that we care about
1418 before using them, and make the file header data local to
1419 read_the_mips_symtab rather than global.
1420
1421 Sat Jul 6 01:34:15 1991 John Gilmore (gnu at cygint.cygnus.com)
1422
1423 * ns32k-opcode.h (movmw, movmd): Fix opcodes. Bug fix
1424 from Rune Nerg}rd <runene@ifi.uio.no> on 5 Jul 1991.
1425
1426 * main.c (command_line_input): Flush stdout and stderr
1427 before every call to readline. This reportedly fixes a bug
1428 that comes up in Sys V running emacs-gdb and/or xxgdb,
1429 when stdin/out are pipes or sockets.
1430
1431 Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com)
1432
1433 * configure.in, Makefile.in: Avoid rebuilding "depend" as much.
1434 Avoid declaring Makefile dependencies, because GNU Make stupidly
1435 tries to update it if we do.
1436
1437 * coffread.c: Revise for minor changes to bfd internal coff
1438 indexes.
1439
1440 * configure: If -template= is given a relative path, make it
1441 absolute before recurring in subdirectories.
1442
1443 * configure, configure.in, Makefile.in: Install "configure" script
1444 as replacement for config.gdb.
1445 * config.gdb, Makefile.dist, Makefile.sdir: Remove
1446 * README: Update for configure, mostly. FIXME.
1447
1448 * Add dec3100 as equivalent to littlemips. Indicate in all host &
1449 target config files that they are for the host. When the lines
1450 get copied into the Makefile, this makes it more obvious what's
1451 up.
1452
1453 Mon Jun 24 23:49:07 1991 John Gilmore (gnu at cygint.cygnus.com)
1454
1455 * sparc-opcode.h (trap opcodes): Avoid leading spaces or
1456 tabs, which end up in the disassembler output inadvertently.
1457
1458 Wed May 29 23:01:03 1991 John Gilmore (gnu at cygint.cygnus.com)
1459
1460 Make it compile cleanly in an ANSI GCC2 environment.
1461
1462 * blockframe.c: <stdio.h>
1463 * cplus-dem.c: free takes a void *, ifdef __STDC__
1464 * dbxread.c (read_huge_number): avoid gcc2 bug hoisting calc of
1465 LONG_MAX/radix.
1466 * defs.h (alloca): Avoid doing anything if alloca already def'd.
1467 * stddef.h, stdlib.h: Remove these files.
1468 * symtab.c: Avoid declaring qsort, close.
1469 * symfile.c: Avoid declaring close.
1470 * utils.c (vprintf): Declare "ap" arg as proper va_alist.
1471 * sparc-tdep.c: Avoid including lots of Sun-host-specific files.
1472
1473 Assorted other changes.
1474 * dbxread.c: include "libaout.h", not "liba.out.h".
1475 * printcmd.c (print_frame_args): Set recurse properly for
1476 indentation of struct and array parameters.
1477 * valops.c (value_cast): Allow cast to void.
1478 * infrun.c (resume): If NO_SINGLE_STEP, call machine dependent
1479 single_step() in a target-independent fashion.
1480 * sparc-tdep.c (single_step): Don't call ptrace ourselves, just
1481 set up to be ready to continue. This makes us target independent.
1482 * infptrace.c (child_resume): Remove call to single_step; now
1483 can single step a SPARC target of any kind.
1484
1485 Wed May 22 18:18:24 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1486
1487 * Makefile.dist, doc/gdb.texinfo, doc/*-m4.texinfo: split up GDB
1488 docn into separate sections---basically chapters, plus two loose
1489 pieces that can be configured to go in different places. This
1490 allows GNU m4 to preprocess the manual without coredumping.
1491
1492 * Makefile.dist: tell TeX where to find texinfo.
1493
1494 Mon May 20 12:15:04 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1495
1496 * Makefile.dist, doc/gdb.texinfo: respectively create, and use,
1497 the new target "rdl-apps.texinfo" which captures the Makefile
1498 variable that records where to find the Readline libraries.
1499
1500 Sun May 19 05:36:59 1991 John Gilmore (gnu at cygint.cygnus.com)
1501
1502 * tahoe-pinsn.c: #include "tahoe-opcode.h", not "opcode.h".
1503 * tm-tahoe.h (FIX_CALL_DUMMY): Ignore more parameters.
1504 * defs.h (const, volatile): Only define if not already defined.
1505 * Makefile.dist (gdb.tar.Z): Create doc subdir w/out CVS/RCS crud.
1506
1507 * README: Update for release 3.95.
1508 * config.gdb: Don't create readline dir in subdir builds.
1509 * main.c: Include with "..." form for non-system include files,
1510 so "gcc -MM" for "make depend" works.
1511 Include readline files with "...h" rather than <readline/...h>.
1512 * mipsread.c: Include "ecoff.h" rather than "intel-coff.h".
1513
1514 * coffread.c: Undo minor damage done by Rich Pixley. Use
1515 different internal and external representations of COFF
1516 data structures. Use new BFD routines for swapping them in and
1517 out.
1518 * symfile.c (free_named_symtabs): Avoid freeing file names that
1519 are null or empty. Old i960 tools seem to produce files that
1520 claim to have empty names, causing each successive file read
1521 to blow away the previous one.
1522 * sparc-xdep.c (deferred_stores): Repair minor damage by Rich.
1523 Move deferred_stores to top of file, but don't separate its
1524 #define's from its variable. Add commentary.
1525 * Makefile.dist: Fix Rich damage; undo "configure" changes in
1526 favor of keeping the (working) config.gdb. Move readline
1527 library up a notch.
1528
1529 Fri May 17 12:49:56 1991 Per Bothner (via gnu at cygint.cygnus.com)
1530
1531 * dbxread.c (read_struct_type): Try to handle g++ version 1 MI
1532 debug info.
1533 * infptrace.c (fetch_registers): no result, since now void.
1534 * tconfig/news: target depends on m68k-tdep too.
1535
1536 Fri May 17 14:40:14 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1537
1538 * Makefile.dist: added readline/inc-*.texinfo to dependencies for
1539 gdb.dvi target
1540
1541 * readline/inc-history.texinfo, readline/inc-readline.texinfo:
1542 applied various small fixes due to or inspired by RMS comments
1543
1544 * doc/gdb.texinfo: finished using all RMS comments, save those for
1545 appendices on readline and cmd history (which are in other source
1546 files)
1547
1548 Thu May 16 18:06:05 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1549
1550 * doc/gdb.texinfo: (1) Updated w/ref to RMS comments through
1551 chapter 9; (2) documented 'break' command's menu mode for
1552 overloaded names, in response to hgs problem report C++ p-31
1553
1554 Wed May 15 11:02:48 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
1555
1556 * doc/gdb.texinfo: (1) better introductory example; (2) more
1557 consistent use of @code, @samp, @file, @kbd throughout; small
1558 cleanups to first three nodes; (3) new "Contributors" node;
1559 (4) Appendix, Renamed Commands; (5) divert specialized startup
1560 instructions to "Targets" chapter for generic manuals, while
1561 leaving them up front for manuals specific to specialized
1562 environments; (6) apply fixes from RMS comments through chapter 4.
1563
1564 * pretex.m4: modify explanatory text slightly (and redefine
1565 "regexp") to keep GNU m4 from complaining. (It still crashes
1566 later, but one step at a time...)
1567
1568 Wed May 15 10:32:12 1991 John Gilmore (gnu at cygint.cygnus.com)
1569
1570 * readline/readline.c (update_line): Avoid dereferencing a pointer
1571 before comparing it to its bounds. Saber caught this.
1572 (init_terminal_io): Don't set BC from the "pc=" termcap variable,
1573 and only set PC if tgetstr returned non-null. Saber caught this.
1574
1575 Tue May 14 16:29:53 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com)
1576
1577 * Makefile.dist: put gdb.dvi stuff (updated to use M4 preprocessor
1578 stuff for config manual) here where it counts; updated
1579 to use new subdir structure (gdb/doc/).
1580
1581 * Makefile: generated from above via
1582 config.gdb none
1583 before checkin
1584
1585 * gdbint.texinfo: added instructions on generating gdb.info* files
1586 locally for release. These are ordinary info
1587 files, formatted from gdb.texinfo (via gdb-all.texinfo, see
1588 Makefile)---but due to use of texinfo 2, can't count on makeinfo
1589 to generate these, so we distribute them already formatted.
1590
1591 * gdb.texinfo: included full Info node and menu crud (as generated
1592 by C-u M-x texinfo-master-menu using the texinfo-2 elisp code).
1593
1594 * Makefile: updated "gdb.dvi" target to use M4 preprocessor;
1595 put in comments-for-future gdb.info target (one day makeinfo will
1596 work again).
1597
1598 Tue May 14 13:51:36 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com)
1599
1600 * gdb.texinfo: Updated to include new or old undocumented
1601 commands, at least the following (perhaps some others I forgot to
1602 record): info f, info float, info path, info program, info s, info
1603 set, info source, info terminal, info types, info user, set/show
1604 print object.
1605 Also covered all recent GDB command renames for v4.
1606
1607 Mon May 13 14:57:46 1991 John Gilmore (gnu at cygint.cygnus.com)
1608
1609 * mipsread.c: Rather than keeping count of how many symtabs
1610 and psymtabs we have, for sorting purposes, count them when
1611 we need to sort. This fixes bug in rereading of symbol tables.
1612
1613 Fri May 10 15:43:33 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com)
1614
1615 * infcmd.c: renamed "info path" to "show paths"
1616 * gdbrc.tex: documented above.
1617
1618 Wed May 8 04:51:11 1991 John Gilmore (gnu at cygint.cygnus.com)
1619
1620 * remote.c: Fix comments.
1621 * utils.c (error): Force out any pending wrap output.
1622
1623 Sat May 4 11:11:07 1991 John Gilmore (gnu at cygint.cygnus.com)
1624
1625 * Makefile.dist: Roll VERSION to 3.95.
1626 Fix up "saber_gdb" to work again.
1627 * saber.suppress: Update.
1628
1629 * coffread.c, exec.c, infptrace.c, inftarg.c, remote.c, solib.c,
1630 symtab.h, target.c, target.h: Lint.
1631 * core.c: setup and select frame after reading shared libs,
1632 else reading shared libs will clobber them. Lint.
1633 * utils.c (error): Force out any buffered wrap text.
1634
1635 Fri May 3 22:01:56 1991 John Gilmore (gnu at cygint.cygnus.com)
1636
1637 * remote.c: Remove decls of memory_insert_breakpoint
1638 and memory_remove_breakpoint, no longer used. (Suggestion of
1639 Jan Norden).
1640
1641 * Makefile.dist: use ${subdir} in paths of BFD and LIBIBERTY,
1642 to make it easier to interface to "configure"'d libraries.
1643
1644 Fri May 3 13:10:01 PDT 1991 Roland Pesch (pesch at fowanton.cygnus.com)
1645
1646 * valprint.c: introduce "set p", "set pr", "show p" and "show pr" as
1647 aliases for set/show print.
1648
1649 Thu May 2 11:22:02 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1650
1651 * coffread.c (coff_sym_fns) [TDESC]: Make the type be m88kbcs.
1652
1653 * m88k-tdep.c (IEEE_isNAN): New function.
1654
1655 * infrun.c, m88k-tdep.c, m88k-xdep.c: Change
1656 initialize_{tdesc,dcontext} to init_{tdesc,dcontext}.
1657
1658 * infrun.c [TDESC]: Add a bunch of crud.
1659
1660 * xm-88k.h [__GNUC__]: Don't define memset.
1661
1662 * m88k-xdep.c: #if 0 out push_breakpoint.
1663
1664 * tm-88k.h: Define GET_SAVED_REGISTER.
1665
1666 * tm-88k.h: Define DGUX.
1667
1668 * m88k-opcode.h (UEXT, SEXT, MAKE): Put parentheses around arguments.
1669
1670 * m88k-pinsn.c (sprint_address): Declare at top of file.
1671
1672 * m88k-xdep.c: #if 0 out core_file_command.
1673
1674 * values.c ({unpack_,value_as_}pointer): Just call
1675 {unpack_,value_as_}long (for now anyway).
1676
1677 * m88k-tdep.c (get_saved_register): Make get_reg a dc_word_t (*)().
1678 (psr_register): Change return type to dc_word_t.
1679
1680 * m88k-tdep.c (tdesc_read_function): Comment out call to ptrace.
1681
1682 * m88k-tdep.c (get_saved_register): Add lvalp parameter.
1683
1684 * gdbcore.h (write_memory): Don't prototype it.
1685
1686 * tm-88k.h, m88k-tdep.c: Make stack_error, stack_jmp global.
1687 m88k-xdep.c: Don't mention stack_error.
1688
1689 * {x,t}config/m88k ({X,T}DEPFILES): Add missing files.
1690
1691 * mtrace.c: Don't typedef things like size_t, just #define them.
1692
1693 * coffread.c [TDESC]: #if 0 out references to coffsyn.
1694
1695 * symtab.h (struct symtab): Include EXTRA_SYMTAB_INFO.
1696 tm-88k.h: Define EXTRA_SYMTAB_INFO.
1697
1698 * coffread.c [TDESC]: Include "tdesc.h" and make tdesc_handle
1699 dc_dcontext_t not int.
1700
1701 * coffread.c [TDESC]: Use system include files not <intel-coff.h>.
1702
1703 * coffread.c [TDESC]: Move setting of debug_info from
1704 coff_symfile_read to find_linenos and make it work with BFD.
1705
1706 * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*.
1707
1708 * signame.c: Cast const char* to char* when assigning to sys_siglist.
1709
1710 * utils.c (strsave): Make arg const char* not char*.
1711
1712 * infrun.c (wait_for_inferior) [SHIFT_INSN_REGS]: Use
1713 bpstat_explains_signal (stop_bpstat) not stop_breakpoint.
1714
1715 * tm-88k.h (START_INFERIOR_HOOK): Make tdesc_handle a dc_handle_t.
1716
1717 * tm-88k.h (EXTRACT_RETURN_VALUE): Use char * not void *.
1718
1719 * findvar.c (read_var_value, case LOC_CONST_BYTES): Put the address
1720 in a char *, not a CORE_ADDR. Use SYMBOL_VALUE_BYTES.
1721
1722 * tm-88k.h (INIT_EXTRA_FRAME_INFO): Use fci not prev (fci is
1723 prev except from create_new_frame). Make next_frame a
1724 local variable.
1725 Declare get_prev_context.
1726 {x,t}m-88k.h: Enclose USG and BCS defines in #if !defined.
1727 m88k-{opcode.h,pinsn.c,xdep.c,tdep.c}: New files (same contents as
1728 before; they had just been left out of the distribution for a long
1729 time).
1730
1731 Thu May 2 17:53:56 1991 John Gilmore (gnu at cygint.cygnus.com)
1732
1733 Mips bringup and general cleanup
1734
1735 * cplus-dem.c: Move CPLUS_MARKER define to after defs.h.
1736 * infptrace.c (PT_WRITE_D, PT_READ_D): Use correct values.
1737 (This still doesn't seem to make MIPS bkpts work.)
1738 * mipsread.c: Remove dup "Reading symbol data..." msg.
1739 (symbol_file_command, add_file_command): Remove, obsol.
1740 * printcmd.c (ptype_command): Say "an enum" rather than "a enum".
1741 Wrap output appropriately.
1742 * stack.c (locals_info, catch_info, args_info): Check
1743 selected_frame rather than target_has_stack or coredumping.
1744 * valprint.c (type_print_varspec_suffix): Wrap "ptype" output of
1745 enums appropriately.
1746
1747 Wed May 1 14:10:22 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1748
1749 * signame.c: Include defs.h and param.h.
1750
1751 * cplus-dem.c: Include defs.h and param.h.
1752 Makefile.dist: Don't hack in the "param.h".
1753 param.h: Don't include defs.h.
1754
1755 * expread.y: Use a union to deal with the fact that type_stack
1756 can have both ints and enum type_pieces in it.
1757 ({push,pop}_type_int): New functions.
1758
1759 Tue Apr 30 13:18:58 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1760
1761 * cplus-dem.c (cplus_mangle_opname): Don't call error.
1762 values.c (check_stub_method): Call error if NULL return from
1763 cplus_mangle_opname.
1764
1765 * blockframe.c, breakpoint.c, core.c, command.c, findvar.c,
1766 eval.c, expprint.c, infcmd.c, infrun.c, main.c, printcmd.c,
1767 remote.c, source.c, stack.c, dbxread.c, coffread.c, symfile.h,
1768 symfile.c, utils.c, valarith.c, values.c, valops.c, tm-68k.h,
1769 target.c, inftarg.c, ieee-float.c, environ.c, defs.h,
1770 command.h, inferior.h, gdbcore.h, symtab.h, expression.h,
1771 symtab.c, cplus-dem.c, value.h, expread.y, valprint.c,
1772 copying.awk, solib.c, inflow.c, symmisc.c
1773 : Lint. Use read_memory not read_memory_integer on CORE_ADDR's.
1774 Use {value_as,unpack}_pointer (added to values.c)
1775 not {value_as,unpack}_long on CORE_ADDR's.
1776 Use longest_to_int (added to defs.h) instead of cast to int.
1777 Remove from_tty arg to mod_path.
1778 Put symfile_bfd in {coff,dbx}read.c not symfile.h.
1779 Use OP_NULL instead of 0 where dummy enum exp_opcode needed.
1780
1781 * tm-sparc.h: Remove GET_RWINDOW_REG.
1782 (FRAME_CHAIN): Call sparc_frame_chain.
1783 sparc-tdep.c (sparc_frame_chain): New function.
1784 tm-sparc.h (EXTRACT_STRUCT_VALUE_ADDRESS): call
1785 sparc_extract_struct_value_address (added to sparc-tdep.c).
1786
1787 * xm-sun386.h: Don't define SET_STACK_LIMIT_HUGE.
1788
1789 Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
1790
1791 * valprint.c (type_print_base): If the type being printed is a
1792 struct containing undefined types, print "<undefine type>"
1793 as the type instead of crashing.
1794 * values.c (value_headof): Get the vtable pointer taking
1795 TYPE_VPTR_BASETYPE into account.
1796 * symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
1797
1798 Mon Apr 29 13:22:51 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1799
1800 * Move BROKEN_LARGE_ALLOCA from tm-sun386.h to xm-sun386.h.
1801
1802 * sun386-xdep.c [!GDB_TARGET_IS_SUN386]: Just provide empty
1803 functions which don't do anything.
1804 tm-sun386.h: Define GDB_TARGET_IS_SUN386.
1805
1806 * Makefile.dist: Add comment about tm-sun3os4.h: tm-sun3.h, etc.
1807
1808 * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 to
1809 GDB_TARGET_IS_SUN3.
1810
1811 * infrun.c: Don't include sys/user.h and friends (wrong for
1812 cross-debugging and not necessary anymore (see IN_SIGTRAMP in
1813 xm-vax.h)).
1814 [SET_STACK_LIMIT_HUGE]: Include <sys/{resource,time}.h>.
1815 xm-tahoe.h: Don't define _DIRENT_.
1816
1817 * xm-tahoe.h: Remove USE_OLD_TTY (not needed now that terminal.h
1818 includes sgtty.h before sys/ioctl.h).
1819
1820 Sun Apr 28 22:04:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1821
1822 * param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not defined
1823 or not defined. Don't define it based on TARGET_BYTE_ORDER if
1824 it's already defined (in the tm.h file).
1825 mips-opcode.h (BIT_FIELDS_*),
1826 values.c (modify_field, unpack_field_as_long):
1827 Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN.
1828 {x,t}m-tahoe.h, tahoe-pinsn.c, tahoe-opcode.h: New files.
1829
1830 Fri Apr 26 12:02:06 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1831
1832 * tm-sparc.h: Add comments about gcc version 2 and structure passing.
1833
1834 * xconfig/i386v{,32}{,-g}: Add XM_CFLAGS=-Dgetpagesize()=4096.
1835 gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
1836
1837 * expread.y (abs_decl): Accept '&' and '&' abs_decl.
1838
1839 * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long
1840 regardless of LONG_LONG.
1841 defs.h (TARGET_LONG_LONG_BIT): New macro.
1842 expread.y (typebase): Add {unsigned,} long long {,int}.
1843
1844 Thu Apr 25 12:31:22 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1845
1846 * valops.c (typecmp): If t2 == 0, return 1.
1847
1848 Wed Apr 24 09:45:17 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1849 Changes from Tiemann:
1850 * cplus-dem.c (optable): Add "nw", "dl", "compound".
1851 (cplus_mangle_opname): New function.
1852 (do_type): Add case 'Q'.
1853 * values.c (check_stub_method): Do lookup_method_type and stuff
1854 rather than smash_to_method_type.
1855 symtab.c, symtab.h (allocate_stub_method): New function.
1856 dbxread.c (read_type): If we get "##", don't lookup_function_type
1857 and start clobbering it; allocate_stub_method instead.
1858 * printcmd.c (x_command): Dereference references.
1859 * valprint.c (type_print_varspec_prefix, case TYPE_CODE_METHOD):
1860 Don't print " " type_print_base (...) "::" if !passed_a_ptr.
1861 * dbxread.c (read_struct_type): Put "op$" instead of "operator"
1862 in the symbol table.
1863 * values.c (check_stub_method): Deal with operator names.
1864 * valprint.c (cplus_val_print): Check for error in baseclass_addr.
1865 * values.c: Move declaration of cplus_demangle to top of file.
1866 * values.c (baseclass_addr): If can't read memory, set *ERRP
1867 rather than calling error().
1868 * value.h: Remove redundant declaration of value_static_field.
1869 * values.c (value_static_field): Recursively check all baseclasses.
1870 Return NULL if not found.
1871 * values.c, value.h: New functions value_{headof,from_vtable_info}.
1872 * valprint.c (val_print): Print out first element of vtbl
1873 specially.
1874 * valprint.c: Move print controls to top and add objectprint.
1875 Add command "set print object on/off".
1876 * valprint.c (value_print, is_vtbl_member): Put things in local
1877 variables rather than continually doing VALUE_TYPE (val), etc.
1878 * valops.c (value_struct_elt_for_address): Call check_stub_method.
1879 * valops.c (value_struct_elt): Remove found, arg1_as_ptr.
1880 * valops.c (search_struct_method): Give error if j > 0 && args == 0.
1881 * valops.c (search_struct_field): New argument looking_for_baseclass.
1882 Give error if value_static_field or value_primitive_field
1883 return NULL.
1884 valops.c (various): Call search_struct_field with extra parameter.
1885 * symtab.c (decode_line_1): Deal with operators specified as
1886 "operator" <optional whitespace> <symbols for operator>.
1887 (operator_chars): Help do it.
1888 * symtab.c (lookup_struct_elt_type): Call check_stub_type.
1889 Take additional argument noerr.
1890 Don't dump core if TYPE_FIELD_NAME is NULL.
1891 Check the baseclasses recursively.
1892 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.
1893 Return void not int. (also declarations in symfile.h and value.h).
1894 Deal with multiple inheritance.
1895 * printcmd.c (print_command_1): Add if (objectprint) code.
1896 * expread.y (variable): Allow for destructor with foo::~name.
1897 * eval.c (evaluate_subexp, case UNOP_LOGNOT): If following opcode
1898 is OP_SCOPE, give an error.
1899 * eval.c (evaluate_subexp): Pass third arg to lookup_struct_elt_type.
1900 * eval.c (evaluate_subexp), values.c (value_virtual_fn_field):
1901 Don't bother to do anything with
1902 return value from fill_in_vptr_fieldno.
1903 * eval.c (evaluate_subexp): If value_static_field returns NULL,
1904 give an error.
1905 * dbxread.c (read_struct_type): Set fcontext to 0 for normal member
1906 function.
1907 * dbxread.c (read_struct_type): Initialize name to 0.
1908 * dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value.
1909 * dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE.
1910 (read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO}
1911 if it's just going to be {0,1}.
1912
1913 * dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0
1914 (yes, it's #if 0, but just in case...).
1915
1916 * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
1917 things "const".
1918
1919 * i386-stub.c: New file.
1920
1921 * WHATS.NEW: Remove mention of readline and more paging (in 3.5).
1922 Try to keep command names up to date with renaming.
1923
1924 * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
1925
1926 * infun.c (resume, resume_cleanups): New functions.
1927 (wait_for_inferior, proceed, child_create_inferior): Use resume
1928 not target_resume.
1929
1930 * remote.c (getpkt): Don't set immediate_quit.
1931
1932 * blockframe.c, frame.h (reinit_frame_cache): New function.
1933 solib.c (solib_add), symfile.c ({,add_}symbol_file_command):
1934 Use it.
1935
1936 Tue Apr 23 10:38:41 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1937
1938 * symtab.c (lookup_symbol): Add 3 more of those loops through
1939 the symtabs which we all know and love: (1) Look in the
1940 STATIC_BLOCK for mangled symbols right after we check the blocks,
1941 (2, 3) Look in the STATIC_BLOCK for all the symtabs and psymtabs
1942 at the end.
1943
1944 * main.c (cd_command): Call dont_repeat.
1945
1946 * dbxread.c (read_struct_type): If const/volatile character is
1947 missing, don't complain, just continue.
1948
1949 * dbxread.c (read_struct_type): Only try to read the fcontext if
1950 it is there. Also change "error_type " to "return error_type ".
1951 values.c (value_virtual_fn_field): If there is no fcontext,
1952 then do things the way GDB 3.x did.
1953 valops.c (search_struct_method): Add type to value_virtual_fn_field
1954 arguments.
1955
1956 * dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'.
1957
1958 Mon Apr 22 00:02:43 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
1959
1960 * printcmd.c (print_scalar_formatted): Add 't' for binary.
1961
1962 * dbxread.c (end_psymtab): Initialize pst->symtab.
1963
1964 * core.c (core_open): Call ADD_SOLIB.
1965
1966 * tm-sparc.h: Include <sun4/reg.h> not <machine/reg.h>.
1967 sparc-tdep.c: Don't include <machine/reg.h>.
1968
1969 * sun3-xdep.c [!TARGET_SUN3]: Just provide empty functions which
1970 don't do anything.
1971
1972 * core.c (core_open): Add make_cleanup (unpush_target, &core_ops).
1973
1974 * Shared library/corefile changes from Peter Schauer:
1975 core.c (core_close): Call CLEAR_SOLIB.
1976 (core_open): Remove comment about "should deal with shared lib".
1977 (core_xfer_memory): If we can't xfer the usual way, try the
1978 shared libraries.
1979 solib.c (so_list): New fields so_bfd and so_sections{,_end}.
1980 (find_solib): Use solib_map_sections to get ld_text.
1981 (solib_map_sections, solib_xfer_memory): New functions.
1982 (clear_solib): Free so_sections and close so_bfd.
1983 tm-sunos.h: Add solib_xfer_memory, solib_add.
1984
1985 * sparc-tdep.c (skip_prologue): Don't skip anything unless there
1986 is a "save" instruction in there somewhere.
1987
1988 * symfile.c (symbol_file_add): Add comment.
1989 solib.c (solib_add): Don't malloc name passed to symbol_file_add.
1990
1991 * exec.c (build_section_table): If *start isn't NULL, free it.
1992
1993 * stack.c (parse_frame_specification): Error if NULL selected_frame.
1994 infcmd.c (finish_command): Error if NULL selected_frame.
1995 inflow.c (kill_command): Deal with NULL selected_frame.
1996 stack.c (record_selected_frame): Set *FRAMEP to NULL if there
1997 is no selected frame.
1998 infrun.c (restore_inferior_status): Add comment.
1999 findvar.c (read_var_value): Check for NULL frame where we need
2000 a frame.
2001 breakpoint.c (get_catch_sals): Check for NULL selected_frame.
2002
2003 * breakpoint.c (bpstat_print): Try all elements on the bpstat
2004 chain before giving up with an internal error.
2005
2006 Sun Apr 21 21:43:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2007
2008 * value.h, values.c (value_{,free_to_}mark): New functions.
2009 breakpoint.c (bpstat_stop_status): Use them.
2010
2011 * tm-i386v{,-g}.h: Remove N_SET_MAGIC define.
2012
2013 Sat Apr 20 21:42:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2014
2015 * i386-tdep.c: Remove unnecessary #includes.
2016
2017 * symtab.c (various): Change error return of find_line_common to -1.
2018
2019 * coffread.c (find_linenos): Use LINESZ not sizeof (struct lineno).
2020
2021 * coffread.c (end_symtab): Initialize language, dirname, and
2022 fullname fields.
2023
2024 Fri Apr 19 18:18:31 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2025
2026 * mips-tdep.c (mips_frame_chain): Don't chain if saved_pc == 0.
2027
2028 * stddef.h (size_t): Let either _SIZE_T or _SIZE_T_ guard it.
2029
2030 * mipsread.c (parse_symbol): Set startup_file_{start,end} if
2031 entry_point is in current file.
2032
2033 * findvar.c (read_register_gen): Add "target byte-order" comment.
2034
2035 Wed Apr 17 17:09:48 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2036
2037 * i386-tdep.c (i386_get_frame_setup): Use SWAP_TARGET_AND_HOST
2038 before returning locals or slocals.
2039
2040 * i386-tdep.c (i386_follow_jump): Do not add data16 to pos in
2041 call to codestream_seek; add one to pos if (and only if)
2042 we are dealing with a jump with data16 == 1 (i.e. 0x66, 0xe9).
2043
2044 Mon Apr 15 12:04:32 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2045
2046 * valops.c (call_function_by_hand): Put dummy1 in target order
2047 before FIX_CALL_DUMMY.
2048
2049 * tm-i386v.h (FIX_CALL_DUMMY): Don't depend on host byte order.
2050
2051 Sun Apr 14 11:55:19 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2052
2053 * valops.c (push_word): Add SWAP_TARGET_AND_HOST.
2054
2055 * remote.c (remote_open): Send '+' before calling putpkt().
2056
2057 * tm-i386v.h (REGISTER_VIRTUAL_TYPE): Return pointer to void,
2058 not int, for pc, fp, and sp.
2059
2060 * remote.c (remote_open): Call start_remote after putpkt("?");
2061 infrun.c (start_remote): Also call wait_for_inferior & normal_stop.
2062
2063 Sat Apr 13 22:11:42 1991 Jim Kingdon (kingdon at spiff.cygnus.com)
2064
2065 * exec.c: Include <ctype.h>.
2066
2067 * sun3-xdep.c (fetch_core_registers): Add #ifdef FP0_REGNUM.
2068
2069 Fri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2070
2071 * tm-68k.h (NUM_REGS): Conditionalize on TARGET_SUN3 not sun.
2072 tm-sun3.h: Define TARGET_SUN3.
2073
2074 * utils.c: Use CPLUS_MARKER not '$'.
2075
2076 * cplus-dem.c: Use CPLUS_MARKER not '$'. If CPLUS_MARKER isn't
2077 defined, define it to '$'.
2078
2079 * arm-opcode.h: New file (same contents as before; it had
2080 just been left out of the distribution for a long time).
2081
2082 * tm-68k.h: Put declaration of ext_format_68881 outside the macros.
2083
2084 * main.c: New HAVE_SIGSETMASK #ifdefs.
2085
2086 * coffread.c (read_coff_symtab): Check for "LF%" with all the
2087 other L*% things.
2088
2089 * coffread.c (SDB_TYPE): New macro.
2090 various: Use it instead of checking against T_NULL.
2091
2092 * Makefile.dist (cplus-dem.o): Hack in an #include "param.h"
2093 before we compile it.
2094 defs.h: Protect against multiple inclusion.
2095 param.h: Include defs.h.
2096 signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if.
2097 param-no-tm.h: Define SYS_SIGLIST_MISSING from USG.
2098
2099 Thu Apr 18 19:49:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2100
2101 * i386-pinsn.c (OP_E): Change %d to 0x%x for consistency.
2102
2103 * putenv.c: New file
2104 Makefile.dist: Add it to $(OBS).
2105
2106 * mipsread.c [!CMUCS]: #include <syms.h>.
2107
2108 * mips-xdep.c (fetch_core_registers): #if 0 out the whole function.
2109
2110 * Move read_memory_nobpt from mem-break.c to breakpoint.c.
2111
2112 Mon Apr 15 21:45:35 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2113
2114 * utils.c (_initialize_utils): Rename "set demangle" to
2115 "set print demangle", "set asm-demangle" to "set print
2116 asm-demangle" and "set sevenbit-strings" to "set print
2117 sevenbit-strings".
2118
2119 * main.c (initialize_main): Rename "set history write" to
2120 "set history save".
2121
2122 * main.c (initialize_main): Rename "set caution" to
2123 "set confirm".
2124
2125 * values.c (_initialize_values): Remove "info history" alias
2126 for (what is now) "show values".
2127
2128 * infcmd.c, gdbcmd.h: Add unsetlist.
2129 infcmd.c: Add unset_command.
2130 (_initialize_infcmd): Add "unset" and use it for "unset env".
2131
2132 * breakpoint.c (_initialize_breakpoint): Remove "unset".
2133
2134 * valprint.c: Add "set/show print", {set,show}_print.
2135 Rename "set addressprint" to "set print address".
2136 Rename "set arrayprint" to "set print array".
2137 Rename "set array-max" to "set print elements".
2138 Rename "set prettyprint" to "set print pretty".
2139 Rename "set unionprint" to "set print union".
2140 Rename "set vtblprint" to "set print vtbl".
2141
2142 * main.c: Rename version_info to show_version.
2143 (_initialize_main): Rename "info version" to "show version".
2144
2145 * values.c: Rename value_history_info to show_values.
2146 (_initialize_values): Rename "info values" to "show values".
2147
2148 Sun Apr 14 23:08:34 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2149
2150 * inftarg.c (child_open), remote-vx{,.68}.c (vx_proc_open):
2151 New function to give correct error message.
2152
2153 Thu Apr 11 17:19:41 1991 Jim Kingdon (kingdon at cygint.cygnus.com)
2154
2155 * target.h: Add to_doc and target_preopen.
2156 target.c: Add target_preopen and target_command.
2157 Remove target_info.
2158 (add_target): Call add_cmd and mess with targetlist->doc.
2159 core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c,
2160 remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct.
2161 Call target_preopen from open routine.
2162
2163 * main.c: Rename editing_info to show_commands.
2164 (_initialize_main): Rename "info editing" to "show commands".
2165
2166 * source.c: Rename directories_info to show_directories.
2167 (_initialize_values): Rename "info directories" to "show directories".
2168
2169 * values.c: Rename convenience_info to show_convenience.
2170 (_initialize_values): Rename "info convenience" to "show convenience".
2171
2172 * copying.awk (_initialize_copying): Rename "info copying" to
2173 "show copying" and "info warranty" to "show warranty".
2174 Rename {copying,warranty}_info to show_{copying,warranty}.
2175
2176 * symfile.c: Rename add_syms_command to add_symbol_file_command.
2177 (_initialize_symfile, add_syms_addr_command):
2178 Rename add-syms to add-symbol-file.
2179
2180 Thu Apr 18 18:08:30 1991 John Gilmore (gnu at cygint.cygnus.com)
2181
2182 * symfile.h (free_named_symtabs): Rename from free_named_symtab.
2183 * symfile.c (clear_symtab_users_once, cashier_psymtab,
2184 free_named_symtabs): Move these routines from symmisc.c.
2185 * symmisc.c (same): same.
2186 (free_symtab): Make non-static.
2187 * symtab.h (free_symtab): Declare as exported void fn now.
2188 * dbxread.c (end_symtab, end_psymtab): Change comments.
2189 (initialize_dbxread): Call dbx_new_init() in case the first
2190 command is add-symbols.
2191 * target.c (dummy_target): Permit add_syms_addr_command.
2192
2193 Sat Apr 13 14:46:07 1991 John Gilmore (gnu at cygint.cygnus.com)
2194
2195 Permit symbols to be superseded when new symbol files have
2196 been read in, particularly for VxWorks.
2197
2198 * dbxread.c (read_dbx_symtab): Allow N_SOL to cleanly take us back
2199 to the main file, as well as to include files. Also, put global
2200 functions into the global psymtab, to make "i fun" work.
2201 (end_psymtab): Free named symtabs and psymtabs for a file, once a
2202 new psymtab for it has been read.
2203 * coffread.c (end_psymtab): Free named symtabs and psymtabs for
2204 a file, once a new symtab has been read for it.
2205 * mipsread.c: FIXME. We need to do the same for MIPS, but it
2206 looks harder to determine the top-level block before it's been
2207 queued to the psymtab list.
2208
2209 * symfile.c (symbol_file_add): Use filtered printing and wrap it.
2210 If we have wiped out any old symbol tables, clean up at end of
2211 symbol reading.
2212 (symbol_file_command): Don't reference symfile_fns if it's zero.
2213
2214 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
2215 defines for the blocks of a blockvector that contain global and
2216 file-static symbols and the first of the smaller scope contours.
2217 * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line,
2218 decode_line_1, make_symbol_completion_list): Use the above.
2219 * coffread.c (end_symtab, patch_opaque_types): Ditto.
2220 * dbxread.c (end_symtab): Ditto.
2221 * expread.y (block): Ditto.
2222 * mipsread.c (throughout): Ditto.
2223 * symmisc.c (free_named_symtabs): Ditto.
2224
2225 * symtab.c (list_symbols): Process the first symbol of the
2226 static psymbols list.
2227 (types_info): Restore this function from its untimely #if 0.
2228 It's not perfect, but it is better than nothing.
2229 (_initialize_symtab): Restore "info types".
2230
2231 Thu Apr 11 05:23:19 1991 John Gilmore (gnu at cygint.cygnus.com)
2232
2233 * m68k-stub.c: Remote stub for 680x0's, created from
2234 rem-m68k.shar (which is removed).
2235 * nindy-share/{Makefile,Onindy.c,blout.h,env.h,nindy.c,ttyflush.c}:
2236 Remove RCS log stuff now that we use CVS and it blows our diffs.
2237
2238 Wed Apr 10 14:18:06 1991 John Gilmore (gnu at cygint.cygnus.com)
2239
2240 * symmisc.c (free_named_symtab): Make it work, in its current
2241 kludgy fashion. Change result to indicate if we blew away bkpts.
2242 * dbxread.c (end_symtab): Accumulate result from
2243 free_named_symtab and print warning if we blew user's state.
2244 * symfile.h: free_named_symtab now returns an int.
2245
2246 Mon Apr 8 23:57:43 1991 John Gilmore (gnu at cygint.cygnus.com)
2247
2248 * dbxread.c (dbx_symfile_read): Initialize psymbol list if this
2249 is the first symbol read, even if not mainline.
2250 (dbx_psymtab_to_symtab): symfile might be zero, cope.
2251 * exec.c (exec_ops): Add_syms_addr is valid in our tvec.
2252 (set_section_command): New command ("section xxx yyy" -- should
2253 be renamed to "set section xxx yyy" FIXME) which sets the
2254 base address of a section of the exec file, overriding the
2255 virtual address that BFD reports.
2256
2257 Fri Apr 5 17:14:39 1991 John Gilmore (gnu at cygint.cygnus.com)
2258
2259 * exec.c: Add add_syms_addr_command to exec_ops, so you can
2260 load symbols at any address while examining an exec file.
2261
2262 Thu Apr 4 10:09:35 1991 John Gilmore (gnu at cygint.cygnus.com)
2263
2264 * tm-i386v.h (FLOAT_INFO): Don't define it, since the code
2265 for printing the float info is host-dependent, not
2266 target-dependent. FIXME.
2267 * i386-pinsn.c: Move #includes to top, remove useless ones.
2268 * i386-tdep.c: Don't bother including <.../reg.h> since we
2269 don't use it (and it doesn't exist on host systems).
2270
2271 * ieee-float.c (ieee_extended_to_double): Convert NaN to Inf.
2272 Convert negative numbers properly.
2273 (ieee_test): Make numbers really random; fix format arg.
2274
2275 * infcmd.c (attach_command, detach_command): Don't repeat on CR.
2276 * core.c (core_detach): Unpush core_ops, which might not be on
2277 top. We used to just pop the top, which broke things. Don't
2278 need dont_repeat() any more.
2279 (core_file_command): Psst! Don't repeat it.
2280 * remote-nindy.c (nindy_detach): Don't need dont_repeat() now.
2281 * expprint.c (print_subexp): Avoid switch fallthru on
2282 BINOP_ASSIGN_MODIFY, so we can print += and such.
2283 * frame.h: Fix typo.
2284 * inflow.c (kill_command): After killing inferior, print our
2285 current frame in the core file, if we have one.
2286 (generic_mourn_inferior): When inferior dies, either select
2287 the current frame (in the new target, e.g. core file), or
2288 set both the current and selected frames to NULL.
2289
2290 Changes from Peter Schauer.
2291
2292 * infptrace.c: Avoid <sys/ptrace.h> on USG.
2293
2294 * Make all file names fit in 14 characters (sigh and damn!):
2295 mv hp300hpux-xdep.c hp300ux-xdep.c
2296 mv symmetry-xdep.c symm-xdep.c
2297 mv symmetry-tdep.c symm-tdep.c
2298 mv convex-opcode.h convx-opcode.h
2299 mv tm-vxworks960.h tm-vx960.h
2300 mv tm-vxworks68.h tm-vx68.h
2301 mv Makefile.srcdir Makefile.sdir
2302 mv gdb-int.texinfo gdbint.texinfo
2303 mv remote-sa.m68k.shar rem-m68k.shar
2304 mv remote-multi.shar rem-multi.shar
2305 * Makefile.dist, README, config.gdb, convex-pinsn.c,
2306 tconfig/symmetry, tconfig/vxworks960, tconfig/vxworks68,
2307 xconfig/hp300hpux, xconfig/symmetry: Change names to shorter
2308 names.
2309
2310 * command.c (user_info_1, user_info): New command for listing
2311 the user-defined commands.
2312
2313 Wed Apr 3 15:00:26 1991 John Gilmore (gnu at cygint.cygnus.com)
2314
2315 * dbxread.c (really_free_pendings): Clear file_symbols
2316 and global_symbols after freeing them; otherwise, running
2317 this function twice (if it appears twice on the cleanup
2318 chain), we try to free things twice.
2319
2320 * dbxread.c (read_dbx_symtab): Calculate end_of_text_addr
2321 based on text_addr (the address of text in core), not on addr (the
2322 offset between text in the .o file and in core). This change
2323 is from Peter Schauer.
2324
2325 * main.c: Define ALL_CLEANUPS as a cast of zero.
2326 (return_to_top_level): Use it.
2327 (main): Do all cleanups after each command run as part
2328 of the gdb startup sequence. Also do all cleanups before
2329 entering the command loop, and every time we exit the command
2330 loop and reenter. Before, the cleanups from the startup sequence
2331 were being left undone until the first error!
2332 (command_loop): Rename do_nothing cleanup to command_loop_marker
2333 so we can see it easily when examining the cleanup chain.
2334 (init_signals): Add another do_nothing for signal handling.
2335 (quit_command): Only try to kill target if it has execution.
2336 Problems in the target stack got us into a state where
2337 inferior_pid was nonzero but none of the targets had execution.
2338 In this state you couldn't exit gdb.
2339
2340 * dbxread.c: Two changes from Peter Schauer.
2341 (echo_command): Fflush output after an echo command.
2342 (show_history): Pass all args to cmd_show_list.
2343
2344 * utils.c (init_malloc): Call mtrace to turn on tracing
2345 if the environment variable MALLOC_TRACE is set to a file name.
2346 * mtrace.c: Add source file which provides a log of every malloc,
2347 free, and realloc to a trace file.
2348 * mtrace.awk: Add source file which analyzes the trace file.
2349 * Makefile.dist (GNU_MALLOC, MALLOCSRC): Add mtrace.{c,o,awk}.
2350 (VERSION): Roll to 3.94.3.
2351
2352 * breakpoint.c (breakpoint_1): Add a space to "i watch" output.
2353 (check_duplicates): Don't bother with watchpoints.
2354 (set_raw_breakpoint): Comment about danger of this routine.
2355 (watch_command): Parse and eval all args before calling
2356 set_raw_breakpoint.
2357
2358 * solib.c (find_solib): Avoid error in referencing memory to
2359 see if any more shared libraries have been added. This is
2360 particularly useful if the target has terminated. Bug reported
2361 by Peter Schauer.
2362
2363 Changes from Peter Schauer <pesrem@regent.e-technik.tu-muenchen.de>
2364 in bringing up 3.94.2 on the Sun-3.
2365
2366 * Makefile.dist: Include CFLAGS in rule for cplus-dem.o.
2367 * breakpoint.c (enable_breakpoint): Check for valid watchpoint
2368 expression (in scope) before reenabling watchpoint.
2369 * signame.c (init_sigs): Add missing declaration of i, fix
2370 sys_siglist declaration.
2371 * source.c (list_command): Fixed range computation to use
2372 lines_to_list ().
2373 * stack.c (backtrace_command): Do not allow command if target has
2374 no stack, print informative error message.
2375 * target.c (target_command): Do not write into command line
2376 because this fails if the target command is used in a user defined
2377 command. [This change was enhanced by gnu to support any-
2378 unique-prefix matching on target names.]
2379 * valops.c (value_struct_elt): Avoid infinite loop on an
2380 erroneous attempt to print the member of function (try p main.p).
2381
2382 Mon Apr 1 17:05:45 1991 John Gilmore (gnu at cygint.cygnus.com)
2383
2384 * expread.y (name_no_typename): Avoid reduce/reduce errors
2385 caused by ambiguity in handling NAME_OR_INT and NAME_OR_UINT.
2386 Since the GDB parser really doesn't use name_no_typename in a
2387 name-only context, the parser can't tell the diff between
2388 names and numbers here. Avoid allowing a name_no_typename
2389 to be a NAME_OR_*INT to resolve the conflict.
2390
2391 Sun Mar 31 20:12:07 1991 John Gilmore (gnu at cygint.cygnus.com)
2392
2393 Bugfixes from Mark Fox (markf@wrs.com) (test=testField.c):
2394
2395 * valprint.c (val_print_fields): bitfield printing didn't handle
2396 byte order. Indirect through a few more fns to cope.
2397
2398 * values.c (modify_field): also cope with byte order.
2399
2400 Sat Mar 23 10:02:21 1991 John Gilmore (gnu at cygint.cygnus.com)
2401
2402 Cleanup for release 3.94.2:
2403
2404 * Makefile.dist: Pull REMOTE_OBS. Fix saber includes for BFD
2405 include files. Roll version to 3.94.2.
2406
2407 * coffread.c (init_stringtab): Read length into unsigned char
2408 array before swapping; don't assume 32-bit longs.
2409
2410 * target.c (target_info): Don't bother with get_sym_file, just use
2411 the symfile global variable.
2412 * symtab.h, symfile.c (get_sym_file): Delete it.
2413
2414 * dbxread.c (dbx_symfile_init): Don't depend on long == 4 bytes.
2415 (define_symbol): Set symbol line number to 0 if not gcc-compiled.
2416 (read_type): Replace one more error() with complain().
2417
2418 * mipsread.c (parse_partial_symbols): Replace printf with complain.
2419
2420 * i960-tdep.c: Fix copyright attribution.
2421
2422 * config.gdb: Quote all backquotes in doublequotes. You can
2423 quote me on that. BSD 4.4 shell found this one.
2424
2425 * infptrace.c (throughout): The third argument to ptrace is an
2426 int *, not an int.
2427
2428 * infrun.c (wait_for_inferior): When program has terminated, we
2429 have to call target_terminal_ours before we pop that target off
2430 the stack (e.g. before a call to target_kill or
2431 target_mourn_inferior). This fixes problem where a program
2432 terminates, then GDB stops for (tty output) and you have to type
2433 "fg" to the shell to resume it. FIXME: This code for what to
2434 do after termination really should be in normal_stop instead.
2435
2436 * gdbcore.h (read_memory_check): Change declaration; it changed
2437 names months ago.
2438
2439 * terminal.h: Include <sgtty.h> before <sys/ioctl.h>, since in BSD
2440 4.4 prereleases, this avoids a bug in their sgtty compatability
2441 support.
2442 * remote.c: Use terminal.h rather than hand-rolling the same.
2443
2444 * signame.c, signame.h (psignal): Arg is unsigned, not int.
2445 * utils.c (strsave, strstr): Fix arg types.
2446 * valprint.c (val_print): lint
2447
2448 MIPS symbol table support from Per Bothner:
2449
2450 * symfile.c (symtab_fns): Remove initializer table that needs to
2451 be hacked for each new symbol file format supported.
2452 (add_symtab_fns): New function, chains symbol table
2453 handlers into the global list.
2454 (symfile_init): Search this list.
2455 * symfile.h: Add next pointer, declare add_symtab_fns.
2456 * coffread.c (_initialize_coffread): Call add_symtab_fns.
2457 * dbxread.c (_initialize_dbxread): Call add_symtab_fns.
2458
2459 * mipsread.c (psymtab_to_symtab_1): return void instead of (struct
2460 symbol *). Thus, we no longer need the hack to trash
2461 pst->filename. Good, since that hack confused code in symfile.c!
2462
2463 (reorder_symtabs, destroy_all_symtabs): Removed static
2464 all_symtabs, which was used to qsort symtabs in reorder_symtabs.
2465 Instead, the latter now uses a temporary array (stack-allocated
2466 from an obstack, and then freed).
2467
2468 (parse_symbol): Added a hack to fix up BLOCK_{START,END} if they
2469 haven't been set in the outermost stBlock of a procedure. This was
2470 a problem with f77 binaries on Ultrix 4.?.
2471
2472 (new_symtab, new_symbol, new_type): Continue changing code to use
2473 obstacks more and otherwise conform to dbxread internal style.
2474 Made the free_code of symtabs be free_linetable (as in dbxread)
2475 instead of free_contents. This implies memory leaks when reading
2476 a new symbol table, until the conversion is finished. Did change
2477 (struct symbol) and (struct type) to be allocated on the
2478 symbol_obstack. Blocks and blockvectors are among the things
2479 still "leaking."
2480
2481 * mipsread.c (parse_partial_symbols, parse_fdr): It hasn't been
2482 tested much, but it solved one problem (reported by Meissner), and
2483 cleans up some other things. The problem happened when an
2484 included file contains actual code (functions) and not just
2485 definitions. The mips coff is a little inconvenient there, since
2486 it may cause a procedure to be mapped to the wrong psymtab.
2487
2488 * mips-tdep.c (heuristic_proc_desc): Minor cleanup.
2489 * mips-xdep.c (fetch_core_registers): Minor cleanup. FIXME,
2490 this will need work for the new core paradigm.
2491
2492 Opcode patches from the net:
2493
2494 * mips-opcode.h: fix incorrect disassembly of the mfc1, cfc1, and
2495 ctc1 instructions. Also, the cvt.d.w and cvt.s.w instructions were
2496 missing altogether - they are added here. From Bruce Bauman.
2497 * mips-opcode.h: The low mask for C0 instructions was too small.
2498 From Garrett Lau. I modified the fix to check the entire 32-bit
2499 opcode.
2500
2501 * ns32k-opcode.h: Fix opcodes for deiw and deid. From Bruce
2502 Bauman.
2503
2504 Thu Mar 21 12:56:46 1991 John Gilmore (gnu at cygint.cygnus.com)
2505
2506 Roll in changes from Per Bothner (Tue, 25 Sep 90 11:11:04):
2507
2508 * dbxread.c (read_type): Pointer subtraction (value_sub in
2509 valarith.c) sometimes failed because the types of the
2510 pointers being subtracted were not identical.
2511 These differed because dbxread.c was allocating pointer types
2512 using dbx_alloc_type+smash_to_pointer_type instead of
2513 lookup_pointer_type. I failed to find a justification for the
2514 former, so I changed it to use the latter. Similarly, I
2515 replaced smash_to_function_type by lookup_function_type,
2516 and smash_to_reference_type by lookup_reference_type.
2517
2518 * mipsread.c (parse_symbol, upgrade_type, parse_procedure,
2519 _initialize_mipsread): corresponding changes.
2520
2521 * symtab.c (smash_to_{pointer,reference,function}_type): eliminate.
2522
2523 * source.c (mod_path): Do tilde_expand on each component of the path,
2524 rather than on the (list of) paths as a whole.
2525 (print_source_lines): Set first_line_listed in addition to
2526 current_source_symtab and current_source_line. If the source was
2527 not findable, after a "dir" command to fix the problem,
2528 a "list" would get the wrong lines.
2529
2530 While I was there... (gnu):
2531
2532 * dbxread.c (read_type): Change error to complaint.
2533
2534 Thu Mar 21 12:56:46 1991 John Gilmore (gnu at cygint.cygnus.com)
2535
2536 First attempt at detailed understanding of symbol table memory alloc.
2537
2538 * dbxread.c (dbx_symfile_read): Free our string table if we
2539 aren't the mainline. Free the "info" struct since we're done with
2540 it.
2541 (init_psymbol_list): Free any previously allocated psymbol lists.
2542 (): FIXME: Should realloc-down the psymbol lists when done reading
2543 the main symbol file?
2544
2545 * symmisc.c (free_symtab): Free fullname field too.
2546
2547 * xm-hp300hpux.h (USG): #undef then #define so Makefile can -D.
2548 (REGISTER_ADDR): Make result type unsigned int.
2549
2550 * xconfig/{i386*,hp300hpux,altosgas,altos}: All config files that
2551 define REGEX must also define REGEX1 (its dependency).
2552
2553 Tue Mar 19 21:28:57 1991 John Gilmore (gnu at cygint.cygnus.com)
2554
2555 * tconfig/i960: No longer works, points you at vxworks960 or
2556 nindy960.
2557
2558 * xgdb.c, XGDB-README: Remove file. Users can get the much
2559 better xxgdb.
2560 * Makefile.dist: Remove all trace of xgdb.
2561
2562 * breakpoint.c (breakpoint_1): Pass demangle arg to
2563 print_address_symbolic.
2564 (clear_breakpoints): Remove unused function.
2565 (breakpoint_re_set_one): Guts of breakpoint_re_set.
2566 (breakpoint_re_set): Use catch_errors to do them all anyway.
2567
2568 * gdb-int.texinfo (Host versus Target): Add section on what is
2569 a "host" feature versus what is a "target" feature.
2570
2571 * infcmd.c (path_command, path_info): Handle the PATH variable
2572 (object search path) as conveniently as the source search path.
2573 * environ.c (set_in_environ): Set some vars in GDB's environment,
2574 in addition to the child's. PATH, G960BASE, G960BIN for starters.
2575 * source.c (mod_path): New function, from guts of
2576 directory_command, modifies a path. Used by path_command.
2577 (directory_command): Call it.
2578 * defs.h (strsave): Declare.
2579
2580 * utils.c (sevenbit_strings): Add new printing option.
2581 (printchar): Use it.
2582 (strsave): Provide this handy helper routine.
2583 (set_width_command): Rename set_screen_width_command.
2584 (_initialize_utils): "set screen-width" => "set width";
2585 "set screen-height" => "set height"; add sevenbit-strings.
2586
2587 * infcmd.c (do_registers_info): Print floating point registers
2588 in raw hex as well as float format, regardless of whether it is
2589 a "virtual" convertible register.
2590 * tm-sparc.h (PRINT_REGISTER_HOOK): Print every pair of float
2591 regs as a double, just in case it's being used that way.
2592 * values.c (unpack_long): Comment on array/function coercion.
2593 (unpack_double): Argument is in target byte order now. For
2594 integer arguments, just call unpack_long and float the result.
2595 * m68k-tdep.c: include defs.h for "const" handling.
2596 * remote-nindy.c: Use ieee-float stuff.
2597 (nindy_fetch_registers): Unpack double regs to host double, then
2598 to extended.
2599 (nindy_store_registers): Pack extendeds to host double, flip
2600 around by misusing unpack_double, send as target double.
2601
2602 * tm-vxworks68.h (FRAME_CHAIN): Handle current frame pointer of
2603 zero, as when stopped at the first instruction of a process.
2604
2605 * blockframe.c: Fix filename in comment (param.h => tm.h).
2606 * sparc-tdep.c (skip_prologue): More explicit nudging comments.
2607 * tm-68k.h: Fix typos.
2608
2609 Fri Mar 15 01:09:34 1991 John Gilmore (gnu at cygint.cygnus.com)
2610
2611 Changes from a bringup on the DEC Vax under Ultrix 4.0.
2612
2613 * coredep.c (fetch_core_registers): Pass end-address of register
2614 section to register_addr as expected. Don't call supply_register
2615 if we'd just pass it garbage.
2616
2617 * dbxread.c (read_dbx_symtab): Skip N_NSYMS on Ultrix.
2618
2619 * exec.c (xfer_memory): Use boolean xfer_fn result, not int.
2620
2621 * target.c (push_target, target_info): Cast enums to int for < or
2622 > comparison.
2623
2624 * stack.c (print_frame_info): Identify source file & line
2625 even if we can't print it.
2626
2627 * xm-vax.h (MISSING_VPRINTF): No longer missing in Ultrix V4.0.
2628
2629 Sat Mar 9 10:08:20 1991 John Gilmore (gnu at cygint.cygnus.com)
2630
2631 Clean up IEEE floating point support.
2632
2633 * ieee-float.h: New file.
2634 * ieee-float.c: Write real routines to convert between host
2635 doubles and various target IEEE extendeds.
2636 * m68k-xdep.c: Eliminate assembler code for extended floats.
2637 * xconfig/{3b1,altos,altosgas,hp300bsd,isi,news,news1000,sun2os3,
2638 sun2os4,sun3,sun3os3,sun3os4}: Eliminate use of m68k-xdep.o.
2639 * tm-i960.h, tm-68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2640 REGISTER_CONVERT_TO_RAW): Use ieee_extended_to_double and
2641 double_to_ieee_extended.
2642 * i960-tdep.c: Define ext_format_i960.
2643 * m68k-tdep.c: Define ext_format_68881.
2644 * sparc-tdep.c: Define ext_format_sparc, though unused.
2645 * Makefile.dist (HFILES): Add ieee-float.h.
2646 * inftarg.c: #include "ieee-float.h" for the REGISTER_CONVERT
2647 macros.
2648
2649 Obsolete the "coffstrip" program in favor of using BFD's strip.
2650
2651 * nindy-share/coffstrip.c: Remove file.
2652 * nindy-share/nindy.c (coffstrip): Routine to run bfd_strip.
2653 * Makefile.dist: Remove references to nindy-share/coffstrip.c.
2654 * tconfig/nindy960: Remove reference to coffstrip.o.
2655
2656 * Makefile.dist: Roll version number to 3.94.1 (not yet final).
2657
2658 Wed Mar 6 09:56:45 1991 John Gilmore (gnu at cygint.cygnus.com)
2659
2660 * symfile.h: Add symfile_bfd, common between dbxread and coffread.
2661 * dbxread.c: Remove static symfile_bfd.
2662 * infcmd.c (do_registers_info): Add PRINT_REGISTER_HOOK, though
2663 it is not used yet.
2664 * inftarg.c (child_detach): Pop the child_ops vector if the
2665 detach is successful.
2666 * remote-nindy.c (nindy_create_inferior): Don't push a new
2667 nindy_ops since nindy uses the same one for execution and memory
2668 examination anyway.
2669 * core.c (core_ops): Use child_attach and child_create_inferior
2670 rather than default attach and create_inferior functions.
2671
2672 Handle floating point registers in core files.
2673
2674 * sparc-xdep.c (fetch_core_registers): Rewrite for float support.
2675 * sun3-xdep.c (fetch_core_registers): Rewrite for float support.
2676 This version untested since BFD doesn't yet support sun3 core
2677 files.
2678 * hp300hpux-xdep.c: Rewrite fetch_core_registers to new calling
2679 conventions. Fix comments and style. This version has not
2680 been compiled yet, since we have no HP inhouse.
2681 * core.c (get_core_registers): Look for two sections, ".reg"
2682 and ".reg2", and pass both to fetch_core_registers sequentially.
2683
2684 Revise directory path yet again.
2685
2686 * source.c (forget_cached_source_info): Not static any more.
2687 (init_source_path): New default source path is "$cdir:$cwd".
2688 (dir_command): Handle variable arguments ($cdir, $cwd).
2689 (source_info): Print "Compilation directory" rather than
2690 "Originally compiled in" to remind people of $cdir.
2691 (openp): If the path contains $cwd, use current directory.
2692 (open_source_file): If compilation directory is known, replace
2693 first $cdir in path with the compilation directory.
2694 (print_source_lines): Even if we can't print the lines, set the
2695 current symtab and line for future commands like "info source" or
2696 "breakpoint". Also, error message now contains the file name,
2697 line number, and file access error message.
2698 (_initialize_source): Fix help text to describe changes.
2699 * main.c (cd_command): Forget cached source info when we chdir.
2700 * utils.c (strstr): Add simple implementation.
2701
2702 Tue Mar 5 01:41:40 1991 John Gilmore (gnu at fowanton.cygnus.com)
2703
2704 * coffread.c (read_one_sym, init_linetable, init_stringtab):
2705 Byte-swap COFF symbol tables if necessary when reading them in.
2706 Use complain() to replace error message in one spot. Needs
2707 corresponding change in bfd/coff-code.h to make some symbol
2708 swapping routines non-static.
2709
2710 Mon Mar 4 00:53:40 1991 John Gilmore (gnu at cygint.cygnus.com)
2711
2712 Merge changes from Eirik Fuller, for UTek.
2713
2714 * defs.h (errno): Add declaration.
2715 * altos-xdep.c, arm-xdep.c, convex-xdep.c, gould-xdep.c,
2716 hp300hpux-xdep.c, infrun.c, inflow.c, infptrace.c, i386-tdep.c,
2717 i386-xdep.c, pyr-xdep.c, mips-xdep.c, remote-eb.c, remote-nindy.c,
2718 remote-vx.c, source.c, standalone.c, stuff.c, sun386-xdep.c,
2719 symmetry-tdep.c, symmetry-xdep.c, umax-xdep.c, utils.c: Eliminate
2720 declarations of errno.
2721
2722 * remote-eb.c: Define B19200 and B38400 as EXTA and EXTB.
2723
2724 * remote-vx.c: Include <sys/time.h> for UTek; Sun gets it via
2725 <rpc/rpc.h> and <rpc/types.h>.
2726
2727 Sat Mar 2 15:47:55 1991 John Gilmore (gnu at cygint.cygnus.com)
2728
2729 * i960-tdep.c (examine_prologue): Add new argument limit,
2730 which stops the scan at the end of the prologue, or at the PC.
2731 This fixes a problem where it walks down into the code for the
2732 user's statements if that code looks like function prologues.
2733 Mark Fox and I have been bouncing this code back and forth, making
2734 small changes to it. Callers changed to match.
2735
2736 Tue Feb 26 01:47:07 1991 Cygnus John Gilmore (cygnus at yuba)
2737
2738 Cleanup for gdb-3.94 release final:
2739
2740 * Makefile.dist: Remove remote-vx.c, remote-nindy.c, and all
2741 the .c files from vx-share and nindy-share, from the various
2742 macros, since they are not found via ALLDEPFILES.
2743 (SFILES): Add tm-i960.h.
2744 (alldeps.mak rule): Break out ALLDEPFILES_MAINDIR and
2745 ALLDEPFILES_SUBDIR. List all the nindy and vxworks subdir files
2746 in the SUBDIR list.
2747 (TAGFILES_MAINDIR): Change ALLDEPFILES to ALLDEPFILES_MAINDIR.
2748 (gdb.tar.Z): Use ALLDEPFILES_SUBDIR as well as SFILES_SUBDIR.
2749
2750 Mon Feb 25 16:02:35 1991 Cygnus John Gilmore (cygnus at oldman)
2751
2752 * am29k-tdep.c: Add contribution line.
2753 (examine_prologue): Cache information about function prologues in
2754 the misc-function-vector to avoid lots of references over the
2755 serial line while examining instructions.
2756
2757 * core.c (core_close): New function made from cleanup_core.
2758
2759 * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c,
2760 remote-vx.c, remote.c, target.c, target.h,
2761 Update target_ops vector to add attach, close, and load entries.
2762 Use add_syms_addr_command, not add_file_addr_command, for
2763 add_file. Break out close routine from existing code.
2764
2765 * dbxread.c (really_free_pendings): Don't free pending_blocks;
2766 they are in an obstack.
2767 (read_dbx_symtab): Relocate end_of_text_addr in the psymtab.
2768 Lint.
2769 (define_symbol): Add symbol type parameter; change callers;
2770 pass type parameter to DBX_PARM_SYMBOL_CLASS macro to allow
2771 it to influence the symbol class on the i960.
2772 (define_symbol): Swap LOC_CONST's into target byte order.
2773
2774 * exec.c (exec_close): New function.
2775 (exec_file_command): Call it.
2776
2777 * findvar.c (read_relative_register_raw_bytes): Doc byte order,
2778 Fix byte order of frame pointer.
2779 (read_var_value): Result of 0 if var's value can't be found,
2780 e.g. missing FRAME_ARGS_ADDRESS. Byte-swap LOC_CONST and
2781 LOC_LABEL values to target order. Add LOC_LOCAL_ARG.
2782 (locate_var_value): Use read_var_value and use its lazy address
2783 as the location of the var's value. Lint.
2784
2785 * i960-pinsn.c (next_insn): Add routine from vxgdb for scanning
2786 instructions.
2787
2788 * i960-tdep.c (arg_address, i960_frame_find_saved_regs): Remove
2789 obsolete Intel versions in favor of vxgdb versions.
2790 (check_host, byteswap, byteswap_val, reorder_val): Eliminate
2791 code dealing with byte order of values, which Intel did in host byte
2792 order rather than gdb-4's target byte order.
2793 (i960_frame_chain_valid): Move to nindy-tdep.c.
2794 (examine_prologue, skip_prologue, frame_find_saved_regs,
2795 frame_args_address, leafproc_return, saved_pc_after_call,
2796 pop_frame): Add vxgdb versions from Mark Fox.
2797 (examine_prologue, frame_struct_result_address): Add code
2798 to deal with the saved value of G13 (struct return address
2799 pointer).
2800 (frame_args_address): Modify Mark's version to prefer the
2801 saved value over the current value in the topmost frame.
2802 Cache result in the frame info to avoid performance hair in
2803 callers.
2804 (print_fault): Add gdb960 code for printing faults.
2805 (_initialize_i960): Actually call check_host.
2806
2807 * ieee-float.c (ieee_extended_to_double, ieee_double_to_extended):
2808 add stub routines. FIXME, these currently just return zero!
2809
2810 * infcmd.c (program_info): Use PRINT_RANDOM_SIGNAL.
2811 (attach_command): Call target_attach, not target_open, now.
2812
2813 * infrun.c (normal_stop): Make global, not static, for vx_attach.
2814 (child_attach): Rename from child_open.
2815 (wait_for_inferior): Use PRINT_RANDOM_SIGNAL. If stop_pc is zero,
2816 don't confuse it with a zero step_resume_break_address.
2817
2818 * inftarg.c (child_detach): Eliminate inferior_pid test.
2819 (child_files_info): Clean up message a bit.
2820 (child_ops): Use child_attach, not child_open, to attach.
2821
2822 * mem-break.c: #ifdef out the whole file if BREAKPOINT is not
2823 set (e.g. on VxWorks or NINDY). Move read_memory_nobpt from
2824 findvar.c to here, since it depends on the contents of the
2825 shadow_contents of breakpoints, but keep if #if 0 since it is
2826 never called.
2827
2828 * nindy-tdep.c: New file, contains nindy_frame_chain_valid, moved
2829 from i960-tdep.c.
2830
2831 * printcmd.c (address_info): Handle LOC_LOCAL_ARG. Lint.
2832 (ptype_command, display_command): Eliminate have_inferior_p and
2833 have_core_file_p in favor of target_has_stack or
2834 target_has_execution.
2835 (print_frame_args): Handle LOC_LOCAL_ARG. Eliminate duplicate
2836 code for actually finding the values of arguments, though we still
2837 keep track of the maximum stack offset for use in printing unnamed
2838 arguments. Handle missing FRAME_ARGS_ADDRESS.
2839
2840 * remote-nindy.c (i960_print_fault): Move to i960-tdep.c.
2841 (struct nindy_regs): Define registers passed to/from nindy.
2842 (nindy_fetch_registers, nindy_store-registers): Translate between
2843 nindy and GDB formats for the registers.
2844 (dcache_init): Statically allocate the cache, since it was being
2845 allocated by a malloc that was never freed anyway.
2846 (nindy_create_inferior): Error, not core dump, if no exec file.
2847 (nindy_before_main_loop): Use target_load, not target_add_file.
2848
2849 * remote-vx.c (net_load): Specify large timeout for load
2850 requests. Allow user to break out with INTERRUPT.
2851 (net_break): Remove useless code, clean up. Change callers.
2852 (parse-args, skip_white_space, find_white_space): Clean up arg
2853 parsing to cope with quoted strings.
2854 (net_wait, net_quit): Never call error, just return status.
2855 (vx_read_register, vx_write_register): Cleanup status checking.
2856 #ifdef the code based on which CPU we are using (960 or 68k),
2857 FIXME, this should be completely general but it isn't yet.
2858 (vx_xfer_memory, vx_resume): Cleanup status checking.
2859 (vx_run_files_info): Improve message.
2860 (vx_load_command): Renamed from vx_add_file_command. Allow load
2861 to be interrupted.
2862 (net_ptrace): Remove unused routine.
2863 (vx_wait): Adopt code from vxgdb960 to cope with broken
2864 connections to target machine and prompt to disconnect. Remove
2865 debug printouts. Map some EVENT_'s to SIGnals.
2866 (add_symbol_stub, vx_open): Print names of object files we found,
2867 and "ok" if we read their symbols OK. Clarify output in general.
2868 (vx_attach, vx_detach, vx_kill): Add these commands.
2869 (vx_convert_from_virtual, vx_convert_to_virtual): Simplify.
2870 (vx_run_ops): Turn off all_mem, to avoid spurious msg in the
2871 "info files" output, and create_inferior, since we already have
2872 an inferior.
2873
2874 * stack.c (frame_info): Replace Frame_unknown with 0.
2875 (print_frame_arg_vars): Handle LOC_LOCAL_ARG.
2876 (return_command): Pop until the PC matches as well as the FP,
2877 so it works even if the FP is shared with another function,
2878 as in "frameless" or "leaf" procedures.
2879
2880 * symfile.c (load_command): renamed from add_file_target_command.
2881 (add_syms_addr_command): renamed from add_file_addr_command.
2882 (add_syms_command): Stub to call target_add_syms.
2883 (_initialize_symfile): Change command names and descriptions,
2884 add-file => add-syms, and load from alias to its own command.
2885
2886 * target.c (kill_or_be_killed, maybe_kill_then_attach,
2887 maybe_kill_then_create_inferior): Default for attempts to start
2888 a process, if one is already running, is to ask about killing
2889 it and retry if yes.
2890 (upstack_create_inferior): #if-0 it, strata obsolete it.
2891 (push_target, unpush_target, pop_target): to_close() a target
2892 before unstacking it.
2893 (target_info): Renamed from target_files_info.
2894 (_initialize_targets): Rename "i files" as "i target", accessible
2895 under both names.
2896
2897 * target.h: Improve comments about the target_ vectored routines.
2898
2899 * tm-i960.h: Remove NINDY-specific stuff to tm-nindy960.h.
2900 Convert commenting style to standard GNU style.
2901 (DBX_PARM_SYMBOL_CLASS): allow LOC_LOCAL_ARG's to be recognized.
2902 (SKIP_PROLOGUE): No longer a no-op.
2903 (SAVED_PC_AFTER_CALL): Now handles leaf procedures.
2904 (*_REGNUM): Sort register numbers.
2905 (REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
2906 MAX_REGISTER_RAW_SIZE, REGISTER_CONVERTIBLE,
2907 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Float regs
2908 are now 10 byte extendeds, not 8 byte doubles.
2909 (FRAME_CHAIN_VALID): Make this config-dependent, since it differs
2910 for nindy versus vxworks targets. FIXME, this should possibly go
2911 in the target vector.
2912 (EXTRA_FRAME_INFO, INIT_EXTRA_FRAME_INFO): Cache both
2913 frame_saved_regs and arg pointer with each frame.
2914 (FRAMELESS_FUNCTION_INVOCATION): New leafproc support.
2915 (FRAME_ARGS_ADDRESS): Use cached result.
2916 (FRAME_ARGS_ADDRESS_CORRECT): New, avoids g14 guessing.
2917 (FRAME_FIND_SAVED_REGS): Change arg to subsidiary fn.
2918 (PRINT_RAMDON_SIGNAL): Call print_fault.
2919 (POP_FRAME): Now works.
2920
2921 * tm-nindy960.h: Break this off tm-i960.h. NINDY-specific
2922 option parsing and startup; STACK_END_ADDR, FRAME_CHAIN_VALID,
2923 BREAKPOINT, and DECR_PC_AFTER_BREAK are here.
2924 (ADDITIONAL_OPTION_HANDLER): use target_load, not
2925 target_add_file.
2926
2927 * tm-vxworks960.h: Break this off tm-i960.h. VxGDB specific
2928 startup; DECR_PC_AFTER_BREAK, and FRAME_CHAIN_VALID are here.
2929
2930 * valarith.c (value_subscripted_rvalue): Avoid handling
2931 floats and doubles specially; it gave alignment errors. Lint.
2932
2933 * valops.c (value_of_variable, value_of_this): Error if unknown
2934 value.
2935
2936 * valprint.c (print_floating): Bcopy rather than pointer-deref,
2937 to avoid alignment problems.
2938 (value_print): Handle unknown value address.
2939 (cplus_val_print): Two args are ignored; remove them. Change caller.
2940 (val_print): Use unpack_long rather than pointer-deref.
2941
2942 * values.c: Lint.
2943 (unpack_long, unpack_double): Use bcopy rather than pointer-deref
2944 to avoid alignment problems.
2945 (value_being_returned): Error if return value unknown.
2946 (set_return_value): Add bogosity warning, FIXME. *
2947
2948 * TODO: A woman's work is never done.
2949
2950 * Makefile.dist: Distribute REMOTE_OBS into tconfig files.
2951 Separate INCLUDE_CFLAGS for use with lint. Add LINTFILES.
2952 Add ieee-float.o to OBS.
2953 * tconfig/{nindy960,vxworks68,vxworks960}: Include the desired
2954 REMOTE_OBS remote-interface files in the TDEPFILES and TM_FILE.
2955 * tconfig/i960: FIXME. Half-merge, produce warning if config'd.
2956
2957 Changes to generalize the VxWorks RPC protocol slightly, to handle
2958 i960 as well as 68000.
2959
2960 * vx-share/dbgRpcLib.h (VX_SOURCE_STEP): Add.
2961 * vx-share/reg.h: Produce i960 regs #ifdef I80960
2962 * vx-share/xdr_ptrace.c: Skip FPA registers if 960.
2963 * vx-share/xdr_rdb.h: Add SOURCE_STEP struct and xdr decl.
2964 * vx-share/xdr_rdb.c: Add xdr_SOURCE_STEP routine.
2965 * vx-share/xdr_regs.c: Add xdr_regs, xdr_fp_status, xdr_ext_fp
2966 for i960. Change xdr_vectors to xdr_opaques for 68k registers,
2967 so they will move in target byte order rather than network
2968 byte order (happens to be the same).
2969
2970 Mon Feb 25 03:41:44 1991 John Gilmore (gnu at cygint.cygnus.com)
2971
2972 * tm-convex.h (END_OF_TEXT_DEFAULT): Remove #if 0'd block.
2973
2974 Sun Feb 24 00:55:53 1991 John Gilmore (gnu at cygint.cygnus.com)
2975
2976 * am29k-pinsn.c,
2977 Add contribution lines to various files, showing where they
2978 came from.
2979
2980 * breakpoint.c (break_insn, check_break_insn_size,
2981 read_memory_nobpt): Remove to mem-break.c.
2982
2983 * xm-*.h, param-no-tm.h, tm-29k.h, valprint.c: Change BYTE_ORDER to
2984 HOST_BYTE_ORDER.
2985
2986 * tm-29k.h (STAB_REG_TO_REGNUM): Warn user if symbol table
2987 entry has bad register number. This change is not
2988 tested in this release, FIXME.
2989
2990 * frame.h: Eliminate Frame_unknown in favor of a simple zero.
2991 tm-vax.h: Ditto.
2992
2993 * value.h: Force value's contents field to be aligned to hold
2994 at least a double or a long long (if supported). This avoids
2995 doing bcopy's in and out of the contents field.
2996
2997 (step_1): Avoid coredump under obscure circumstances when we
2998 have no frame.
2999
3000 * symtab.h (misc_info): Add field to misc function vector for
3001 any kind of cached information the target code desires. AMD
3002 29000 uses this to avoid repeating examine_function_prologue's.
3003
3004 * coffread.c: Lint. Remove static symfile, read_section_header.
3005 core.c (have_core_file_p): Lint: remove.
3006 expprint.c (print_subexp): Lint.
3007 infptrace.c, valops.c, valprint.c: lint.
3008
3009 Roll in changes from vxgdb-5.0.1:
3010
3011 * symtab.h: Comment byte order of each address class. Add
3012 LOC_LOCAL_ARG for frame-relative args (960).
3013 expread.y: Use LOC_LOCAL_ARG where LOC_ARG is used.
3014 symtab.c, symmisc.c: ditto.
3015
3016 * infrun.c (init_wait_for_inferior): Clear stop_signal.
3017
3018 * remote.c (remote_resume): Error if resume with a signal.
3019
3020 * symfile.c (prim_record_misc_function): Clear misc_info.
3021 (fill_in_vptr_fieldno): Check stub type of arg.
3022
3023 * valops.c (value_cast): Avoid looking up names of types whose
3024 name we don't know, to prevent coredump. Sun CC produces typedef
3025 rtx and the name of *rtx is zero...
3026
3027 Mon Feb 18 21:16:25 1991 John Gilmore (gnu at cygint.cygnus.com)
3028
3029 Roll in changes from final AMD 29000 port (Tiemann).
3030
3031 tconfig/am29k: Add COFF_ENCAPSULATE and TARGET=TARGET_AM29K
3032 for ../include/a.out.encap.h. This might not work now that BFD
3033 is separately compiled. Instead, BFD support for encap will have
3034 to translate machine type 29k into the right COFF_MAGIC.
3035
3036 * infcmd.c: Remove references to inferior_pid that aren't used
3037 in actual ptrace calls; use target_has_execution, etc.
3038 (have_inferior_p): Remove function.
3039 (program_info): Print target info rather than "process number";
3040 avoid gratuitous messages unless from_tty.
3041 (run_stack_dummy, finish_command): Set proceed_to_finish.
3042 infrun.c: Remove inferior_pid refs. Decl & init proceed_to_finish.
3043 main.c: Lint. Lose have_inferior_p().
3044 inferior.h (have_inferior_p): Remove, lint.
3045 (proceed_to_finish): Add flag to ask that all regs be saved
3046 by normal_stop, for the few commands that need it, speeding up
3047 serial I/O. Add comments to stop_registers.
3048
3049 * remote-eb.c: Remove newline from breakpoint message we grep
3050 for. Never time out when running the user program.
3051
3052
3053
3054 Wed Feb 13 15:34:40 1991 John Gilmore (gnu at cygint.cygnus.com)
3055
3056 Roll in changes from vxgdb-5.0.1:
3057
3058 * dbxread.c (read_dbx_symtab): If we encounter a "FORTRAN COMMON"
3059 symbol in its raw form, we are processing an unlinked ".o" file.
3060 See if the target environment has assigned it an address, using
3061 target_lookup_symbol (VxWorks does), and enter it into the symtab
3062 that way.
3063
3064 * tm-vxworks.h (FRAME_CHAIN, FRAME_CHAIN_VALID): Override usual
3065 68k versions for a simpler version that assumes zero FP at bottom.
3066 Fixes bug of truncated stack reports.
3067
3068 * target.h (target_lookup_symbol): Define this routine's args
3069 and result, finally.
3070
3071 * target.c (nosymbol): Default routine for target_lookup_symbol.
3072 (target_default): Default lookup_symbol and call_function too.
3073 (files_info): Only print has_all_memory warning if a non-dummy
3074 target follows.
3075
3076 * remote-vx.c (vx_read_register, vx_convert_to_virtual,
3077 vx_convert_from_virtual): If target does not have floating point,
3078 zero register "values", and avoid doing cross-net conversions.
3079 (vx_lookup_symbol): Rename net_lookup_symbol, add to vectors.
3080 (vx_open): Rearrange code that attaches to target and reads
3081 symbols for all loaded modules, to work if some of the modules
3082 are not accessible. Add symbol_stub() and add_symbol_stub()
3083 as callbacks from catch_errors(). Allow connect attempt to be
3084 interrupted painlessly with ^C (FIXME, there are still some bugs
3085 if the interrupt happens during symbol reading.). Print
3086 final message with puts_filtered, since symbol messages are
3087 now filtered too.
3088
3089 Misc cleanup:
3090
3091 * main.c (catch_errors): Only print errstring if non-null.
3092 (command_loop): Avoid an ioctl per command to test ISATTY.
3093
3094 * remote-vx.c (net_load): make static; avoid sophomoric msg.
3095 (vx_xfer_memory): Return correct result!
3096 (vx_files_info): Indicate whether target has float or not.
3097 (vx_lookup_symbol): Complain, not error, if target gone.
3098 (vx_open): Print "Connected" msg before disabling immediate-quit.
3099 [FIXME: lookup_symbol and vx_open changes need testing.]
3100
3101 target.c, remote-eb.c, inftarg.c, am29k-opcode.h, target.h,
3102 tm-29k.h, tmm-vxworks68.h, symfile.c, gdb-int.texinfo: Add
3103 contributor lines and update copyrights to 1991.
3104
3105 Changes from an attempted H-PUX host port:
3106
3107 * infptrace.c (PT_ATTACH, PT_DETACH): Handle HP/UX, which
3108 defines PT_ATTACH and PT_DETACH but not PT_KILL.
3109 * remote-eb.c (eb_open): Misplaced endif kills sysv H/PUX.
3110 * remote-vx.c: include <sys/time.h> for HPUX.
3111 * hp300hpux-xdep.c (fetch_core_registers): Rewrite old
3112 "core_file_command" routine to BFD regime. May not work yet.
3113
3114 Attempted port of "gdb-3.4 Van Jacobson xgdb" to modern gdb.
3115
3116 * xgdb.c: Replace X10 version with some VJ version.
3117 (FIXME: Its copyright assignment is not on record.)
3118 * xgdb.c: Update include files to X11R4 (Xaw crud).
3119 (xgdb_display_source, create_text_widget): fix call to
3120 get_filename_and_charpos. Rewack source window stuff for X11R4
3121 (gleaned from include files, and "nm's" of binary libraries, since
3122 I had no doc available).
3123 (append_selection, append_selection_word): Disable with FIXME
3124 since R4 changed interface here.
3125 (create_buttons): Add back the old set of buttons.
3126 (xgdb_create_window): Fix call to XtInitialize (&argc not argc).
3127
3128 * Makefile.dist (xgdb, xgdb-init.c): Update for X11R4 on Suns.
3129 Roll VERSION to 3.94 (not yet final though).
3130
3131 Sat Feb 9 09:46:25 1991 John Gilmore (gnu at cygint.cygnus.com)
3132
3133 * obstack.h (obstack_ptr_grow, obstack_ptr_grow_fast,
3134 obstack_int_grow, obstack_int_grow_fast): Eliminate
3135 cast on left of assignment, which gives MIPS cc fits and is
3136 not Standard C.
3137
3138 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
3139 F_ALIAS. Use printf, not fprintf, when not passing a file
3140 pointer...
3141 (compare_opcodes): Check that identical instructions have
3142 identical opcodes, complain otherwise.
3143
3144 * sparc-opcode.h (st %fsr): Fix opcode "lose" mask. This
3145 was reported by Roland McGrath.
3146 (unimp): Only match if exactly zero instruction. (Roland)
3147 (branches and traps): Generate all variations of these
3148 instructions with macros, based on a single call that defines
3149 each condition name and its binary representation.
3150 (set): Turn on alias bit, to avoid test in sparc-pinsn.c.
3151
3152 * valprint.c (val_print_fields): Take, and use, format parameter.
3153 This means that "p/x struct" again prints the elements in the
3154 desired format. Changed callers.
3155
3156 * stack.c (frame_info): Use filtered output, and indicate wrap
3157 points. Remove kludgy formatting designed to avoid line wrap.
3158
3159 * utils.c (wrap_here): If the line is already full (because
3160 we had printed a long indent or long wrapped string), do an
3161 immediate newline-and-indent.
3162
3163 * m68k-pinsn.c (print_insn_arg): Bugfix from
3164 ntmtv!thompson@ames.arc.nasa.gov (Mike Thompson): 'bkpt #0'
3165 instruction is incorrectly disassembled as bkpt #8.
3166
3167 * dbxread.c (end_psymtab): Bugfix from Peter Schauer
3168 <pesrem@regent.e-technik.tu-muenchen.de>: If you want to set a
3169 breakpoint in a *.y file gdb will say Reading in symbols for *.y...
3170 and then will dump core (sometimes). I traced it back to an
3171 uninitialized symfile_name in psymtab_to_symtab.
3172 (const_vol_complaint): Add quotes to message.
3173 (define_symbol): Only believe line number if gcc_compiled.
3174 Avoid allocating symbol if we will not return it.
3175
3176 Add target strata support so that newly established targets go
3177 into their right place in the target stack (e.g. a new exec file
3178 doesn't wipe out the ability to access the running process).
3179
3180 * target.h, core.c, exec.c, inftarg.c, remote-eb.c,
3181 remote-nindy.c, remote-vx.c, remote.c, target.c: Add to_stratum
3182 and initialize it properly in all the targets.
3183
3184 * target.h: Document strata. Change return type of push_target.
3185
3186 * target.c (nomemory): new function for dummy memory access.
3187 (tcomplain): Rename complain, now also used in symfile.c.
3188 (push_target): Push targets within strata. New return value shows
3189 whether new target is on top of stack or not. Always keep dummy
3190 target on stack.
3191 (target_files_info): Ignore dummy target.
3192
3193 * core.c (core_open): Warn user, and skip accessing file, if the
3194 core target is not the topmost target in the stack.
3195 * remote-nindy.c (nindy_create_inferior): Avoid unpush_target, now
3196 already handled.
3197
3198 * remote-vx.c: Remove vx_prepare_to_store from vxworks memory
3199 target_ops, it doesn't belong there since we have no regs there.
3200 Change name of target from machine => memory to clarify.
3201
3202 Thu Feb 7 16:32:09 1991 John Gilmore (gnu at spiff.cygnus.com)
3203
3204 * Freeze version 3.93 for release.
3205
3206 * Makefile.dist: Handle vx-share and nindy-share subdirs
3207 properly when building gdb.tar.Z.
3208
3209 * symtab.c: lint; add no_symtab_msg to consolidate the messages
3210 printed in various places, so I could change just one copy.
3211
3212 * dbxread.c, coffread.c: Change references to bfd->iostream
3213 to cast to FILE *, now that BFD avoids needing types defined
3214 in other header files.
3215
3216 Tue Feb 5 21:39:35 1991 John Gilmore (gnu at cygint.cygnus.com)
3217
3218 * command.c, dbxread.c, expprint.c, infcmd.c, infptrace.c,
3219 infrun.c, printcmd.c, remote-nindy.c, source.c, sparc-tdep.c,
3220 sparc-xdep.c, symfile.h, symmisc.c, utils.c, valprint.c: Lint
3221 (actually gcc -Wall).
3222
3223 * dbxread.c: Remove first_global_sym, last_global_sym, since
3224 they are never referenced.
3225
3226 * defs.h (baud_rate): Declare.
3227 main.c: Define it, and add the -b option to set it.
3228
3229 * gdb-int.texinfo: Add text on how to define a new host or target
3230 architecture, prompted by Per Bothner's questions about MIPS
3231 support.
3232
3233 * gdb.texinfo: Document "complaints". Change doc of -q since
3234 gdb no longer prints the copyright and blurb if you specify a file
3235 name to be debugged (just like Emacs). Add doc for Nindy-specific
3236 command line flags for specifying target serial port and such.
3237 Update copyright to 1991.
3238
3239 * gdbcore.h: Remove a large mass of now-useless crud, since BFD
3240 has taken over for us the job of ripping up executable files. The
3241 crud caused Per Bothner's port to not compile.
3242
3243 * infrun.c (normal_stop): Avoid printing "Program exited
3244 normally" if we are in batch mode. This allows a GDB which
3245 executes a program on a target system, to behave like a Unix
3246 command (input from stdin, output to stdout, no extraneous
3247 output).
3248
3249 * main.c (main): Allow additional machine-dependent command line
3250 options to be specified with the ADDITIONAL_OPTIONS,
3251 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP, and
3252 ADDITIONAL_OPTION_HANDLER macros. Also allow machine-dependent
3253 processing to occur just before the main loop with
3254 BEFORE_MAIN_LOOP_HOOK.
3255 (main): If a "core file" argument is specified, and it is not a
3256 core file, try it as a process ID to attach.
3257 (symbol_completion_function): Attempt to cope with
3258 "show screen-" TAB, not very successfully. This needs more work,
3259 FIXME.
3260 (batch_file): New function, returns whether we are reading
3261 commands from an interactive tty on stdin, or from somewhere else.
3262 Called by normal_stop since it doesn't get from_tty passed down
3263 to it like many commands do.
3264
3265 * remote-nindy.c: Handle command line options for nindy
3266 connection.
3267 (nindy_before_main_loop): Prompt user for tty name if they
3268 don't specify it before getting to the interactive command loop.
3269
3270 * tm-i960.c: Add ADDITIONAL_OPTIONS, etc, to handle -O, -brk,
3271 and -r command line options. Also add hook before main loop
3272 to make it easy to specify a tty.
3273
3274 * TODO: More things to do, one done.
3275
3276 Mon Feb 4 23:57:39 1991 John Gilmore and Mike Tiemann (at cygint.cygnus.com)
3277
3278 * dbxread.c: Make complaint() calls pass pointer, not struct.
3279 Add complaints about badly formatted C++ type information
3280 (const/volatile indicator, and parse errors resulting in
3281 error_type). Fix C++ virtual member fn comment.
3282 (read_struct_type): Avoid bumping pointer if we got a parse
3283 error; this prevents our walking beyond the end of a string.
3284 Terminate loop on null char as well as semicolon.
3285 (process_one_symbol): Fix the LBRAC fix so that it uses the
3286 last previous SLINE, FUN, or SO record's PC address. C++ debug
3287 symbols did not have SLINE records in a useful order compared
3288 to the LBRAC records.
3289 (define_symbol): Handle "catch" records.
3290
3291 * symtab.c (check_stub_type): Added new complain
3292 `stub_noname_complain' and added a consistency check to
3293 keep the debugger from crashing when finishing from an
3294 exception frame. A real fix will be needed later.
3295
3296 Sat Feb 2 10:43:05 1991 John Gilmore (gnu at cygint.cygnus.com)
3297
3298 * infcmd.c (attach_command): Make global.
3299
3300 * Makefile.dist (REMOTE_OBS): Make these compile by default,
3301 but make them easy to comment out. Perhaps later they should
3302 be enabled by what CPU you configure for? FIXME.
3303 (VERSION): Roll to 3.93.
3304 (pinsn.o): Remove rule for obsolete file.
3305 (dbxread.o,coffread.o,mipsread.o): Use ${srcdir} explicitly.
3306
3307 Run down a problem that manifested by printing the wrong function
3308 name in stack traces of read_ofile_symtab. Turned out that the
3309 problem was the SunOS 4.1.1 (and previous) C compiler outputs
3310 the LBRAC symbol with an address in the *data* segment, which
3311 blew our binary search through the blocks.
3312
3313 * dbxread.c: Use the complain() facility consistently to bitch
3314 about problems in the symbol file we are reading.
3315 (finish_block): Add code to check the nesting of the blocks;
3316 complain and Procrust them to fit if wrong.
3317 (make_blockvector): Check the order of the blocks, complain
3318 [but don't cope] if wrong.
3319 (process_one_symbol): ifndef SUN_FIXED_LBRAC_BUG, check LBRAC
3320 symbols to be sure their PC value is greater than the last SLINE
3321 (line number) symbol we've seen, complaining and adopting the
3322 SLINE PC value if wrong.
3323
3324 * symfile.h (struct complaint, complaint_root, complain,
3325 clear_complaints): Add.
3326 * symfile.c (complain, complaint_root, clear_complaints): Add
3327 facility to deal with non-fatal complaints and to regularize their
3328 suppression.
3329 (symbol_file_add): Clear complaint counters to allow new complaints.
3330 (initialize_symfile): Add 'set complaints' and 'show complaints'.
3331
3332 * dbxread.c (dbx_symfile_read): Remember the address and size
3333 of the string table for the main symbol file, so we won't read it
3334 more than once.
3335 (dbx_psymtab_to_symtab): Fix the check for main symbol file,
3336 to avoid reading the string table yet again. Lint.
3337 (throughout): Improve filtered output, including word wrap.
3338 (read_range_type): Improve Bothner's fix to handle other types too.
3339
3340 * utils.c: Improve line wrap implementation. Handle unlimited
3341 width by making chars_per_line unsigned.
3342 (puts_filtered): New, easy, function.
3343
3344 * defs.h (puts_filtered): add.
3345
3346 * mipsread.c (compare_symbols, sort_symtab): Remove these fns,
3347 call the identical sort_symtab_syms() in symfile.c instead.
3348
3349 * expread.y: Suggest the `file' command rather than `symbol-file'.
3350
3351 * command.h (enum var_types): Add zinteger for seroable
3352 unsigned integer.
3353 * command.c (do_setshow_command): Handle var_zinteger. Restructure
3354 nested if's into a switch.
3355
3356 * breakpoint.c (bpstat_print): If bpstat "print" flag is not set,
3357 we did not stop because of a breakpoint (it must have been for
3358 some other reason, like a "stepi"), so don't print anything.
3359
3360 * symtab.c: Include <sys/types.h> all the time. Now that BFD
3361 doesn't include <sys/types.h>, old SunOS's require it for
3362 <sys/stat.h>.
3363
3364 Sat Feb 2 10:39:15 1991 Per Bothner (bothner@cs.wisc.edu)
3365
3366 A test port of gdb-3.92.6 to the Sony NEWS.
3367
3368 * Makefile.dist
3369 Don't normally link in remote- or vx stuff.
3370 Some of it doesn't compile, and it wastes space for 99% of the users.
3371 Remove reference to no-longer-used HAVE_VPRINTF.
3372 Fixed BFD_DEP typo to BFD_DIR.
3373 * dbxread.c
3374 Fix cast in arg to bfd_h_getlong.
3375 Make char *prefix be const.
3376 Fix how certain range types are mapped into builtin unsigned int types.
3377 * infrun.c
3378 Remove 2 #includes. They cause errors (on Sony, at least),
3379 and aren't needed (they wern't in earlier versions).
3380 * printcmd.c
3381 print_address_symbolic should never demangle labels
3382 (since it prints *assembler-level* labels).
3383
3384 [This was superseded by the change to printcmd below.]
3385
3386 * utils.c
3387 Add some "volatile" return types to avoid warnings.
3388 If MISSING_VPRINTF add vprintf function and not just macro
3389 (since vprintf is used in printcmd.c).
3390 * valprint.c
3391 Unless __GNUC__, use obstack_grow instead of obstack_ptr_grow.
3392 (The latter isn't grokked by some PCC-based compilers.)
3393
3394 [This change is in abeyance, we prefer to fix obstack_ptr_grow.]
3395
3396 Make chunk size of dont_print_obstack 32*4 instead of default 4096.
3397 * nindy-share/coffstrip.c
3398 Added some forward declarations (otherwise, gcc complains
3399 about implicit extern redefined as static).
3400
3401 Sun Jan 20 02:38:19 1991 John Gilmore (gnu at cygint.cygnus.com)
3402
3403 Changes inspired by Per Bothner:
3404 * printcmd.c (print_address_symbolic): Take additional parameter
3405 specifying whether to demangle.
3406 (print_address): Pass in asm_demangle to control demangling.
3407 (print_address_demangle): New fn, takes explicit arg to control
3408 demangling.
3409 * utils.c: Add new vars demangle and asm_demangle, and let them
3410 be set and shown.
3411 (fputs_demangled): If !demangle, just print the argument.
3412 (fprint_symbol): If !demangle, just print raw symbol.
3413 * valprint.c (val_print): Call print_address_demangle rather than
3414 print_address, to cause demangling to depend on the global
3415 rather than assembler-level demangling setting.
3416 * WHATS.NEW, gdb.texinfo: Document.
3417
3418 * main.c (show_command): Show all settings if no arg.
3419 (initialize_main): Make "info set" the same as naked "show".
3420 * command.c (cmd_show_list): Handle prefix commands in the
3421 list, and print the name of the setting as well as its English
3422 description and value.
3423
3424 Allow gdb functions to specify where a line should wrap if it
3425 exceeds the size of a terminal line. Use it to make the output
3426 prettier.
3427 * utils.c (set_screen_width_command): New fn, mallocs a buffer
3428 of the right size when screen width changes.
3429 (set_screensize_command, screensize_info): Remove #if 0'd fns.
3430 (wrap_here): New fn, indicates a point in the output where we
3431 should wrap the line rather than just letting it overflow at a
3432 random place.
3433 (fputs_filtered): Implement wrapping.
3434 (n_spaces): New fn, returns a pointer to N spaces.
3435 (print_spaces_filtered): Use n_spaces.
3436 * defs.h (n_spaces): Declare.
3437 * stack.c (print_frame_info): Wrap with 4-space indent after
3438 fn name and before filename and line number.
3439 * printcmd.c (print_frame_args): Wrap with 4-space indent
3440 before each argument name is printed.
3441 * valprint.c (value_print): Wrap with no indentation before
3442 each repetition.
3443 (val_print_fields): Wrap with indentation relative to nesting
3444 level before each field name.
3445 (val_print): Wrap with nesting indentation before array elements.
3446 * command.c (do_setshow_command): Avoid extra newlines,
3447 wrap with 4-space indent around values printed, end with period.
3448 * WHATS.NEW, gdb.texinfo, gdb-int.texinfo: Document.
3449
3450 * breakpoint.c (breakpoint_1): Implement addressprint for
3451 "info breakpoints" display. Change file name and line number
3452 format to " at file:nnn" rather than " (file line nnn)".
3453 * gdb.texinfo: Document.
3454
3455
3456 Fri Jan 18 07:21:25 1991 John Gilmore (gnu at cygint.cygnus.com)
3457
3458 Frozen for gdb-3.92.6 release.
3459
3460 README, WHATS.NEW: Update for 3.92.6 release.
3461
3462 tconfig/{altos, i386v, i386v32, m88k, umax}: Eliminate
3463 coffread.o from configs since it is now built by default.
3464 tconfig/{3b1, altosgas, arm, convex, hp300bsd, hp300hpux,
3465 i386v-g, i386v32-g, isi, merlin, news, news1000, np1, pn,
3466 pyramid, symmetry, vax, vxworks68}: Eliminate dbxread.o
3467 from configs since it is now built by default.
3468
3469 Makefile.dist: Update for release 3.92.6. Handle files that
3470 have been moved to ../include, ../getopt, or ../bfd. Add
3471 saber.suppress and tests directory. Add config.status to
3472 the release (it will say "none").
3473
3474 coredep.c: Minor formatting fixes.
3475
3476 These changes were made in early December but only checked in now:
3477 * nindy-share/Onindy.c, nindy-share/coffstrip.c,
3478 nindy-share/nindy.c: lint
3479 * nindy-share/nindy.c (ninStopWhy): Don't byteswap the
3480 register values coming back from the target; we store values
3481 in target byte order everywhere.
3482
3483 Wed Jan 16 19:01:37 1991 John Gilmore (gnu at cygint.cygnus.com)
3484
3485 * am29k-opcode.h, am29k-pinsn.c: Add 29050 opcodes.
3486
3487 * valprint.c (cplus_val_print, val_print_fields): New functions,
3488 which print C++ objects. They conspire to avoid printing a
3489 virtual base class more than once, following all the twists and
3490 turns of C++ virtual base rules.
3491 (val_print): Call the above rather than do it by hand.
3492
3493 * symfile.c (symbol_file_add): Only reset symfile_mtime for main
3494 symbol file, not for added files like shared libs. This really
3495 needs to be generalized to a timestamp per file.
3496
3497 * core.c (cleanup_core): Avoid coredump if no core file.
3498
3499 * config.gdb: Accept -host or -target in place of +host or
3500 +target.
3501
3502 * coffread.c (find_linenos): Avoid desupported BFD interface
3503 to line numbers. We still read them manually rather than using
3504 BFD's "generic" features.
3505
3506 * gdbrc.tex, threecol.tex: Add GDB reference card and its
3507 formatting code.
3508 Makefile.dist: Add refcard to OTHERS list for creating tar files.
3509
3510 * Makefile.dist: Eliminate use of $< in explicit targets.
3511
3512 * readline/Makefile: Use $< rather than $*.c, which does not
3513 include the VPATH in GNU Make.
3514
3515 * tconfig/i960-bout, tconfig/i960-coff: These are identical
3516 copies of tconfig/i960, added for global configuration
3517 compatability. All i960 versions can read both coff and b.out.
3518
3519 * tm-88k.h: Fix multiline macro that lacked \'s. Remove
3520 COFF_FORMAT and COFF_CHECK_X_ZEROES since these are now handled
3521 automaticaly.
3522
3523 * TODO: Think of more things to do.
3524
3525 Wed Jan 2 19:09:29 1991 John Gilmore (gnu at spiff.cygnus.com)
3526
3527 tconfig/{am29k,i960,sun2*,sun3*,sun4*}: Eliminate config
3528 of sdb versus dbx debug symbols. Add kludge for 68881 80-bit to
3529 64-bit float conversion.
3530
3531 tconfig/sun4, tconfig/sun3, xconfig/sun4, xconfig/sun3: Make
3532 equivalent to sun?os4 so global config works.
3533
3534 Wed Jan 2 18:20:51 1991 John Gilmore (gnu at spiff.cygnus.com)
3535
3536 Fix from Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
3537
3538 * main.c: Only declare linesize once; declare pagesize not at
3539 all, since it is never used.
3540 (main): Clear newly allocated line before it is used.
3541
3542 Fri Dec 28 00:13:42 1990 John Gilmore (gnu at cygint)
3543
3544 Further stabilization for the Intel 960.
3545
3546 * Makefile.dist: Parameterize the location of the "include"
3547 and "bfd" directories, as well as "getopt". Add symfile.c.
3548 Link in both dbxread and coffread. Fix up "make depend" to
3549 rewack the locations of include, bfd, and getopt in its output.
3550
3551 * README: Document moving include files, improve some of
3552 the other doc.
3553
3554 * coffread.c: Move common code out to symfile.c. Change
3555 symbol_file_command style interface to use new *_symfile_init
3556 and *_symfile_read interface under BFD. Use BFD internal
3557 info to locate line table, symbols, etc.
3558
3559 * core.c (core_fetch_registers): Rename to get_core_registers
3560 to avoid confusion with fetch_core_registers.
3561 (register_addr): Move to coredep.c, which is already machine
3562 dependent. This leaves core.c pretty clean of dependencies.
3563
3564 * coredep.c (register_addr): Accept this routine from core.c.
3565
3566 * dbxread.c: Move common code (with coffread.c, etc) into new
3567 symfile.c. Each psymtab now contains a pointer to the
3568 format-dependent function that knows how to read it in. Make
3569 some things static.
3570 (dbx_psymtab_to_symtab): Renamed from psymtab_to_symtab_2.
3571 (process_one_symbol): Add code to complain about a "compiler bug
3572 we muzzle here", if we actually see it.
3573
3574 * eval.c (evaluate_subexp): Insert missing "break" statements
3575 in code that determines whether a variable is an lvalue in
3576 memory, register, or whatever. I detected this via a compiler
3577 bug in which it *almost* mashed out the whole switch statement.
3578
3579 * gdb-int.texinfo: Add minor sections on configuring gdb for
3580 release, and about the README file.
3581
3582 * infcmd.c (registers_info): Fix formatting somewhat. Still
3583 not as pretty as before, but it handles byte swapping.
3584
3585 * remote-nindy.c: If data cache routines are interrupted while
3586 waiting for the remote end, be sure that any uninitialized cache
3587 blocks are on the free list, not on the valid list!
3588
3589 * symfile.h: Flesh out this header file with all the various
3590 routines and variables that have been merged in from dbxread.c
3591 coffread.c, and symtab.c to symfile.c.
3592
3593 * symfile.c: New file, containing code common to dbxread.c,
3594 coffread.c, and some code from symtab.c. All generic code for
3595 reading symbol files should be in here now.
3596 (unrecord_misc_function): Remove unused function.
3597
3598 * symtab.h: Remove file-reading things to symfile.h.
3599
3600 * symtab.c: Remove file-reading things to symfile.c.
3601
3602 * tm-i960.h: Fix FRAME_CHAIN types; define PRINT_RANDOM_SIGNAL
3603 to decode i960 fault types.
3604
3605 * target.h, remote.c, remote-eb.c, remote-vx.c, remote-nindy.c,
3606 target.c: Change type of the "resume" function from int to void,
3607 since its result was never used.
3608
3609 Sat Dec 22 02:51:40 1990 John Gilmore (gnu at cygint)
3610
3611 * main.c: Replace "stupid" with "caution"; you now "set caution
3612 on or off".
3613
3614 * printcmd.c (print_scalar_formatted): Fix typo in 'g' format
3615
3616 * infcmd.c (do_registers_info): Call val_print to deal with the
3617 byte order of the registers being printed. FIXME, this makes
3618 the formatting of the output uglier.
3619
3620 * infcmd.c (wait_for_inferior): If PRINT_RANDOM_SIGNAL is
3621 defined, call it for signals the debugger doesn't itself use.
3622 The i960 uses this for more detailed fault information.
3623
3624 * remote.c (remote_open): If arg is null, print help rather than
3625 dumping core.
3626
3627 * sparc-xdep.c (register_valid): Avoid declaring size, since
3628 various modules will think of various sizes depending on the
3629 architecture of their tm-file. FIXME, we need protection against
3630 actually entering one of those modules, which would clobber
3631 storage if not for the target architecture compiled into gdb.
3632
3633 * stack.c (up_command, down_command): Always print the frame
3634 you arrive at.
3635 (up_silently_command, down_silently_command): New commands
3636 for use in scripts.
3637
3638 * i960-pinsn.c (reg), i960-tdep.c: Lint.
3639
3640 * i960-tdep.c (i960_frame_chain_valid): Lookup_symbol now takes
3641 more parameters than it used to.
3642
3643 * findvar.c (registers): Increase slop to 256 bytes, which should
3644 protect us against even most RISC machines with large register
3645 sets.
3646 (locate_var_value): Move declaration inside related ifdef.
3647
3648 * remote-nindy.c (): Use TIOCSETN rather than TIOCSETP
3649 throughout, to avoid throwing away buffered input from the board.
3650 (nindy_wait): Supply_register takes addr_of_value, not value.
3651 (i960_print_fault): Renamed from i80960_fault.
3652 (nindy_fetch_registers): Avoid have_regs stuff, just get them.
3653 (nindy_store_registers): Avoid regs_changed stuff, just stuff
3654 them.
3655 (nindy_create_inferior): Don't bother to write PC_REGNUM since
3656 we can set the PC in the call to proceed(). Unpush nindy_ops
3657 before pushing it on top, to avoid message to user. Eliminate
3658 commentary from Unix machines that just misleads here.
3659 (reset_command): Fix error message to suggest target command.
3660
3661 Wed Dec 19 11:03:56 1990 John Gilmore (gnu at cygint)
3662
3663 Release 3.92.5 as frozen.
3664
3665 Stabilize the merged release...with help from lint, Saber C,
3666 gcc -W, etc.
3667
3668 Everywhere: Add include files needed to declare return types
3669 of functions called.
3670
3671 * gdb.texinfo: Roland Pesch is documenting gdb, glory be!
3672
3673 * breakpoint.h: Add undeclared breakpoint functions, and some
3674 functions for display handling since I couldn't think of a better
3675 .h to put them in.
3676
3677 * breakpoint.c (insert_breakpoints): Make code for disabling
3678 shared library bkpts more likely to work. It's used when we
3679 rerun a program and stop before the shared library has been
3680 mapped in.
3681 (breakpoint_cond_eval, bpstat_stop_status): Pass arg as int,
3682 cast from pointer, so it squeezes through catch_errors.
3683 (bpstat_stop_status): Fix logic broken some time ago. We now
3684 always create a bpstat if the stop address matches a breakpoint,
3685 even if we don't stop there -- just like the old code used to do
3686 before I got my fingers into it (sigh).
3687 (breakpoint_1): Print "ignore count" after "stop only if"
3688 condition, since that's how it actually works.
3689 (mention): Handle watchpoints as well as breakpoints.
3690 (watch_command): use set_raw_breakpoint and mention to do most
3691 of the work (and initialize all the fields!). Only pass one
3692 arg to parse_c_expression, since that's all it takes.
3693
3694 * command.c (not_just_help_class_command): Rename arg to args
3695 since we ignore "unused argument" warnings on vars named "args".
3696 inflow.c (child_terminal_info): ditto.
3697 infptrace.c (kill_inferior): ditto
3698 main.c (catch_errors, version_info, quit_command, pwd_command,
3699 source_command, dump_me_command, editing_info,
3700 set_history_size_command, set_history, show_history,
3701 set_verbose): ditto
3702 stack.c (locals_info): ditto
3703 target.c (target_files_info): ditto
3704 valprint.c (set_input_radix, set_output_radix): ditto
3705
3706 * core.c: Remove old variables for handling core and exec file
3707 sections (data_start, data_end, stack_start, stack_end,
3708 reg_stack_start, reg_stack_end, reg_stack_offset, text_start,
3709 text_end, exec_data_start, exec_data_end, text_offset,
3710 exec_data_offset, data_offset, stack_offset). They're
3711 superseded the more general build_section_table and
3712 xfer_memory.
3713 (get_exec_file): Mention the `file' command.
3714 (read_memory_check): Rename to memory_error, and only call it
3715 in the case of an actual error.
3716 (read_memory, write_memory): call memory_error.
3717 (core_fetch_registers): Register section name is ".reg".
3718
3719 coredep.c: Remove a bunch of crud now that all this file does
3720 is pull the registers out of a core file.
3721 (fetch_core_registers): Rewrite to actually work, I hope.
3722
3723 dbxread.c: Use a.out.gnu.h, not system a.out, now.
3724 Replace index() with strchr(). Remove all the pre-BFD macro
3725 definitions for accessing the symbol file.
3726 (struct dbx_symfile_info): Encapsulate the information that
3727 dbx_symfile_init needs to pass to dbx_symfile_read in this
3728 struct.
3729
3730 (dbx_new_init, dbx_symfile_init, dbx_symfile_read,
3731 dbx_symfile_discard): Rearrange symbol file reading to divide
3732 the format-specific part from the format-independent part,
3733 leaving the format-independent part such as file name expansion
3734 and opening in symtab.c. This replaces
3735 partial_symbol_file_open and partial_symbol_file_read.
3736 Symbol_file_read, add_file, add_file_target_command,
3737 add_file_addr_command move to symtab.c. Pass an explicit
3738 "mainline" flag for when reading the main symbol table, rather
3739 than relying on the offset address to be zero or nonzero.
3740
3741 (dbx_symfile_read): Don't allow void *'s to be printed as
3742 typedefs.
3743 (SWAP_SYMBOL): Use bfd routines to byte-swap the symbols.
3744 (ADD_PSYMBOL_TO_LIST): Make the "function call rather than
3745 macro" debug version really work.
3746 (read_dbx_symtab): Remove unref'd parameter inclink.
3747 Avoid swapping N_SLINE symbols, for speed.
3748 Merge N_TEXT!N_EXT case with the other external symbol
3749 definitions' case. Add comments.
3750 (start_psymtab): Allocate the symfile name in the psymtab on
3751 the psymbol_obstack, rather than using the caller's storage.
3752 (end_psymtab): Only allocate a dependencies list if there are
3753 more than zero.
3754 (psymtab_to_symtab_2): Use BFD when reopening file to read
3755 its symbols for real.
3756 (read_struct_type): Add FIXME comments where it needs work
3757 for C++ bogosity.
3758 (read_huge_number): Add FIXME about overflows.
3759 (read_range_type): Add FIXME about comparing a long to 1<<32.
3760
3761 * coffread.c: Minor changes to move things closer to the new
3762 regime with symtab.c and dbxread.c Major work is still needed
3763 here.
3764
3765 * exec.c (exec_file_command): Remove old variables (see core.c
3766 above).
3767 (xfer_memory): If memory transfer is right at the end of a
3768 section, don't lose.
3769
3770 * findvar.c (get_saved_register): If value is in a real
3771 register, LVAL is lval_register, not lval_memory.
3772
3773 frame.h: Declare print_sel_frame and record_selected_frame.
3774
3775 gdb-int.texinfo: New file, for GDB internals documentation.
3776 Very simple, unformatted doc of cleanups is there for now.
3777
3778 gdbcore.h: Remove obsolete variables that described a.out
3779 section addresses and offsets. (See core.c above.)
3780 Declare fetch_core_registers and registers_fetched.
3781
3782 getopt.c: Declare char *alloca(); even on SPARC.
3783
3784 infcmd.c (run_command): Call target_kill rather than
3785 kill_inferior.
3786 (step_command, next_command, stepi_command, nexti_command):
3787 Declare from_tty parameter even though we don't use it.
3788 (run_stack_dummy): argument BUFFER is a char array, not
3789 a pointer to REGISTER_TYPE.
3790 (finish_command): using_struct_return needed a value *,
3791 not a struct symbol *.
3792
3793 * infptrace.c (child_xfer_memory): To avoid dependency on
3794 where sections are in memory, try PT_WRITE_D and if that fails,
3795 try PT_WRITE_I. Most Unixes don't care which you use.
3796
3797 * infrun.c (step_resume_break_shadow): Change to array to
3798 match other breakpoint shadow storage.
3799 (clear_proceed_status): Pass address of bpstat to
3800 bpstat_clear, not the bpstat itself.
3801 (child_create_inferior): FIXME comment about if the child
3802 exits.
3803 (start_inferior): Remove old function.
3804 (child_open): Use target_kill rather than kill_inferior.
3805 (wait_for_inferior): Ditto.
3806 (insert_step_breakpoint, remote_step_breakpoint): Use
3807 new step_resume_break_shadow.
3808
3809 * inftarg.c (child_wait): If all child processes die,
3810 pretend that the one being waited for exited with signal 42.
3811
3812 * main.c (command_line_input): When scanning for comments,
3813 don't coredump on unclosed quotes.
3814 (quit_command): Use target_kill rther than kill_inferior.
3815 (_initialize_main): Rename class_user from "user" to
3816 "user-defined".
3817
3818 * printcmd.c (print_command_1): Initialize "fmt" if no format
3819 is specified by the user.
3820 (print_frame_args): Only add to args_printed if we are
3821 actually fetching args from the stack (avoiding undefined
3822 arg_size).
3823 (_initialize_printcmd): Remove bogus \{ from string.
3824
3825 * remote-eb.c (eb_open): Avoid coredump on no argument.
3826
3827 * remote-nindy.c: Bring out of Intel environment into new
3828 target environment. Remove all conditional compilation on
3829 I80960. Massive hacking throughout.
3830 (nindy_xfer_inferior_memory): New routine stolen from
3831 infptrace.c.
3832 (nindy_create_inferior): New routine pieced together, probably
3833 not quite working yet.
3834 (nindy_ops): New target_ops struct for nindy.
3835
3836 * remote-vx.c: Use write_memory rather than target_write_memory
3837 to get error checking.
3838 (vx_add_file_command, vx_open): Use symbol_file_add rather than
3839 add_file.
3840 (vx_create_inferior): Use target_terminal_ours...
3841
3842 * signame.c (_initialize_signame): Always initialize, since
3843 we need the table for things other than psignal.
3844
3845 * solib.c (solib_add): Use symbol_file_add, not add_file.
3846 (solib_address): Return boolean result rather than struct
3847 pointer which nobody else knows the type of.
3848
3849 * sparc-tdep.c, valops.c: Use write_memory rather than
3850 target_write_memory, to get error checking.
3851
3852 * stack.c (locals_info, catch_info, args_info,
3853 get_selected_block, frame_command, up_command): Use
3854 target_has_stack, rather than have_inferior_p or
3855 have_core_file_p.
3856
3857 * sun3-xdep.c (fetch_core_registers): Rewrite for new BFD regime.
3858
3859 * symfile.h: New file, defining the interface between the
3860 generic and object-file-specific symbol reading code.
3861
3862 * symtab.c: Move generic symbol-reading interface to symtab.c,
3863 from dbxread.c, coffread.c, mipsread.c, etc. Add symtab_fns
3864 table to map BFD targets to symbol-reading modules in GDB.
3865 Change index to strchr.
3866 (lookup_struct_elt_type): Use error() rather than hand-made
3867 simulations thereof.
3868 (lookup_partial_symbol): Speedup slightly when length == 0.
3869 (symbol_file_add): New function.
3870 (symbol_file_command): Call it.
3871 (symfile_open, symfile_init): New function.
3872 (add_file_target_command, add_file_addr_command): moved from
3873 dbxread.c.
3874
3875 * target.c (target_command): use target_kill.
3876
3877 * target.h (target_files_info): Don't declare, never called
3878 from outside.
3879
3880 * tm-sun2.h, tm-sun3.h (STACK_END_ADDR): Use system include
3881 files to determine stack end address.
3882
3883 * valarith.c (value_x_binop, value_x_unop): Change error message
3884 to be more useful. Pass proper argument to value_struct_elt.
3885
3886 * valops.c (value_assign): FIXME comment that long long
3887 bitfields will break here.
3888
3889 * Makefile.dist: Add symfile.h, remote-nindy.c, remote-eb.c.
3890 Update `make saber_gdb' to work better.
3891
3892 * TODO: A woman's work is never done.
3893
3894 * cplus-dem.c, environ.c, inferior.h, infrun.c, inftarg.c,
3895 main.c, obstack.c, printcmd.c, remote-eb.c, remote-nindy.c,
3896 remote-vx.c, remote.c, solib.c, source.c, sparc-pinsn.c,
3897 sparc-tdep.c, sparc-xdep.c, symmisc.c, symtab.c, symtab.h
3898 target.c, terminal.h, tm-sparc.h, tm-sunos.h, utils.c,
3899 valops.c, valprint.c, exec.c: Lint.
3900
3901
3902 Wed Dec 12 23:44:15 1990 John Gilmore (gnu at cygnus.com)
3903
3904 Continuing Intel 960 port merge of GDB.
3905
3906 * Makefile.dist: Merge i960 "nindy-share" files. Rename
3907 malloc.h to gmalloc.h to avoid name conflicts in /usr/include.
3908 Don't ship gdb.dvi in tar file. Link gdb with init.o, not init.c.
3909 Wack over "make depend" so it handles files in subdirectories
3910 vx-share, nindy-share, bfd, and in the current directory.
3911
3912 * blockframe.c (get_prev_frame_info): Remove fatal error
3913 if stack not defined.
3914
3915 * core.c (core_open, core_detach): New functions that handle
3916 the old "core-file" command as "target core" and "detach" instead.
3917 (core_file_command): Call them.
3918 (core_xfer_memory): Use common routine xfer_memory.
3919
3920 * dbxread.c: Include a.out.gnu.h, not system a.out.h.
3921 dbxread now uses bfd for everything but symbol reading itself.
3922 BFD internals are used to drag out the relevant file offsets.
3923 (partial_symbol_file_open): Change args all around for BFD.
3924
3925 * symtab.c: Rename "value" to "val" everywhere, so we can
3926 #include "value.h".
3927 (symbol_file_command): New command, moved from dbxread.c
3928 and coffread.c. It uses BFD to read the file, then vectors
3929 based on its type, to dbx or coff symbol readers.
3930 * symtab.h: Extern a few vars for symbol_file_command.
3931
3932 * target.h: Breakpoint takes a char * save area, not a char **.
3933
3934 * valprint.c (val_print): When unpacking bitfields, offset
3935 the address in gdb of the value, if it is declared with a shorter
3936 type. Remove the last "runtime kludge test" of host byte order.
3937
3938 * utils.c: Remove old my_bfd_read routine.
3939
3940 * stack.c (frame_info): Use target_has_stack. Print program counter
3941 register's actual name rather than "pc", since it's called the
3942 "ip" (instruction pointer) on the i960 (sigh).
3943
3944 * target.c (target_command): Add command for selecting a target
3945 type and calling its open routine. This is used for initiating
3946 communication with a particular target, in a generic way.
3947
3948 * tm-i960.h: Update for modern gdb. Remove semicolons from
3949 various macros. Handle reading struct return convention, and
3950 error-out attempts to return structs with the "return" command.
3951 Be sure gdb doesn't think we know how to call functions in the
3952 inferior.
3953
3954 * i960-tdep.c: Rename FRAME_CHAIN_VALID and FRAME_FIND_SAVED_REGS
3955 to i960_xxx in lower case.
3956 (arg_address): Circumvent errors due to LOC_ARG_BLOCK
3957 not being defined yet.
3958
3959 * remote.c (remote_open): Call start_remote to initialize
3960 wait_for_inferior during open.
3961 (remote_xfer_inferior_memory): Return length written rather
3962 than errno value.
3963
3964 * remote-vx.c (target_command -> vx_open): Use new generic
3965 target command.
3966 * remote-eb.c, inftarg.c, exec.c: ditto.
3967
3968 * infrun.c: Fix comments.
3969 (attach_program -> child_open): Use new generic target command.
3970 (wait_for_inferior): Clear saved register values before target_wait,
3971 so target_wait can set some of them if convenient.
3972
3973 * infptrace.c (fetch_inferior_registers, store_inferior_registers):
3974 Return success indicator, not void.
3975 (child_xfer_memory): Avoid fetching initial word if we'll
3976 overwrite it anyway.
3977
3978 * infcmd.c (attach_command): Use new generic target open routine.
3979 (_initialize_infcmd): Update doc on attach and detach commands.
3980 (do_registers_info): Merge in a byte-order problem as a FIXME
3981 comment.
3982
3983 * findvar.c (find_saved_register): Avoid problem in current frame.
3984 (read_relative_register): Ditto.
3985 (write_register): Convert byte order on the way out.
3986
3987 * exec.c (file_command): Add.
3988 (add_to_section_table, exec_command): Use new bfd_map_over_sections.
3989 (xfer_memory): Common function between core_xfer_memory and
3990 exec_xfer_memory.
3991 (exec_xfer_memory): Use it.
3992
3993 * pn-opcode.h: Document that a "PN" is a Gould PowerNode.
3994
3995 * breakpoint.c, breakpoint.h, symtab.h, value.h, frame.h, utils.c,
3996 valops.c, stack.c, target.c, sparc-xdep.c, source.c, printcmd.c,
3997 infcmd.c, i960-pinsn.c, eval.c, defs.h: lint and gcc -Wall.
3998
3999 Sun Dec 2 16:45:06 1990 John Gilmore (gnu at cygnus.com)
4000
4001 Merge Intel 960 port of gdb, continuing...
4002
4003 * dbxread.c (partial_symbol_file_open, partial_symbol_file_read,
4004 symbol_file_command): Pass from_tty arg to hush 'em up.
4005
4006 * coffread.c (symbol_file_command): Avoid output if from_tty != 1.
4007 Add magic numbers for 960 COFF format.
4008
4009 Fri Nov 30 09:18:20 1990 John Gilmore (gnu at cygnus.com)
4010
4011 Merge Intel 960 port of gdb, from Intel "1.2" release.
4012
4013 CHANGE_LOG entries from their port, which was based on
4014 gdb+-2.8.0:
4015
4016 Thu Sep 6 11:02:22 PDT 1990
4017 Remove temp file if download is interrupted.
4018
4019 Wed Aug 1 09:08:33 PDT 1990
4020 Now uses binary protocol to talk to NINDY.
4021 Old hex protocol (NINDY 2.13 and older) supported with -O switch.
4022 Times out after 5 seconds when trying to talk to NINDY.
4023
4024 Tue May 29 12:54:49 PDT 1990
4025 Added variable baud rate (-b switch).
4026 Source code reorganization.
4027
4028 Thu Apr 26 11:09:55 PDT 1990
4029 More cleanup of batch mode; specifically, execute "-s", "-e", and
4030 "-se" switches as soon as they are encountered on the invocation line.
4031
4032 Fri Apr 20 13:47:15 PDT 1990
4033 Add -brk switch.
4034
4035 Thu Apr 19 09:54:28 PDT 1990
4036 Add 'reset' command.
4037
4038 Wed Apr 18 09:48:07 PDT 1990
4039 After opening remote tty, wait for 1 second to go by without input
4040 from it before trying to talk to NINDY (fixes problems with the
4041 Heurikon HK80/V960E).
4042
4043 Mon Apr 4 16:33:05 PDT 1990
4044 Some output was not being suppressed in 'batch' mode.
4045
4046 Thu Mar 22 15:31:11 PST 1990
4047 Ask user if old symbol table should be deleted when new file is
4048 downloaded.
4049
4050 Allow user to run a program downloaded before gdb960 was brought up.
4051
4052 Correct "exec-file" help message for i80960 context.
4053
4054 Correct bug in calculating user space address: could occasionally
4055 corrupt user program.
4056
4057 Make sure to zero low-order bits in rip's because of bug in 960CA
4058 A-step part: could cause operation faults when "next"ing across
4059 a function call.
4060
4061 Correct bug that made it impossible to get source line numbers for
4062 code loaded at addresses higher than 0x7fffffff.
4063
4064 Wed Jan 10 12:43:22 PST 1990
4065 Open remote tty for exclusive use.
4066
4067 Fri Jan 5 12:14:42 PST 1990
4068 Correct disassembly (CA manual was right after all):
4069 opcode for sysctl is 0x659
4070
4071 Mon Oct 23 12:03:04 PDT 1989
4072 Use G960BASE and G960BIN environment variables to find 'sx' utility.
4073
4074 Mon Oct 16 14:15:09 PDT 1989
4075 "sfr0"-"sfr31" should have been named "sf0"-"sf31"
4076
4077 Mon Oct 2 15:56:31 PDT 1989
4078
4079 Added 960CA disassembly support.
4080
4081 To simplify maintenance:
4082 - eliminated use of symblic links on pinsn.c: use i960-pinsn.c
4083 directly instead.
4084 - eliminated opcode.h: incorporates tables into i960-pinsn.c
4085 - moved 960-specific routines from i960-pinsn.c to i960-md.c
4086 - made disassembly interface identical to that in gdmp960.
4087
4088
4089
4090 Wed Nov 28 21:32:48 1990 John Gilmore (gnu at cygint)
4091
4092 * target.h: Allow targets to stack. Add target_has_memory,
4093 _registers, etc. Restructure memory access and "info files"
4094 to walk the target stack.
4095 * exec.c, core.c, inftarg.c, remote.c, remote-vx.c, remote-eb.c,
4096 target.c: Change tables to match target.h.
4097 * inflow.c (child_mourn_inferior): pop child_ops.
4098 (generic_mourn_inferior): Use new has_stack flag.
4099 * infptrace.c (child_xfer_memory): New memory regime.
4100 * inftarg.c (child_files_info): New "info files" regime.
4101 * remote-eb.c: New memory regime, new info files.
4102 * remote-vx.c: New memory regime, new info files. Now use
4103 separate targets for VxWorks attachment to machine, and
4104 actually running a process under VxWorks, since one has
4105 stack & execution & regs and the other doesn't.
4106 * remote.c: New memory regime, new info files.
4107 * sparc-xdep.c (fetch_core-registers): New memory regime.
4108 * target.c: New routines and support for stacked targets,
4109 new memory regime, new info files regime.
4110
4111
4112 Generalize section handling for an arbitrary number of sections,
4113 including use of the new BFD (binary file) library.
4114 * gdbcore.h: Add struct section_table.
4115 * exec.c (build_section_table): Iterate all sections and
4116 record what gdb needs to know about them.
4117 (exec_command): Use it.
4118 (exec_xfer_memory): Use the table.
4119 (exec_files_info): Print the table.
4120 * core.c (core_file_command, core_xfer_memory, core_files_info):
4121 Likewise.
4122 * source.c (find_source_lines): Use bfd_get_mtime.
4123 * dbxread.c: Quick changes to make it compile with new BFD.
4124 * utils.c (error): Avoid using bfd_error in generic routines.
4125
4126 * core.c (core_fetch_registers): Get from the ".regs" section of
4127 the BFD core file.
4128 * sparc-xdep.c (fetch_core_registers): Use the .regs info.
4129
4130 * inferior.h (attach_flag): Export.
4131 * infcmd.c (run_command): use new target_create_inferior.
4132 * infrun.c (child_create_inferior): Don't return result.
4133 * Makefile.dist (VERSION): 3.91.4.
4134
4135 Fri Nov 23 28:15:38 1990 John Gilmore (gnu at cygint)
4136
4137 * breakpoint.c (bpstat_num): Handle breakpoints which have
4138 since been deleted, such as temporary breakpoints.
4139 infcmd.c (program_info): ditto.
4140
4141 * core.c (core_file_command): Display the frame where the core
4142 dump occurred.
4143
4144 * main.c: lint.
4145
4146 * remote-vx.c (target_command): Merge in target command from
4147 targ-vx.c. A few other cleanups.
4148
4149 * TODO, Projects: Lots more stuff to do...
4150
4151 Fri Nov 23 18:15:38 1990 John Gilmore (gnu at cygint)
4152
4153 Massive changes to wall off the remote-debugging interface
4154 behind a function vector. The port to handle VxWorks targets
4155 is also part of this.
4156
4157 All files: Replace references to renamed functions,
4158 remove references to remote_debugging, remove references to
4159 have_include_file, have_core_file in favor of target_has_stack,
4160 target_has_memory, etc.
4161
4162 * Modularize the breakpoint interface.
4163 breakpoint.h (BREAKPOINT_MAX): New define sets max length of
4164 a breakpoint instruction.
4165 breakpoint.c: struct breakpoint's shadow_contents now sized as
4166 BREAKPOINT_MAX.
4167 (insert_breakpoints): Vector to target to install breakpoints.
4168 (remove_breakpoints): Vector to target here too.
4169 Remove REMOTE_SA_SPARC kludges and other remote_debugging.
4170 sparc-tdep.c (single_step): Use new breakpoint interface for
4171 the single-step breakpoints.
4172 mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
4173 New file, contains routines to insert and remove breakpoints by
4174 reading out the old contents and later replacing them. This is
4175 how ptrace breakpoints work, and many remote systems as well.
4176
4177 * tm-vxworks68.h: New config file, overrides a few things for
4178 Wind River's preferences.
4179
4180 * target.h: New file, for transfer vector used to talk to the
4181 inferior (child, attached, core, exec, remote, etc). All accesses
4182 to the thing being debugged should come through these vectors.
4183 target.c: New file, routines to handle transfer vector.
4184 (various files): Add transfer vectors XXX_ops for the various
4185 targets and pseudo-targets (core files, etc) we support.
4186
4187 * breakpoint.c (bpstat_stop_status): Further explorations of
4188 watchpoints and why things don't work all the time.
4189 (bpstat_alloc): New fn to allocate a bpstat and chain it.
4190
4191 * config.gdb: Only add "source ${srcdir}/.gdbinit" to
4192 the local gdbinit if it doesn't already have it.
4193
4194 * core.c (core_ops): add and install.
4195 Allow core debugging without exec file.
4196
4197 * dbxread.c (free_and_init_header_files): Merge two fns.
4198 (end_symtab): Free named symbol table when a new version comes in.
4199 (read_dbx_symtab): Relocate all kinds of symbols with base
4200 address. First step toward handling different text, data, bss
4201 reloc.
4202 (add_file_addr_command): Renamed add_file_command.
4203 (add_file_command): Vector to remote handler.
4204 Add "load" as an alias for "add-file" command.
4205
4206 * defs.h: Allow "volatile" to be used in non-ANSI; use it for
4207 non-returning functions.
4208
4209 * exec.c: Add exec_ops, and push it as a target when an exec
4210 file is specified.
4211
4212 * infcmd.c (run_command): Pass executable file name and arg list
4213 separately when starting an inferior. Permit "run" when no exec
4214 file is specified, for VxWorks.
4215 (detach_command): Move to child_detach in inftarg.c.
4216
4217 * inftarg.c: New file. Unix-child-specific routines, and the
4218 child_ops structure.
4219
4220 * inferior.h (registers): Export "registers" as the way for
4221 target dependent register handlers to find gdb's local copy of
4222 the registers. Rename "stop_after_attach" to "stop_soon_quietly"
4223 since it is now used by places that want wait_for_inferior to
4224 handle the grunge but want to see every trap from the inferior.
4225
4226 * inflow.c (create_inferior): Pull out, and merge into infrun.c.
4227 Eliminate remote_debugging hooks in terminal handling.
4228
4229 * infrun.c: Replace start_inferior with child_create_inferior.
4230 Move all the hair of Unix shells and ptrace idiosyncracies into
4231 child_create_inferior, so remote handlers don't have to deal.
4232 Remove running_in_shell. Rename stop_after_attach to
4233 stop_soon_quietly, and use it in a few other places where we want
4234 to just call wait_for_inferior and get control back on the first
4235 trap. trap_expected now never takes a value > 1.
4236 (init_wait_for_inferior): Initialize static vars when a new
4237 process is created.
4238
4239 main.c (gdbinit): Add new hook for .gdbinit file name, let
4240 it be overridden by config files as GDBINIT_FILENAME.
4241 (DEFAULT_PROMPT): Add new hook for overriding (gdb) prompt.
4242 Both of these are used for VxWorks gdb.
4243
4244 mcheck.c: rename include file "gmalloc.c" to avoid problems
4245 with system include file "malloc.c".
4246
4247 param-no-tm.h: New include file, same as param.h but does not
4248 include the default "tm.h" file. This is used in files where
4249 the target is known, e.g. remote-eb.c or sparc-xdep.c.
4250
4251 param.h: Now just a shell that includes tm.h and param-no-tm.h.
4252
4253 remote-vx.c: New file, VxWorks remote debugging support. Uses
4254 RPC routines that are shared with the target system, in directory
4255 ${srcdir}/vx-share.
4256
4257 remote.c: Vectorize remote interface.
4258
4259 source.c: Globalize source_path, and make an alias "l" for "list"
4260 since we now have the "load" command.
4261
4262 sparc-xdep.c: Use new param-no-tm.h.
4263
4264 symmisc.c (free_named_symtab): Add new function from Wind River.
4265 However, ifdef it out for now while we think about what it should
4266 really be doing.
4267
4268 tm-sun3.h, xm-sparc.h, xm-sun3.h, xm-symmetry.h: Move
4269 PREPARE_TO_STORE to
4270 the xm- file, and change its name to CHILD_PREPARE_TO_STORE, since
4271 non-Unix-children handle this with their own code in the target
4272 transfer vector.
4273
4274 Makefile.dist: Roll version to 3.92.3. Add vx-share stuff to
4275 source and target lists. Add vx-share to default list of include
4276 directories. Add new files to src and target lists: mem-break,
4277 target, inftarg, remote-eb, remote-vx, targ-vx. Be sure the
4278 ${srcdir} versions of munch and createtags are used.
4279
4280 * valops.c (find_function_addr): Split out of call_function.
4281 (call_function_by_hand): Rename call_function; this function
4282 calls functions in the target by laboriously patching the target
4283 word-by-word with the right stack, args, regs, etc.
4284
4285
4286 Mon Nov 5 17:29:10 1990 John Gilmore (gnu at cygint)
4287
4288 Handle AMD 29000 a bit better.
4289
4290 * remote-eb.c (readchar): Mask received char log to make it readable.
4291 (remote_start): Pass arguments down to executing program.
4292 Make startaddr unsigned.
4293 infrun.c (start_inferior): Accept args, pass them to
4294 remote_start.
4295 infcmd.c (run_command): Pass args down to start_inferior.
4296
4297 * tconfig/am29k-aout, tconfig/am29k-coff: New files specifying
4298 the target object file format.
4299 tm-29k.h: Pay heed to COFF_ENCAPSULATE.
4300
4301 * am29k-pinsn.c (print_insn): Print 0x on hex numbers in disassembly.
4302 am29k-tdep.c (examine_prologue): Better checking of function prefixes.
4303
4304 Sun Oct 7 18:20:45 1990 John Gilmore (gnu at cygint)
4305
4306 * Makefile.dist (VERSION): Roll version to 3.91.9 and freeze.
4307 * TODO: We did a few things, we have more to do though.
4308
4309 * xm-sparc.h (CLEAR_DEFERRED_STORES): Define.
4310 * inflow.c (inferior_died): Clear deferred stores.
4311
4312 * Debug problems with dummy frames and calls to the inferior.
4313 * tm-sparc.h (PUSH_DUMMY_FRAME, POP_FRAME): Move to sparc-tdep.c.
4314 * sparc-tdep.c (do_restore_insn): Simplify.
4315 (sparc_frame_find_saved_regs): Simplify and fix what we find.
4316 (sparc_push_dummy_frame): Simplify and fix what we push.
4317 (sparc_pop_frame): Slightly more hair here, deciding whether
4318 we are restoring a saved PC or returning to a return address in %i7.
4319 * sparc-xdep.c (read_inferior_registers): Debug if valid reg is read.
4320
4321 * utils.c (xmalloc, xrealloc): Return type depends on __STDC__.
4322 * symtab.h (xmalloc): ditto, for obstack_chunk_alloc.
4323 * obstack.h (chunkfun): ditto.
4324 * defs.h (xmalloc, xrealloc): ditto
4325
4326 * utils.c (quit): Grab the terminal from the child if necessary.
4327
4328 * inflow.c (term_status_command): Rename to term_info, change
4329 to "info terminal".
4330
4331 * sparc-pinsn.c (print_insn): Disassembly prefers real instructions.
4332 (is_delayed_branch): Speed up.
4333 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
4334 Still missing some float ops, and needs testing.
4335
4336 * Support for input and output radixes other than base 10
4337 * defs.h (input_radix, output_radix): Declare.
4338 * expread.y (yyparse, parse_number): Handle changes of input
4339 radix, and ambiguous names-or-numbers in radixes >10.
4340 * printcmd.c (print_scalar_formatted): Print formatted hex
4341 numbers in varying column widths.
4342 * valprint.c (val_print): Use output_format to print scalar ints.
4343 (set_input_radix, set_output_radix, set_radix): Create.
4344 (set_output_radix): Set output_format from output_radix.
4345 (_initialize_valprint): add `set radix' but leave the others off.
4346
4347 * main.c (execute_command): Let stupid questions be turned off.
4348 (_initialize_main): Handle "set stupidity", etc.
4349
4350 * main.c, inflow.c, inferior.h, frame.h, command.c, defs.h,
4351 sparc-pinsn.c, sparc-xdep.c, value.h, valops.c, values.c: Lint.
4352
4353 Tue Oct 2 11:20:02 1990 John Gilmore (gnu at cygint)
4354
4355 * TODO, Makefile.dist, ChangeLog: Freeze for 3.91.8 release.
4356 bfd stuff is still screwed up, but with some manual work, it
4357 compiles.
4358
4359 * breakpoint.c (bpstat_do_actions): Start over if a command
4360 proceeds the inferior, since the inferior will have stopped and
4361 will need to have its new stop-actions taken care of.
4362
4363 * dbxread.c (read_struct_type): Expression gives Sun3 4.0.3
4364 compiler fits, simplify it.
4365
4366 * gdb.texinfo (directory command): Doc new dir command.
4367 source.c (directory_command): "dir" now puts things on the front
4368 of the path, moves dups up front, and handles multiple names
4369 on the command line, inserting each one in order. It also
4370 blows away cached line and full_filename info.
4371
4372 * stack.c (backtrace_command): Skip "more stack frames follow"
4373 unless interactive.
4374
4375 * Change #ifndef HAVE_VPRINTF to #define MISSING_VPRINTF in
4376 xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
4377 xm-np1.h, xm-pn.h, xm-pyr.h, xm-symmetry.h, xm-umax.h, xm-vax.h.
4378 The only odd one was Gould NP1, which had defined vprintf to
4379 "printf"!!!
4380
4381 * Merge Ted Goldstein <tedg@Eng.sun.com>'s changes for epoch.
4382 printcmd.c (print_command_1): Pass 'inspect' flag down as a global
4383 variable, inspect_it.
4384 valprint.c (print_string, val_print): Use the global inspect_it
4385 to indicate whether to print in Epoch style or normal style.
4386
4387 Mon Oct 1 23:55:26 1990 John Gilmore (gnu at cygint)
4388
4389 * printcmd.c (call_command): add an alias for the "print" command
4390 which runs expressions and doesn't print the result if void.
4391 (print_command_1): implement it.
4392
4393 * command.c: Remove #if 0'd code. Initialize all the fields
4394 in add_cmd (). Rename do_nothing_command to
4395 not_just_help_class_command, and make it externally visible.
4396 command.h: add user_commands to struct.
4397 * main.c (define_command): Don't overload c->function with a char
4398 string as well as a function pointer.
4399
4400 * eval.c (evaluate_subexp): Reinstall tiemann changes to
4401 calling convention of value_struct_elt () that got dropped in
4402 merge.
4403
4404 * tm-sparc.h (FRAME_FIND_SAVED_REGS): move to sparc-xdep.c.
4405 sparc-tdep.c (sparc_frame_find_saved_regs): ditto.
4406
4407 * tm-sparc.h (POP_FRAME): replace some constants with defines.
4408
4409 * sparc-xdep.c (store_inferior_registers): defer stores to regs
4410 until a good time (e.g. when we are about to run the child),
4411 saving ptrace calls.
4412 * infrun.c (proceed): handle DO_DEFERRED_STORES.
4413 * tm-sparc.h: define DO_DEFERRED_STORES.
4414
4415 * sparc-xdep.c (store_inferior_registers): when storing float
4416 registers, don't store stack regs too. When storing the SP,
4417 however, DO store the stack regs too. This fixes a bug in which
4418 the dummy frame is not recognized when a call_function finishes,
4419 because its frame pointer (in the stack regs) was never
4420 initialized.
4421 (read_inferior_registers): Mark WIM and TBR and FPS and CPS valid
4422 even though we don't know how to read them from an inferior.
4423 valops.c (call_function): Comment about storing SP.
4424
4425 * infrun.c (save_inferior_status): Save away the original bpstat
4426 chain so it can be restored later. Install the copied version for
4427 use by whoever saved the status. It will be blow away by
4428 restore_inferior_status, and the original chain restored. This is
4429 important for people who have pointers into the original.
4430
4431 * breakpoint.c, command.h, copying.awk, dbxread.c, defs.h,
4432 findvar.c, frame.h, obstack.h, obstack.c, inflow.c, value.h,
4433 main.c, printcmd.c, sparc-tdep.c, symtab.c, valprint.c: lint
4434
4435
4436 Fri Sep 28 20:32:46 1990 John Gilmore (gnu at cygnus.com)
4437
4438 * Makefile.dist: Roll version to 3.91.8. Add bfd.h and bfdconfig.h
4439 temporarily to the makefile. Add am29k-opcode.h and WHATS.NEW.
4440 Add stuff.c and kdb-start.c to the OTHERS list for tar files.
4441
4442 Fri Sep 28 19:12:12 1990 John Gilmore (gnu at cygint)
4443
4444 * Merge Mike Tiemann's multiple inheritance changes from Sun.
4445 Store the baseclasses in a type struct starting from array element
4446 0 rather than from the unusual array element 1.
4447
4448 dbxread.c: the above.
4449 (virtual_context): Add
4450 Read new debug information about which virtual function table
4451 a virtual function is from, and store it in fn_field.fcontext.
4452
4453 symtab.h: Add fcontextt. Fix baseclass indices. Typo in
4454 TYPE_FN_FIELD_STATIC_P.
4455
4456 symtab.c: the above.
4457 valops.c: the above. Handle pointer casts of object *'s.
4458 (search_struct_method): Add.
4459 (value_struct_elt): First arg is now a pointer to a value, and is
4460 modified on return.
4461
4462 valprint.c: the above.
4463 values.c (value_virtual_fn_field): Add type arg. Handle
4464 offsetting to the proper object when calling virtual fns.
4465 The above.
4466 (baseclass_addr): Add valuep arg.
4467
4468 * README: Document the current state of BFD config (missing).
4469 * TODO, ChangeLog, Makefile.dist: Roll version.
4470 * WHATS.NEW: Add summary of changes since 3.5.
4471
4472 Thu Sep 27 16:23:12 1990 John Gilmore (gnu at cygint)
4473
4474 * dbxread.c (read_struct_type): Clear bit vectors whenever
4475 we allocate one.
4476 symtab.c (B_CLRALL): define.
4477
4478 * tm-sparc.h (STORE_RETURN_VALUE): Avoid clobbering types by
4479 using == rather than =. Huh... This fixes the dreaded problem
4480 wherein builtin_type_int becomes TYPE_CODE_FLT.
4481
4482 * core.c (info_files): Show the inferior pid.
4483
4484 * config.gdb: Avoid putting "dir" command into .gdbinit. GDB
4485 already knows how to look in the source directory.
4486
4487 * Remove psymtab hair from many places. Remove duplicated code
4488 for searching symbol tables. Hide psymtabs from most places.
4489 Make it fast to get from a psymtab to its symtab.
4490
4491 blockframe.c (blockvector_for_pc): Remove psymtab hair.
4492 coffread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
4493 mipsread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
4494 dbxread.c: export psymtab_to_symtab, make it work if called N times.
4495 (psymtab_to_symtab): Rename to psymtab_to_symtab2. Initialize
4496 new symtab completely. New psymtabs get symtab pointer
4497 initialized to zero. Remove MI warning printf.
4498 symtab.h: Comments. Add psymtab to symtab pointer.
4499 (PSYMTAB_TO_SYMTAB): New macro.
4500 symtab.c: use PSYMTAB_TO_SYMTAB. Add psymtab_to_symtab and export it.
4501 source.c: use PSYMTAB_TO_SYMTAB. Remove symtab version and
4502 compilation fields.
4503 stack.c (backtrace_command): Avoid pre-pass to read symbols, if
4504 verbose is not set.
4505 (print_frame_info): Avoid special-casing symbols that have not yet
4506 been read in.
4507
4508 * source.c (open_source_file): Quick path if we have already
4509 located the source file by its full name.
4510
4511 * symtab.c (lookup_symbol): Use find_pc_symtab rather than
4512 find_pc_psymtab. When a name is found in the misc function
4513 vector, search the symbol table for its mangled name, not the
4514 name that the user typed.
4515
4516 * bfd.h: Fix missing comment terminators, make #endifs match.
4517
4518 * valarith.c (value_less): Handle unsigned int comparisons.
4519 Add FIXME about pointer compares, which assume host and target
4520 pointers are the same.
4521
4522 * command.c (do_nothing_command): lint
4523 dbxread.c: lint. Remove sort_syms. Document C++ visibility info,
4524 fix comments on debug symbol format for visibility. Actually set
4525 visibility of symbols.
4526 main.c (echo_command): lint; use <readline/history.h>.
4527 tm-sparc.h (FRAME_FIND_SAVED_REGS): lint
4528 obstack.h (_obstack_blank): Rearrange pointer math to avoid
4529 pointing past end of allocated memory; saber complains.
4530 obstack.h: Declare the external functions that we use.
4531 valarith.h: use <string.h>
4532 solib.c (solib_add): lint.
4533
4534 Fri Sep 21 17:05:19 1990 John Gilmore (gnu at cygint)
4535
4536 * main.c (initialize_main): Default info_verbose to off, now that
4537 symbol reading is fast.
4538 (quit_command): Avoid clobbering exec_bfd while quitting.
4539
4540 * Initial BFD (binary file diddling library) merger:
4541 coffread.c: Change AOUTHDR to struct exe_hdr.
4542 dbxread.c: ditto.
4543 core.c: initialize initialized data at compile time.
4544 (core_file_command): Move from coredep.c, convert to bfd.
4545 (xfer_core_file): Convert to bfd.
4546 exec.c (exec_file_command): use bfd routines.
4547 gdbcore.h: BFD.
4548 mips-tdep.c: Remove exec_file_command and friends.
4549 source.c: bfd.
4550
4551 * coredep.c: (fetch_core_registers) Convert core_file_command to
4552 fetch_core_registers.
4553 mips-xdep.c, sparc-xdep.c, sun3-xdep.c: ditto.
4554
4555 * utils.c: (error): Bogus crap, FIXME, to print bfd errors.
4556 (my_bfd_read): More bogosity, which I don't think we call.
4557 (program_name): Remove this atrocity asap!
4558
4559 Wed Sep 19 13:36:41 1990 John Gilmore (gnu at cygint)
4560
4561 * From Per Bothner:
4562 values.c: allocate_repeat_value was not clearing the
4563 optimized_out field.
4564 (value_static_field): minor stylistic fix (wrong macro was used).
4565 valops.c (value_struct_elt_for_address): didn't work for C++
4566 static fields.
4567
4568 * signame.c (_initialize_signame): Initialize signal names once.
4569
4570 * breakpoint.h, command.c, copying.awk, defs.h, environ.c,
4571 exec.c, frame.h, infcmd.c, inferior.h, main.c, munch, sun3-xdep.c,
4572 symtab.h, tm-29k.h, valprint.c, value.h, values.c: Lint.
4573
4574 * remote-eb.c: Support user-settable baud rates on the serial port.
4575
4576 * tm-sun3.h (PREPARE_TO_STORE): fix typo.
4577
4578 Fri Sep 14 13:28:29 1990 John Gilmore (gnu at cygint)
4579
4580 * tconfig/sun3os4: Remove warning about native assembler,
4581 since it also occurs in the xconfig file.
4582
4583 * findvar.c (registers): Allocate some slop after `registers'
4584 to prevent stray accesses from trashing the next variable.
4585
4586 * tm-68k.h (REGISTER_BYTES): Allocate the right number of bytes
4587 on the sun-3, by changing the #ifdef from `sun3' (which is not
4588 defined by cc) to `sun'. Symptom was trashed builtin_type_XXX
4589 vars, which happened to follow `registers' in the executable.
4590
4591 * readline/history.c (history_search): Heed gcc-2's advice
4592 and parenthesize && inside ||).
4593
4594 * am29k-opcode.h, am29k-pinsn.c, am29k-tdep.c, remote-eb.c,
4595 tm-29k.c: Insert FSF copyright headers.
4596
4597 * remote-eb.c: Better comments.
4598
4599 * Makefile.dist: Update to 3.91.6.
4600 * TODO: note PREPARE_TO_STORE problem.
4601
4602 Thu Sep 13 09:52:33 1990 Jim Kingdon (kingdon at cygint)
4603
4604 * stack.c (frame_info): Only use FRAME_FIND_SAVED_REGS if defined.
4605
4606 * remote.c: Wrap the whole file in #if !defined (SPECIAL_REMOTE).
4607
4608 * infrun.c (wait_for_inferior, at end): Don't set up
4609 prev_* if the inferior no longer exists.
4610
4611 * inferior.h (CALL_DUMMY_LOCATION): New macro, to replace
4612 CANNOT_EXECUTE_STACK.
4613 valops.c (call_function): Use it.
4614
4615 * tm-convex.h: Add CALL_DUMMY_LENGTH for use by PC_IN_CALL_DUMMY.
4616
4617 * inferior.h (PC_IN_CALL_DUMMY): New macro.
4618 infrun.c (wait_for_inferior, 2 places): Use it.
4619
4620 * values.c (value_being_returned): Only use
4621 EXTRACT_STRUCT_VALUE_ADDRESS if defined.
4622
4623 * Move PREPARE_TO_STORE from xm-sun3.h to tm-sun3.h to do the
4624 right thing for remote-eb.c.
4625
4626 * sun3-xdep.c: Remove extraneous call to remote_store_registers.
4627 * sun386-xdep.c, hp300hpux-xdep.c, sparc-xdep.c: Ditto.
4628
4629 * blockframe.c: Put get_frame_saved_regs inside #if !defined
4630 (FRAME_FIND_SAVED_REGS).
4631
4632 * findvar.c ({fetch,store}_registers): Check for
4633 REMOTE_{FETCH_STORE}_REGISTER macro.
4634
4635 * findvar.c (get_saved_register): Add argument lval and
4636 change meaning of argument addr.
4637 findvar.c: Change calls to get_saved_register to reflect
4638 new calling convention.
4639 valops.c (value_assign): Use get_saved_register instead of
4640 find_saved_register.
4641
4642 Sun Sep 2 12:40:20 1990 Jim Kingdon (kingdon at cygint.cygnus.com)
4643
4644 * coffread.c (read_one_sym): Make temp_aux an AUXENT, not
4645 an (uninitialized) pointer to one. Use "&" when passing it
4646 to fread.
4647
4648 Fri Aug 31 22:57:54 1990 Jim Kingdon (kingdon at cygint.cygnus.com)
4649
4650 * coffread.c (getfilename): Use DGUX x_offset and x_name if
4651 defined.
4652
4653 * coffread.c (symbol_file_command): Put semicolon after
4654 "int from_tty".
4655 Put safe_to_init_tdesc_context in #if defined (TDESC).
4656 Put #ifdef TDESCs in 1st column for non-ANSI cpp's.
4657 coffread.c: #include <sys/stat.h>.
4658 (read_coff_symtab): Typo: in_source_files -> in_source_file.
4659 Add missing ')' in check for "lc%" and friends. Remove
4660 extraneous '}'.
4661 Declare read_one_sym() at top of file.
4662 (read_file_hdr): Put in extra #ifdefs so MC68MAGIC and
4663 MC68WRMAGIC can have the same value without causing a duplicate
4664 case.
4665
4666 Thu Sep 13 15:55:36 1990 John Gilmore (gnu at cygint)
4667
4668 * Allow a Makefile to be built without building the
4669 tm and xm file links that screw up builds in subdirectories.
4670 This is done with `config.gdb none', then you can do things
4671 like `make gdb.tar.Z'.
4672 * tconfig/none: Config file for no target system
4673 * xconfig/none: Config file for no host system
4674 * config.gdb: If no TM or XM files are called out by the
4675 host or target file, don't make links for them.
4676
4677 * cplus-dem.c: Add documentation.
4678
4679 * dbxread.c (read_ofile_symtab): Turn a fatal error into a
4680 simple error, so the user's gdb doesn't crash due to some object
4681 file problem (e.g. somebody is rebuilding the file out from under
4682 gdb).
4683
4684 * printcmd.c (print_address_symbolic): demangle the symbol.
4685
4686 * Makefile.dist (OTHERS): Remove tdesc-lib because it has
4687 Motorola copyrights in it. Make "make gdb.tar.Z" work.
4688 (alldeps.mak): sort and uniq all results from this; duplicates
4689 hose gdb.tar.Z link building. Remove RCS files from
4690 tconfig and xconfig. Add config files for sun386. Add
4691 a few odd files to OTHERS and HFILES.
4692
4693 Mon Sep 10 21:20:24 1990 John Gilmore (gnu at cygint)
4694
4695 * Makefile.dist: Pull solib.c to tconfig/sun?os4.
4696 Roll version number to 3.91.5. Make lint work in bindir.
4697
4698 * README: Document cross-debugging and new file structure.
4699
4700 * blockframe.c: Lint. Include "value.h" to declare read_register.
4701 (find_pc_partial_function): remove duplicate line.
4702
4703 * command.h: Lint. Declare error_no_arg and dont_repeat.
4704
4705 * tm-news.h: Remove inadvertently duplicated stuff.
4706
4707 * mipsread.c: Remove cache_pc_function stuff, now done cleanly.
4708 Clean up usage of misc_function_type. Declare some CORE_ADDRs.
4709
4710 * config.gdb: Allow `config.gdb host target' form. Clean
4711 up previous change that printed bogus messages when you just said
4712 `config.gdb'.
4713
4714 * core.c: #include "command.h" for lint.
4715 * dbxread.c: lint
4716 * eval.c: lint
4717 * main.c: Remove some casts of enums. Lint.
4718 * source.c: lint
4719 * symtab.c: lint
4720 * symtab.h: lint
4721 * expread.y: lint
4722 * valarith.c: lint
4723
4724 * printcmd.c (initialize_printcmd): Fix thinko in inspect cmd.
4725
4726 * sparc-tdep.c (isannulled): Take instruction as parameter, don't
4727 read it from memory. This will allow us to save ptrace calls
4728 eventually. Changed caller single_step too.
4729
4730 * sparc-xdep.c (fetch_inferior_registers): Avoid reading regs
4731 that we aren't going to use, saving many ptrace calls, especially
4732 when watchpointing or single stepping. Use some #define's for
4733 constants.
4734 (store_inferior_registers): Ditto.
4735 (core_file_command): Use some #define's for constants.
4736
4737 * tm-sparc.h: Add #define's for some register numbers, so we
4738 can eliminate the use of random constants in sparc-xdep.c.
4739
4740 * stack.c (frame_command, print_frame_info, up_command,
4741 down_command) Remove frame_changed, since it
4742 causes a bug and doesn't seem to do anything useful. In some
4743 places it was used as a flag, in others as a stack level (?).
4744
4745 * utils.c: Use MISSING_VPRINTF rather than HAVE_VPRINTF, so the
4746 default is to use the portable (vprintf) version rather than the
4747 kludge version.
4748 * xm-news.h (MISSING_VPRINTF): Add.
4749
4750 * valprint.c (val_print): Demangle fancy vtbl printouts. Lint.
4751
4752 Sat Sep 8 00:24:12 1990 John Gilmore (gnu at cygint)
4753
4754 * Remove stuff that forces -Bstatic linking of gdb, and warnings
4755 about linking debugged programs -Bstatic in the sun?os4 config
4756 files in tconfig and xconfig subdirectories.
4757
4758 * main.c (main): Remove unreached exit(0) now that we exit
4759 via quit_command().
4760
4761 * Create TODO file for online bug list. There are too many
4762 "little" bugs to keep track of on paper.
4763
4764 * Change Projects file to refer to bug-gdb@cygnus.com
4765 rather than kingdon@ai.
4766
4767 Fri Sep 7 23:35:15 1990 John Gilmore (gnu at cygint)
4768
4769 * Makefile.dist (VERSION): 3.91.4 now.
4770
4771 * symtab.c (init_misc_bunches): Rename from init_misc_functions.
4772 (condense_misc_bunches): Add sanity check that misc_count is
4773 the same as the number of symbols in the bunch.
4774
4775 * coffread.c: rename init_misc_bunches. Pass an argument
4776 to condense_misc_bunches (a zero).
4777
4778 * dbxread.c (partial_symbol_file_read): Call init_misc_bunches
4779 every time we are called; don't rely on our caller to do it.
4780 (add_file): Remove call to init_misc_bunches.
4781
4782 * mipsread.c: Only warn, don't error, if unknown symbol types.
4783 This keeps an old gdb from falling on its face if it sees newly
4784 extended symbol info. Rename init_misc_bunches.
4785
4786 Fri Sep 7 22:58:15 1990 John Gilmore (gnu at cygint)
4787
4788 * Merge in changes from Per Bothner for DECstations and other
4789 MIPS stuff. The rest is Bothner speaking:
4790
4791 The next message is a merger of Alessando Forin's mips port with
4792 mine. I've tried to use my good if biased judgment to get
4793 the best of both. It *does* need testing.
4794
4795 Some of the changes are general, *not* mips-specific.
4796
4797 param.h:
4798 Didn't believe in little-endian bit order.
4799 There are still inconsistencies about whether flags
4800 like BITS_BIG_ENDIAN are integer (#if ...) or
4801 boolean (#ifdef ...). I tried to paper over them.
4802
4803 dbxread.c,coffread.c,mipsread.c,symtab.c,symtab.h:
4804 Moved some misc_function code that was common to
4805 {dbx,coff,mips}read.c to symtab.c.
4806 In the process, I think I cleaned things up a bit.
4807 At the same time, moved obsavestring and obconcat to symtab.c.
4808
4809 dbxread.c:
4810 Removed obsolete condense_addl_misc_bunches (use
4811 condense_misc_bunches(1) instead).
4812
4813 exec.c:
4814 Needed to include <sys/dir>, at least on DECstations.
4815
4816 valops.c, mips-tdep.c, tm-mips.h:
4817 Added PUSH_ARGUMENTS macro to support funny argument-pushing
4818 conventions (when STACK_ALIGN is insufficient).
4819 Needed on mips, where doubles need 8-byte alignment,
4820 but ints only need 4.
4821
4822 mips-opcode.h:
4823 Removed cruft that was not being used.
4824 Merged in many fixes (most from Frank Yellin, fy@lucid.com).
4825
4826 mips-pinsn.c:
4827 Print $ before register-names (I think that makes things a little
4828 more consistent).
4829 Never print two instructions, even if one delays.
4830 Removed hex-disassemble set_cmd. (This is not mips-specific,
4831 so I think the argument is whether it is generally worthwhile or not.
4832 I'm inclined to think not, given how easy it is to
4833 convert between radixes in gdb.)
4834
4835 mipsread.c:
4836 This is basically Alessando's code.
4837 It doesn't use obstacks; I changed it to use obstacks
4838 in a few minor places where using malloc causes a
4839 memory leak. (Probably, more places could/should be changed.)
4840 I added record_misc_function where it was missing.
4841 In symbol_file_command and add_file_command, I tried
4842 to make the code consistent with more recent versions.
4843 Minor sylistic changes in parse_procedure.
4844 Make a .gdbinfo. psuedo-symbol point back to the real
4845 procedure symbol (using the isym field).
4846
4847 mips-tdep.c:
4848 This is basically from my port, but with a lot of details
4849 and a number of routines merged in from Alessando's version.
4850 I basically used my code "raw" backtrace (use heuristics
4851 from the actual code, rather than symbol table info) - though
4852 the idea is Alessandro's. I feel my code is a little cleaner
4853 here, particularly in being a little more flexible, such as being
4854 able to handle gcc-produced code (which it now can).
4855 It also doesn't do frame caching (which is not useful
4856 more recent gdb versions).
4857 I also used my code for push_/pop_dummy, more or less.
4858 I tried to incorporate AF's code for testing sigtramp
4859 while backtracing; I probably got it wrong.
4860 Added mips_print_register, which tries to scrunch as much
4861 information as possible on a screen...
4862 Removed the skip-prologue set_cmd. As with hex-disassemble (see
4863 under mips-pinsn.c), I don't see anything mips-specific here,
4864 and I don't see it being all that useful anyway.
4865
4866 tm-mips.h:
4867 Added a $fp psuedo-reg distinct from $fp (nice for gcc).
4868 Use more register names (rather than hard-cases numbers).
4869
4870 Thu Sep 6 18:33:15 1990 John Gilmore (gnu at cygint)
4871
4872 * Hack up 3.90.11 changes:
4873
4874 * Makefile.dist (depend): parameterize $(GCC).
4875 Add solib.c and solib.o.
4876 (readline): Fix vpath for both absolute or relative SRCDIR.
4877
4878 * blockframe.c: Fix from Schaefer@asc.slb.com for shared libs.
4879 Also, let the part I didn't understand at least compile so
4880 I can test the rest. FIXME.
4881
4882 * dbxread.c: Fix thinko using strcmp.
4883 (init_psymbol_list): declare static.
4884 (partial_symbol_file_open): Comment cleanups better, avoid
4885 cleaning up the string table since the caller will do that.
4886 Move the stat for mod time into symbol_file_command, temporarily.
4887 (There should be a mod time for each symbol file, eventually,
4888 to control its rereading. FIXME.)
4889
4890 * infptrace.c (PT_WRITE_D): use same value as PT_WRITE_I for
4891 SunOS, which gives error for shared libs otherwise. (From
4892 Schaefer, probably FIXME needs work for portability.)
4893
4894 * solib.c: Move #include "param.h" to work.
4895 Lowercase all the Uppercase Letters In the Messages.
4896 (find_solib): Clean up inferior_so_name for debug printouts.
4897 Allow no argument, to mean all shared libraries.
4898
4899 * symmisc.c: include param.h to get CLEAR_SOLIB.
4900
4901 Wed Sep 5 18:00:08 1990 John Gilmore (gnu at cygint)
4902
4903 * Merge in Kingdon's changes from FSF: the diffs from 3.90.9
4904 to 3.90.11. ChangeLog entries below are from this.
4905
4906 Wed Jun 13 09:17:39 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
4907
4908 * Version 3.90.11.
4909
4910 * Makefile.dist (HFILES): Add tm-sunos.h.
4911
4912 Tue Jun 12 16:15:26 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4913
4914 * Version 3.90.10.
4915
4916 * Makefile.dist (gdb.tar.Z): Change linking of config so it works.
4917
4918 Thu Jun 7 16:22:27 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
4919
4920 * sparc-opcode.h Added single-operand version of rett.
4921
4922 Mon Jun 4 18:12:31 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4923
4924 * m-sparc.h (REG_STRUCT_HAS_ADDR, STRUCT_ARG_SYM_GARBAGE):
4925 Put parens around gcc_p in expansion.
4926
4927 Thu May 24 15:44:51 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
4928
4929 * utils.c (lines_to_list): Return 10 if lines_per_page == 0.
4930
4931 Wed May 23 16:36:04 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4932
4933 * Changes for Sun shared libraries:
4934 blockframe.c (find_pc_partial_function): If a non-text symbol
4935 is found, set *address = pc - FUNCTION_START_OFFSET.
4936 breakpoint.c (insert_breakpoints) [DISABLE_UNSETTABLE_BREAK]:
4937 Disable breakpoints instead of giving an error.
4938 source.c (select_source_symtab): Initialize cs_pst.
4939 symmisc.c: Call CLEAR_SOLIB if defined.
4940 symtab.h: Make text{low,high} CORE_ADDR not int.
4941 (psymtab): New field addr.
4942 solib.c: New file.
4943 dbxread.c: Move DECLARE_FILE_HEADERS outside functions.
4944 (record_misc_function): Give correct type for N_DATA symbols.
4945 (condense_misc_bunches): do "misc_function_count = j" regardless
4946 of inclink.
4947 Take code which is shared between symbol_file_command and
4948 add_file_command and put it into partial_symbol_file_{open,read}.
4949 Split add_file_command into add_file_command and add_file.
4950 Make psymtab_to_symtab read in the string table if the file
4951 is not symfile.
4952 Two new parameters to read_dbx_symtab and start_psymtab.
4953 tm-sunos.h: New file.
4954
4955 Tue May 22 17:43:03 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4956
4957 * infcmd.c: Change cont_command to continue_command and "cont"
4958 to "continue".
4959
4960 Mon May 21 14:41:41 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4961
4962 * breakpoint.c (enable_breakpoint): Get value of watchpoint.
4963
4964 * defs.h [sparc]: Use <alloca.h> regardless of __GNUC__.
4965
4966 * values.c (USE_STRUCT_CONVENTION): Check for structures of
4967 size 1,2,4,8 rather than size < 8.
4968
4969 * dbxread.c (dbx_lookup_type): Do f->length *= 2 as many times
4970 as necessary, not just once.
4971
4972 * sparc-opcode.h: Add a bunch of new opcodes which Sun as supports.
4973
4974 Thu May 17 15:04:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4975
4976 * {t,x}m-sun386.h, sun386-xdep.c, {x,t}config/sun386
4977
4978 * tm-news.h: Add CALL_DUMMY_*.
4979
4980 * tm-68k.h: Remove duplicate comment at FRAME_FIND_SAVED_REGS.
4981
4982 * config.gdb: In list_host, list_target, use ${i}, not $i.
4983
4984 Tue May 15 21:27:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4985
4986 * source.c (find_source_lines) [BROKEN_LARGE_ALLOCA]: Use xmalloc.
4987
4988 * sparc-opcode.h: Change all store floating-point state register
4989 instructions to have the right match & lose fields.
4990
4991 Sat May 5 12:39:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
4992
4993 * Makefile.dist: Move -I${srcdir} to GLOBAL_CFLAGS and pass
4994 VPATH to readline.
4995 config.gdb: If srcdir != ., create readline directory and
4996 copy a makefile into it.
4997
4998 * wait.h, infrun.c: Change WRETCODE to WEXITSTATUS for
4999 consistency with POSIX.
5000
5001 * breakpoint.c (bpstat_stop_status): Disable watchpoint
5002 when we exit its exp_valid_block.
5003
5004 Tue Sep 4 11:46:46 1990 John Gilmore (gnu at cygint)
5005
5006 * Makefile.dist: Bump version to 3.91.3.
5007
5008 * Clean up handling of breakpoint commands (somewhat).
5009 Prompted by Tiemann bug report "cont 10" doesn't work any more.
5010
5011 inferior.h: Add breakpoint_proceeded to inferior status struct
5012 and globals; save it and restore it.
5013 (clear_breakpoint_commands): Cleanup, remove old #define.
5014
5015 infrun.c (clear_proceed_status): Set breakpoint_proceeded.
5016 (save_inferior_status, restore_inferior_status): handle it also.
5017 (proceed): Remove earlier code that set breakpoint_proceeded.
5018 It is now set only in clear_proceed_status.
5019 (clear_proceed_status): Cleanup, use bpstat_clear rather
5020 than clear_breakpoint_commands. No callers need the stop_bpstat
5021 between clear_proceed_status and proceed.
5022
5023 infcmd.c: Add breakpoint_proceeded definition and comment.
5024 (cont_command, jump_command, signal_command): Move call to
5025 clear_proceed_status right next to call to proceed.
5026
5027 breakpoint.c (bpstat_do_actions): Avoid clobbering our
5028 caller's argument while running down the chain of breakpoints.
5029 Use new variable "breakpoint_proceeded" to determine when
5030 a command that it executes moves the inferior past the
5031 breakpoint.
5032 (bpstat_clear): Handle NULL argument.
5033 (bpstat_clear_actions): Avoid useless call to
5034 breakpoint_auto_delete.
5035 (delete_breakpoint): Clean up bpstat's that are pointing to
5036 the deleted breakpoint from the stop_bpstat chain.
5037 (breakpoint_auto_delete): Simplify.
5038
5039 * Clean up handling of EOF, error on stdin, etc. This was
5040 prompted by a network problem that caused gdb to go into an
5041 infinite loop filling up its malloc'd memory.
5042
5043 main.c (return_to_top_level): Cleanup: call bpstat_clear_actions,
5044 not clear_breakpoints_commands, which is now gone.
5045 (main): If command_loop returns (e.g. from EOF on stdin), do
5046 a quit_command (looping back to command_loop if quit_command
5047 doesn't really quit).
5048 (command_loop): check result from command_line_input and
5049 exit if it returns NULL, rather than passing the NULL to
5050 execute_command.
5051 (gdb_readline): Free malloc'd result space before returning
5052 NULL for EOF.
5053
5054 * utils.c (query): Handle C-d to mean "yes", just as if the
5055 input was not a terminal. Also avoid infinite loop if EOF
5056 occurs in mid-input-line before newline. This allows
5057 query to be used at EOF on stdin with reasonable results.
5058
5059 * infrun.c (proceed): Set breakpoint_proceeded.
5060
5061 * values.c (value_as_long): Avoid infinite recursion for enums.
5062 (_initialize_values): Fix typo in help msg (kingdon).
5063
5064 * Makefile.dist (RL_LIB): Use RL_LIB_DEP for dependencies,
5065 RL_LIB for linking. This allows -lreadline for linking
5066 and nothing for dependencies, once readline is a real library.
5067
5068 * config.gdb: Jim Kingdon: give useful error message if the
5069 host or target type is not recognized.
5070
5071 * defs.h (alloca): SPARC <alloca.h> does not declare alloca,
5072 it just defines it. Dumb, but deal with it.
5073
5074 * Jim Kingdon suggests:
5075 in xconfig/sun3os4, CFLAGS should be XM_CFLAGS.
5076
5077 Wed Aug 29 18:03:27 1990 John Gilmore (gnu at cygint)
5078
5079 * Makefile.dist (VERSION): Bump version # to 3.91.2.
5080
5081 * Clean up Bothner's changes.
5082
5083 * blockframe.c (clear_pc_function_cache): New function.
5084 * blockframe.c: remake cache_pc_function_* static.
5085 * dbxread.c (symbol_file_command): remove references to
5086 cache_pc_function_* variables.
5087 * dbxread.c (read_struct_type): Use VOFFSET_STATIC.
5088 * printcmd.c: Avoid kludging a global variable (addressprint)
5089 to avoid printing the address of a string twice. Instead,
5090 pass the format letter 's' down low enough that it can be seen
5091 to avoid this problem.
5092 (print_formatted): Pass format arg to value_print.
5093 (restore_addressprint): Remove function.
5094 (do_examine): Avoid hacking addressprint, cleanups and such.
5095 (print_frame_args): Add a comment to a Bothner change.
5096 * symtab.h: define VOFFSET_STATIC and use it instead of "-1".
5097 * symmisc.c (free_all_symtabs): Call clear_pc_function_cache
5098 to wipe out the values cached in blockframe.c.
5099 * symtab.c (find_method): Add comment saying how big you must
5100 allocate to be "big enough". Per being terse again.
5101 * valprint.c (val_print): Handle format letter "s" to print
5102 strings without addresses. Add comment to vtbl printing code
5103 which casts with wild abandon. Rearrange reference-printing
5104 code so it prints:
5105 @0xaddr: value (print w/addressprint)
5106 value (print w/~addressprint)
5107 @0xaddr (parameter lists w/addressprint)
5108 or nothing (parameter lists w/o addressprint)
5109
5110 Tue Aug 28 10:47:18 1990 John Gilmore (gnu at cygint)
5111
5112 * Merge more changes from Per Bothner:
5113
5114 Gdb's handling of TYPE_CODE_REF was so counter-C++ (and otherwise
5115 annoying) that I tried to improve it. Here are my suggestions.
5116
5117 These patches all attempt to handle TYPE_CODE_REF (as in C++) better.
5118
5119 findvar.c:
5120 Do automatic de-reference when taking the address of a reference.
5121 printcmd.c:
5122 Don't deref_ref when printing parameter lists.
5123 valops.c:
5124 More attempts at treating refernences properly.
5125 valprint.c:
5126 In val_print, if deref_ref==0, don't print dangling " = ".
5127 value.h:
5128 Add COERCE_REF macro, which de-references an REF.
5129
5130 * Merge changes from Per Bothner:
5131
5132 * Fixed (Sony news)-specific configuration problems.
5133 * Fixed other problems with using vanilla pcc and libc (enum problems;
5134 assumption that vsprintf exists).
5135 * Some major speed-ups (finc_pc_partial_function now caches a match;
5136 parsing avoids duplicate symbol_lookup calls).
5137 * Changed handling of baseclasses (no longer use baseclasses field
5138 of struct type, use the first n_baseclasses fields instead).
5139 * Various minor changes/fixes, most C++-related.
5140
5141 blockframe.c:
5142 Cache the most previous match from find_pc_partial_function.
5143 (Save both low and high ends of matching function's pc range.)
5144 This speeds up the loop of infrun.c:wait_for_inferior quite
5145 a bit, and makes step/next commands much zippier.
5146 command.c:
5147 Added an enum->int cast (otherwise, some compilers barf).
5148 dbxread.c:
5149 No longer set baseclass offset to 0, since multiple
5150 inheritance now mostly works.
5151 Added a number of casts, to shut up compiler warnings
5152 (after stabs where made enums, not ints).
5153 When discarding a symbol table (in symbol_file_command),
5154 must clear the cache introduced in blockframe.c.
5155 Don't convert $vtbl_ptr_type to vtbl any more.
5156 Get rid of TYPE_BASECLASEES and baseclass_vec (see also symtab.h).
5157 Mask off sign bit emitted by g++ for virtual table offset.
5158 Set voffset to -1 (not 1) for static member functions.
5159 expread.y:
5160 Changed parsing/lexing of names to avoid doing symbol lookup twice
5161 (once when lexing to determine symbol class, once for real).
5162 Now only call symbol_lookup once. Fields of 'this' win especially big.
5163 printcmd.c:
5164 Subpress printing addr twice in the case of 'x/s addr'.
5165 symtab.c:
5166 lookup_basetype_type is no longer used.
5167 Add find_methods as recursive helper function to decode_line_1.
5168 This allows multiple inheritance to work.
5169 Also, once one or more matches has been found, do not look in
5170 base-classes. (Baseclass methods would be overridden, anyway.)
5171 symtab.h:
5172 Removed baseclasses array in struct type.
5173 Instead of using baseclasses[i], use fields[i-1].
5174 Added virtual_field_bits[i] to indicate if the i'th baseclass is virtual.
5175 Changed sign convention of voffset (previous was inconsistent).
5176 tm-news.h:
5177 Some macros (CALL_DUMMY and relatives) were missing. Put them back.
5178 utils.c:
5179 Used to assume existence of vsprintf. Re-written to not need it
5180 if HAVE_VPRINTF is undefined.
5181 valops.c:
5182 typecmp was too pessimistic. Made it less so.
5183 valprint.c:
5184 Don't print space after address.
5185 If vtable points to a misc symbol (with 0 offset), print it,
5186 since that indicates the actual class of the object.
5187 Changed ype_print_derivation_info to use new inheritance
5188 scheme (without baseclasses vector).
5189 values.c:
5190 In value_primitive_field, fixed some bugs left over from previous set of fixes.
5191 Also, changes needed because TYPE_BASECLASSES were removed.
5192 xm-news.h:
5193 REGISTER_U_ADDR didn't work for PC. Rewrote to use an array.
5194
5195 Tue Aug 21 20:08:54 1990 John Gilmore (gnu at cygint)
5196
5197 * source.c:
5198 If there is no path set, and the symbols don't indicate what directory
5199 a file was compiled in, look in the current directory. But either
5200 a path or a known compilation directory will prevent this.
5201
5202 * dbxread.c:
5203 Three independent bug fixes:
5204 * Remove the #if 0 block that breaks some stuff.
5205 * SunOS 4.1 fixed the promoted-parameter-wrong-addr bug in Sun C;
5206 adapt gdb to either SunOS 4.0.* or 4.1.
5207 * MAX_OF_TYPE and MIN_OF_TYPE thinko. By tedg@sun, I think.
5208
5209 * symtab.c:
5210 Instantiate the class T when looking for methods in it. (Tiemann@sun)
5211
5212 * valprint.c:
5213 (type_print) Demangle the name being printed.
5214 (type_print_base) Handle botched demangling without coredump (tiemann).
5215
5216 * values.c:
5217 (check_stub_method): Document routine.
5218 (tiemann) fix bug for no-arg functions
5219 Avoid clobbering beyond end of malloc'd storage.
5220 Terminate the argument list properly.
5221
5222 Sat Aug 18 01:29:59 1990 Per Bothner (bothner@cs.wisc.edu)
5223
5224 * Changes merged by John Gilmore:
5225
5226 breakpoint.c:
5227 In breakpoint_1, use new print_address_symbolic instead
5228 of find_pc_partial_function. (This forces use of assembler-level
5229 addresses, and avoids misleading non-mangled source-level names.)
5230 cplus-dem.c:
5231 Generalize ansi argument such that -1 means skip arglist totally.
5232 Removed global variable print_ansi_qualifiers (which made
5233 code non-reentrant), in favor of extra explicit arguments
5234 to internal routines.
5235 printcmd.c:
5236 Add new helper function print_address_symbolic.
5237 Use find_pc_misc_function instead of find_pc_partial_function
5238 (since we want assembler-level symbols here).
5239 stack.c:
5240 Print unknown function as just "f (...)", not "f (...) (...)".
5241 Use new fputs_demangled explicitly.
5242 symtab.c:
5243 Fixed a typing violation (problem: value.h cannot be imported
5244 without renaming many variable in this file).
5245 lookup_symbol: If no matching misc_func, look for a C++-mangled name.
5246 decode_line_1: Moved forward some never-reached code.
5247 Made decode_line_2 skip function prologues correctly.
5248 utils.c:
5249 fputs_filtered should not demangle by default.
5250 Add new fputs_demangled to demangle on demand..
5251 valops.c:
5252 Change value_struct_elt to use value_primitive_field (using recursive
5253 utility function search_struct_field). This allows foo.bar to work
5254 for multiple inheritance (so far only for data fields).
5255 Change check_field in the same way (recursive helper function
5256 to support multiple inheritance).
5257 (Note: there are more of these problems that I haven't fixed.
5258 Any code that says TYPE_BASECLASS (t, 1) is probably wrong.)
5259 value_of_this: 'this' symbol name is now just "this", note "$this".
5260 valprint.c:
5261 Don't print static members.
5262 Avoid printing "members of <type>" if there are none.
5263 Simplified type_print_derivation_info by merging duplicate code.
5264 Remove useless blank lines in type_print_base (ptype command).
5265 value.h:
5266 Added declaration of new routine value_primitive_field.
5267 values.c:
5268 Added value_primitive_field which is generalized version of
5269 value_field that can handle multiple inheritance (non-zero offsets etc).
5270 Re-implemented value_field to call value_primitive_field.
5271
5272 Fri Aug 17 23:33:44 1990 John Gilmore (gnu at cygint)
5273
5274 * infcmd.c -- insert else to avoid 'delete env' coredump when you
5275 delete the whole environment. Karl Berry reported the bug.
5276 * source.c - fix openp to avoid //'s in filenames, which
5277 trigger an Emacs bug causing it to not be able to find files
5278 when running gdb in a window.
5279 * dbxread.c - zap the #if 0 that botches the add-file code.
5280 It seems to work a lot better without all the code commented out.
5281
5282 Fri Jul 20 16:58:46 1990 John Gilmore (gnu at cygnus.com)
5283
5284 * Merge Tiemann's and Ted Goldstein's changes, detailed below,
5285 into gdb-3.90.9.
5286
5287 Tue Jul 17 19:34:33 1990 Ted Goldstein (tedg at golem)
5288
5289 * Makefile - added a ${CFLAGS} to a couple of entries,
5290 added remote-sa.sparc.c
5291 * added remote.sa-sparc.c, a modification of remote.c
5292 which conducts a dialog directly with the SparcStation prom.
5293 * breakpoint.c, infrun.c, sparcdep.c added
5294 remote_insert_breakpoint(), and remote_remove_breakpoint()
5295 to breakpoint.c instead of directly writing breakpoint instructions.
5296 * sparcdep.c on remote_debugging,there is no need
5297 to remove signle step breakpoint instructions.
5298 * main.c added "-epoch" flag and "int epoch_interface" to main.c
5299 global variable
5300 * printcmd.c - epoch interface sends lisp expressions to open up
5301 epoch windows on inspection.
5302 * valprint.c - added arrayprint, and addressprint and made adding
5303 format controls easier
5304 * wait.h added a couple of undef's because we were getting
5305 complaints about WSTOPSIG and WTERMSIG begin redefined.
5306
5307
5308 Wed Jul 4 05:27:51 1990 Michael Tiemann (tiemann at masham)
5309
5310 * symtab.c (decode_line_1): Add support for handling method stubs
5311 in the type information.
5312
5313 Tue Jul 3 09:39:18 1990 Michael Tiemann (tiemann at masham)
5314
5315 * values.c (baseclass_addr): Run loop from INDEX+1 to
5316 N_BASECLASSES; otherwise, we can still get into a loop.
5317 @@ This should be restructured to use a cleaner search strategy.
5318
5319 Sun Jul 1 12:28:51 1990 Michael Tiemann (tiemann at masham)
5320
5321 * dbxread.c (define_symbol,read_type): Grok GNU C++'s new
5322 abbreviation "Tt" for tags which have the same name as their
5323 typedecls.
5324
5325 Fri Jun 29 01:03:46 1990 Michael Tiemann (tiemann at masham)
5326
5327 * symtab.c (list_symbols): add ability to set breakpoints on all
5328 the functions which match a particular regular expression.
5329
5330 Tue Jun 26 04:26:29 1990 Michael Tiemann (tiemann at masham)
5331
5332 * cplus-dem.c (cplus_demangle): New parameter ANSI says whether we
5333 should print ANSI qualifiers (such as `const' and `volatile').
5334 All callers changed to call with ANSI == 1, except from
5335 `check_method_stub', which uses old-style syntax.
5336
5337 * symseg.h (struct fn_field): Remove unneccessary `args' field.
5338 * symtab.h (TYPE_FN_FIELD_ARGS): Redefined.
5339
5340 * values.c (check_stub_method): New function.
5341
5342 * cplus-dem.c (do_type): Handle "long long" (encoded as 'x').
5343
5344 * dbxread.c (read_type): Handle new GNU C++ method type stubs.
5345 * valprint (type_print_base): Ditto.
5346
5347 * symtab.c (gdb_mangle_typename): New function.
5348
5349 Tue Jun 5 00:18:43 1990 Michael Tiemann (tiemann at gzilla)
5350
5351 * breakpoint.c (catch_command): New function. Provides a
5352 mechanism to set breakpoints based on catch clauses.
5353 (disable_catch): Similar, but disables breakpoints on catch
5354 clauses.
5355 (delete_catch): Similar, but deleted breakpoints on catch clauses.
5356
5357 Sun Jun 3 22:54:08 1990 Michael Tiemann (tiemann at gzilla)
5358
5359 * blockframe.c (blockvector_for_pc): New function.
5360 * blockframe.c (block_for_pc): Changed to call
5361 `blockvector_for_pc' and get the block itself.
5362
5363 * stack.c (catch_info): New function. Prints info about
5364 exceptions which can be caught in the current frame.
5365 * stack.c (print_frame_label_vars): New function. Similar to
5366 `print_frame_local_vars'.
5367 * stack.c (print_block_frame_labels): Prints out labels that are
5368 defined in this frame. These labels are exceptions that can be
5369 caught.
5370
5371 * dbxread.c: Updated to handle N_CATCH symtab types.
5372
5373 Thu May 3 22:10:00 1990 Michael Tiemann (tiemann at teacake)
5374
5375 * valprint.c (everywhere): TYPE_NAME (TYPE) no longer comes in the
5376 form "struct ..." for GNU C++. Don't flush any part of TYPE_NAME
5377 when printing the type.
5378
5379 Wed May 2 22:43:04 1990 Michael Tiemann (tiemann at teacake)
5380
5381 * valprint.c (val_print): Use `baseclass_addr' to access the
5382 baseclasses pointed to via the derived class object at VALADDR.
5383
5384 * values.c (baseclass_addr): New function. Casts derived pointers
5385 to baseclass pointers taking virtual baseclasses and multiple
5386 inheritance into account.
5387
5388 Sat May 5 12:39:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5389
5390 * Version 3.90.9.
5391
5392 Fri May 4 12:12:55 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5393
5394 * breakpoint.c (watch_command, bpstat_stop_status): Deal with
5395 exp_valid_block field correctly.
5396
5397 * infrun.c (wait_for_inferior): When checking "don't even think
5398 about breakpoints" if stop_signal == SIGTRAP && trap_expected,
5399 also check step_resume_breakpoint.
5400 Insert breakpoints and continue (not step) if
5401 step_resume_break_address != NULL, even if another_trap.
5402 If trap_expected and we enter sigtramp, then set up a
5403 step_resume_break.
5404 If trap_expected is set when we hit the step_resume_break,
5405 set another_trap.
5406 When calling resume and trap_expected says tell resume to step
5407 (2 places), also check step_resume_break_address.
5408
5409 * infrun.c (wait_for_inferior): Don't set
5410 prev_{pc,sp,func_{start,name}} before calling wait ().
5411 Do set them after exiting loop.
5412 Move their declarations outside functions.
5413 (start_inferior): Initialize them.
5414
5415 Thu May 3 00:15:11 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5416
5417 * infrun.c (wait_for_inferior, after check for trap_expected > 1):
5418 Restore old code which distinguishes between trap_expected and
5419 running_in_shell, just make the latter take any non-TRAP signal,
5420 not just SEGV.
5421
5422 * values.c (allocate_value): Zero VALUE_OPTIMIZED_OUT flag.
5423
5424 * Makefile.dist (pinsn.o): Use PINSN_CC to compile.
5425 xconfig/3b1 (CC,PINSN_CC): Define.
5426
5427 * xconfig/altos, altos-dep.c: Rename altos-dep.c to altos-xdep.c.
5428
5429 * Version 3.90.8
5430
5431 * breakpoint.c (bpstat_stop_status),
5432 infrun.c (wait_for_inferior) [SHIFT_INST_REGS]: New code.
5433
5434 * param.h, tm-88k.h: Define ADDR_BITS_*.
5435 infcmd.c (jump_command, read_pc), infrun.c (wait_for_inferior),
5436 printcmd.c (do_one_display): Use them.
5437
5438 * utils.c: Split #ifdef USG into a USG_UTILS and a QUEUE_MISSING.
5439 xm-88k.h: Define USG_UTILS.
5440
5441 Wed May 2 00:05:33 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5442
5443 * printcmd.c (printf_command) [__INT_VARARGS_H]: New code.
5444 (printf_command): Add from_tty parameter.
5445
5446 * valprint.c (value_print): Check VALUE_OPTIMIZED_OUT flag.
5447
5448 * value.h: Add optimized_out field and change lazy field to
5449 char. Add macro VALUE_OPTIMIZED_OUT.
5450
5451 * i386-pinsn.c: Change from Eirik Fuller to write to stream directly
5452 instead of stuffing things in buffers (oappend, etc).
5453
5454 * breakpoint.c (bpstat_do_actions): If *BSP is set to NULL by
5455 execute_command, exit both loops.
5456
5457 * Makefile.dist: Don't set TARGET_ARCH. Add .c.o rule.
5458
5459 Tue May 1 17:07:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5460
5461 * Makefile.dist (RAPP_OBS, rapp),
5462 rgdb.c, rserial.c, rudp.c, serial.c, udp.c, xdep.h,
5463 remote.h: Added.
5464 m68k-xdep.c, coredep.c: Wrap in #if !defined (RDB).
5465
5466 * valops.c (value_struct_elt), values.c (value_static_field):
5467 Change error messages to remove references to `info methods'.
5468
5469 Tue Apr 24 10:25:10 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5470
5471 * More 88k changes:
5472 infrun.c (start_inferior): Add START_INFERIOR_HOOK.
5473 infcmd.c [SHIFT_INST_REGS]: New code.
5474 findvar.c (read_relative_register_raw_bytes): Return a value.
5475 infcmd.c (do_registers_info): Check value from
5476 read_relative_register_raw_bytes.
5477
5478 * command.c (delete_cmd): Free the struct cmd_list_element(s)
5479 we are removing.
5480
5481 Mon Apr 23 10:42:21 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5482
5483 * More 88k changes:
5484 findvar.c (get_saved_register): New function.
5485 findvar.c: Rewrite code which called find_saved_register to
5486 call get_saved_register instead.
5487
5488 Sun Apr 22 14:47:51 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5489
5490 * valprint.c (val_print): Change error message printed when
5491 the type has TYPE_FLAG_STUB set.
5492
5493 * valprint.c (val_print): Check for TYPE_CODE_UNDEF.
5494
5495 * findvar.c (write_register): Set register_valid (regno).
5496
5497 * valops.c (call_function): Check for NULL return from block_for_pc.
5498
5499 Fri Apr 20 11:31:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5500
5501 * findvar.c (write_register): Add PREPARE_TO_STORE.
5502 {sun3,sparc,symmetry}-xdep.c (PREPARE_TO_STORE): Add.
5503 infptrace.c, {mips,pyr,symmetry,sun3,arm,hp300hpux}-xdep.c
5504 (store_inferior_registers): Don't call read_register_bytes.
5505 symmetry-xdep.c (store_inferior_registers):
5506 #if 0 out code to fetch registers.
5507
5508 * values.c (value_as_long): Call COERCE_ARRAY.
5509
5510 * tm-sun3.h: Include tm-68k.h not m-68k.h
5511
5512 * sparc-tdep.c (single_step): Set next_pc, npc4 within
5513 if (!one_stepped), not outside it.
5514
5515 * Changes from Data General for 88k:
5516 * coffread.c (read_file_hdr): Add *88*MAGIC.
5517 * coffread.c (have_symbol_file_p): New function.
5518 * coffread.c [COFF_CHECK_X_ZEROES] [TDESC]: New code.
5519 * coffread.c (read_one_sym): If there is more than one
5520 aux entry, don't give an error message, just ignore the
5521 extra ones.
5522 * coffread.c (process_coff_symbol): Replace clipper with
5523 BELIEVE_PCC_PROMOTION in #ifdef's.
5524 * coffread.c: Define L_LNNO32 if not defined.
5525 (enter_linenos): Use it.
5526 * blockframe.c: Add INIT_FRAME_PC hook and use it in
5527 get_prev_frame_info.
5528 m-m88k.h: Use INIT_{FRAME_PC,EXTRA_FRAME_INFO} to do tdesc stuff.
5529 Use dummy versions of FRAME_CHAIN_*.
5530 * Makefile.dist, xconfig/i386*: Rename M_CLIBS to XM_CLIBS and add
5531 TM_CLIBS and CDEPS.
5532 tdesc/libdc.o: New target.
5533 tdesc.{c,h}, tdesc/*, {t,x}config/m88k: New files.
5534
5535 Thu Apr 12 15:47:00 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5536
5537 * m68k-opcode.h (bras, bsrs): Use "Bw" not "Bg".
5538
5539 Tue Apr 10 20:50:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5540
5541 * Version 3.90.7.
5542
5543 * xm-mips.h (BYTE_ORDER): If not defined, make it LITTLE_ENDIAN.
5544
5545 * mips-xdep.c ({fetch,store}_inferior_registers): Remove variable
5546 offset and just use register_addr (regno, 1).
5547 (core_file_command): Remove variable reg_offset and just use
5548 register_addr (regno, 0).
5549
5550 * gdbcore.h [COFF_FORMAT]: #undef a_magic before redefining it.
5551
5552 * infrun.c ("if (trap_expected && stop_signal != SIGTRAP)", near end
5553 of wait_for_inferior): Always pass 0 as first arg to resume.
5554 #if 0 out "SIGSEGV in shell" test right above it (now redundant).
5555
5556 * i386-pinsn.c (oappend_address): New function.
5557 (oappend): Make it "static void" and declare at top of file.
5558 (OP_J, OP_DIR): Use oappend_address.
5559
5560 Mon Apr 9 15:22:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5561
5562 * mips-xdep.c: Include <mips/inst.h> not "mips/inst.h".
5563
5564 * wait.h [HAVE_WAIT_STRUCT]: Put #defines in #if !defined so that
5565 it's OK if they are defined in <sys/wait.h>.
5566
5567 * findvar.c (fetch_registers): Pass "registers", not "&registers",
5568 to remote_fetch_registers.
5569
5570 * mips-tdep.c (_initialize_mipsdep): Remove hex_disassembler
5571 and re-write skip_prologue to use add_set_cmd.
5572
5573 * Makefile.dist (alldeps.mak): Don't put \ after the last
5574 filename in each list.
5575
5576 Sun Apr 8 01:59:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5577
5578 * Version 3.90.6.
5579
5580 * Makefile.dist (alldeps.mak): "XM_FILE" -> "XM_FILE=".
5581
5582 * valarith.c (value_x_{un,bin}op): use "operator" not "operator "
5583 to match dbxread.c change of 16 Mar 90.
5584
5585 * valarith.c (value_x_unop): Pass &static_memfuncp,
5586 not static_memfuncp.
5587
5588 * breakpoint.c: Add watchpoint stuff.
5589 breakpoint.h: Add bpstat_should_step.
5590 infrun.c (proceed, wait_for_inferior): Use it.
5591 breakpoint.h: Add bpstat_print (and rename old bpstat_print
5592 to bpstat_should_print).
5593 infrun.c (normal_stop): Use it.
5594
5595 * value.h: Add value_free. Declare a few functions.
5596
5597 Sat Apr 7 21:43:43 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5598
5599 * dbxread.c (read_dbx_symtab): Remove PROFILE_TYPES code and
5600 insert comment suggesting easy shell script equivalents.
5601
5602 * values.c (unpack_long): Give better error messages for
5603 unrecognized sizes of ints and floats.
5604
5605 Fri Apr 6 00:32:21 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5606
5607 * dbxread.c, gdbcore.h (IS_OBJECT_FILE): Check for a_drsize
5608 nonzero as well as a_trsize.
5609
5610 * More places: Use SWAP_TARGET_AND_HOST.
5611
5612 * valops.c (destructor_name_p): Only skip "struct " if present.
5613
5614 * main.c (gdb_readline): Return NULL on end of file.
5615
5616 * sparc-opcode.h: Add jmp 1+2, jmp 1+i, jmp i+1.
5617
5618 * Makefile.dist: Make expread.tab.c unambiguously be in srcdir.
5619
5620 * main.c: Split source_command into source_command and
5621 read_command_file.
5622 (main): Accept "-" as arg to +command for stdin.
5623
5624 * dbxread.c (psymtab_to_symtab): Don't read string table.
5625 (symbol_file_command): Save string table size.
5626
5627 * Version 3.90.5
5628
5629 * symtab.c: Remove declaration of lookup_misc_func.
5630
5631 * mips-pinsn.c: Add use_hex_p stuff (re-worked from Forin stuff).
5632
5633 * mips-opcode.h: Add bdelay field.
5634 mips-pinsn.c: Various changes from Forin, I think to make it look
5635 like the MIPS assembler format.
5636 mips-tdep.c, mips-xdep.c, mipsread.c: Various changes from Forin.
5637
5638 * gdbcore.h: Declare register_addr.
5639
5640 * gdbcore.h: Include <a.out.h>, before trying to redefine N_TXTADDR
5641 and friends.
5642 various: Don't include both a.out.h and gdbcore.h.
5643
5644 * Makefile.dist (HFILES): Add param.h
5645
5646 * utils.c (init_malloc): Moved here from mcheck.c and modified
5647 to use the standard mcheck.c
5648 Makefile.dist: Modify to reflect new mcheck.
5649
5650 Thu Apr 5 16:38:28 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5651
5652 * valprint.c (val_print, print_hex_chars): Print integers
5653 larger than LONGEST.
5654
5655 * valarith.c (value_sub): Give error message if attempt to
5656 subtract something of the wrong type from a pointer.
5657
5658 * breakpoint.c (bpstat_stop_status): Initialize retval to NULL.
5659
5660 * i386-tdep.c (i386_pop_frame): Change addr to adr.
5661
5662 Wed Apr 4 05:21:50 1990 Jim Kingdon (kingdon at teenage-mutant)
5663
5664 * main.c (command_line_input): return NULL on end of file.
5665 (execute_command): If p is NULL, return almost right away.
5666 (read_command_lines): Treat end of file like "end".
5667
5668 * printcmd.c (print_frame_args): Change it so num is number
5669 of ints of args, not number of args.
5670
5671 * xm-*.h: Make sure BYTE_ORDER is defined.
5672 Also fix various #includes of old names of things.
5673
5674 * main.c (command_line_input): Fix comment code of 2 Apr.
5675
5676 * values.c (value_from_long, unpack_long): SWAP_TARGET_AND_HOST.
5677 various: Replace {BYTES,WORDS}_BIG_ENDIAN with TARGET_BYTE_ORDER.
5678 valarith.c various: SWAP_TARGET_AND_HOST.
5679 dbxread.c (READ_FILE_HEADERS): SWAP_TARGET_AND_HOST.
5680 (SWAP_SYMBOL): New macro. Use it wherever symbuf_idx is incremented.
5681 exec.c (exec_file_command): SWAP_TARGET_AND_HOST.
5682
5683 * valarith.c (value_subscripted_rvalue): Just bcopy() the
5684 appropriate bytes rather than playing strange games with
5685 value_from_long.
5686
5687 * param.h (SWAP_TARGET_AND_HOST): New macro.
5688
5689 * tm-np1.h (V7_REGNUM): Change from 27 to 26.
5690 (REGISTER_VIRTUAL_TYPE): Return correct result for vector regs.
5691 gould-tdep.c: New file.
5692
5693 * Move reading of register before store from
5694 findvar.c (write_register) to
5695 infptrace.c, *-xdep.c (store_inferior_register).
5696
5697 * findvar.c (fetch_registers, store_registers): New functions.
5698 write_register{,_bytes}: Use store_registers regardless of
5699 have_inferior_p.
5700 registers_valid: New variable.
5701 (supply_register, read_register, etc.): Use it.
5702 (read_register_gen): New variable.
5703 various: Use read_register_gen rather than read_register_bytes
5704 where appropriate.
5705 *-xdep.c (fetch_inferior_registers): Remove remote_debugging check.
5706 infrun.c (wait_for_inferior, start_inferior): Call registers_changed
5707 not fetch_inferior_registers.
5708 *-xdep.c (fetch_inferior_registers): Call registers_fetched if
5709 not setting registers via supply_register, and if fetching
5710 all registers.
5711 infptrace.c, *-xdep.c (fetch_inferior_registers): Add param,
5712 # of register to fetch (-1 for all).
5713 infptrace.c, hp300hpux-xdep.c (fetch_inferior_registers):
5714 Actually fetch only those registers needed.
5715 value.h: Declare all the extern register functions from findvar.c.
5716
5717 * coffread.c (read_coff_symtab): Test for specific kinds of GCC
5718 labels (LI%.*, LPB%.*, etc), not just ??%.*.
5719
5720 * coffread.c (record_misc_function): Use mf_text not mf_unknown.
5721
5722 * utils.c,defs.h (lines_to_list): New function.
5723 source.c (select_source_symtab, list_command, forward_search_command,
5724 reverse_search_command), stack.c (print_frame_info):
5725 Use it instead of 10.
5726
5727 * munch: If MUNCH_NM variable exists, use it.
5728
5729 * main.c (initialize_main): Set rl_readline_name.
5730 main.c: #include readline.h and #undef savestring.
5731 Remove declarations of things declared in readline.h.
5732
5733 * main.c (gdb_readline): If instream == 0, read from stdin.
5734
5735 * main.c (main): Only call clearerr if ISATTY. Exit loop if
5736 feof (instream).
5737
5738 * infcmd.c (detach_command): Set inferior_pid to 0 after
5739 calling remote_close.
5740
5741 * main.c (main): If exec and sym files are the same, and there
5742 is an error reading execfile, don't try to read sym file.
5743
5744 * infcmd.c (detach_command) [ATTACH_DETACH]: Don't try to detach
5745 from inferior when remote debugging.
5746
5747 * source.c (reverse_search_command): Change while test from 1 to
5748 line > 1.
5749
5750 Tue Apr 3 18:14:14 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5751
5752 * Version 3.90.4.
5753
5754 * Makefile.dist (gdb.tar.Z): Use -z option to tar rather than
5755 creating gdb.tar and calling compress separately.
5756
5757 * breakpoint.c (read_memory_nobpt): Do not treat bcopy as if it
5758 returned an "errno" value.
5759
5760 * various: Make sure gdbcore.h is not included before a.out.h.
5761
5762 * Makefile.dist (OPCODES): Add mips-opcode.h.
5763
5764 * config.gdb: Print lists of {hosts,targets} after finding srcdir.
5765 When parsing +{host,target}=, strip off +{host,target}=, not +{x,t}m=.
5766
5767 * Makefile.dist (gdb.tar): Do {t,x}config not just config.
5768
5769 Mon Apr 2 02:42:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5770
5771 * sparc-opcode.h (inc): Fix incorrect lose field.
5772
5773 * valarith.c (value_subscripted_rvalue): Use TARGET_BYTE_ORDER,
5774 rather than checking endianness at runtime.
5775
5776 * main.c (comand_line_input): Accept comments anywhere, not
5777 just at starts of lines.
5778
5779 Sat Mar 31 21:59:35 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5780
5781 * symtab.c (check_stub_type): Call lookup_symbol with 5 args.
5782
5783 Fri Mar 30 15:23:52 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5784
5785 * frame.h: #include param.h.
5786 param.h: Protect against multiple inclusion.
5787
5788 * i386-tdep.c (i386_get_frame_setup): Fix comment about what
5789 opcode 0x55 is.
5790 If 0x81 or 0x83 is followed by something besides 0xec,
5791 put codestream back where it was and return 0.
5792 [USE_MACHINE_REG_H]: Include <machine/reg.h> not <sys/reg.h>
5793 Move include of a.out.h above <sys/user.h>.
5794 (i386_frame_find_saved_regs): Make locals signed.
5795 (i386_frame_find_saved_regs, i386_push_dummy_frame, i386_pop_frame):
5796 Use REGISTER_BYTES, REGISTER_RAW_SIZE, etc. to deal with floating
5797 point registers.
5798
5799 Wed Mar 28 18:33:40 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5800
5801 * Makefile.dist (OTHERS): Add gdb.dvi.
5802 (gdb.dvi): New rule.
5803
5804 * breakpoint.c (_initialize_breakpoint): Clean up docstrings so
5805 as not to mention subcommands (e.g. auto-display).
5806 Call add_cmd not add_abbrev_cmd for "disable breakpoint" and
5807 put it in class_alias.
5808
5809 * breakpoint.c (set_breakpoint_count): New function.
5810 (set_breakpoint, break_command_1): Use it.
5811
5812 * breakpoint.c (get_number): New function.
5813 (*_command, map_breakpoint_numbers): Use it.
5814
5815 * infptrace.c (write_inferior_memory): Remove remote_debugging
5816 stuff (is handled in core.c).
5817 (read_inferior_memory): Remove #if 0'd out remote_debugging code.
5818
5819 Tue Mar 27 16:51:27 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5820
5821 * inferior.h: Include frame.h.
5822
5823 * findvar.c (write_register): Replace sun4 #ifdef with
5824 check of CANNOT_STORE_REGISTER.
5825 xm-sparc.h: Define CANNOT_STORE_REGISTER.
5826
5827 * sparc-tdep.c: Remove superfluous declaration of
5828 get_breakpoint_commands.
5829
5830 * breakpoint.{c,h}: Add bpstat stuff.
5831 bpstat_do_action: Re-work do_breakpoint_commands into this.
5832 main.c (command_loop): Call bpstat_do_action not
5833 do_breakpoint_commands.
5834 inferior.h, infrun.c, breakpoint.c, infcmd.c:
5835 Rework breakpoint_commands and stop_breakpoint
5836 stuff to use bpstat instead.
5837
5838 * infcmd.c (program_info): "info reg"->"info registers".
5839
5840 * np1-opcode.h: Renamed from npl-opcode.h.
5841 gould-pinsn.c: Include np1-opcode.h.
5842 Makefile.dist (OPCODES): Change npl-opcode.h to np1-opcode.h
5843
5844 * coffread.c (read_enum_type): Stop reading when we hit .eos.
5845
5846 Mon Mar 26 15:52:35 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5847
5848 * Version 3.90.3.
5849
5850 * breakpoint.c (read_memory_nobpt): New function.
5851 gdbcore.h: Declare read_memory_{nobpt,check}.
5852 mips-tdep.c: Use read_memory_nobpt not breakpoint_shadow_val.
5853
5854 Fri Mar 23 14:26:38 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5855
5856 * inflow.c (terminal_inferior): Reenable commented out
5857 inferior_thisrun_terminal check.
5858 (terminal_ours_1): If inferior_thisrun_terminal is nonzero,
5859 return immediately.
5860
5861 * Makefile.dist: Rewrite DEPFILES, M_FILE, etc. stuff to deal
5862 with host & target separation.
5863
5864 * config/*: Split into xconfig/* and tconfig/*.
5865 *-dep.c: Split into *-xdep.c and *-tdep.c.
5866
5867 * main.c (main): Always pass two args to xrealloc.
5868
5869 Thu Mar 22 20:29:25 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5870
5871 * Makefile.dist ({,dist}clean): rm {x,t}m.h not param.h
5872 xgdb.o: Remove obsolete dependency (now in depend).
5873
5874 * arm-pinsn.c: Include arm-opcode.h not opcode.h.
5875
5876 * mips-pinsn.c, mips-opcode.h: New files from Bothner (from
5877 release of 24 Jan 90 with mips-opcode.h patch from 1 Feb 90).
5878
5879 * utils.c (xmalloc): Return NULL on request for 0 bytes.
5880
5881 Wed Mar 21 13:30:08 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5882
5883 * config.gdb: Re-write machine stuff to deal with host & target.
5884
5885 * xm-altos.h: Don't define HAVE_WAIT_STRUCT.
5886
5887 * m-*.h: Split into xm-*.h and tm-*.h.
5888
5889 * infrun.c (wait_for_inferior): Put #ifdef sony_news code
5890 in regardless of machine.
5891
5892 * symtab.c (decode_line_1): Add quotes and capitalize error
5893 message "no class, struct, or union named".
5894
5895 * Makefile.dist (cplus-dem.o): Compile with -Dnounderscore.
5896
5897 * stack.c (print_frame_info): Use print_symbol to print function name.
5898
5899 * symtab.c (output_source_filename): Don't print a comma if
5900 we are skipping a filename already printed.
5901
5902 Tue Mar 20 10:48:54 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5903
5904 * symtab.c (output_source_filename): Don't print a filename
5905 more than once.
5906
5907 * utils.c (fprint_symbol): New function.
5908 defs.h: Decalare it.
5909 various: Use fprint_symbol to print symbol names.
5910 Makefile.dist (SFILES, OBS): Add cplus-dem.{c,o}.
5911
5912 Mon Mar 19 17:11:03 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5913
5914 * coffread.c (read_file_hdr): Add MC68K??MAGIC.
5915
5916 * coffread.c (read_coff_symtab): Ignore swbeg and string label
5917 symbols.
5918
5919 * coffread.c (read_coff_symtab): Increment num_object_files
5920 in case C_STAT not C_FILE.
5921 New variable in_source_file. Set it in case C_FILE.
5922 Check it in case C_STAT.
5923
5924 * coffread.c [FUNCTION_EPILOGUE_SIZE]: New code.
5925 m-umax.h (FUNCTION_EPILOGUE_SIZE): Define.
5926
5927 * config/3b1: New file.
5928
5929 * config/sun*: Print message warning people to use GAS with GCC.
5930
5931 Sun Mar 18 02:56:40 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5932
5933 * infcmd.c (run_stack_dummy): Change error message.
5934
5935 * m-68k.h (REGISTER_VIRTUAL_TYPE): Make pc, fp, sp char *.
5936
5937 * m-mips.h (LONGEST, BUILTIN_TYPE_LONGEST): Remove.
5938
5939 Sat Mar 17 21:27:49 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
5940
5941 * mips-dep.c: Remove infptrace.c stuff.
5942
5943 * m-bigmips.h: New file.
5944 m-mips.h [MIPSEB]: Remove *_BIG_ENDIAN stuff.
5945
5946 * m-sparc.h (FIX_CALL_DUMMY): Do not insert unimp instruction
5947 if function was compiled with gcc.
5948
5949 * m-mips.h: Remove FIX_CALL_DUMMY_ALIGNED and make FIX_CALL_DUMMY
5950 use new args.
5951
5952 * valops.c (call_function): New args to FIX_CALL_DUMMY.
5953 m-*.h (FIX_CALL_DUMMY): Take new args.
5954
5955 * values.c (using_struct_return): New parameter gcc_p.
5956 valops.c (call_function): New variable using_gcc.
5957 valops.c (call_function) [REG_STRUCT_HAS_ADDR]: New code.
5958
5959 * m-mips.h, mips-dep.c: New files from Forin.
5960 m-mips.h: Replace RETURN_STRUCT_BY_REF with USE_STRUCT_CONVENTION.
5961
5962 Fri Mar 16 13:17:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5963
5964 * Makefile.dist: Add some dependencies of m-*.h files.
5965 (HFILES): Add m-68k.h.
5966
5967 * dbxread.c (read_struct_type): Put "operator+" not "operator +"
5968 in symtab.
5969
5970 * core.c: Split read_memory into read_memory_check and read_memory.
5971 breakpoint.c (insert_breakpoints): If can't read memory,
5972 tell user that error was due to seting breakpoints.
5973
5974 Thu Mar 15 11:47:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5975
5976 * infrun.c [COFF_ENCAPSULATE]: Include a.out.encap.h.
5977
5978 * blockframe.c (FRAMELESS_LOOK_FOR_PROLOGUE): Make it a function.
5979 various m-*.h: Call function not macro.
5980 frame.h: Declare the function.
5981
5982 Wed Mar 14 02:44:51 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5983
5984 * sparc-dep.c: Include signame.h.
5985
5986 * sparc-pinsn.c (print_insn): When looking for sethi before
5987 delayed branch, call read_memory_noerr not read_memory.
5988
5989 * m-isi.h, m-sun3.h, m-news.h, m-hp300bsd.h, m-altos.h,
5990 m-hp300hpux.h, m-sun2.h: Merge machine stuff except inferior
5991 function call stuff into new file m-68k.h. Create m-3b1.h.
5992
5993 Tue Mar 13 21:34:33 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
5994
5995 * inflow.c (new_tty): If can't open tty, print error message
5996 before exiting.
5997
5998 * blockframe.c: Remove declaration of psymtab_to_symtab.
5999 symtab.h: Declare psymtab_to_symtab.
6000 blockframe.c: Remove declarations of block_for_pc and
6001 find_pc_function_start.
6002 frame.h: Add declarations of block_for_pc and find_pc_function_start.
6003 Remove declaration of nonexistent function find_pc_function.
6004 values.c: include frame.h instead of declaring block_for_pc.
6005
6006 * Version 3.90.2.
6007
6008 Mon Mar 12 14:20:06 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6009
6010 * main.c (main): Delete superfluous "e" from long_options.
6011
6012 Sat Mar 10 15:47:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6013
6014 * valprint.c (val_print): Print <%d bit integer> not just
6015 <large integer>.
6016
6017 * dbxread.c (error_type): Fix loop that finds '\0' so that on
6018 exit, *pp points to the '\0', not the character after.
6019 (read_type): Make sure that places which call read_type and then
6020 try to read more input stop immediately with another error
6021 upon encountering '\0'.
6022
6023 * dbxread.c (read_range_type): Fix check for large signed
6024 integral type to match comment and reality. Set TYPE_LENGTH based
6025 on n2bits for signed, n3bits for unsigned.
6026
6027 * infcmd.c (cont_command): Print warning message if we
6028 decide to ignore the argument.
6029
6030 * gdb.texinfo (attach): @xref{Attach} -> @xref{Remote}.
6031
6032 Fri Mar 9 16:26:47 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6033
6034 * symtab.h (address_class): Reinstate LOC_EXTERNAL with rewritten
6035 comment.
6036
6037 * expread.y (yyerror, parse_c_1): Make yyerror take a char * arg.
6038
6039 * main.c (symbol_completion_function): Don't call error() on
6040 "info jkldskf".
6041
6042 * m-npl.h (USE_STRUCT_CONVENTION): Change >= to >.
6043
6044 Thu Mar 8 00:19:01 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6045
6046 * symseg.h: Nuke more symseg references including LOC_EXTERNAL.
6047 Put contents of symseg.h into symtab.h and remove symseg.h.
6048
6049 Wed Mar 7 18:02:15 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6050
6051 * symtab.h (SYMBOL_LINE): New macro.
6052 symtab.c (decode_line_1): Accept variable as well as function.
6053 Lookup variable/function in selected block if no file specified.
6054 printcmd.c: #if 0 out whereis_command.
6055
6056 * command.c (do_setshow_command): Call function with additional
6057 argument C.
6058 main.c (set_history_size_command): Take argument C.
6059 (set_verbose): New function to set docstring.
6060 (initialize_main): Put set_verbose in command list.
6061 command.c (lookup_cmd_1): Accept result_list NULL.
6062
6063 * valprint.c (_initialize_valprint): Change docstring for
6064 "set unionprint" to normal set/show form.
6065
6066 * command.c (add_show_from_set): Check that docstring starts with
6067 "Set " before assuming it does.
6068
6069 * main.c (show_history): Call cmd_show_list.
6070 command.{c,h} (cmd_show_list): New function.
6071 command.h: Declare do_setshow_command.
6072
6073 * command.h (cmd_list_element): New field completer.
6074 main.c (symbol_completion_function): Use it.
6075 symtab.h: Declare make_symbol_completion_list.
6076 command.c (add_cmd): Set completer.
6077 main.c, gdbcmd.h (noop_completer): New function.
6078 infcmd.c: Set completer for environment functions.
6079
6080 * symtab.c (types_info, _initialize_symtab): #if 0 out.
6081 various: Use fputs_filtered, not fprintf_filtered(%s).
6082
6083 * valprint.c (type_print_base): Check for integers larger than
6084 LONGEST.
6085
6086 * sun3-dep.c: Include "signame.h" instead of directly declaring
6087 sys_siglist.
6088
6089 Tue Mar 6 14:59:34 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6090
6091 * infrun.c (signals_info): Allow argument to be a signal name
6092 as well as an expression.
6093 (handle_command): Check for error from sig_number.
6094
6095 * main.c (float_handler): Change error message.
6096
6097 * inflow.c (create_inferior): If getenv ("SHELL") exists, use it
6098 instead of /bin/sh.
6099
6100 * dbxread.c (read_dbx_symtab, case N_SO): New variable first_symnum.
6101 Pass it to {start,end}_psymtab.
6102
6103 * dbxread.c (read_ofile_symtab): Increment symbuf_idx and symnum
6104 when calling process_symbol_pair.
6105
6106 * symtab.c (sources_info, output_source_filename):
6107 Re-write so output_source_filename takes a first parameter
6108 instead of a next one.
6109
6110 * dbxread.c (read_dbx_symtab, case N_SO): When incrementing
6111 symbuf_idx, increment symnum also.
6112
6113 * values.c (set_internalvar_component): Use VALUE_CONTENTS,
6114 not VALUE_CONTENTS_RAW.
6115
6116 * symmisc.c (free_symtab): Don't free filename (now in symbol_obstack).
6117
6118 * environ.c (init_environ): Copy entire string, including
6119 terminating '\0'.
6120
6121 * value.h, values.c: Rename value_lazy to value_fetch_lazy.
6122 values.c (value_of_internalvar): Call value_fetch_lazy.
6123
6124 * dbxread.c (read_huge_number): Return an error on encountering
6125 a large decimal number.
6126
6127 * dbxread.c (read_huge_number): Reverse sense of overflow test.
6128
6129 * valprint.c (val_print, case TYPE_CODE_INT): Check for integers
6130 larger than LONGEST.
6131
6132 * dbxread.c (read_ofile_symtab): When calling process_one_symbol,
6133 call it with desc and value rather than with bufp->n_{desc,value}.
6134
6135 * defs.h (LONG_MAX): Define.
6136
6137 * sun3-dep.c: Declare sys_siglist.
6138
6139 * infptrace.c: Move include of gdbcore.h after a.out.h
6140
6141 * Makefile.dist (expread.o, mcheck.o): Remove leading "./" not
6142 leading ".".
6143
6144 * m-hp300hpux.h [!HPUX_VERSION_5]: Define KERNEL_U_ADDR_HPUX.
6145 infptrace.c [KERNEL_U_ADDR_HPUX] [KERNEL_U_ADDR_BSD]:
6146 Set kernel_u_addr using nlist().
6147 m-hp300bsd.h: Define KERNEL_U_ADDR_BSD.
6148
6149 Mon Mar 5 16:52:41 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6150
6151 * dbxread.c (read_dbx_symtab): If value of .o symbol is crazy,
6152 don't end psymtab.
6153
6154 * dbxread.c (read_dbx_symtab): Ignore first of a pair of N_SO
6155 when both appear.
6156 (start_subfile, start_symtab): Extra parameter dirname.
6157 (start_subfile): Use obsavestring, not savestring, for name.
6158 various: Call start_{subfile,symtab} with extra argument.
6159 (end_symtab): Set dirname field in symtab.
6160 (read_ofile_symtab): Call process_symbol_pair on pair of N_SO.
6161 (process_symbol_pair): New function.
6162 symtab.h (symtab): New field dirname.
6163 source.c (open_source_file): New function.
6164 source.c: Use open_source_file instead of openp where appropriate.
6165
6166 * defs.h (TARGET_CHAR_BIT): Define.
6167
6168 Sun Mar 4 13:11:48 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6169
6170 * dbxread.c (fill_symbuf): Print error messages nicely.
6171
6172 * Makefile.dist (SFILES): Put standalone.c at end.
6173
6174 * Makefile.dist (alldeps.mak): Put out backslash after arm-convert.s.
6175
6176 * symtab.{c,h} (builtin_type_error): New type.
6177 symseg.h (type_code): Add TYPE_CODE_ERROR.
6178 valprint.c (val_print, type_print_base),
6179 values.c (using_struct_return, set_return_value):
6180 Check for and deal with TYPE_CODE_ERROR.
6181 dbxread.c (error_type): New function
6182 (read_type and subroutines): Call error_type instead of error.
6183
6184 * dbxread.c (read_huge_number): New function.
6185 (read_range_type): Use read_huge_number and check results
6186 to see if it is a large integral type.
6187
6188 * symmisc.c: Remove symseg stuff.
6189
6190 * Gould NP1 changes from (or inspired by) chpmjd@gdr.bath.ac.uk
6191 dbxread.c (read_dbx_symtab) [N_NBSTS]:
6192 Treat this and N_NBLCS like N_LCSYM, etc.
6193 (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]: New code.
6194 m-npl.h (USE_STRUCT_CONVENTION): Add.
6195 (IGNORE_SYMBOL): Add 0xa4.
6196 (END_OF_TEXT_DEFAULT): Remove.
6197 (STRING_TABLE_OFFSET): don't add sizeof(int).
6198 [!HAVE_VPRINTF]: Define vprintf to be doprnt, not printf.
6199 (BLOCK_ADDRESS_ABSOLUTE): Define.
6200 (BREAKPOINT): Pad to size of machine word.
6201 (SAVED_PC_AFTER_CALL): Remove ` at start of line (!).
6202 (R2_REGNUM): Define.
6203 (SP_REGNUM, FP_REGNUM): Switch definitions.
6204 (REGISTER_U_ADDR): Use FP_REGNUM in place of SP_REGNUM.
6205 (STORE_STRUCT_RETURN, EXTACT_RETURN_VALUE, STORE_RETURN_VALUE,
6206 call function stuff):
6207 Replace bogus definitions with correct ones for NP1.
6208 (CANNOT_EXECUTE_STACK): Define.
6209 (FRAME_LOCALS_ADDRESS): Don't add 80.
6210 (FRAME_FIND_SAVED_REGS): Also get SP.
6211 gould-pinsn.c (findframe): Move framechain declaration outside #if 0.
6212 infptrace.c (write_inferior_memory): Check addr against text_end
6213 and use PT_WRITE_I or PT_WRITE_D as appropriate.
6214 (store_inferior_registers): Don't try to write registers in
6215 CANNOT_STORE_REGISTER.
6216 m-npl.h (CANNOT_STORE_REGISTER): Define.
6217 npl-opcode.h (lil): 0xf8080000 -> 0xf80b0000.
6218
6219 * munch: Distinguish between BSD and System V nm by actually
6220 seeing what output from nm looks like.
6221
6222 Fri Mar 2 13:43:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6223
6224 * printcmd.c (print_frame_args): Change highest_offset to point
6225 to next unprinted arg.
6226
6227 * main.c (main): Print "type help for list of commands" along
6228 with the version. Follow it with a blank line.
6229
6230 Thu Mar 1 14:49:26 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6231
6232 * valprint.c: Move print_address for function from value_print
6233 to val_print.
6234
6235 Wed Feb 28 15:06:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6236
6237 * Makefile.dist (m-sun4os4.h): Depend on m-sparc.h
6238
6239 * Makefile.dist (version.c): Depend on Makefile.dist, not Makefile.
6240
6241 * Makefile.dist: Change MAKEFILES to Makefiles.
6242
6243 * symtab.h: Declare get_sym_file.
6244 core.c: Include symtab.h.
6245
6246 * Move signal name stuff from utils.c to signame.c
6247 Move signal name stuff from defs.h to signame.h.
6248 Makefile.dist (SFILES, HFILES, OBS): Add signame.{c,h,o}.
6249
6250 Mon Feb 26 12:03:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6251
6252 * command.c (add_cmd): Don't call savestring on name.
6253
6254 Sun Feb 25 15:52:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6255
6256 * printcmd.c (print_frame_args): Make highest_offset an int.
6257 New variable args_printed.
6258 (print_frame_nameless_args): Remove parameter end and add num
6259 and first.
6260 (print_frame_args): Change call to print_frame_nameless_args.
6261
6262 Fri Feb 23 21:40:15 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6263
6264 * stack.c (up_command, down_command):
6265 Only print stack frame if from_tty.
6266
6267 Thu Feb 22 12:01:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6268
6269 * expread.y: Inlcude value.h and don't cast return value from
6270 lookup_internalvar.
6271
6272 * infrun.c: Remove code in #ifdef UMAX_PTRACE.
6273
6274 * values.c (convenience_info): Print in form "$foo = 5".
6275 Don't print "Debugger convenience variables:" before first one.
6276
6277 * Makefile.dist: Remove ADD_FILES from CLIBS.
6278 (gdb, kdb, xgdb): Put in ADD_FILES as well as CLIBS.
6279
6280 * m-pyr.h: #if 0 out call dummy stuff.
6281 Put in POP_FRAME which just calls error().
6282 valops.c: If CALL_DUMMY is not defined, put in dummy call_function
6283 which just prints an error message.
6284
6285 Tue Feb 20 22:11:40 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6286
6287 * breakpoint.c (commands_command): Add arg from_tty.
6288
6289 * main.c (main): Put if (!setjmp (to_top_level)) around calls
6290 to *_command made in response to command line arguments.
6291
6292 Mon Feb 19 13:58:28 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6293
6294 * main.c (main): Use getopt_long_only. Move one-character options
6295 to long_options. Remove entries which are just unambiguous
6296 abbreviations of other options.
6297
6298 * command.h: Add types cmd_types and var_types.
6299 Add fields type, var_type, and var to struct cmd_list_element.
6300 command.c (add_set_cmd, add_set_from_show): New functions.
6301 (add_cmd): Set c->var_type.
6302 (add_abbrev_cmd): Call add_cmd instead of duplicating code.
6303 main.c: Add showlist.
6304 Move parse_binary_operation from main.c to command.c.
6305 command.c (do_setshow_command): New function.
6306 gdbcmd.h: New file.
6307 Makefile.dist: Add gdbcmd.h.
6308 many files: Include gdbcmd.h, use add_set_cmd and add_show_from_set.
6309 Replace info * with show * where appropriate.
6310 utils.c (fputs_filtered): Use UINT_MAX in lines_per_page to mean
6311 no paging.
6312 defs.h: Define UINT_MAX.
6313 infcmd.c (run_command): Use execute_command, not set_args_command.
6314 main.c (execute_command): Call do_setshow_command if necessary.
6315 main.c (show_command, show_history): New functions.
6316 main.c (initialize_main): Call add_prefix_cmd
6317 for show and show history.
6318
6319 * coffread.c (enter_linenos): Print error if
6320 file_offset < linetab_offset.
6321
6322 Sun Feb 18 15:37:05 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6323
6324 * convex-dep.c (comm_registers_info): Fix typo. ("argc"->"arg").
6325
6326 Wed Feb 14 20:45:14 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6327
6328 * config.gdb: Create Makefile with make.
6329
6330 * Makefile.dist, config.gdb: Move "srcdir=" line from Makefile.dist
6331 to new file Makefile.srcdir.
6332
6333 * valprint.c: Include <errno.h>.
6334
6335 * value.h: Declare value_coerce_function.
6336
6337 * findvar.c: Add missing " after #include "gdbcore.h
6338
6339 * main.c (main): Re-write command parsing to use getopt.
6340 On "gdb +help" print options with '+' not '-'.
6341 Makefile.dist: Add getopt.
6342
6343 Tue Feb 13 00:08:27 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6344
6345 * Makefile.dist: Add "srcdir=."
6346 config.gdb: Edit srcdir= rather than adding it to the beginning.
6347
6348 * pyr-dep.c: Make global_reg_offset, last_frame_offset not static.
6349 Move definition of reg_stack_offset to core.c [REG_STACK_SEGMENT].
6350
6351 * config/pyramid: Print message about alloca.
6352
6353 * breakpoint.c (clear_command): When printing "no breakpoint"
6354 error, only use arg if non-NULL.
6355
6356 * core.c (read_memory): Rename to read_memory_noerr.
6357 (read_memory): New function which calls read_memory and checks for err.
6358 gdbcore.h: Declare all extern core.c functions.
6359 move myread from core.c to utils.c.
6360 declare it in defs.h.
6361 (read_memory_integer): move from infcmd.c to core.c.
6362 gdbcore.h: Declare it.
6363 Many places: Remove error checking on read_memory, or call
6364 read_memory_noerr instead. Include "gdbcore.h" if calling either.
6365
6366 * value.h (COERCE_ARRAY): Coerce functions to function pointers.
6367 valops.c (value_coerce_function): New function.
6368
6369 * core.c, convex-dep.c, arm-dep.c (xfer_core_file): Return EIO
6370 if address out of bounds.
6371
6372 * m-arm.h, arm-dep.c arm-pinsn.c arm-opcode.h: New files.
6373 dbxread.c, m-convex.h (VARIABLES_INSIDE_BLOCK): Add gcc_p parameter.
6374 Makefile.dist (alldeps.mak): Special case for arm-convert.s.
6375 dbxread.c (define_symbol): Check for local based on it not
6376 being any one of the known deftypes.
6377 values.c (using_struct_return): Use new macro USE_STRUCT_CONVENTION.
6378
6379 * Makefile.dist, config.gdb: Put in srcdir stuff.
6380
6381 Mon Feb 12 22:46:16 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6382
6383 * breakpoint.c: Add addr_string and cond_string fields to
6384 struct breakpoint.
6385 (break_command_1): Set them. Use mention ().
6386 (mention): Create with code from break_command_1.
6387 (breakpoint_re_set): New function.
6388 (breakpoint_clear): Remove.
6389 (condition_command): Set cond_string.
6390 (breakpoint_delete): Free cond_string and addr_string.
6391 Declare parse_c_1's type and remove casts to struct expression *.
6392 symmisc.c (free_all_symtabs): Don't call breakpoint_clear.
6393 dbxread.c, coffread.c (reread_symbols): Call breakpoint_re_set,
6394 Include breakpoint.h.
6395 breakpoint.h: New file.
6396 dbxread.c: Move declaration of symmisc.c functions to symtab.h.
6397
6398 Sun Feb 11 17:29:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6399
6400 * symtab.c: Make lookup_block_symtab extern.
6401 symtab.h: Declare it.
6402 valops.c (value_of_this): Use it.
6403
6404 Fri Feb 9 08:59:37 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6405
6406 * config/hp300hpux: Print message telling people to use gcc.
6407
6408 * value.h: Declare print_floating.
6409 printcmd.c (print_scalar_formatted, case 'f'): Use print_floating.
6410 valprint.c (val_print, case TYPE_CODE_FLT): Use print_floating.
6411 valprint.c (print_floating): Make this function out of is_nan
6412 and the code which was in val_print.
6413 Put parentheses around high & 0xfffff.
6414 Print sign and fraction for NaN's.
6415 Print 17 digits not 16 for doubles.
6416 (is_nan): Remove.
6417 m-news.h, m-sun3.h: Define IEEE_FLOAT.
6418
6419 * Rename gld-pinsn.c to gould-pinsn.c.
6420 config/{pn,npl}: Change name of gld-pinsn.c
6421
6422 Tue Feb 6 00:25:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6423
6424 * infptrace.c: Define PT_ATTACH if not defined.
6425 m-hp300hpux.h: Define ATTACH_DETACH.
6426
6427 * main.c (initialize_main): Change alias class to aliases.
6428
6429 * dbxread.c: Search and destroy references to symsegs.
6430 Also remove some #if 0'd code.
6431
6432 * core.c: Remove reread_exec.
6433 dbxread.c (reread_symbols): New function.
6434 dbxread.c (symbol_file_command): Set symfile_mtime.
6435 coffread.c: Same.
6436 infcmd.c (run_command): Call reread_symbols not reread_exec.
6437
6438 * valprint.c (val_print): When printing string after char *, print
6439 it for "" just like any other string.
6440
6441 * core.c (reread_exec): New procedure.
6442 infcmd.c (run_command): Call reread_exec.
6443
6444 * coffread.c (symbol_file_command): Add from_tty.
6445
6446 * dbxread.c (symbol_file_command): Only ask about loading new
6447 symbol table if from_tty.
6448
6449 Mon Feb 5 02:25:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6450
6451 * inflow.c (inferior_died): Call breakpoint_clear_ignore_counts.
6452
6453 * Makefile.dist (OBS): Remove dbxread.o and coffread.o.
6454
6455 * config.gdb: Ignore files ending in '#' in config.
6456
6457 * stack.c (backtrace_command): Add QUIT to get_prev_frame loops.
6458
6459 Sat Feb 3 22:25:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6460
6461 * Makefile.dist (YACC): Don't use -v.
6462
6463 Fri Feb 2 19:26:50 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
6464
6465 * createtags: Only change .o to .c at end of name.
6466
6467 * Makefile.dist (alldeps.mak): new target.
6468 (Makefile): add alldeps.mak.
6469 (SOURCES): remove PINSNS.
6470 (TAGFILES: use ALLPARAM.
6471 (gdb.tar): add config/.
6472
6473 * config.gdb: Check for M_FILE= not #param.h
6474 config/*: Make sure M_FILE= exists with space after M_FILE=.
6475 Makefile.dist (TAGS): Pass M_FILE and DEPFILES.
6476 createtags: Change .o to .c. Remove special tests for dep.c etc.
6477
6478 * dbxread.c, coffread.c: Don't check COFF_FORMAT and READ_DBX_FORMAT.
6479 Makefile.dist: Move {dbx,coff}read.c from SFILES to ALLDEPFILES.
6480 config/*: add dbxread.o or coffread.o to depfiles.
6481
6482 * Makefile.dist (depend): Depend on $(SOURCES), not force.
6483
6484 Thu Feb 1 17:43:54 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6485
6486 * symmisc.c (print_symbol): Print newline after label.
6487
6488 Wed Jan 31 22:35:38 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6489
6490 * dbxread.c (read_addl_syms): Remove code that checks for
6491 _etext.
6492 Move end_of_text_addr into read_dbx_symtab.
6493 (read_dbx_symtab): #if 0 out code which checks for _etext.
6494
6495 Tue Jan 30 15:40:19 1990 Jim Kingdon (kingdon at albert.ai.mit.edu)
6496
6497 * Makefile.dist (gdb.tar): Use readline's "make readline.tar"
6498 instead of having a list of readline files.
6499
6500 * infrun.c (normal_stop): #if 0 out "you have found a bug in sh".
6501
6502 * munch (-DSYSV): Check for .text at end of name.
6503 Optionally allow extra underscore before initialize.
6504 Remove space between #! and /bin/sh.
6505
6506 * m-merlin.h: Put in clarifying comments about SHELL_FILE.
6507 Makefile.dist (install): Execute M_INSTALL.
6508 config/merlin: Define M_INSTALL.
6509
6510 Mon Jan 29 04:32:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6511
6512 * inflow.c: Change all references to signal handlers from
6513 int (*)() to void (*)().
6514
6515 * main.c: Declare init_signals before use & make it void.
6516 Declare initialize_all_files.
6517
6518 * Makefile.dist (config.status): New target.
6519
6520 Sat Jan 27 00:19:50 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6521
6522 * defs.h (enum command_class): Remove comma after last element.
6523
6524 * Makefile.dist (gdb.tar.Z): Use compress <foo >bar rather
6525 than deleting gdb.tar.Z before starting.
6526
6527 * dbxread.c (process_one_symbol): Compare context_stack_depth
6528 with !VARIABLES_INSIDE_BLOCK, not VARIABLES_INSIDE_BLOCK.
6529
6530 * mcheck.c: Put whole file in #if defined MALLOC_RANGE_CHECK.
6531
6532 * mcheck.c (checkhdr): Call fatal_dump_core not abort.
6533
6534 * mcheck.c: Copy from malloc distribution.
6535
6536 * main.c (main): Call init_malloc ().
6537
6538 * main.c (initialize_signals): Rename to init_signals.
6539
6540 Fri Jan 26 00:53:23 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
6541
6542 * *dep.c: Make core_file_command return void.
6543
6544 * gdbcore.h [!KERNEL_U_ADDR]: Declare kernel_u_addr.
6545 infptrace.c [!KERNEL_U_ADDR]: Make it extern.
6546
6547 * altos-dep.c (NBPG, UPAGES): Wrap #define in #if !defined.
6548
6549 * m-pn.h (GOULD_PN): Define.
6550 *-pinsn.c: Include actual opcode table not just opcode.h
6551
6552 * main.c [ALIGN_STACK_ON_STARTUP]: New code.
6553 m-i386.h: Define ALIGN_STACK_ON_STARTUP.
6554
6555 * m-merlin.h (NO_SIGINTERRUPT, SHELL_FILE): Define.
6556
6557 * Move code from infptrace [USE_PTRACE_GETREGS] to sun3-dep.c.
6558 m-sun{2,3}.h, m-sparc.h: Define FETCH_INFERIOR_REGISTERS.
6559
6560 * Makefile.dist, config.gdb, config/*:
6561 Re-write to use machine-dependent makefiles instead of cpp.
6562
6563 * m-hp300hpux.h: Define FETCH_INFERIOR_REGISTERS.
6564 infptrace.c: Put {fetch,store}_inferior_registers inside
6565 #if !defined FETCH_INFERIOR_REGISTERS.
6566
6567 * Split execcore.c into exec.c and coredep.c.
6568 Move a bunch of stuff from coredep.c and *dep.c to gdbcore.h.
6569
6570 * infptrace.c ({fetch,store}_inferior_registers):
6571 Use U_REGS_OFFSET to set offset.
6572 m-umax.h: Define U_REGS_OFFSET.
6573
6574 * m-umax.h: Define PTRACE_{ATTACH,DETACH}.
6575
6576 * m-i386.h (N_SET_MAGIC): Define.
6577 m-i386gas.h: add #undef N_SET_MAGIC.
6578
6579 Thu Jan 25 18:39:45 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
6580
6581 * m-hp300bsd.h: Remove KERNEL_U_ADDR.
6582
6583 * infptrace.c [!KERNEL_U_ADDR]: Get address of kernel u area
6584 at runtime.
6585
6586 * infptrace.c: Replace numbers with PT_KILL, etc.
6587 (store_inferior_registers): Loop for as many words are in the register.
6588
6589 * infptrace.c [NO_SINGLE_STEP]: Call single_step().
6590
6591 * kill_inferior{,_fast}: Declare as returning void.
6592
6593 * m-sun3.h (USE_PTRACE_GETREGS): Define.
6594
6595 * execcore.c: Add IS_OBJECT_FILE & related stuff.
6596
6597 * infptrace.c: Include <sys/ptrace.h>.
6598 [ATTACH_DETACH] [USE_PTRACE_GETREGS]: New code.
6599
6600 * Split default-dep.c into infptrace.c and execcore.c.
6601
6602 * valprint.c [IEEE_FLOAT]: Change void * to char *.
6603
6604 * breakpoint.c: Change printf_filtered(%s) to fputs_filtered.
6605
6606 Wed Jan 24 00:35:52 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6607
6608 * dbxread.c (symbol_file_command): When freeing everything, free
6609 the string table too.
6610
6611 * Makefile.dist (gdb1): add "rm -f gdb1".
6612
6613 * printcmd.c (print_scalar_formatted): If size is 0, use 'b'
6614 'h', 'w', or 'g' depending on the type.
6615
6616 * stack.c (backtrace_command): Read in symbols for frames we'll
6617 print before printing them.
6618
6619 * valops.c (value_at): Don't print "I/O error" on EIO from
6620 ptrace. Don't print "out of bounds" for any ptrace error
6621 except EIO.
6622
6623 * valprint.c (type_print_base, case TYPE_CODE_ENUM):
6624 Print "FOO = 5" not "FOO : 5".
6625
6626 * symtab.{c,h}: Make lookup_misc_func extern.
6627
6628 * Makefile.dist: Define VERSION in makefile, and generate
6629 version.c automatically.
6630 (gdb.tar): Use gdb-$(VERSION), not dist-gdb.
6631
6632 * expread.y (yylex): Use lookup_primitive_typename to
6633 cut down on calls to lookup_symbol.
6634 symtab.{c,h} (lookup_primitive_typename): New function.
6635 (lookup_typename): Use it.
6636
6637 * symtab.{c,h} (check_stub_type): New function.
6638 valprint.c (type_print_base, val_print, type_print_derivation_info),
6639 values.c (allocate_value): Call it.
6640
6641 * printcmd.c (whereis_command): New function.
6642 symtab.c (lookup_symbol): Add symtab parameter.
6643 various: Pass additional argument to lookup_symbol.
6644 symseg.h (struct symbol): Add line field.
6645 dbxread.c (define_symbol): Set sym->line.
6646
6647 * dbxread.c (symbol_file_command): Read string table into
6648 malloc'd memory (symfile_string_table) and leave it there.
6649 (psymtab_to_symtab): Use symfile_string_table.
6650
6651 * utils.c (sig_abbrev): Return NULL if not found.
6652 infrun.c (sig_print_{header,info}): Consolidate duplicated
6653 code from handle_command, signals_info.
6654 (sig_print_info): Just print number if no name from sig_abbrev.
6655
6656 * Makefile.dist (OTHERS): Add ChangeLog-3.x
6657
6658 * infrun.c (restore_inferior_status): #if 0 out
6659 "Unable to restore previously selected frame" error message.
6660
6661 * infrun.c (signals_info, handle_command): Print signal
6662 abbrevs along with numbers.
6663
6664 * infrun.c (handle_command): Accept symbol signal names.
6665
6666 * utils.c (sig_{number,abbrev}, init_sig): New functions.
6667 _initialize_utils: Call init_sig for each signal.
6668 defs.h: Declare them.
6669
6670 * default-dep.c (read_inferior_memory): Check quit_flag in
6671 fetch loop.
6672
6673 * Changes for lazy fetching (speeds things up for big objects):
6674 value.h (struct value): New field lazy.
6675 VALUE_CONTENTS_RAW, VALUE_LAZY, value_at_lazy: New.
6676 findvar.c (read_var_value): Set lazy instead of fetching.
6677 various: Copy into VALUE_CONTENTS_RAW, not VALUE_CONTENTS.
6678 valops.c: Add value_at_lazy, value_lazy.
6679 various: Call value_at_lazy instead of value_at.
6680
6681 * symtab.h (LONGEST): Define.
6682
6683 * m-*.h (LONGEST, BUILTIN_TYPE_LONGEST): Delete (in symtab.h).
6684
6685 * infrun.c (wait_for_inferior): #if 0 out stop if ABOUT_TO_RETURN
6686
6687 * version.c: Change version number to 4.0development
6688
6689 For older changes see ChangeLog-3.x
6690 \f
6691 Local Variables:
6692 mode: indented-text
6693 left-margin: 8
6694 fill-column: 74
6695 version-control: never
6696 End: