* symtab.c (in_prologue): Document func_start and when it is zero
[binutils-gdb.git] / gdb / ChangeLog
1 Wed Nov 1 12:58:14 1995 Fred Fish <fnf@cygnus.com>
2
3 * symtab.c (in_prologue): Document func_start and when it is zero
4 don't call SKIP_PROLOGUE (which typically leads unconditionally to
5 an error when we try to access a prologue at address 0).
6
7 Tue Oct 31 13:01:15 1995 Fred Fish <fnf@cygnus.com>
8
9 * elfread.c: Include elf-bfd.h rather than libelf.h.
10
11 Tue Oct 31 10:42:42 1995 steve chamberlain <sac@slash.cygnus.com>
12
13 * win32-nat.c (xlate_exception): Treat a stack overflow like a SEGV.
14
15 Sun Oct 29 11:22:05 1995 Fred Fish <fnf@cygnus.com>
16
17 * monitor.c: Include gnu-regex.h rather than system regex.h.
18
19 Sat Oct 28 23:51:48 1995 steve chamberlain <sac@slash.cygnus.com>
20
21 * defs.h: Test on name __WIN32__ rather than WIN32.
22 * inflow.c (new_tty): Likewise
23 * terminal.h: Likewise.
24 * utils.c (initialize_utils): Likewise.
25 * win32-nat.c (child_create_inferiror): Print error code when failing.
26 * config/i386/win32.mh (XM_CLIBS): Need -lkernel32.
27
28 Sat Oct 28 04:52:36 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
29
30 * symtab.h (enum address_class): Add LOC_UNRESOLVED for
31 a location whose address has to be resolved via the minimal
32 symbol table.
33 * buildsym.c (finish_block), findvar.c (symbol_read_needs_frame,
34 read_var_value), printcmd.c (address_info),
35 symmisc.c (print_symbol, print_partial_symbol): Handle
36 LOC_UNRESOLVED.
37 * stabsread.c (scan_file_globals): Change unresolved LOC_STATIC
38 symbols to LOC_UNRESOLVED. Remove rt_common_objfile lookup
39 kludge, global common symbols are now handled by LOC_UNRESOLVED.
40 (scan_file_globals_1): Move code back to scan_file_globals,
41 delete.
42
43 Fri Oct 27 09:54:07 1995 Stu Grossman (grossman@cygnus.com)
44
45 * breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGET
46 around calls to create_longjmp_breakpoint. Why install the
47 breakpoints if we can't find the longjmp target?
48 * infrun.c (wait_for_inferior): Cleanup comments near call test.
49 * remote-mips.c: Fixed a bunch of prototypes to avoid char/int
50 complaint from picky compilers. Add comment to mips_expect.
51 Replace all instances of sr_get_debug with remote_debug.
52 * (mips_readchar): Don't jam init string to monitor.
53 mips_initialize() handles that.
54 * (mips_receive_header): Print better message when we get too
55 much garbage.
56 * (mips_request): Allow caller to pass in buff to allow them to
57 analyze the returned message.
58 * (mips_initialize): Re-do initialization to try sending a BREAK,
59 a ^C, and then a download escape sequence. Cleanup protocol
60 startup. Eliminate sleeps. Clear breakpoints (if using monitor
61 breakpoints). Re-init frame.
62 * (mips_detach): Close down target.
63 start-sanitize-gm
64 * (mips_resume): Pass signal down to target.
65 * (mips_create_inferior): Start target with TARGET_SIGNAL_PWR.
66 end-sanitize-gm
67 * (mips_wait): Handle return status with registers, or breakpoint stuff.
68 * (mips_kill): Add ^C handling.
69 * (mips_insert_breakpoint mips_remove_breakpoint): Call new
70 breakpoint stuff if enabled.
71 * (calculate_mask remote_mips_set_watchpoint
72 remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint):
73 Hardware watchpoint/breakpoint stuff.
74 * (common_breakpoint): Common code for new monitor breakpoint commands.
75 * (mips_load): Don't use `prompt'. It's a global variable.
76 * top.c (dont_repeat_command): New command for use in
77 user-defined commands to suppress auto-repeat (by hittin return key).
78 start-sanitize-gm
79 * utils.c (request_quit): Call target_kill here. Good idea.
80 Needs a better implementation.
81 end-sanitize-gm
82 * valops.c: Add start of auto function-call abandonment capability.
83
84 start-sanitize-gm
85 * c-exp.y: Add code (currently disabled) to handle GM dynamic
86 structures (it conflicts with @!).
87 * eval.c (evaluate_subexp_standard): ditto.
88 * expprint.c (print_subexp dump_expression): ditto.
89 * expression.h (enum exp_opcode): ditto.
90 * parse.c (length_of_subexp): ditto.
91 * configure, configure.in: Add mip*-*-magic* target.
92 * magic.c magic.h: Special routines to handle GM stuff (like
93 stepping through dispatcher).
94 * config/mips/tm-magic.h config/mips/magic.mt: New files for
95 magic target support.
96 end-sanitize-gm
97
98 Thu Oct 26 22:02:27 1995 Stan Shebs <shebs@andros.cygnus.com>
99
100 * mpw-config.in: Add support for PowerMac host, add beginnings
101 of native support.
102 * mpw-make.sed: Disable subdir recursion, edit out useless rule.
103 * mac-xdep.c (Values.h): Don't include.
104 (GestaltEqu.h): Include Gestalt.h instead.
105 (do_mouse_down): Comment out control tracking, needs to be
106 updated to use UPP before will work on PowerMac.
107 * config/xm-mpw.h: New file, all-Mac host support.
108 * config/m68k/xm-mpw.h: Move most definitions into generic Mac
109 support.
110 * config/powerpc/xm-mpw.h: New file, PowerMac host support.
111
112 Thu Oct 26 15:21:32 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
113
114 * regex.h: Renamed to gnu-regex.h.
115 * regex.c: Renamed to gnu-regex.c.
116 * Makefile.in (POSSLIBS): Refer to gnu-regex.h and gnu-regex.c.
117 (REGEX, REGEX1): Change to gnu-regex.o instead of regex.o.
118 (regex.o): Renamed to gnu-regex.o; refer to gnu-regex.c.
119 (irix5-nat.o, osfsolib.o, gnu-regex.o, solib.o, source.o, symtab.o):
120 Likewise.
121 * irix5-nat.c, osfsolib.c, gnu-regex.c, solib.c, source.c, symtab.c):
122 Include "gnu-regex.h" instead of "regex.h".
123 * alpha-tdep.c (in_prologue): Rename to alpha_in_prologue, to
124 avoid conflicts with symtab.h.
125
126 Tue Oct 24 18:30:18 1995 Jason Molenda (crash@phydeaux.cygnus.com)
127
128 * config/pa/hppahpux.mh: Remove hardcoding of X locations.
129 * Makefile.in: Use X11_CFLAGS, X11_LDFLAGS and X11_LIBS.
130 * configure.in: Link X statically on Solaris, SunOS and HPUX.
131
132 Tue Oct 24 12:26:14 1995 Stu Grossman (grossman@cygnus.com)
133
134 * monitor.c (monitor_expect_regexp): Same as monitor_expect, but
135 with the obvious extension.
136 (monitor_read_memory_single): Use regexp for getmem.resp_delim
137 because of parsing ambiguities caused by certain monitors.
138 (monitor_read_memory): Use new regexp stuff to parse
139 getmem.resp_delim.
140 * monitor.h (struct memrw_cmd->resp_delim): Document this as a
141 regexp.
142 * sh3-rom.c: Finish off table. Use new regexp capability for
143 getmem commands.
144
145 * infrun.c (wait_for_inferior): Disable questionable code near
146 the step range test. Replace call detection test with much
147 simpler (and more efficient) test that doesn't require prologue
148 examination (as often).
149 * symtab.c symtab.h (in_prologue): New function that indicates
150 whether or not we are in a function prologue. This uses the
151 symbol table, and then falls back to prologue examination if that
152 fails. It's much more efficient for remote debugging because it
153 avoids examining memory, which is very slow. This is used in
154 wait_for_inferior to determine if we've made a function call that
155 needs to be skipped over (for next/nexti).
156 * mips-tdep.c (after_prologue): New function, returns the PC
157 after the prologue. Uses PDRs and the symbol table.
158 (mips_find_saved_regs): Use in_prologue() to avoid costly
159 prologue examination if possible.
160 (mips_skip_prologue): Use after_prologue() if possible to avoid
161 costly prologue examination.
162
163 Mon Oct 23 16:03:33 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
164
165 * configure.in (configdirs): Added support for the VR4300 default
166 builds (mips64*vr4300*el-*-elf*, mips64*vr4300*-*-elf*).
167
168 * configure: Regenerated.
169
170 * remote-mips.c (mips_load): Updated the prompt spotting code to
171 make use of the TARGET_MONITOR_PROMPT manifest.
172
173 Sat Oct 21 06:11:49 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
174
175 * alpha-tdep.c, mips-tdep.c (init_extra_frame_info):
176 Do not set saved registers from heuristics for a sigtramp frame.
177
178 * dwarfread.c (enum_type): Determine signedness of enum type
179 from enumerators.
180
181 * mips-tdep.c: Include gdb_string.h, gcc -Wall lint.
182
183 * rs6000-nat.c (xcoff_relocate_core): Fix typo.
184
185 * valops.c (value_repeat): Fix length of memory transfer to
186 match recent allocate_repeat_value change.
187
188 Thu Oct 19 19:04:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
189
190 * gdbtypes.c (get_discrete_bounds): Fix typo.
191
192 Thu Oct 19 12:15:37 1995 Stan Shebs <shebs@andros.cygnus.com>
193
194 * defs.h (SEEK_SET, SEEK_CUR): Add default definitions.
195 * dbxread.c, mdebugread.c, os9kread.c (SEEK_SET, SEEK_CUR):
196 Remove default definitions.
197
198 * Makefile.in (CC-LD): Rename to CC_LD, so MPW xform works.
199 (MMALLOC_SRC): Define.
200 (MMALLOC_CFLAGS): Use.
201 (ser-mac.o): Add rule.
202 * dwarfread.c, somread.c, ultra3-nat.c, xcoffread.c: Replace L_SET
203 with SEEK_SET in all calls to bfd_seek.
204 * scm-tags.h (scm_tags): Remove excess comma.
205
206 * mpw-config.in: Adapt to work with autoconf'ed configury;
207 build config.h, add empty definitions to mk.tmp.
208 (powerpc-apple-macos): Make it work.
209 * mpw-make.sed: New file, sed commands to translate Unix makefile
210 into MPW syntax.
211 * mpw-make.in: Remove.
212 * mac-gdb.r: New file, was macgdb.r, renamed for consistency
213 with other tools, now includes cfrg resource.
214 * macgdb.r: Remove.
215 * config/m68k/xm-mpw.h: Remove most of contents, replace with
216 include of include/mpw/mpw.h.
217
218 Tue Oct 17 10:38:53 1995 Jeffrey A Law (law@cygnus.com)
219
220 * hppa-tdep.c (frame_chain): Fix more obscure problems caused
221 by system calls that core dump processes without saving all
222 the register state.
223
224 * config/pa/hppahpux.mt (XDEPFILES): Remove bogus definition.
225 * config/pa/hppapro.mt (XDEPFILES): Likewise.
226
227 Tue Oct 17 08:04:26 1995 Fred Fish <fnf@rtl.cygnus.com>
228
229 * NEWS: Fix typo.
230
231 start-sanitize-sh3e
232 Mon Oct 16 18:24:03 1995 Jim Wilson <wilson@chestnut.cygnus.com>
233
234 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Return builtin_type_float
235 for FP registers.
236 (REGISTER_NAMES): Add FP register names. Remove ticks, stalls, cycles,
237 insts, plr, and tlr.
238 (NUM_REGS, NUM_REALREGS): Increase from 23 to 41.
239 (FPUL_REGNUM, FP0_REGNUM): New macros.
240
241 end-sanitize-sh3e
242 Mon Oct 16 11:27:06 1995 Stu Grossman (grossman@cygnus.com)
243
244 * remote-mips.c: Add support for speedy (about 10x faster)
245 downloads.
246
247 * remote-array.c: Move baud_rate initialization from
248 _initialize_array to array_open. It was forcing the baud rate of
249 all targets to be 4800 baud! Seems like I've fixed this before...
250 * config/mips/idt.mt (TDEPFILES): Remove remote-array.o. This
251 has *nothing* to do with IDT!!!
252
253 * gdbtk.c (gdb_disassemble): Use fprintf_unfiltered instead of
254 fprintf_filtered.
255
256 * Makefile.in sh3-rom.c config/sh/sh.mt config/sh/tm-sh.h: Add
257 sh3 monitor support.
258 * monitor.c: Cleanup regexp compilation stuff to make it easier
259 to use several regexps.
260 * monitor.h: Get rid of struct rom_cmd_data. It's no longer used.
261 * config/m68k/tm-monitor.h: Don't redefine NUM_REGS here. It just
262 causes GDB to crash.
263
264 * sparcl-tdep.c: Cleanup serial error handling.
265
266 Sun Oct 15 16:19:27 1995 Stan Shebs <shebs@andros.cygnus.com>
267
268 * rs6000-tdep.c: Don't include a.out.h, improve some formatting.
269
270 Fri Oct 13 15:27:49 1995 Stu Grossman (grossman@cygnus.com)
271
272 * dcache.c: Change default value of remotecache to off. It just
273 screws up too many targets.
274 * sparcl-stub.c: Add prototypes to many forward decls.
275 * Create private copies of strlen, strcpy, and memcpy to prevent
276 chaos when user steps into them.
277 * (trap_low handle_exception): Clean up DSU support code
278 (hardware breakpoints). Move lots of stuff from asm-land to
279 C-land (make it much easier to #ifdef if necessary). Also, use
280 trap 255 to get into break mode instead of doing a DSU register
281 write, which may trash the register.
282 * (putpacket): Don't check return value of putDebugChar. It
283 returns void...
284
285 Fri Oct 13 14:16:17 1995 steve chamberlain <sac@slash.cygnus.com>
286
287 * remote-sim.h: Always include callback.h.
288 (sim_set_callbacks): New declaration.
289
290 Fri Oct 13 10:57:40 1995 Jeffrey A Law (law@cygnus.com)
291
292 * somsolib.c (som_solib_add): Just give a warning if a file
293 mentioned in the dld_list can't be found.
294 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP): Dig out
295 the PC from the PC queues rather than %r31.
296
297 Thu Oct 12 13:36:15 1995 Jeffrey A Law (law@cygnus.com)
298
299 * corelow.c (core_open): Don't update the to_sections and
300 to_sections_end fields in core_ops here. It's too late.
301 * irix5-nat.c (solib_add): Update the to_sections and
302 to_sections_end fields in core_ops here if needed.
303 * osfsolib.c (solib_add): Likewise.
304 * rs6000-nat.c (xcoff_relocate_core): Likewise.
305 * solib.c (solib_add): Likewise.
306 * somsolib.c (solib_add): Likewise.
307
308 Wed Oct 11 17:25:59 1995 Fred Fish <fnf@rtl.cygnus.com>
309
310 * Makefile.in (VERSION): Bump version to 4.15.1
311
312 Tue Oct 10 15:26:39 1995 Fred Fish <fnf@cygnus.com>
313
314 * Makefile.in (VERSION): Version 4.15 released.
315 * README: Updated for version 4.15.
316 * README.GDBTK: Updated for version 4.15
317 * NEWS: Updated for 4.15 release.
318
319 Tue Oct 10 13:18:50 1995 Fred Fish <fnf@cygnus.com>
320
321 * configure.in: Add AC_PROG_YACC
322 * configure: Regenerate
323 * Makefile.in (BISON): Remove macro definition.
324 (YACC): Set from autoconfig.
325 (FLAGS_TO_PASS): Remove BISON.
326 (TARGET_FLAGS_TO_PASS): Remove BISON.
327
328 Tue Oct 10 12:25:11 1995 steve chamberlain <sac@slash.cygnus.com>
329
330 * win32-nat.c (child_create_inferior): Pass argv correctly.
331 * Makefile.in (win32-nat.o): Add dependencies.
332
333 Mon Oct 9 14:36:29 1995 steve chamberlain <sac@slash.cygnus.com>
334
335 * NEWS: Add information about win32 and arm code.
336 * win32-nat.c: Renamed from win32.c.
337 * config/i386/win32.mh: Renamed from config/i386/i386win32.mh.
338 * config/i386/win32.mt: Renamed from config/i386/i386win32.mt.
339 * config/i386/tm-win32.h: Renamed from config/i386/tm-i386win32.h.
340 * config/i386/xm-win32.h: Renamed from config/i386/xm-i386win32.h.
341 * configure.in (i[345]86-*-win32): Updated to cope with filename
342 changes.
343 * configure: Regenerated.
344
345 Sun Oct 8 18:01:04 1995 Per Bothner <bothner@kalessin.cygnus.com>
346
347 * ch-exp.y (yylex): Also look for '$' following '$'.
348
349 Sat Oct 7 22:52:42 1995 Michael Meissner <meissner@tiktok.cygnus.com>
350
351 * ch-exp.y (yylex): Fix typo.
352
353 Fri Oct 6 11:56:49 1995 Jim Wilson <wilson@chestnut.cygnus.com>
354
355 * remote-sim.c (gdbsim_open): Put callback initializations here.
356 (_initalize_remote_sim): Not here.
357
358 Fri Oct 6 17:08:49 1995 Stan Shebs <shebs@andros.cygnus.com>
359
360 * top.c (execute_control_command): Use 0/1 instead of BFD's
361 true/false.
362
363 Fri Oct 6 14:43:19 1995 Stu Grossman (grossman@cygnus.com)
364
365 * sparcl-stub.c: Include sparclite.h to get access to register
366 fondling macros.
367 * (trap_low): Save and restore FP regs if necessary. Also, clean
368 up save and restore of debug unit regs.
369 * (hard_trap_info): Add more architecturally defined traps.
370 * (set_debug_traps): Only set FP disabled trap if FP is disabled.
371 * (get_in_break_mode): Clean up. Get rid of calls to
372 set_hw_breakpoint_trap(). Also, use write_asi macro.
373 * (handle_exception): Clean up `g' and `G' commands. Add `P'
374 command.
375 * (hw_breakpoint): Why was this here!? It's gone now...
376
377 Fri Oct 6 11:56:49 1995 Jim Wilson <wilson@chestnut.cygnus.com>
378
379 * callback.c (fdbad): Fix typo in comment.
380 (os_close, os_isatty, os_lseek, os_read, os_write): Use if
381 statements rather than || to get correct return value.
382 (os_write_stdout): Pass missing first argument to os_write.
383 * remote-sim.c: Include callback.h.
384 (_initialize_remote_sim): Call sim_set_callbacks and then
385 initialize the callbacks.
386
387 Thu Oct 5 17:28:09 1995 Per Bothner <bothner@kalessin.cygnus.com>
388
389 * values.c (allocate_repeat_value): Allocate an array type, and
390 a value of that type; use that instead of setting VALUE_REPEATED.
391 * value.h (struct value): Remove fields repetitions and repeated.
392 (VALUE_REPEATED, VALUE_REPETITIONS): Removed, no longer used.
393 * c-valprint.c, ch-valprint.c, eval.c, printcmd.c, valops.c,
394 value.h, values.c: Simplify, since now VALUE_REPEATED is never
395 used.
396 * valprint.c (value_print_array_elemen): Removed never-used
397 function.
398
399 Thu Oct 5 15:14:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
400
401 * parse.c (write_dollar_variable): New function.
402
403 * c-exp.y (yylex): Replace code for recognizing '$'
404 pseudo-variables with a call to write_dollar_variable.
405 Simplify grammar correspondingly.
406 * f-exp.y: Likewise.
407 * m2-exp.y: Likewise.
408 * ch-exp.y: Likewise. (Remove function match_dollar_tokens.)
409 * scm-exp.c (scm_lreadr): Call write_dollar_variable to handle '$'.
410
411 Thu Oct 5 13:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
412
413 * win32.c: New file; support for debugging on windows NT.
414 * configure.in: (i[345]86-*-win32): New target.
415 * configure: Regnerated.
416 * eval.c (evaluate_subexp_standard): Remove unused name.
417 * serial.c (gdb_string.h): Include.
418 * source.c (value.h): Include.
419 * config/i386/i386win32.mh (XDEPFILES): Add win32.o
420 * config/i386/i386win32.mt: New.
421 * config/i386/tm-i386win32.h: New.
422
423 Wed Oct 4 18:41:34 1995 Per Bothner <bothner@kalessin.cygnus.com>
424
425 * expression.h (enum exp_code): Added OP_NAME.
426 * expprint.c (print_subexp): Add OP_NAME support.
427 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
428 * scm-lang.c (scm_unpack, in_eval_c, scm_lookup_name): new function.
429 * scm-lang.h: Declare builtin_type_scm; other minor tweaks.
430 * values.c (unpack_long): If type is SCM, call scm_unpack.
431 * scm-valprint.c (scm_val_print): Use extract_signed_integer,
432 instead unpack_long
433 * scm-lang.c: More Scheme expression parsing from here ...
434 * scm-exp.c: ... to here. New file.
435 Also, provide for gdb to evaluate simple constants and names..
436 * Makefile.in: Note new scm-exp.{c,o}.
437
438 Wed Oct 4 17:23:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
439
440 * gdbtypes.c (get_discrete_bounds): New function.
441 (force_to_range_type): Use get_discrete_bounds.
442 * gdbtypes.h (get_discrete_bounds): Add declaration.
443 * valarith.c (value_bit_index): Generalize to use get_discrete_bounds.
444 * ch-valprint.c (chill_val_print): Make (power)sets and bitstring
445 support use get_discrete_bounds and generally be more robust.
446
447 Tue Oct 3 16:54:56 1995 Stan Shebs <shebs@andros.cygnus.com>
448
449 * remote-nrom.c (nrom_ops): Add value for to_thread_alive,
450 add comments naming slots.
451
452 Mon Oct 2 21:45:44 1995 Jeff Law (law@hurl)
453
454 * top.c (build_command_line): Demand arguments for if/while
455 commands.
456
457 Mon Oct 2 13:08:01 1995 Jason Molenda (crash@phydeaux.cygnus.com)
458
459 * Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@.
460
461 Sat Sep 30 16:13:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
462
463 * scm-lang.c: Moved Scheme value printing code to ...
464 * scm-valprint.c: ... this new file.
465 Also major improvements in support for printing SCM values.
466 * scm-lang.h: New file.
467 * scm-tags.h: New file.
468 * Makefile.in: Note new scm-valprint.{c,o}.
469
470 Sat Sep 30 09:35:02 1995 Jason Molenda (crash@phydeaux.cygnus.com)
471
472 * configure.in: X_INCDIR and X_LIBDIR added.
473 * Makefile.in: @X_INCDIR@ and @X_LIBDIR@ added.
474 * configure: Regnerated.
475
476 Fri Sep 29 02:10:05 1995 steve chamberlain <sac@slash.cygnus.com>
477
478 * config/arm/tm-arm.h (FRAME_CHAIN, FRAME_CHAIN_VALID):
479 Any pc > LOWESTPC is ok.
480
481 * remote-rdp.c (rdp_init): Take out variable baud rate stuff.
482 (remote_rdp_detatch): Delete.
483 * breakpoint.c (ctype.h): Don't include twice.
484
485 * Makefile.in (remote-rdp.o): Doesn't need remote-rdp.h
486 * callback.c (os_printf_filtered): fix protos.
487 * defs.h (puts_filtered, puts_unfiltered
488 [v|f|]printf_[un]filtered): Make format arg const.
489 * remote-rdp.c (rdp_init): Attept to sync at different
490 baudrates.
491 * utils.c (puts_filtered, puts_unfiltered
492 [v|f|]printf_[un]filtered): Define prototypes with
493 const in the right place.
494
495 Thu Sep 28 17:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
496
497 * defs.h (enum language): Add language_scm.
498 * expression.h (enum exp_code): Added OP_EXPRSTRING.
499 * scm-lang.c: Preliminary support for Guile /SCM dialect of Scheme.
500 * expprint.c (print_subexp): Add OP_EXPRSTRING support.
501 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
502 * valops.c (find_function_in_inferior): New function.
503 (value_allocate_space_in_inferior): New function.
504 (allocate_space_in_inferior): Redefine using previous function.
505 * Makefile.in (SFILES): Add scm-lang.c.
506 (COMMON_OBS): Add scm-lang.o
507
508 Thu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>
509
510 * callback.[ch]: New files.
511 * remote-rdp.c: Support for the ARM RDP monitor.
512 * Makefile: Update.
513 * arm-tdep.c (arm_othernames): New.
514 (_initialize_arm_tdep): install 'othernames' command.
515 (arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New.
516 * configure.in: Check for termios.h, termio.h and sgtty.h.
517 (i[345]86-*-win32*): New host.
518 * configure: Regenerated.
519 * inflow.c: Clean up inclusions.
520 * main.c (main): Check for WINGDB, not WIN32.
521 * printcmd.c (do_examine): Put QUIT test in loop.
522 * remote-hms.c (e7000_load): Delete.
523 (hms_ops): Point to generic_load instead.
524 * remote-hms.c (hms_ops): Point to generic_load.
525 * remote-sim.c (sim_callback_write_stdout): Becomes
526 gdbsim_write_stdout.
527 (gdbsim_load): Call generic_load.
528 * remote-utils.c (gr_load_image): Delete.
529 * ser-unix.c (terminal.h): Include instead of havig
530 own #if tree.
531 (hardwire_flush_input): Reset input buffer too.
532 * source.c (openp): If WIN32 then open file in binary mode.
533 * terminal.h: Configure IO mechanism using autoconf defines if
534 available and not overriden.
535 * utils.c (quit, pollquit, notice_quit): WIN32 check becomes
536 WINGDB check.
537
538 * config/arm/arm.mt (TDEPFILES): Add remote-rdp.o.
539 * config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes
540 TARGET_BYTE_ORDER_SELECTABLE.
541 (ADDR_BITS_REMOVE): New.
542 (ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New.
543 (INST_xx): New.
544 (FRAME_FIND_SAVED_REGS): Pass the right argument.
545 (arm_get_next_pc): Declare.
546
547 Wed Sep 27 10:14:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
548
549 * valops.c (search_struct_field): Also allow "else" as a variant
550 name.
551 * eval.c (evaluate_struct_tuple): New function. Used to evaluate
552 structure tuples. Now also handles Chill variant records.
553 (get_label): New function, used by evaluate_struct_tuple.
554 (evaluate_subexp_standard case OP_ARRAY): Use evaluate_struct_tuple.
555 (evaluate_labeled_field_init): Removed.
556
557 * valops.c (search_struct_field): Generalize to work with Chill
558 variant records.
559
560 Sat Sep 23 01:22:23 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
561
562 * mdebugread.c (parse_partial_symbols): Reset includes_used
563 and dependencies_used after finishing the partial symbol table.
564
565 * rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero
566 correctly.
567
568 * rs6000-nat.c (xcoff_relocate_core): Don't relocate data
569 addresses for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE
570 is defined.
571 * xcoffread.c: gcc -Wall lint. Remove traceback table reading
572 code. The existing code tried to add parameter information for
573 functions compiled without -g, which cannot be done properly
574 for optimized code and produced misleading parameter displays.
575 (ef_complaint, eb_complaint): Make a local static copy to avoid
576 dependency on coffread.c.
577 (read_xcoff_symtab, process_xcoff_symbol, scan_xcoff_symtab):
578 Enter C_EXT/C_HIDEXT symbols into the minimal symbol table only.
579 (read_xcoff_symtab): Ignore C_STAT section auxiliary entry
580 symbols. Complain about unmatched .ef and .eb symbols instead of
581 segfaulting.
582 (process_xcoff_symbol): Determine value of C_GSYM symbols via
583 the global_sym_chain mechanism in stabsread.c.
584 (xcoff_new_init): Call stabsread_new_init and buildsym_new_init.
585 (init_string_tab): Initialize length field bytes in the strtbl.
586 (scan_xcoff_symtab): Skip symbols that start with `$' or `.$'.
587 Set first_fun_line_offset for symbols with two auxents only.
588
589 Wed Sep 20 21:06:35 1995 Jeff Law (law@snake.cs.utah.edu)
590
591 * op50-rom.c (op50n_cmds): Send ".\r" after the interrupt
592 character.
593
594 Wed Sep 20 13:12:56 1995 Ian Lance Taylor <ian@cygnus.com>
595
596 * Makefile.in (maintainer-clean): New target, synonym for
597 realclean. Add GNU standard maintainer-clean echos.
598 * gdbserver/Makefile.in (maintainer-clean): New target, synonym
599 for realclean.
600 * nlm/Makefile.in (maintainer-clean): Likewise.
601
602 Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
603
604 * defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h.
605 (GETENV_PROVIDED, FCLOSE_PROVIDED): New.
606 * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document.
607 * remote-sim.[ch] (sim_callback_write_stdout): New.
608
609 Tue Sep 19 15:28:58 1995 Per Bothner <bothner@kalessin.cygnus.com>
610
611 * gdbtypes.c (create_set_type): Set TYPE_LENGTH in bytes, not bits.
612 * valops.c (value_bitstring): TYPE_LENGTH is bytes, not bits.
613
614 * gdbtypes.c (force_to_range_type): Calculate upper limit of
615 TYPE_CODE_CHAR depending on TYPE_LENGTH (instead of just using 255).
616
617 Mon Sep 18 01:43:42 1995 Jeff Law (law@snake.cs.utah.edu)
618
619 * somsolib.c (auto_solib_add_at_startup): Delete definition. No
620 longer needed.
621
622 Sat Sep 16 13:23:36 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
623
624 * config/mips/tm-mips.h (UNUSED_REGNUM): Define.
625 * mipsv4-nat.c (supply_gregset): Fill UNUSED_REGNUM register
626 with zero.
627
628 Thu Sep 14 17:35:24 1995 Stu Grossman (grossman@cygnus.com)
629
630 * remote-sim.c (gdbsim_create_inferior): Back out change that
631 broke all simulator configurations except the rs6000.
632
633 Thu Sep 14 14:44:59 1995 Jeffrey A. Law <law@rtl.cygnus.com>
634
635 * monitor.c (monitor_expect): Discard NULL characters.
636
637 Thu Sep 14 14:12:30 1995 Kung Hsu <kung@mexican.cygnus.com>
638
639 * infcmd.c: Add extern declaration for auto_solib_add_at_startup.
640
641 Wed Sep 13 13:33:58 1995 Kung Hsu <kung@mexican.cygnus.com>
642
643 * symfile.c: Move global variable auto_solib_add_at_startup from
644 solib.c to symfile.c.
645 * solib.c: ditto.
646 * symfile.h: Add extern declaration of the above mentioned variable.
647 * infcmd.c: Take out extern declaration, since it's in symfile.h.
648
649 Thu Sep 14 12:39:35 1995 Stu Grossman (grossman@cygnus.com)
650
651 * coffread.c (coff_symtab_read): Complain about unmatched .ef and
652 .eb symbols instead of segfaulting.
653
654 Wed Sep 13 13:33:58 1995 Kung Hsu <kung@mexican.cygnus.com>
655
656 * stabsread.c (read_one_struct_field): Use subfile language instead of
657 global language. Improve efficiency.
658
659 Wed Sep 13 08:45:02 1995 Jeff Law (law@fast.cs.utah.edu)
660
661 * somsolib.c (auto_solib_add_at_startup): Define new global variable.
662 (som_solib_create_inferior_hook): Don't add libraries if
663 auto_solib_add_at_startup is zero.
664 (_initialize_som_solib): Add command to toggle
665 auto_solib_add_at_startup.
666
667 Tue Sep 12 19:37:24 1995 Jeff Law (law@snake.cs.utah.edu)
668
669 * monitor.c (monitor_make_srec): Fix thinkos in computation
670 of addr_size.
671
672 Tue Sep 12 15:46:18 1995 Kung Hsu <kung@mexican.cygnus.com>
673
674 * stabsread.c (read_one_struct_field): Add a patch to handle cfront
675 generated stabs that each field is in full mangled name.
676
677 * stabsread.c: To include language.h and expression.h for the reason
678 above.
679
680 * infcmd.c (attach_command): Add solibs only when
681 auto_solib_add_at_startup is set.
682
683 Mon Sep 11 17:22:35 1995 Fred Fish <fnf@cygnus.com>
684
685 * NEWS: Add information about remote target caching.
686
687 Sun Sep 10 15:36:21 1995 Fred Fish <fnf@cygnus.com>
688
689 * defs.h: Only include mmalloc.h if NO_MMALLOC is not
690 defined.
691
692 Sun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>
693
694 * tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the
695 simulator. FIXME.
696
697 * rs6000-tdep.c (push_dummy_frame): Calculate the correct link
698 register offset from the current frame (don't assume it is always 8).
699 (push_dummy_frame): Add comment about having only 4096 bytes of
700 stack space in the simulator (by default).
701
702 * remote-sim.c (gdbsim_create_inferior): Call
703 `add_text_to_loadinfo' so that gdb can find TOC entries when
704 calling functions in the inferior.
705
706 Sun Sep 10 09:00:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
707
708 * sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUM
709 substitution.
710 (supply_fpregset): Use FP_MAX_REGNUM.
711
712 Sat Sep 9 08:21:52 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
713
714 * stabsread.c (read_enum_type): Exit loop for putting pending
715 enum symbols into the enum type correctly if we had no pending
716 symbols on entry to read_enum_type.
717
718 Fri Sep 8 12:57:41 1995 Kung Hsu <kung@mexican.cygnus.com>
719
720 * inferior.h: Add extern declaration of inferior_environ.
721 * solib.c (solib_map_sections): To get inferior's env instead of
722 gdb's for LD_LIBRARY_PATH, same for PATH.
723
724 * solib.c (solib_map_sections): Copy full path name into so_list
725 structure so that symbol_file_add can find it.
726
727 Tue Sep 5 17:47:53 1995 Doug Evans <dje@canuck.cygnus.com>
728
729 * config/sparc/tm-sp64.h (REGISTER_RAW_SIZE): Lower 32 fp regs
730 have size 4.
731 (REGISTER_VIRTUAL_SIZE): Likewise.
732 (REGISTER_VIRTUAL_TYPE): Lower 32 fp regs have type float.
733 Upper 32 fp regs have type double.
734 * sparc-tdep.c (NUM_SPARC_FPREGS): Replace with
735 (FP_REGISTER_BYTES): this, and update all uses.
736 (FP_MAX_REGNUM): Define if not already.
737 (get_saved_register): Handle new sparc64 fp regs.
738 (sparc_frame_find_saved_regs): Likewise.
739 (sparc_print_register_hook): Only print fp regs < 32 as doubles.
740 Add code to handle long doubles when gdb does.
741 (_initialize_sparc_tdep): Use print_insn_sparc64 if sparc64.
742
743 Sat Sep 2 06:41:26 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
744
745 * configure.in: Explicitly `exit 0' for broken shells.
746 * configure: Rebuilt.
747
748 * symtab.c (list_symbols): Add missing blank after
749 `<function, no debug info>' output.
750
751 * valops.c (value_assign): Handle truncation when assigning
752 to bitfields. Use value_copy to construct the return value
753 from toval.
754 * values.c (value_copy): Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
755
756 Fri Sep 1 08:25:50 1995 James G. Smith <jsmith@beauty.cygnus.com>
757
758 * configure (mips64*vr4300*-*-elf): Support added.
759 * remote-mips.c (mips_readchar): Change to allow build-time prompt
760 string.
761 * config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT.
762 * config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h,
763 tm-vr4300el.h}: Added.
764
765 Thu Aug 31 12:48:04 1995 Jim Wilson <wilson@chestnut.cygnus.com>
766
767 * config/sh/sh.mt (SIM): Add -lm.
768
769 Wed Aug 30 18:10:57 1995 Kung Hsu <kung@mexican.cygnus.com>
770
771 * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
772 conform to GNU coding standards.
773
774 * solib.c (match_main): Modify to follow GNU coding conventions.
775
776 Mon Aug 28 17:07:26 1995 Kung Hsu <kung@lisa.cygnus.com>
777
778 * remote.c (remote_wait): Revert 19 July my change which should be
779 customer specific.
780
781 Sat Aug 26 00:26:11 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
782
783 * mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
784 Determine signedness of enum type from enumerators.
785 (parse_type): Handle btIndirect types, handle fBitfield for
786 some non-member types.
787 (upgrade_type): Use TYPE_FLAG_TARGET_STUB for arrays with
788 unknown length.
789 (cross_ref): Handle stIndirect forward reference to btTypedef.
790
791 * stabsread.c (read_enum_type): Determine signedness of enum
792 type from enumerators.
793
794 * top.c (execute_command): Remove trailing whitespace from
795 command arguments, except for `set' and `complete' commands.
796 (validate_comname): Allow underscores in user defined command
797 names.
798
799 * values.c (modify_field): Change `Value does not fit in %d bits'
800 error to a warning. Exclude sign extension bits of negative field
801 values from fit check.
802
803 Fri Aug 25 11:31:29 1995 Michael Meissner <meissner@tiktok.cygnus.com>
804
805 * configure.in (powerpc*-*-eabisim*): Only link in the simulator
806 if the target is powerpc{,le}-*-eabisim*, since the simulator
807 needs GCC to build.
808 * config/powerpc/ppc{,le}-sim.mt: Cloned from ppc{,le}-eabi.mt.
809 * config/powerpc/ppc{,le}-eabi.mt: Remove simulator support.
810 * config/powerpc/tm-ppc{,le}-sim.mt: Include tm-ppc{,le}-sim.h.
811
812 Wed Aug 23 16:55:35 1995 Michael Meissner <meissner@tiktok.cygnus.com>
813
814 * config/powerpc/ppc{,le}-eabi.mt (SIM_OBJS, SIM): Link in the
815 PowerPC simulator.
816
817 Tue Aug 22 02:00:47 1995 Jeff Law (law@snake.cs.utah.edu)
818
819 * tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values.
820
821 * tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
822 calling conventions too. Use the TYPE of the return value, not
823 its length to determine if it should also be copied into the
824 floating point registers.
825
826 * tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete. Causes more
827 problems than it fixes.
828 * hppa-tdep.c (skip_prologue): If we exit the main loop without
829 finding all the register saves, retry again without looking for
830 the registers we could not find the first time.
831
832 Mon Aug 21 23:39:56 1995 Jeff Law (law@snake.cs.utah.edu)
833
834 * hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
835 calls "main" directly.
836 (skip_prologue): Always assume arguments were saved into the stack
837 since GCC will do so without setting the magic Args_Saved bit in
838 the unwind descriptor.
839
840 Mon Aug 21 11:49:17 1995 Kung Hsu <kung@mexican.cygnus.com>
841
842 * remote-udi.c (udi_wait): Mask off high bits of stop reason.
843 * remote-udi.c (fetch_register): For unfetchable regs, pretend it's
844 done. Fix a bug.
845
846 Mon Aug 21 00:45:17 1995 Jeff Law (law@snake.cs.utah.edu)
847
848 * Makefile.in (install): Remove "brokensed" hack, unnecessary now
849 that we're using autoconf.
850 (uninstall): Likewise.
851
852 Sat Aug 19 17:20:22 1995 Michael Tiemann <tiemann@axon.cygnus.com>
853
854 * gdbtk.tcl: ENABLE comes back as "1" or "0", not "enable" or
855 "disable".
856 Also, wire up the breakpoint window so that it can be demo'd.
857
858 Sat Aug 19 01:19:34 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
859
860 * gdbtypes.c (recursive_dump_type): Add dont_print_type_obstack
861 to inhibit infinite recursion when printing aggregate types.
862
863 Fri Aug 18 17:48:55 1995 steve chamberlain <sac@slash.cygnus.com>
864
865 * dcache.c (dcache_write_line): Write dirty lines right.
866
867 Fri Aug 18 06:26:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
868
869 * sparc-tdep.c (isbranch): Fix typo which caused wrong
870 target addresses for annulled branches.
871
872 Wed Aug 16 21:54:39 1995 Jeff Law (law@snake.cs.utah.edu)
873
874 * config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define.
875
876 Tue Aug 15 07:51:21 1995 steve chamberlain <sac@slash.cygnus.com>
877
878 * remote.c (remote_write_bytes): Chop up large transfers.
879
880 Mon Aug 14 17:56:36 1995 Stan Shebs <shebs@andros.cygnus.com>
881
882 * gcc.patch: Remove, relevant only to long-ago versions of GCC.
883
884 Mon Aug 14 13:43:01 1995 Kung Hsu <kung@mexican.cygnus.com>
885
886 * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.
887 * blockframe.c (inside_main_func): If main func addr range not set,
888 try to set it now.
889
890 Sat Aug 12 15:34:54 1995 Jeffrey A. Law <law@rtl.cygnus.com>
891
892 * config/powerpc/xm-aix.h (FIVE_ARG_PTRACE): Define.
893 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
894
895 * configure.in: Recognize aix4 specially as some aspects
896 of aix4 need different handling than aix3.
897 * configure: Updated.
898 * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: New files
899 specific to aix4 support on the power pc.
900 * config/powerpc/tm-ppc-aix.h (DONT_RELOCATE_SYMFILE_OBJFILE): Do
901 not defined. The aix4 specific target files will do that.
902 * config/rs6000/{aix4,mh,aix4,mt,tm-rs6000-aix4.h}: New files
903 specific to aix4 support on the rs6000.
904
905 * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Don't
906 do the conversion if the pointer is not a magic aix function
907 pointer.
908 * rs6000-tdep.c: Include objfiles.h and symtab.h.
909 (is_magic_function_pointer): New function.
910
911 * rs6000-tdep.c (skip_prologue): Refine check for frameless
912 functions. Handle b .+4 emitted by aix4 compilers. Only
913 allow one load of a minimal toc pointer. Handle aix4 compiler's
914 code for alloca.
915
916 * rs6000-tdep.c (find_toc_address): Report an error if no toc was
917 found rather than possibly core dumping.
918
919 * partial-stab.h: Handle extra field generated by the aix4 compiler
920 for enumerations.
921 * stabsread.c (read_enum_type): Likewise.
922
923 Sat Aug 12 03:18:04 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
924
925 * rs6000-tdep.c (extract_return_value): Fix returning of values
926 whose length is less than the register size for big endian targets.
927
928 Fri Aug 11 13:04:32 1995 Kung Hsu <kung@mexican.cygnus.com>
929
930 * symtab.c (list_symbols): if break command set breakpoint on
931 matched symbol.
932
933 Wed Aug 9 18:59:05 1995 Fred Fish <fnf@cygnus.com>
934
935 * defs.h (strchr, strrchr, strstr, strtok, strerror): Enclose in
936 #ifndefs to protect against previous definitions as macros.
937
938 Wed Aug 9 14:51:36 1995 Kung Hsu <kung@mexican.cygnus.com>
939
940 * xcoffread.c (xcoff_symfile_offset): Revert an unwanted change
941 that got in accidentally with Aug 1 change.
942
943 Sat Aug 5 09:07:28 1995 steve chamberlain <sac@slash.cygnus.com>
944
945 * remote-hms.c (hms_cmds): Get reg term right.
946 * monitor.c (monitor_fetch_register): If we see
947 a non-hex digit, just stop reading.
948 * remote.c (remote_wait): Change way $O is handled.
949
950 Wed Aug 9 11:42:36 1995 Jeffrey A. Law <law@rtl.cygnus.com>
951
952 * configure.in (powerpc-*-aix*): Recognize as a new gdb host
953 and target.
954 (powerpc-*-eabi*): Don't set configdirs.
955 (powerpcle-*-eabi*): Likewise.
956 * configure: Updated.
957 * rs6000-nat.c (vmap_ldinfo): Don't relocate data addresses
958 for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE is
959 defined.
960 * config/powerpc/{aix.mh,aix.mh}: Host and target makefile fragments
961 for powerpc running aix4.
962 * config/powerpc/{nm-aix.h, tm-ppc-aix.h, xm-aix.h}: Native, target
963 and host include files for powerpc running aix4.
964
965 Wed Aug 9 08:11:45 1995 Stan Shebs <shebs@cygnus.com>
966
967 * top.c (target_output_hook): Really make it match defs.h (char *
968 is not the same as unsigned char *).
969
970 Tue Aug 8 15:13:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
971
972 * Makefile.in (CXX_FOR_TARGET): Don't use ${rootme}/../gcc/xgcc
973 unless it is present.
974
975 Tue Aug 8 10:50:15 1995 Jeffrey A. Law <law@rtl.cygnus.com>
976
977 * top.c (target_output_hook): Make declaration match the one
978 in defs.h.
979
980 * symfile.c (add_psymbol_to_list): Initialize SYMBOL_SECTION.
981 (add_psymbol_addr_to_list): Likewise.
982 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Likewise.
983
984 Mon Aug 7 15:34:29 1995 steve chamberlain <sac@slash.cygnus.com>
985
986 * top.c (target_output_hook): New definition.
987 * stack.c (gdb_string.h): Include after defs.h
988 * defs.h (target_output_hook): New declaration.
989 * source.c (mod_path): Fix Win32 \ handling.
990
991 Sun Aug 6 22:14:25 1995 Jeff Law (law@snake.cs.utah.edu)
992
993 * hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
994 out of a long branch stub.
995
996 Fri Aug 4 13:37:31 1995 Jeffrey A. Law <law@rtl.cygnus.com>
997
998 * xcoffread.c (process_linenos): Fix typo in last change.
999
1000 Thu Aug 3 22:01:26 1995 Fred Fish <fnf@rtl.cygnus.com>
1001
1002 * ch-exp.y (write_lower_upper_value): Add prototype so bison
1003 generated parser will insert prototype before first func usage.
1004 Bison and byacc order the output sections differently. Also
1005 make function static.
1006
1007 Thu Aug 3 10:45:37 1995 Fred Fish <fnf@cygnus.com>
1008
1009 * Update all FSF addresses except those in COPYING* files.
1010
1011 Thu Aug 3 01:38:45 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1012
1013 * config/alpha/tm-alpha.h (EXTRA_FRAME_INFO): Add pc_reg field.
1014 (SKIP_TRAMPOLINE_CODE): Define.
1015 * alpha-tdep.c (alpha_frame_saved_pc): Use pc_reg field from
1016 frame to find the saved pc register.
1017 (alpha_saved_pc_after_call): Skip over shared library trampoline
1018 before trying to find the saved pc register.
1019 (find_proc_desc): Copy PROC_PC_REG from found proc_desc
1020 to heuristic proc_desc.
1021 (init_extra_frame_info): Initialize pc_reg field in frame.
1022
1023 Wed Aug 2 18:00:36 1995 Stan Shebs <shebs@andros.cygnus.com>
1024
1025 * configure.in (m68*-est-*): Use monitor target config.
1026 * configure: Update.
1027 * config/m68k/est.mt, config/m68k/tm-est.h: Delete.
1028 * config/m68k/monitor.mt, config/m68k/tm-monitor.h: Fix comments.
1029
1030 Tue Aug 1 22:52:53 1995 Fred Fish <fnf@cygnus.com>
1031
1032 * Makefile.in (VERSION): Bump to 4.14.2
1033
1034 Tue Aug 1 16:04:36 1995 Kung Hsu <kung@mexican.cygnus.com>
1035
1036 * xcoffread.c (process_linenos): The value in include file symbol
1037 should point to line number table. Currently this value is not
1038 set correctly by AIX ld. A fix to get around this bug.
1039
1040 Tue Aug 1 11:44:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1041
1042 * configure.in: Check for working mmap, ansi headers, string.h,
1043 strings.h, and memory.h.
1044 * configure: Regenerated.
1045
1046 * gdb_stat.h: New file, "portable" <sys/stat.h>.
1047 * gdb_string.h: New file, "portable" <string.h>.
1048
1049 * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c,
1050 convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c,
1051 gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c,
1052 i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c,
1053 mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c,
1054 rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c,
1055 symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c,
1056 ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h"
1057 instead of <sys/stat.h>.
1058
1059 * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c,
1060 ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c,
1061 core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c,
1062 dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c,
1063 exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c,
1064 fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c,
1065 inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c,
1066 m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c,
1067 monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c,
1068 printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c,
1069 remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c,
1070 remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c,
1071 remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c,
1072 remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c,
1073 remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c,
1074 solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c,
1075 symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c,
1076 valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include
1077 "gdb_string.h" instead of <string.h>.
1078 start-sanitize-gdbtk
1079 * gdbtk.c: Likewise.
1080 end-sanitize-gdbtk
1081
1082 * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h,
1083 sparc/xm-sun4os4.h (HAVE_MMAP): Removed.
1084
1085 * config/xm-lynx.h, config/i386/xm-ptx.h,
1086 config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h,
1087 config/mips/xm-irix3.h, config/mips/xm-mips.h,
1088 config/mips/xm-news-mips.h, config/mips/xm-riscos.h,
1089 config/pa/hppah.h, config/rs6000/xm-rs6000.h,
1090 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
1091 config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h,
1092 config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed.
1093 * config/mips/xm-irix3.h, config/mips/xm-mips.h,
1094 config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
1095
1096 Tue Aug 1 02:08:30 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1097
1098 * mips-tdep.c (mips_extract_return_value): Fix returning of
1099 values whose length is less than the register size for big endian
1100 targets.
1101 * alpha-tdep.c (alpha_extract_return_value,
1102 alpha_store_return_value): Use alpha_convert_register_to_*
1103 to handle functions returning "float" correctly.
1104
1105 Mon Jul 31 19:12:48 1995 Stan Shebs <shebs@andros.cygnus.com>
1106
1107 * h8500-tdep.c: General linting and cleanup.
1108 (opcodes/h8500-opc.h): Don't include.
1109 (code_size, data_size): Make static.
1110 (frame_locals_address, frame_args_address): Remove.
1111 (h8300_pop_frame): Rename to h8500_pop_frame.
1112 (big_command, medium_command, compact_command, small_command):
1113 Define as regular functions rather than with macro trickery.
1114 (tm_print_insn): Set to correct disassembler function.
1115 * config/h8500/tm-h8500.h: Minor cleanup, add prototypes.
1116 (ABOUT_TO_RETURN): #if 0 out.
1117 (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Use usual define.
1118 (GDB_TARGET_IS_H8500): Remove duplicate definition.
1119 (regoff): Remove, never used.
1120 * config/h8500/h8500.mt (TDEPFILES): Add monitor.o.
1121
1122 Mon Jul 31 14:32:30 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1123
1124 * configure.in: Check for unistd.h.
1125 * configure: Regenerated.
1126
1127 * command.c, cp-valprint.c, fork-child.c, i386-tdep.c,
1128 i386b-nat.c, inflow.c, main.c, maint.c, objfiles.c, solib.c,
1129 source.c, stack.c, symfile.c, top.c, utils.c: Include strings.h
1130 and/or unistd.h to bring prototypes into scope.
1131
1132 Sun Jul 30 01:40:11 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1133
1134 * rs6000-tdep.c (frame_saved_pc): Check for signal handler caller
1135 before trying to determine the start of the function.
1136 (skip_prologue): Skip subroutine call which might save the
1137 floating point registers only if it is within the first three
1138 instructions.
1139 Reinstate setting of alloca_reg if setup of a gcc frame pointer
1140 is found.
1141 (frame_get_cache_fsr): Use new fields in rs6000_framedata.
1142
1143 Sat Jul 29 14:43:35 1995 Stan Shebs <shebs@andros.cygnus.com>
1144
1145 * sparclite: Removed subdirectory. aload and eload are now in
1146 utils/sparclite, low-level library is in libgloss.
1147 * configure.in (sparclite*): Don't configure sparclite subdir.
1148 * configure: Update.
1149 * Makefile.in (TARDIRS): Remove, no longer used.
1150
1151 Sat Jul 29 01:45:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1152
1153 * procfs.c (unconditionally_kill_inferior): Clear current signal
1154 if PROCFS_NEED_CLEAR_CURSIG_FOR_KILL is defined.
1155 * config/alpha/nm-osf3.h (PROCFS_NEED_CLEAR_CURSIG_FOR_KILL): Define.
1156
1157 * alpha-tdep.c: Move sigtramp handling of saved registers from
1158 read_next_frame_reg to alpha_find_saved_regs, handle saved
1159 floating point registers.
1160 * mips-tdep.c: Move sigtramp handling of saved registers from
1161 read_next_frame_reg to mips_find_saved_regs, handle saved
1162 floating point registers.
1163 * config/mips/tm-irix3.h, config/mips/tm-irix5.h,
1164 config/mips/tm-mipsv4.h (SIGFRAME_FPREGSAVE_OFF): Define.
1165
1166 * sparc-tdep.c (sparc_pc_adjust): Fix check for `unimp'
1167 instruction to handle functions returning structures with
1168 large sizes properly.
1169
1170 Fri Jul 28 11:50:17 1995 steve chamberlain <sac@slash.cygnus.com>
1171
1172 * configure, configure.in (z8k-*-sim): deleted.
1173
1174 Thu Jul 27 12:49:28 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1175
1176 * lynx-nat.c (child_wait): Handle threads exiting.
1177
1178 Thu Jul 27 07:47:50 1995 Michael Meissner <meissner@cygnus.com>
1179
1180 * rs6000-tdep.c (skip_prologue): Don't assume the update stack
1181 instruction is the last in the prologue, since xlc stores the lr
1182 after the stack update. Make sure offset is correct sign for
1183 large frames.
1184 (frame_saved_pc): Move test for signal before frameless.
1185
1186 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Define.
1187 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Redefine.
1188
1189 Thu Jul 27 01:22:08 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1190
1191 * hppa-tdep.c (hppa_fix_call_dummy): Rewrite code for calling
1192 into shared libraries.
1193
1194 Wed Jul 26 23:33:34 1995 Michael Meissner <meissner@cygnus.com>
1195
1196 * config/rs6000/tm-rs6000.h (rs6000_framedata): Add offsets the
1197 gprs, fprs, lr, and cr is stored at.
1198 (FRAME_FIND_SAVED_REGS): Use new fields in rs6000_framedata.
1199 (function_frame_info): Delete declaration.
1200 (SKIP_PROLOGUE): Skip_prologue is now passed a rs6000_framedata
1201 structure to fill in.
1202 (FRAMELESS_FUNCTION_INVOCATION): Function now longer takes a
1203 second argument.
1204 (FRAME_SAVED_PC): Call frame_saved_pc.
1205
1206 * rs6000-tdep.c (skip_prologue): Recognize V.4 prologues as well
1207 as AIX style. Fill in rs6000_framedata structure. Remember where
1208 the gprs, fprs, cr, and lr are saved.
1209 (pop_frame): Use skip_prologue, not function_frame_info, and use
1210 new rs6000_framedata fields.
1211 (function_frame_info): Function deleted.
1212 (frameless_function_invocation): Separate frame_saved_pc support
1213 to new function. Recognize V.4 frames.
1214 (frame_saved_pc): New function.
1215 (frame_get_cache_fsr): Use skip_prologue, not function_frame_info.
1216 (frame_initial_stack_address): Ditto.
1217
1218 Wed Jul 26 01:00:37 1995 Jeff Law (law@snake.cs.utah.edu)
1219
1220 * remote.c: Add documentation for extended protocol operations
1221 and for thread_alive change from a couple weeks ago.
1222 (extended_remote_ops): Declare and define a new target vector
1223 for the extended remote protocol.
1224 (extended_remote_restart): New function to restart the remote
1225 server & process.
1226 (remote_open): Just a stub routine.
1227 (extended_remote_open): New function to start a remote session
1228 using the extended gdb remote protocol.
1229 (remote_open_1): New function containing code common to both
1230 remote_open and extended_remote_open.
1231 (remote_mourn, extended_remote_mourn, remote_mourn_1): Similarly.
1232 (extended_remote_create_inferior): New function for the extended
1233 remote target.
1234 (initialize_remote): Add the extended_remote_ops target vector.
1235 * gdbserver/server.c (main, case '!'): Set extended_protocol.
1236 (main, case 'k'): If the extended protocol is in use, kill the
1237 inferior then start a new one.
1238 (main, case 'R'): New command to restart the remote server and
1239 inferior process. Only supported when using the extended
1240 protocol.
1241 (main, server loop): If the inferior terminates while using the
1242 extended protocol then start a new one. If getpkt fails when
1243 using the extended protocol then exit.
1244
1245 Tue Jul 25 11:43:44 1995 Stan Shebs <shebs@andros.cygnus.com>
1246
1247 * mdebugread.c (psymtab_to_symtab_1): Relocate encoded stab
1248 line numbers using the psymtab's section offsets.
1249
1250 Tue Jul 25 10:43:27 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1251
1252 * config/rs6000/tm-rs6000.h (rs6000_framedata): Rename from
1253 aix_framedata. Change all uses.
1254 * rs6000-tdep.c: Change all aix_framedata -> rs6000_framedata.
1255
1256 Sat Jul 22 23:44:18 1995 Jeff Law (law@snake.cs.utah.edu)
1257
1258 * defs.h (ATTR_FORMAT): Disable if ANSI_PROTOTYPES is not defined.
1259
1260 Fri Jul 21 16:50:28 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1261
1262 * lynx-nat.c (child_thread_alive): New function. Somehow I
1263 forgot to check this in with all the other thread_alive changes.
1264
1265 Thu Jul 20 22:22:34 1995 Jeff Law (law@snake.cs.utah.edu)
1266
1267 * somread.c (som_symtab_read): Add unsatisfied common symbols to
1268 the minimal symbol table. All common symbols are "unsatisfied"
1269 when -E is passed to the linker.
1270
1271 Thu Jul 20 15:04:57 1995 Fred Fish <fnf@cygnus.com>
1272
1273 * top.c (show_endian): Cast first arg of printf_unfiltered to
1274 correct type of "char *".
1275
1276 Thu Jul 20 14:18:51 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1277
1278 * lynx-nat.c (child_wait): A thread_id of zero from wait apparently
1279 means the process is single threaded, so there's no need to add
1280 it to the thread list. Handle case where multi-threaded process
1281 reverts back to a single-threaded process.
1282
1283 * gdbserver/low-hppabsd.c: Remove error declaration.
1284 * gdbserver/low-sparc.c: Likewise.
1285 * gdbserver/low-sun3.c: Likewise.
1286 * gdbserver/server.h: Remove error and fatal declaration.
1287 * gdbserver/utils.c (error): Update to be compatable with recent
1288 changes in defs.h.
1289 (fatal): Likewise.
1290
1291 Wed Jul 19 22:42:43 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1292
1293 * config/m68k/tm-m68kv4.h (DWARF_REG_TO_REGNUM): Define to
1294 correctly map floating point registers numbers.
1295
1296 * dwarfread.c (locval, new_symbol): Handle variables that are
1297 optimized out.
1298
1299 * mdebugread.c: Replace all uses of builtin_type_* with
1300 mdebug_type_*. Define and initialize mdebug_type_*.
1301
1302 * serial.h (serial_close): Add additional argument `really_close'.
1303 (SERIAL_CLOSE): Update serial_close call accordingly.
1304 (SERIAL_UN_FDOPEN): Use serial_close to handle refcnt properly.
1305 * serial.c (serial_close): Handle `really_close'.
1306 * serial.h (scb_base): Moved to serial.c, made static.
1307
1308 * valops.c (value_addr): Don't coerce arrays.
1309 (typecmp): Coerce arrays instead of calling value_addr if necessary.
1310
1311 Wed Jul 19 18:19:28 1995 Stan Shebs <shebs@andros.cygnus.com>
1312
1313 From Richard Earnshaw (rearnsha@armltd.co.uk):
1314 * infrun.c (wait_for_inferior): Set the convenience variable
1315 $_exitcode to the termination code of the inferior.
1316 * top.c (quit_command): Accept optional expression to use
1317 as parameter to exit().
1318
1319 Wed Jul 19 13:15:32 1995 Kung Hsu <kung@mexican.cygnus.com>
1320
1321 * remote.c (remote_wait): When getting registers, check endianess and
1322 do conversion if necessary.
1323
1324 Tue Jul 18 00:41:31 1995 Jeff Law (law@snake.cs.utah.edu)
1325
1326 * gdbserver/low-hppabsd.c: New file.
1327 * gdbserver/Makefile.in (SFILES): Add low-hppabsd.c.
1328 * config/pa/hppabsd.mh (XDEPFILES): Add ser-tcp.o.
1329 (GDBSERVER_DEPFILES): Add low-hppabsd.o.
1330 * config/pa/hppaosf.mh: Likewise.
1331
1332 Mon Jul 17 21:35:18 1995 Fred Fish <fnf@cygnus.com>
1333
1334 * dache.c (struct dcache_block): Change data member from unsigned
1335 char to char, since everything passed in and out of dcache is char
1336 or casted to appropriate type anyway.
1337 (dcache_alloc): Move assignment of db out of test and combine
1338 separate tests into if-else.
1339 (dcache_peek_byte): Change ptr from unsigned char* to char*.
1340 (dcache_peek_byte): Remove now unnecessary cast in read_memory call.
1341 (dcache_peek): Change cast of incoming data arg.
1342 (dcache_poke): Change cast of addr of incoming data arg.
1343 (dcache_info): Mask data passed to printf_filtered to lsbyte only.
1344 (dcache_info): Change printf_filtered arg from "% 2x" to " %2x".
1345 * target.c (debug_to_thread_alive): Change return type to int and
1346 return zero, for type compatibility with other *_thread_alive
1347 funcs.
1348 (cleanup_target): Change cast of ignore function to match type of the
1349 to_thread_alive member.
1350 * defs.h (error_hook): Add ATTR_NORETURN.
1351 * defs.h (NORETURN, ATTR_NORETURN): Switch from volatile to
1352 __attribute__ method with gcc 2.7, to avoid gcc 2.6.3 bug.
1353 * remote.c (remote_wait): Cast first arg to strtol, strchr, and
1354 strncmp to "const char *" from "unsigned char *".
1355 (remote_wait): Cast arg to putpkt and strcpy from "unsigned char *"
1356 to "char *".
1357 (remote_wait): Change printf format for long arg from "%d" to "%ld".
1358 (getpkt): Remove unused variable "bp".
1359 (remote_fetch_word, remote_store_word): Ifdef out apparently unused
1360 functions.
1361 * breakpoint.c (watchpoint_check): Removed unused variables
1362 "saved_level" and "saved_frame".
1363 * valops.c (value_arg_coerce): Add other enum TYPE_CODE_* and
1364 default cases to switch for completeness.
1365 * infrun.c (wait_for_inferior): Enclose "have_waited" label
1366 in #ifdef that matches the one in which it is referenced.
1367 * ser-unix.c (hardwire_noflush_set_tty_state): Enclose otherwise
1368 unused variable "state" in #ifdef that matches one in which it is
1369 referenced.
1370 * eval.c (evaluate_subexp_standard): Remove unused variable "var".
1371 * eval.c (evaluate_subexp_standard): Remove unused variable
1372 "tmp_symbol".
1373 * valarith.c (value_subscript): Remove unused variable
1374 "lowerbound", which is redeclared in a nested scope prior to use.
1375 * printcmd.c (print_frame_nameless_args): Use "%ld" to print long
1376 arg, not "%d".
1377 * {mem-break.c, remote-pa.c, remote.c, saber.suppress}:
1378 Remove unused static var "check_break_insn_size".
1379 * buildsym.c (finish_block): Add other enum LOC_* and default
1380 cases to switch for completeness.
1381 ch-lang.c (type_lower_upper): Removed unused label "retry".
1382 Add other enum TYPE_* and default cases to switch for completeness.
1383 * f-typeprint.c (f_type_print_args): Ifdef out unused function
1384 that may be used someday when Fortran support is complete.
1385 * ch-valprint.c (chill_print_type_scalar): Add other enum
1386 TYPE_* and default cases to switch for completeness.
1387 (chill_val_print): Remove unused local var "high_bound" that
1388 is redeclared in a nested scope prior to use.
1389 (chill_var_print): Use "%ld" to print long arg, not "%d".
1390 * regex.c (re_compile_fastmap, re_match_2): Add remaining enum
1391 types and default to switches for completeness.
1392 * minsyms.c (lookup_minimal_symbol_text): Delete unused variable
1393 "trampoline_symbol".
1394 (prim_record_minimal_symbol_and_info): Return NULL rather than
1395 trash.
1396 * elfread.c (elf_symtab_read): Don't dereference NULL returns from
1397 record_minimal_symbol_and_info.
1398 * f-lang.c (saved_function_list_end): Ifdef out unused variable
1399 that may be used someday.
1400 * f-valprint.c (f_val_print): Remove unused local "straddr".
1401
1402 Mon Jul 17 13:08:00 1995 Ian Lance Taylor <ian@cygnus.com>
1403
1404 * stabsread.h (struct stab_section_list): Define.
1405 (coffstab_build_psymtabs): Remove staboff and stabsize parameters.
1406 Add textaddr, textsize, and stabs parameters.
1407 * gdb-stabs.h (struct dbx_symfile_info): Remove text_sect field.
1408 Add text_addr and text_size fields.
1409 (DBX_TEXT_SECT): Don't define.
1410 (DBX_TEXT_ADDR, DBX_TEXT_SIZE): Define.
1411 * coffread.c: Include <ctype.h>.
1412 (struct coff_symfile_info): Remove stabsect and stabindexsect
1413 fields. Add textaddr, textsize, and stabsects fields.
1414 (coff_locate_sections): Record the address of the .text section,
1415 and total the sizes of all sections with names beginning with
1416 ".text". Don't bother to record a .stab.index section (COFF
1417 doesn't use them). Make a linked list of all sections with names
1418 beginning with ".stab".
1419 (coff_symfile_read): Adjust call to coffstab_build_psymtabs for
1420 new parameters.
1421 * dbxread.c (dbx_symfile_read): Use DBX_TEXT_ADDR and
1422 DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
1423 (dbx_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
1424 DBX_TEXT_SECT.
1425 (elfstab_build_psymtabs): Likewise.
1426 (stabsect_build_psymtabs): Likewise.
1427 (symbuf_sections, symbuf_left, symbuf_read): New static variables.
1428 (fill_symbuf): If symbuf_sections is not NULL, read symbols from
1429 multiple sections.
1430 (coffstab_build_psymtabs): Remove staboffset and stabsize
1431 parameters. Add textaddr, textsize, and stabsects parameters.
1432 Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not DBX_TEXT_SECT. Handle
1433 multiple stabs sections.
1434 * os9kread.c (os9k_symfile_read): Use DBX_TEXT_ADDR and
1435 DBX_TEXT_SIZE, rather than getting both from DBX_TEXT_SECT.
1436 (os9k_symfile_init): Set DBX_TEXT_ADDR and DBX_TEXT_SIZE, not
1437 DBX_TEXT_SECT.
1438
1439 * remote-vx.c (vx_ops, vx_run_ops): Initialize new to_thread_alive
1440 field.
1441
1442 Sat Jul 15 01:02:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1443
1444 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: New files
1445 for OSF/1-3.x procfs support.
1446 * configure.in (alpha-dec-osf): Use them when configuring
1447 for OSF/1-3.x.
1448 * configure: Updated.
1449 * target.c: Include <string.h>.
1450
1451 Fri Jul 14 16:16:56 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1452
1453 * Makefile.in, configure.in: Use one variable, frags, to hold
1454 pathnames of makefile fragments.
1455 * configure: regenerated.
1456
1457 Fri Jul 14 09:49:47 1995 Jeff Law (law@snake.cs.utah.edu)
1458
1459 * procfs.c (procfs_ops): Fix typo in last change.
1460
1461 Thu Jul 13 13:42:38 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1462
1463 * inftarg.c (child_thread_alive): New function to see if a
1464 particular thread is still running.
1465 (child_ops): Add child_thread_alive entry.
1466 * remote.c (remote_thread_alive): New function to see if a
1467 particular thread is still alive.
1468 (remote_ops): Add remote_thread_alive.
1469 * target.c (dummy_target): Add dummy entry for thread_alive.
1470 (cleanup_target): de_fault thread_alive too.
1471 (update_current_target): INHERIT thread_alive too.
1472 (debug_to_thread_alive): New function.
1473 (setup_target_debug): Add debug_to_thread_alive.
1474 * target.h (struct target_ops): Add to_thread_alive.
1475 (target_thread_alive): Define.
1476 * thread.c (info_threads_command): Don't call kill; use
1477 target_thread_alive instead.
1478 * config/nm-lynx.h (CHILD_THREAD_ALIVE): Define.
1479 * gdbserver/low-lynx.c (mythread_alive): New function.
1480 (mywait): Don't restart any threads after a new thread notification,
1481 let the generic code handle it.
1482 * gdbserver/low-sparc.c (mythread_alive): Dummy version.
1483 * gdbserver/low-sun3.c (mythread_alive): Likewise.
1484 * gdbserver/server.c (main): Handle thread_alive requests.
1485 * gdbserver/server.h (mythread_alive): Declare.
1486 * corelow.c (core_ops): Add dummy entry for thread_alive.
1487 * exec.c (exec_ops): Likewise.
1488 * m3-nat.c (m3_ops): Likewise.
1489 * monitor.c (monitor_ops): Likewise.
1490 * procfs.c (procfs_ops): Likewise.
1491 * remote-arc.c (arc_ops): Likewise.
1492 * remote-array.c (array_ops): Likewise.
1493 * remote-e7000.c (e7000_ops): Likewise.
1494 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
1495 * remote-mips.c (mips_ops): Likewise.
1496 * remote-pa.c (remote_hppro_ops): Likewise.
1497 * remote-sim.c (gdbsim_ops): Likewise.
1498 * sparcl-tdep.c (sparclite_ops): Likewise.
1499
1500 Tue Jul 11 11:15:55 1995 Kung Hsu <kung@rtl.cygnus.com>
1501
1502 * solib.c: Add _DYNAMIC__MGC base symbol for Mentor Graphics Inc.
1503 * solib.c (match_main): New function for checking name of main.
1504 * solib.c (solib_add): Not to add if solib match main.
1505
1506 Fri Jul 7 14:41:56 1995 Kung Hsu <kung@rtl.cygnus.com>
1507
1508 * elfread.c (elf_symtab_read): Fix a bug ignoring compiler
1509 generated internal labels ($LM...).
1510
1511 Wed Jul 5 11:38:36 1995 Kung Hsu <kung@rtl.cygnus.com>
1512
1513 * defs.h: if __GO32__ or WIN32 the directory separating symbol should
1514 be '\' not '/'.
1515
1516 * remote-nindy (nindy_wait): Use infinite timeout reading after
1517 esacpe character.
1518
1519 Tue Jul 4 10:30:22 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1520
1521 * infrun.c (wait_for_inferior): When switching from one thread to
1522 another, save infrun's state for the old thread and load infrun's
1523 previous state for the new thread.
1524 * thread.c (struct thread_info): Add new fields for thread specific
1525 state saved/restored in infrun.c.
1526 (add_thread): Initialize new fields.
1527 (load_infrun_state): New function.
1528 (save_infrun_state): New function.
1529 * thread.h (load_infrun_state): Provide external decl.
1530 (save_infrun_state): Likewise.
1531
1532 * infrun.c (wait_for_inferior): When we hit a breakpoint for the
1533 wrong thread, make sure to write the fixed PC value into the thread
1534 that stopped. Restart all threads after single stepping over a
1535 breakpoint for a different thread.
1536 * breakpoint.c (set_momentary_breakpoint): Make momentary
1537 breakpoints thread specific in a multi-threaded program.
1538 * lynx-nat.c (child_resume): Add some comments. Correctly
1539 choose between the single and multi-threaded step and continue
1540 ptrace calls.
1541
1542 Fri Jun 30 16:15:36 1995 Stan Shebs <shebs@andros.cygnus.com>
1543
1544 * config/h8300/h8300.mt: Renamed from h8300hms.mt.
1545 * config/h8500/h8500.mt: Renamed from h8500hms.mt.
1546 * config/z8k/z8k.mt: Renamed from z8ksim.mt.
1547 * configure, configure.in: Update to reflect renamings.
1548
1549 * remote-sim.c (sim): New command, passes commands to simulator.
1550 (simulator_command): New function.
1551 (gdbsim_ops): Clean up.
1552 * remote-sim.h (sim_do_command): Declare.
1553 * sh-tdep.c (memory_size): Remove command.
1554
1555 * Makefile.in (SIM, SIM_OBS): New variables.
1556 (CLIBS, CDEPS): Add value of SIM.
1557 (DEPFILES): Add value of SIM_OBS
1558
1559 * config/arm/arm.mt, config/h8300/h8300.mt, config/h8500/h8500.mt,
1560 config/sh/sh.mt, config/sparc/sp64sim.mt, config/w65/w65.mt,
1561 config/z8k/z8k.mt: Remove simulator files from TDEPFILES,
1562 define in SIM_OBS and SIM.
1563 config/sparc/sp64sim.mt (SIMFILES): Remove.
1564
1565 * remote-z8k.c: Remove, was superseded by remote-sim.c
1566 * Makefile.in, mpw-make.in: Remove references to remote-z8k.c.
1567
1568 Sun Jun 25 15:30:43 1995 Stan Shebs <shebs@cygnus.com>
1569
1570 * remote.c (remote_read_bytes, remote_write_bytes): Second arg
1571 should be char *, not unsigned char *.
1572 * dcache.h (memxferfunc): Ditto.
1573 * monitor.c (monitor_write_memory, monitor_read_memory_single):
1574 Ditto.
1575 (monitor_make_srec): Let compiler figure size of hextab.
1576
1577 Sat Jun 24 19:27:37 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1578
1579 * lynx-nat.c (child_wait): Don't restart new threads and loop
1580 to the top of child_wait; let the machine independent code in
1581 wait_for_inferior deal with new thread notifications.
1582
1583 Fri Jun 23 11:51:58 1995 Kung Hsu <kung@mexican.cygnus.com>
1584
1585 * remote-nindy (nindy_load): Put in target specific load, it's
1586 20 times faster.
1587
1588 Thu Jun 22 20:21:59 1995 Stan Shebs <shebs@andros.cygnus.com>
1589
1590 * utils.c (error): Move local `args' outside conditional,
1591 move local `string1' inside, declare function as void if
1592 non-ANSI compiler, dereference error_hook when calling.
1593
1594 * mac-xdep.c (stdarg.h): Don't include.
1595
1596 Thu Jun 22 13:12:33 1995 Kung Hsu <kung@mexican.cygnus.com>
1597
1598 * remote-nindy.c (nindy_wait): Change timeout in SERIAL_READCHAR.
1599
1600 Wed Jun 21 13:24:41 1995 Jeff Law (law@snake.cs.utah.edu)
1601
1602 * hppam3-nat.c: Change HP800_THREAD_STATE to TRACE_FLAVOR and
1603 HP800_THREAD_STATE_COUNT to TRACE_FLAVOR_SIZE.
1604
1605 Wed Jun 21 05:57:56 1995 Steve Chamberlain <sac@slash.cygnus.com>
1606
1607 * monitor.c: Turn on caching.
1608 (monitor_printf): If a ^C was sent, don't expect to see its
1609 echo.
1610 (monitor_open): Enable caching.
1611 (monitor_resume, monitor_load): Flush cache.
1612 (monitor_xfer_memory): Call cache routine.
1613 (monitor_dump_regs): New.
1614 (monitor_fetch_registers): If monitor_dump_regs available
1615 then use it.
1616 (monitor_load): Don't ref exec_bfd if it's NULL.
1617 (monitor_load_srec): Use new monitor_make_srec calling convention.
1618 (monitor_make_srec): Rewrite to cope with two, three and four byte
1619 addresses.
1620 * remote-hms.c (hms_cmds): Initialze end-of-command delim.
1621 * dcache.h, dcache.h: Rewritten.
1622 * remote.c: Reenable caching.
1623 (getpkt): Reduce MAX_TRIES to 3.
1624 (remote_xfer_memory): Use dcache_xfer_memory.
1625 * defs.h (error_hook): New.
1626 * top.c (error_hook): New definition.
1627 * utils.c (error): Use error_hook if initialized.
1628 * sparcl-tdep.c (HAVE_SOCKETS): Don't define if GO32 or WIN32. Use
1629 HAVE_SOCKETS in place of #ifndef GO32.
1630
1631 Tue Jun 20 22:17:44 1995 Jeff Law (law@snake.cs.utah.edu)
1632
1633 * config/pa/tm-hppa.h (PSW_*): Define processor status word masks.
1634 (INSTRUCTION_NULLIFIED): Allow specific targets to override.
1635 * config/pa/tm-hppao.h (INSTRUCTION_NULLIFIED): Define to work
1636 around losing mach kernel behavior.
1637
1638 Tue Jun 20 12:03:36 1995 Stan Shebs <shebs@andros.cygnus.com>
1639
1640 * monitor.c (monitor_wait): Don't use the watchdog timeout
1641 if its value is 0.
1642 * w89k-rom.c (w89k_open): Define to be static.
1643
1644 start-sanitize-gdbtk
1645 Tue Jun 20 10:19:40 1995 Stu Grossman (grossman@cygnus.com)
1646
1647 * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
1648
1649 * gdbtk.tcl (add_breakpoint_frame): Add more fields.
1650 * (create_file_win create_asm_win build_framework): Create null
1651 bindings for meta keys to keep window from dropping down to
1652 insertion point when meta is pressed by itself. New bindings:
1653 Up/Down - Scroll up/down one line at a time
1654 Next/Prior - Scroll up/down one page at a time
1655 Home/End - Warp to current pc/end of file
1656 * (build_framework): Turn on breakpoint menu.
1657 * (create_command_window): Implement tab completion. Add binding
1658 for ^C to stop target.
1659 end-sanitize-gdbtk
1660
1661 Sat Jun 17 10:17:16 1995 Jeff Law (law@snake.cs.utah.edu)
1662
1663 * somsolib.c (som_solib_add): Validate regexp argument.
1664 Don't assume the first entry on dld's library list is the main
1665 program. Don't load the same library more than once and don't
1666 consider the main program a shared library.
1667 (som_solib_sharedlibrary_command): New function
1668 (_initialize_som_solib): Add "sharedlibrary" command.
1669
1670 Thu Jun 15 14:54:58 1995 Stan Shebs <shebs@andros.cygnus.com>
1671
1672 * array-rom.c: Remove, no longer used.
1673
1674 * remote-hms.c (hms_open): Make static.
1675
1676 * mpw-config.in (MacSerial.h): Copy from version in {CIncludes},
1677 not {MPW}Interfaces:CIncludes.
1678 * ser-mac.c (mac_baud_rate_table): Fix value for 38400 baud.
1679
1680 Wed Jun 14 14:27:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
1681
1682 * ch-exp.y: Remove lots of unsupported productions and names.
1683 Add support for IF-expressions, ORIF, ANDIF, NUM, and ADDR.
1684
1685 Tue Jun 13 21:40:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1686
1687 * parser-defs.h (enum precedence): Added PREC_BUILTIN_FUNCTION.
1688 * expression.h (enum exp_opcode): Added UNOP_LOWER, UNOP_UPPER,
1689 UNUP_LENGTH.
1690 * expprint.c (dump_expression): Handle the new exp_opcodes.
1691 (print_subexp): Handle PREC_BUILTIN_FUNCTION.
1692 (print_simple_m2_func): Removed.
1693 (print_subexp): Remove support for Modula2 builtin functions.
1694 * m2-lang.c (m2_op_print_tab): Add support for builtin functions.
1695 * ch-exp.y: Parse LOWER, UPPER, and LENGTH builtins.
1696 (write_lower_upper_value): Convenience function for LOWER and UPPER.
1697 (upper_lower_argument, length_argument): Removed non-terminals.
1698 * ch-lang.c (chill_op_print_tab): Entries for UPPER, LOWER, LENGTH.
1699 (type_lower_upper): New function. Calculate LOWER/UPPER of type.
1700 (value_chill_length): New function. Calcalate LENGTH of ARRAY/STRING.
1701 (evaluate_subexp_chill): Handle UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
1702
1703 Mon Jun 12 12:48:13 1995 Stan Shebs <shebs@andros.cygnus.com>
1704
1705 Windows support bits from Steve Chamberlain <sac@slash.cygnus.com>.
1706 * defs.h: Don't declare strchr and friends if WIN32.
1707 (DIRNAME_SEPARATOR): Move here from source.c.
1708 (SLASH_P, SLASH_CHAR, SLASH_STRING, ROOTED_P): New macros,
1709 symbolic definitions for filename bits.
1710 * top.c (cd_command): Use these.
1711 * source.c (mod_path, openp): Ditto.
1712 * terminal.h: Disable termio/sgtty definitions if WIN32.
1713 * findvar.c (registers_changed): Call registers_changed_hook
1714 if it is defined.
1715
1716 Mon Jun 12 12:22:05 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1717
1718 * Makefile.in (distclean, realclean): Remove config.cache and
1719 config.log.
1720
1721 Mon Jun 12 00:21:59 1995 Jeff Law (law@snake.cs.utah.edu)
1722
1723 * somsolib.c: Include gdb-stabs.h.
1724 (som_solib_section_offsets): Use SECT_OFF_XXX rather than 0, 1,
1725 etc. Initialize offsets for RODATA & BSS too.
1726
1727 Sat Jun 10 17:59:11 1995 Jeff Law (law@snake.cs.utah.edu)
1728
1729 * hppa-tdep.c (frame_chain): Try to compensate for incomplete
1730 register information in core files when backtracing.
1731
1732 Fri Jun 9 14:51:38 1995 Stu Grossman (grossman@cygnus.com)
1733
1734 * remote-nrom.c: Remove everything but download code. More
1735 cleanups.
1736
1737 Thu Jun 8 15:06:00 1995 Stu Grossman (grossman@cygnus.com)
1738
1739 * defs.h maint.c monitor.c remote-mips.c remote.c: Add support
1740 for `watchdog' variable. This allows the user to put an upper
1741 limit on the amount of time that GDB will wait for the target to
1742 return from a step or continue operation. This will primarily be
1743 used for the testsuite, where it is difficult to come up with a
1744 reasonable timeout for things like function calls, which can take
1745 as long as three minutes under some circumstances. If the
1746 watchdog timer expires, GDB will generate an error that looks like
1747 `Watchdog has expired.', and will detach from the target.
1748
1749 * remote-mips.c (mips_open): Setup initial frame from target.
1750 Print it out so that user is told where the program is stopped
1751 when they attach.
1752
1753 * remote-nrom.c: Loads of cleanups. Use serial code to open
1754 network connections. Use expect() to wait for response to
1755 download command.
1756
1757 * ser-tcp.c (tcp_open): Retry connection if we get ECONNREFUSED.
1758
1759 * serial.c serial.h (serial_open serial_fdopen serial_close):
1760 Allow users to open the same device multiple times. They all get
1761 to share the same serial_t. This is about the only way to have
1762 multiple active targets use the same device (for download and
1763 debug).
1764
1765 * sparcl-tdep.c: Keep #include <unistd.h> away from GO32.
1766
1767 * target.c: Add `targetdebug' variable. If this is non-zero,
1768 then a special target is put at the top of the target stack which
1769 will cause all calls through the target vector to have their args
1770 and results printed out.
1771
1772 Wed Jun 7 17:40:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1773
1774 * ch-exp.y: Handle <primitive_value> "->" <modename>.
1775
1776 Wed Jun 7 17:46:33 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1777
1778 * mem-break.c (LITTLE_BREAKPOINT): If BREAKPOINT and
1779 {LITTLE,BIG}_BREAKPOINT are all defined, don't redefine.
1780 (BIG_BREAKPOINT): Ditto.
1781
1782 * config/rs6000/tm-rs6000.h (BREAKPOINT): Define as either
1783 BIG_BREAKPOINT or LITTLE_BREAKPOINT depending on the target byte
1784 order.
1785
1786 Wed Jun 7 12:41:42 1995 Jeff Law (law@snake.cs.utah.edu)
1787
1788 * somsolib.c (som_solib_section_offsets): Handle relative pathnames.
1789
1790 * hppa-tdep.c (frame_saved_pc): Handle backtracing through signal
1791 handler in dynamically linked executables.
1792
1793 Tue Jun 6 10:44:25 1995 Michael Meissner <meissner@tiktok.cygnus.com>
1794
1795 From Andrew Cagney <cagney@highland.com.au>
1796 * rs6000-tdep.c (single_step): Handle both little and big endian
1797 breakpoints.
1798 (gdb_print_insn_powerpc): Deal with disassembling both little and
1799 big endian PowerPC systems.
1800 (_initialize_rs6000_tdep): Use gdb_print_insn_powerpc to handle
1801 disassembly, rather that assuming big endian order.
1802
1803 * config/rs6000/tm-rs6000.h (BREAKPOINT): Delete.
1804 (BIG_BREAKPOINT): Define, big endian breakpoint instruction.
1805 (LITTLE_BREAKPOINT): Define, little endian breakpoint instruction.
1806
1807 Sat Jun 3 01:54:56 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1808
1809 * README: Add note about Unixware 2.x.
1810
1811 * dbxread.c (process_one_symbol): Check for exact symbol name
1812 match when fixing up N_GSYM and N_STSYM symbols from Sun acc.
1813
1814 * valprint.c (value_print_array_elements): Use
1815 fprintf_filtered to put out `<repeats %u times>',
1816 from schwab@issan.informatik.uni-dortmund.de (Andreas Schwab).
1817
1818 * value.h (struct value): Change `repetitions' field from
1819 `short' to `int' type.
1820
1821 start-sanitize-arc
1822 Fri Jun 2 11:17:23 1995 Doug Evans <dje@canuck.cygnus.com>
1823
1824 * arc-tdep.c (arc_bfd_mach_type): New static global.
1825 (codestream_fill): Handle byte order differences.
1826 (setup_prologue_scan): Don't read stdarg function's "sub sp,sp,N".
1827 (arc_get_frame_setup): Read it here.
1828 (arc_frame_saved_pc): And here.
1829 (arc_print_insn): New function.
1830 (arc_set_cpu_type): Set arc_bfd_mach_type. Don't set tm_print_insn.
1831 (_initialize_arc_tdep): Set tm_print_insn to arc_print_insn.
1832 end-sanitize-arc
1833
1834 Wed May 31 12:04:01 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1835
1836 * nlm/{configure.in, Makefile.in}: Converted to use autoconf.
1837 * nlm/configure: New file, generated with autoconf 2.3.
1838
1839 * nlm/configure.in: Use sed instead of awk to get the value of
1840 cpufile. Awk is not a utility required by the GNU coding
1841 standards. This change also fixes the rigid whitespace
1842 requirements that were required for awk.
1843
1844 * sparclite/aload.c: Use a file descriptor instead of a stdio
1845 stream for i/o with target board.
1846 Use #error if HAVE_TERMIOS is not defined.
1847
1848 * sparclite/{Makefile.in, configure.in}: Converted to use
1849 autoconf.
1850 * sparclite/configure: New file, generated with autoconf 2.3.
1851
1852 Sun May 28 23:10:07 1995 Jeff Law (law@snake.cs.utah.edu)
1853
1854 * defs.h: Include either varargs.h or stdarg.h (for va_list).
1855 Fix stupid thinko in last change ("..." -> "va_list").
1856
1857 * defs.h (vprintf_filtered declaration): Add PARAMS prototype;
1858 gcc-2.5 chokes on format attributes for unprototyped functions.
1859 (vfprintf_filtered declaration): Likewise.
1860 (vprintf_unfiltered declaration): Likewise.
1861 (vfprintf_unfiltered). Likewise.
1862
1863 Sat May 27 23:54:17 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1864
1865 * configure.in: Use sed instead of awk to get the values of
1866 hostfile, targetfile and nativefile. Awk is not a utility
1867 required by the GNU coding standards. This change also
1868 fixes the rigid whitespace requirements that were required
1869 for awk.
1870 * configure: regenerated.
1871
1872 Sat May 27 16:24:04 1995 Angela Marie Thomas <angela@cirdan.cygnus.com>
1873
1874 * sparclite/{Makefile,configure}.in: Add hooks for building with
1875 -lsocket & -lnsl for solaris2. Don't build aload/eload for DOS.
1876
1877 Thu May 25 12:46:37 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1878
1879 * gdbserver/remote-utils.c (prepare_resume_reply): Add FIXME
1880 comment regarding signal numbering.
1881
1882 Wed May 24 15:49:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
1883
1884 * arm-tdep.c (_initialize_arm_tdep): Use print_insn_little_arm
1885 now.
1886
1887 * arm-tdep.c (convert_from_extended, convert_to_extended):
1888 New.
1889 * coffread.c (enter_linenos): Return if linetab 0.
1890 * config/arm/arm.mt (TDEPFILES): Add simulator support.
1891 * config/arm/tm-arm.h (FRAME_FIND_SAVED_REGS): Fix prototypes.
1892
1893 Mon May 22 19:37:21 1995 Rob Savoye <rob@darkstar.cygnus.com>
1894
1895 * config/idt.mt: replace monitor and array-rom with the new
1896 remote-array.
1897
1898 Mon May 22 15:38:25 1995 Stu Grossman (grossman@cygnus.com)
1899
1900 * remote-nindy.c: Install Kung patch for PR 6820. I have no idea
1901 what this does...
1902
1903 * breakpoint.c: Move defaults of watchpoint related macros into
1904 target.h.
1905 * target.h: Macros from breakpoint.c. Conditionalize based on
1906 TARGET_HAS_HARDWARE_WATCHPOINTS.
1907 * i386v-nat.c procfs.c: Use TARGET_HAS_HARDWARE_WATCHPOINTS
1908 instead of TARGET_CAN_USE_HARDWARE_WATCHPOINT to enable watchpoint
1909 code.
1910 * config/i386/nm-linux.h, config/mips/nm-irix4.h,
1911 config/pa/nm-hppab.h, config/sparc/tm-sparclite.h: #define
1912 TARGET_HAS_HARDWARE_WATCHPOINTS to enable watchpoint code.
1913
1914 Mon May 22 06:47:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1915
1916 * breakpoint.c, target.h: Move defaults of watchpoint related
1917 macros back to breakpoint.c. Required to get GDB compiling
1918 on Solaris again.
1919
1920 Fri May 19 14:49:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1921
1922 * defs.h (ATTR_FORMAT): New macro, expands to gcc's format
1923 attribute when compiled by gcc.
1924 * defs.h, language.h, monitor.h: Changed many function
1925 declarations to use ATTR_FORMAT.
1926
1927 * breakpoint.c (delete_command); source.c (directory_command);
1928 top.c (define_command): Changed call to query() that had too
1929 many arguments.
1930 * printcmd.c (address_info): Changed call to printf_filtered()
1931 that had too many arguments.
1932
1933 Fri May 19 09:52:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
1934
1935 * infrun.c (wait_for_inferior): Move assignments to stop_signal
1936 and stop_pc, and STOPPED_BY_WATCHPOINT code, back where they
1937 were--after the switch statement on w.kind. You can't read the
1938 registers of an inferior which has exited. Use a goto in the
1939 STOPPED_BY_WATCHPOINT code.
1940 * infrun.c (wait_for_inferior): Reinstate
1941 HAVE_STEPPABLE_WATCHPOINT and HAVE_CONTINUABLE_WATCHPOINT code.
1942
1943 Fri May 19 06:15:40 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1944
1945 * utils.c, complaints.c, language.c, monitor.c, remote-array.c,
1946 remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
1947 stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
1948 must match the definition of PARAMS.
1949 start-sanitize-gdbtk
1950 * gdbtk.c: Likewise.
1951 end-sanitize-gdbtk
1952
1953 Thu May 18 15:58:46 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1954
1955 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
1956 printf_filtered, printf_unfiltered, printfi_filtered, query, warning,
1957 error, fatal, fatal_dump_core): Use stdarg.h macros when compiling
1958 with an ANSI compiler.
1959 * complaints.c (complain): Likewise.
1960 * language.c (type_error, range_error): Likewise.
1961 * monitor.c (monitor_printf, monitor_printf_noecho): Likewise.
1962 * remote-array.c (printf_monitor, debuglogs): Likewise.
1963 * remote-mips.c (mips_error): Likewise.
1964 * remote-os9k.c (printf_monitor): Likewise.
1965 * remote-st.c (printf_stdebug): Likewise.
1966 start-sanitize-gdbtk
1967 * gdbtk.c (gdbtk_query): Likewise.
1968 end-sanitize-gdbtk
1969
1970 * defs.h, complaints.h, language.h, monitor.h: Add prototypes to
1971 match above changes.
1972
1973 * printcmd.c: Remove uneeded #include <varargs.h>.
1974 * remote-e7000.c: Likewise.
1975
1976 * f-typeprint.c (f_type_print_base): Fix typo found by above
1977 changes.
1978
1979 Wed May 17 11:21:32 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
1980
1981 * Makefile.in (xcoffread.o): Depend on partial-stab.h.
1982
1983 * xcoffsolib.c (sharedlibrary_command): New command.
1984 * xcoffsolib.c (solib_info): Call xcoff_relocate_symtab.
1985 * xcoffsolib.c: Miscellaneous cleanups.
1986
1987 * partial-stab.h: Ignore symbol descriptor '-' (for local
1988 variables with negative type numbers) without complaint.
1989
1990 * rs6000-nat.c (vmap_ldinfo): Use bfd_stat rather than our own
1991 local emulation thereof. Remove unused variable ostart.
1992
1993 Wed May 17 15:55:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1994
1995 * Makefile.in (config.status): changed target so that
1996 config.status --recheck is executed if configure script changes.
1997
1998 * monitor.c (monitor_printf): Changed format specification in
1999 error message to work with pre-ansi compilers.
2000 (monitor_load_srec): reduced length of s-records from 128 to 32
2001 bytes so download is more reliable with the rom68k monitor.
2002
2003 * rom68k-rom.c: Added trailing space to prompt string.
2004
2005 * config/i386/xm-i386sco.h (HAVE_STRSTR): Removed.
2006 * config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING):
2007 Removed.
2008 * defs.h, config/{xm-lynx.h, xm-nbsd.h},
2009 config/i386/{xm-i386bsd.h, xm-linux.h},
2010 config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h,
2011 config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo
2012 (PSIGNAL_IN_SIGNAL_H): Removed.
2013
2014 Tue May 16 13:16:06 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2015
2016 * Makefile.in (Makefile): Added config.status to dependency list.
2017
2018 * configure.in: Added INIT-CMDS argument to AC_OUTPUT which sets
2019 gdb_host_cpu, gdb_target_cpu and nativefile.
2020 * configure: regenerated.
2021
2022 Mon May 15 23:50:51 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2023
2024 * mdebugread.c (parse_symbol): Do not relocate stBlock/scText
2025 symbols, their value is the displacement from the procedure address.
2026 * top.c (init_main): Add missing newlines to help strings for
2027 `if' and `while' commands, fix help string for `show commands'.
2028
2029 Mon May 15 18:37:56 1995 Stu Grossman (grossman@cygnus.com)
2030
2031 * breakpoint.c: Move defaults of watchpoint related macros into
2032 target.h. Use BP_TEMPFLAG and BP_HARDWAREFLAG instead of
2033 constants.
2034 * infrun.c (wait_for_inferior): Enhance comment near
2035 STOPPED_BY_WATCHPOINT.
2036 * target.h: Macros from breakpoint.c.
2037
2038 Mon May 15 17:11:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2039
2040 * config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
2041 config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
2042 mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
2043 out by autoconf.
2044 * config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.
2045
2046 * Makefile.in, configure.in: Converted to use autoconf
2047 * aclocal.m4: New file, local autoconf macro definitions.
2048 * configure: New file, generated with autoconf 2.3.
2049
2050 Mon May 15 14:46:41 1995 Stan Shebs <shebs@andros.cygnus.com>
2051
2052 * remote.c (remote_kill): Add prototype.
2053 * cpu32bug-rom.c (cpu32bug_open): Properly define as static.
2054 * config/h8300/h8300hms.mt (TDEPFILES): Add monitor.o.
2055
2056 Mon May 15 12:12:34 1995 Stu Grossman (grossman@cygnus.com)
2057
2058 * sparclite/salib.c (win_ovf win_unf): Make window size constant
2059 into a variable (__WINSIZE) so that it can be controlled via the
2060 .h file.
2061 * sparclite/sparclite.h: Add SL933 #ifdef to set __WINSIZE to 6
2062 for the 933 board.
2063
2064 * infrun.c: Add #ifdef HP_OS_BUG to all references to
2065 trap_expected_after_continue.
2066 * (wait_for_inferior): Fix for remote watchpoints. Don't try to
2067 insert breakpoints while target is running (this only works on
2068 *some* native targets). This may also speed up native watchpoints
2069 considerably.
2070
2071 Sat May 13 13:55:04 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2072
2073 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
2074 mdebugread.c (struct symloc), hpread.c (struct symloc),
2075 xcoffread.c (struct symloc): Fix inaccurate comment introduced
2076 20 Apr 1995.
2077
2078 Sat May 13 13:34:18 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2079
2080 * rs6000-tdep.c (find_toc_address): Revise comment.
2081 * symfile.c, symfile.h (init_psymbol_list): New function;
2082 consolidate duplicated copies from os9kread.c, dbxread.c
2083 and dwarfread.c.
2084 * defs.h: Declare info_verbose.
2085 * xcoffread.c: Extensive changes to support psymtabs.
2086
2087 Fri May 12 13:48:41 1995 Stu Grossman (grossman@andros.cygnus.com)
2088
2089 * cpu32bug-rom.c remote-est.c rom68k-rom.c: Update line_term element.
2090
2091 Fri May 12 06:39:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2092
2093 * partial-stab.h: Expand comments.
2094
2095 Thu May 11 19:01:37 1995 Jeff Law (law@snake.cs.utah.edu)
2096
2097 * Support debugging using native MACH primitives on hppa*-*-osf*.
2098 * configure.in: hppa*-*-osf* != hppa*-*-bsd* anymore.
2099 * config/pa/hppaosf.mh: New file.
2100 * config/pa/nm-hppao.h: Likewise.
2101 * hppam3-nat.c: Likewise.
2102 * config/pa/tm-hppao.h (PSW_SS): Define for single-stepping.
2103 (MACHINE_CPROC_*_OFFSET): Define.
2104 (TRACE_*): Define.
2105 (START_INFERIOR_TRAPS_EXPECTED): Delete definition.
2106
2107 Wed May 10 18:59:26 1995 Stu Grossman (grossman@andros.cygnus.com)
2108
2109 * hppa-tdep.c (read_unwind_info): Cosmetic cleanup.
2110 * (unwind_command): Clean it up and make it print things out
2111 nicer.
2112 * monitor.c: Add ^C handling capability (mostly ripped off from
2113 remote.c).
2114 * (monitor_printf): Make it check the command echo.
2115 * (monitor_printf_noecho): Similar to above, but doesn't check
2116 for echo.
2117 * (monitor_stop): No longer waits for prompt. That is the job of
2118 the caller. This makes things work much better for monitor_wait,
2119 which waits for the prompt itself.
2120 * (monitor_open): Deal with new monitor_stop semantics. Also,
2121 flush input after sending init strings to get rid of junk that may
2122 be output. Also, don't always send \r to remote. Use
2123 monitor_ops->line_term cuz proper character isn't always \r.
2124 * (monitor_fetch_register): Switch to completely different
2125 algorithm to deal with lame-ass monitors which put spaces in the
2126 middle of numbers, and prompt with a space!!!!!
2127 * (monitor_read_memory_single): New routine to be used with
2128 monitors that can only return one byte/short/long at a time. This
2129 is selected via MO_GETMEM_READ_SINGLE.
2130 * (monitor_load_srec): Use monitor_printf_noecho for sending S
2131 records. Most targets don't echo them.
2132 * (monitor.h): Get rid of cmd_delim. Add line_delim.
2133 * op50n-rom.c (op50n_cmds): Fill it up. Make it work.
2134 * w89k-rom.c: Change all eols from \r to \n. Change load_resp to
2135 ^Q to prevent error message.
2136 * config/pa/tm-hppa.h (CALL_DUMMY (for hppro)): Add special
2137 instruction sequence at end to make restore_pc_queue happy.
2138
2139 Wed May 10 15:59:00 1995 Torbjorn Granlund <tege@adder.cygnus.com>
2140
2141 * remote-est.c (est_open): Make static to match prototype.
2142
2143 Tue May 9 16:58:50 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2144
2145 * configure.in: Add little endian PowerPC support.
2146 * config/powerpc/ppcle-eabi.mt: New file for little endian PowerPC
2147 support.
2148 * config/powerpc/tm-ppcle-eabi.h: ditto.
2149
2150 Mon May 8 12:11:38 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2151
2152 * nlm/configure.in (gdb_host, gdb_host_cpu, gdb_target): Removed.
2153 These variables not used.
2154
2155 * config/m68k/monitor.mt (TDEPFILES): Added cpu32bug-rom.o.
2156
2157 Wed May 3 17:54:47 1995 Stan Shebs <shebs@andros.cygnus.com>
2158
2159 * monitor.c (monitor_command): Don't use PROMPT until monitor
2160 target is known to be open.
2161 (monitor_make_srec): Don't define size of hextab.
2162
2163 Tue May 2 18:32:24 1995 Stan Shebs <shebs@andros.cygnus.com>
2164
2165 * configure.in (--enable-netrom): New configuration option.
2166 * Makefile.in (REMOTE_OBS): Rename from REMOTE_O, append
2167 value of NETROM_OBS.
2168 (NETROM_OBS): New variable.
2169 * remote-nrom.c: New file, NetROM target support.
2170 * config/a29k/a29k-udi.mt, config/i960/vxworks960.mt: Use
2171 REMOTE_OBS instead of REMOTE_O.
2172 start-sanitize-arc
2173 * config/arc/arc.mt: Ditto.
2174 end-sanitize-arc
2175
2176 Fri Apr 28 23:30:00 1995 Stu Grossman (grossman@cygnus.com)
2177
2178 * array-rom.c (_initialize_array array_open): Move baud_rate
2179 initialization from _initxxx to array_open to fix bug with
2180 overriding -b command line option.
2181
2182 Thu Apr 27 20:29:34 1995 Doug Evans <dje@canuck.cygnus.com>
2183
2184 * Makefile.in (RUNTEST): Fix reference of `srcdir'.
2185
2186 Wed Apr 26 19:01:08 1995 Steve Chamberlain <sac@slash.cygnus.com>
2187
2188 * remote-hms.c: Rewrite to use new monitor conventions.
2189
2190 Tue Apr 25 11:27:14 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2191
2192 * dbxread.c: Add comment explaining lowest_text_address.
2193 Add comment regarding stringtab_global and psymtabs.
2194
2195 Sat Apr 22 01:26:29 1995 Jeff Law (law@snake.cs.utah.edu)
2196
2197 * config/pa/tm-hppa.h (EXTRACT_STRUCT_VALUE_ADDRESS): Fix.
2198
2199 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Rewrite to correctly
2200 handle "short", "int" and small structures returned in registers.
2201
2202 Fri Apr 21 12:57:53 1995 Kung Hsu <kung@mexican.cygnus.com>
2203
2204 * minsyms.c: add new function lookup_minimal_symbol_text, to look
2205 for text symbol only.
2206 * breakpoint.c (create_longjmp_breakpoint): call
2207 lookup_minimal_symbol_text instead of lookup_minimal_symbol.
2208 * symtab.h: add lookup_minimal_symbol_text prototype.
2209
2210 Fri Apr 21 12:03:44 1995 Stan Shebs <shebs@andros.cygnus.com>
2211
2212 * sh-tdep.c (sh-opc.h): Don't include.
2213 (gdbcore.h): Include.
2214 (frame_find_saved_regs): Remove unused local.
2215
2216 Thu Apr 20 10:12:21 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2217
2218 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
2219 mdebugread.c (struct symloc), hpread.c (struct symloc): Clean
2220 up comments.
2221
2222 Wed Apr 19 16:58:11 1995 Stu Grossman (grossman@andros.cygnus.com)
2223
2224 * hppa-tdep.c (deposit_17): New routine to deposit 17 bit
2225 constants into PA instructions.
2226 * Put #ifdefs around all signal handling code. Not generally
2227 needed for embedded boards.
2228 * (hppa_fix_call_dummy): Parameterize offsets into call dummy to
2229 allow different dummys to be used by this code. Use
2230 INSTRUCTION_SIZE instead of REGISTER_SIZE for things.
2231 Conditionalize setup of _sr4export fixup. Improve comments.
2232 * config/pa/tm-hppa.h: Define INSTRUCTION_SIZE. Use a different
2233 call dummy if PA_LEVEL_0 is defined. Better comments for call
2234 dummys. Define offsets for LDIL/LDO instructions which load
2235 function addresses.
2236 * config/pa/tm-pro.h: Get rid of signal handling stuff. Define
2237 PA_LEVEL_0 to disable mucking with space regs and such.
2238
2239 Mon Apr 17 15:37:08 1995 Stu Grossman (grossman@andros.cygnus.com)
2240
2241 * cpu32bug-rom.c monitor.h op50-rom.c remote-est.c rom68k-rom.c
2242 w89k-rom.c: Remove loadtypes, loadprotos and baudrates.
2243 * op50-rom.c: Fix copyrights and add load routine to op50n_cmds.
2244 * rom68k-rom.c (_initialize_rom68k): Don't set baud rate.
2245 * w89k-rom.c: Fix copyrights.
2246
2247 Sun Apr 16 14:00:55 1995 Stu Grossman (grossman@andros.cygnus.com)
2248
2249 * monitor.c: Move all xmodem stuff into xmodem.[ch]. Remove
2250 unnecessary remoteloadprotocol and remoteloadtype support.
2251 * (expect expect_prompt): Change names to monitor_expect and
2252 monitor_expect_prompt. Make them global.
2253 * (printf_monitor): Change name to monitor_printf. Make global.
2254 * (monitor_read_memory): Flush command echo to avoid parsing
2255 ambiguity with CPU32Bug monitor.
2256 * (monitor_load): Remove remoteloadprotocol and remoteloadtype
2257 support. Call target_ops->load_routine, default to
2258 monitor_load_srec.
2259 * (monitor_load_srec): Remove everything but S-record support.
2260 * monitor.h (monitor_ops): Add load_routine to provide monitor
2261 specific download capability.
2262 * remote-est.c: Clean up copyrights and comments.
2263 * w89k-rom.c: Use new xmodem support.
2264 * xmodem.c xmodem.h: New files to support xmodem downloads.
2265 * rom68k-rom.c remote-est.c: Fix copyrights, add load_routine
2266 entry to monitor_ops.
2267 * cpu32bug-rom.c: New file to support Moto BCC debuggers.
2268 * config/m68k/est.mt (TDEPFILES): Add cpu32bug.o.
2269 * config/pa/hppapro.mt (TDEPFILES): Add xmodem.o.
2270
2271 Sat Apr 15 18:00:15 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2272
2273 * rem-multi.shar: Removed; superceded by gdbserver.
2274
2275 Fri Apr 14 12:10:24 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2276
2277 * xcoffread.c (xcoff_sym_fns): Revise comment about merging this
2278 with coffread.c.
2279
2280 * breakpoint.c (fixup_breakpoints): Removed.
2281 * rs6000-nat.c (vmap_symtab): Don't call fixup_breakpoints.
2282 (vmap_ldinfo, xcoff_relocate_core): Call breakpoint_re_set.
2283
2284 * coffread.c (coff_symfile_offsets): Allocate SECT_OFF_MAX
2285 sections, not just SECT_OFF_MAX-1.
2286
2287 * rs6000-nat.c (vmap_symtab), xcoffread.c: Re-do section offsets
2288 to be indexed by SECT_OFF_* instead of xcoff section numbers.
2289 * objfiles.c, remote.c: Remove comments regarding SECT_OFF_*.
2290 * symtab.h: Revise comment about block_line_section.
2291 * rs6000-nat.c (vmap_symtab): Don't relocate objfile->sections.
2292
2293 Sat Apr 15 14:15:14 1995 Stan Shebs <shebs@andros.cygnus.com>
2294
2295 * mpw-make.in (init.c): Don't try to do symbolic {o} in sed
2296 command, not allowed by some version of MPW Make.
2297 * ser-mac.c (mac-setbaudrate): Make it actually set baud rates.
2298
2299 Sat Apr 15 14:05:09 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2300
2301 * alpha-tdep.c (alpha_push_arguments): Fix typo (TYPE_VALUE ->
2302 VALUE_TYPE). Do the cast for TYPE_CODE_BOOL, TYPE_CODE_CHAR,
2303 TYPE_CODE_ENUM, and TYPE_CODE_RANGE as well as TYPE_CODE_INT.
2304
2305 Sat Apr 15 14:04:32 1995 Per Bothner <bothner@cygnus.com>
2306
2307 * alpha-tdep.c (alpha_push_arguments): Only cast to long for
2308 TYPE_CODE_INT.
2309
2310 start-sanitize-gdbtk
2311 Sat Apr 15 13:52:24 1995 Stan Shebs <shebs@andros.cygnus.com>
2312
2313 * gdbtk.c (gdb_disassemble): Read from inferior if connected
2314 to a VxWorks target.
2315
2316 Fri Apr 14 10:18:20 1995 Stu Grossman (grossman@cygnus.com)
2317
2318 * README.GDBTK: New file. Contains the obvious.
2319 end-sanitize-gdbtk
2320
2321 Thu Apr 13 16:17:04 1995 Rob Savoye <rob@darkstar.cygnus.com>
2322
2323 * remote-array.c: New file for Array Tech LSI33k based controller
2324 board.
2325
2326 Thu Apr 13 12:23:31 1995 Kung Hsu <kung@rtl.cygnus.com>
2327
2328 * a29k-tdep.c (get_longjmp_target): Replace SWAP_TARGET_AND_HOST with
2329 extract_address.
2330 * remote-vxsparc.c: New file, preliminary check in, this configuration
2331 not supported yet.
2332 * remote-vxmips.c: ditto.
2333
2334 Thu Apr 13 12:10:14 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2335
2336 * rs6000-tdep.c (xcoff_add_toc_to_loadinfo): Don't use a prototype
2337 to declare the function.
2338
2339 Wed Apr 12 16:40:20 1995 Stan Shebs <shebs@andros.cygnus.com>
2340
2341 * monitor.h (init_monitor_ops): Declare.
2342 * rom68k-rom.c: Clarify some comments.
2343 (rom68k_open): Define as static, to match decl.
2344
2345 Wed Apr 12 16:36:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2346
2347 * gdb.gdb: New file.
2348 * .gdbinit: Move list-objfiles to gdb.gdb.
2349
2350 * values.c (set_internalvar): Set modifiable flag of newval.
2351
2352 Wed Apr 12 14:34:31 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2353
2354 * xcoffread.c: Call complain() rather than error() or printing a
2355 warning.
2356
2357 start-sanitize-arc
2358 Wed Apr 12 08:15:27 1995 Doug Evans <dje@canuck.cygnus.com>
2359
2360 * arc-tdep.c: #include "gdbcmd.h".
2361 (codestream_seek): Pass CORE_ADDR.
2362 (arc_cpu_type, tmp_arc_cpu_type, arc_cpu_type_table): New globals.
2363 (debug_pipeline_p): Likewise.
2364 (X_...): Instruction field access macros.
2365 (BUILD_INSN): Define.
2366 (codestream_tell): Allow for stream elements > 1 byte.
2367 (codestream_fill): Likewise.
2368 (setup_prologue_scan): New function.
2369 (arc_get_frame_setup): Call it. Update to current spec
2370 regarding prologues. Use BUILD_INSN.
2371 (skip_prologue): New argument `frameless_p'. Use BUILD_INSN.
2372 (arc_frame_saved_pc): New function.
2373 (frame_find_saved_regs): Use BUILD_INSN.
2374 (get_insn_type, single_step): New functions.
2375 (one_stepped): New global.
2376 (arc_set_cpu_type_command, arc_show_cpu_type_command): New functions.
2377 (arc_set_cpu_type): New function.
2378 (_initialize_arc_tdep): Define new `set' commands `cpu',
2379 `displaypipeline', and `debugpipeline'.
2380 * remote-arc.c (break_insn): Add bi-endian support.
2381 (arc_insert_breakpoint): Likewise.
2382 (arc_remove_breakpoint): Likewise.
2383 (switch_command): Delete.
2384 * arc/tm-arc.h (TARGET_BYTE_ORDER): Delete.
2385 (TARGET_BYTE_ORDER_SELECTABLE): Define.
2386 (DEFAULT_ARC_CPU_TYPE): Define.
2387 (SKIP_PROLOGUE_FRAMELESS_P): Define.
2388 (BREAKPOINT): Delete.
2389 (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Define.
2390 (DECR_PC_AFTER_BREAK): Change to 8.
2391 (NO_SINGLE_STEP): Define.
2392 (ARC_PC_TO_REAL_ADDRESS): Define.
2393 (SAVED_PC_AFTER_CALL): Use it.
2394 (NUM_REGS, REGISTER_BYTES): Fix.
2395 (FRAME_SAVED_PC): Call arc_frame_saved_pc.
2396 (FRAME_LOCALS_ADDRESS): Fix.
2397 end-sanitize-arc
2398
2399 Tue Apr 11 16:42:37 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2400
2401 * top.c, utils.c, defs.h: Remove error_hook. It is currently
2402 unused and would need to hook into error_begin()/return_to_top_level(),
2403 instead of error(), if it were to be used.
2404
2405 Tue Apr 11 13:46:25 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
2406
2407 * utils.c, defs.h (warning_begin): Renamed from warning_setup, for
2408 consistency with error_begin. Also print warning_pre_print.
2409 Document it better.
2410 * utils.c (warning): Use it.
2411 * utils.c (error_begin): Doc fix.
2412 * rs6000-nat.c (vmap_ldinfo): If we don't find ldinfo for the
2413 symfile_objfile, nuke it.
2414
2415 Tue Apr 11 09:35:20 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2416
2417 * printcmd.c (print_address_numeric): Pass use_local to
2418 print_longest, rather than always passing 1.
2419
2420 * nlm/Makefile.in: Remove comments discussing munch.
2421
2422 start-sanitize-gdbtk
2423 Tue Apr 11 11:07:12 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2424
2425 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, but
2426 F_SETOWN is, use that.
2427 end-sanitize-gdbtk
2428
2429 Mon Apr 10 18:31:57 1995 Stan Shebs <shebs@andros.cygnus.com>
2430
2431 Merge in support for Mac MPW as a host.
2432 (Old change descriptions retained for informational value.)
2433
2434 * mpw-config.in (i386-unknown-go32): Change from aout.
2435 (sh-hitachi-hms): New target.
2436 * mpw-make.in (BISON): Use byacc instead of bison.
2437 (VERSION): Bump to 4.14.1.
2438 (*-pinsn.*): Remove mentions everywhere.
2439 (all): Don't build MacGDB.
2440 (gdb, SiowGDB): Depend on Version.r.
2441 (Version.r): Generate from version info.
2442 * main.c (main): Pass program name to START_PROGRESS, END_PROGRESS.
2443 (main) [MPW]: Remove debugging hook.
2444 * mac-xdep.c (debug_openp): New flag.
2445 (mac_init): Set flag if env variable defined.
2446 * ser-mac.c (mac_open): Clarify error message.
2447 (mac_readchar): Call PROGRESS while looping.
2448 (mac_write): Call sleep instead of sec_sleep.
2449 (sec_sleep): Remove.
2450 * source.c (openp) [MPW]: Only print debugging info if debugging.
2451 * utils.c (query) [MPW]: Clarify that behavior is a bug.
2452
2453 * mpw-make.in (init.c): Use open-brace instead of mpw-open-brace.
2454
2455 * main.c, source.c: Remove hacks that replace long strings
2456 with shorter ones, now solved portably.
2457
2458 * config/m68k/xm-mpw.h (spin.h): Include.
2459 (ALMOST_STDC): Only define if MPW_C.
2460 * config/m68k/tm-mac.h: New file, Mac target definitions.
2461
2462 * mpw-config.in (m68k-apple-macos, ppc-apple-macos,
2463 i386-unknown-aout): New targets.
2464 (mk.tmp): Add *DEPFILES definitions.
2465 * mpw-make.in: Remove gC rules, clean up definitions for other
2466 include files, bump version, fix bogus \ that should be \Option-d.
2467 (init.c): Build correctly.
2468
2469 * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h
2470 (ALLDEPFILES): Add somsolib.c.
2471 (somsolib.o): Add some dependencies.
2472
2473 * mpw-config.in: Use nm-empty.h if host is not target.
2474 (xdepfiles): Add mac-xdep.c.o.
2475 (xm_file): Remove.
2476 * mpw-make.in: Add Fortran files.
2477 (XDEPFILES): Remove.
2478
2479 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
2480 * ser-mac.c (MacSerial.h): Include instead of Serial.h.
2481
2482 * mpw-make.in: Use {s} instead of {srcdir} everywhere.
2483 (bindir, libdir): Remove extra colon.
2484 (source.c): Compile with C instead of gC.
2485 (c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
2486 (install-only): Don't install MacGDB.
2487 * source.c (openp) [MPW]: Add a debugging display.
2488 (open_source_file) [MPW]: Use MPW basename finders.
2489 [MPW_C]: Briefer versions of help for line and list commands.
2490
2491 * mpw-make.in: Change references from paread.c to somread.c
2492
2493 * mpw-make.in (VERSION): Update to 4.12.3.
2494 (SiowGDB): New target, GDB using SIOW library.
2495 (init-new.c): New target, attempt to generate init.c from sources.
2496 (main.c.o, top.c.o): Put each in its own segment.
2497 * main.c (main) [MPW]: Always call mac_init.
2498 * utils.c (query) [MPW]: Always return "yes" if in MacGDB, output
2499 an extra newline otherwise.
2500 * mac-xdep.c: More comments in various places, remove junk.
2501 (mac_init): Add tests for MPW and SIOW.
2502 (use_wne, has_color_qd): Renamed.
2503 (use_color_qd): New variable.
2504 (grow_window): Only do console resizing to console window,
2505 call resize_console_window.
2506 (zoom_window): Call resize_console_window.
2507 (resize_console_window, scroll_text): New functions.
2508 (adjust_console_sizes): Always align viewrect to even multiples of
2509 text lines.
2510 (adjust_console_text): Always scroll by whole lines.
2511 (hacked_vfprintf, hacked_puts, hacked_fputc, hacked_putc): Force a
2512 recalculation of scroll positions if a newline was output.
2513 (hacked_fflush): Similarly, for flushing.
2514 (hacked_fgetc): New function, aborts if called in MacGDB.
2515 * ser-mac.c (mac_readchar): Rename starttime to start_time,
2516 remove debugging printf.
2517 (mac_write): Sleep on first 4 writes.
2518 (sec_sleep): New function, works like standard sleep.
2519 * macgdb.r: Adjust positioning and contents of About box.
2520 Set minimum size to 2000K, preferred size to 5000K.
2521 * config/m68k/xm-mpw.h (fgetc): Define as a macro.
2522
2523 * mpw-make.in (.c.o, .gc.o): Prefix segment names with gdb_.
2524 (top.c.o, annotate.c.o): Add build rules.
2525 * macgdb.r (SysTypes.r): Include.
2526 ('vers'): New resource, version info.
2527 (mFile, mEdit, mDebug): Enable all menu items.
2528 (mDebug): Add key equivalents for continue, step, next.
2529 (wConsole): Add zoom and close boxes to window.
2530 * mac-xdep.c (new_console_window): New function, code taken from
2531 mac_init.
2532 (mac_command_loop): Use GetCaretTime for wait interval, call
2533 do_idle on null events.
2534 (do_idle): New function.
2535 (zoom_window): Implement zooming.
2536 (v_scroll_proc): New function, handles vertical scrolling.
2537 (activate_window): Do activation of console window.
2538 (do_menu_command): Implement items of file, edit, and debug menus.
2539 (do_keyboard_command): Fix command extraction.
2540 (adjust_console_sizes, adjust_console_text): New functions.
2541 (hacked_fprintf, hacked_vfprintf, hacked_fputs, hacked_fputc,
2542 hacked_putc): Don't call draw_console.
2543 * ser-mac.c (mac_open): Add an error message for invalid ports.
2544 (first_mac_write): New global.
2545 (mac_write): Use first_mac_write to sleep on first several writes.
2546
2547 * mpw-make.in (INCLUDE_CFLAGS): Add readline source dir.
2548 (READLINE_CFLAGS, READLINE_SRC, READLINE_DIR): Uncomment.
2549 (TSOBS): Don't compile inflow.c.
2550 (all, install): Add MacGDB.
2551 * main.c (main): Do Mac-specific init and command loop if a
2552 standalone app, skip full option help message if compiling
2553 with MPW C.
2554 (gdb_readline): If MPW, add a newline after the (gdb) prompt.
2555 * utils.c (_initialize_utils): If MPW, don't try to use termcap to
2556 compute the window size.
2557 * config/m68k/xm-mpw.h (printf, fprintf, fputs, fputc, putc,
2558 fflush): Define as macros that expand into hacked_... versions.
2559 (StandAlone, mac_app): Declare.
2560 * macgdb.r (SIZE): Set the default partition to 4000K.
2561 * mac-xdep.c (readline.h, history.h): Include.
2562 (terminal.h): Don't include.
2563 (mac_app): Define.
2564 (gdb_has_a_terminal): Define Mac-specific version.
2565 (do_keyboard_command): Simplify search for command string.
2566 (readline): Define as gdb_readline.
2567 Add other history/readline stubs to make main gdb link.
2568 (hacked_fprintf, hacked_printf, hacked_vfprintf, hacked_fputs,
2569 hacked_fputc, hacked_fflush): New functions, intercept output to
2570 stdout and stderr, send to console window.
2571
2572 * mpw-make.in (MacGDB): New target, standalone Mac-hosted gdb.
2573 (XDEPFILES): Define.
2574 (main.c.o): Compile with gC instead of C.
2575 * mac-defs.h: New file, menu etc definitions shared between
2576 C and Rez files.
2577 * macgdb.r: New file, Rez (resource compiler) resource
2578 definitions.
2579 * mac-xdep.c: New file, Mac host interface code.
2580 * config/m68k/xm-mpw.h (PATHNAME_SEPARATOR): Rename to
2581 DIRNAME_SEPARATOR.
2582 (PATHNAME_SEPARATOR_STRING): Remove.
2583 (SIGQUIT, SIGHUP): Define.
2584 (fileno, R_OK): Define.
2585
2586 * mpw-config.in: New file, MPW configuration fragment.
2587 * mpw-make.in: New file, MPW makefile fragment.
2588 * config/m68k/xm-mpw.h: New file, MPW host definitions.
2589 * ser-mac.c: New file, Mac serial interface.
2590
2591 Mon Apr 10 16:47:57 1995 Kung Hsu <kung@mexican.cygnus.com>
2592
2593 * valprint.c (print_longest): Fix a syntax error in #ifdef
2594 PRINTF_HAS_LONG_LONG.
2595
2596 * config/mips/xm-irix5.h: turn on CC_HAS_LONG_LONG and
2597 PRINTF_HAS_LONG_LONG.
2598 * config/mips/tm-irix5.h: turn on FORCE_LONG_LONG.
2599
2600 Sat Apr 8 02:47:45 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2601
2602 * mdebugread.c (parse_symbol): Use new variable
2603 nodebug_var_symbol_type as type of variables which don't have any
2604 ecoff debug info associated with them.
2605 (parse_symbol, parse_procedure): Use heuristics to determine if
2606 functions were compiled without debugging info and change their
2607 type to nodebug_function_symbol_type.
2608 (_initialize_mdebugread): Initialize nodebug_*_symbol_type.
2609
2610 * source.c (line_info): Clear sal.pc for `info line' without
2611 arguments.
2612
2613 Fri Apr 7 17:43:01 1995 Stu Grossman (grossman@andros.cygnus.com)
2614
2615 * monitor.c: make_xmodem_packet and print_xmodem_packet go away.
2616 send_xmodem_packet shows up to do the obvious. Lots of fixes to
2617 xmodem downloads including resetting of block number at start of
2618 new transfers, fix for buffer overrun problem, addition of CRC
2619 generation code.
2620 * (monitor_open): loadtype_str and loadproto_str now default to
2621 first entry in monitor_ops->loadtypes.
2622 * (monitor_wait): Lengthen register dump buf, because of verbose
2623 Winbond monitor.
2624 * (monitor_fetch_register): Report unimplemented registers as 0.
2625 * (monitor_read_memory): Only do 16 byte aligned transfers
2626 because of formatting weirdness with the Winbond monitor. Also,
2627 ignore non-hex, non-whitespace formatting between bytes (same
2628 monitor).
2629 * (monitor_load): Clean up logic.
2630 * (monitor_load_srec): Re-do xmodem support. Move lots of it
2631 into send_xmodem_packet.
2632 * (getacknak): Get rid of polls and timeouts. Handle CRC
2633 requests from receiver.
2634 * (monitor_make_srec): Efficiency improvements. Don't call
2635 sprintf to output two digit hex numbers.
2636 * (crcinit, docrc): New, CRC-16 support routines.
2637 * (send_xmodem_packet): New routine to generate either CRC-16 or
2638 checksummed xmodem packets.
2639
2640 * remote-est.c (est_loadtypes), rom68k-rom.c (rom68k_loadtypes):
2641 Reduce tables down to only the load types supported by each
2642 monitor.
2643
2644 * w89k-rom.c (w89k_supply_register): Parses output of Winbond
2645 register dumps.
2646 * (w89k_loadtypes, w89k_loadprotos): Reduce to just srec/xmodem.
2647 * (w89k_cmds): Add clear all breakpoints, memory fill, and dump
2648 registers commands.
2649
2650 * config/pa/tm-hppa.h: Define lots register offsets needed by
2651 w89k-rom.c.
2652
2653
2654 Thu Apr 6 17:00:46 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2655
2656 * Makefile.in (X11_INCLUDES): Define as empty.
2657 (X11_CFLAGS): Define as including $(X11_INCLUDES).
2658 (X11_LIB_SWITCHES): Define as empty.
2659 (X11_LIBS): Define as -lX11.
2660
2661 start-sanitize-gdbtk
2662 * configure.in (enable_gdbtk): If gdbtk, support the --x-includes
2663 and --x-libraries switches, setting the X11_INCLUDES and
2664 X11_LIB_SWITCHES respectively. Instead of using a hardcoded -lX11
2665 in ENABLE_CLIBS, use the X11_LIB_SWITCHES and X11_LIBS variables.
2666
2667 * gdbtk.c (gdbtk_init): If SIOCSPGRP is not available, don't use
2668 it. This means that the stop button doesn't work, but is better
2669 than nothing.
2670 end-sanitize-gdbtk
2671
2672 Wed Apr 5 19:57:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2673
2674 * mips-tdep.c (mips_print_register): Remove unused variable
2675 our_type and call to init_type. Fixes memory leak. Reindent function.
2676
2677 * mips-tdep.c (mips_print_register), findvar.c
2678 (write_register_bytes): Make buffer char[] instead of unsigned
2679 char[].
2680
2681 Mon Apr 3 19:28:14 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2682
2683 * top.c, utils.c, main.c, defs.h: Replace error_pre_print with two
2684 variables: error_pre_print (for RETURN_ERROR) and quit_pre_print
2685 (for RETURN_QUIT). Fixes a bug whereby typing ^C (e.g. in "maint
2686 print sym") could output extraneous stuff.
2687 * objfiles.c: Don't declare error_pre_print; defs.h does it.
2688
2689 Mon Apr 3 13:48:28 1995 Stu Grossman (grossman@andros.cygnus.com)
2690
2691 * monitor.h: Add MO_GETMEM_NEEDS_RANGE flag.
2692 * monitor.c (monitor_read_memory): Use previously mentioned flag
2693 to send proper format memory examine commands to the w89k monitor.
2694 Also, try to handle bizarre format of memory dump...
2695
2696 * op50-rom.c w89k-rom.c: Update to new monitor.[ch] conventions.
2697
2698 Sat Apr 1 03:22:20 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2699
2700 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
2701 Handle relocated symbol address.
2702 * partial-stab.h, case N_SO, SOFUN_ADDRESS_MAYBE_MISSING:
2703 Do not relocate a zero address.
2704
2705 Thu Mar 30 19:46:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2706
2707 * config/a29k/tm-a29k.h: Nuke obsolete define CONTROL_END_ADDR; it
2708 is nowhere used.
2709
2710 * stabsread.c (read_range_type): Remove FIXME comment about
2711 type-id (I presume this meant a number followed by = followed by a
2712 type) versus type number; Per fixed it.
2713
2714 Wed Mar 29 09:56:04 1995 Jason Molenda (crash@phydeaux.cygnus.com)
2715
2716 * configure.in: sparc-*-sunos5* is same as sparc-*-solaris2*.
2717
2718 Wed Mar 29 18:30:03 1995 Stan Shebs <shebs@andros.cygnus.com>
2719
2720 * remote-e7000.c (why_stop): Add new kinds of strings to expect
2721 from the emulator.
2722 (e7000_wait): Add interpretations for more stop reasons,
2723 including warnings for write protect and cycle address errors.
2724
2725 Wed Mar 29 17:09:29 1995 Stu Grossman (grossman@cygnus.com)
2726
2727 start-sanitize-gdbtk
2728 * Makefile.in (gdbtk.o): Use X11_CFLAGS to provide alternate
2729 locations (per-host) for X11 include files.
2730 * config/pa/hppahpux.mh (XM_CLIBS): Add -L/usr/lib/X11R5 to force
2731 the use of R5 libs. (X11_CFLAGS): Add this to indicate the locs
2732 of the R5 include files.
2733 end-sanitize-gdbtk
2734 * monitor.c monitor.h remote-est.c rom68k-rom.c: Add start of
2735 support for interrupting target.
2736 * monitor.c (monitor_open): Send stop command before doing
2737 anything else.
2738 * (monitor_load_srec): Fix record size calculation to prevent end
2739 of segment from getting trashed.
2740 * rom68k-rom.c: Update to latest version of struct monitor_ops.
2741 * config/sparc/tm-sparc.h (FIX_CALL_DUMMY): Fix byte-order
2742 problems. Makes DOS hosted function calling work.
2743 * sparclite/crt0.s: Define _start to make COFF happy.
2744
2745 Wed Mar 29 09:11:51 1995 Michael Meissner <meissner@tiktok.cygnus.com>
2746
2747 * defs.h (atof): Don't provide an external declaration if atof is
2748 a macro.
2749
2750 Wed Mar 29 00:01:07 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2751
2752 * rs6000-tdep.c (skip_prologue): Skip saving of LR and CR in
2753 the stack frame, fix typos in `st rx,NUM(r1)' and `stu r1,NUM(r1)'
2754 tests.
2755
2756 Tue Mar 28 17:04:04 1995 Per Bothner <bothner@kalessin.cygnus.com>
2757
2758 * gdbtypes.c (create_range_type): If indextype has TYPE_FLAG_STUB
2759 set, set TYPE_FLAG_TARGET_STUB.
2760 (check_stub_type): Recalculate TYPE_LENGTH for range type.
2761 * stabsread.c (read_range_type): If index type number is followed
2762 by '=', back up, call read_type. and assume we have a true range.
2763 * gdbtypes.h (TYPE_FLAG_TARGET_STUB): Update comment.
2764
2765 Mon Mar 27 22:51:54 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2766
2767 * alpha-nat.c, irix4-nat.c, irix5-nat.c, mipsv4-nat.c,
2768 sparc-tdep.c (supply_gregset, supply_fpregset): Fill inaccessible
2769 registers with zero to handle recent read_register_bytes change.
2770 * irix4-nat.c, irix5-nat.c, mipsv4-nat.c (supply_gregset,
2771 fill_gregset): Fix handling of CAUSE_REGNUM.
2772 * mips-nat.c (store_inferior_registers): Handle unwritable
2773 registers when storing a single register.
2774 * config/mips/tm-irix3.h (CAUSE_REGNUM, BADVADDR_REGNUM):
2775 Fix definitions.
2776
2777 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Clear
2778 allocated mips_extra_func_info, if the debug info is corrupt,
2779 the PDR to fill it in might be missing.
2780
2781 Mon Mar 27 14:43:00 1995 Kung Hsu <kung@mexican.cygnus.com>
2782
2783 * vx-share/regPacket.h: a new file interfacing with vxworks.
2784
2785 Sun Mar 26 13:22:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2786
2787 * breakpoint.c (bpstat_do_actions): Once we've executed the
2788 commands, set bs->commands to NULL.
2789
2790 Sat Mar 25 01:16:10 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2791
2792 * buildsym.c (patch_subfile_name): Update last_source_file
2793 with the real source file name.
2794 * dbxread.c (end_psymtab): Handle static functions in the
2795 SOFUN_ADDRESS_MAYBE_MISSING case by passing pst->filename
2796 to lookup_minimal_symbol.
2797 (process_one_symbol): Ignore extra outermost context from
2798 SunPRO cc and acc.
2799 * stabsread.c (define_symbol): Do not complain for SunPRO
2800 static variable encoding if STATIC_TRANSFORM_NAME is defined.
2801 * sparc-tdep.c, config/sparc/tm-sun4sol2.h
2802 (sunpro_static_transform_name): Renamed from
2803 solaris_static_transform_name.
2804 * config/sparc/tm-sun4os4.h (STATIC_TRANSFORM_NAME):
2805 Define to sunpro_static_transform_name for acc 3.0 compiled
2806 executables.
2807 * procfs.c, config/alpha/nm-osf2.h (PROCFS_DONT_TRACE_FAULTS):
2808 Renamed from PROCFS_DONT_TRACE_IFAULT, don't trace any faults
2809 if defined.
2810 * procfs.c (info_proc_siginfo): Cast sip->si_addr to
2811 `unsigned long' and use `lx' format for printing it.
2812
2813 Fri Mar 24 15:45:42 1995 Stu Grossman (grossman@cygnus.com)
2814
2815 * configure.in: Move test for m68*-est-* before m68*-*-coff*.
2816 * findvar.c: Move default def of CANNOT_STORE_REGISTER closer to
2817 the beginning of the code.
2818 * (write_register_gen): New routine. Analogous to
2819 read_register_gen.
2820 * (write_register_bytes): Another rewrite! Make it smarter about
2821 not updating regs with the same value.
2822 * monitor.c (printf_monitor readchar): Use stderr instead of
2823 stdout to output debug info. Also cleanup readchar a little.
2824 * (expect): Make sure that excessive responses are null
2825 terminated.
2826 * (monitor_open): Check for magic number in monitor_ops struct.
2827 Allow multiple commands as init strings. Also, clear all
2828 breakpoints.
2829 * (monitor_resume monitor_wait): Send a command to dump all the
2830 regs for those targets which don't do so when waking up after a
2831 continue command.
2832 * (monitor_wait): Handle excessive response output better.
2833 * (monitor_write_memory): Use block fill, word, and long word
2834 commands (if they exist) to write memory more efficiently.
2835 * General cleanups to use flag bits instead of individual flag
2836 words in monitor_ops struct.
2837 * (monitor_command): Return output from command.
2838 * (monitor_load_srec): Allocate buffer only once. Use alloca.
2839 Wait for load response string instead of using a timeout to start
2840 sending S-records. Fix bug where value of srec_frame shrinks. If
2841 hashmark is set, print `-' for retransmissions. General cleanups.
2842 * (monitor_make_srec): Get rid of S-record default type kludge.
2843 * monitor.h: Use seperate struct for memory and register
2844 read/write commands. Memory commands can come in byte, word,
2845 long, and longlong forms.
2846 * (monitor_ops): Change lots of fields. Generalize some stuff.
2847 Put all flags into flags word. Allow init to be a list of commands.
2848 Add command for clearing all breakpoints, block fill, dumping all
2849 registers.
2850 * remote-est.c: Rewrite to use new monitor conventions.
2851 * config/m68k/est.mt (TDEPFILES): Add monitor.o.
2852 * config/m68k/tm-est.h: Set NUM_REGS to 18.
2853 * testsuite/gdb.base/break.exp: Lots of cleanups. Use gdb_test
2854 more thoroughly.
2855
2856 Thu Mar 23 23:20:00 1995 Jeff Law (law@snake.cs.utah.edu)
2857
2858 * somsolib.c (som_solib_add): Handle case where a shared library
2859 referenced by a core file has sections without the SEC_ALLOC bit
2860 set (eg stabs sections).
2861
2862 Thu Mar 23 15:07:08 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2863
2864 * breakpoint.c (bpstat_do_actions): For each element in the bpstat
2865 chain, do all the commands regardless of whether they run the
2866 inferior.
2867
2868 Wed Mar 22 19:17:06 1995 Doug Evans <dje@cygnus.com>
2869
2870 * mem-break.c (LITTLE_BREAKPOINT, BIG_BREAKPOINT): Define as
2871 BREAKPOINT if mono-endian.
2872 (break_insn): Deleted.
2873 (big_break_insn, little_break_insn): Define.
2874 (memory_insert_breakpoint): Handle bi-endian cpus.
2875 (BREAKPOINT_LEN): Define.
2876 (memory_remove_breakpoint): Use it.
2877 (memory_breakpoint_size): Likewise.
2878
2879 Tue Mar 21 17:03:17 1995 Kung Hsu <kung@mexican.cygnus.com>
2880
2881 * sparc-stub.c: add nop after 'bg good_wim'.
2882 * sparcl-stub.c: ditto.
2883
2884 Tue Mar 21 13:34:12 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2885
2886 * infrun.c (handle_command): Don't print TARGET_SIGNAL_0,
2887 TARGET_SIGNAL_UNKNOWN, or TARGET_SIGNAL_DEFAULT.
2888
2889 Mon Mar 20 10:09:59 1995 Jeff Law (law@snake.cs.utah.edu)
2890
2891 * hppab-nat.c (store_inferior_registers): Sync with HPUX version.
2892
2893 Mon Mar 20 07:34:48 1995 Stu Grossman (grossman@cygnus.com)
2894
2895 * hppah-nat.c (store_inferior_registers): Move check for
2896 CANNOT_STORE_REGISTER to a better place. Fixes ptrace I/O errors
2897 found by test suite during function calls, which attempts to write
2898 unwritable registers.
2899
2900 Sat Mar 18 02:02:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2901
2902 * mdebugread.c (parse_symbol): If finishing a function without
2903 known parameter type info, set that from parameter symbols.
2904 Remove commented-out add_param_to_type support.
2905
2906 Thu Mar 16 16:38:03 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2907
2908 * xcoffread.c (process_linenos): Make sure filename we pass to
2909 start_subfile will cause deduce_language_from_filename to return
2910 the correct thing. Reindent function to GNU standards.
2911
2912 Thu Mar 16 15:54:00 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2913
2914 * nlm/gdbserve.c (handle_exception): #if out call to StopBell,
2915 as it is not available on NetWare 3 or PIN.
2916 * nlm/ppc.c (StopBell): Removed.
2917
2918 Thu Mar 16 12:14:41 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2919
2920 * xcoffread.c (read_xcoff_symtab): When creating a dummy parameter
2921 inferred from the traceback tags, give its type the name
2922 "<non-float parameter>".
2923
2924 * stabsread.c (rs6000_builtin_type): Recognize types -31 to -34.
2925
2926 Wed Mar 15 15:09:29 1995 Stu Grossman (grossman@cygnus.com)
2927
2928 * findvar.c (read_register_bytes write_register_bytes): Make
2929 these routines much smarter about updating registers from the
2930 target, only doing so when absolutely necessary. This really
2931 speeds up register modification on some remote targets.
2932
2933 * monitor.c: More cleanups. Get rid of monitor_load_ascii_srec.
2934 BFD makes this unnecessary. Lots of debugging speedups.
2935 * (expect): NULL terminate return string.
2936 * (monitor_open monitor_supply_register parse_register_dump
2937 monitor_wait monitor_fetch_register): Switch to using GNU regexp
2938 library to parse multi-register displays.
2939 * (monitor_read_memory): Read multiple bytes (up to 16) at once.
2940 * (monitor_create_inferior): Call clear_proceed_status to make run
2941 command notice first breakpoint.
2942 * (monitor_load): Clean up. Reset inferior_pid, set pc to start
2943 address and reset symbol table stuff to make loads put things into
2944 a fresh state.
2945 * (monitor_load_srec): Lower sleep time to 1 second.
2946
2947 * monitor.h (struct monitor_ops): Add register_pattern and
2948 supply_register to monitor_ops.
2949
2950 * rom68k-rom.c: Add new support for handling register dumps.
2951 * config/m68k/tm-m68k.h: Define D0_REGNUM and A0_REGNUM for register
2952 dump handling.
2953
2954 Wed Mar 15 15:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2955
2956 * utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
2957 argument be an int, not a char. Using a prototype followed by an
2958 old-style function definition in a case where an argument is
2959 widened is a GCC-ism not supported by the native AIX compiler.
2960
2961 Wed Mar 15 12:22:35 1995 J.T. Conklin <jtc@rtl.cygnus.com>
2962
2963 * nlmstub.def: Removed, this was moved to nlm/gdbserve.def
2964 long ago.
2965
2966 * configure.in (alpha-*-netware*): Removed configuration.
2967 * config/alpha/{alpha-nw.mt, gdbserve.mt, tm-alphanw.h}: Removed.
2968 * nlm/{README-ALPHA-NETWARE, aio.h, alpha-io.S, alpha-regdef.h,
2969 alpha.c, alpha.h, altdebug.h}: Removed.
2970
2971 * nlm/gdbserve.c (main): Add support for processing BOARD=
2972 argument, deprecate NODE=.
2973
2974 Wed Mar 15 10:58:26 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2975
2976 * c-exp.y (yylex): Make an empty character constant an error.
2977
2978 Tue Mar 14 15:00:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
2979
2980 * valops.c (value_arg_coerce): Do possible value_coerce_array
2981 before determining type argument to value_cast.
2982
2983 Tue Mar 14 10:41:41 1995 Kung Hsu <kung@mexican.cygnus.com>
2984
2985 * remote-es.c: Replace ignore with 0.
2986
2987 Tue Mar 14 05:52:36 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
2988
2989 * valops.c (value_repeat), eval.c (evaluate_subexp_standard):
2990 If VALUE_REPEATED is already set, just error out.
2991
2992 * valops.c (value_cast, value_slice), parse.c (follow_types): Add
2993 FIXME-type-allocation comments.
2994
2995 * gdbtypes.h (struct type): Fix comment about what units the
2996 TYPE_LENGTH is in.
2997
2998 Mon Mar 13 18:27:25 1995 Stan Shebs <shebs@andros.cygnus.com>
2999
3000 * ch-valprint.c (annotate.h): Include.
3001 * eval.c (evaluate_subexp_standard): Remove unused variable.
3002 (calc_f77_array_dims): Add parens to expression.
3003 * f-exp.y (yylex): Add parens to expression, remove unused label.
3004 * f-lang.h (calc_f77_array_dims): Declare.
3005 * f-valprint.c (f_val_print): Remove unused variables.
3006
3007 Mon Mar 13 15:25:47 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3008
3009 * alpha-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
3010 use the PDR, just examine prologues instead.
3011
3012 start-sanitize-arc
3013 Fri Mar 10 16:13:18 1995 Kung Hsu <kung@mexican.cygnus.com>
3014
3015 * config/tm-arc.h: Change arc register names.
3016 end-sanitize-arc
3017
3018 Fri Mar 10 02:49:40 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3019
3020 Fix problems with infinite recursion when printing a class
3021 that contains a static instance of the class.
3022 * cp-valprint.c (dont_print_vb_obstack): Renamed from
3023 dont_print_obstack, made static.
3024 (dont_print_statmem_obstack): New obstack, controls printing
3025 of static member classes.
3026 (_initialize_cp_valprint): Initialize it.
3027 (cp_print_static_field): New function, handles printing of
3028 static members.
3029 (cp_print_value_fields): New parameter dont_print_statmem to
3030 handle recursive printing of static member classes, use
3031 cp_print_static_field to handle printing of static members.
3032 * c-valprint.c (cp_print_value_fields): Update prototype and
3033 call to include additional dont_print_statmem parameter.
3034 * c-valprint.c, f-valprint.c (dont_print_obstack): Remove unused
3035 extern declaration.
3036
3037 * alpha-tdep.c, findvar.c, infptrace.c: Include <string.h>.
3038
3039 * config/alpha/tm-alpha.h (FRAME_FIND_SAVED_REGS): Call
3040 alpha_find_saved_regs if fi->saved_regs is still NULL.
3041
3042 * elfread.c (elf_symtab_read): Ensure that the filename field
3043 of a minsym is nonempty. Ignore solib trampoline symbols from
3044 the main symbol table, they might have a bogus value.
3045
3046 * procfs.c (set_proc_siginfo), config/alpha/alpha-osf2.mh:
3047 Fix typos in comments.
3048
3049 Thu Mar 9 17:19:47 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3050
3051 * mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
3052 pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1. That way
3053 we know whether the PDR ever got set.
3054 * mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't
3055 use the PDR, just examine prologues instead.
3056
3057 Wed Mar 8 23:35:10 1995 Jeff Law (law@snake.cs.utah.edu)
3058
3059 * somsolib.c (som_solib_section_offsets): Get offset of text
3060 section right.
3061
3062 Wed Mar 8 16:12:21 1995 Stu Grossman (grossman@cygnus.com)
3063
3064 start-sanitize-gdbtk
3065 * gdbtk.c (gdb_get_breakpoint_info): Return error if breakpoint
3066 type is not bp_breakpoint.
3067 end-sanitize-gdbtk
3068
3069 * source.c (forward_search_command reverse_search_command): Set
3070 convenience variable $_ to be the line # of the match.
3071 * symtab.c (decode_line_1): Allow convenience variables to be
3072 used in line specs (for breakpoints and such).
3073
3074 Wed Mar 8 12:51:00 1995 Stan Shebs <shebs@andros.cygnus.com>
3075
3076 * Makefile.in (VERSION): Bump to 4.14.1.
3077 * NEWS, README: Update for 4.14.
3078 * i386v-nat.c (i386_insert_aligned_watchpoint): Fix declaration.
3079 (i386_insert_nonaligned_watchpoint): Call aligned instead of
3080 generic watchpoint insertion.
3081
3082 Tue Mar 7 19:26:10 1995 Per Bothner <bothner@kalessin.cygnus.com>
3083
3084 * valops.c (value_slice): Do COERCE_VARYING_ARRAY.
3085
3086 Tue Mar 7 00:23:47 1995 Stu Grossman (grossman@cygnus.com)
3087
3088 * monitor.c, array-rom.c, monitor.h, rom68k-rom.c: Move target_ops
3089 into monitor.c.
3090 * monitor.c (monitor_create_inferior): Allow run command to start
3091 program.
3092
3093 * monitor.c (monitor_load): Set PC to start address when done
3094 loading.
3095
3096 * array-rom.c, monitor.h, rom68k-rom.c: Clean up target_ops.
3097 Remove ref to monitor_create_inferior.
3098
3099 * monitor.c: More general cleanups. Add prototypes, remove
3100 unused routines. Fix bug with wrong number of args to error().
3101
3102 * main.c (main): Don't start up GUI when running under gdb mode
3103 in emacs.
3104
3105 * Makefile.in: Add rules for monitor.o and rom68k-rom.o to make
3106 Sun make (with VPATH) work...
3107
3108 * monitor.c, monitor.h, rom68k-rom.c: Serious cleanup to make IDP
3109 (rom68k) target work right.
3110 * array-rom.c, op50-rom.c, w89k-rom.c: Partial updates to new
3111 monitor.c interface. More work needs to be done here.
3112 * config/m68k/tm-monitor.h: Change DECR_PC_AFTER_BREAK to 0 to
3113 match the IDP monitor. Also, set NUM_REGS to 18 cuz there's no
3114 floating-point for this card.
3115
3116 * serial.h, ser-go32.c, ser-go32-para.c, ser-mac.c, ser-tcp.c,
3117 ser-unix.c: Add SERIAL_SETSTOPBITS to set the number of stopbits
3118 (needed for IDP board?!?!?).
3119
3120 * defs.h, utils.c, remote-hms.c, remote-pa.c, remote.c: Fix defs
3121 and usage of fputc_unfiltered and putchar_unfiltered. Eliminate
3122 putc_unfiltered (it's superfluous).
3123
3124 * command.h, command.c, top.c: Add var_enum command type. It's
3125 like var_string but allows only only one of the specified strings.
3126
3127 Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3128
3129 * valops.c (value_cast): Don't use backslash newline--pre-ANSI
3130 compilers (such as SunOS4 /bin/cc) don't generally support it
3131 except in some contexts.
3132
3133 Fri Mar 3 17:42:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
3134
3135 * valops.c (value_cast): Check for cast to array type *before*
3136 we coerce array to pointer (in case arg2 is already array).
3137
3138 * valops.c (call_function_by_hand): Set using_gcc to 2 if using
3139 gcc2. Needed for REG_STRUCT_HAS_ADDR to work on sparc.
3140 Also check REG_STRUCT_HAS_ADDR for union, array and string types.
3141
3142 * valops.c (call_function_by_hand): Re-arrange code for pushing
3143 paramaters on the stack so we can do better STACK_ALIGN.
3144
3145 * valops.c (call_function_by_hand): Call error if the number
3146 of arguments is fewer than parameter types in function type.
3147
3148 Fri Mar 3 17:13:05 1995 Doug Evans <dje@canuck.cygnus.com>
3149
3150 * sparc-tdep.c (sparc_extract_struct_value_address): Move
3151 sparc64 support to here.
3152 (sparc64_extract_struct_value_address): Deleted.
3153 (dump_ccreg): Add a prototype so long long arg -> int.
3154 * sparc/tm-sp64.h (USE_STRUCT_CONVENTION): Define.
3155 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3156
3157 Fri Mar 3 15:12:12 1995 Jeff Law (law@snake.cs.utah.edu)
3158
3159 * hpread.c (hpread_record_lines): New argument "offset". All
3160 callers changed. Use it to handle dynamic address relocation.
3161 (hpread_build_psymtabs): Adjust texthigh as we read each function
3162 debug symbol. Fix computation of texthigh.
3163 (hpread_read_subrange_type): Work around macro bugs in HP's
3164 compilers.
3165 (hpread_process_one_debug_symbol): Correctly map source lines.
3166
3167 * somread.c (check_strange_names): Filter names emitted by the HP
3168 compiler when generating PIC code.
3169
3170 * valops.c (value_struct_elt_for_reference): Work around macro
3171 bugs in HP's compilers.
3172 * c-exp.y (block): Likewise.
3173
3174 Fri Mar 3 12:27:28 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3175
3176 * rs6000-tdep.c (push_dummy_frame): Fix order of arguments to
3177 store_address.
3178
3179 * utils.c [_AIX]: Include stddef.h instead of #defining size_t.
3180
3181 Fri Mar 3 12:33:24 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3182
3183 * rs6000-tdep.c (skip_prologue): Skip multiple stores of the saved
3184 registers that GCC emits on the PowerPC by default in addition to
3185 the store multiple instruction used on the Power series.
3186
3187 Fri Mar 3 00:54:58 1995 Doug Evans <dje@canuck.cygnus.com>
3188
3189 * sparc-tdep.c (decode_asi): New function.
3190 (sparc_print_register_hook): Pretty print more v9 registers.
3191 * sparc/tm-sp64.h (REGISTER_NAMES): Fix some typos.
3192
3193 Thu Mar 2 22:20:22 1995 Doug Evans <dje@canuck.cygnus.com>
3194
3195 * dwarfread.c (struct dieinfo): Use CORE_ADDR for at_{low,high}_pc.
3196 (target_to_host): Change result type to CORE_ADDR.
3197
3198 Thu Mar 2 15:13:04 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3199
3200 * rs6000-tdep.c: Fix byte-swapping sins.
3201
3202 Thu Mar 2 16:48:45 1995 Michael Meissner <meissner@cygnus.com>
3203
3204 * rs6000-tdep.c (branch_dest): Minor code cleanup, don't share
3205 code between branch unconditional and branch conditional cases.
3206
3207 Wed Mar 1 09:41:26 1995 Doug Evans <dje@canuck.cygnus.com>
3208
3209 Various changes for sparc64.
3210 * sparc-tdep.c (NUM_SPARC_FPREGS): Define.
3211 (SPARC_INTREG_SIZE): Define.
3212 (*): Use SPARC_INTREG_SIZE instead of REGISTER_RAW_SIZE (intreg)
3213 where appropriate.
3214 (enum branch_type): New value `done_retry'.
3215 (isbranch): Renamed from isannulled. All callers changed.
3216 Support new sparc64 branch insns.
3217 (single_step): Handle done_retry.
3218 (sparc_extract_struct_value_address): Don't assume 4 byte regs.
3219 (get_saved_register): Likewise.
3220 (sparc_push_dummy_frame): Likewise.
3221 (sparc_frame_find_saved_regs): Likewise.
3222 (sparc_pop_frame): Likewise. Don't refer to FPS_REGNUM, CPS_REGNUM,
3223 or PS_REGNUM if not sparc64. sparc64 has 64 fp regs.
3224 (sparc64_extract_struct_value_address): New function.
3225 (dump_ccreg, sparc_print_register_hook): Likewise.
3226 * sp64-tdep.c: Deleted.
3227 * sparc/tm-sp64.h (GDB_TARGET_IS_SPARC64): Define.
3228 (NUM_REGS): Reduce by 2, cle/tle are in the pstate reg.
3229 (CC_HAS_LONG_LONG): Define.
3230 (REGISTER_NAMES): Delete cle/tle and reorganize.
3231 (PS_REGNUM, FPS_REGNUM, CPS_REGNUM): Delete, they're ifdef'd out of
3232 sparc-tdep.c now.
3233 (REGISTER_BYTES): Update.
3234 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Delete.
3235 (EXTRACT_RETURN_VALUE): Delete. Use definition in tm-sparc.h.
3236 (NO_SINGLE_STEP): Likewise.
3237 * sparc/tm-sparc.h (EXTRACT_VALUE_RETURN): Don't assume 4 byte regs.
3238 * sparc/sp64.mt: Move simulator support ...
3239 * sparc/sp64sim.mt: ... to here.
3240
3241 Wed Mar 1 13:14:42 1995 Kung Hsu <kung@mexican.cygnus.com>
3242
3243 * remote-vx960.c: new file for target specific register packaging.
3244 * remote-vx68.c: ditto.
3245 * config/i960/vxworks960.mt: add remote-vx960.o.
3246 * config/m68k/vxworks68.mt: add remote-vx68.o.
3247
3248 Wed Mar 1 13:42:49 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3249
3250 * remote.c (remote_wait): Make calls to strtol be type correct by
3251 passing the address of a char * pointer instead of an unsigned
3252 char *.
3253
3254 * rs6000-tdep.c (push_dummy_frame): Cast sp to char * when calling
3255 write_memory to make things type correct.
3256
3257 Wed Mar 1 12:17:31 1995 Michael Meissner <meissner@cygnus.com>
3258
3259 * ch-exp.y, c-exp.y, f-exp.y, m2-exp.y (yy defines): Support the
3260 standard Linux yacc by adding more names to be redefined with a
3261 prefix.
3262
3263 Tue Feb 28 22:55:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3264
3265 * hppa-tdep.c (pa_print_registers), monitor.c: Use
3266 extract_unsigned_integer and friends, not SWAP_TARGET_AND_HOST.
3267 * defs.h, findvar.c: Move SWAP_TARGET_AND_HOST back to findvar.c.
3268 Rename it to SWAP_FLOATING to make it clear it is no longer for
3269 integers.
3270
3271 Tue Feb 28 14:38:39 1995 Kung Hsu <kung@mexican.cygnus.com>
3272
3273 * defs.h (SWAP_TARGET_AND_HOST): check endianess at runtime not
3274 compile time.
3275
3276 start-sanitize-arc
3277 * arc-tdep.c (_initialize_arc_tdep): set tm_print_insn according to
3278 processor.
3279 * remote-arc.c (arc_wait): when a processor stops, stop other two
3280 processors too.
3281 * remote-arc.c (switch_command): switch tm_print_insn.
3282 end-sanitize-arc
3283
3284 * vx-share/ptrace.h: merge in WRS new ptrace requests.
3285
3286 * defs.h: fix a syntax error.
3287
3288 * a29k-tdep.c (get_longjmp_target): add this function, from WRS.
3289 * remote-vx.c: move read_register and write_register out to
3290 target specific files.
3291 * remote-vx29k.c (get_fp_contnets): add this function, from WRS.
3292
3293 * defs.h: define SWAP_TARGET_AND_HOST macro.
3294 * findvar.c, monitor.c, hppa-tdep.c: remove definition of
3295 SWAP_TARGET_AND_HOST.
3296
3297 Tue Feb 28 08:31:40 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3298
3299 * alpha-tdep.c (find_proc_desc): Only attempt to set
3300 PROC_LOCALOFF (found_heuristic) if found_heuristic is non-NULL.
3301
3302 Mon Feb 27 11:56:32 1995 Stan Shebs <shebs@andros.cygnus.com>
3303
3304 * monitor.c: General gcc -Wall lint cleanup and reformat.
3305 (monitor_command): If no args, send an empty command.
3306
3307 Thu Feb 23 21:07:25 1995 Stu Grossman (grossman@cygnus.com)
3308
3309 * monitor.c (monitor_load_ascii_srec): Add a one second sleep
3310 after send LOAD_CMD to prevent loss of first S-record.
3311
3312 Tue Feb 21 20:48:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
3313
3314 * valops.c (call_function_by_hand): Set using_gcc to 2 if gcc-2.
3315 Call error if too few arguments.
3316 If REG_STRUCT_HAS_ADDR (structs passed by invisible reference),
3317 copy and convert to reference *before* we calculate alignment.
3318 Also, make sure structs allocated for return values and invisible
3319 reference don't violate STACK_ALIGN.
3320
3321 Tue Feb 21 23:29:59 1995 Per Bothner <bothner@rtl.cygnus.com>
3322
3323 * ch-exp.y (expression_conversion): Recognize 'ARRAY () TYPE (EXPR)'
3324 (same as C's '(TYPE[])EXPR')
3325
3326 Tue Feb 21 11:47:26 1995 Stan Shebs <shebs@andros.cygnus.com>
3327
3328 * top.c (print_gdb_version): Update the year.
3329
3330 Sun Feb 19 14:31:57 1995 Jim Kingdon <kingdon@rtl.cygnus.com>
3331
3332 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Look for newlib in
3333 `..' not in `../..'.
3334
3335 Sun Feb 19 11:05:28 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3336
3337 * procfs.c (unconditionally_kill_inferior): Don't issue a PIOCKILL
3338 in addition to a PIOCSSIG to kill the inferior.
3339
3340 Thu Feb 16 15:06:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
3341
3342 * parse.c (follow_types): Given (TYPE[]) (i.e. with no length),
3343 create a 0-length array type, and set BOUND_CANNOT_BE_DETERMINED.
3344 * valops.c (value_cast): If a cast like (TYPE[])VALUE (i.e. array
3345 of unknown length) use sizeof(VALUE)/sizeof(TYPE) as the length.
3346 * c-typeprint.c (c_type_print_varspec_suffix): If array length
3347 is 0, print it, but not if upper_bound is BOUND_CANNOT_BE_DETERMINED.
3348
3349 Thu Feb 16 16:06:50 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3350
3351 * dcache.c (insque, remque): Rewrite Linux support.
3352
3353 Wed Feb 15 12:33:20 1995 Michael Meissner <meissner@tiktok.cygnus.com>
3354
3355 * config/powerpc/tm-ppc-eabi.h (TEXT_SEGMENT_BASE): Define as 1.
3356
3357 * dcache.c (insque, remque): If compiling in standard C on Linux,
3358 protect insque and remque with macros to cast the pointer
3359 arguments to the proper type.
3360
3361 Tue Feb 14 17:16:41 1995 Stu Grossman (grossman@cygnus.com)
3362
3363 * annotate.c, breakpoint.c, defs.h, top.c: Replace
3364 enable/disable_breakpoint_hook with modify_breakpoint_hook.
3365 start-sanitize-gdbtk
3366 * gdbtk.c: Ditto.
3367 * gdbtk.c: General cleanups, get rid of unused variables. Redo
3368 handling of stdout/stderr to just return output as the result of
3369 the tcl command that caused the output. Cleanup -Wall stuff.
3370 * (breakpoint_notify): Now returns just action and breakpoint
3371 number.
3372 * (gdb_get_breakpoint_list): New routine. Does the obvious.
3373 * (gdb_get_breakpoint_info): Mostly derived from the old
3374 breakpoint_notify, but returns lots more info.
3375 * (dsprintf_append_element): Helper routine, works like printf,
3376 but appends a tcl element onto the specified DString. Good for
3377 building up lists as return values.
3378 * (gdbtk_enable/disable_breakpoint): Go away. Replaced with
3379 gdbtk_modify_breakpoint.
3380 * (*many routines*): Use new result protocol.
3381 * (call_wrapper): Make sure that recursive calls don't trash results.
3382 * gdbtk.tcl: New windows, autocmd, and breakpoints.
3383 * (gdbtk_tcl_fputs): Don't use $current_output_win redirection
3384 anymore. It's not needed (in fact, this routine may not be needed
3385 anymore).
3386 * (gdbtk_tcl_breakpoint): Change to reflect new breakpoint
3387 notification protocol.
3388 * (gdbtk_tcl_busy gdbtk_tcl_idle): Straighten out buttons, remove
3389 catches.
3390 * (interactive_cmd): Use this wrapper around button invocations
3391 of many commands. This will catch errors and put the results into
3392 the command window. It also updates all the other windows.
3393 * Also, change reliefs of most things to sunken. This actually
3394 looks better.
3395 * (create_file_win): Fix margin binding to allow breakpoints to
3396 work again.
3397 * (create_asm_win): Use return value of gdb_disassemble instead
3398 of implicit I/O to the command window.
3399 * (create_command_window): Use new result protocol to get output
3400 from commands.
3401 end-sanitize-gdbtk
3402
3403 Tue Feb 14 16:58:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3404
3405 * expression.h: Move declaration of evaluate_subexp_with_coercion
3406 from here...
3407 * value.h: ...to here.
3408 * expression.h: Don't include value.h
3409
3410 Tue Feb 14 11:46:07 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3411
3412 * expression.h: Move include of value.h until after declaration of
3413 enum exp_opcode.
3414
3415 Sun Feb 12 13:47:30 1995 Stan Shebs <shebs@andros.cygnus.com>
3416
3417 * remote-e7000.c: Comprehensive cleanup; removal of dead code,
3418 simplify code, declare things, format to standards.
3419 (inferior.h, value.h, command.h, remote-utils.h): Include.
3420 (e7000_login): Rename to e7000_login_command.
3421 (e7000_ftp): Rename to e7000_ftp_command.
3422 (e7000_drain): Rename to e7000_drain_command.
3423
3424 * irix5-nat.c (string.h): Include near beginning of file.
3425
3426 Sun Feb 12 12:36:38 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3427
3428 * valops.c (value_arg_coerce): Use VALUE_TYPE not SYMBOL_TYPE on
3429 arg, it is a value not a symbol.
3430
3431 gcc -Wall lint:
3432 * eval.c: Move declaration of evaluate_subexp_with_coercion from here..
3433 * expression.h: ..to here.
3434 * expression.h: Include value.h.
3435 * ch-lang.c (evaluate_subexp_chill): Add default case in switch.
3436
3437 Sun Feb 12 11:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
3438
3439 * language.h (struct language_defn): New field evaluate_exp.
3440 * c-lang.c (c_language_defn, cplus_language_defn, asm_langauge_defn),
3441 f-lang.c (f_language_defn), language.c (unknown_language_defn,
3442 auto_language_defn, local_language_defn), m2-lang.c (m2_language_defn):
3443 Set evaluate_exp to evaluate_subexp_standard.
3444 * ch-lang.c (evaluate_subexp_chill): New function. Chill-specific
3445 support for MULTI_SUBSCRIPT.
3446 (chill_language_defn): Set evaluate_exp to evaluate_subexp_chill.
3447 * eval.c (enum noside): Move from here ....
3448 * expression.h (enum noside): ... to here.
3449 (evaluate_subexp_standard): New prototype.
3450 * eval.c (evaluate_subexp): Renamed to evaluate_subexp_standard.
3451 Removed lo-longer-needed test for chill_varying_type.
3452 (evaluate_subexp): New. Calls exp->language_defn->evaluate_exp.
3453
3454 * ch-exp.y (maybe_expression_list): New non-terminal.
3455 (primitive_value): Allow empty parameter list.
3456
3457 Sun Feb 12 10:02:16 1995 Per Bothner <bothner@cygnus.com>
3458
3459 * buildsym.c (finish_block): If finishing a function without known
3460 parameter type info, set that from parameter symbols.
3461 * c-typeprint.c (c_type_print_varspec_suffix): For TYPE_CODE_FUNC,
3462 print parameter types, if available.
3463 * ch-typeprint.c (chill_type_print_base): Likewise.
3464
3465 * gdbtypes.h (struct type): Remove function type field.
3466 (TYPE_FUNCTION_TYPE): Remove macro. We can't as simply re-use
3467 function types now that we're also storing parameter types.
3468 And the payoff is much less.
3469 * gdbtypes.c (make_function_type): Don't use/set TYPE_FUNCTION_TYPE.
3470 (recursive_dump_type): Don't print TYPE_FUNCTION_TYPE.
3471 * dwarfread.c (read_subroutine_type): Don't set TYPE_FUNCTION_TYPE.
3472
3473 * valops.c (value_arg_coerce): Now takes param_type argument.
3474 (call_function_by_hand): Convert arguments with value_arg_coerce
3475 early, and overwrite original args with converted args.
3476 No longer need multiple calls to value_arg_coerce.
3477 (value_arg_push): Removed.
3478 * hppa-tdep.c (hppa_push_arguments): No longer call value_arg_coerce.
3479 * mips-tdep.c (mips_push_arguments): Likewise.
3480 * alpha-tdep.c (alpha_push_arguments): Likewise.
3481 * rs6000-tdep.c (push_arguments, ran_out_of_registers_for_arguments):
3482 Likewise.
3483 * value.h (value_arg_coerce): Remove declaration. (It's now static.)
3484
3485 * valops.c (value_cast): Do COERCE_VARYING_ARRAY after COERCE_REF.
3486
3487 * symtab.c (add_param_to_type): Remove (commented-out) function,
3488 since that functionality has been re-written.
3489 * coffread.c: Remove commented-out add_param_to_type support.
3490 * mdebugread.c (parse_symbol): Likewise.
3491 * stabsread.c (define_symbol): Likewise.
3492
3493 Sun Feb 12 09:03:47 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3494
3495 * buildsym.c (start_subfile): Set language for f2c like for cfront.
3496
3497 Thu Feb 9 20:20:11 1995 Rob Savoye <rob@darkstar.cygnus.com>
3498
3499 * op50n-rom.c: Add the control registers.
3500
3501 Thu Feb 9 15:46:39 1995 Stan Shebs <shebs@andros.cygnus.com>
3502
3503 * Makefile.in (CLIBS): Add $(LIBIBERTY) before, in addition to
3504 after, any host/target/native libraries.
3505 * dcache.c (insque, remque): Remove declarations.
3506 * gdbtypes.h (type_code): Remove trailing comma.
3507
3508 From Peter Schauer:
3509 * xcoffread.c (read_xcoff_symtab) [C_HIDEXT]: Move #ifdef
3510 STATIC_NODEBUG_VARS inside case.
3511
3512 Thu Feb 9 07:43:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3513
3514 * config/sparc/tm-sun4sol2.h: Define STATIC_TRANSFORM_NAME.
3515 * partial-stab.h: Call it.
3516 * stabsread.c (define_symbol) [STATIC_TRANSFORM_NAME]: Call
3517 STATIC_TRANSFORM_NAME to get the name and use minimal symbols to
3518 get the address.
3519 * sparc-tdep.c (solaris_static_transform_name): New function.
3520
3521 Thu Feb 9 12:09:09 1995 Jeff Law (law@snake.cs.utah.edu)
3522
3523 * somread.c (som_symtab_read): Handle dynamic relocation for both
3524 text and data symbols.
3525 (som_symfile_offsets): If objfile is a shared library, then get
3526 text and data offsets from the shared library structures.
3527 * somsolib.c (som_solib_add): Copy the bfd pointer from the
3528 objfile rather than reopening the file again.
3529 (som_solib_section_offsets): New function.
3530 * somsolib.h (som_solib_section_offsets): Declare.
3531
3532 Wed Feb 8 20:32:18 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3533
3534 * config/sparc/tm-sun4sol2.h, dbxread.c: Rename
3535 N_SO_ADDRESS_MAYBE_MISSING to SOFUN_ADDRESS_MAYBE_MISSING.
3536 * symtab.h (minimal_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]: Add
3537 filename field.
3538 * elfread.c (record_minimal_symbol_and_info),
3539 minsyms.c, symtab.h (prim_record_minimal_symbol_and_info): Return
3540 newly created symbol.
3541 * elfread.c (elf_symtab_read) [SOFUN_ADDRESS_MAYBE_MISSING]:
3542 Set filename field of minimal symbol.
3543 * symmisc.c (dump_msymbols) [SOFUN_ADDRESS_MAYBE_MISSING]:
3544 Print filename field.
3545 * minsyms.c, symtab.h (lookup_minimal_symbol): New arg sfile.
3546 * symm-tdep.c, somsolib.c, hppa-tdep.c, c-exp.y, f-exp.y,
3547 m2-exp.y, nindy-tdep.c, m3-nat.c, irix5-nat.c, hpread.c,
3548 os9kread.c, breakpoint.c, alpha-tdep.c, valops.c, symtab.c,
3549 printcmd.c, dbxread.c: Change callers to pass NULL for sfile.
3550 * dbxread.c (process_one_symbol) [SOFUN_ADDRESS_MAYBE_MISSING]:
3551 Find address of function from minimal symbols.
3552 * partial-stab.h, case 'f', 'F': Call find_stab_function_addr
3553 instead of getting pst->textlow from the stab.
3554 * minsyms.c (find_stab_function_addr): New function.
3555
3556 Wed Feb 8 19:19:56 1995 Rob Savoye <rob@darkstar.cygnus.com>
3557
3558 * monitor.c: Fix so all the output shows up in the GUI command
3559 window.
3560
3561 Mon Feb 6 18:50:59 1995 Stan Shebs <shebs@andros.cygnus.com>
3562
3563 * i386-tdep.c (_initialize_i386_tdep): Put void decl on separate
3564 line, so init.c generation works correctly.
3565 start-sanitize-arc
3566 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3567 end-sanitize-arc
3568
3569 Mon Feb 6 14:44:36 1995 Rob Savoye <rob@darkstar.cygnus.com>
3570
3571 * config/mips/idt.mt: Add support for the lsi33k target.
3572 * config/sparc/sun4sol2.mh: Add support for ser-tcp.
3573 * array-rom.c: Finish the rest of the support commands needed by
3574 GDB.
3575 * mips-tdep.c: Add LSI33k register names and processor type.
3576
3577 start-sanitize-gdbtk
3578 Sun Feb 5 20:32:44 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3579
3580 * gdbtk.c (gdb_disassemble): Deference pointer to function before
3581 calling it (pre-ANSI compilers generally require this).
3582
3583 end-sanitize-gdbtk
3584 Sat Feb 4 13:29:52 1995 Stan Shebs <shebs@andros.cygnus.com>
3585
3586 * config/m68k/est.mt (TDEPFILES): Remove m68k-pinsn.o.
3587
3588 Fri Feb 3 16:47:31 1995 Kung Hsu <kung@mexican.cygnus.com>
3589
3590 * ser-go32-para.c (dos_read): fix syntax errors.
3591
3592 Fri Feb 3 11:19:20 1995 Stu Grossman (grossman@cygnus.com)
3593
3594 * core.c (dis_asm_read_memory), defs.h, top.c: Get rid of
3595 dis_asm_read_memory_hook. We can now call the disassemblers
3596 directly and have no need for this hook anymore.
3597 start-sanitize-gdbtk
3598 * gdbtk.c (gdb_disassemble): Ditto.
3599 end-sanitize-gdbtk
3600 * defs.h, printcmd.c: Make print_insn be static.
3601
3602 * ser-go32.c (dos_comisr): Make this 8 bit clean.
3603 * (dos_open dos_close): Allow multiple opens to the same device.
3604 Use a ref count to prevent unwanted deallocations.
3605 * sparcl-tdep.c: Put #ifdefs around all socket stuff to make GO32
3606 happy.
3607 * (sparclite_ops): Switch to download_stratum.
3608 * target.h (enum strata): Move download_stratum before
3609 process_stratum so that executable targets get pushed on top of
3610 download targets.
3611
3612 Thu Feb 2 19:02:45 1995 Rob Savoye <rob@darkstar.cygnus.com>
3613
3614 * array-rom.c: Remove the non GDB remote protocol config stuff.
3615
3616 * monitor.c: All reading/writing functions for memory and
3617 registers work.
3618
3619 Thu Feb 2 16:11:04 1995 Kung Hsu <kung@mexican.cygnus.com>
3620
3621 start-sanitize-arc
3622 * config/arc/arc.mt: new target makefile for arc processor.
3623 * config/arc/tm-arc.h: new target header for arc processor.
3624 * config/arc/go32.mh: new go32 host makefile for arc processor.
3625 * config/arc/xm-go32.h: new go32 host header for arc processor.
3626 * arc-tdep.c: new target dependent codes for arc processor.
3627 * remote-arc.c: new file for arc-specific protocol through
3628 parallel line.
3629 end-sanitize-arc
3630 * ser-go32-para.c: new file for go32 parallel port communication.
3631
3632 Thu Feb 2 13:58:40 1995 Stan Shebs <shebs@andros.cygnus.com>
3633
3634 * Makefile.in (VERSION): Bump to 4.13.2.
3635
3636 Thu Feb 2 07:27:56 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3637
3638 Fix compiler warnings:
3639 * remote-e7000.c (printf_e7000debug): Rename to puts_e7000debug
3640 and have the caller do the sprintf. Saves us from varargs hell.
3641 (normal): Define before use.
3642 * remote-e7000.c: Reindent a few things.
3643
3644 Wed Feb 1 21:16:42 1995 Per Bothner <bothner@kalessin.cygnus.com>
3645
3646 * f-typeprint.c (f_type_print_varspec_suffix): Print array index
3647 ranges in reverse order.
3648 * f-valprint.c (f77_create_arrayprint_offset_tbl): Fix calculation.
3649
3650 * eval.c (evaluate_subscript): Don't call value_subscript, since
3651 it adjusts for lower bound and enforces ranges.
3652
3653 * expression.h (exp_code): Remove MULTI_F77_SUBSCRIPT, OP_F77_SUBSTR.
3654 * eval.c, parse.c: Removed uses of removed opcodes.
3655 * eval.c (evaluate_subexp): Clean up handling of
3656 OP_UNDETERMINED_ARGLIST (no backtracking, more general).
3657
3658 * f-valprint.c (f_val_print): Print TYPE_CODE_STRING using
3659 LA_PRINT_STRING, and not val_print_string (which reads from inferior).
3660
3661 * ch-lang.c (chill_is_varying_struct), ch-lang.h: Remve function
3662 duplicate function made redundant by chill_varying_type.
3663
3664 Re-write of f77 string and complex number support:
3665
3666 * language.h (struct language_defn): New fields string_lower_bound
3667 and string_char_type.
3668 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn),
3669 language.c (unknown_language_defn, auto_language_defn,
3670 local_language_defn), m2-lang.c (m2_language_defn), f-lang.c
3671 (f_language_defn), ch-lang.c (chill_language_defn): Set new fields.
3672 * gdbtypes.c (create_string_type): Use new string_char_type field.
3673 * valops.c (value_string): Use new string_lower_bound field.
3674
3675 * defs.h (TARGET_COMPLEX_BIT, TARGET_DOUBLE_COMPLEX_BIT): Removed.
3676 * f-lang.c (f_create_fundamental_type, _initialize_f_language),
3677 m2-lang.c (m2_create_fundamental_type),
3678 gdbtypes.c (_initialize_gdbtypes): Set TYPE_TARGET_TYPE of complex
3679 types. Set their TYPE_CODEs to TYPE_CODE_COMPLEX.
3680 * mdebugread.c (mdebug_type_complex, mdebug_type_double_complex):
3681 Removed. Use builtin_type_complex and builtin_type_double_complex.
3682
3683 * gdbtypes.h (enum type_code): Removed TYPE_CODE_LITERAL_STRING
3684 and TYPE_CODE_LITERAL_COMPLEX.
3685 * c-typeprint.c, f-typeprint.c, f-valprint.c, eval.c: Removed uses of
3686 TYPE_CODE_LITERAL_STRING and TYPE_CODE_LITERAL_COMPLEX.
3687 * gdbtypes.c, gdbtypes.h (f77_create_literal_complex_type,
3688 f77_create_literal_string_type): Removed.
3689 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_MEMADDR,
3690 VALUE_SUBSTRING_MYADDR): Removed.
3691
3692 * expression.h (enum exp_opcode): Rename OP_F77_LITERAL_COMPLEX to
3693 OP_COMPLEX.
3694 * parse.c: Update accordingly.
3695
3696 * f-valprint.c (f77_print_cmplx): Removed.
3697 (f_val_print case TYPE_CODE_COMPLEX): Re-write to use print_floating.
3698
3699 * f-exp.y (STRING_LITERAL): Use OP_STRING instead of OP_ARRAY.
3700 * eval.c (evaluate_subexp): For case OP_ARRAY, don't call
3701 f77_value_literal_string.
3702 * valops.c, value.h (f77_value_literal_string, f77_value_substring,
3703 f77_assign_from_literal_string, f77_assign_from_literal_complex):
3704 Removed.
3705 (value_assign): No longer need to handle literal types.
3706 * valops.c (f77_value_literal_complex), value.h: Re-written and
3707 renamed to value_literal_complex. Last arg is now a (complex) type.
3708 * valops.c (f77_cast_into_complex): Re-written and renamed to
3709 cast_into_complex.
3710 * eval.c (evaluate_subexp): Update accordingly.
3711
3712 * ch-valprint.c (chill_val_print): On TYPE_CODE_STRING, don't
3713 print address for non-'s'-formats.
3714 * ch-typeprint.c, ch-valprint.c: Use chill_varying_type instead
3715 of chill_is_varying_struct.
3716
3717 Wed Feb 1 13:27:33 1995 Stan Shebs <shebs@andros.cygnus.com>
3718
3719 gcc -Wall lint.
3720 * alpha-tdep.c (alpha_in_lenient_prologue): Comment out.
3721 (after_prologue): Remove unused local b.
3722 * procfs.c (thread.h): Include.
3723 (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use
3724 nested braces in initializer.
3725 * top.c (initialize_targets, initialize_utils): Declare.
3726 (locate_arg, insert_args): Add parens around tested assignments.
3727 * remote-utils.c (sr_scan_args): Remove decl of strtol.
3728 * remote.c (thread.h): Include.
3729 (remote_wait): Remove unused local p2.
3730 * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of
3731 registers array.
3732
3733 defs.h (stdlib.h): Include.
3734 (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare.
3735 (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr,
3736 strtok, strerror): Don't specify parameter types in declaration.
3737
3738 Wed Feb 1 12:23:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
3739
3740 * ch-exp.y (value_string_element, string_primitive_value,
3741 start_element, left_element, right_element, slice_size,
3742 lower_element, upper_element, first_element): Removed.
3743 (value_string_slice, value_array_slice): Replaced by ...
3744 (slice): New non-terminal, with working slice support.
3745 (primitive_value_lparen, rparen): New non-terminals.
3746 (maybe_tuple_elements): New non-terminal, to allow empty tuples.
3747 (idtokentab): Added "up".
3748
3749 * value.h (COERCE_VARYING_ARRAY): New macro.
3750 * valarith.c (value_subscript): Use it.
3751 * valops.c (value_cast): Likewise. Also, do nothing if already
3752 correct type, and allow converting from/to range to/from scalar.
3753
3754 * valops.c, value.h (varying_to_slice, value_slice): New functions.
3755 * eval.c (OP_ARRAY): Add cast for array element.
3756 * expression.h (TERNOP_SLICE, TERNOP_SLICE_COUNT): New exp_opcodes.
3757 * valops.c (chill_varying_type): Moved function frp, here ...
3758 * gdbtypes.c (chill_varying_type), gdbtypes.h: ... to here.
3759 * parse.c (length_of_subexp, prefixify_subexp): Add support
3760 for TERNOP_SLICE, TERNOP_SLICE_COUNT.
3761 * expprint.c (print_subexp, dump_expression): Likewise.
3762 * eval.c (evaluate_subexp): Likewise.
3763
3764 * eval.c (evaluate_subexp case MULTI_SUBSCRIPT): Don't call
3765 value_x_binop on a Chill varying string.
3766
3767 Tue Jan 31 13:51:53 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3768
3769 * config/m68k/monitor.mt,
3770 config/pa/{hppabsd.mt,hppahpux.mt,hppaosf.mt,hppapro.mt}: Put
3771 depfiles in TDEPFILES not REMOTE_O.
3772
3773 Tue Jan 31 11:14:44 1995 Steve Chamberlain <sac@splat>
3774
3775 From nigel@algor.co.uk.
3776 * ser-go32.c (dos_close): Don't crash if scb null.
3777 (dos_sendbreak): New function.
3778 (dos_ops): Point to dos_sendbreak.
3779 (dos_info): Calculate COM number correctly.
3780
3781 Tue Jan 31 09:40:11 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3782
3783 * xcoffread.c (process_xcoff_symbol): Use new variables
3784 func_symbol_type and var_symbol_type as type of functions and
3785 variables which don't have any stabs associated with them.
3786 Reindent most of function.
3787 (_initialize_xcoffread): Initialize *_symbol_type.
3788
3789 * xcoffread.c (read_xcoff_symtab): Reindent most of function.
3790 Put C_HIDEXT symbols in the minimal symbols, rather than ignoring
3791 them (this part commented out as I didn't quite get it to work).
3792 (cs_to_section, find_targ_sec): New functions, to support above code.
3793 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Only skip '.' if it is
3794 actually present.
3795
3796 Mon Jan 30 17:34:24 1995 Stu Grossman (grossman@cygnus.com)
3797 start-sanitize-gdbtk
3798 * gdbtk.tcl (create_file_win): Disable old popup menu for source
3799 window.
3800 end-sanitize-gdbtk
3801 * sparcl-tdep.c: Add `sparclite' target for doing serial and udp
3802 downloads to SPARClite demo boards.
3803
3804 Sun Jan 29 09:43:22 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3805
3806 * remote.c, remote-pa.c: Remove #if 0'd icache code. It has had
3807 no hope of working as is for a long time (in particular, shebs' 27
3808 Jan 95 change confuses the issue further--target_read_memory and
3809 xfer_core_file do *not* do the same thing in this context).
3810 Revise comment.
3811
3812 Sat Jan 28 13:40:46 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3813
3814 * elfread.c (elf_symtab_read): Do not test BSF_GLOBAL for
3815 procedure linkage table symbols, it is no longer set due to the
3816 Jan 6 BFD change in bfd/elfcode.h.
3817
3818 Fri Jan 27 17:08:06 1995 Stan Shebs <shebs@andros.cygnus.com>
3819
3820 * top.c (use_windows): Clarify comments.
3821
3822 * convex-tdep.c (xfer_core_file): Comment out.
3823 * config/convex/tm-convex.h (XFER_CORE_FILE): Remove.
3824 * remote.c, remote-pa.c (remote_fetch_word): Change xfer_core_file
3825 references to target_read_memory.
3826 * gdbcore.h (xfer_core_file, core_open, core_detach): Remove
3827 declarations.
3828 * corelow.c (core_open, core_detach): Make static.
3829
3830 * arm-tdep.c: Make it compile.
3831 (exec_file_command, xfer_core_file): Comment out.
3832 (arm_print_insn): Remove, now in libopcodes.
3833 (skip_prologue): Comment out most of body.
3834 (arm_frame_find_saved_regs): Move here from tm-arm.h.
3835 (_initialize_arm_tdep): Set tm_print_insn.
3836 * config/arm/tm-arm.h: Remove old refs to first_object_file_end.
3837 (XFER_CORE_FILE): Remove.
3838 (FRAME_FIND_SAVED_REGS): Call arm_frame_find_saved_regs.
3839
3840 Fri Jan 27 08:48:28 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3841
3842 * Makefile.in (CHILL_LIB): Define as in testsuite/Makefile.in.
3843
3844 Thu Jan 26 18:24:41 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
3845
3846 * symtab.c (find_pc_line): When subtracting one to get a line
3847 number, make sure not to end up with zero.
3848
3849 * remote-vx.c: Revert all of Kung's changes of 16 Jan. The
3850 problems with those changes were (a) the file didn't compile, (b)
3851 they changed memset to bzero--memset is correct, (c) they took out
3852 code to deal with boards lacking floating point, (d) who knows
3853 what I didn't discover in a quick read.
3854
3855 Thu Jan 26 17:32:54 1995 Stu Grossman (grossman@cygnus.com)
3856
3857 * sparcl-tdep.c: Clean up formatting and indentation.
3858
3859 Thu Jan 26 10:49:59 1995 Steve Chamberlain <sac@splat>
3860
3861 * remote-hms.c (hms_ops): Change ref of hr_load_image
3862 to gr_load_image.
3863 (dcache_flush, dcache_hit, dcache_value, dcache_fetch,
3864 dcache_poke, dcache_init): Deleted.
3865 (hms_open, hms_resume, hms_fetch_word, hms_store_word):
3866 Use dcache routines provided by remote-util.h
3867
3868 Thu Jan 26 12:08:31 1995 Michael Meissner <meissner@cygnus.com>
3869
3870 * configure.in: Add support for powerpc-*-eabi.
3871
3872 * powerpc/tm-ppc-eabi.h, powerpc/pcc-eabi.mt: New files for
3873 PowerPC support.
3874
3875 Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
3876
3877 * language.h (struct language_defn): New field c_style_arrays.
3878 * language.c (unknown_language_defn, auto_language_defn,
3879 local_language_defn), c-lang.c (c_language_defn, cplus_language_defn,
3880 asm_language_defn): Set c_style_arrays to true.
3881 * m2-lang.c (m2_language_defn), ch-lang.c (chill_language_defn),
3882 f-lang.c (f_language_defn): Set c_style_arrays to false.
3883 * valops.c (value_string): If c_style_array is not set,
3884 allocate string in gdb (not inferior) using allocate_value.
3885
3886 * value.h (COERCE_ARRAY), valops.c (value_addr, value_arg_coerce):
3887 Only call value_coerce_array if current_language->c_style_arrays.
3888 * values.c: Add #include "language.h". (Needed for COERCE_ARRAY.)
3889
3890 * valops.c (chill_varying_type): New predicate.
3891 * valops.c (value_cast): Support assigning a fixed string or array
3892 to a variable string/array structure.
3893
3894 * valarith.c (value_subscripted_rvalue): Extra parameter lowerbound.
3895 Check index>=lowerbound, and then add lowerbound to index here,
3896 instead of in caller. Generalize to arbitrary lval_types.
3897 (value_subscript): Use enhanced value_subscripted_rvalue if
3898 c_style_arrays is false (and index is in range).
3899
3900 start-sanitize-gdbtk
3901 Wed Jan 25 18:23:46 1995 Stu Grossman (grossman@cygnus.com)
3902
3903 * gdbtk.c (gdbtk_init): Prevent segfault when gdbtk.tcl can't be
3904 found.
3905 * gdbtk.tcl: Initialize expr_update_list() to prevent errors when
3906 popping up expression window for the first time.
3907 end-sanitize-gdbtk
3908
3909 Wed Jan 25 18:13:14 1995 Per Bothner <bothner@kalessin.cygnus.com>
3910
3911 * eval.c (evaluate_subexp case OP_ARRAY): Fix calls to memset:
3912 TYPE_LENGTH is length in bytes, not bits.
3913
3914 Wed Jan 25 08:19:35 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3915
3916 * infrun.c (proceed): Flush stdout before resuming inferior.
3917 * infcmd.c (step_1), annotate.c (annotate_starting):
3918 Don't bother to flush here.
3919
3920 Wed Jan 25 01:11:21 1995 Jeff Law (law@snake.cs.utah.edu)
3921
3922 * hpread.c (hpread_process_one_debug_symbol): Fix lines garbled
3923 by an ill-advised global search and replace.
3924
3925 Tue Jan 24 12:10:28 1995 Stu Grossman (grossman@cygnus.com)
3926
3927 * gdbtk.tcl (create_registers_window): Work around a radiobutton
3928 widget bug to make Options|Natural button work.
3929
3930 * gdbtk.c (gdb_disassemble): Fix problem with source+assembly and
3931 g++ caused by out-of-order pc's.
3932 * gdbtk.tcl (files_command): Remove duplicate file names. Also,
3933 add scrollbar.
3934
3935 Mon Jan 23 17:21:09 1995 Stu Grossman (grossman@cygnus.com)
3936
3937 * gdbtk.tcl: Take .gdbtkinit if it exists. Makes gdbtk match the
3938 doc!
3939
3940 Mon Jan 23 13:11:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
3941
3942 Add support for Chill bitstring literals (e.h. H'FF00').
3943 * ch-exp.y (match_bitstring_literal): Fix for proper endianness.
3944 * expprint.c (print_subexp): Don't call error on OP_BITSTRING,
3945 just print B'<unimlemented>'.
3946 * gdbtypes.c (create_set_type): Fix bug in length calculation.
3947 * valops.c, value.h (value_bitstring): New function.
3948 * eval.c (evaluate_subexp): Implement support for OP_BITSTRING.
3949
3950 * ch-typeprint.c (chill_type_print_base): For TYPE_CODE_FUNC,
3951 check that return type is non-void, and print in proper Chill syntax.
3952
3953 Mon Jan 23 12:20:34 1995 Rob Savoye <rob@darkstar.cygnus.com>
3954
3955 * Makefile.in: Remove references to remote-mon.c.
3956 * remote-mon.c: remove. Replaced by rom68k-rom.c.
3957 * rom68k-rom.c: Support for Rom68k monitor.
3958
3959 Mon Jan 23 10:50:57 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
3960
3961 * Makefile.in (CHILL_FOR_TARGET): Update -L argument to point to
3962 gcc/ch/runtime not chillrt, since that is where the chill runtime
3963 lives now.
3964
3965 Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
3966
3967 * remote-hms.c (hms_load): Delete.
3968 (target_ops): Use hr_load_image.
3969
3970 * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
3971 Define memory_insert/remove_breakpoint.
3972 * xm-go32.h: Remove redundant SIGs.
3973
3974 Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
3975
3976 * ser-go32.c: Rewritten by nigel@algor.co.uk.
3977
3978 Fri Jan 20 15:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
3979
3980 * expression.h (OP_LABELED): New operator, for Chill
3981 labeled structre tuples.
3982 * ch-exp.y (tuple_element, named_record_element, tuple_elements):
3983 New non-terminals, to handle labeled structure tuples.
3984 (tuple): Re-define using tuple_elements.
3985 * eval.c (evaluate_labeled_field_init): New function, to handle
3986 initialization of structure fields, possibly using OP_LABELED.
3987 (evaluate_subexp): Use it.
3988 * expprint.c (print_subexp case): For OP_ARRAY, use Chill syntax
3989 for Chill. Handled OP_LABELED.
3990 * parse.c (length_of_subexp, prefixify_subexp): Handle OP_LABELED.
3991
3992 * eval.c (evaluate_subexp): Handle Chill Powerset tuples.
3993 * valarith.c (value_bit_index): Just treat bitstring as represented
3994 by an array of bytes. Alignment is handled by compiler.
3995
3996 Wed Jan 18 19:00:29 1995 Stan Shebs <shebs@andros.cygnus.com>
3997
3998 * h8300-tdep.c (gdb_print_insn_h8300): Fix typo (&info -> info).
3999 * sh-tdep.c (gdb_print_insn_sh): Ditto.
4000
4001 Wed Jan 18 11:25:43 1995 Kung Hsu <kung@mexican.cygnus.com>
4002
4003 * remote-os9k.c (rombug_open): Fix a bug in exception handling
4004 command.
4005 * remote-os9k.c (rombug_write_inferior_memory): reset buffer after
4006 write.
4007
4008 Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
4009
4010 * parse.c (_initialize_parse): Improve wording of names of
4011 msym_*_symbol_type.
4012
4013 Tue Jan 17 14:00:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
4014
4015 * config/mips/tm-mips.h (enum mips_fpu_type): New enum.
4016 (mips_fpu): Change type to enum mips_fpu_type.
4017 (FIX_CALL_DUMMY): Handle mips_fpu == MIPS_FPU_SINGLE.
4018 * mips-tdep.c (mips_fpu): Change type to enum mips_fpu_type.
4019 Don't initialize.
4020 (mips_fpu_string): New static variable.
4021 (mips_push_dummy_frame): Handle mips_fpu == MIPS_FPU_SINGLE.
4022 (mips_pop_frame): Likewise.
4023 (mips_extract_return_value): Likewise.
4024 (mips_store_return_value): Likewise.
4025 (mips_set_fpu_command): New static function.
4026 (mips_show_fpu_command): New static function.
4027 (_initialize_mips_tdep): Change handling of set/show mipsfpu.
4028
4029 Tue Jan 17 09:48:38 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
4030
4031 * a29k-tdep.c (gdb_print_insn_a29k): Fix typo (&info -> info).
4032
4033 * parse.c (write_exp_msymbol): Use new variables
4034 msym_*_symbol_type as type of msymbol expression.
4035 (_initialize_parse): Initialize them.
4036
4037 Mon Jan 16 18:11:03 1995 Stan Shebs <shebs@andros.cygnus.com>
4038
4039 General cleanup and simplication of disassembler interface.
4040 * a29k-pinsn.c, arm-pinsn.c, convex-pinsn.c, gould-pinsn.c,
4041 hppa-pinsn.c, i386-pinsn.c, i960-pinsn.c, m68k-pinsn.c,
4042 m88k-pinsn.c, mips-pinsn.c, ns32k-pinsn.c, pyr-pinsn.c,
4043 rs6000-pinsn.c, sparc-pinsn.c, tahoe-pinsn.c, vax-pinsn.c: Remove.
4044 * gould-tdep.c, ns32k-tdep.c, tahoe-tdep.c, vax-tdep.c: New files,
4045 had been -pinsn.c files.
4046 * Makefile.in (ALLDEPFILES): Remove removed files.
4047 (a29k-pinsn.o, arm-pinsn.o, convex-pinsn.o, gould-pinsn.o,
4048 hppa-pinsn.o, i386-pinsn.o, i960-pinsn.o, m68k-pinsn.o,
4049 m88k-pinsn.o, mips-pinsn.o, ns32k-pinsn.o, pyr-pinsn.o,
4050 rs6000-pinsn.o, sparc-pinsn.o, tahoe-pinsn.o, vax-pinsn.o):
4051 Remove compile actions.
4052 * arm-tdep.o, gould-tdep.o, ns32k-tdep.o, tahoe-tdep.o,
4053 vax-tdep.o: Add compile actions.
4054 * defs.h (tm_print_insn): New global.
4055 * a29k-tdep.c (gdb_print_insn_a29k): New function.
4056 (_initialize_a29k_tdep): Rename from _initialize_29k,
4057 set tm_print_insn.
4058 * alpha-tdep.c (print_insn): Remove.
4059 (_initialize_alpha_tdep): Set tm_print_insn.
4060 * arm-tdep.c (arm_print_insn): New function, was print_insn
4061 in arm-pinsn.c.
4062 * convex-tdep.c (convex_print_insn): New function, was print_insn
4063 in convex-pinsn.c.
4064 * h8300-tdep.c (print_insn): Remove.
4065 (gdb_print_insn_h8300): New function.
4066 (_initialize_h8300_tdep): New function.
4067 * h8500-tdep.c (print_insn): Remove.
4068 (_initialize_h8500_tdep): New function.
4069 * hppa-tdep.c (_initialize_hppa_tdep): Set tm_print_insn.
4070 * i386-tdep.c (_initialize_i386_tdep): New function.
4071 * i960-tdep.c (mem, next_insn): New functions, were in
4072 i960-pinsn.c.
4073 (_initialize_i960_tdep): Set tm_print_insn.
4074 * m68k-tdep.c (_initialize_m68k_tdep): New function.
4075 * m88k-tdep.c (_initialize_m88k_tdep): New function.
4076 * mips-tdep.c (gdb_print_insn_mips): New function.
4077 (_initialize_mips_tdep): Set tm_print_insn.
4078 * pyr-tdep.c (pyr_print_insn): New function, was print_insn
4079 in pyr-pinsn.c.
4080 * rs6000-tdep.c (_initialize_rs6000_tdep): New function.
4081 * sh-tdep.c (print_insn): Remove.
4082 (gdb_print_insn_sh): New function.
4083 (_initialize_sh_tdep): Set tm_print_insn.
4084 * sparc-tdep.c (_initialize_sparc_tdep): New function.
4085 * w65-tdep.c (print_insn): Remove.
4086 (_initialize_w65_tdep): New function.
4087 * z8k-tdep.c (print_insn): Remove.
4088 (gdb_print_insn_z8k): New function.
4089 (_initialize_z8k_tdep): Set tm_print_insn.
4090 * printcmd.c (print_insn): New function, generic disassembler.
4091 * config/*/*.mt (TDEPFILES): Remove refs to *-pinsn.o.
4092
4093 Mon Jan 16 15:43:29 1995 Kung Hsu <kung@mexican.cygnus.com>
4094
4095 * Makefile.in: add new files remote-vx29k.c, config/a29k/tm-vx29k.h,
4096 and config/a29k/vx29k.mt.
4097 * configure.in: add new configuration a29k-*-vxworks.
4098 * remote-vx29k.c: new file merged from WRS.
4099 * remote-vx.c: merge changes from WRS.
4100 * config/a29k/vx29k.mt: new file for new configuration.
4101 * config/a29k/tm-vx29k.h: new header file for newconfiguration.
4102
4103 Sun Jan 15 14:36:19 1995 Steve Chamberlain <sac@splat>
4104
4105 * breakpoint.h (disable_breakpoint, enable_breakpoint):
4106 New declarations.
4107 (enum bpdisp): Change name of 'delete' member to 'del'.
4108 (struct bpstat): Changed name to 'bpstats'.
4109 * breakpoint.c (disable_breakpoint, enable_breakpoint,
4110 breakpoint_chain): Made globally visible.
4111 (bpstat_stop_status): Use new name for bpstat.
4112 (break_command_1, watch_command_1, catch_command_1,
4113 breakpoint_auto_delete, denable_delete_breakpoint): Use 'del'
4114 instead of 'delete'.
4115 (set_breakpoint_sal): New function.
4116 * defs.h (registers_changed_hook): New declaration.
4117 * infcmd.c (run_stack_dummy): 'delete' is now 'del'.
4118 * inflow.c (new_tty): Treat WIN32 in same way as __GO32__
4119 * main.c (main): Don't scan options when in WIN32 and exit
4120 without entering main loop.
4121 * m2-exp.y (m2_elx): Member 'class' is now 'aclass'.
4122 * symtab.h (struct symbol, struct partial_symbol): Changed name of
4123 member 'class' to 'aclass'.
4124 (SYMBOL_CLASS, PSYMBOL_CLASS): Reflect change.
4125 * top.c (registers_changed_hook): New definition.
4126 * utils.c (quit, notice_quit, initialize_utils): Treate WIN32
4127 in same way as __GO32__.
4128 * value.h (c_typedef_print): Rename 'new' argument.
4129
4130 * w65-tdep.c, config/tm-w65.h, config/w65.mt: New files.
4131 * configure.in: Suppprt for w65,
4132
4133
4134 Sat Jan 14 11:18:11 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
4135
4136 * infcmd.c (signal_command): For "signal 0", pass (CORE_ADDR)-1,
4137 not stop_pc, to proceed.
4138
4139 * eval.c (evaluate_subexp): Clear expect_type except for C++ and CHILL.
4140
4141 Fri Jan 13 17:52:57 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
4142
4143 * infcmd.c (signal_command): Accept "signal 0"; the change to not
4144 accept it was accidental. "handle 0" and "info signal 0" remain
4145 illegal, though.
4146
4147 Fri Jan 13 15:19:01 1995 Stan Shebs <shebs@andros.cygnus.com>
4148
4149 * Makefile.in (all): Don't make libgdb-files.
4150 (libgdb): New action, makes libgdb-files.
4151
4152 Thu Jan 12 21:23:25 1995 Per Bothner <bothner@kalessin.cygnus.com>
4153
4154 * stabsread.c (read_enum_type): When pending enum symbols are
4155 put into the enum type, they must be inserted in "backwards
4156 order, in case we've overflowed a struct pending buffer.
4157
4158 start-sanitize-gdbtk
4159 Thu Jan 12 15:02:40 1995 Stu Grossman (grossman@cygnus.com)
4160
4161 * gdbtk.c, gdbtk.tcl: Update/add copyright.
4162 * gdbtk.tcl (build_framework): Several fixes for filespec widget,
4163 including dismiss button, and better error handling.
4164 * (create_command_win): Bind button 2 to retrieve selection.
4165 end-sanitize-gdbtk
4166
4167 Thu Jan 12 09:33:24 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4168
4169 * README: Add note about SPARCworks cc release 3.0 and higher.
4170
4171 Add procfs support for Alpha OSF/1-2.x.
4172 * config/alpha/nm-osf.h: Renamed from nm-alpha.h, generic
4173 OSF/1 native support.
4174 * config/alpha/alpha-osf1.mh (NAT_FILE): Changed accordingly.
4175 (MUNCH_DEFINE): Removed.
4176 * config/alpha/alpha-osf2.mh, config/alpha/nm-osf2.h: New files
4177 for procfs support.
4178 * configure.in (alpha-dec-osf*): Use alpha-osf2.mh for OSF/1
4179 release 2.x and higher, else alpha-osf1.mh, as the procfs support
4180 in release 1.x is incomplete.
4181 * Makefile.in (ALLCONFIG): Add config/alpha/alpha-osf2.mh.
4182 * alpha-nat.c (supply_gregset, fill_gregset, supply_fpgregset,
4183 fill_fpgregset): New routines for procfs support.
4184 * inftarg.c (_initialize_inftarg): Don't add ptrace support
4185 if we have an optional procfs and /proc is accessible.
4186 * procfs.c: Include sys/fault.h and sys/syscall.h before
4187 including sys/procfs.h.
4188 (unconditionally_kill_inferior): If PROCFS_NEED_PIOCSSIG_FOR_KILL
4189 is defined, additionally perform a PIOCSSIG to really terminate
4190 the inferior.
4191 (create_procinfo): Always return a result.
4192 (create_procinfo, do_attach): Don't trace T_IFAULT faults if
4193 PROCFS_DONT_TRACE_IFAULT is defined.
4194 (procfs_init_inferior): Use START_INFERIOR_TRAPS_EXPECTED as
4195 argument to startup_inferior if it is defined.
4196 (proc_set_exec_trap): If PIOCSSPCACT is defined, use it instead
4197 of tracing exits from exec system calls. Needed for the user level
4198 loader under Alpha OSF/1.
4199 (do_detach): Clear any pending signal if we want to detach from
4200 a process without a signal.
4201 (set_proc_siginfo): If PROCFS_DONT_PIOCSSIG_CURSIG is defined,
4202 don't issue a PIOCSSIG if pr_cursig already contains the signal we
4203 intend to set.
4204 (info_proc_signals): If PROCFS_SIGPEND_OFFSET is defined, the
4205 pending signals are numbered from 1 instead of 0.
4206 (info_proc_mappings): Increase size of output format for addresses
4207 if BFD_HOST_64_BIT is defined.
4208 (procfs_stop): Renamed from child_stop.
4209 (_initialize_procfs): Don't add procfs support if we have an
4210 optional procfs and /proc is not accessible.
4211
4212 start-sanitize-gdbtk
4213 Wed Jan 11 17:06:55 1995 Stu Grossman (grossman@cygnus.com)
4214
4215 * gdbtk.tcl: Add button to control mixed source disassembly.
4216 Use text widgets in expr window. The give me more control over
4217 layout.
4218 Add auto-updating of exprs in expression window.
4219 Handle expressions out of scope a bit better.
4220 Make selected window pop up to the top when invoked via the
4221 menubar.
4222 Make copyright message have raised relief.
4223
4224 * gdbtk.c (gdbtk_init): Improve handling for errors in gdbtk.tcl
4225 during startup.
4226 end-sanitize-gdbtk
4227
4228 Wed Jan 11 17:53:26 1995 Rob Savoye <rob@darkstar.cygnus.com>
4229
4230 * array-rom.c: Add support for most commands.
4231
4232 * monitor.c: Add GDB remote protocol for the hybrid environment on
4233 the Array board.
4234
4235 Wed Jan 11 00:44:01 1995 Jeff Law (law@snake.cs.utah.edu)
4236
4237 * command.c (show_user_1): Use print_command_line to show a user
4238 defined command (including control structures).
4239
4240 * top.c (init_main): Change documentation for user defined
4241 commands to indicate they may accept up to ten arguments.
4242
4243 Tue Jan 10 16:22:41 1995 Jim Kingdon <kingdon@lioth.cygnus.com>
4244
4245 * mips-tdep.c (mips_skip_prologue): Accept or as well as addu for
4246 `move $s8, $sp' instruction.
4247
4248 Sun Jan 8 12:45:34 1995 Jim Kingdon <kingdon@deneb.cygnus.com>
4249
4250 * target.c, target.h (target_signal_from_command): New function.
4251 * infrun.c (handle_command, signals_info), infcmd.c
4252 (signal_command): Use it.
4253 * infrun.c, infcmd.c: Update docstrings for these commands.
4254
4255 * target.h (enum target_signal), target.c (signals), target.c
4256 (target_signal_from_host, target_signal_to_host): Add
4257 TARGET_SIGNAL_REALTIME_* and TARGET_SIGNAL_PRIO for lynx.
4258 * config/tm-lynx.h: Define signal numbers for realtime events.
4259
4260 Sat Jan 7 07:23:53 1995 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4261
4262 * dbxread.c (process_one_symbol): Handle N_FUN symbols
4263 for Sun acc 3.0 under SunOS4.
4264
4265 Changes to improve handling of runtime common symbols
4266 under SunOS4.
4267 * minsyms.c (get_symbol_leading_char): New routine to determine
4268 the leading symbol character for an objfile.
4269 (prim_record_minimal_symbol_and_info, install_minimal_symbols):
4270 Use it.
4271 * objfiles.h (rt_common_objfile): New global, points to objfile
4272 containing the runtime common minimal symbols.
4273 * objfiles.c (free_objfile): Mark rt_common_objfile as
4274 unallocated before freeing it.
4275 * solib.c (allocate_rt_common_objfile): New routine to allocate
4276 an objfile for the runtime common minimal symbols.
4277 (solib_add_common_symbols): Allocate an objfile for the runtime
4278 common symbols if necessary and put common symbols into it.
4279 Clean up code and comments.
4280 (solib_add, special_symbol_handling): Cleanup comments regarding
4281 runtime common symbols.
4282 * stabsread.c (scan_file_globals_1): New routine, contains
4283 old scan_file_globals code. Checks if there are any unresolved
4284 global symbols before starting the expensive minimal symbol table
4285 search.
4286 (scan_file_globals): Now calls scan_file_globals_1 for the passed
4287 objfile and eventually for the runtime common objfile. Complains
4288 about any unresolved global symbols and removes them from the
4289 global symbol chain to avoid dangling pointers into the symbol
4290 table if the symbol table is reread.
4291
4292 Thu Jan 5 17:38:29 1995 Stu Grossman (grossman@cygnus.com)
4293
4294 * Makefile.in (install_only uninstall): Indent for clarity.
4295
4296 * core.c (dis_asm_read_memory): Add call to
4297 dis_asm_read_memory_hook to provide alternate way for disassembler
4298 to read memory.
4299
4300 * defs.h: Protect from multiple inclusion. Add decl for
4301 dis_asm_read_memory_hook.
4302
4303 * top.c: Make window startup be the default.
4304 * Add dis_asm_read_memory_hook.
4305
4306 start-sanitize-gdbtk
4307 * gdbtk.c (finish_saving_output): Don't do anything if not saving
4308 output.
4309 * (breakpoint_notify): Don't send null filename to tcl.
4310 * (gdb_eval): New tcl command to eval an expression.
4311 * (gdb_disassemble): New tcl command to do disassembly. This
4312 allows tcl code to choose between exec file and target memeory,
4313 and can also do mixed source and assembly.
4314 * (gdbtk_init): Move reading of gdbtk.tcl to the end to make sure
4315 that more of the environment is set up. Also, create link between
4316 gdb and tcl vars disassemble{-_}from{-_}exec.
4317
4318 * gdbtk.tcl: New expression window support.
4319 * Make assembly window be 80 columns wide.
4320 * Use new disassembly method. Add menu items to select
4321 disassembly from exec file or target.
4322 * Change View menubar item to Options.
4323
4324 * Get rid of Stack, Breakpoints, Signals, and Variables Windows,
4325 since they don't exist yet.
4326
4327 * Pop up a copyright window on startup.
4328 end-sanitize-gdbtk
4329
4330 Thu Jan 5 01:16:40 1995 Jeff Law (law@snake.cs.utah.edu)
4331
4332 * stabsread.c (define_symbol): Handle `a' symbol type used for
4333 reference parameter passed in a register.
4334
4335 start-sanitize-gdbtk
4336 Wed Jan 4 19:49:10 1995 Stan Shebs <shebs@andros.cygnus.com>
4337
4338 * gdbtk.tcl (build_framework): Add standard commands menu, more
4339 windows to standard windows menu.
4340 (not_implemented_yet): Clarify message.
4341 end-sanitize-gdbtk
4342
4343 Wed Jan 4 12:27:29 1995 Kung Hsu <kung@mexican.cygnus.com>
4344
4345 * defs.h: move include tm.h up, so that the type LONGEST can
4346 also based on the target requirement to determine. In this case
4347 target mips64.
4348
4349 * remote-os9k.c (rombug_open): catch exception e in rombug.
4350 * remote-os9k.c (rombug_wait): print message before register display
4351 from rombug.
4352
4353 Wed Jan 4 09:18:27 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
4354
4355 * top.c (locate_arg): Call strchr not index.
4356
4357 Tue Jan 3 16:52:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
4358
4359 * ch-exp.y (literal): Recognize NULL.
4360 (tuple): Parse simple unlabelled tuples.
4361 * eval.c (evaluate_subexp case OP_ARRAY): Use expect_type to
4362 evaluate brace-initializer-expressions depending on context.
4363 (evaluate_subexp case UNOP_CAST): Pass the target type as
4364 expected type when evaluating the expression.
4365
4366 * ch-typeprint.c (chill_type_print_base): Get names of PTR and
4367 BOOL from TYPE_NAME.
4368 * ch-valprint.c (chill_print_type_scalar): New function, to handle
4369 TYPE_CODE_RANGE better than print_type_scalar does.
4370 (chill_val_print_array_elements): Use above new function.
4371
4372 Mon Jan 2 15:02:51 1995 Stan Shebs <shebs@andros.cygnus.com>
4373
4374 * remote-udi.c (udi_load): Tell symbol_file_add that the
4375 program being loaded is the main program.
4376
4377 For older changes see ChangeLog-94
4378 \f
4379 Local Variables:
4380 mode: indented-text
4381 left-margin: 8
4382 fill-column: 74
4383 version-control: never
4384 End: