* config/m68k/tm-est.h: Remove cruft.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e12533e3
SS
1start-sanitize-gdbtk
2Fri Dec 30 15:49:00 1994 Stan Shebs <shebs@andros.cygnus.com>
3
4 * gdbtk.tcl (FSBox): New proc, File Selection Box code from exmh.
5 (not_implemented_yet): New proc.
6 (build_framework): Add various file commands to file menu.
7end-sanitize-gdbtk
8
0f8cdd9b
JL
9Thu Dec 29 22:40:00 1994 Jeff Law (law@snake.cs.utah.edu)
10
11 * Allow up to 10 whitespace separated arguments to user defined
12 commands.
13 * top.c (struct user_args): Structure for holding arguments to
14 user defined commands.
15 (print_command_line): Delete unused "tmp_chain" variable. Clean
16 up flow control by having cases exit in the same manner.
17 Before executing a command or evaluating an expression, substitute
18 the current $arg0..$arg9 values if the command/expression uses them.
19 (arg_cleanup): New function.
20 (setup_user_args, locate_arg, insert_args): Likewise.
21 (execute_user_command): Allow arguments to user defined commands.
22
23 * Allow if/while commands to be used within a breakpoint command
24 list.
25 * breakpoint.c (bpstat_do_actions): Call execute_control_command
26 rather than execute_command (passes entire command structure rather
27 than just the command line text).
28 (breakpoint_1): Use "print_command_line" to print a breakpoint
29 command line (including control structures).
30 * gdbcmd.h (execute_control_command): Provide extern decl.
31 (print_command_line): Likewise.
32 * top.c (execute_control_command): No longer static.
33 (print_command_line): New function to recursively print a command
34 line, including control structures.
35
cf51c601
RS
36Thu Dec 29 18:18:31 1994 Rob Savoye <rob@darkstar.cygnus.com>
37
15edf525
RS
38 * hppa-tdep.c (pa_print_registers): Extract register values stored
39 in big endian format on big and little endian hosts.
40
2e1b3b03
RS
41 * array-rom.c: Support for Array Tech LSI33k based RAID disk
42 controller board.
43 * configure.in: Recognize "mips*-*-ecoff*" rather than
44 "mips*-idt-ecoff*" so it'll work for the LSI33k.
45
cf51c601
RS
46 * monitor.[ch], op50-rom.c, rom68k-rom.c, w89k-rom.c: Add support
47 to monitor config structure for supported baud rates for a target
48 and variable stop bits.
49 * monitor.c (monitor_fetch_register): Store register values in big
50 endian format on any host.
51
3200aa59
JL
52Wed Dec 28 19:27:22 1994 Jeff Law (law@snake.cs.utah.edu)
53
54 * hppa-tdep.c (hppa_fix_call_dummy): Prefer import stubs over
55 export stubs and actual shared library functions so that lazy
56 binding works correctly. Try both __d_plt_call and __gcc_plt_call
57 trampolines for calling import stubs.
58
b6c15646
SS
59Wed Dec 28 15:29:02 1994 Stan Shebs <shebs@andros.cygnus.com>
60
61 * a29k-tdep.c (pop_frame): Fix a variable name.
62
e43169eb
JL
63Wed Dec 28 12:21:39 1994 Jeff Law (law@snake.cs.utah.edu)
64
244f7460
JL
65 * hppa-tdep.c (push_dummy_frame): Refine code to determine what
66 space ID to place in the stack & inf_status structure.
67 (hppa_pop_frame): Don't walk through trampoline code if popping a
68 call dummy frame.
69 (hppa_fix_call_dummy): Call the stack dummy directly if the
70 current PC is in a shared library.
71
e43169eb
JL
72 * hppa-tdep.c (push_dummy_frame): Return type is void. Clear
73 in_syscall bit in flags. Don't depend on the PC queue registers
74 when in_syscall is set, they're not valid.
75 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Pass inf_status down to
76 push_dummy_frame.
77 (SR4_REGNUM): Define.
78
79 * hppa-tdep.c: Misc. lint changes.
80
f0c9e9e5
JL
81Tue Dec 27 12:32:43 1994 Jeff Law (law@snake.cs.utah.edu)
82
706dc3ce
JL
83 * breakpoint.c (watchpoint_check): Don't bother restoring the
84 "selected" frame anymore, it's not necessary. Initialize the
85 frame cache before trying to find the current frame in the frame
86 chain.
87
f0c9e9e5
JL
88 * somsolib.c (som_solib_add): Return without loading any shared
89 libraries if symfile_objfile is NULL.
90 (som_solib_create_inferior_hook): Likewise.
91
93584146
SC
92Fri Dec 23 17:03:13 1994 Steve Chamberlain (sac@jonny.cygnus.com)
93
94 * remote-est.c: New file supports EST-300 CPU32 background
95 mode ICE.
96 * remote-utils.c (sr_com): Call registers_changed.
97 * configure.in (m68*-*-est*): New configuration.
98 * config/m68k/tm-est.h: New file.
99
736a82e7
SG
100Fri Dec 23 16:18:50 1994 Stu Grossman (grossman@cygnus.com)
101
102 * Makefile.in (CLIBS): Put LIBIBERTY last.
d3d75ec9 103start-sanitize-gdbtk
736a82e7
SG
104 * gdbtk.c (gdbtk_wait gdbtk_init): Portability improvements for
105 SIGIO handling.
d3d75ec9 106end-sanitize-gdbtk
736a82e7 107
ee6e2087
JK
108Thu Dec 22 09:27:16 1994 Jim Kingdon <kingdon@deneb.cygnus.com>
109
110 * ser-tcp.c (tcp_open): Cast to struct sockaddr when passing to
111 function which expects that.
112
113Thu Dec 22 13:25:33 1994 J.T. Conklin (jtc@rtl.cygnus.com)
114
115 * nlm/gdbserve.c, nlm/ppc.c, nlm/ppc.h: Don't try to use
116 ALTERNATE_MEM_FUNCS.
117
62b32254
RS
118Wed Dec 21 14:00:26 1994 Rob Savoye <rob@darkstar.cygnus.com>
119
120 * monitor.c: Now supports xmodem as a remoteloadprotocol.
121
c9c1dd7c
SG
122Tue Dec 20 23:01:17 1994 Stu Grossman (grossman@cygnus.com)
123
124 * config/mips/xm-irix4.h, config/mips/xm-irix5.h: #define
d3d75ec9 125 _BSD_COMPAT to get reliable signal handling.
c9c1dd7c 126
ff87df19
JK
127Tue Dec 20 11:44:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
128
888a18ee
JK
129 * sparc-tdep.c, a29k-tdep.c, findvar.c (get_saved_register):
130 if !target_has_registers, call error().
131
ff87df19
JK
132 * value.h: Remove obsolete comments about FRAME vs struct
133 frame_info *.
134
d3d75ec9 135start-sanitize-gdbtk
0af608b8
SG
136Mon Dec 19 09:55:47 1994 Stu Grossman (grossman@cygnus.com)
137
138 * gdbtk.tcl (update_assembly): Force update to make sure that pc
139 is visible when creating new assembly windows.
140
546b8ca7
SG
141Sun Dec 18 23:31:20 1994 Stu Grossman (grossman@cygnus.com)
142
143 * gdbtk.c (gdbtk_wait gdbtk_init): Use different method of
144 enabling I/O interrupts for SVR4 (streams).
145 * (start_saving_output save_output get_saved_output
146 finish_saving_output flush_holdbuf gdbtk_flush gdbtk_fputs
147 gdbtk_init):
148 Totally revamp to use TCLs dynamic string functions. Also, quote
149 all data passed back to TCL to prevent errors with unmatched
150 braces, odd characters, etc... This fixes several wierd problems
151 with outputting strings containing unmatched braces.
152 * (breakpoint_notify gdb_loc): Use long hex format to output
153 addresses of breakpoints and PCs. This fixes some Alpha problems.
154 * (breakpoint_notify): Add stream arg to call to gdbtk_fputs.
155 * (gdb_listfiles): Also, go through the symtabs when looking for
156 files. This makes xcoff work (sort of), but probably breaks
157 something else.
158 * (gdb_stop): Return TCL_OK instead of nothing. This fixes odd
159 TCL errors when hitting stop button.
160 * (tk_command): Don't pass interp->result on to Tcl_{Var}Eval, as
161 that will trash the result. strdup the result instead and pass
162 that on. Improve error handling as well.
163
164 * gdbtk.tcl (gdbtk_tcl_flush): Use global def of
165 current_output_win. Makes flushing actually work!
166 * (asm_win_name create_asm_win update_assembly): Bunch of fixes
167 to make assembly windows stop flashing when loading a new file.
168 * (gdbtk_tcl_busy gdbtk_tcl_idle): Use catch to prevent gdb_cmd
169 errors from losing control.
170 * (create_source_window): Add source file selection to View menu.
171 * (create_command_window (<Key-Return> binding): Quote text fed
172 into gdb_cmd to prevent eval errors.
d3d75ec9 173end-sanitize-gdbtk
546b8ca7 174
6cb4e9e0
PS
175Sun Dec 18 11:52:58 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
176
177 * sparc-tdep.c (sparc_pop_frame): Remove erroneous extra argument
178 to write_register.
179
ee7b9e92
JK
180Sat Dec 17 13:23:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
181
182 * tm-sparc.c (EXTRA_FRAME_INFO): New field sp_offset.
183 * sparc-tdep.c (sparc_init_extra_frame_info): Set it.
184 (examine_prologue, sparc_init_extra_frame_info): Use ->frame plus
185 ->sp_offset to compute the address something is saved at, not
186 ->bottom.
187
188 * sparc-tdep.c (get_saved_register): New function.
189 * tm-sparc.h: Define GET_SAVED_REGISTER; don't define
190 FRAME_FIND_SAVED_REGS, HAVE_REGISTER_WINDOWS or REGISTER_IN_WINDOW_P.
191 * stack.c (frame_info): Add comment about what to do if
192 FRAME_FIND_SAVED_REGS is not defined.
193
194 * sparc-tdep.c (sparc_init_extra_frame_info): Set ->frame field
195 here. Get it right for flat frames.
196 * sparc-tdep.c (sparc_frame_chain): Instead of returning
197 meaningful value for ->frame field, just return dummy value.
198 This change is needed because the old code didn't deal with mixed
199 flat and non-flat frames.
200
201 * sparc-tdep.c (sparc_pop_frame): Write SP_REGNUM from
202 frame->frame, don't go through saved regs for this.
203
204 * sparc-tdep.c: Move guts of skip_prologue to new function
205 examine_prologue. Check for flat prologue and set is_flat.
206 Provide the caller with the information about what is saved where
207 if desired.
208 (skip_prologue, sparc_frame_find_saved_regs): Call examine_prologue.
209
210 * sparc-tdep.c: Replace union sparc_insn_layout and anonymous
211 union in isannulled, which won't work on a little-endian host,
212 with X_* macros.
213
214 * sparc-tdep.c (sparc_frame_saved_pc): If addr == 0, the saved PC
215 is still in %o7.
216
217 * config/sparc/tm-sparc.h: Define INIT_FRAME_PC and
218 INIT_FRAME_PC_FIRST.
219 * blockframe.c (get_prev_frame_info): Modify comments regarding
220 INIT_FRAME_PC_FIRST and the sparc.
221
222 * sparc-tdep.c (single_step): Use 4 not sizeof (long) for size of
223 instruction.
224
84bdfea6
PS
225Sat Dec 17 02:33:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
226
227 * c-typeprint.c (c_type_print_base): Use `show' of -1 to print
228 the return type of methods to avoid infinite loops with anonymous
229 types.
230 * valops.c (search_struct_field): Handle anonymous unions.
ee7b9e92 231
84bdfea6
PS
232 * sparc-tdep.c (sunos4_skip_trampoline_code): New function
233 to correctly handle steps into -g compiled PIC objects in the
234 main executable.
235 * config/sparc/tm-sun4os4.h (SKIP_TRAMPOLINE_CODE):
236 Redefine to use sunos4_skip_trampoline_code.
237
238 * dwarfread.c (DWARF_REG_TO_REGNUM): Provide a default mapping
239 from DWARF to GDB register numbering.
240 * dwarfread.c (locval): Use DWARF_REG_TO_REGNUM to map the
241 register value.
242 * config/mips/tm-mipsv4.h (DWARF_REG_TO_REGNUM): Define.
243
244Fri Dec 16 10:56:29 1994 J.T. Conklin <jtc@rtl.cygnus.com>
245
246 * Makefile.in (uninstall): transform file names.
247
83ebf439
SS
248Thu Dec 15 16:55:35 1994 Stan Shebs <shebs@andros.cygnus.com>
249
91384699
SS
250 * defs.h: Include progress.h.
251 (QUIT): Call PROGRESS.
252 * main.c (main): Call START_PROGRESS and END_PROGRESS, break
253 usage message into shorter strings.
254 * source.c: Change long command help strings into concats of
255 shorter ones, for picky ANSI compilers.
256
83ebf439
SS
257 * top.c (command_loop): For space usage display, show both
258 absolute size and the change from before command execution.
259
86db943c
SG
260Thu Dec 15 16:40:10 1994 Stu Grossman (grossman@cygnus.com)
261
d3d75ec9
SS
262 * defs.h, main.c (gdb_fputs), top.c: Add stream arg to
263 fputs_unfiltered_hook.
83ebf439 264 * defs.h, top.c, utils.c (error): Add error_hook.
d3d75ec9 265start-sanitize-gdbtk
83ebf439
SS
266 * gdbtk.c: Improve mechanism for capturing output values.
267 (full_filename): Remove.
268 (gdb_cmd call_wrapper gdbtk_init): Protect all calls from tcl land
269 with call_wrapper. This prevents longjmps (usually via error())
270 from jumping out of tcl/tk and leaving things in an indeterminate
271 state.
d3d75ec9
SS
272 (gdbtk_fputs): Differentiate stdout from stderr when passing text
273 into tcl land.
83ebf439 274 * gdbtk.tcl: New view option to disable line numbers. Put catch
86db943c
SG
275 around most uses of gdb_cmd. Add update button to reg config
276 window. Stop doing immediate updates when selecting registers.
277 Change register view values into checkbuttons.
d3d75ec9 278end-sanitize-gdbtk
86db943c 279
b8b78f95
SS
280Tue Dec 13 15:15:33 1994 Stan Shebs <shebs@andros.cygnus.com>
281
282 * breakpoint.c, infrun.c, printcmd.c: Change long command help
283 strings into concats of shorter ones, for picky ANSI compilers.
284
eb891088
SS
285Mon Dec 12 17:08:02 1994 Stan Shebs <shebs@andros.cygnus.com>
286
287 Sparc flat register window support.
288 * sparc-tdep.c (sparc_insn_layout): New union, defines layout of
289 instructions symbolically (used to be local to skip_prologue).
290 (sparc_init_extra_frame_info): New function.
291 (sparc_frame_chain): Add flat cases throughout.
292 (skip_prologue): Add recognition of flat prologues.
293 (sparc_frame_find_saved_regs): Add flat cases.
294 (sparc_pop_frame): Ditto.
295 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): New slots.
296 (INIT_EXTRA_FRAME_INFO): Call sparc_init_extra_frame_info.
297 (PRINT_EXTRA_FRAME_INFO): Define.
298
d3d75ec9 299start-sanitize-gdbtk
cb3313c1
SG
300Mon Dec 12 16:59:29 1994 Stu Grossman (grossman@cygnus.com)
301
302 * gdbtk.tcl (reg_config_menu create_registers_window
303 recompute_reg_display_list): Use array instead of individual vars
304 for register display list.
305 * (recompute_reg_display_list update_registers): Fix bug with not
306 displaying all registers.
d3d75ec9 307end-sanitize-gdbtk
cb3313c1 308
c676d827
JK
309Mon Dec 12 13:06:59 1994 Jim Kingdon <kingdon@deneb.cygnus.com>
310
311 * f-lang.c: Remove duplicate declaration of
312 builtin_type_f_integer, and only include it in the f_builtin_types
313 once.
314
315 * somread.c (som_symfile_read): Just assign to objfile->obj_private,
316 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
317 the HP compiler doesn't like.
318
d3d75ec9 319start-sanitize-gdbtk
746d1df4
SG
320Mon Dec 12 12:22:21 1994 Stu Grossman (grossman@cygnus.com)
321
322 * gdbtk.c: New tcl commands: gdb_fetch_registers,
323 gdb_changed_register_list, and gdb_regnames.
324 * gdbtk.tcl: Use monochrome color model for now.
325 * (delete_breakpoint_tag create_file_win): Add breakdot support.
326 * (create_file_win create_asm_win update_listing build_framework
327 create_source_window create_command_window): Re-org window
328 creation to give all windows consistent look and feel.
329 * (update_listing update_asm): Change pc pointer to '->'.
330 * (registers_command reg_config_menu create_registers_window
331 populate_reg_window update_registers): Revamp register window.
332 Allow selection of registers to be displayed. Highlight changed
333 registers.
d3d75ec9 334end-sanitize-gdbtk
746d1df4 335
0dd47264
SS
336Fri Dec 9 15:50:05 1994 Stan Shebs <shebs@andros.cygnus.com>
337
338 * remote.c (remote_wait): Pass string instead of char to strcpy.
339
2eafd7ae
JK
340Fri Dec 9 04:43:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
341
342 * gdbserver/low-lynx.c (mywait): Remove debugging printf.
343
613a9e5f
JK
344Thu Dec 8 15:07:29 1994 Jim Kingdon <kingdon@deneb.cygnus.com>
345
346 * frame.h: Restore pre-Nov 3 comments about FRAME_FP with minor
347 changes. They are correct, unlike the post-Nov 3 comment
348 (FRAME_FP doesn't have any machine-independent relationship with
349 FP_REGNUM or any other such notion of a "frame pointer").
350
4cc1b3f7
JK
351Wed Dec 7 14:50:54 1994 Jim Kingdon <kingdon@deneb.cygnus.com>
352
353 * gdbserver/remote-utils.c (write_ok): Write "OK", not "Ok", to
354 match stubs and protocol spec.
355 * gdbserver/remote-utils.c (remote_open): Cast to struct sockaddr
356 when passing to function which expects that.
357
358 The following changes aren't quite enough to make things work with
359 LynxOS (apprently kernel problems).
360 * infrun.c (wait_for_inferior): When resuming new thread, pass pid
361 not -1 for remote case.
362 * thread.c (info_threads_command): Give error if !target_has_stack.
363 * infrun.c (start_remote): Call init_thread_list.
364 * thread.c (info_threads_command): Don't call kill for remote
365 debugging target.
366 * target.c (normal_pid_to_str): Print "thread" not "process" for
367 remote.
368 * remote.c, gdbserver/*: Add 'H', 'S', and 'C' requests, 'X'
369 response, and `thread' part of 'T' response.
370 * gdbserver/*: If program exits, send packet to GDB before
371 exiting. Handle termination with a signal the same as exiting
372 with an exitstatus.
373 * remote.c: Don't try to kill program after getting an 'X'
374 response.
375 * infrun.c (wait_for_inferior): Add comment about kill versus mourn.
376
d8c139e1
RS
377Thu Dec 8 12:37:38 1994 Rob Savoye <rob@darkstar.cygnus.com>
378
379 * config/pa/tm-pro.h tm-hppap.h, hppapro.mt: Rename tm-hppap.h to
380 tm-pro.h.
381
85ae1317
SS
382Wed Dec 7 18:22:59 1994 Stan Shebs <shebs@andros.cygnus.com>
383
384 * source.c: Various cosmetic changes.
385 (forward_search_command): Handle very long source lines correctly.
386
bd2b724a
RS
387Wed Dec 7 13:21:47 1994 Rob Savoye <rob@darkstar.cygnus.com>
388
389 * hppa-tdep.c: Use GDB_TARGET_IS_PA_ELF so SOM target support will
390 stop being linked in.
391
392 * config/pa/tm-hppap.h: New file. Set GDB_TARGET_IS_PA_ELF,
393 otherwise it looks like BSD-ELF.
394
13334cc2
SG
395Mon Dec 5 21:43:52 1994 Stu Grossman (grossman@cygnus.com)
396
397 * inftarg.c: include <sys/types.h> to get def of pid_t.
398
99eceb9a
SS
399Fri Dec 2 15:03:07 1994 Stan Shebs <shebs@andros.cygnus.com>
400
401 * solib.c (auto_solib_add_at_startup): New global.
402 (solib_create_inferior_hook): Call solib_add only if
403 auto_solib_add_at_startup is nonzero.
404 (_initialize_solib): New command "set auto-solib-add".
405
406Fri Dec 2 12:52:04 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
407
408 * parse.c (msymbol_addr_type): Replaced by
409 lookup_pointer_type (builtin_type_void).
410
411 * printcmd.c (_initialize_printcmd): Give examine_*_type
412 a name for `ptype $_'.
413
414Fri Dec 2 12:52:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
415
416 * printcmd.c (print_formatted): Call val_print_string directly,
417 rather than via value_print.
418
b1bbe38b
JL
419Wed Nov 30 22:27:27 1994 Jeff Law (law@snake.cs.utah.edu)
420
421 * somsolib.c (som_solib_get_got_by_pc): New function.
422 * somsolib.h (som_solib_get_got_by_pc): Add extern decl.
423 * hppa-tdep.c (hppa_fix_call_dummy): Handle case where FUN is the
424 function's export stub or real address in a shared library.
425
151d7f0a
C
426Tue Nov 29 13:40:25 1994 J.T. Conklin (jtc@rtl.cygnus.com)
427
428 * config/i386/nbsd.mh (REGEX, REGEX1): No longer define.
429
430 * configure.in (i[345]86-*-freebsd*): New configuration.
431 * config/i386/{fbsd.mh,fbsd.mt,nm-fbsd.h}: New files.
432
e04f8901
SS
433Tue Nov 29 12:23:25 1994 Stan Shebs (shebs@andros.cygnus.com)
434
435 * top.c (read_next_line): Pass annotation suffix "commands"
436 instead of "command", matches documentation.
437
dfb14bc8
SS
438Mon Nov 28 14:53:21 1994 Stan Shebs (shebs@andros.cygnus.com)
439
cf989e50
SS
440 * config/a29k/tm-a29k.h (setup_arbitrary_frame): Replace
441 FRAME_ADDR with CORE_ADDR in prototype.
442
dfb14bc8
SS
443 * top.c (command_line_input): If annotation suffix is NULL,
444 replace it with an empty string.
445 (read_next_line): Pass "command" as annotation suffix to
446 command_line_input.
447
8bab3808
C
448Mon Nov 28 11:03:14 1994 J.T. Conklin (jtc@rtl.cygnus.com)
449
450 * config/rs6000/tm-rs6000.h (setpgrp): move defn from here...
451 * config/rs6000/xm-rs6000.h: ...to here.
452
d3d75ec9 453start-sanitize-gdbtk
006e71e9
SG
454Mon Nov 28 09:17:20 1994 Stu Grossman (grossman@cygnus.com)
455
04576ab6
SG
456 * gdbtk.tcl (build_framework): Fix bug with setting window titles.
457
c981300c
SG
458 * gdbtk.tcl (build_framework): Add "Report bug" to help menu.
459
006e71e9
SG
460 * gdbtk.tcl: Re-arrange windows using new, consistent layout. Clean
461 up lots of code and centralize framework initialization.
d3d75ec9 462end-sanitize-gdbtk
006e71e9 463
54576db3
JL
464Fri Nov 25 21:26:02 1994 Jeff Law (law@snake.cs.utah.edu)
465
466 * tm-hppa.h (skip_trampoline_code): Add extern decl.
467 * hppa-tdep.c (hppa_pop_frame): Silently restart the inferior and
468 allow it to execute any return path trampoline code. Stop the
469 inferior and give the user control when the trampoline has
470 finished executing.
471 (in_solib_call_trampoline): Handle export stubs which also perform
472 parameter relocations.
473 (in_solib_return_trampoline): Likewise.
474
e8abe489
PS
475Fri Nov 25 13:37:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
476
477 * coffread.c, symfile.h (coff_getfilename): Make it static again.
478 * xcoffread.c (coff_getfilename): Use a static copy from
479 coffread.c, modified for accessing the static xcoff strtbl.
480
2848f793
JL
481Fri Nov 25 00:51:05 1994 Jeff Law (law@snake.cs.utah.edu)
482
a76c2240
JL
483 * hppa-tdep.c (in_solib_call_trampoline): Recognize calls through
484 _sr4export and $$dyncall as trampolines. Likewise for long-call
485 stubs and parameter relocation stubs.
486 (in_solib_return_trampoline): Recognize a return trampoline for
487 return value relocation stubs.
488
2848f793
JL
489 * hpread.c: Include hp-symtab.h instead of hpux-symtab.h.
490 Various name changes to match those used by hp-symtab.h.
491
481faa25
JL
492Thu Nov 24 00:39:27 1994 Jeff Law (law@snake.cs.utah.edu)
493
494 * blockframe.c (find_pc_partial_function): Inhibit mst_trampoline
495 symbol special handling when INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK
496 is defined.
497 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Renamed from
498 IN_SOLIB_TRAMPOLINE. All callers changed.
499 (IN_SOLIB_RETURN_TRAMPOLINE): Provide default definition.
500 (wait_for_inferior): Handle single stepping through trampolines on
501 return paths from shared libraries.
502 * config/pa/tm-hppa.h (IN_SOLIB_CALL_TRAMPOLINE): Use
503 in_solib_call_trampoline.
504 (IN_SOLIB_RETURN_TRAMPOLINE): Use in_solib_return_trampoline.
505 (INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK): Define.
506 * hppa-tdep.c (in_solib_call_trampoline): New function.
507 (in_solib_return_trampoline): New function.
508
5f2f2809
SC
509Wed Nov 23 21:43:03 1994 Steve Chamberlain (sac@jonny.cygnus.com)
510
b5a37058
SC
511 * tm-h8300.h (REMOTE_BREAKPOINT): Define.
512 * h8300-tdep.c (h8300_pop_frame): Remove redundant call.
513
5f2f2809
SC
514 * remote-e7000.c (HARD_BREAKPOINTS): Reenable.
515 (BC_BREAKPOINTS): Disable.
516 * sh-tdep.c (print_insn): Cope with big and little endian machines.
517 * sh/sh.mt: Use libsim.a
518 * sh/tm-sh.h (TARGET_BYTE_ORDER_SELECTABLE): New
519 (BREAKPOINT): Changed to be byteorder independent.
520
43ab4ba5
SS
521Tue Nov 22 19:13:39 1994 Stan Shebs (shebs@andros.cygnus.com)
522
523 Maintenance commands to report time and space usage.
524 * main.c (display_time, display_space): New globals.
525 (main): Add argument --statistics to enable reporting, display
526 time and space after startup is done.
527 * maint.c (maintenance_time_display, maintenance_space_display):
528 New commands.
529 * top.c (command_loop): Display time and space after command
530 execution.
531
532 * top.c (pre_init_ui_hook): New global.
533 (gdb_init): If pre_init_ui_hook set, call before all other init.
534
48855ed5
KH
535Tue Nov 22 10:25:59 1994 Kung Hsu (kung@mexican.cygnus.com)
536
537 * a29k-tdep.c (examine_tag): Fix a bug in stack frame size.
538
8fb1d189
PS
539Sat Nov 19 03:10:51 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
540
541 * config/i386/i386sol2.mh: Reenable core file support.
542
543 * symfile.c (deduce_language_from_filename): Treat .c++ as a
544 C++ extension.
545
546 * valops.c (destructor_name_p): Do not compare the template
547 part for template classes.
548
ae55bdbc
SS
549Fri Nov 18 14:55:59 1994 Stan Shebs (shebs@andros.cygnus.com)
550
551 * defs.h, infcmd.c (reg_names): Don't declare as constant.
552 * remote-mips.c (mips_open): Read and set the processor type.
553 * mips-tdep.c (mips_set_processor_type): Always return an int.
554
2ec604df
C
555Fri Nov 18 10:38:12 1994 J.T. Conklin <jtc@rtl.cygnus.com>
556
ae55bdbc
SS
557 * nlm/alpha.c (strtol): Remove, it is provided by NetWare C library.
558 * nlm/gdbserve.def (strtol): Add to import list.
559 * nlm/fake_aio.c: Remove file, no longer used.
2ec604df 560
ae55bdbc 561 * Makefile.in (LD_FOR_TARGET, NLMCONV_FOR_TARGET): Remove.
2ec604df 562 * nlm/Makefile.in (gdbserve.O): Link with ${CC_FOR_TARGET}.
ae55bdbc 563 (LD_FOR_TARGET): Remove.
2ec604df
C
564
565Thu Nov 17 22:09:50 1994 Rob Savoye <rob@darkstar.cygnus.com>
566
ae55bdbc
SS
567 * monitor.h, monitor.c, w89k-rom.c, op50n-rom.c, idp-rom.c: Add
568 support for two variables used to control the load protocol and
569 conversion type.
2ec604df 570
9f9f94aa
SS
571Thu Nov 17 17:51:12 1994 Stan Shebs (shebs@andros.cygnus.com)
572
573 Support for different MIPS IDT processor models.
574 * mips-tdep.c (mips_processor_type, tmp_mips_processor_type,
575 mips_generic_reg_names, mips_r3041_reg_names,
576 mips_r3051_reg_names, mips_r3081_reg_names,
577 mips_processor_type_table): New globals.
578 (mips_do_registers_info): Don't display register if name is empty.
579 (mips_set_processor_type_command): New command.
580 (mips_show_processor_type_command): New command.
581 (mips_set_processor_type): New function.
582 (mips_read_processor_type): New function.
583 * config/mips/tm-idt.h (DEFAULT_MIPS_TYPE): New macro.
584 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): New macro.
585 (NUM_REGS): Increase to account for all CP0 registers.
586 (REGISTER_NAMES): Add empty names for CP0 registers.
587 (FIRST_EMBED_REGNUM, LAST_EMBED_REGNUM): Adjust.
588 (PRID_REGNUM): New macro.
589
82b6e3d5
SS
590Wed Nov 16 16:41:52 1994 Stan Shebs (shebs@andros.cygnus.com)
591
592 * README: Add warning about termcap in Ultrix and OSF/1.
593
0eac27b9
RS
594Wed Nov 16 15:28:29 1994 Rob Savoye (rob@cygnus.com)
595
d3d75ec9 596start-sanitize-gdbtk
e1e6ecf2 597 * Makefile.in: Fix the test for installing gdbtk.
d3d75ec9 598end-sanitize-gdbtk
e1e6ecf2 599
0eac27b9
RS
600 * hppa-tdep.c: Remove including sys/dir.h from a target file.
601
9db29b17
C
602Wed Nov 16 10:31:27 1994 J.T. Conklin (jtc@cygnus.com)
603
ae55bdbc 604 * config/powerpc/gdbserve.mt (TDEPFILES): Remove fake_aio.o.
9db29b17
C
605
606 * nlm/gdbserve.c: Include <nwtypes.h> before other NetWare headers.
607 * nlm/ppc.c: Likewise.
608
ae55bdbc
SS
609 * nlm/ppc.c (strtol): Remove, it is provided by NetWare C Library.
610 (StopBell): New function (stubbed out).
9db29b17 611
f32fc5f9
JL
612Wed Nov 16 00:12:21 1994 Jeff Law (law@snake.cs.utah.edu)
613
614 * hppa-tdep.c (skip_trampoline_code): Handle shared library import
615 trampolines.
616
e38e7f47
KH
617Tue Nov 15 16:18:52 1994 Kung Hsu (kung@mexican.cygnus.com)
618
619 * c-exp.y (yylex): Fix a bug in template scanning.
620
2d4838fe
SS
621Tue Nov 15 14:25:47 1994 Stan Shebs (shebs@andros.cygnus.com)
622
623 * i386-stub.c, m68k-stub.c, sparc-stub.c, sparcl-stub.c: Mask out
624 the top bit returned by getDebugChar.
625
b3b8d9bf
RS
626Tue Nov 15 01:03:56 1994 Rob Savoye (rob@slipknot.cygnus.com)
627
628 * op50-rom.c, w89k-rom.c, monitor.c: Modify to usr two variables
629 to set remote load type and protocol.
630 * rom68k-rom.c: Add to_stop in target_ops.
631
d3d75ec9 632start-sanitize-gdbtk
5b21fb68
SG
633Mon Nov 14 08:51:29 1994 Stu Grossman (grossman@cygnus.com)
634
635 * Makefile.in: Install gdbtk.tcl.
636 * configure.in: Add ENABLE_GDBTK flag.
637 * gdbtk.c (gdb_sourcelines): Returns list of source lines
638 containing code. (gdb_regnames): Returns list of register names.
d3d75ec9 639end-sanitize-gdbtk
5b21fb68 640
b1c6705a
JL
641Sat Nov 12 21:55:47 1994 Jeff Law (law@snake.cs.utah.edu)
642
643 * somsolib.c: Add TODO list.
644 (som_solib_add): Immediately return if $SHLIB_INFO$ sections does
645 not exist or has size zero. Slightly simplify error handling.
646 Keep an internal list of all the loaded shared libraries and
647 various tidbits of information about the loaded shared libraries.
648 Build section tables for each loaded shared library and add those
649 tables to the core target if necessary.
650 (som_solib_create_inferior_hook): Force re-reading of shared
651 libraries at exec time.
652 (som_sharedlibrary_info_command): New function for dumping
653 information about the currently loaded shared libraries.
654 (_initialize_som_solib): New function.
655
d360e1e0
PS
656Sat Nov 12 02:26:50 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
657
658 * Makefile.in (copying.o, f-exp.tab.o, dpx2-nat.o, dstread.o,
659 i386aix-nat.o, i386m3-nat.o, irix5-nat.o, lynx-nat.o, m3-nat.o,
660 mipsm3-nat.o, ns32km3-nat.o, remote-e7000.o, remote-os9k.o):
661 Add dependencies.
662 (copying.o, os9kread.o, remote.o): Update dependencies.
663
664 * valarith.c (value_sub): When subtracting pointers, only
665 check for a match of the pointed to element lengths.
666 Cast element length to LONGEST to obtain a signed result for
667 pointer subtractions.
668
c2e00af6
JL
669Fri Nov 11 10:51:07 1994 Jeff Law (law@snake.cs.utah.edu)
670
a30e2087
JL
671 * ch-exp.y (yylex): Fix off-by-one error when converting string to
672 lowercase. Null terminate new string.
673
c2e00af6
JL
674 * hppa-tdep.c (rp_saved): Handle IMPORT stubs too.
675
676 * somsolib.c (som_solib_add): Check the value of __dld_flags, if
677 it indicates __dld_list is not valid return an error. If it
678 indicates that libraries were not mapped privately, issue a
679 warning.
680
e6e0af0f
JL
681Thu Nov 10 23:17:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
682
683 * symfile.c (syms_from_objfile): Only call find_lowest_section if
684 no ".text" section exists.
685
06b8f5e4
RS
686Thu Nov 10 15:16:21 1994 Rob Savoye <rob@rtl.cygnus.com>
687
688 * rom68k-rom.c: New file. Replaces the old remote-mon.c and uses
689 the new generic ROM interface in monitor.c.
690 * config/m68k/monitor.mt: Use new ROM support.
691 * monitor.c: Add support for xmodem download protocol.
692
f449d250
SS
693Wed Nov 9 18:46:24 1994 Stan Shebs (shebs@andros.cygnus.com)
694
695 * findvar.c (find_saved_register): Fix a frame variable name.
696 * infcmd.c (finish_command): Ditto.
697
5cd1adab
JK
698Tue Nov 8 13:20:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
699
700 * TODO: Remove "Watchpoints seem not entirely reliable, though
701 they haven't failed me recently." item--this old (4.6 at least)
702 item is too vague to be useful (some watchpoint bugs have been
703 fixed since then).
704 * TODO: Add explanation of "RPC interface" item.
705
bfaef242
JL
706Mon Nov 7 22:25:21 1994 Jeff Law (law@snake.cs.utah.edu)
707
5cd1adab
JK
708 * hppa-tdep.c (read_unwind_info): Use "text_offset" for linker
709 stub unwind descriptors too.
710
bfaef242
JL
711 * Enable backtracing from inside a SOM shared library back into
712 user code.
713 * hppa-tdep.c (internalize_unwinds): Accept and use new
714 "text_offset" argument for dynamic relocation of
715 region_{start,end} fields in the unwind descriptor.
716 (read_unwind_info): Pass text_offset to internalize unwinds.
717
2496aa9e
JK
718Mon Nov 7 14:34:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
719
720 * m3-nat.c: Remove comments about arbitrary limit in
721 printf_filtered; that limit is gone.
722
bb140953
JL
723Mon Nov 7 00:27:16 1994 Jeff Law (law@snake.cs.utah.edu)
724
725 * Beginnings of SOM shared library support. Breakpoints and
726 single frame backtracing within the library only. Only works when
727 using the HPUX 9 dynamic linker. More functionality to be added
728 soon.
729
730 * somsolib.c, somsolib.h: New files.
731 * Makefile.in (HFILES_NO_SRCDIR): Add somsolib.h
732 (ALLDEPFILES): Add somsolib.c.
733 (somsolib.o): Add some dependencies.
734 * somread.c (som_symtab_read): Accept multiple section offsets.
735 All callers changed. Adjust all text symbols with the first
736 section offset.
737 * symfile.c (find_lowest_section): Enable this function. Add some
738 tie-breaking logic when sections have the same vma.
739 (syms_from_objfile): Use find_lowest_section rather than looking
740 for ".text" by name. Relax warning to only warn if the lowest
741 section is not a code section.
742 * config/pa/{hppabsd.mh, hppahpux.mh} (NATDEPFILES): Add somsolib.o
743 * config/pa/{nm-hppab.h, nm-hppah.h}: Include somsolib.h.
744
54b2555b
JL
745Sun Nov 6 12:54:54 1994 Jeff Law (law@snake.cs.utah.edu)
746
866ed2b5
JL
747 * partial-stab.h (N_TEXT): Put back GDB_TARGET_IS_HPPA kludge,
748 it is still needed for GCC-2.6 compiled code.
749 * TODO (GDB_TARGET_IS_HPPA): Note this kludge can be nuked
750 sometime after GCC-2.7 has been released.
751
54b2555b
JL
752 * hppa-tdep.c (frame_saved_pc): Mask off low two bits when
753 retrieving the PC from a signal handler caller. Fix thinko
754 in Stan's last change ("frame", should have been "frame->next").
755 If the next frame is a signal handler caller and it's a system
756 call which has entered the kernel ((PSW & 0x2) != 0), then the
757 saved pc is in %r2 instead of %r31.
758
cb5f7128
JL
759Fri Nov 4 23:47:07 1994 Jeff Law (law@snake.cs.utah.edu)
760
761 * hppa-tdep.c (hppa_frame_find_saved_regs): Change "frame" to
762 "frame_info" throughout.
763
bebe2844
KH
764Fri Nov 4 16:26:59 1994 Kung Hsu (kung@mexican.cygnus.com)
765
766 * sparcl-stub.c: get rid of defs.h.
767
e80078ba
JK
768Fri Nov 4 13:11:54 1994 Jim Kingdon <kingdon@deneb.cygnus.com>
769
0fe3a948
JK
770 * gdbserver/Makefile.in (MMALLOC_CFLAGS): Add -I${MMALLOC_DIR}.
771 Correct definition of MMALLOC_DIR to reflect fact this is
772 gdb/gdbserver/Makefile.in, not gdb/Makefile.in.
773
774 * gdbserver/server.c (main): After we kill the inferior in
775 response to a 'k' request, exit.
776
e80078ba
JK
777 * remote.c (remote_kill): Use catch_errors when calling putpkt.
778 (putpkt): Return int, not void, to match catch_errors calling
779 convention.
780
34a1a3bf
SS
781Fri Nov 4 10:52:38 1994 Stan Shebs (shebs@andros.cygnus.com)
782
783 * rs6000-tdep.c (pop_frame): Correct a variable name.
784
aac9c614
JK
785Fri Nov 4 05:43:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
786
787 * TODO: Re-write item about SIGINT handling to reflect the fact
788 that target_stop now exists.
789
669caa9c
SS
790Thu Nov 3 15:19:17 1994 Stan Shebs (shebs@andros.cygnus.com)
791
792 Replace useless FRAME, FRAME_ADDR types with struct frame_info *
793 and CORE_ADDR, respectively.
794 * frame.h (FRAME, FRAME_INFO_ID, FRAME_ADDR): Remove.
795 * blockframe.c (get_frame_info): Remove.
796 * a29k-tdep.c, alpha-tdep.c, blockframe.c, breakpoint.c,
d3d75ec9 797 breakpoint.h, energize.c, findvar.c, gould-pinsn.c,
669caa9c
SS
798 h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, i386-tdep.c, i960-tdep.c,
799 infcmd.c, inferior.h, infrun.c, m68k-tdep.c, m88k-tdep.c,
800 mips-tdep.c, nindy-tdep.c, printcmd.c, pyr-tdep.c, rs6000-tdep.c,
801 sh-tdep.c, sparc-tdep.c, stack.c, valops.c, z8k-tdep.c,
802 config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
803 config/gould/tm-pn.h, config/h8300/tm-h8300.h,
804 config/h8500/tm-h8500.h, config/mips/tm-mips.h,
805 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
806 config/pyr/tm-pyr.h, config/sparc/tm-sparc.h): Replace FRAME with
807 struct frame_info * everywhere, replace FRAME_ADDR with CORE_ADDR,
808 rename variables consistently (using `frame' or `fi'), remove
809 calls to get_frame_info and FRAME_INFO_ID, remove comments about
810 FRAME and FRAME_ADDR cruftiness.
811
78b459a7
SG
812Thu Nov 3 14:25:24 1994 Stu Grossman (grossman@cygnus.com)
813
814 * corelow.c, exec.c, inftarg.c, m3-nat.c, op50-rom.c, procfs.c,
815 remote-adapt.c, remote-e7000.c, remote-eb.c, remote-es.c,
816 remote-hms.c, remote-mips.c, remote-mm.c, remote-mon.c,
817 remote-nindy.c, remote-os9k.c, remote-pa.c, remote-sim.c,
818 remote-st.c, remote-udi.c, remote-vx.c, remote-z8k.c, remote.c,
819 w89k-rom.c, target.c, target.h: Add support for target_stop().
d3d75ec9 820start-sanitize-gdbtk
78b459a7 821 * gdbtk.c (gdb_stop): Switch to target_stop().
d3d75ec9 822end-sanitize-gdbtk
78b459a7 823
17d347bd
PS
824Thu Nov 3 01:23:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
825
826 * osfsolib.c (solib_map_sections, first_link_map_member,
827 next_link_map_member, xfer_link_map_member): Retrieve and use
828 shared library relocation offset from runtime loader structures.
829 Use libxproc.a routines to get a working version if
830 USE_LDR_ROUTINES is defined.
831 * README: Remove item about shared library relocation for
832 Alpha OSF/1.
833
a8d23c73
KH
834Wed Nov 2 15:05:39 1994 Kung Hsu (kung@mexican.cygnus.com)
835
836 * c-exp.y (yylex): scan template names, and scan nested class
837 names.
838
2f2c0b2a
C
839Wed Nov 2 11:01:55 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
840
841 * nlm/Makefile.in: install gdbserve.nlm.
842
d3d75ec9 843start-sanitize-gdbtk
cd2df226
SG
844Tue Nov 1 16:41:12 1994 Stu Grossman (grossman@cygnus.com)
845
846 * Makefile.in: Use $(objdir)/tcl and $(objdir)/tk if they are
847 available.
848 * configure.in (ENABLE_CLIBS): Use $(TCL) and $(TK) instead of
849 -ltcl and -ltk.
850 * gdbtk.c: Get rid of lots of unnecessary #includes.
851 * (gdbtk_init): Use ConnectionNumber macro instead of referencing
852 Display structure directly.
78b459a7 853 * gdbtk.tcl: Change exit button to quit button.
d3d75ec9 854end-sanitize-gdbtk
cd2df226 855
c50e36c2
PS
856Tue Nov 1 13:00:46 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
857
858 * c-valprint.c (c_value_print): Check for plain literal `char'
859 target type when suppressing `(char *)' output for strings.
860
7047c1d1
SS
861Mon Oct 31 19:19:51 1994 Stan Shebs (shebs@andros.cygnus.com)
862
863 * coffread.c (coff_symfile_init): Remove unused local abfd.
864 * utils.c [NO_MMALLOC] (mmalloc, mrealloc): Define and use size_t
865 instead of long, for compatibility with mmalloc.h.
866
9ed8604f
PS
867Sat Oct 29 02:40:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
868
869 * top.c (line_completion_function): Renamed from
870 symbol_completion_function, takes the line buffer and the
871 point in the line buffer as additional arguments.
872 (readline_line_completion_function): New function, interface
873 between readline and line_completion_function.
874 (init_main): Use it.
875 (complete_command): Use line_completion_function instead of
876 abusing rl_line_buffer. Free completion strings after printing
877 them.
878 * symtab.c (completion_list_add_name): Recheck for duplicates
879 if we intend to add a modified symbol.
880
881 * gdbtypes.h (cplus_struct_type): nfn_fields_total no longer
882 includes the number of methods from the baseclasses.
883 * stabsread.c (attach_fn_fields_to_type): No longer add the
884 number of methods from the baseclasses to TYPE_NFN_FIELDS_TOTAL,
885 the baseclass type might not have been completely filled in yet.
886 * symtab.c (total_number_of_methods): New function to compute
887 the total number of methods for a type, including the methods
888 from baseclasses.
889 (decode_line_1): Use it instead of TYPE_NFN_FIELDS_TOTAL to
890 allocate the symbol array for find_methods.
891
892 * stabsread.c (scan_file_globals): Add default case to minimal
893 symbol type switch, to avoid gcc -Wall warnings.
894
895 * config/rs6000/tm-rs6000.h (INIT_EXTRA_FRAME_INFO):
896 Don't test for zero backchain pointer to recognize a signal
897 handler frame, if read() gets interrupted by a signal, the
898 backchain will be non zero.
899 (SIG_FRAME_FP_OFFSET): Move to here from rs6000-tdep.c,
900 improve comment.
901 (SIG_FRAME_PC_OFFSET): New definition.
902 (FRAME_SAVED_PC): Return saved pc from sigcontext if this
903 is a signal handler frame.
904 * rs6000-tdep.c (function_frame_info): Do not error out
905 if we can't access the instructions.
906
907 * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR):
908 New definition to get the function address from a function pointer.
909 * valops.c (find_function_addr): Use it when calling a user
910 function through a function pointer.
911
b7966a5a
SS
912Fri Oct 28 16:16:52 1994 Stan Shebs (shebs@andros.cygnus.com)
913
914 * Makefile.in (MMALLOC_DIR): New definition.
915 (MMALLOC): Use MMALLOC_DIR.
916 (MMALLOC_CFLAGS): Look in MMALLOC_DIR for mmalloc.h.
917 (OPCODES): Remove gratuitous "./".
918 * defs.h (mmalloc.h): Include.
919 (mmalloc, mrealloc, etc): Remove decls.
920 (cplus_demangle, cplus_demangle_opname): Remove decls.
921
c5197511
SG
922Wed Oct 26 15:41:07 1994 Stu Grossman (grossman@cygnus.com)
923
d3d75ec9 924 * defs.h, main.c, top.c: Change sense and name of
c5197511
SG
925 no_windows variable. Now called use_windows, and defaults to off
926 (for compatibility).
d3d75ec9
SS
927start-sanitize-gdbtk
928 * gdbtk.c: Ditto.
929end-sanitize-gdbtk
c5197511 930
62fad389
JK
931Wed Oct 26 12:20:53 1994 Jim Kingdon <kingdon@cygnus.com>
932
933 * coffread.c (coff_symtab_read): If we get the address from
934 target_lookup_symbol, set the section to -2 not SECT_OFF_BSS.
935 (coff_symtab_read): Set value and section of symbol that
936 process_coff_symbol returns.
937
870ae9e6
C
938Tue Oct 25 09:53:04 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
939
940 * config/i386/tm-nbsd.h: Enable longjmp support.
941
d2985684
PS
942Sat Oct 22 03:41:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
943
944 * valarith.c (value_binop): Take care of ANSI `value preserving'
945 rule, which was not addressed by the previous change.
946
947 * rs6000-tdep.c (skip_prologue): Handle `mr r31,r1', which is
948 generated by gcc-2.6, as a synonym for `oril r31,r1,0'.
949
950 * TODO: Remove item about RS/6000 shared libraries.
951
479f0f18
SG
952Thu Oct 20 17:35:45 1994 Stu Grossman (grossman@cygnus.com)
953
954 * defs.h, infrun.c (wait_for_inferior), top.c: Call
955 target_wait_hook to allow GUI to handle blocking for inferior. Call
956 call_command_hook in execute_command to provide means for wrapping
957 commands with GUI state change updates.
d3d75ec9 958start-sanitize-gdbtk
479f0f18
SG
959 * gdbtk.c (gdb_cmd): Force GUI into idle mode when errors occur.
960 * (gdb_stop): New tcl command to stop the target process.
961 * (x_event, gdbtk_wait): Allow GUI to interrupt gdb out of target
962 waits.
963 * (gdbtk_call_command): Wrapper around command processing to
964 alert GUI of target state changes.
965 * (gdbtk_init): Get the fd of X server for doing async
966 notification of X events (via x_event). Setup new hooks.
967 * gdbtk.tcl: Add scrollbars to assembly and command windows.
968 * Change window foreground & background colors.
969 * Create margin tag for breakpoints in source and assembly windows.
970 * Add new routines to be invoked when target state changes to/from
971 idle.
972 * Add start of expression window.
973 * Change bindings of mouse button 1 in assembly and source window
974 to just set or clear breakpoints when in the margin tag.
975 * Change shape of register window to be more vertical to better
d3d75ec9 976 reflect its contents.
479f0f18
SG
977 * Add stop button.
978 * Cleanup some code around command window bindings.
d3d75ec9 979end-sanitize-gdbtk
479f0f18
SG
980
981 * infrun.c (wait_for_inferior): Make sure
982 through_sigtramp_breakpoint is non-null before deleting.
983
e1f49ff3
C
984Thu Oct 20 10:26:43 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
985
986 * config/powerpc/ppc-nw.mt (TDEPFILES): Removed exec.o.
987
b4b5c9e9
JK
988Thu Oct 20 06:56:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
989
990 * Makefile.in (coffread.o): Depend on target.h.
991 (remote-vx.o): Depend on gdb-stabs.h objfiles.h symfile.h $(bfd_h).
992
91dc42c5
JK
993Wed Oct 19 22:49:31 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
994
995 * TODO: Fix typo.
996
3a470454
JK
997Wed Oct 19 11:32:15 1994 Jim Kingdon <kingdon@cygnus.com>
998
999 * objfiles.c (objfile_relocate): When relocating ->sections, use
1000 objfile not symfile_objfile.
1001
1002 * symtab.h, minsyms.c (minsyms_sort): New function.
1003 * objfiles.c (objfile_relocate): Call it.
1004
1005 * remote-vx.c (vx_add_symbols): Call breakpoint_re_set.
1006
1007 * objfiles.c, objfiles.h (objfile_to_front): New function.
1008 * remote-vx.c (vx_add_symbols): Call it.
1009
1010 * coffread.c (coff_symtab_read): Handle common symbols the same
1011 way that partial-stab.h does.
1012
1013Wed Oct 19 21:06:12 1994 Rob Savoye (rob@cirdan.cygnus.com)
1014
1015 * hppa-tdep.c: Remove include files a.out.h, ioctl.h, and
1016 machine/psl.h. These are host files.
1017
1e1e7a7a
JK
1018Wed Oct 19 15:13:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1019
1020 * objfiles.h (struct objfile): Fix comment--minimal_symbol_count
1021 does *not* include the terminating NULL msymbol.
1022
fa52d491
RS
1023Tue Oct 18 20:53:29 1994 Rob Savoye <rob@darkstar.cygnus.com>
1024
1025 * monitor.c (monitor_load_srec,monitor_make_srec): Add an asrecord
1026 loader that reads files using BFD and converts it on the fly.
1027
1028Mon Oct 17 18:52:06 1994 Rob Savoye <rob@darkstar.cygnus.com>
1029
1030 * monitor.c (set_loadtype_command): Fixed so it doesn't core dump.
1031 * monitor.c (monitor_load): check the load type and load the file
1032 accordingly. Default to gr_load_image().
1033 * monitor.c (monitor_load_ascii_srec): Load an ascii file in
1034 srecord format by downloading to the monitor.
1035 * w89k-rom.c, op50n-rom.c: set supported load types.
1036
e7b5942b
JK
1037Mon Oct 17 10:29:08 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1038
1039 * Makefile.in (ALLDEPFILES): Remove xcoffexec.c.
1040 * Makefile.in: Remove xcoffexec.o rule.
1041
1042 * exec.c (exec_file_command): Add comment.
1043
1044 Fix data and bss relocation for VxWorks 5.1:
1045 * remote-vx.c (vx_add_symbols): New function.
1046 (vx_load_command, add_symbol_stub): Call it instead of
1047 symbol_file_add.
1048 (vx_wait): Remove comment which was wrong to useless.
1049 * remote-vx.c: Reindent much of file.
1050 * coffread.c (cs_to_section, find_targ_sec): New functions.
1051 (process_coff_symbol): Set SYMBOL_SECTION to result
1052 from cs_to_section.
ace354ea 1053 (coff_symtab_read): Call cs_to_section and deal with result
e7b5942b
JK
1054 rather than assuming sections are in a certain order. Deal with
1055 BSS.
1056 * coffread.c: Remove text_bfd_scnum variable.
1057
62a64dde
SS
1058Sat Oct 15 16:55:48 1994 Stan Shebs (shebs@andros.cygnus.com)
1059
1060 * corelow.c: Format to standard.
1061 (core_close): Use name instead of bfd_filename.
1062
e080a68f
JK
1063Fri Oct 14 10:29:08 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1064
1065 * exec.c (map_vmap): Cast return from xmalloc to its proper type,
1066 not to PTR.
1067
1068 * symfile.c (reread_symbols): Include bfd_errmsg string in error
1069 message if bfd_close fails.
1070 * exec.c (exec_close), solib.c (clear_solib), corelow.c
1071 (core_close), objfiles.c (free_objfile), irix5-nat.c
9de0904c
JK
1072 (clear_solib), osfsolib.c (clear_solib), remote-utils.c
1073 (gr_load_image): Check for errors from bfd_close.
e080a68f
JK
1074 * solib.c (look_for_base), remote-utils.c (gr_load_image),
1075 remote-udi.c (download), corelow.c (core_open), symfile.c
1076 (symfile_bfd_open), symfile.c (generic_load): Add comment
1077 regarding error from bfd_close.
1078 * remote-udi.c (download), remote-utils.c (gr_load_image): Add
1079 comment about bogus handling of errors from bfd_openr.
1080 * exec.c (exec_close): Add comment regarding memory leak and
1081 dangling reference to vp->name.
1082
07aa9fdc
PS
1083Sat Oct 15 03:43:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1084
1085 * eval.c (evaluate_subexp): Make fnptr a LONGEST instead
1086 of using longest_to_int.
1087
1088 * infcmd.c (run_stack_dummy): Reinstate set_current_frame call,
1089 mips and alpha targets need the real breakpoint pc for
1090 creating the breakpoint frame.
1091
1092 * stack.c (return_command): Cast return value to the return
1093 type of the function from which we return.
1094 * values.c (set_return_value): Pass VALUE_CONTENTS unmodified
1095 to STORE_RETURN_VALUE.
1096
1097 * symtab.c (lookup_symbol): Remove search for `static mangled
1098 symbols', the search for `static symbols' already looks for
1099 mangled and demangled symbols via lookup_block_symbol.
1100
1101 * valarith.c (value_binop): Use ANSI C arithmetic conversions
1102 when performing integral evaluations, implement BINOP_EQUAL and
1103 BINOP_LESS.
1104 (value_equal, value_less): Use value_binop to perform the
1105 comparison if both operands have TYPE_CODE_INT.
1106
1107 * rs6000-tdep.c (pop_frame): Make sure all registers are valid,
1108 as they are written back later. Handle sp restore for frameless
1109 functions. Use fdata.nosavedpc instead of fdata.frameless to
1110 determine if the pc has been saved.
1111 (function_frame_info): Handle `mr r31,r1', which is generated by
1112 gcc-2.6, as a synonym for `oril r31,r1,0'.
1113 (skip_trampoline_code): Handle shared library trampolines.
1114 * xcoffread.c (read_xcoff_symtabs): Record XMC_GL symbols with
1115 their real name. Enables setting of breakpoints in shared libraries
1116 before the executable is run.
1117
df3cf84a
RS
1118Fri Oct 14 19:39:47 1994 Rob Savoye <rob@darkstar.cygnus.com>
1119
1120 * monitor.h, remote-mon.c: Hack up to so the old ROM monitor
1121 interface code still works with the new ROM monitor
1122 structures. Fake out a couple of fields.
1123
f4eb9968
SS
1124Fri Oct 14 14:54:37 1994 Stan Shebs (shebs@andros.cygnus.com)
1125
1126 * h8500-tdep.c (target_read_sp, target_write_sp, target_read_pc,
1127 target_write_pc, target_read_fp, target_write_fp): Rename to
1128 h8500_read_sp, etc.
1129 (h8500_read_pc, h8500_write_pc): Add pid argument.
1130 * config/h8500/tm-h8500.h (TARGET_READ_SP, TARGET_WRITE_SP,
1131 TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP):
1132 Change to match functions above.
1133
f3601320
JK
1134Thu Oct 13 13:24:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1135
be9d82b8
JK
1136 * NEWS: Add item about if and while.
1137
f3601320
JK
1138 * .gdbinit: Restore `end'; it was not excess. Reindent
1139 list-objfiles to make this clear. Comment out all of
1140 list-objfiles because old gdb's choke on it.
1141
b0e4cdbb
ILT
1142Wed Oct 12 23:19:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1143
1144 * config/mips/tm-bigmips64.h: Just define TARGET_BYTE_ORDER and
1145 include tm-mips64.h.
1146
806f810b
SS
1147Wed Oct 12 18:02:17 1994 Stan Shebs (shebs@andros.cygnus.com)
1148
b5bfe299
SS
1149 * Makefile.in (ANNOTATE_OBS): New definition.
1150 (COMMON_OBS): Add exec.o.
1151 (annotate.o): Remove extra compile rule.
1152 * config/*/*.mh, config/*/*.mt: Remove exec.o from *DEPFILES lists
1153 everywhere.
1154
468794fe
SS
1155 * .gdbinit: Remove excess `end'.
1156
806f810b
SS
1157 * exec.c: Merge in RS6000 support from xcoffexec.c.
1158 (symfile.h, objfiles.h, xcoffsolib.h): Include.
1159 (vmap): New global variable.
1160 (exec_close): Close and free objects in vmap chain.
1161 (exec_file_command) [IBM6000_TARGET]: Set up initial vmap.
1162 (bfdsec_to_vmap, map_vmap): Moved here from xcoffexec.c.
1163 (exec_files_info): Print vmap information.
1164 * xcoffexec.c: Remove.
1165 * config/rs6000/rs6000.mt, config/rs6000/rs6000lynx.mt
1166 (TDEPFILES): Use exec.o instead of xcoffexec.o.
1167 * TODO: Remove pertinent items.
1168
746eb2ac
JL
1169Wed Oct 12 10:08:19 1994 Jeff Law (law@snake.cs.utah.edu)
1170
1171 * partial-stab.h (N_TEXT): Delete GDB_TARGET_IS_HPPA kludge; they
1172 are no longer needed as of gcc-2.6.0.
1173
60e86a67
ILT
1174Tue Oct 11 15:51:01 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1175
1176 * lynx-nat.c (child_wait): Correct handling of byte reversed SPARC
1177 Lynx wait status.
1178 (fetch_core_registers): Don't try to fetch a register if
1179 regmap maps it to -1.
1180 * sparc-tdep.c (sparc_frame_find_saved_regs): Use FRAME_SAVED_I0
1181 and FRAME_SAVED_L0 when setting saved_regs_addr. SPARC Lynx
1182 stores the registers in a weird order.
1183
87888df6
JK
1184Sat Oct 8 20:59:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1185
1186 * blockframe.c (reinit_frame_cache): Reinstate select_frame call
1187 if inferior_pid is nonzero.
1188
76212295
PS
1189Sat Oct 8 04:27:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1190
1191 Speed up GDB startup time by not demangling partial symbols.
1192 * symfile.h (ADD_PSYMBOL_VT_TO_LIST),
1193 symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
1194 No longer demangle partial symbols.
1195 * symtab.c (lookup_symbol, list_symbols): Handle mangled
1196 variables, e.g. C++ static members, via the minimal symbols.
1197
1198 Handle reordered functions in an objfile, for Irix 5.2 shared
1199 libraries.
1200 * objfiles.h (OBJF_REORDERED): New bit in the objfile flags,
1201 set if the functions in an objfile are reordered.
1202 * mdebugread.c (parse_partial_symbols): Detect reordered
1203 functions in an objfile.
1204 * symtab.c (find_pc_psymtab, find_pc_symtab): Use expensive
1205 lookup algorithm if the functions in the objfile are reordered.
1206
1207 * xcoffexec.c (exec_close): If the current target has a copy
1208 of the exec_ops sections, reflect the freeing of the sections
1209 in current_target.
1210
1211 * valops.c (call_function_by_hand): Use `sizeof dummy1', not
1212 `sizeof dummy', for constructing the call dummy code.
1213
1214 * config/sparc/tm-sparc.h: Add PARAMS declarations to all
1215 function declarations.
1216 * sparc-tdep.c (sparc_pop_frame): Cast result of
1217 read_memory_integer to CORE_ADDR when passing it to PC_ADJUST.
1218
1219 * irix5-nat.c (enable_break): Set breakpoint at the entry point
1220 of the executable, to handle the case where main resides in a
1221 shared library.
1222 * irix5-nat.c (solib_create_inferior_hook): Reset stop_soon_quietly
1223 after shared library symbol reading, to get rid of a warning from
1224 heuristic_proc_start if the startup code has no symbolic debug info.
1225
1226 * breakpoint.h (struct breakpoint): Add new fields language
1227 and input_radix, to enable breakpoint resetting with the
1228 proper language and radix.
1229 * breakpoint.c (set_raw_breakpoint): Initialize them.
1230 (breakpoint_re_set_one): Use them when resetting the breakpoint.
1231 (breakpoint_re_set): Preserve current language and input_radix
1232 across breakpoint_re_set_one calls.
1233
1234 * symtab.c (decode_line_1): Do not build a canonical line
1235 specification for `*expr' line specifications.
1236
1237 * breakpoint.h (bpstat_stop_status): Fix prototype declaration.
1238
16726dd1
JK
1239Fri Oct 7 08:48:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1240
1241 The point of these changes is to avoid reading the frame pointer
1242 and stack pointer during stepping, to speed things up.
1243 A. Changes to not select a frame until we need a selected frame:
1244 * blockframe.c (flush_cached_frames): Call select_frame (NULL, -1).
1245 * infrun.c (wait_for_inferior): Move call to select_frame back to
1246 normal_stop. This reverts a change of 13 Apr 94 (it says Jeff
1247 Law, but the change was my idea); the only reason for that change
1248 was so we could save and restore the selected frame in
1249 wait_for_inferior, and now that flush_cached frames clears the
1250 selected frame, that should work OK now.
1251 B. Changes to not create a current_frame until we need one:
1252 * blockframe.c (get_current_frame): If current_frame is NULL, try
1253 to create an innermost frame.
1254 * sparc-tdep.c (sparc_pop_frame), infcmd.c (run-stack_dummy),
1255 infrun.c (wait_for_inferior), thread.c (thread_switch),
1256 convex-tdep.c (set_thread_command), a29k-tdep.c (pop_frame),
1257 alpha-tdep.c (alpha_pop_frame), convex-xdep.c (core_file_command),
1258 h8300-tdep.c (h8300_pop_frame), h8500-tdep.c (h8300_pop_frame),
1259 hppa-tdep.c (hppa_pop_frame), i386-tdep.c (i386_pop_frame),
1260 i960-tdep.c (pop_frame), m68k-tdep.c
1261 (m68k_pop_frame), mips-tdep.c (mips_pop_frame), rs6000-tdep.c
1262 (push_dummy_frame, pop_dummy_frame, pop_frame), sh-tdep.c
1263 (pop_frame), config/arm/tm-arm.h (POP_FRAME),
1264 config/convex/tm-convex.h (POP_FRAME), config/gould/tm-pn.h
1265 (POP_FRAME), config/ns32k/tm-merlin.h (POP_FRAME),
1266 config/ns32k/tm-umax.h (POP_FRAME), config/tahoe/tm-tahoe.h
1267 (POP_FRAME), config/vax/tm-vax.h (POP_FRAME): Don't
1268 call create_new_frame.
1269 * corelow.c (core_open), altos-xdep.c (core_file_command),
1270 arm-xdep.c (core_file_command), gould-xdep.c (core_file_command),
1271 m3-nat.c (select_thread), sun386-nat.c (core_file_command),
1272 umax-xdep.c (core_file_command): Don't call create_new_frame; do
1273 call flush_cached_frames.
1274 * blockframe.c (reinit_frame_cache): Don't call create_new_frame
1275 or select_frame.
1276 C. Changes to get rid of stop_frame_address and instead only
1277 fetch the frame pointer when we need it.
1278 * breakpoint.c (bpstat_stop_status): Remove argument
1279 frame_address; use FRAME_FP (get_current_frame ()).
1280 * infrun.c (wait_for_inferior): Don't pass frame pointer to
1281 bpstat_stop_status.
1282 * infrun.c (wait_for_inferior): Use FRAME_FP (get_current_frame
1283 ()) instead of stop_frame_address.
1284 * infrun.c (save_inferior_status, restore_inferior_status),
1285 inferior.h (struct inferior_status): Don't save and restore
1286 stop_frame_address.
1287 * inferior.h, infcmd.c, thread.c (thread_switch), m3-nat.c
1288 (select_thread): Remove stop_frame_address and uses thereof.
1289 D. Same thing for the stack pointer.
1290 * infrun.c (wait_for_inferior): Remove stop_sp and replace
1291 uses thereof with read_sp ().
1292 E. Change to eliminate one nasty little spot where we were
1293 wanting to know the frame pointer from before the current step
1294 (idea from GDB 3.5, which saved my ass, because my other ideas of
1295 how to fix it were very baroque).
1296 * infrun.c: Remove prev_frame_address.
1297 * infrun.c (wait_for_inferior, step_over_function): Use
1298 step_frame_address instead of prev_frame_address.
1299 F. Same basic idea for the stack pointer.
1300 * inferior.h, infcmd.c: New variable step_sp.
1301 * infcmd.c (step_1, until_next_command): Set it.
1302 * infrun.c: Remove prev_sp and replace uses by step_sp.
1303 * infrun.c (wait_for_inferior): If we get out of the step
1304 range, then set step_sp to the current stack pointer before we
1305 start going again.
1306
b83ed019
ILT
1307Fri Oct 7 12:17:17 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1308
1309 * top.c (target_byte_order_auto): New static variable.
1310 (set_endian): Mention that ``auto'' is permitted.
1311 (set_endian_auto): New static function.
1312 (show_endian): Change message based on target_byte_order_auto.
1313 (set_endian_from_file): New function.
1314 (init_main): Add command ``auto'' to endianlist.
1315 * exec.c (exec_file_command): Call set_endian_from_file.
1316 * defs.h (set_endian_from_file): Declare.
1317
c9228cfe
C
1318Thu Oct 6 18:10:41 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1319
1320 * nlm/i386.c (flush_i_cache): New function, does nothing.
1321 (frame_to_registers, registers_to_frame, set_step_traps,
1322 clear_step_traps, do_status): Make non-static.
1323
1324Thu Oct 6 12:26:42 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
1325
1326 * config/mips/tm-mips.h (GDB_TARGET_IS_MIPS64): If not already
1327 defined, define as 0.
1328 (FIX_CALL_DUMMY): Rewrite to remove presumption that host and
1329 target are similar.
1330 * config/mips/tm-idt.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
1331 * config/mips/tm-idtl.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
1332 * config/mips/tm-idt64.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
1333 (BREAKPOINT): Remove definition.
1334 * config/mips/tm-idtl64.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
1335 (BREAKPOINT): Remove definition.
1336 * config/mips/tm-mips64.h (GDB_TARGET_IS_MIPS64): Define with a
1337 value of 1, rather than without a value.
1338 * config/mips/tm-bigmips64.h (GDB_TARGET_IS_MIPS64): Likewise.
1339 * mips-tdep.c: Rewrite uses of GDB_TARGET_IS_MIPS64 to switch at
1340 run time rather than at compile time.
1341
1342 * remote-mips.c (break_insn): Remove.
1343 (BREAK_INSN, BREAK_INSN_SIZE): Define.
1344 (mips_insert_breakpoint): Use BREAK_INSN, not break_insn.
1345 (mips_remove_breakpoint): Likewise.
1346
1347 * defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h,
1348 define TARGET_BYTE_ORDER as target_byte_order, and declare
1349 target_byte_order as an extern int, and define BITS_BIG_ENDIAN as
1350 a test of TARGET_BYTE_ORDER.
1351 * top.c: Several additions if TARGET_BYTE_ORDER_SELECTABLE is
1352 defined:
1353 (endianlist, target_byte_order): New variables.
1354 (set_endian, set_endian_big, set_endian_little): New functions.
1355 (show_endian): New function.
1356 (init_cmd_lists): Initialize endianlist.
1357 (init_main): Add commands ``set endian big'', ``set endian
1358 little'', and ``show endian''.
1359 * a29k-pinsn.c: Rewrite uses of TARGET_BYTE_ORDER and
1360 BITS_BIG_ENDIAN to switch at run time rather than at compile time.
1361 * coffread.c, dwarfread.c, findvar.c, mips-tdep.c: Likewise.
1362 * remote-os9k.c, stabsread.c, valarith.c, valprint.c: Likewise.
1363 * values.c: Likewise.
1364
5bb8c3ea 1365Wed Oct 5 11:41:24 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
621e4c97 1366
140b35b3
C
1367 * nlm/configure.in: ${gdb_host_cpu} defaults to ${host_cpu}.
1368
621e4c97 1369 * nlm/Makefile.in: Get rid of NWINCLUDES.
2d912322 1370 * config/{alpha,powerpc}/gdbserve.mt: Remove NWINCLUDES.
5bb8c3ea 1371 User should now configure with --with-headers.
621e4c97 1372
3bb27ebf
JK
1373Mon Oct 3 07:48:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1374
1375 * gdbserver/server.c (main): Silently accept all unrecognized
1376 requests and send back a zero length acknowledge. That is what
1377 *-stub.c do and is what remote.c expects.
1378
a91b6ec8
PS
1379Mon Oct 3 05:11:47 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1380
1381 * corelow.c (core_open): Copy the modified to_sections_end
1382 vector from current_target to core_ops too.
1383
1384 * gdbserver/server.c (main): Silently accept query requests
1385 and send back a zero length acknowledge.
1386
496b2222
C
1387Fri Sep 30 17:17:21 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1388
621e4c97 1389 * nlm/Makefile.in: Don't define NWINCLUDES.
496b2222
C
1390 * config/{alpha,powerpc}/gdbserve.mt: define NWINCLUDES.
1391
d3006726
JK
1392Fri Sep 30 15:59:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1393
1394 * gdbserver/low-lynx.c (create_inferior): Pass all 4 args to ptrace.
1395
a5732a30
JK
1396Fri Sep 30 06:42:42 1994 Ian Lance Taylor (ian@cygnus.com)
1397
1398 * lynx-nat.c (child_wait): Use status.w_status, not status, in
1399 arithmetic. status is a `union wait'.
6adffcd8
JK
1400
1401 * config/nm-lynx.h (PTRACE_ARG3_TYPE): Define to int, not char *.
1402
1403 * lynx-nat.c (child_wait): Pass fourth argument to ptrace.
1404
e90bd60d
JK
1405Thu Sep 29 08:22:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1406
1407 * xcoffread.c (read_xcoff_symtab): Fix comment for yesterday's change.
1408
ab93997d
JK
1409Wed Sep 28 17:48:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1410
1411 * coffread.c (complete_symtab): If last_source_file is set upon
1412 entry, free it.
1413
d4cedfe4
JK
1414Wed Sep 28 08:59:14 1994 Jim Kingdon (kingdon@cygnus.com)
1415
67b9f394
JK
1416 * xcoffread.c (read_xcoff_symtab, case C_FILE):
1417 Set main_aux before using it.
1418
331c1003
JK
1419 * xcoffexec.c (exec_close): If quitting, don't call clear_symtab_users.
1420
d4cedfe4
JK
1421 * xcoffread.c (read_xcoff_symtab): Process XTY_LD symbols we were
1422 ignoring before. But continue to ignore XMC_DS.
1423
2848f793
JL
1424Wed Sep 28 00:35:23 1994 Jeff Law (law@snake.cs.utah.edu)
1425
1426 * hpread.c (hpread_read_array_type): Do not change the type code
1427 to TYPE_CODE_PTR for "char foo[]". Just make it a zero length
1428 array type.
1429
1430 * hpread.c (hpread_type_translate): Handle T_UNS_LONG types with
1431 lengths other than 32bits (HP C 9.69 represents an "unsigned char"
1432 as an T_UNS_LONG with length 8).
1433
1434 * hpread.c (struct hpread_symfile_info): Delete have_module field
1435 and accessor macro. Minor indentation fix.
1436 (hpread_build_psymtabs, case K_MODULE): Only start a new psymtab
1437 and reset state variables have_name & texthigh if pst is NULL.
1438 (hpread_build_psymtabs, case K_SRCFILE): Only reset the name of a
1439 partial symbol table if pst is non-NULL. If pst is NULL, then
1440 start a new psymtab.
1441 (hpread_process_one_debug_symbol, case K_MODULE): Now empty.
1442 (hpread_process_one_debug_symbol, case K_SRCFILE): Simplify and
1443 correct handling of subfiles.
1444
78751d4f
PS
1445Mon Sep 26 02:59:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1446
1447 * defs.h (misc_command_type): Remove trailing comma from
1448 enumerator list.
1449
471fb8d8
JL
1450Sun Sep 25 23:19:58 1994 Jeff Law (law@snake.cs.utah.edu)
1451
1452 * hppa-tdep.c (frame_saved_pc): Fix thinko in code to dig saved pc
1453 out of an interrupt frame.
1454
ac57e5ad
SS
1455Sun Sep 25 12:50:17 1994 Stan Shebs (shebs@andros.cygnus.com)
1456
1457 * infcmd.c (do_registers_info) [INVALID_FLOAT]: Only use if
1458 defined.
1459 * values.c (unpack_double) [INVALID_FLOAT]: Ditto.
1460 * mips-tdep.c (mips_print_register): Don't test float validity.
1461 * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
1462 config/arm/tm-arm.h, config/convex/tm-convex.h,
1463 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
1464 config/i386/tm-i386v.h, config/i386/tm-sun386.h,
1465 config/i960/tm-i960.h, config/m68k/tm-m68k.h,
1466 config/m88k/tm-m88k.h, config/mips/tm-mips.h,
1467 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
1468 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
1469 config/pa/tm-hppa.h, config/pyr/tm-pyr.h,
1470 config/rs6000/tm-rs6000.h, config/sh/tm-sh.h,
1471 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h (INVALID_FLOAT):
1472 Remove definition.
1473
1474Sun Sep 25 06:07:37 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1475
1476 * TODO: Remove item about adding general multi-threaded stuff;
1477 this is done.
1478 Remove item about specifying arbitrary locations of stack frames
1479 (this works on some machines).
1480 Remove item about debugging functions without a frame pointer
1481 (this works on some machines).
1482 Remove item about re-writing macros which handle frame chaining and
1483 frameless functions. They have been re-written at least once
1484 since that item was written.
1485 Remove item about gdb catching SIGINT when attached; this is done.
1486 Remove item about having list_command not read symbols--why bother?
1487
718bccf1
SS
1488Sat Sep 24 17:40:10 1994 Stan Shebs (shebs@andros.cygnus.com)
1489
1490 * TODO: Append contents of Projects file.
1491 * Projects: Remove.
1492
9137a6f4
PS
1493Sat Sep 24 01:47:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1494
1495 * corelow.c (add_solib_stub): Remove copying of to_sections,
1496 pass current_target to SOLIB_ADD. The Sep 10 change failed
1497 if SOLIB_ADD errored out, or if SOLIB_ADD was trying to access
1498 target memory.
1499 * corelow.c (core_open): After reading the shared libraries,
1500 copy the modified to_sections vector from current_target to
1501 core_ops, so that core_close can free it later.
1502 * config/rs6000/nm-rs6000.h, rs6000-nat.c (xcoff_relocate_core):
1503 Pass down target parameter from SOLIB_ADD and use it instead of
1504 directly accessing core_ops.
1505
84f652b1
C
1506Fri Sep 23 14:58:49 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1507
1508 * solib.c: *BSD systems need <a.out.h> to be included before
1509 <link.h>.
1510
1511 * i386b-nat.c: Add i386_float_info(), etc.
1512 * config/i386/nm-nbsd.h: #define FLOAT_INFO.
1513
1514 * config/nm-nbsd.h: New file, for generic NetBSD native support.
1515 * config/i386/nm-nbsd.h: Use it.
1516 * config/sparc/nm-nbsd.h: Use it.
1517 * config/ns32k/nm-nbsd.h: Use it.
1518
1519 * configure.in (i386-*-netbsd): Use config/i386/nbsd.m[ht].
1520 (ns32k-*-netbsd): Use config/ns32k/nbsd.m[ht].
1521 * config/i386/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
1522 New files, support for NetBSD/i386.
1523 * config/ns32k/{nbsd.mh,nbsd.mh,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}:
1524 New files, support for NetBSD/ns32k.
1525
940bb1dc
JK
1526Tue Sep 20 11:34:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1527
84f652b1
C
1528 * .gdbinit: Add list-objfiles command.
1529
a36a812c
JK
1530 * TODO: Reword item regarding NO_STD_REGS.
1531
940bb1dc
JK
1532 * coffread.c (record_minimal_symbol, coff_read_enum_type,
1533 coff_read_struct_type): Allocate on symbol_obstack, not directly
1534 via malloc/savestring.
1535
40e4117a
SS
1536Tue Sep 20 15:42:02 1994 Stan Shebs (shebs@andros.cygnus.com)
1537
1538 * TODO: Add more items.
1539 * tests: Remove the directory and all of its (obsolete) contents.
1540
602d41e5
JK
1541Tue Sep 20 11:34:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1542
1543 * coffread.c (init_stringtab): When copying length to stringtab,
1544 use target format, not host format, since that is what the rest of
1545 the code assumes.
1546
d6a62067
C
1547Mon Sep 19 15:48:10 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1548
1549 * Makefile.in: Removed prelude.o, i386-nlmstub.o, nlmstub.o,
1550 nlmstub.nlm, and nlmstub targets. Removed NWSOURCE and
1551 NWINCLUDES definitions.
1552 * i386-nlmstub.c: Removed.
1553
d21437b9
JK
1554Mon Sep 19 07:48:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1555
1556 * dbxread.c (read_dbx_dynamic_symtab): Cast bfd_asymbol_name to
1557 char * (from const char *) before assigning. Don't save string we
1558 pass to record_minimal_symbol (it already saves it).
1559
d3d75ec9 1560start-sanitize-gdbtk
a5cffdc4
SG
1561Sat Sep 17 17:05:14 1994 Stu Grossman (grossman@cygnus.com)
1562
1563 * gdbtk.tcl: Let ^U delete lines in the command window.
d3d75ec9 1564end-sanitize-gdbtk
a5cffdc4 1565
4c664b8d
PS
1566Sat Sep 17 02:26:58 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1567
1568 * cp-valprint.c (static_field_print): New variable, controls
1569 printing of static members.
1570 (_initialize_cp_valprint): New print set subcommand
1571 "static-members". Turn on printing of static members by default.
1572 (cp_print_value_fields): Print static members if necessary.
1573
1574 * solib.c: Remove inclusion of libelf.h and elf/mips.h.
1575 (elf_locate_base): Use only standard BFD functions to collect
1576 information about the .dynamic section. Check for DT_MIPS_RLD_MAP
1577 tag only if it got defined via the inclusion of <link.h>.
1578
1579 * f-exp.y: Write block for OP_VAR_VALUE.
1580 * f-valprint.c (info_common_command): Handle `info common'
1581 without an argument correctly.
1582
1583 * c-typeprint.c (c_type_print_base): Handle template constructors.
1584 * symtab.c (gdb_mangle_name): Handle template method mangling,
1585 get rid of GCC_MANGLE_BUG code, which only applied to gcc-2.2.2.
1586
6f52d064
PB
1587Fri Sep 16 16:06:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
1588
1589 * gdbtypes.h (TYPE_INDEX_TYPE): New macro.
1590 * ch-typeprint.c, ch-valprint.c: Use TYPE_INDEX_TYPE.
1591 * ch-valprint.c (chill_val_print): Pass index type directly
1592 (instead of its TYPE_TARGET_TYPE) to print_type_scalar.
1593 * stabsread.c (read_type): Don't set TYPE_FLAG_TARGET_STUB
1594 if the index type is a stub.
1595
7f4a859c
SS
1596Fri Sep 16 17:18:44 1994 Stan Shebs (shebs@andros.cygnus.com)
1597
1598 * config/i386/{i386aix.mh, i386bsd.mh, i386lynx.mh, i386sco.mh,
1599 i386sco4.mh, i386sol2.mh, i386v.mh, i386v32.mh, i386v4.mh,
1600 ncr3000.mh, ptx.mh, ptx4.mh}, config/m68k/{altos.mh, apollo68v.mh,
1601 delta68.mh, dpx2.mh, hp300bsd.mh, hp300hpux.mh, m68klynx.mh,
1602 m68kv4.mh}, config/m88k/{delta88.mh, delta88v4.mh},
1603 config/mips/riscos.mh, config/pa/hppahpux.mh,
40e4117a
SS
1604 config/rs6000/rs6000lynx.mh, config/sparc/{sparclynx.mh,
1605 sun4sol2.mh}, config/tahoe/tahoe.mh, config/vax/{vaxbsd.mh,
1606 vaxult.mh, vaxult2.mh} (REGEX, REGEX1, SYSV_DEFINE): No longer
1607 define.
7f4a859c
SS
1608 * config/i386/i386sco4.mh (MUNCH_DEFINE): No longer define.
1609
637b1661
SG
1610Fri Sep 16 15:40:34 1994 Stu Grossman (grossman@cygnus.com)
1611
1612 * defs.h (QUIT): Call interactive_hook to allow GUI to interrupt.
1613 Also, add decl for symtab_to_filename.
d3d75ec9 1614start-sanitize-gdbtk
637b1661
SG
1615 * gdbtk.c: Replace calls to full_filename with symtab_to_filename.
1616 * gdbtk.tcl: New routine pc_to_line replaces in line code. New
1617 routine decr replaces in line code.
1618 * (create_file_win): Use catch to handle open failures more
1619 elegantly. Also, create special window to display file open
1620 failure message. Move opening of file prior to creation of text
1621 widget.
1622 * (create_asm_win): Add PC as argument. We now base disassembly
1623 on PC instead of function name, since function names can be
1624 ambiguous (usually seen with shared libs). Also, use catch to
1625 simplify code where we don't care about failures.
d3d75ec9 1626end-sanitize-gdbtk
637b1661
SG
1627 * source.c (symtab_to_filename): New. Returns the file
1628 associated with a symtab.
1629 * top.c: Define interactive_hook. Called during QUIT to animate
1630 the GUI.
1631
bdef6b60
PB
1632Fri Sep 16 00:14:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
1633
576f9770
PB
1634 * stabsread.c (read_type): Handle stub types for bitstrings.
1635 * stabsread.c (read_array_type): Check for stub domain type
1636 using TYPE_FLAG_STUB, not its length.
1637 * gdbtypes.c (create_set_type): Handle a stub domain type.
1638
bdef6b60
PB
1639 * ch-exp.y: Get rid of some extra non-terminals, and move
1640 their rules into primitive_value.
ddf54546
PB
1641 * parser-defs.h: Add comment about unary postfix operators.
1642 * ch-lang.c (chill_op_print_tab): Add '->', postfix and prefix.
bdef6b60
PB
1643 * expprint.c (print_subexp): Recognize unary postfix operator.
1644
791d4d7d
JM
1645Wed Sep 14 18:27:42 1994 Jason Molenda (crash@phydeaux.cygnus.com)
1646
1647 * remote-hms.c: use remote_debug instead of hms_silent toggle.
1648 Add warnings about depreciation of `snoop' cmd.
1649
a87594a5
SC
1650Wed Sep 14 18:18:58 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1651
1652 * remote-hms.c (hms_read_inferior_memory): Cope when
1653 target sends both \r and \n.
1654
2b9fbee4
SS
1655Wed Sep 14 17:14:57 1994 Stan Shebs (shebs@andros.cygnus.com)
1656
1657 * remote-mips.c (mips_error): Place NORETURN macro correctly.
1658 * TODO: Add item about START_INFERIOR_TRAPS_EXPECTED.
1659
f69ecb9c
JK
1660Wed Sep 14 14:26:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
1661
1662 * xcoffread.c (read_xcoff_symtab): Fix obsolete comment about
1663 mst_solib_trampoline.
1664
1665 * f-valprint.c (f_val_print): Change cast of valaddr from
1666 CORE_ADDR * to char **, since that is how it is used.
1667
1668 * dbxread.c (read_dbx_dynamic_symtab): Save copy of symbol names
1669 using obsavestring, and pass that to prim_record_minimal_symbol.
1670 Having the objfile point to bfd_asymbol_name directly doesn't work
1671 if we save and restore a mapped symbol file.
1672
d3d75ec9 1673start-sanitize-gdbtk
335129a9
SG
1674Wed Sep 14 00:55:26 1994 Stu Grossman (grossman@cygnus.com)
1675
1676 * gdbtk.tcl: Add ref counts to breakpoint tags.
1677 * Put quotes around function name in disassemble command to better
1678 handle assembler names containing `.'.
1679 * Make pclist element 0 be filler to avoid off-by-one problem with
1680 line numbers.
1681 * Set names of top-level windows.
1682 * Add register display window.
1683 * Add PC to label of assembly window.
d3d75ec9 1684end-sanitize-gdbtk
335129a9 1685
c9e7a4b4
RS
1686Tue Sep 13 18:23:26 1994 Rob Savoye (rob@darkstar.cygnus.com)
1687
2b9fbee4 1688 * w89k-rom.c, op50-rom.c, monitor.c, config/pa/hppapro.mt: New files
c9e7a4b4
RS
1689 to add a generic ROM monitor interface, and support file for the
1690 WinBond W89K and the Oki OP50N PA based target boards.
1691
d3d75ec9 1692start-sanitize-gdbtk
8532893d
SG
1693Tue Sep 13 08:59:04 1994 Stu Grossman (grossman@cygnus.com)
1694
1695 * gdbtk.c (gdbtk_flush gdbtk_fputs): Buffer up output to make
1696 disassembly more efficient.
1697 * (breakpoint_notify): Include pc in gdbtk_tcl_breakpoint
1698 callback.
1699 * (gdb_loc): Include pc in return value. Also, return function
1700 name if arg was specified.
1701 * (gdb_cmd_stub): Call gdb_flush to drain internal GDB buffers
1702 after command completes.
1703 * (gdbtk_init): Improve error handling.
1704
1705 * gdbtk.tcl: Add lots of comments. Clean up code.
1706 * (gdbtk_tcl_fputs): Make output window redirectable.
1707 * Add assembly window, and breapoint support.
1708 * Make button 1 in margin toggle breakpoints.
1709 * Use stippling to indicate breakpoint disabling.
d3d75ec9 1710end-sanitize-gdbtk
8532893d 1711
30cbfbe2
JL
1712Sun Sep 11 22:34:57 1994 Jeff Law (law@snake.cs.utah.edu)
1713
1714 * config/pa/tm-hppa.h (REGISTER_NAMES): Use r26-r23 for arg0-arg3.
1715
54d478cd
PS
1716Sun Sep 11 04:36:47 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1717
1718 * irix5-nat.c, osfsolib.c, solib.c (solib_add): Simplify last
1719 change by replacing `symbols_added' with `so_last'.
1720 * mdebugread.c (parse_external, parse_partial_symbols): Ignore
1721 global common symbols, they will be resolved by the runtime loader.
1722 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
1723 Handle scSCommon like scCommon symbols.
1724
26a859ec
PS
1725Sat Sep 10 01:43:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1726
1727 * corelow.c (add_solib_stub): Copy to_sections changes from
1728 core_ops to current_target after adding the shared libraries.
1729 * partial-stab.h (N_EXCL), dbxread.c (add_old_header_file,
1730 find_corresponding_bincl_psymtab): Change `repeated header not seen'
1731 error to a complaint, simplify complaint.
1732 * procfs.c (signalname, errnoname): Make `name' const.
1733 * symfile.c (reread_symbols): Use filename from old BFD to
1734 reopen the objfile.
1735 * values.c (record_latest_value): Don't record value in the
1736 history chain until we are sure there won't be an error.
1737
ec7cac38
C
1738Fri Sep 9 15:52:09 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1739
b35be510
C
1740 * nlm/Makefile.in: remove MMALLOC, READLINE, TERMCAP, and other
1741 cruft.
1742
ec7cac38
C
1743 * config/i386/gdbserve.mt: New file, defs for i386 nlm stub.
1744
c4deed18
SC
1745Thu Sep 8 17:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
1746
1747 * remote.c (fromhex): Make error more explicit.
1748 (read_frame): Don't print bad checksum information unless
1749 remote_debugging. Don't use repeat count unless it's > 0.
1750 * remote-e7000.c (expect): When echoing, ignore multiple newlines.
54d478cd
PS
1751 (e7000_insert_breakpoint, e7000_remove_breakpoint, target_ops):
1752 Optionally cope with BC style breakpoints.
c4deed18
SC
1753 (e7000_command): After command send directly to the E7000 mark
1754 registers as changed.
1755 (why_stop, e7000_wait: Understand BC style stop condition.
1756 * sh-tdep.c (sh_skip_prologue): Understand more complicated
1757 sequences. (frame_find_saved_regs): Likewise.
1758 * config/h8500/tm-h8500.h (target_write_pc, TARGET_WRITE_PC):
1759 Handle extra arg.
1760 * config/i386/xm-go32.h (GDBINIT_FILENAME): Set to gdb.ini.
1761 (more work here to come)
1762 * config/sh/tm-sh.h (EXTRA_FRAME_INFO): Add f_offset and leaf_function
1763 fields.
1764
f9874160
C
1765Thu Sep 8 16:15:34 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1766
1767 * sparclite/Makefile.in: Assorted stuff needed for eload.
1768
1769 * sparclite/eload.c: Merge in command line argument parsing and
1770 error message handling improvements orignally made to aload.c.
1771
e52bfe0c
JL
1772Wed Sep 7 23:24:50 1994 Jeff Law (law@snake.cs.utah.edu)
1773
1774 * defs.h (enum misc_command_type, command_control_type): Enums
1775 for describing the command and control types.
1776 (struct command_line): Add new fields to keep track of the command
1777 type and body associated with the command.
1778 * top.c: Include value.h. Delete whitespace at the end of lines.
1779 (build_command_line, get_command_line): New functions.
1780 (execute_control_command, while_command, if_command): Likewise.
1781 (realloc_body_list, read_next_line): Likewise.
1782 (recurse_read_control_structure): Likewise.
1783 (execute_user_command): Call execute_control_command.
1784 (read_command_lines): Simplify by calling read_next_line, call
1785 read_control_structure for "if" and "while" commands.
1786 (free_command_lines): Free new fields in the command structure.
1787 (define_command): Reset control_level to zero.
1788 (init_main): Install command handlers for "if" and "while" commands.
1789
22d7f91e
SS
1790Tue Sep 6 16:24:07 1994 Stan Shebs (shebs@andros.cygnus.com)
1791
1792 * c-typeprint.c (c_type_print_varspec_prefix,
1793 c_type_print_varspec_suffix): Add cases for Fortran type codes.
1794 * eval.c (evaluate_subexp): For OP_ARRAY expressions in Fortran,
1795 call f77_value_literal_string instead.
1796 * f_exp.y: Include <string.h>, move include of parser-defs.h.
1797 (parse_number): Translate 'd' floats to 'e' so atof() works.
1798 (yylex): Remove unused variables.
1799 * f-lang.c: Include <string.h>.
1800 (get_bf_for_fcn): Remove unused variable.
1801 * f-typeprint.c (f_type_print_varspec_prefix,
1802 f_type_print_varspec_suffix): Remove unused
1803 variables, add cases to switch statements.
1804 (f_type_print_base): Remove unused variables.
1805 * f-valprint.c (gdbcore.h, command.h): Include.
1806 (f77_get_dynamic_lowerbound, f77_get_dynamic_upperbound):
1807 Call read_memory_integer with correct number of arguments.
1808 (f77_get_dynamic_upperbound): Call f77_get_dynamic_lowerbound
1809 with correct argument type.
1810 (f77_print_array): Removed unused array array_size_array.
1811 (f_val_print): Don't use a CORE_ADDR as a char *.
1812 * valops.c (value_cast): Handle COMPLEX and BOOL types.
1813 (value_assign): Handle Fortran literal string and complex values.
1814 (f77_cast_into_complex, f77_assign_from_literal_string,
1815 f77_assign_from_literal_complex): New functions.
1816
42fca93e
PB
1817Mon Sep 5 14:46:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
1818
1819 * ch-typeprint.c (chill_type_print_base): Make TYPE_CODE_RANGE
1820 case more robust.
1821
6573c898
SS
1822Sun Sep 4 16:06:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1823
b50e3283
SS
1824 * i960-tdep.c (signal.h): Don't include.
1825
43c99855
SS
1826 * cxux-nat.c (target_is_m88110): Remove definition.
1827
6573c898
SS
1828 * configure.in (config/nm-empty.h): If cross only, use instead
1829 of config/nm-trash.h.
1830 * config/nm-trash.h: Remove.
1831 * config/nm-empty.h: New file.
1832 * config/i386/nm-m3.h: New file, includes config/nm-m3.h.
1833 * config/mips/nm-m3.h: New file, includes config/nm-m3.h.
1834 * config/m68k/nm-sysv4.h: New file, includes config/nm-sysv4.h.
1835 * config/mips/nm-sysv4.h: New file, includes config/nm-sysv4.h.
1836 * config/sparc/nm-sysv4.h: New file, includes config/nm-sysv4.h.
1837
d3d75ec9 1838start-sanitize-gdbtk
4b078dc3
SG
1839Fri Sep 2 19:11:40 1994 Stu Grossman (grossman@cygnus.com)
1840
6573c898 1841 * configure.in: Don't symlink to gdbtk.tcl if it's already there.
d3d75ec9 1842end-sanitize-gdbtk
4b078dc3 1843
b40fa612
C
1844Fri Sep 2 17:35:55 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
1845
6573c898 1846 * configure.in: No longer look for nm, tm, and xm headers in
b40fa612
C
1847 config/<header>; they are always in config/<cpu>/<header>.
1848
7f4c8595
SS
1849Fri Sep 2 16:40:03 1994 Stan Shebs (shebs@andros.cygnus.com)
1850
1851 * objfiles.c (allocate_objfile): Add the newly-created objfile to
1852 the end of the list of objfiles, instead of at the beginning.
1853
1854 * xcoffread.c (allocate_include_entry): New function, abstracted
1855 from code in record_include_begin.
1856 (record_include_begin, record_include_end): Call it.
1857
1858 * blockframe.c (reinit_frame_cache): Test inferior_pid instead of
1859 target_has_stack to decide whether to create a real stack frame
1860 for the cache.
1861
1862 * coffread.c (process_coff_symbol) [CXUX_TARGET]: Ignore vendor
1863 section.
1864 * config/m88k/tm-cxux.h (CXUX_TARGET): Define.
1865
1866 * h8300-tdep.c: Include "dis-asm.h" instead of <dis-asm.h>.
1867
1868Fri Sep 2 09:51:46 1994 J.T. Conklin (jtc@cygnus.com)
1869
1870 * config/sparc/tm-nbsd.h: Add #defines to map NetBSD struct and
1871 field names into what is expected by sparc-nat.c.
1872
6a2eecac
PB
1873Thu Sep 1 17:32:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
1874
1875 * c-typeprint.c (c_typedef_print): Add missing Chill support.
1876
9feea506
SG
1877Thu Sep 1 15:41:21 1994 Stu Grossman (grossman@cygnus.com)
1878
1879 * rs6000-pinsn.c (print_insn): Use powerpc disassembler when
1880 doing Power PC.
1881 * config/powerpc/tm-ppc-nw.h: Define GDB_TARGET_POWERPC.
1882
1883 * config/i386/i386lynx.mh, config/m68k/m68klynx.mh,
1884 config/rs6000/rs6000lynx.mh, config/sparc/sparclynx.mh: Enable
1885 ser-tcp.
1886
1887 * nlm/Makefile.in: Get rid of NWSOURCE.
1888 * nlm/alpha-io.S (inVti, outVti): Remove extraneous ldha's.
1889 * nlm/gdbserve.o: Add dummy __main routine.
1890 * nlm/gdbserve.def: Turn on debug.
1891
ac32cd08
JK
1892Thu Sep 1 12:36:39 1994 Jim Kingdon (kingdon@cygnus.com)
1893
1894 * config/xm-nbsd.h: Don't define SET_STACK_LIMIT_HUGE; it is obsolete.
1895
331d515a
C
1896Thu Sep 1 11:01:40 1994 J.T. Conklin (jtc@rtl.cygnus.com)
1897
1898 * config/tm-nbsd.h: New file, support for all NetBSD targets.
7f4c8595 1899 * config/xm-nbsd.h: fix typo.
331d515a
C
1900 * config/sparc/{nm,tm,xm}-nbsd.h: New files, renamed from
1901 {nm,tm,xm}-sparcnbsd.h to conform to prefered file naming
1902 conventions.
1903 * configure.in: (sparc-*-netbsd): use config/sparc/nbsd.m[ht].
1904
05781513
JM
1905Wed Aug 31 14:40:33 1994 Jason Molenda (crash@phydeaux.cygnus.com)
1906
1907 * remote-udi.c (udi_read_inferior_memory,udi_write_inferior_memory):
1908 change typeo in error msg (`inferrior' -> `inferior').
1909
c6623d2c
JK
1910Wed Aug 31 09:17:02 1994 Jim Kingdon (kingdon@cygnus.com)
1911
1e75b5f5
JK
1912 * inflow.c (set_sigint_trap, clear_sigint_trap): Check for
1913 attach_flag (this check was performed by the callers). Also check
1914 inferior_thisrun_terminal.
1915 * inftarg.c (child_wait), lynx-nat.c (child_wait),
1916 procfs.c (wait_fd), symm-nat.c (child_wait): Don't check
1917 attach_flag in deciding whether to call set_sigint_trap and
1918 clear_sigint_trap.
1919
c6623d2c
JK
1920 * value.h (struct value): Change literal_data from PTR to char *,
1921 since that is the way it is used.
1922
31b2518a
JL
1923Tue Aug 30 21:56:54 1994 Jeff Law (law@snake.cs.utah.edu)
1924
1925 * somread.c (som_symfile_read): Force unwinds to be re-read after
1926 reading in a new partial symbol table.
1927
bad5ceb8
SS
1928Tue Aug 30 13:14:16 1994 Stan Shebs (shebs@andros.cygnus.com)
1929
1930 * config/h8500/tm-8500.h (DONT_USE_REMOTE): Remove definition,
1931 an obsolete conditional.
1932 * config/pa/tm-hppa.h (BREAKPOINT) [KERNELDEBUG]: Remove use,
1933 an obsolete conditional.
1934 * config/rs6000/rs6000.mh, config/rs6000/rs6000.mt: Clean up
1935 comments.
1936
6d8dfa64
SS
1937Mon Aug 29 14:39:42 1994 Stan Shebs (shebs@andros.cygnus.com)
1938
1939 * Makefile.in (ns32k-opcode.h): Remove reference.
1940 (ns32k-pinsn.o): Update dependencies.
1941 * ns32k-opcode.h: Remove file.
1942 * ns32k-pinsn.c (print_insn): Call version in libopcodes, remove
1943 all other code in this file.
1944
dd55ca70
SG
1945Mon Aug 29 12:04:07 1994 Stu Grossman (grossman@cygnus.com)
1946
1947 * nlm/configure.in: Stop using cpu.c. Put it in TDEPFILES instead.
1948 * config/alpha/gdbserve.mt (TDEPFILES): Remove alpha-patch.o.
1949
1950 * nlm/Makefile.in: Add rule for .S.o.
1951 * nlm/aio.h: Protect from multiple inclusions.
1952 * nlm/alpha-io.S: Remove everything we don't need.
1953 * nlm/{alpha-patch.c, alpha-patch.h, alpha-uart.c, alpha-uart.h}:
1954 Remove, no longer needed.
1955 * nlm/alpha.c: Merge in lots of stuff from previous files.
1956 * nlm/alpha.h: Don't #include alpha-patch.h. Make
1957 breakpoint_insn extern.
1958 * Move stuff from alpha-patch.h into here.
1959
1960 * config/alpha/gdbserve.mt (TDEPFILES): Get rid of alpha-uart.o.
1961
0c070b57
JK
1962Mon Aug 29 11:34:34 1994 Jim Kingdon (kingdon@cygnus.com)
1963
1964 * annotate.c (annotate_starting): Flush output.
1965
46d185d3
PS
1966Sat Aug 27 23:32:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1967
1968 * symfile.c (symbol_file_add): Move reinit_frame_cache call to
1969 the callers of symbol_file_add. Gets rid of heuristic fence-post
1970 warnings on mips and alpha targets when the PC resides in a shared
1971 library which is not yet read in.
1972 * coff-solib.c (coff_solib_add), cxux-nat.c (add_shared_symbol_files),
1973 irix5-nat.c (solib_add), osfsolib.c (solib_add),
1974 remote-vx.c (vx_open), solib.c (solib_add):
1975 Add call to reinit_frame_cache after all shared libraries are read in.
1976 * remote-udi.c (udi_load), remote-vx.c (vx_load_command),
1977 symfile.c (symbol_file_command, add_symbol_file_command):
1978 Add call to reinit_frame_cache after symbol_file_add.
1979
74d319e0
C
1980Wed Aug 24 17:45:14 1994 J.T. Conklin (jtc@cygnus.com)
1981
1982 * config/xm-nbsd.h: New file, support for all NetBSD ports.
d7758a22
C
1983 * config/sparc/{nm-sparcnbsd.h,tm-sparcnbsd.h,xm-sparcnbsd.h,
1984 sparcnbsd.mh,sparcnbsd.mt}: New files, support for NetBSD/sparc.
74d319e0
C
1985 * configure.in: Add sparc-*-netbsd target.
1986
3d19ff2b
SS
1987Wed Aug 24 13:17:34 1994 Stan Shebs (shebs@andros.cygnus.com)
1988
1989 * remote-vx.c (vx_attach): Interpret the command argument as an
1990 unsigned long.
1991
7382b3b1
ILT
1992Wed Aug 24 13:08:08 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1993
1994 * configure.in: Change i[34]86 to i[345]86.
1995 * nlm/configure.in: Likewise.
1996 * gdbserver/configure.in: Likewise.
1997
bdf218b3
C
1998Wed Aug 24 09:41:09 1994 J.T. Conklin (jtc@cygnus.com)
1999
2000 * configure.in (i386-*-netware): Automatically configure nlm
2001 subdir.
2002
513d7836
C
2003Tue Aug 23 17:51:13 1994 J.T. Conklin (jtc@cygnus.com)
2004
2005 * nlm/gdbserve.c: conditionalize header file inclusion for either
2006 NetWare 4.0 or PIN targets.
2007 * nlm/i386.c: include appropriate header files.
2008 * nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
2009 targets.
2010
8edf0016
SG
2011Tue Aug 23 16:54:16 1994 Stu Grossman (grossman@cygnus.com)
2012
2013 * nlm/ppc.c (set_step_traps clear_step_traps): Cleanups.
2014 * nlm/gdbserve.def: Autoload clib.
2015
e44075d3
JK
2016Tue Aug 23 12:05:19 1994 Jim Kingdon (kingdon@cygnus.com)
2017
8edf0016
SG
2018 * breakpoint.c (condition_command): Call breakpoints_changed.
2019
e44075d3
JK
2020 * gdbtypes.h: Declare f77_create_literal_string_type and
2021 f77_create_literal_complex_type.
2022 * valops.c (f77_value_literal_string, f77_value_substring,
2023 f77_value_literal_complex): Use xmalloc not malloc.
2024 * valops.c (f77_value_literal_string, f77_value_substring):
2025 Make addr char * not CORE_ADDR.
2026 * value.h (struct value): Add new field literal_data of aligner union.
2027 (VALUE_LITERAL_DATA): Use it.
2028 * f-lang.h: Declare find_common_for_function.
2029 * value.h, valops.c: Split VALUE_SUBSTRING_START into memaddr and
2030 myaddr fields of a union. Don't overload it with the frame field
2031 (not sure this is necessary; I'm not sure what lval_* codes
2032 VALUE_SUBSTRING_* can be used with).
2033
2656b343
SS
2034Mon Aug 22 11:45:01 1994 Stan Shebs (shebs@andros.cygnus.com)
2035
0cf4b3b7
SS
2036 * config/a29k/{a29k-kern.mt,a29k-udi.mt,a29k.mt,ultra3.mh,
2037 ultra3.mt}: Clean up comments, remove no-longer-used definitions.
2038
886955e7
SS
2039 * rs6000-nat.c: Include libbfd.h again, needed until reference
2040 to bfd_cache_lookup is cleaned out.
2041
2656b343
SS
2042 * config/i386/linux.mh (XM_CLIBS): Add -lm.
2043
be5e6fff
SC
2044Mon Aug 22 10:42:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2045
2046 Work to reduce the interrupts-off duration when running in DOS.
2047 * ser-go32.c: (dos_async_ready): See if anything is in the buffer.
2048 (dos_async_rx): rewrite to unpack as many characters from the
2049 asynctsr as possible into a local buffer.
2050
a91a6192
SS
2051Fri Aug 19 14:55:45 1994 Stan Shebs (shebs@andros.cygnus.com)
2052
2053 Initial Fortran language support, adapted from work by Farooq Butt
2054 (fmbutt@engage.sps.mot.com).
2055 * Makefile.in: Add Fortran-related files and dependencies.
2056 * defs.h (language_fortran): New language enum.
2057 * language.h (_LANG_fortran): Define.
2058 (MAX_FORTRAN_DIMS): Define.
2059 * expression.h: Reformat to standard.
2060 (MULTI_F77_SUBSCRIPT, OP_F77_UNDETERMINED_ARGLIST,
2061 OP_F77_LITERAL_COMPLEX, OP_F77_SUBSTR): New expression opcodes.
2062 * gdbtypes.h (TYPE_CODE_COMPLEX, TYPE_CODE_LITERAL_COMPLEX,
2063 TYPE_CODE_LITERAL_STRING): New type codes.
2064 (type): New fields upper_bound_type and lower_bound_type.
2065 (TYPE_ARRAY_UPPER_BOUND_TYPE, TYPE_ARRAY_LOWER_BOUND_TYPE,
2066 TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): New
2067 macros.
2068 (builtin_type_f_character, etc): Declare.
2069 * value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_START): Define.
2070 * f-exp.y: New file, Fortran expression grammar.
2071 * f-lang.c: New file, Fortran language support functions.
2072 * f-lang.h: New file, Fortran language support declarations.
2073 * f-typeprint.c: New file, Fortran type printing.
2074 * f-valprint.c: New file, Fortran value printing.
2075 * eval.c (evaluate_subexp): Add code for new expression opcodes,
2076 fix wording of error message.
2077 * gdbtypes.c (f77_create_literal_complex_type,
2078 f77_create_literal_string_type): New functions.
2079 * language.c (set_language_command): Add Fortran info.
2080 (calc_f77_array_dims): New function.
2081 * parse.c (length_of_subexp, prefixify_subexp): Add cases for new
2082 expression opcodes.
2083 * symfile.c (deduce_language_from_filename): Recognize .f and .F
2084 as Fortran source files.
2085 * valops.c (f77_value_literal_string, f77_value_substring,
2086 f77_value_literal_complex): New functions.
2087
f3806e3b
PS
2088Fri Aug 19 13:35:01 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2089
2090 * c-typeprint.c (c_print_type): Assume demangled arguments
46d185d3 2091 if a '(' is found in varstring, looking for ')' at the end of
f3806e3b
PS
2092 varstring did fail with demangled const member functions, which
2093 have a trailing `const'.
2094 * remote.c (get_offsets, putpkt): Change to `char' buffers,
2095 to avoid errors when compiling with DEC c89.
2096 (remote_wait): Cast to `char *' before passing buffer to
2097 fputs_filtered, to avoid errors when compiling with DEC c89.
2098 (remote_wait): Do not return inferior_pid by default, this
2099 statement is never reached, which causes warnings from some
2100 compilers.
2101 * stabsread.c (scan_file_globals): Ignore static minimal symbols.
2102 * symfile.c (load_command): If called with no argument, try
2103 to get the filename from the executable file.
2104 (generic_load): Remove check for NULL filename, it is done
2105 in load_command now.
2106
2848f793
JL
2107Fri Aug 19 10:36:15 1994 Jeff Law (law@snake.cs.utah.edu)
2108
2109 * Makefile.in (ALLDEPFILES): Add hpread.c.
2110 (hpread.o): Add dependencies.
2111
2112 * somread.c: Do not include "aout/aout64.h". SOM has nothing to
2113 do with a.out.
2114 (BYTES_IN_WORD): Delete.
2115 (som_symfile_read): Call hpread_build_psymtabs to build any
2116 minimal symbols based on the HP C native debug symbols.
2117 (som_symfile_finish): Call hpread_symfile_finish.
2118 (som_symfile_init): Call hpread_symfile_init.
2119 * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define.
2120 * hppa-tdep.c (hpread_adjust_stack_address): New function.
2121
2122 * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o
2123 * config/pa/hppahpux.mh (NATDEPFILES): Likewise.
2124 * hpread.c: New file.
2125
4cbc4bf1
JL
2126Fri Aug 19 00:40:55 1994 Jeff Law (law@snake.cs.utah.edu)
2127
2128 * hppa-tdep.c (skip_trampoline_code): Revert incorrect change
2129 from June 2, 1994 (what was I thinking?!?). Fix it right this
2130 time.
2131
ef4b379a
C
2132Thu Aug 18 17:01:35 1994 J.T. Conklin (jtc@rtl.cygnus.com)
2133
2134 * nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.
2135
78425afe
SS
2136Thu Aug 18 14:39:46 1994 Stan Shebs (shebs@andros.cygnus.com)
2137
2138 * README: Grammar improvements, clarifications, updates.
2139
b7da2494
SG
2140Wed Aug 17 23:08:53 1994 Stu Grossman (grossman@cygnus.com)
2141
2142 * Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
2143 NLMCONV_FOR_TARGET. (SUBDIRS): Add nlm target.
2144 * configure.in (powerpc-*-netware*): Automatically configure nlm
2145 subdir.
2146 * nlm/Makefile.in: Add {CC NLMCONV LD}_FOR_TARGET. Remove alpha
2147 specific stuff. Make things more configurable.
2148 * nlm/configure.in: Add powerpc-*-netware* target. Use
2149 gdbserve.mt/cpu.c/cpu.h for target stuff. Get rid of tm/xm/nm.h
2150 files.
2151 * nlm/gdbserve.c: Move Alpha specific stuff into other files.
2152 Remove lots of architecture-specific stuff.
2153 * nlm/gdbserve.def: Add new imports.
2154 * nlm/ppc.c, nlm/ppc.h: New files that contain PowerPC specific code.
2155 * nlm/prelude.c: Don't include libhooks.h, get rid of call to
2156 register library.
2157 * nlm/prelude.o: What was this doing here?
a8f6da08
SG
2158 * config/alpha/gdbserve.mt: Defs for alpha nlm stub.
2159 * config/powerpc/gdbserve.mt: Defs for PowerPC nlm stub.
2160 * config/powerpc/ppc-nw.mt: Defs for PowerPC target for GDB.
2161 * config/powerpc/tm-ppc-nw.h: Ditto.
2162
2163 * nlmstub.def: New file, contains imports for 386 nlm stub.
b7da2494 2164
8c074d7a
RS
2165Wed Aug 17 23:17:33 1994 Rob Savoye (rob@darkstar.cygnus.com)
2166
2167 * remote-pa.c: New file for HPPA embedded support. Currently it's
2168 a copy of remote.c.
2169 * config/pa/hppabsd.mt,hppahpux.mt,hppaosf.mt: User remote-pa.c.
2170
ca3c57e5
SS
2171Wed Aug 17 13:19:52 1994 Stan Shebs (shebs@andros.cygnus.com)
2172
2173 * config/m68k/tm-delta68.h (EXTRACT_RETURN_VALUE,
2174 STORE_RETURN_VALUE): Define to use %a0 for pointers.
2175
e1f38ddf
JK
2176Wed Aug 17 07:43:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2177
2178 * remote-mips.c: Remove unused declaration of mips_load.
2179
d696808d
SS
2180Tue Aug 16 16:45:34 1994 Stan Shebs (shebs@andros.cygnus.com)
2181
2182 * coffread.c: General cleanup, and support for section offsets.
2183 (time.h, sys/types.h, libbfd.h): Don't include.
2184 (cur_src_start_addr, cur_src_end_addr): Rename to
2185 current_source_start_addr, current_source_end_addr.
2186 (nlist_stream_global): Remove.
2187 (nlist_bfd_global): New global variable.
2188 (coff_symfile_read): Remove code that gets and uses fileno()
2189 directly.
2190 (read_coff_symtab, enter_linenos, process_coff_symbol): Add
2191 section_offsets parameter, add text/data section offset to
2192 appropriate symbols' values.
2193 (read_one_sym): Use bfd_read instead of fread.
2194 (init_stringtab, init_lineno): Change first parameter to a bfd,
2195 use bfd routines instead of raw I/O.
2196
c8a1505a
JK
2197Tue Aug 16 15:24:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2198
0cec815f
JK
2199 * symtab.c (decode_line_1): If funfirstline and we get a
2200 non-LOC_BLOCK symbol (e.g. variable or type), then error().
2201
c8a1505a
JK
2202 * Makefile.in (TARFILES, NONSRC, SFILES_STAND, SFILES_KGDB):
2203 Remove; unused.
2204 (TAGFILES_NO_SRCDIR): Remove ALLPARAM.
2205 (HFILES_NO_SRCDIR): Remove all files in config sub-directory.
2206 (TAGS): Also pass result of find on config sub-directory to etags.
2207 (ALLPARAM): Remove; now unused.
2208
7de5c5e2
FF
2209Sun Aug 14 13:05:26 1994 Fred Fish (fnf@cygnus.com)
2210
2211 * Makefile.in (VERSION): Bump to 4.13.1
2212 * NEWS, README: Update to match gdb 4.13 release version.
2213
71ed485d
FF
2214Sat Aug 13 08:22:50 1994 Fred Fish (fnf@cygnus.com)
2215
96ff369d
FF
2216 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
2217 * cxux-nat.c: Remove dangling #else block.
d696808d 2218 (m88k_harris_core_register_addr): New function.
96ff369d 2219
71ed485d
FF
2220 * environ.c (init_environ): If no environment, do nothing.
2221
2848f793
JL
2222Fri Aug 12 19:30:53 1994 Jeff Law (law@snake.cs.utah.edu)
2223
2224 * hpread.c: Delete rest of TODO list. Do not include "libbfd.h",
2225 <time.h>, <sys/types.h>, "demangle.h", <sys/file.h>,
2226 "expression.h", "language.h", "gdbtypes.h", "demangleh".
2227 Move all global variables into the private symbol table structure
2228 and add accessor macros. Update some comments.
2229 (hpread_build_psymtabs): Delete dbsubc_addr, we don't need it.
2230 (hpread_end_psymtab): New function to end a partial symbol table,
2231 all callers changed (no more bogus sharing with dbxread.c).
2232
4fb7359d
SG
2233Fri Aug 12 15:52:37 1994 Stu Grossman (grossman@cygnus.com)
2234
2235 * remote.c (remote_wait): Return inferior_pid instead of 0 for
2236 `W` message.
2237
a9a53e43
C
2238Fri Aug 12 11:47:10 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2239
f9874160 2240 * sparclite/aload.c (sys_error, error): Use vfprintf for variable
a9a53e43
C
2241 argument lists.
2242
97e7b66f
DE
2243Thu Aug 11 04:06:42 1994 Doug Evans (dje@canuck.cygnus.com)
2244
2245 * defs.h (concat, basename, buildargv, freeargv, strerrno, strsigno,
2246 errno_max, signo_max, strtoerrno, strtosigno): Delete.
2247 Include "libiberty.h" instead.
2248
04dd69e1
FF
2249Wed Aug 10 13:23:47 1994 Rick Sladkey (jrs@world.std.com)
2250
2251 * i386v-nat.c (i386_insert_nonaligned_watchpoint):
2252 add additional argument specifying raw address to permit
2253 proper release of debug registers.
2254 (i386_insert_watchpoint, i386_insert_aligned_watchpoint):
2255 change all callers.
2256
8164ec2e
SG
2257Wed Aug 10 16:13:45 1994 Stu Grossman (grossman@cygnus.com)
2258
2259 * defs.h, top.c: Use `extern' in declarations of GUI hooks, and
2260 define them in top.c. Add comments to the hooks.
2261
1311f8d1
DE
2262Wed Aug 10 15:57:43 1994 Doug Evans (dje@canuck.cygnus.com)
2263
2264 * remote-sim.c (gdbsim_ops): Set `to_insert_breakpoint' and
2265 `to_remove_breakpoint' fields.
2266
ced992e4
JK
2267Wed Aug 10 15:46:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2268
2269 * infcmd.c (run_command): Remove comment suggesting using
2270 target_has_execution instead of inferior_pid.
2271
d48d9a28
KH
2272Wed Aug 10 10:33:20 1994 Kung Hsu (kung@mexican.cygnus.com)
2273
2274 * remote-mips.c (mips_open): add code to handle baud rate.
2275
eca4a350
SG
2276Tue Aug 9 09:44:42 1994 Stu Grossman (grossman@cygnus.com)
2277
2278 * infrun.c (wait_for_inferior): Call target_resume() upon
2279 detection of new processes.
2280
2281 * procfs.c (create_procinfo): Return pointer to new procinfo
2282 structure.
2283 * (do_detach): Spacing & formatting cleanup.
2284 * (procfs_wait): Move wait_again label to ensure that we really
2285 wait again. On exit from fork, release new child from gdbs'
2286 clutches.
2287 * (procfs_set_sproc_trap): Enable trapping of fork and vfork.
2288
2848f793
JL
2289Mon Aug 08 15:34:13 1994 Jeff Law (law@snake.cs.utah.edu)
2290
2291 * hpread.c (hpread_process_one_debug_symbol): Fix block scoping
2292 problem (losing localvars on the close-brace instead of after
2293 the close brace).
2294
eca4a350
SG
2295Mon Aug 8 15:09:32 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2296
2297 * i386-nlmstub.c (handle_exception): Wait until the thread has
2298 been started before killing the NLM by pointing the PC at
2299 _exit().
2300
0d98155c
PS
2301Sat Aug 6 22:27:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2302
2303 * config/mips/tm-irix5.h (IN_SIGTRAMP): Redefine for Irix 5,
2304 Irix 5 has a standard _sigtramp signal handler.
2305 * irix5-nat.c (solib_add): Get rid of sigtramp_address handling,
2306 it is not needed for a standard _sigtramp signal handler.
2307 Add shared library sections to the section table of the target
2308 before adding the symbols.
2309 * mips-tdep.c (mips_skip_prologue): Do not skip load immediate
2310 instructions that do not prepare a stack adjustment.
2311 * regex.c (SIGN_EXTEND_CHAR): Update to emacs-19.25 definition,
2312 which does the right thing on machines where `char' is unsigned.
2313
5d621955
SG
2314Fri Aug 5 17:50:59 1994 Stu Grossman (grossman@cygnus.com)
2315
2316 * remote.c (remote_open): Move setting of inferior_pid prior to
2317 call to remote_start_remote. Also use unique value for pid to
2318 avoid confusion with read_register_pid & friends.
2319 * (remote_wait): Return inferior_pid instead of 0 in all cases.
2320
35930134
SS
2321Fri Aug 5 12:23:02 1994 Stan Shebs (shebs@andros.cygnus.com)
2322
2323 * dwarfread.c (bfd.h): Don't include.
2324
d375ce17
C
2325Fri Aug 5 09:08:34 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2326
2327 * i386-nlmstub.c (handle_exception): Point the PC at _exit() to
2328 kill the program being debugged. KillMe(), the undocumented
2329 call intended for this purpose, causes the server to hang.
2330
284f4ee9
SC
2331Thu Aug 4 16:26:06 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2332
35930134
SS
2333 * remote.c (read_frame): Calculate run length encoded checksum
2334 correctly.
284f4ee9
SC
2335 * config/sh/stub.c: New file.
2336
7e01f50c
SG
2337Thu Aug 4 14:34:12 1994 Stu Grossman (grossman@cygnus.com)
2338
2339 * target.c (find_default_run_target): Make sure to_can_run is set
2340 before calling it.
2341
9da0e790
JMD
2342Thu Aug 4 11:46:27 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2343
2344 * TODO: Remove note about fast watchpoints and remove obsolete
2345 Mach stuff.
2346
e63d6469
SS
2347Thu Aug 4 11:08:03 1994 Stan Shebs (shebs@andros.cygnus.com)
2348
2349 * config/i386/xm-i386v4.h, config/m68k/xm-m68kv4.h,
2350 config/sparc/xm-sun4sol2.h (NORETURN): Don't define.
2351 * config/m88k/tm-cxux.h (ARCH_NUM_REGS): Undefine before defining.
2352
a1e0ba7a
SG
2353Thu Aug 4 10:26:36 1994 Stu Grossman (grossman@rtl.cygnus.com)
2354
a3ecbe7c
SG
2355 * target.c (add_target): Don't call clean_target on target
2356 vectors anymore.
2357 * (unpush_target): Test for to_close being set before calling.
2358 * (target_xfer_memory, target_info): Check for to_has_memory
2359 before playing with memory.
2360
a1e0ba7a
SG
2361 * remote.c (remote_open): Set inferior_pid to make kill command
2362 happy.
2363 * inflow.c (kill_command): Revert change of Aug 2. Use
2364 inferior_pid to determine whether to print out "The program is not
2365 being run." message.
2366
f4e0e098
JMD
2367Thu Aug 4 07:55:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2368
2369 * config/i386/i386m3.mh (NAT_CLIBS): Add -lmachid and -lnetname.
2370 * m3-nat.c, config/nm-m3.h: #if 0 REQUEST_QUIT stuff.
2371 * m3-nat.c: Pass argument to return_to_top_level.
2372 Declare m3_kill_inferior before use.
2373 (port_chain_insert): In "can't happen" case, abort rather than
2374 setting `mid' to large decimal constant (which gcc warns about).
2375 (get_thread_name): Use cast to convert const char * to char *.
2376 (add_mach_specific_commands): #if 0 "thread break" command.
2377 (m3_trace_him): Call push_target.
2378 (mach_really_wait): New argument pid; remove unused
2379 variable pid.
2380 (intercept_exec_calls): Call target_terminal_init and
2381 target_terminal_inferior once the child execs.
2382 * infrun.c (proceed): Pass argument to PREPARE_TO_PROCEED.
2383
cd4104e0
TL
2384Wed Aug 3 22:41:13 1994 Tom Lord (lord@x1.cygnus.com)
2385
35930134 2386 * procfs.c (procfs_mourn_inferior): don't dereference the
cd4104e0
TL
2387 procinfo pointer after it has been freed.
2388
043b05b2
SS
2389Wed Aug 3 12:05:13 1994 Stan Shebs (shebs@andros.cygnus.com)
2390
0bc2c400
SS
2391 * breakpoint.c (breakpoint_1): Improve pluralization in display
2392 of breakpoint hit counts.
2393
043b05b2
SS
2394 * language.h (struct language_defn): Remove unused field
2395 la_longest_float.
2396 (longest_float): Remove, no longer used.
2397 * language.c (unknown_language_defn, auto_language_defn,
2398 local_language_defn): Remove init of la_longest_float field.
2399 * c-lang.c (c_language_defn, cplus_language_defn,
2400 asm_language_defn): Ditto.
901c2f5f 2401 * ch-lang.c (chill_language_defn): Ditto.
043b05b2
SS
2402 * m2-lang.c (m2_language_defn): Ditto.
2403
356ff909
SS
2404Tue Aug 2 10:58:34 1994 Stan Shebs (shebs@andros.cygnus.com)
2405
2406 * defs.h (bfd_read, bfd_seek): Remove declarations.
2407 * os9kread.c, rs6000-nat.c (libbfd.h): Don't include.
2408
319faf21
C
2409Tue Aug 2 09:50:50 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2410
2411 * inflow.c (kill_command): Fix a bug which prevented target
2412 programs to be killed.
2413
6f54efdc
SS
2414Mon Aug 1 18:48:47 1994 Stan Shebs (shebs@andros.cygnus.com)
2415
2416 * defs.h: Change two-line declarations to one-line form.
2417 (NORETURN): Define as "volatile" only for older GCCs.
2418 (ATTR_NORETURN): Define for newer GCCs.
f4e0e098 2419 * procfs.c (proc_init_failed): Add ATTR_NORETURN to declaration.
6f54efdc 2420
d2a85f11
JMD
2421Mon Aug 1 16:43:24 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2422
2423 * breakpoint.c (mention), main.c (fputs_unfiltered): Add comments.
2424 * breakpoint.c (delete_breakpoint, enable_breakpoint,
2425 disable_breakpoint): Don't call breakpoints_changed; it is now
2426 called via the *_breakpoint_hook functions.
2427 * annotate.c (_initialize_annotate, breakpoint_changed): New functions.
2428
5a04f7d1
KH
2429Mon Aug 1 13:38:04 1994 Kung Hsu (kung@mexican.cygnus.com)
2430
2431 * stabsread.c (read_type): Fix a bug in enum size calculation.
2432
edd86fb0
JL
2433Mon Aug 1 01:36:13 1994 Jeff Law (law@snake.cs.utah.edu)
2434
f81eee9d
JL
2435 * hppa-tdep.c (compare_unwind_entries): Add "const" to both
2436 argument types to shut up GCC.
2437
edd86fb0
JL
2438 * hppa-tdep.c (saved_pc_after_call): If the saved PC is in a
2439 linker stub, then return the address the stub will return to.
2440 (frame_saved_pc): Correctly restart the search for the saved
2441 pc when a linker stub is encountered.
2442
2443 * hppa-tdep.c (inst_saves_gr): Handle 16 and 8 bit instruction
2444 register stores emitted by the version 9 HP compilers.
2445 (inst_saves_fr): Relax test for a specific base register (%r1);
2446 this avoids losing with the version 9 HP compilers.
2447 (skip_prologue): Try to skip argument stores emitted by the HP
2448 compilers. It's not perfect, but it's better than before.
2449
43b20641
SG
2450Fri Jul 29 23:20:30 1994 Stu Grossman (grossman@cygnus.com)
2451
2452 * findvar.c (write_pc write_pc_pid): Remove casts to long when
2453 calling write_register_pid.
2454 * (write_register_pid): Add prototype.
2455
205fc02b
SC
2456Fri Jul 29 21:56:23 1994 Steve Chamberlain (sac@jonny.cygnus.com)
2457
2458 * remote.c (read_frame): Split readchar/checksum calculation into
2459 two parts since evaluation order is undefined.
2460
0c18c737
FF
2461Fri Jul 29 13:46:08 1994 Fred Fish (fnf@cygnus.com)
2462
2463 From Kevin A. Buettner (kev@cujo.geg.mot.com).
2464 * Makefile.in (coredep.o): Add inferior.h as dependency.
2465 * inflow.c: Add F_SETOWN to list of defines to check
2466 around code that uses F_SETOWN.
2467
998b321b
C
2468Fri Jul 29 09:59:05 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2469
2470 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
2471 set the -L and -B directory prefixes so we can link with it.
2472
754e5da2
SG
2473Thu Jul 28 14:37:36 1994 Stu Grossman (grossman@cygnus.com)
2474
2475 * Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
2476 --enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
2477 where appropriate.
2478
2479 * General hackery to support alternate user-interface.
2480 * breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
2481 disable_breakpoint): Call hooks for alternate user-interface.
2482 * defs.h: Add declarations for alternate user-interface hooks.
2483 * main.c (main): Add --nw (and --nowindows) options to disable
2484 the GUI.
2485 * (near call to command_loop): Call command_loop_hook if set.
2486 * (fputs_unfiltered): Call fputs_unfiltered_hook if set.
2487 * stack.c: Call print_frame_info_listing_hook if set.
2488 * top.c (gdb_init): Initialize targets.c and utils.c prior to
2489 other files to make sure that calls to error and warning will
2490 work. Call init_ui_hook after everything else.
2491 * utils.c (query): Call query_hook if set.
2492 * (gdb_flush): Call flush_hook if set.
2493 * Change _initialize_utils to initialize_utils cuz we don't use
2494 automatic initialization of utils.c anymore.
2495
d3d75ec9 2496start-sanitize-gdbtk
754e5da2
SG
2497 * Support for TK GUI.
2498 * Makefile.in: Add rule for gdbtk.o.
2499 * configure.in: Add support for --enable-gdbtk.
2500 * gdbtk.c: New file. Contains support routines for TK interface.
2501 * gdbtk.tcl: New file. Implements GUI policy.
d3d75ec9 2502end-sanitize-gdbtk
754e5da2
SG
2503
2504 * remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer
2505 necessary.
2506
b98612f1
C
2507Thu Jul 28 14:52:01 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2508
2509 * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
2510 there and we are using the gcc from the tree.
2511 (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
2512
8aa8690c
FF
2513Thu Jul 28 10:43:36 1994 Fred Fish (fnf@cygnus.com)
2514
2515 * Makefile.in (annotate.o): Add dependencies.
2516
e356aae3
C
2517Wed Jul 27 14:34:42 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2518
ff59855b
C
2519 * sparclite/aload.c: Added new -q (quiet) option.
2520 return 0 exit status if file was successfully downloaded.
2521
1e47d512
C
2522 * nlm/gdbserve.c: merge in command line argument parsing changes
2523 and bug fixes made to i386-nlmstub.c.
2524
e356aae3
C
2525 * i386-nlmstub.c: The returnLength field must be initialized
2526 before portConfig is passed to AIOGetPortConfiguration.
2527 Compare command line arguments with strnicmp(); args are
2528 case insensitive on netware.
2529
de19d1ed
FF
2530Wed Jul 27 09:24:19 1994 Fred Fish (fnf@cygnus.com)
2531
2532 * Makefile.in (DISTSTUFF): Add definition.
2533 (diststuff): Add for new distribution support.
2534 (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist,
2535 gdb-$(VERSION).tar.Z, make-proto-gdb-1, make-proto-testsuite.dir):
2536 Remove old distribution building rules, now uses standard
2537 distribution support in parent directory Makefile.in.
2538
f6d5d006
JK
2539Tue Jul 26 14:15:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2540
2541 * target.c (push_target): Cast result from xmalloc.
2542
d54b2c50
SS
2543Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
2544
2545 * elfread.c (elf_symtab_read): Discard compiler labels generated
2546 by the Solaris 2.1/Intel SunPro compiler.
2547
4fc5969d
SG
2548Mon Jul 25 18:19:24 1994 Stu Grossman (grossman@cygnus.com)
2549
2550 * target.c (nomemory): Fix prototype and routine to take correct
2551 args.
2552
1ded65d1
JK
2553Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2554
2555 * Makefile.in (clean): Remove libgdb-files.
2556
9a989b1f
SS
2557Mon Jul 25 11:50:57 1994 Stan Shebs (shebs@andros.cygnus.com)
2558
2559 * coredep.c: Include inferior.h.
2560
159f3816
C
2561Mon Jul 25 11:36:02 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
2562
159f3816
C
2563 * i386-nlmstub.c: Add support for NODE, PORT and BAUD command
2564 line arguments.
2565
557f3a0e
SS
2566Sat Jul 23 14:36:09 1994 Stan Shebs (shebs@andros.cygnus.com)
2567
9e38b2fa
SS
2568 * symfile.c (deduce_language_from_filename): Recognize .S as asm,
2569 .cp as C++, alphabetize better.
2570
557f3a0e
SS
2571 * breakpoint.c (ignore, condition): Move usage note into body of
2572 help text, so first line can be one-line summary.
2573
67e947de
SG
2574Sat Jul 23 00:58:15 1994 Stu Grossman (grossman@cygnus.com)
2575
2576 * target.c (unpush_target): Fix handling of removal of top target.
2577
cad1498f
SG
2578Fri Jul 22 17:30:39 1994 Stu Grossman (grossman@cygnus.com)
2579
2580 * Makefile.in: Add stuff to build nlmstub.
2581 * Add rule for annotate.o to keep Sun make happy.
2582 * configure.in: Add config for powerpc/Netware.
2583
2584 * partial-stab.h (near N_SO): Don't call START_PSYMTAB with null
2585 filename. This speeds up handling of trailing N_SO stabs (they
2586 mark the end of a .o file).
2587
2588 * target.c, target.h: Change the way pushing and popping of
2589 targets work to support target overlays and inheritance.
2590 * corelow.c, hppa-tdep.c, inflow.c, remote-nindy.c, utils.c:
2591 Fixup references to current_target, due to previous changes.
2592
2593 * config/i386/tm-i386nw.h: Enable longjmp support. More work is
2594 needed to get the address of longjmp out of the target.
2595
844750e3
SS
2596Tue Jul 19 13:25:06 1994 Stan Shebs (shebs@andros.cygnus.com)
2597
2598 * main.c: Include <ctype.h>.
2599
b0a0ee52
KH
2600Mon Jul 18 15:32:17 1994 Kung Hsu (kung@mexican.cygnus.com)
2601
2602 * remote-mips.c (mips_readchar): Fix a bug in checking <IDT>
2603 prompt.
2604
b0fbe5a2
SS
2605Mon Jul 18 14:26:35 1994 Stan Shebs (shebs@andros.cygnus.com)
2606
2607 * solib.c (look_for_base): Don't deref exec_bfd if NULL.
2608
0f221a69
FF
2609Sun Jul 17 15:38:36 1994 Fred Fish (fnf@cygnus.com)
2610
005234f5 2611 * Makefile.in (VERSION): Bump to 4.12.4.
0f221a69
FF
2612
2613Sun Jul 17 12:20:35 1994 Stan Shebs (shebs@andros.cygnus.com)
2614
2615 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
2616 * configure.in (m88*-harris-cxux*): New configuration.
2617 * cxux-nat.c, config/m88k/cxux.mh, config/m88k/cxux.mt,
2618 config/m88k/xm-cxux.h, config/m88k/tm-cxux.h, config/m88k/nm-cxux.h:
2619 New files.
2620 * config/m88k/tm-m88k.h: Add comment about Harris OS.
2621 (TARGET_WRITE_PC): Pass pid through to register writers.
2622
2623 * configure.in (m68*): Put vendor-only-specified host configs
2624 after vendor-and-os-specified configs.
2625 (m68*-atari-sysv4*, m68*-cbm-sysv4*): Replace with m68*-*-sysv4.
2626
2627 * config/m88k/delta88.mh (MUNCH_DEFINE): Remove.
2628 * config/m88k/delta88.mt, config/m88k/delta88v4.mh: Format
2629 consistently.
2630
00306b1e
PS
2631Sat Jul 16 23:39:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2632
2633 * elfread.c (elf_symtab_read): Handle error return from
2634 bfd_get_dynamic_symtab_upper_bound gracefully.
2635
49b476bd
SS
2636Sat Jul 16 14:43:17 1994 Stan Shebs (shebs@andros.cygnus.com)
2637
62a5dabc
SS
2638 * inferior.h (ARCH_NUM_REGS): New macro, actual number of
2639 registers in use by the inferior.
2640 * coredep.c (fetch_core_registers, register_addr): Use it.
2641 * findvar.c (registers_changed, registers_fetched,
2642 read_register_bytes): Ditto.
2643 * infcmd.c (do_registers_info, registers_info): Ditto.
2644 * infptrace.c (fetch_inferior_registers,
2645 store_inferior_registers): Ditto.
2646 * stack.c (frame_info): Ditto.
2647
2648 * coredep.c (CORE_REGISTER_ADDR): New macro.
2649 (fetch_core_registers): Use it.
2650
49b476bd
SS
2651 * breakpoint.c (ignore, condition): Add usage notes to help strings.
2652 * symfile.c (add-symbol-file): Add usage note to help string.
2653 (add_shared_symbol_files_command): New command.
2654
2655 gcc -Wall lint.
2656 * inferior.h (read_pc_pid): Declare.
2657 * breakpoint.c (watchpoint_check): Cache breakpoint in local
2658 variable b, remove unused variable other_type_used.
2659 * main.c (inferior.h, call-cmds.h): Include.
2660 (gdb_init): Declare.
2661 * remote.c (remote_wait): Return 0 by default.
2662
0568ccb0
SS
2663Fri Jul 15 16:43:33 1994 Stan Shebs (shebs@andros.cygnus.com)
2664
2665 Stop printing at null char option, from Oliver Meyer
2666 (omeyer@i3.informatik.rwth-aachen.de).
2667 * valprint.h, valprint.c (stop_print_at_null): New global.
2668 * valprint.c (_initialize_valprint): New print set subcommand
2669 "null-stop".
2670 * c-valprint.c (c_val_print): If stop_print_at_null is on, and
2671 printing a char array, adjust the number of chars to print.
2672
08f32e32
SS
2673Fri Jul 15 14:33:40 1994 Stan Shebs (shebs@andros.cygnus.com)
2674
2675 From Kevin A. Buettner (kev@cujo.geg.mot.com).
2676 * m88k-tdep.c (examine_prologue): Modified to handle prologues for
2677 pic code in addition to prologues where an instruction from the
2678 prologue gets moved into the delay slot of a branch instruction
2679 immediately following the prologue. A table of potential prologue
2680 instructions (prologue_insn_tbl) is now used for picking apart a
2681 function prologue.
2682 (frame_find_saved_regs): Changed the way in which limit gets set
2683 so that the delay slot of branch instructions immediately
2684 following the prologue gets examined.
2685 (pushed_size, store_parm_word, store_parm, push_parameters,
2686 collect_returned_value): Deleted.
2687
0b0ee55e
PS
2688Fri Jul 15 01:06:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2689
2690 * infrun.c (wait_for_inferior): Handle stepping into leaf
2691 functions whose prologue consists of gp loading code only.
2692
8e3ff823
SS
2693Thu Jul 14 14:22:12 1994 Stan Shebs (shebs@andros.cygnus.com)
2694
2695 * dbxread.c: Don't include libbfd.h.
2696 * dwarfread.c, elfread.c somread.c: Don't include libbfd.h,
2697 <time.h>, or <sys/types.h>.
2698 * elfread.c (elf_symfile_read): Use only standard BFD functions to
2699 collect information about the stab and stab string sections.
2700
8dbe58d8
KH
2701Thu Jul 14 13:17:39 1994 Kung Hsu (kung@x1.cygnus.com)
2702
2703 * stabsread.c (read_huge_number): handle large unsigned number
2704 for stabs generated by os9k C compiler.
2705
9f577285
SS
2706Wed Jul 13 18:58:15 1994 Stan Shebs (shebs@andros.cygnus.com)
2707
2708 Breakpoint hit counts, from Bob Rusk (rrusk@mail.csd.harris.com).
2709 * breakpoint.h (hit_count): New breakpoint field.
2710 * breakpoint.c (show_breakpoint_hit_counts): New variable.
2711 (clear_breakpoint_hit_counts): New function.
2712 (bpstat_stop_status): Increment the hit count.
2713 (breakpoint_1): Display the hit count.
2714 * infcmd.c (run_command): Reset breakpoint hit counts.
2715 * target.c (generic_mourn_inferior): Don't clear ignore counts if
2716 displaying hit counts.
2717
6d9b8a93
PS
2718Tue Jul 12 12:23:15 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2719
2720 * elfread.c (elf_symfile_read): Unconditionally add dynamic
2721 symbols for all symbol files. Makes skipping over the
2722 trampoline code work when stepping from a function in a shared
2723 library into a function in a different shared library for Irix 5.
2724 Other ELF targets do not have enough information in their
2725 dynamic symbol tables to make this work.
2726 (elf_symtab_read): Relocate mst_solib_trampoline address.
2727
02176ddb
SS
2728Mon Jul 11 16:38:49 1994 Stan Shebs (shebs@andros.cygnus.com)
2729
2730 Atari support, from Uwe Seimet (seimet@chemie.uni-kl.de).
2731 * configure.in (m68*-atari-sysv4*): New configuration.
2732 (m68*-cbm-sysv4*): Use m68kv4 instead of amix.
2733 * m68k-tdep.c (R_PS): Define as R_SR if necessary.
2734 * config/m68k/m68kv4.mh, config/m68k/m68kv4.mt,
2735 config/m68k/tm-m68kv4.h, config/m68k/xm-m68kv4.h: New files.
2736 * config/m68k/amix.mh, config/m68k/amix.mt,
2737 config/m68k/tm-amix.h, config/m68k/xm-amix.h: Removed, superseded
2738 by m68kv4 files.
2739
defa6c74
PS
2740Sat Jul 9 16:28:43 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2741
2742 * symtab.c (find_function_start_sal): New function to find
2743 the start of a function from a function symbol.
2744 (decode_line_1, decode_line_2): Use it instead of open coded
2745 partial copies of the code.
2746 (list_symbols): Quote symbol name before passing it to
2747 break_command to enable proper handling of mangled symbols.
2748
2749Wed Jul 6 20:22:07 1994 Per Bothner (bothner@kalessin.cygnus.com)
2750
2751 * ch-exp.y (match_simple_name_string): Don't lower-case here.
2752 * ch-exp.y (yylex): First try name lookup using exact name
2753 typed by user; if that fails, try lower-cased name.
2754
2848f793
JL
2755Wed Jul 06 12:39:07 1994 Jeff Law (law@snake.cs.utah.edu)
2756
2757 * hpread.c: More cleanups. Delete lots of trailing whitespace.
2758 Remove some items from the TODO list and notes throughout code
2759 for things which need fixing. Add more comments.
2760 Document bogus struct symloc sharing with dbxread.c. Delete more
2761 useless variables. Add more PARAM prototypes. Fixup more
2762 indention problems that have crept in.
2763 (SET_NAMESTRING): Accept new namep and objfile arguments so that
2764 it doesn't depend on the variable names on the procedures it's
2765 used from.
2766 (hpread_symfile_init): Delete incorrect checks for bogus sizes of
2767 the debug sections.
2768
cef0333e
PS
2769Wed Jul 6 00:48:57 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2770
2771 * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
2772 Move "no debugging symbols found" test to symfile.c.
2773 * symfile.c (syms_from_objfile, reread_symbols): Add
2774 "no debugging symbols found" test.
2775 * coffread.c (init_stringtab): Handle stripped files with a
2776 stringtab offset of zero gracefully.
2777 * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from
2778 BFD instead of stop_pc heuristic to determine if it is a dynamically
2779 linked object file.
2780 * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP
2781 ioctl, it indicates that the process has exited.
2782
2848f793
JL
2783Mon Jul 04 19:48:03 1994 Jeff Law (law@snake.cs.utah.edu)
2784
2785 * hpread.c (hpread_symfile_init): Make sure to initialize all the
2786 private data to zero. Not having any HP C debug symbols is not an
2787 error. Just return.
2788
0fc27289
JL
2789Mon Jul 4 19:28:56 1994 Jeff Law (law@snake.cs.utah.edu)
2790
2791 * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
2792 .PARISC.unwind section now.
2793
51684caa
SS
2794Mon Jul 4 17:06:26 1994 Stan Shebs (shebs@andros.cygnus.com)
2795
2796 * breakpoint.c (mention): Always show breakpoint address if no
2797 source file.
2798
2799Sat Jul 2 01:51:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2800
2801 * solib.c (bfd_lookup_symbol, look_for_base): Reinstate to reenable
2802 handling of shared libraries for non-ELF executables, but only if
2803 HANDLE_SVR4_EXEC_EMULATORS is defined.
2804 (locate_base): Try to find debug_base in the dynamic linker
2805 for non-ELF executables if HANDLE_SVR4_EXEC_EMULATORS is defined.
2806 * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
2807 Define to enable handling of shared libraries for a.out executables,
2808 run under Solaris BCP.
2809
2848f793
JL
2810Fri Jul 01 19:50:21 1994 Jeff Law (law@snake.cs.utah.edu)
2811
2812 * hpread.c: Change contribution notice to the Cygnus/Utah agreed
2813 upon notice. Delete some stuff from the TODO list. Rework
2814 many comments to be clearer. Major cleanups. Consistently
2815 use "hpread_" prefix. Delete unnecessary macros, structures
2816 variables, fiels, functions and #if 0 code. Mark code which
2817 still needs to be cleaned up. PARAMize and make most functions
2818 static. Fix error checking when reading in the debug section
2819 contents. No more minimal symbol table handling in this code!
2820
018d94f5
JK
2821Thu Jun 30 13:59:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2822
2823 * infrun.c (wait_for_inferior): Print "Program exited normally"
2824 regardless of batch_mode.
2825 * defs.h, top.c (batch_mode): Removed.
2826
7d13174e
SS
2827Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com)
2828
054308ad
SS
2829 * Makefile.in (dcache_h): Remove redundant definition.
2830 (init.c): Add a comment.
2831 (top.c): Remove explicit compile action.
2832 * breakpoint.c (mention): Share code indicating location of
2833 break/watchpoints, don't print address if addressprint is off.
2834 * breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
2835 (demangle): Remove redundant declarations.
2836 * eval.c: Remove redundant function declarations.
2837 * objfiles.h: Cosmetic and grammatical improvements.
2838 * TODO: Various updates.
2839
7d13174e
SS
2840 * remote-mips.c: Replace all \r chars with \015.
2841 (mips_receive_header): Display control characters readably.
2842 (mips_xfer_memory): Add a simple progress display.
2843
402b0d2e
SC
2844Wed Jun 29 13:11:45 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
2845
2846 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
2847 using go32.
2848 * remote-hms.c (flush): New function.
2849 (expect): Get edge case right.
2850 (hms_read_inferior_memory): Be more tolerant of line noise.
2851
3563094d
JMD
2852Tue Jun 28 14:17:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2853
2854 * configure.in: Use i386m3.mh and i386m3.mt as names of host and
2855 target files, not non-existent mach3.mh and mach3.mt.
2856
ca694bfd
PS
2857Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2858
2859 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
2860 symbols for all symbol files. Makes skipping over the
2861 trampoline code work when stepping from a function in a shared
2862 library into a function in a different shared library.
2863 (read_dbx_dynamic_symtab): Relocate mst_solib_trampoline address.
2864
320f93f7
SG
2865Tue Jun 28 15:28:01 1994 Stu Grossman (grossman@cygnus.com)
2866
2867 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
2868 names mean end of .o file.
2869 * infrun.c (wait_for_inferior): Clean up multi-thread logic near
2870 top of routine. Handle new thread notification cleanly.
2871 * lynx-nat.c (child_wait): General cleanups, handle new LynxOS
2872 thread notification scheme.
2873 * (child_resume): General cleanups, handle resumption of all
2874 threads properly.
2875
aa48187b
SC
2876Mon Jun 27 09:57:23 1994 Steve Chamberlain (sac@cirdan.cygnus.com)
2877
2878 * ser-go32.c: Rewrite to run under windows.
2879 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
2880 bus interface.
2881 * serial.c (serial_open): Notice device "pc".
2882 * remote-e7000.c: Fix copyright date.
2883 (expect): Compare \n and \r the same.
2884 (e7000_open): Allow pc as a serial port
2885 * sh/sh.mt: Add ser-e7kpc.
2886 * h8300/h8300hms.mt: Add ser-e7kpc.
2887 * main.c (proc_wait): Don't wait if using go32.
2888
6a86fa48
JL
2889Mon Jun 27 00:35:51 1994 Jeff Law (law@snake.cs.utah.edu)
2890
2891 * somread.c: Simplify by using stabsect_build_psymtabs.
2892 * dbxread.c (stabsect_build_psymtabs): New argument "text_name"
2893 corresponding to the name of the text section. All references
2894 changed.
2895 (somstab_build_psymtabs): Delete function, no longer needed.
2896
bfe2f12b
JL
2897Sun Jun 26 23:54:08 1994 Jeff Law (law@snake.cs.utah.edu)
2898
2899 * somread.c: Renamed from paread.c. Changed function names and
2900 comments to reflect that this file deals with SOM (an object file
2901 format), rather than the PA (a cpu).
2902 (Makefile.in): Chaned appropriately.
2903 (config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
2904 * dbxread.c (somstab_build_psymtabs): Renamed from
2905 pastab_build_psymtabs.
2906
a8044a2d
PS
2907Fri Jun 24 08:15:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2908
256533df
PS
2909 * core-sol2.c: New file to handle ELF and BCP core file flavours.
2910 * config/sparc/sun4sol2.mh (NATDEPFILES): Use it instead of
2911 core-svr4.
2912 * Makefile.in: Updated for core-sol2.c.
2913 * README: Add notes about SPARCworks cc under Solaris 2.x,
2914 from Casper H.S. Dik (casper@fwi.uva.nl).
a8044a2d
PS
2915 * config/mips/xm-makeva.h: Removed, no longer necessary.
2916 * Makefile.in, config/mips/xm-irix3.h, config/mips/xm-irix5.h,
2917 config/mips/xm-mips.h, config/mips/xm-news-mips.h,
2918 config/mips/xm-riscos.h: Remove references to xm-makeva.h
2919
cca32606
JK
2920Wed Jun 22 17:48:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2921
6ccc157f 2922 * gdba.el: Put program input and output in a separate buffer.
cca32606 2923
b7ec5b8d
FF
2924Wed Jun 22 16:54:15 1994 Fred Fish (fnf@cygnus.com)
2925
2926 * energize-patches, main.c (main), top.c (gdb_init, pwd_command),
2927 top.h: Change all occurances of dirbuf to gdb_dirbuf. Collides
2928 with global variable of same name in libnsl.so on UnixWare.
2929
c79b49bb
KH
2930Wed Jun 22 14:40:52 1994 Kung Hsu (kung@mexican.cygnus.com)
2931
2932 * symtab.c (decode_line_1): fix a bug in dealing with '<>'
2933 embedded in template name.
2934
416b47c6
KH
2935Tue Jun 21 14:06:46 1994 Kung Hsu (kung@mexican.cygnus.com)
2936
2937 * config/i386/nm-linux.h: change calling convention of
2938 TARGET_CAN_USE_HARDWARE_WATCHPOINT() and
2939 target_insert_watchpoint() and
2940 target_remove_watchpoint().
2941
2942 * config/mips/tm-mips64.h: define FORCE_LONG_LONG to force LONGEST
2943 to be long long in gdb.
2944 * config/mips/tm-bigmips.h: ditto.
2945
2c068010
PS
2946Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2947
2948 * c-lang.c (asm_language_defn): New definitions for language_asm,
2949 mostly copied from c_language_defn, to avoid warnings when
2950 switching between c and asm stack frames.
2951
6187dfac
ILT
2952Mon Jun 20 13:51:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2953
2954 * mdebugread.c (parse_symbol): Don't call ecoff_swap_tir_in or
2955 ecoff_swap_rndx_in directly; use the debug_swap pointer instead.
2956 (upgrade_type, handle_psymbol_enumerators): Likewise.
2957 (has_opaque_xref, cross_ref): Likewise.
2958 (elfmdebug_build_psymtabs): Call swap->read_debug_info to read
2959 debugging information, rather than doing it here.
2960 * mipsread.c (mipscoff_symfile_read): Call read_debug_info entry
2961 point in ecoff_debug_swap backend structure, rather than calling
2962 ecoff_slurp_symbolic_info directly.
2963
afd3e3b1
JK
2964Fri Jun 17 20:58:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
2965
fb71d422
JK
2966 * breakpoint.c: Include annotate.h. Call annotate_field rather
2967 than printing annotation directly.
2968
afd3e3b1
JK
2969 * main.c: Include string.h.
2970
6ec7e4d3
SS
2971Thu Jun 16 14:41:37 1994 Stan Shebs (shebs@andros.cygnus.com)
2972
9f8219f1
SS
2973 * fork-child.c (startup_inferior) [STARTUP_INFERIOR]: If defined,
2974 call it instead of doing normal loop.
2975 * infcmd.c (attach_command): Don't call wait_for_inferior if
2976 running Mach 3.
2977 * infrun.c (proceed) [PREPARE_TO_PROCEED]: If defined, call
2978 hook that can decide whether to step over the next breakpoint.
2979 * utils.c (wrap_here): Abort if wrap_buffer not allocated.
2980 (request_quit) [REQUEST_QUIT]: If defined, call it instead of
2981 doing normal quit.
2982
6ec7e4d3
SS
2983 * configure.in: Improve sorting/formatting of hosts and targets.
2984 (i[34]86-*-mach3*, i[34]86-*-osf1mk*, mips-*-mach3*,
2985 m88*-*-mach3*, ns32k-*-mach3*): Recognize.
9f8219f1
SS
2986 * Makefile.in (stop-gdb): New target.
2987 * stop-gdb.c: New file, utility to get attention of waiting GDBs
6ec7e4d3
SS
2988 in Mach 3.
2989
f36b58b1
TL
2990Wed Jun 15 00:41:03 1994 Tom Lord (lord@rtl.cygnus.com)
2991
2992 * top.c (gdb_init): Init current_directory in gdb_init. Probably
2993 the identical initialization can be deleted from main.c, but i
2994 haven't done so just in case.
2995
e91c1816
TL
2996Tue Jun 14 17:24:41 1994 Tom Lord (lord@x1.cygnus.com)
2997
2998 * gdba.el: Added menu windows and slightly improved window
2999 handling to gdba.el. Fixed numerous minor bugs that were causing
3000 emacs and gdb to fall out of sync.
3001
f2d9c058
KH
3002Tue Jun 14 16:18:44 1994 Kung Hsu (kung@mexican.cygnus.com)
3003
3004 * breakpoint.c: annotate changes lost at merge, put back in.
3005
e884f418 3006Mon Jun 13 17:28:50 1994 Stan Shebs (shebs@andros.cygnus.com)
2b14c195 3007
e884f418
SS
3008 * config/i386/i386sco.mh, i386sco4.mh (XDEPFILES): Remove
3009 i387-tdep.o.
2b14c195 3010
33c66e44
PS
3011Sun Jun 12 03:51:52 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3012
3013 * config/m68k/dpx2.mh (NATDEPFILES): Remove duplicate inclusion
3014 of inftarg.o.
3015 * config/m68k/tm-dpx2.h (CANNOT_STORE_REGISTER): Define to inhibit
3016 writing of floating registers, the dpx2 kernel disallows it.
3017 * irix5-nat.c (LM_ADDR): The loaded address of the shared library
3018 is contained in o_praw.
3019 * irix5-nat.c (solib_map_sections): Adjust sections by the
3020 difference between the loaded address and the prelinked address.
3021 * irix5-nat.c (solib_address): Use LM_ADDR for the loaded start
3022 address.
3023 * mdebugread.c (parse_symbol): Do not relocate stEnd/scText
3024 symbols, their value is absolute.
3025 * mdebugread.c (parse_partial_symbols): Handle Irix 5.2 shared
3026 libraries fh->adr fields of zero. Relocate minimal symbol values
3027 upon readin. Relocate non-stabs symbols upon readin.
3028 * mdebugread.c (psymtab_to_symtab_1): Use pst->textlow for the
3029 start address of the outermost block.
3030 * mdebugread.c (parse_lines, parse_procedure): Pass in pst
3031 instead of section_offsets and use relocated pst->textlow for
3032 line number and procedure address relocations.
3033
3034 From gmo@MicroUnity.com (Guillermo A. Loyola):
3035 * mdebugread.c (parse_symbol, parse_partial_symbols, cross_ref):
3036 Handle SGI Irix5 stIndirect symbol type.
3037
2c3fb46a
KH
3038Fri Jun 10 14:52:56 1994 Kung Hsu (kung@mexican.cygnus.com)
3039
11054881
KH
3040 * breakpoint.c: fix a syntax error native cc does not like.
3041
1782eb41
KH
3042 * Makefile.in: change sparclite-tdep.c to sparcl-tdep.c.
3043 * sparclite/Makefile.in: ditto.
3044 * sparcl-tdpe.c: change file name because first 8 chars has to be
3045 unique.
3046 * sparcl-stub.c: ditto.
3047
3048 * .Sanitize: add sparclite-stub.c sparclite-tdep.c to keep.
3049
2c3fb46a
KH
3050 * sparclite/Makefile.in: fix INCLUDE_CFLAGS to have {srcdir}/../config.
3051
e9a3cde8
JL
3052Fri Jun 10 10:38:15 1994 Jeff Law (law@snake.cs.utah.edu)
3053
3054 * hppa-tdep.c (target_read_pc, target_write_pc): Accept (and
3055 ignore) a PID argument.
3056 (hppa_pop_frame): Pass a PID to target_write_pc.
3057 * config/pa/tm-hppa.h (TARGET_READ_PC, TARGET_WRITE_PC): Accept
3058 and pass through a PID argument.
3059 (target_read_pc, target_write_pc): Update prototypes.
3060
3061Thu Jun 9 18:10:44 1994 Kung Hsu (kung@mexican.cygnus.com)
3062
3063 * Makefile.in: add new file sparclite-tdep.c.
3064 * sparclite/Makefile.in: add new file sparclite-stub.c.
3065 * sparclite/hw_breakpoint.note: note for SPARClite hardware breapoint
3066 support.
3067 * config/sparc/sparclite.mt: add sparclite-tdep.o.
3068 * config/sparc/tm-sparclite.h: add hardware breakpoints support
3069 defiines and code.
3070 * sparclite-tdep.c: new file, contains hardware breakpoint support
3071 code.
3072 * sparclite-stub.c: new file, stub code that add support hardware
3073 breakpoint support.
3074 * breakpoint.c: add hardware breakpoint support.
3075 * breakpoint.h: add new breakpoint type to support hardware
3076 breakpoint.
3077 * config/mips/nm-irix4.h: change interface for target dependent
3078 code supporting watch point.
3079 * config/pa/nm-hppab.h: change interface for target dependent
3080 code supporting watch point.
3081
2c012f9e
KH
3082Thu Jun 9 14:59:58 1994 Kung Hsu (kung@mexican.cygnus.com)
3083
3084 * remote-os9k.c (rombuf_command): fix a bug accepting rombug
3085 output.
3086 * stabsread.c (read_struct_fields): os9k nested structure does not
3087 have terminating ';', instead it just get to ',' and bit position
3088 and length.
3089
a4b4f520
SG
3090Wed Jun 8 23:20:45 1994 Stu Grossman (grossman@cygnus.com)
3091
3092 * nlmread.c (nlm_symtab_read): Clean up a bit.
3093 * (nlm_symfile_read): Record bounds of main() so that backtrace
3094 command will know where to stop.
3095 * objfiles.c (objfile_relocate): Relocate entry point/func info
3096 for backtrace as well.
3097 * objfiles.h: Define values for invalid PCs for entry point info.
3098 * symfile.c (init_entry_point_info): Initialize invalid values
3099 with aforementioned macros.
3100 * config/alpha/tm-alphanw.h: Turn on FRAME_CHAIN_VALID_ALTERNATE
3101 to cause backtrace to stop when it gets back to main().
3102 * config/i386/tm-i386nw.h: Ditto.
3103
e10cfcaa
PB
3104Sat Jun 4 18:17:03 1994 Per Bothner (bothner@kalessin.cygnus.com)
3105
e884f418 3106 Fix value_print, which used to be ostensibly language-independent,
e10cfcaa
PB
3107 but would print pointers and arrays in C syntax. Instead, call
3108 a language-specific function.
3109 * language.h (struct language_defn): New functional field
e884f418
SS
3110 la_value_print.
3111 (LA_VALUE_PRINT): New macro.
3112 * language.c (unk_lang_value_print): New stub/dummy function.
e10cfcaa
PB
3113 (unknown_language_defn, auto_language_defn, local_language_defn):
3114 Use it.
3115 * c-valprint.c (c_value_print): New function, with code moved from:
3116 * valprint.c (value_print): ... here. Now just invoke
3117 LA_VALUE_PRINT to do language-specific stuff.
3118 * valprint.c (value_print_array_elements): Make non-static.
3119 * c-lang.c (c_language_defn, cplus_language_defn): Add
e884f418 3120 c_value_print in the la_value_print field.
e10cfcaa
PB
3121 * m2-lang.c (m2_language_defn): Likewise.
3122 * ch-lang.c (chill_language_defn): But here use chill_value_print.
3123 * ch-valprint.c (chill_val_print): Print null pointer as NULL.
3124 * ch-valprint.c (chill_value_print): New function, based on
3125 c_value_print, but use Chill "look and feel."
3126 * c-lang.h (c_value_print): New prototype.
3127 * ch-lang.h (chill_value_print): New prototype.
3128 * value.h (value_print_array_elements): New prototype.
3129
3130 * ch-valprint.c (chill_val_print, case TYPE_CODE_BITSTRING
3131 and case TYPE_CODE_SET): Check that the element type isn't a stub.
3132
172559ec
JK
3133Fri Jun 3 09:15:00 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3134
3135 * main.c: Move entire file except for #ifndef MAIN_OVERRIDE code
3136 to new file top.c. Make things extern instead of static and
3137 similar rearrangements to deal with this.
3138 * top.h: New file.
3139 * utils.c: Move fputs_unfiltered to main.c. Remove
3140 FPUTS_UNFILTERED_OVERRIDE ifndef.
3141 * Makefile.in: Change so that gdb uses main.c, utils.c, and top.c,
3142 and libgdb uses utils.c and top.c.
3143
36af5ec6
JL
3144Thu Jun 2 23:19:10 1994 Jeff Law (law@snake.cs.utah.edu)
3145
3146 * hppa-tdep.c (skip_trampoline_code): Fix typo.
3147
35f8a588
PB
3148Thu Jun 2 18:09:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
3149
3150 * ch-valprint.c (chill_val_print_array_elements): New function.
3151 A Chill version of val_print_array_elements, it prints the
3152 array index labels, in additions ot the array element values.
3153 (chill_val_print): Use the new function.
3154
2e6784a8
SG
3155Thu Jun 2 08:50:00 1994 Stu Grossman (grossman@cygnus.com)
3156
3157 * configure.in: Add nlm subdir to configdirs for alpha-*-netware
3158 target.
3159 * defs.h (enum language): Add language_asm.
3160 * findvar.c (read_register_bytes read_register_gen
3161 write_register_bytes read_register read_register_pid
3162 write_register write_register_pid supply_register): Move multi-
3163 thread handling down into these routines. Create XXX_pid routines
3164 that allow register references to specify the pid.
3165 * findvar.c infcmd.c (read_pc read_pc_pid write_pc write_pc_pid
3166 read_sp write_sp read_fp write_fp): Move these routines from
3167 infcmd to findvar to centralize the whole mess.
3168 * i386-nlmstub.c: Portability fixes.
3169 * infptrace.c (child_resume): Conditionalize to allow other natives
3170 to override it. Remove PIDGET gubbish, it's no longer necessary.
3171 * infrun.c (wait_for_inferior): Put registers_changed() before
3172 target_wait() to speed up remote debugging.
3173 * Replace code that reads registers from other threads with much
3174 nicer looking new function calls (see changes to findvar.c).
3175 * Don't skip prologues if debugging assembly source.
3176 * lynx-nat.c (child_resume): Lynx now needs it's own version of
3177 child_resume to handle multi-thread debugging properly.
3178 * remote.c: Add O response to get console output from target.
3179 * (readchar): Add timeout parameter. Handle SERIAL_EOF and
3180 SERIAL_ERROR here to simplify callers.
3181 * Change static var timeout to remote_timeout.
3182 * (fromhex): Remove unnecessary return -1 at end of routine.
3183 * (remote_wait): Turn this into a big switch statement. Add
3184 support for O response.
3185 * (putpkt): Remove unnecessary handling of SERIAL_EOF/ERROR.
3186 * (getpkt): Split getpkt into two parts. read_frame deals with
3187 all formatting issues, run-length encoding, and framing. getpkt
3188 now handles error recovery, and frame detection.
3189 * ser-tcp.c (tcp_readchar): Handle EINTR from read().
3190 * ser-unix.c (hardwire_raw): Set CLOCAL so that we ignore modem
3191 control. (hardwire_readchar): Handle EINTR from read().
3192 * symfile.c (deduce_language_from_filename): Add support for .s
3193 files.
3194 * config/nm-lynx.h: Define CHILD_WAIT so that lynx-nat.c can
3195 override infptrace's child_wait.
3196 * config/rs6000/rs6000lynx.mh: Use xm-rs6000ly.h & nm-rs6000ly.h
3197 instead of XXXlynx.h.
3198 * config/rs6000/rs6000lynx.mt: Use tm-rs6000ly.h instead of
3199 tm-rs6000lynx.h.
3200 * nlm/gdbserve.c: Portability fixes.
3201
d3507982
JK
3202Tue May 31 20:35:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3203
3204 * inftarg.c (child_wait): Call proc_wait, not wait.
3205 (child_mourn_inferior): Call proc_remove_foreign.
3206 * main.c (gdb_init): Call init_proc.
3207 * main.c: Provide dummy versions of init_proc, proc_wait, and
3208 proc_remove_foreign for the gdb case (the libgdb case provides its
3209 own versions of these functions).
3210 * Makefile.in (libgdb-files): Add libproc.a.
3211
6d40175d
SS
3212Wed Jun 1 11:08:52 1994 Stan Shebs (shebs@andros.cygnus.com)
3213
3214 Hardware watchpoints for Linux, from Rick Sladkey
3215 (jrs@world.std.com).
3216 * infrun.c (wait_for_inferior) [HAVE_CONTINUABLE_WATCHPOINT]: Add
3217 new hardware breakpoint recovery method.
3218 * i386v-nat.c (i386_insert_watchpoint,
3219 i386_insert_nonaligned_watchpoint, i386_remove_watchpoint,
3220 i386_stopped_by_watchpoint) [TARGET_CAN_USE_HARWARE_WATCHPOINT]:
3221 New functions to support the 386 hardware debugging registers.
3222 * config/i386/nm-linux.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT,
3223 HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3224 target_insert_watchpoint, target_remove_watchpoint): Define these
3225 macros to use the hardware debugging functions in i386v-nat.c.
3226
667fb5c3
JK
3227Wed May 25 17:06:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3228
3229 * Makefile.in: Replace libgdb.a with libgdb-files. Make "all"
3230 build it.
3231
429f1c9f
JK
3232Thu May 19 09:56:20 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3233
3234 * target.c, target.h: New variables target_activity_function and
3235 target_activity_fd.
3236 * inflow.c, inferior.h: New functions set_sigio_trap and
3237 clear_sigio_trap.
3238 * inftarg.c (child_wait), procfs.c (wait_fd): Call them.
3239
bc67bf96
DE
3240Wed May 18 13:01:55 1994 Doug Evans (dje@canuck.cygnus.com)
3241
47424e79
DE
3242 * remote-sim.h (sim_verbose): Delete.
3243 Document callbacks needed.
3244 (sim_*): Change result to void where there isn't one.
3245 (sim_open): Clarify argument and error response.
3246 (sim_close): Declare.
3247 (sim_load): Change bfd_handle argument to file name. Clarify result.
3248 (sim_create_inferior): Renamed from sim_set_args.
3249 (sim_set_pc): Delete.
3250 (sim_info): Delete printf_fn argument.
3251 * remote-sim.c (gdbsim_kill): Add comment describing purpose.
3252 (gdbsim_load): Try sim_load first.
3253 (gdbsim_create_inferior): Call sim_create_inferior.
3254 (gdbsim_open): Handle args == NULL. Update call to sim_open.
3255 (gdbsim_close): Call sim_close.
3256 (gdbsim_files_info): Update call to sim_info.
3257 (gdbsim_ops): Realign comments.
3258
bc67bf96
DE
3259 * printcmd.c (decode_format): Allow TARGET_PTR_BIT to be non-constant.
3260
298f0428
SS
3261Tue May 17 16:45:20 1994 Stan Shebs (shebs@andros.cygnus.com)
3262
3263 * xcoffread.c (read_xcoff_symtab): For C_FILE symbols, only use
3264 the auxent if the symbol's name is ".file". From David Edelsohn
3265 <c1dje@watson.ibm.com>.
3266
9c036bd8
JK
3267Tue May 17 11:08:22 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3268
20b3c1aa
JK
3269 * breakpoint.c (breakpoint_1): Fix typo.
3270
3271 * annotate.c (annotate_field_end): Fix typo.
3272
3273 * Makefile.in: Move annotate.o from COMMON_OBS to OBS.
3274
3275 * Makefile.in (TSSTART): Remove; no longer used.
3276
9c036bd8
JK
3277 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call
3278 fputs_unfiltered and exit directly, rather than fatal. The latter
3279 calls vfprintf_unfiltered!
3280
3281 * gdbtypes.h, gdbtypes.c (can_dereference): New function.
3282 * value.h, printcmd.c (print_value_flags): Move from here...
3283 * annotate.c: ...to here, and make it use can_dereference.
3284
16d2cc80
SS
3285Sat May 14 15:13:52 1994 Stan Shebs (shebs@andros.cygnus.com)
3286
3287 * inflow.c (job_control, attach_flag, generic_mourn_inferior):
3288 Remove, needed for both native and cross.
3289 * target.c (attach_flag, generic_mourn_inferior): Put here.
3290 * utils.c (job_control): Put here.
3291 (terminal.h): Don't include anymore.
3292
d8fc8773
JK
3293Sat May 14 09:11:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3294
3295 * source.c (find_source_lines): Always use code that was #ifdef
3296 BROKEN_LARGE_ALLOCA. Do the cleanup before returning, rather than
3297 leaving it on the chain. Reindent much of this function.
3298 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h},
3299 config/i386/{xm-sun386.h,xm-i386m3.h,xm-i386mach.h},
3300 config/m68k/{sun3os4.h,xm-news.h,xm-hp300hpux.h},
3301 config/ns32k/xm-ns32km3.h: Remove all references to
3302 BROKEN_LARGE_ALLOCA; with the above change it is no longer needed.
3303 * main.c, fork-child.c, many config files: Remove all
3304 SET_STACK_LIMIT_HUGE code; with the above changes it should no
3305 longer be needed.
3306
3307 * symtab.c (lookup_partial_symbol): Use if and abort, not assert.
3308 This avoids __eprintf troubles.
3309
1c95d7ab
JK
3310Fri May 13 08:10:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3311
d8fc8773
JK
3312 * main.c (main): Surround in #ifndef MAIN_OVERRIDE. Move
3313 initialization code which needs to be called even if we bypass the
3314 command line stuff into gdb_init.
3315 * utils.c (fputs_unfiltered): Surround in #ifndef
3316 FPUTS_UNFILTERED_OVERRIDE.
3317 * Makefile.in (libgdb.a): New target.
3318
3319 * utils.c: Rearrange I/O stuff a bit so that all output goes
3320 through fputs_unfiltered. Use vasprintf; removes arbitrary limit
3321 which made %s not work with arbitrarily large strings.
3322 * printcmd.c (printf_command): Use printf_filtered, not
3323 printf_unfiltered and printf, now that arbitrary limit is gone.
3324
1c95d7ab
JK
3325 gcc -Wall lint:
3326 * breakpoint.c (watchpoint_check): Remove unused variable b.
3327 * stack.c (print_frame_info): Move sp and buf inside #if.
3328 * eval.c (evaluate_subexp): Remove unused variables pp,
3329 mangle_ptr, ptr, and mangle_tstr.
3330 * valarith.c (value_x_binop): Remove unused variables mangle_tstr
3331 and mangle_ptr.
3332 * symtab.c (lookup_symtab): Put variable copy inside #if.
3333 (decode_line_1): Put variable q1 inside #if 0.
3334 * target.h: Declare target_link.
3335 * infrun.c (wait_for_inferior): Remove unused variables signame.
3336 * remote.c (remote_resume): Remove unused variable name.
3337 * c-exp.y (parse_number): Parenthesize operand of shift.
3338 * dbxread.c (record_minimal_symbol): Parenthesize operand of &&
3339 (this is a semantic change, the warning seems to have detected a bug).
3340 * dbxread.c (end_psymtab): Move variable p1 inside #if.
3341 * coffread.c: Move variable temptype inside #if.
3342 * ch-typeprint.c (chill_type_print_base): Remove unused variable
3343 name.
3344 * ch-valprint.c: #include typeprint.h and ch-lang.h.
3345 (chill_val_print): Remove unused variable in_range.
3346 (chill_val_print): Remove statement "length > TYPE_LENGTH (type);".
3347 (chill_val_print): Add default case for switch.
3348 * stabsread.h: Declare stabsect_build_psymtabs.
3349 * os9kread.c (read_minimal_symbols): Make this return void.
3350 (os9k_symfile_read): Remove unused variables stb_exist and val.
3351 (os9k_symfile_init): Remove unused variable val.
3352 (fill_sym): Remove unused variable id.
3353 (read_os9k_psymtab): Put variable back_to inside #if 0. Remove
3354 unused variable nsl.
3355 Remove unused variable symfile_bfd.
3356 #if 0 unused variables lbrac_unmatched_complaint and
3357 lbrac_mismatch_complaint.
3358 Remove declaration for non-existent function os9k_next_symbol_text.
3359
3360 * annotate.c, annotate.h: New files, containing a function for
3361 each annotation which outputs it.
3362 * Move breakpoints_changed from breakpoint.c to annotate.c.
3363 * breakpoint.c, blockframe.c, infrun.c, cp-valprint.c, main.c,
3364 printcmd.c, source.c, stack.c, utils.c, valprint.c:
3365 Use annotate.c functions to output annotations.
3366 * Makefile.in (OBS): Add annotate.o.
3367
88b91d4a
JL
3368Thu May 12 10:46:27 1994 Jeff Law (law@snake.cs.utah.edu)
3369
f55179cb
JL
3370 * hppa-tdep.c (read_unwind_info): Make sure elf_unwind_size and
3371 elf_unwind_entries are always initialized.
3372
88b91d4a
JL
3373 * hppa-tdep.c (skip_trampoline_code): Handle argument relocation
3374 stubs which return directly to the caller rather than to the stub
3375 itself.
3376
8db1a922
SS
3377Wed May 11 20:11:51 1994 Stan Shebs (shebs@andros.cygnus.com)
3378
3379 * c-exp.y (yyerror): Display a more informative error message.
3380 * ch-exp.y (yyerror): Ditto, don't use global yychar.
3381 * m2-exp.y (yyerror): Ditto.
3382
91ecc8ef
SS
3383Tue May 10 11:57:53 1994 Stan Shebs (shebs@andros.cygnus.com)
3384
3385 * inflow.c (job_control): Move definition to front of file.
3386
0286d386
ILT
3387Tue May 10 14:42:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3388
3389 * maint.c (print_section_table): Rename SEC_SHARED_LIBRARY to
3390 SEC_COFF_SHARED_LIBRARY to match corresponding change in bfd.
3391
3392Fri May 6 13:30:22 1994 Stan Shebs (shebs@andros.cygnus.com)
3393
3394 * Makefile.in (kdb): Remove old init.c creation commands.
3395 * configure.in (sparclite): Match on sparclite*.
3396 * sparclite/aload.c (main): Only change section addresses for
3397 a.out format object files.
3398
5ff7b328
SC
3399Fri May 6 13:24:04 1994 Steve Chamberlain (sac@cygnus.com)
3400
3401 * config/i386/go32.mh: Define CC.
3402
b292fca8
SS
3403Fri May 6 11:56:54 1994 Stan Shebs (shebs@andros.cygnus.com)
3404
3405 * gdbserver/Makefile.in: Remove irrelevant definitions and
3406 comments inherited from the gdb Makefile.
3407 (BFD_DIR, BFD, BFD_SRC, BFD_CFLAGS): Add from gdb Makefile.
3408 (VERSION): Update to 4.12.3.
3409 (gdbserver): Remove any existing executable first.
3410 (distclean, realclean): Remove nm.h.
3411 * gdbserver/low-lynx.c: Add Sparc Lynx support.
3412 * gdbserver/low-sparc.c, gdbserver/low-sun3.c (sys/wait.h):
3413 Don't use absolute pathname.
3414
3415Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
3416
3417 * rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an
3418 error.
3419
ee5fca1f
JK
3420Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3421
3422 * infrun.c (proceed, normal_stop, wait_for_inferior), breakpoint.c
3423 (print_it_normal): Add annotations for the inferior starting and
3424 stopping, and for all the various messages related to how it
3425 stopped.
3426
3427 * printcmd.c (do_one_display): Annotate.
3428 * stack.c (print_frame_info): Annotate printing of stack frames.
3429
731dca94
SG
3430Wed May 4 18:15:51 1994 Stu Grossman (grossman@cygnus.com)
3431
3432 * remote.c (get_offsets): Handle case where stub doesn't support
3433 qOffsets message.
3434
36a2283d
PB
3435Wed May 4 15:30:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
3436
3437 Add partial support for g++ code compiled with -fvtable-thunks.
3438 * c-valprint.c (c_val_print): Add vtblprint support
3439 when using thunks.
3440 * cp-valprint.c (cp_is_vtbl_member): A vtable can be an array of
3441 pointers (if using thunks) as well as array of structs (otherwise).
3442 * cp-valprint.c (vtbl_ptr_name_old, vtbl_ptr_name): Move to global
3443 level, and make the latter non-static (so define_symbol can use it).
3444 * stabsread.c (define_symbol): If the type being defined is a
3445 pointer type named "__vtbl_ptr_type", set the TYPE_NAME to that name.
3446 * symtab.h (VTBL_PREFIX_P): Allow "_VT" as well as "_vt".
3447 * values.c (value_virtual_fn_field): Handle thunks.
3448 * values.c (value_headof): Minor efficiency hack.
3449 * values.c (value_headof): Incomplete thunk support. FIXME.
3450
997c6a1d
JK
3451Wed May 4 06:56:03 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3452
d24c0599
JK
3453 * valprint.c (print_longest): Clarify comment about use_local.
3454 * printcmd.c, defs.h (print_address_numeric), callers in
3455 symmisc.c, symfile.c, stack.c, source.c, remote.c, infcmd.c,
3456 cp-valprint.c, core.c, ch-valprint.c, c-valprint.c, breakpoint.c,
3457 exec.c: New argument use_local.
3458 * source.c (identify_source_line): Use filtered output. Use
3459 print_address_numeric.
3460
e16b9023
JK
3461 * core.c (memory_error), symtab.c (cplusplus_hint, decode_line_1),
3462 language.c (type_error, range_error): Use filtered output.
3463 * utils.c (error_begin): Update comment to tell people to use
3464 filtered output.
3465
997c6a1d
JK
3466 * Makefile.in (HFILES_WITH_SRCDIR): List bfd.h.
3467 (HFILES_NO_SRCDIR): List gdbcore.h not gdbcore_h, so as not to get
3468 bfd.h.
3469
3f5e2fb5
JK
3470Tue May 3 07:41:33 1994 Jim Kingdon (kingdon@cygnus.com)
3471
3472 * procfs.c (procfs_wait): Reinstate code which deduces the signal
3473 from the fault, #ifndef FAULTED_USE_SIGINFO.
3474 * config/sparc/tm-sun4sol2.h: Define FAULTED_USE_SIGINFO.
3475
47ebe8fd
JK
3476Fri Apr 29 18:15:04 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3477
3478 * breakpoint.c (breakpoint_1): Annotate each field of the headers.
3479 Explicitly annotate each record.
3480
0c4b30ea
SS
3481Fri Apr 29 15:56:18 1994 Stan Shebs (shebs@andros.cygnus.com)
3482
3483 * xcoffexec.c: Reformat to standards and lint.
3484 (language.h): Include.
3485 (exec_close): Declare arg "quitting".
3486 (file_command): Declare arg "from_tty".
3487 (map_vmap): Cast xmalloc result to PTR.
3488 * rs6000-nat.c: Reformat to standards and lint.
3489 (exec_one_dummy_insn): Use char array for saved instruction.
3490 (fixup_breakpoints): Declare.
3491 (vmap_ldinfo): Be more informative in fatal error messages.
3492 (xcoff_relocate_symtab): Define to return void.
3493 * xcoffsolib.h: Reformat to standards, improve comments.
3494 * config/rs6000/nm-rs6000.h (xcoff_relocate_symtab): Declare.
3495
d8742f46
JK
3496Thu Apr 28 08:40:56 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3497
a0cf4681
JK
3498 * utils.c, defs.h (error_begin): New function.
3499 (quit): Print annotation before printing the error message.
3500 * main.c (return_to_top_level): Print annotation before doing the
3501 longjmp.
3502 * symtab.c (decode_line_1): Call error not warning and then
3503 return_to_top_level. Call error_begin and printf_unfiltered
3504 rather calling warning (before calls to return_to_top_level).
3505 * core.c (memory_error): Use error_begin, printf_unfiltered,
3506 print_address_numeric and return_to_top_level instead of error.
3507 Cleans up a FIXME-32x64.
3508 * language.c (type_error, range_error): Call error_begin
3509 not just target_terminal_ours.
3510
21ad7c45
JK
3511 * dbxread.c (stabsect_build_psymtabs): Assign to sym_stab_info
3512 directly, rather than via DBX_SYMFILE_INFO. A cast on the left
3513 side of an assignment is non-portable.
3514
d8742f46
JK
3515 * utils.c (query): Change syntax of query annotations to be
3516 consistent with other input annotations.
4dd876ac 3517 (prompt_for_continue): Likewise for prompt-for-continue annotation.
d8742f46 3518
11d26982
PS
3519Thu Apr 28 01:20:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3520
3521 * mdebugread.c (psymtab_to_symtab_1): Do not call sort_blocks
3522 for stabs symtabs.
3523 * mips-tdep.c (mips_skip_prologue): Handle prologues for functions
3524 that have a stack frame size of 32k or larger (from Paul Flinders).
3525 Remove #if 0'd code.
3526
aa175216
SS
3527Wed Apr 27 16:33:51 1994 Stan Shebs (shebs@andros.cygnus.com)
3528
3529 * lynx-nat.c (CANNOT_STORE_REGISTER): Add a fallback definition
3530 for Lynx platforms that need it.
3531 * config/nm-lynx.h (__LYNXOS): Define if not already defined.
3532
890634ed
JK
3533Wed Apr 27 16:01:37 1994 Jim Kingdon (kingdon@cygnus.com)
3534
3535 * procfs.c (procfs_wait): Use the signal from the pr_info rather
3536 than trying to deduce it from the fault.
3537
c0c9b923
SC
3538Wed Apr 27 12:22:46 1994 Steve Chamberlain (sac@cygnus.com)
3539
3540 * printcmd.c (print_address_symbolic): Initialize name to empty
3541 string to avoid core dump if lookup fails.
3542 * remote-e7000.c (printf_e7000debug): Error if target not open.
3543
a49666fe
SG
3544Tue Apr 26 22:45:24 1994 Stu Grossman (grossman at cygnus.com)
3545
3546 * i386-nlmstub.c: Update to be more in line with PIN stub.
3547 * nlm/gdbserve.c (putDebugChar): Install bug fix from i386-nlmstub.
3548 * (hex2mem): Init ptr.
3549 * General cleanups to use ConsolePrintf, standard prologues, etc...
3550
d0e2b767
SG
3551Tue Apr 26 10:23:04 1994 Stu Grossman (grossman at cygnus.com)
3552
68ba2fa5
SG
3553 * i386-nlmstub.c: More changes to be compatible with remote.c.
3554
3555 * dbxread.c: Move a bunch of strncmps out of process_one_symbol
3556 into (the far less frequently called) dbx_symfile_read.
3557
d0e2b767
SG
3558 * i386-nlmstub.c: An interim version till we get PIN for the x86.
3559
a66e8382
SG
3560Tue Apr 26 09:50:45 1994 Stu Grossman (grossman at cygnus.com)
3561
3562 * dbxread.c (record_minimal_symbol): Record the section
3563 associated with the symbol to make dynmaic relocation work.
3564 * (dbx_symfile_read, process_one_symbol): Fixes to work around
3565 Solaris brain-damage which don't apply to relocatable object
3566 files.
3567 * (stabsect_build_psymtabs): New routine to read stabs out of an
3568 arbitrarily named section.
3569 * nlmread.c (nlm_symtab_read): Read ALL syms from the NLM, not just
3570 globals.
3571 * (nlm_symfile_read): Call stabsect_build_psymtabs to read the
3572 stabs out of the nlm.
3573 * partial-stabs.h (cases 'f' & 'F'): Fixes to work around Solaris
3574 brain-damage which don't apply to relocatable object files.
3575 * remote.c (putpkt): Improve error reporting and error handling.
1624c38f
SG
3576 * (get_offsets): Temporary kludge to force data & bss sections to
3577 have the same relocation.
a66e8382
SG
3578 * stabsread.c (define_symbol, scan_file_globals): Record section
3579 info in sym.
3580
fdb81aa1
JK
3581Sat Apr 23 19:05:52 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3582
3583 * breakpoint.c (breakpoint_1): Annotate each field of output. Add
3584 FIXME-32x64 comment.
3585
0a2e98a9
JK
3586Fri Apr 22 16:43:54 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3587
d084c93f
JK
3588 * infrun.c (wait_for_inferior): Move call to flush_cached_frames
3589 to after call to target_wait. This means that flush_cached_frames
3590 can call target_terminal_ours if it wants to.
3591 * infrun.c (wait_for_inferior) [HAVE_NONSTEPPABLE_WATCHPOINT]: Add
3592 comment about why the code is dubious.
3593
0a2e98a9
JK
3594 * stabsread.c (read_type): Call read_type, not nonexistent
3595 os9k_read_type.
3596
d5336fc5
KH
3597Fri Apr 22 14:25:36 1994 Kung Hsu (kung@mexican.cygnus.com)
3598
3599 * remote-os9k.c (rombug_fetch_registers): set trace mode
3600 correctly.
3601 * remote-os9k.c (rombug_read_inferior_memory): cache data in
3602 buffer.
3603 * os9kread,c (read_os9k_psymtab): process file symbol to truncate
3604 extra info.
3605 * os9kread.c (os9k_read_ofile_symtab): proper casting of args
3606 passed to process_one_symbol.
3607 * stabsread.c (read_type): process os9k functio prototype.
3608
f5a0908f
JK
3609Fri Apr 22 11:27:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3610
3611 * solib.c (symbol_add_stub): If so->textsection is NULL, don't
3612 dump core.
3613
9e8db445
JK
3614Thu Apr 21 07:45:49 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3615
da988c20
JK
3616 * utils.c (prompt_for_continue): Annotate prompt.
3617 (query): Annotate query.
3618 * printcmd.c (print_frame_args): Change syntax of argument
3619 annotation to make name and value part of a single group of
3620 annotations, not two separate groups.
3621 * cp-valprint.c (cp_print_value_fields): Likewise for fields.
3622 * valprint.c (val_print_array_elements): Change syntax of
3623 annotation to be more concise.
3624 * main.c, defs.h (command_line_input): New argument tells what
3625 string to include in the annotations.
3626 * symtab.c (decode_line_2), main.c (read_command_lines,
3627 command_loop): Change callers.
3628
9e8db445
JK
3629 * breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
3630 target null pointer.
3631 * blockframe.c (find_frame_addr_in_frame_chain): Likewise.
3632
3633 * printcmd.c (output_command): Annotate things we print here too.
eb1e37a3 3634 * printcmd.c (print_command_1): Add "value-history-value" annotation.
9e8db445
JK
3635 * Move declaration of print_value_flags from defs.h to value.h.
3636 * main.c (command_line_input): Call wrap_here as well as gdb_flush.
3637
0683ac4b
PS
3638Thu Apr 21 09:29:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3639
3640 * dbxread.c (read_dbx_dynamic_symtab): Reinstall support for sun3,
3641 BFD handles sun3 dynamic relocations now.
3642 * elfread.c (elf_symtab_read, elf_symfile_read): Handle dynamic
3643 symbol table.
3644
96f7edbd
JK
3645Wed Apr 20 19:41:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3646
3647 * printcmd.c (print_command_1): Annotate the top-level expressions
3648 that we print.
3649 (print_frame_args): Annotate each argument.
3650 * printcmd.c, defs.h (print_value_flags): New function.
3651 * cp-valprint.c (cp_print_value_fields): Annotate each field.
3652 * valprint.c (val_print_array_elements): Annotate each array element.
3653
59746d9f
PS
3654Wed Apr 20 13:18:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3655
3656 * findvar.c (read_var_value): Handle LOC_REPARM_ADDR case correctly,
3657 the register contains a pointer to the type, not the type itself.
3658
6c803036
JK
3659Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3660
3661 * main.c (main): Accept --annotate=N option and make --fullname
3662 the same as --annotate=1.
3663 (command_line_input): Print annotatation before and after prompt.
3664 * blockframe.c (flush_cached_frames): Print annotation.
3665 * Rename frame_file_full_name to annotation_level and move it from
3666 symtab.h to defs.h.
3667 * source.c (identify_source_line): If annotation_level > 1,
3668 change output format.
3669 * breakpoint.c: Print annotation whenever a breakpoint changes.
3670 * main.c: New variable server_command.
3671 (command_line_input): Parse "server " and set server_command.
3672 (dont_repeat): Check server_command.
3673
d7a96d67
JK
3674Wed Apr 20 08:37:16 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3675
963dbabe
JK
3676 * xcoffread.c (xcoff_next_symbol_text): Don't return before
3677 updating raw_symbol and symnum. Return a value in the case where
3678 we complained.
3679
d7a96d67
JK
3680 * dstread.c, coffread.c: Don't define pending_blocks; buildsym.c
3681 takes care of it.
703e4251
JK
3682 * parse.c: Don't define block_found; it is defined in symtab.c.
3683 * parser-defs.h: Add comment regarding block_found.
d7a96d67 3684
d782a995
JL
3685Tue Apr 19 09:46:05 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3686
3687 * hppa-tdep.c (internalize_unwind_info): Delete unused indexp
3688 argument.
3689
be78eb1a
PS
3690Mon Apr 18 13:18:56 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3691
3692 * dbxread.c (read_dbx_dynamic_symtab): Relocate BFD symbols by
3693 section vma. Do not read dynamic relocs for sun3 executables to
3694 avoid BFD assertion message.
3695
9c842e0c
JL
3696Mon Apr 18 10:08:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3697
3698 * nm-hppab.h (KERNEL_U_ADDR): Define.
3699 (FIVE_ARG_PTRACE): Likewise.
3700 (CANNOT_STORE_REGISTER): Likewise.
8bd8cef2 3701 * nm-hppah.h (KERNEL_U_ADDR): Define.
9c842e0c
JL
3702 (FIVE_ARG_PTRACE): Likewise.
3703 (CANNOT_STORE_REGISTER): Likewise.
3704 (NEED_TEXT_START_END): Likewise.
3705
3706 * tm-hppah.h (NEED_TEXT_START_END): Delete definition.
3707 * xm-hppah.h (KERNEL_U_ADDR): Delete definition.
3708 (FIVE_ARG_PTRACE): Likewise.
3709 * xm-hppab.h (KERNEL_U_ADDR): Delete definition.
3710 (FIVE_ARG_PTRACE): Likewise.
3711
3712 * hppa-tdep.c (read_unwind_info): Make static.
3713 (restore_pc_queue): Indirect through the target vector to
3714 reload the register state.
3715
c5152d42
JL
3716Sat Apr 16 22:20:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3717
3718 * paread.c (compare_unwind_entries): Delete function. It's been
3719 moved into hppa-tdep.c.
3720 (read_unwind_info): Likewise.
3721 (pa_symfile_read): No longer call read_unwind_info. The unwind
3722 tables will be read in as they are needed.
3723
3724 * hppa-tdep.c (compare_unwind_entries): New function.
3725 (read_unwind_info, internalize_unwinds): Likewise.
3726 (find_unwind_entry): Read in unwind information on demand.
3727
fad466eb
SS
3728Fri Apr 15 11:53:46 1994 Stan Shebs (shebs@andros.cygnus.com)
3729
3730 * source.c (DIRNAME_SEPARATOR): New macro, replaces all references
3731 to : in search path processing.
3732 * defs.h (qsort): Rename argument in prototype.
3733 * symtab.h (SAYMBOL_VALUE): Rename value field, avoids bugs in
3734 some compilers.
3735 * breakpoint.c, exec.c, mdebugread.c, mipsread.c, xcoffexec.c
3736 (false): Eliminate usages.
3737
63eef03a
SC
3738Fri Apr 15 11:35:19 1994 Steve Chamberlain (sac@cygnus.com)
3739
3740 * h8500-tdep.c (initialize_h8500_tdep, large_command):
3741 All references to value changed to value_ptrlage_command is now
3742 called big_command.
3743 All references to value changed to value_ptr.
3744 * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
3745 * remote-hms.c (hms_wait): Timeout after five seconds.
3746 * ser-go32.c (dosasync_read): Poll if timeout < 0.
3747 * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
3748 * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
3749
e6b8a171
JL
3750Thu Apr 14 07:01:56 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3751
3752 * procfs.c (procfs_wait): Protect watchpoint code with appropriate
3753 #ifdefs.
6bc194d2 3754 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): Likewise.
e6b8a171 3755
999dd04b
JL
3756Wed Apr 13 14:52:46 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3757
3758 * breakpoint.h (enum bptype): Add bp_hardware_watchpoint and
3759 bp_watchpoint_scope breakpoints.
3760 (struct breakpoint): Add val_chain and related_breakpoint fields
3761 for use by watchpoints.
3762
3763 * breakpoint.c (within_scope): Delete. No longer used.
3764 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Provide default definition.
3765 (target_{remove,insert}_watchpoint): Likewise.
3766 (can_use_hardware_watchpoint): New function.
3767 (remove_breakpoint): New function to remove a single breakpoint
3768 or hardware watchpoint.
3769 (insert_breakpoints): Handle insertion of hardware watchpoints.
3770 Store a copy of the value chain derived from the watchpoint
3771 expression.
3772 (remove_breakpoints): Simplify by using remove_breakpoint.
3773 (delete_breakpoint): Likewise.
3774 (watchpoint_check): Delete the watchpoint and watchpoint scope
3775 breakpoints when the watchpoint goes out of scope. Save & restore
3776 the current frame after checking watchpoints.
3777 (breakpoint_init_inferior): Likewise (restarting the program
3778 makes all local watchpoints go out of scope).
3779 (bpstat_stop_status): Handle hardware watchpoints much like normal
3780 watchpoints. Delete the watchpoint and watchpoint scope breakpoint
3781 when the watchpoint goes out of scope. Remove and reinsert all
3782 breakpoints before returning if we stopped when a hardware watchpoint
3783 fired.
3784 (watch_command): Use a hardware watchpoint when possible. If
3785 watching a local expression, build a scope breakpoint too.
3786 (map_breakpoint_numbers): Also call given function for any
3787 related breakpoints.
3788 (disable_breakpoint): Never disable a scope breakpoint.
3789 (enable_breakpoint): Handle hardware breakpoints much like normal
3790 breakpoints, but recompute the watchpoint_scope breakpoint's
3791 frame and address (if we have an associated scope breakpoint).
3792 (read_memory_nobpt): Handle hardware watchpoints like normal
3793 watchpoints. When necessary handle watchpoint_scope breakpoints.
3794 (print_it_normal, bpstat_what, breakpoint_1, mention): Likewise.
3795 (clear_command, breakpoint_re_set_one, enable_command): Likewise.
3796 (disable_command): Likewise.
3797
3798 * blockframe.c (find_frame_addr_in_frame_chain): New function.
3799 Extern prototype added to frame.h
3800
3801 * infrun.c (wait_for_inferior): Set current_frame and select
3802 a frame before checking if we stopped due to a hardare watchpoint
3803 firing. Handle stepping over hardware watchpoints.
3804 (normal_stop): Remove unnecessary call to select_frame.
3805
3806 * value.h (value_release_to_mark): Declare.
3807 * values.c (value_release_to_mark): New function.
3808
3809 * procfs.c (procfs_wait): Add cases for hardware watchpoints.
3810 (procfs_set_watchpoint, procfs_stopped_by_watchpoint): New functions.
3811
3812 * hppab-nat.c (hppa_set_watchpoint): New function.
3813
3814 * config/pa/nm-hppab.h (STOPPED_BY_WATCHPOINT): Define.
3815 (HAVE_STEPPABLE_WATCHPOINT): Define.
3816 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
3817 (target_{insert,delete}_watchpoint): Define.
3818
9ec76784
JL
3819 * config/mips/nm-irix4.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Define.
3820 (STOPPED_BY_WATCHPOINT, HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3821 (target_{insert,remove}_watchpoint): Likewise.
3822
70e375c3
SG
3823Mon Apr 11 19:21:27 1994 Stu Grossman (grossman at cygnus.com)
3824
3825 * xcoffread.c (read_xcoff_symtab): Ignore symbols of class C_EXT,
3826 smtyp XTY_LD, sclass XMC_DS (external data segment label). They
3827 often have the same names as debug symbols for functions, and
3828 confuse lookup_symbol().
3829
2ddeed27
JK
3830Mon Apr 11 10:44:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3831
3832 * remote.c: Around redefinition of PBUFSIZE, adjust whitespace.
3833 * config/pa/tm-hppa.h (REGISTER_BYTES): Use 4 rather than
3834 REGISTER_RAW_SIZE (1).
3835 Together these changes work around a bug in HP's compiler. Both
3836 seem to be necessary.
3837
699daa9c
JL
3838Mon Apr 11 09:18:24 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3839
3840 * paread.c (pa_symtab_read): Handle ST_STUB symbols and symbols
3841 with scope SS_EXTERNAL. ST_ENTRY symbols in dynamic executables
3842 are type mst_solib_trampoline.
3843
7b2b0758
JK
3844Fri Apr 8 17:14:37 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3845
3846 * config/m68k/es1800.mt: Change comments.
3847
3848Fri Apr 8 17:14:37 1994 Rob Savoye (rob@darkstar.cygnus.com)
3849
3850 * config/m68k/monitor.mt (TDEPFILES): Don't include remote-es.o.
3851
790a14a8
SG
3852Fri Apr 8 15:35:30 1994 Stu Grossman (grossman at cygnus.com)
3853
3854 * lynx-nat.c: Restore regmap structure for SPARC. It's needed
3855 for core files.
3856
f3e4ac4a
JK
3857Fri Apr 8 14:53:35 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
3858
a110a1c3
JK
3859 * values.c (unpack_long): Remove obsolete comment about using a
3860 switch statement.
3861
f3e4ac4a
JK
3862 * symfile.c (symbol_file_command): Add comments about command syntax.
3863
2fe3b329
PS
3864Thu Apr 7 17:25:21 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3865 Jim Kingdon (kingdon@cygnus.com)
3866
3867 * infrun.c (IN_SOLIB_TRAMPOLINE): Correct comment, trampolines
3868 are in the .plt section.
3869 * minsyms.c (lookup_solib_trampoline_symbol_by_pc,
3870 find_solib_trampoline_target): New functions for handling
3871 stepping into -g compiled shared libraries.
3872 * symtab.h (lookup_solib_trampoline_symbol_by_pc,
3873 find_solib_trampoline_target): Add prototypes.
3874 * config/tm-sunos.h (IN_SOLIB_TRAMPOLINE, SKIP_TRAMPOLINE_CODE):
3875 Define to handle stepping into -g compiled shared libraries.
3876 * config/tm-sysv4.h (SKIP_TRAMPOLINE_CODE): Define to handle
3877 stepping into -g compiled shared libraries.
3878
3879Thu Apr 7 17:22:54 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3880
3881 * configure.in: Add mips-*-sysv4* support.
3882 * config/mips/mipsv4.mh, config/mips/mipsv4.mt,
3883 config/mips/tm-mipsv4.h, config/mips/xm-mipsv4.h, mipsv4-nat.c:
3884 New files for MIPS SVR4 support.
3885 * Makefile.in: Update for new mipsv4 files.
3886 * alpha-tdep.c (heuristic_proc_desc, find_proc_desc): Use
3887 read_next_frame_reg to obtain the frame relative stack pointer.
3888 * mips-tdep.c (heuristic_proc_desc): Use read_next_frame_reg to
3889 obtain the frame relative stack pointer.
3890 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab1):
3891 Handle stStatic and stStaticProc symbols in stabs-in-ecoff output
3892 by entering them into the minimal symbol table.
3893 * printcmd.c (print_scalar_formatted): Do not try to unpack to
3894 a long for float formats.
3895 * solib.c: Include "elf/mips.h" only if DT_MIPS_RLD_MAP does not
3896 get defined in <link.h>.
3897 * solib.c (solib_add): Add shared library sections to the section
3898 table of the target before adding the symbols.
3899 * partial-stab.h: Relocate static and global functions.
3900 * dbxread.c (read_dbx_symtab): Remove unused variable
3901 end_of_text_address. Relocate text_addr when passing it
3902 to end_psymtab.
3903
3904 For Alpha OSF/1 targets, enable gdb to set breakpoints in shared
3905 library functions before the executable is run. Retrieve dynamic
3906 symbols from stripped executables.
3907 * mipsread.c (read_alphacoff_dynamic_symtab): New function.
3908 * mipsread.c (mipscoff_symfile_read): Use it. Issue warning message
3909 if no debugging symbols were found.
3910 * alpha-tdep.c (alpha_skip_prologue): Silently return the unaltered
3911 pc if memory at the pc is not accessible and GDB_TARGET_HAS_SHARED_LIBS
3912 is defined.
3913 * config/alpha/nm-alpha.h (GDB_TARGET_HAS_SHARED_LIBS): Define,
3914 OSF/1 has shared libraries.
3915
192b64e7
ILT
3916Thu Apr 7 15:11:11 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3917
3918 * dbxread.c (read_dbx_dynamic_symtab): Adjust for recent changes
3919 to BFD handling of dynamic symbols.
3920
45568424
JL
3921Tue Apr 5 15:29:25 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3922
4f915914
JL
3923 * hppa-tdep.c (hppa_fix_call_dummy): If FUN is a procedure label,
3924 then gets its real address into FUN and its GOT/DP value into %r19.
3925
3926 * tm-hppa.h (CALL_DUMMY): Use %r20, not %r19 as a temporary.
3927
7f43b9b7
JL
3928 * hppa-tdep.c (frameless_function_invocation): If no unwind
3929 descriptor was found, then assume this was not a frameless
3930 function invocation.
3931 (frame_saved_pc): If the saved PC is in a linker stub, then
3932 return the return address which the linker stub will return to.
3933
45568424
JL
3934 * xm-hppab.h: Never define USG.
3935 * xm-hppah.h: Always define USG.
3936
b96bc1e4
PB
3937Tue Apr 5 12:58:47 1994 Per Bothner (bothner@kalessin.cygnus.com)
3938
3939 * values.c (unpack_long, value_from_longest),
3940 valarith.c (value_binop): Allow TYPE_CODE_RANGE.
3941
d5412302
JK
3942Fri Apr 1 14:04:34 1994 Jason Merrill (jason@deneb.cygnus.com)
3943
3944 * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
3945
38b90473
PS
3946Fri Apr 1 00:44:00 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3947
3948 For SVR4 targets, enable gdb to set breakpoints in shared
3949 library functions before the executable is run.
3950 * elfread.c (elf_symtab_read): Handle symbols for shared library
3951 functions.
3952 * sparc-tdep.c (in_solib_trampoline): Renamed to in_plt_section
3953 and moved to objfiles.c.
3954 * objfiles.c (in_plt_section): Moved to here from sparc-tdep.
3955 * config/tm-sysv4.h (IN_SOLIB_TRAMPOLINE): Use new in_plt_section.
3956 * config/sparc/tm-sun4sol2.h (IN_SOLIB_TRAMPOLINE): Removed,
3957 the new generic definition from tm-sysv4.h works for Solaris.
3958
70f42bae
ILT
3959Wed Mar 30 16:14:27 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3960
3961 * elfread.c (elf_symtab_read): Change storage_needed,
3962 number_of_symbols and i to long. Rename get_symtab_upper_bound to
3963 bfd_get_symtab_upper_bound. Check for errors from
3964 bfd_get_symtab_upper_bound and bfd_canonicalize_symtab.
3965 * nlmread.c (nlm_symtab_read): Same changes.
3966
aece310f
JK
3967Wed Mar 30 11:43:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3968
34d265dc
JK
3969 * xcoffread.c (xcoff_next_symbol_text): New function.
3970 (read_xcoff_symtab): Set next_symbol_text_func to it.
3971 Move raw_symbol outside of read_xcoff_symtab.
3972
aece310f
JK
3973 * remote.c (getpkt): Remove unused "out" label.
3974
bd2f0c85
JL
3975Wed Mar 30 09:15:42 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
3976
3977 * breakpoint.c (print_it_normal): Allow GDB to notify the user
3978 about more than one watchpoint being triggered.
3979
c2216bfd
JK
3980Wed Mar 30 08:24:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
3981
3982 * config/m68k/tm-dpx2.h: Include tm-m68k.h not nonexistent tm-68k.h.
3983
db2302cb
PS
3984Wed Mar 30 00:31:49 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3985
9e837b37
PS
3986 * blockframe.c (find_pc_partial_function): mst_file_text
3987 symbols do not live in the shared library transfer table.
db2302cb
PS
3988 * ch-exp.y (decode_integer_value, match_character_literal,
3989 match_bitstring_literal): Guard tolower calls with isupper,
3990 tolower on old BSD systems blindly subtracts a constant.
3991 * dbxread.c (read_ofile_symtab): Check for __gnu_compiled_* as
3992 well when determining the producer of the object file.
3993 * mdebugread.c (has_opaque_xref): New function to check for
3994 cross reference to an opaque aggregate.
3995 * mdebugread.c (parse_symbol, parse_partial_symbols): Do not
3996 enter typedefs to opaque aggregates into the symbol tables.
3997 * mdebugread.c (parse_external): Remove skip_procedures argument,
3998 it has always been 1. Remove code that handled stProc symbols,
3999 it was never executed and was wrong, as the index of a
4000 stProc symbol points to the local symbol table and not to the
4001 auxiliary symbol info. Update caller.
4002 * mdebugread.c (parse_partial_symbols): Do not enter external
4003 stProc symbols into the partial symbol table, they are already
4004 entered into the minimal symbol table.
4005 * config/i386/tm-symmetry.h: Clean up, it is now only used for Dynix.
4006 Remove all conditionals and definitions for ptx.
4007 I386_REGNO_TO_SYMMETRY moved to here from symm-tdep.c.
4008 Fix addresses of floating point registers in REGISTER_U_ADDR.
4009 STORE_STRUCT_RETURN now handles cc and gcc conventions.
4010 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC,
4011 IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET defined to make backtracing through
4012 signal trampoline code work.
4013 * config/i386/xm-symmetry.h: Clean up, it is now only used for Dynix.
4014 Remove all conditionals and definitions for ptx.
4015 Remove KDB definitions.
4016 * symm-nat.c (store_inferior_registers): Fetch registers before
4017 storing them to obtain valid floating point control registers.
4018 Store fpu registers.
4019 * symm-nat.c (print_1167_control_word): Dynix 3.1.1 defines
4020 FPA_PCR_CC_C0 and FPA_PCR_CC_C1, avoid duplicate case value.
4021 * symm-nat.c (fetch_inferior_registers, child_xfer_memory):
4022 Fix typos.
4023 * symm-nat.c (child_resume): Update type of `signal' parameter.
4024 * symm-tdep.c (I386_REGNO_TO_SYMMETRY): Moved to tm-symmetry.h.
4025
19cd0c1f
JL
4026Tue Mar 29 23:01:33 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4027
4028 * hppa-tdep.c (hppa_fix_call_dummy): Use an alternate method for
4029 calling import stubs for functions in shared libraries.
4030
73cd3b49
PB
4031Tue Mar 29 21:14:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
4032
58cda66e
PB
4033 * ch-exp.y: Implement SIZE(mode_name) and SIZE(expression).
4034
73cd3b49
PB
4035 * ch-lang.c (chill_is_varying_struct): Magic string is
4036 was "<var_length>" is now "__var_length" (more portable).
4037
0c993550
JK
4038Tue Mar 29 19:41:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4039
4040 * remote.c (getpkt): If we get a timeout, actually retry rather
4041 than just giving up the first time it happens.
4042 * remote.c: Document sequence numbers.
4043 (remote_store_registers): Change syntax of 'P' request so that it
4044 never looks like a sequence number.
4045
d80ff70c
KH
4046Tue Mar 29 16:06:01 1994 Kung Hsu (kung@mexican.cygnus.com)
4047
0c993550 4048 * os9kread.c (record_minimal_symbol): add section_offset to
d80ff70c
KH
4049 relocate minimal symbol table.
4050 * os9kread.c (read_minimal_symbols): ditto.
4051 * os9kread.c (os9k_symfile_init): increase size of dbg and stb
4052 file names.
4053 * os9kread.c (read_os9k_psymtab): if there's no dbg file, just
4054 return. Also if file addr is 0 leave it 0, not to relocate.
4055 * remote-os9k.c (_initialize_remote_os9k): add 'set remotexon',
4056 'set remotexoff' and 'set remotelog' commands.
4057
4aa6fe10
JK
4058Tue Mar 29 12:38:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4059
4060 * remote.c (remote_store_registers): Add 'P' request to set an
4061 individual register.
4062 (remote_write_bytes, remote_read_bytes): Use %lx, not %x, to print
4063 a target address.
4064
72e35288
JK
4065Sat Mar 26 07:05:18 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4066
649694ea
JK
4067 * config/sparc/tm-sparc.h: Define USE_REGISTER_NOT_ARG.
4068 * stabsread (define_symbol): If USE_REGISTER_NOT_ARG, go back to
4069 combining all 'p' and 'r' pairs into a LOC_REGPARM.
4070
72e35288
JK
4071 * command.c (do_setshow_command, case var_string): Never add a
4072 space to the end of the string.
4073 * NEWS: Document this change.
4074 * .gdbinit: Add a space to the "set prompt" command.
4075
59144a81
JK
4076Fri Mar 25 12:40:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4077
493424b1
JK
4078 * m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
4079 changes to make it compile (it doesn't link yet).
4080
4081 * buildsym.c (start_subfile, patch_subfile_names), demangle.c
4082 (set_demangling_style, set_demangling_command): Use savestring not
4083 strdup. We were not dealing properly with a NULL return from
4084 strdup, and were not declaring strdup (the system header may or
4085 may not have it).
4086
59144a81
JK
4087 * valprint.c (val_print): Remove inaccurate comment about what
4088 types can be stub types.
4089
4090 * config/i386/ptx.mh (XDEPFILES): Add coredep.o. Delete infptrace.o.
4091 * symm-nat.c (child_wait, _initialize_symm_nat, kill_inferior):
4092 Supply alternate version if ATTACH_DETACH is not defined.
4093 * ptx4-nat.c, config/i386/{nm-ptx4.h, ptx4.mh, ptx.mt, ptx4.mt,
4094 tm-ptx.h, tm-ptx4.h, xm-ptx.h, xm-ptx4.h}: New files.
4095 * configure.in: Recognize i[34]86-sequent-sysv4* host.
4096
c8f75fe8
JL
4097Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4098
de482138
JL
4099 * hppa-tdep.c (skip_prologue): Do nothing if not at the beginning
4100 of a function.
4101 (skip_trampoline_code): Rewrite and add support for argument
4102 relocation stubs stubs, import/export stubs, calls through
4103 "_sr4export" and cascaded trampolines.
4104
fdafbfad
JL
4105 * hppa-tdep.c (skip_prologue): Return "pc" not zero
4106 if no unwind descriptor is found.
4107
eb1167c6
JL
4108 * tm-hppa.h (NUM_REGS): Bump to 128 registers.
4109 (REGISTER_NAMES): Add entries for "right-half" of FP registers.
4110 (REGISTER_RAW_SIZE, MAX_REGISTER_RAW_SIZE): Do not treat FP regs
4111 differently. All registers are four bytes.
4112 (REGISTER_BYTES, REGISTER_BYTE): Simplify now that all registers are
4113 the same size.
4114 (REGISTER_VIRTUAL_TYPE): Use builtin_type_float for all FP regs.
4115
4116 * hppa-tdep.c (pa_print_fp_reg): Update to print even numbered FP
4117 registers as both single and double values (fetching 2nd 32bit half
4118 as necessary). Annotate each register printed with its precision.
4119
c8f75fe8
JL
4120 * paread.c (read_unwind_info): Fix off-by-one error.
4121
0c1af47f
JK
4122Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4123
4124 * main.c (complete_command): Deal with it if arg is NULL.
4125
5801f348
JK
4126Thu Mar 24 07:12:09 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4127
4df6dcd1
JK
4128 * config/mips/tm-mips.h (SETUP_ARBITRARY_FRAME): Revise comment
4129 regarding using the PC--using the PC is necessary and all the
4130 FIXME comments in the world won't make it go away.
4131
2f3b7d8e
JK
4132 * valops.c (value_at, value_at_lazy): Give error if we dereference
4133 a pointer to void.
4134 * gdbtypes.h: Fix comments regarding TYPE_CODE_VOID.
4135 * stabsread.c: Use 1, not 0, for TYPE_LENGTH of void types.
4136
553e1862
JK
4137 * stabsread.c (patch_block_stabs): Add comment about what happens
4138 if the definition is in another compilation unit from the stab.
acdec954 4139
5801f348
JK
4140 * dbxread.c (end_psymtab): Add comment about empty psymtabs.
4141
09973223
JK
4142Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4143
4144 * main.c (complete_command): New command, from Rick Sladkey
4145 <jrs@world.std.com>.
4146 (symbol_completion_function): Don't declare rl_point and
4147 rl_line_buffer; they are now declared in readline.h.
4148 (show_commands): Don't declare history_base; it is declared in
4149 history.h.
4150 * command.c (lookup_cmd): Don't delete trailing whitespace.
acdec954 4151 Reverts change of 14 May 1989.
09973223
JK
4152
4153Wed Mar 23 16:14:52 1994 Stu Grossman (grossman at cygnus.com)
4154
4155 * minsyms.c (prim_record_minimal_symbol): Move section deduction
4156 code from prim_record_minimal_symbol_and_info() to here. Callers
4157 of the latter can legitimately supply a section number of -1.
4158
e552788b
JK
4159Wed Mar 23 07:50:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4160
4161 * gdbtypes.h, gdbtypes.c: Add comments regarding whether static
4162 member functions have an element in args for a (nonexistent) this
4163 pointer.
4164
84ad95c1
JL
4165Tue Mar 22 20:12:53 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4166
0a64709e
JL
4167 * config/pa/tm-hppao.h (NO_PC_SPACE_QUEUE_RESTORE): Define.
4168
4169 * hppa-tdep.c (hppa_pop_frame): Do not restore the PC space
4170 queue if NO_PC_SPACE_QUEUE_RESTORE is defined.
4171
84ad95c1
JL
4172 * stabsread.c (REG_STRUCT_HAS_ADDR): Accept additional argument
4173 for the structure's type. All callers changed.
4174
4175 * valops.c (call_function_by_hand): Check REG_STRUCT_HAS_ADDR
4176 for each structure argument rather than assuming it's either
4177 true or false for all structure arguments.
4178
4179 * config/pa/tm-hppa.h (REG_STRUCT_HAS_ADDR): Depend only
4180 on the length structure passed, not the compiler used.
4181
4182 * config/sparc/tm-sparc.h (REG_STRUCT_HAS_ADDR): Accept additional
4183 argument for the structure's type.
4184
29f2ceed
JK
4185Tue Mar 22 15:28:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4186
51f83933
JK
4187 * values.c (set_internalvar): Don't set var->value until we are
4188 sure there won't be an error().
4189
29f2ceed
JK
4190 * remote.c (get_offsets): Reinstate comment which was in
4191 remote_wait about use of SECT_OFF_TEXT and so on.
4192
4193Mon Mar 21 13:11:30 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4194
4195 * symmisc.c (maintenance_check_symtabs): New function to check
4196 consistency of psymtabs and symtabs.
4197 * symtab.h (maintenance_check_symtabs): Add prototype.
4198 * maint.c: Add new `maint check-symtabs' command.
4199 * config/i386/tm-i386aix.h, config/i386/tm-sun386.h,
4200 config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Fix typo.
4201 * config/i386/tm-symmetry.h: Make comment inside #if 0 a real
4202 comment.
4203 * config/i386/tm-symmetry.h (STORE_STRUCT_RETURN): Cast argument
4204 to write_memory to avoid warnings from gcc.
4205 * config/i386/xm-symmetry.h: Add missing #endif.
4206 * config/i386/nm-symmetry.h (NO_PTRACE_H): Add for Dynix.
4207 * config/i386/symmetry.mt (TDEPFILES): Add i386-tdep.o.
4208 * config/i386/symmetry.mh (NAT_FILE, NATDEPFILES): Add.
4209
4fd5eed4
JL
4210Mon Mar 21 11:50:28 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4211
4212 * hppa-tdep.c (hppa_fix_call_dummy): Use value_ptr.
4213 (hppa_push_arguments): Likewise.
4214
72bba93b
SG
4215Mon Mar 21 11:02:51 1994 Stu Grossman (grossman at cygnus.com)
4216
4217 * alpha-tdep.c: Gobs of changes (many imported from mips-tdep) to
4218 improve remote debugging efficiency. Also fixed problems with
4219 doing function calls for programs with no entry points.
4220 * infcmd.c (run_stack_dummy): Use CALL_DUMMY_ADDRESS instead of
4221 entry_point_address.
4222 * inferior.h (PC_IN_CALL_DUMMY): ditto.
4223 * mdebugread.c (parse_symbol, parse_procedure, parse_external,
4224 parse_lines): Pass section_offsets info to these routines so that
4225 we can relocate symbol table entries upon readin.
4226 * (psymtab_to_symtab_1): Set symtab->primary to tell
4227 objfile_relocate to do relocations for our symbols.
4228 * (ecoff_relocate_efi): New routine to relocate adr field of PDRs
4229 (which hang off of the symbol table).
4230 * Use prim_record_minimal_symbols_and_info instead of
4231 prim_record_minimal_symbols to supply section info to make minimal
4232 symbol relocations work.
4233 * minsyms.c (prim_record_minimal_symbols_and_info): If section is
4234 -1, try to deduce it from ms_type.
4235 * objfiles.c (objfile_relocate): Use ALL_OBJFILE_SYMTABS where
4236 appropriate. Handle relocation of MIPS_EFI symbols special. Also,
4237 add code to relocate objfile->sections data structure.
4238 * remote.c (get_offsets): Use new protocol message to acquire
4239 section offsets from the target.
4240 * (remote_wait): Get rid of relocation stuff. That's all handled
4241 by objfile_relocate now.
4242 * config/alpha/alpha-nw.mt (TM_FILE): Use tm-alphanw.h.
4243 * config/alpha/tm-alpha.h: Define CALL_DUMMY_ADDRESS, and
4244 VM_MIN_ADDRESS.
4245 * config/alpha/tm-alphanw.h: DECR_PC_AFTER_BREAK=0, VM_MIN_ADDRESS=0.
4246
2848f793
JL
4247Mon Mar 21 10:09:06 1994 Jeff Law (law@snake.cs.utah.edu)
4248
4249 * hpread.c (_initialize_hpuxread): Don't call add_symtab_fns if
4250 HPREAD is not defined.
4251
d148e8c4
DE
4252Sun Mar 20 15:21:57 1994 Doug Evans (dje@cygnus.com)
4253
4254 * sparc-tdep.c (sparc_frame_find_save_regs): Use REGISTER_RAW_SIZE
4255 instead of 4.
d3688932
DE
4256 * sp64-tdep.c (target_ptr_bit, set_target_ptr_bit): Deleted,
4257 can no longer set this at run time.
7f695c07
DE
4258 * config/sparc/sp64.mt (SIMFILES): Use remote-sim.o now.
4259 (TM_CLIBS): Define to -lm, the simulator uses the sqrt() function.
4260 * config/sparc/tm-sp64.h (FPS_REGNUM, CPS_REGNUM): Define (so
4261 sparc-tdep.c compiles).
4262 (TARGET_PTR_BIT): Must be a constant now, fix at 64.
d3688932 4263
94d4b713
JK
4264Sat Mar 19 08:51:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4265
d0bff94e
JK
4266 * config/m68k/{cisco.mt,tm-cisco.h}: New files.
4267 * Makefile.in (ALLPARAM, ALLCONFIG): Add them.
4268 * configure.in: Recognize m68*-cisco*-*.
4269
94d4b713
JK
4270 * Makefile.in (TAGS): Use variables directly, rather than using
4271 find, to locate TM_FILE, XM_FILE, and NAT_FILE. This is faster
4272 and means that these filenames no longer need be unique across all
4273 the config/* directories.
4274 * configure.in: Put the config/*/ into TM_FILE, etc.
4275
4276 * m68k-stub.c (computeSignal): Return SIGFPE, not SIGURG, for chk
4277 and trapv exceptions.
4278
4279 * target.h (struct section_table), objfiles.h (struct obj_section):
4280 Change name of field sec_ptr to the_bfd_section. More mnemonic
4281 and avoids the (sort of, for the ptx compiler) name clash with
4282 the name of the typedef.
4283 * exec.c, xcoffexec.c, sparc-tdep.c, rs6000-nat.c, osfsolib.c,
4284 solib.c, irix5-nat.c, objfiles.c, remote.c: Change users.
4285
4286 * utils.c: Include readline.h.
4287 * Makefile.in (utils.o): Add dependency.
4288
4289 * remote.c (getpkt): Add support for run-length encoding.
4290
8eec3310
SC
4291Fri Mar 18 19:11:15 1994 Steve Chamberlain (sac@jonny.cygnus.com)
4292
4293 * utils.c (prompt_for_continue): Call readline, not gdb_readline.
4294
ee6d646a
JK
4295Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4296
20657f71
JK
4297 * dstread.c (record_minimal_symbol): New arg objfile. Pass it to
4298 prim_record_minimal_symbol.
4299 Callers: Pass it.
4300
ee6d646a
JK
4301 * regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
4302 computing their offset from the start of the old buffer and adding
4303 to the new buffer, rather than by assuming we can add the
4304 difference between the old buffer and the new buffer (it might not
4305 fit in an int). Merge in cosmetic differences from emacs regex.c
4306 version of this macro.
4307
478d3811
JK
4308Wed Mar 16 15:28:54 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4309
4310 * Makefile.in (install-only): Fix use of program_transform_name.
4311
c42b8af8
JK
4312Wed Mar 16 07:18:43 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4313
f8715549 4314 * printcmd.c: Remove "set print fast-symbolic-addr off" command.
478d3811 4315 The bug which it worked around was fixed on 25 Feb 94 in coffread.c,
f8715549
JK
4316 so I'm nuking the command.
4317 * symtab.c (find_addr_symbol): Comment out, no longer used.
4318
a645ccc9
JK
4319 * main.c (main): Don't init_source_path for the -cd argument. Now
4320 that source_path doesn't contain the current_directory from when
4321 GDB started up, init_source_path is no longer useful (and is
4322 harmful because it clobbers a source_path set in $HOME/.gdbinit).
4323
c42b8af8
JK
4324 * TODO: Remove item about line numbers being off. It is useless
4325 and confusing without a reproducible test case (it mentions
4326 proceed(), but I was able to step through proceed without trouble).
4327
ae6d035d
PS
4328Tue Mar 15 13:39:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4329
4330 For Sunos 4.x targets, enable gdb to set breakpoints in shared
4331 library functions before the executable is run. Retrieve dynamic
4332 symbols from stripped executables.
4333 * symtab.h (minimal_symbol_type): Add mst_solib_trampoline type.
4334 * parse.c (write_exp_msymbol), symmisc.c (dump_msymbols),
4335 symtab.c (list_symbols): Handle mst_solib_trampoline.
4336 * minsyms.c (lookup_minimal_symbol): Handle mst_solib_trampoline
4337 for all targets, remove IBM6000_TARGET dependencies.
4338 * dbxread.c (read_dbx_dynamic_symtab): New function.
4339 * dbxread.c (dbx_symfile_read): Use it.
4340 * dbxread.c (SET_NAMESTRING): Set namestring to
4341 "<bad string table index>" instead of "foo" if the string index is
4342 corrupt.
4343 * xcoffread.c (read_xcoff_symtab): Use mst_solib_trampoline instead
4344 of mst_unknown.
4345 * symtab.c (list_symbols): Take from_tty as parameter and pass it
4346 to break_command. Handle mst_file_* minimal symbol types.
4347 * config/i386/tm-i386bsd.h: Give just macro name, not args, to #undef.
4348
b427690a
KH
4349Tue Mar 15 11:40:43 1994 Kung Hsu (kung@mexican.cygnus.com)
4350
4351 * c-exp.y(yylex): fix potential memory overflow.
4352
f93b941b
JK
4353Tue Mar 15 10:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4354
4355 * environ.c (set_in_environ): Eliminate special handling of PATH and
4356 GNUTARGET.
4357 * putenv.c: Removed, conflicts with system declaration of
4358 putenv on RS/6000 running AIX 3.2.5, and above change makes it
4359 unnecessary.
4360 * Makefile.in: Change accordingly.
4361 * procfs.c (procfs_create_inferior): Change comment accordingly.
4362
17221e41
JK
4363Tue Mar 15 10:05:27 1994 Jim Kingdon (kingdon@cygnus.com)
4364
4365 * rs6000-tdep.c: Change value to value_ptr.
4366
2848f793
JL
4367Sun Mar 13 17:19:03 1994 Jeff Law (law@snake.cs.utah.edu)
4368
4369 * hpread.c (read_hpux_symtab: Correctly determine the namespace
4370 and address class of SVAR, DVAR, TYPEDEF, TAGDEF, CONST, and
4371 MEMENUM symbols. Do not include function-scoped variables in
4372 the partial symbol table.
4373
8eb79598
JK
4374Sun Mar 13 09:45:51 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4375
c4ad6b09
JK
4376 * i386m3-nat.c: Include floatformat.h.
4377 (get_i387_state): Use memset not bzero.
4378
5fa83062
JK
4379 * Version 4.12.3.
4380
4381 * Makefile.in: Enable commented out getopt_h, bfd_h, etc. Change
4382 ieee-float.h to floatformat.h.
4383
79f3d586
JK
4384 * valprint.c (val_print_string): Ignore error if the error
4385 happened after a terminating '\0'.
4386
4387 * c-valprint.c (c_val_print): Never add 1 to return value from
4388 val_print_string; just return what it returns.
4389
8eb79598
JK
4390 * target.h (enum target_signal): Add TARGET_SIGNAL_FIRST, for
4391 looping through all of the enums.
4392 * infrun.c (signals_info): Use it.
4393
c4de6b30
JK
4394Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4395
8e4c7b3e
JK
4396 * main.c (main): When printing warning about bad baud rate, don't
4397 use warning(); it relies on current_target which isn't set up yet.
4398
c4de6b30 4399 * breakpoint.c (_initialize_breakpoint): Update docstring for
d1bdad57
JK
4400 tbreak to match what the code actually does. Don't mention tbreak
4401 in docstrings for "enable once" or "enable breakpoints once".
c4de6b30 4402
d78d4d16
JK
4403Thu Mar 10 08:52:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4404
4405 * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Don't put a semicolon after
4406 while (0). That defeats the whole purpose of using do . . . while (0).
4407 * mdebugread.c (parse_partial_symbols): Don't use ?: expression as
4408 list for ADD_PSYMBOL_TO_LIST; the macro takes its address and
4409 using a ?: expression as an lvalue is not portable.
4410
4411 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR, also
4412 convert a LOC_ARG to a LOC_REF_ARG. Update code which combines
4413 'p' and 'r' symbol descriptors into a single symbol to look for a
4414 LOC_REF_ARG.
4415 * README, config/sparc/tm-sparc.h: Update comments.
4416
10373914
PS
4417Wed Mar 9 21:43:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4418
4419 * mdebugread.c (parse_type): Do not complain for types with
4420 an `indexNil' aux index, these are simply undefined types.
4421 Remove indexNil check from caller of parse_type.
4422 * mdebugread.c (parse_partial_symbols): Do not enter
4423 stGlobal, scCommon symbols into the minimal symbol table, their
4424 value is the size of the common, not its address.
4425 Handle scInit, scFini, scPData and scXData sections.
4426 Use minimal symbol type mst_file_* for stLabel symbols, instead of
4427 mst_*.
4428 Enter stProc symbols into the global_psymbols list once, not into
4429 the static_psymbols_list.
4430 Get rid of dummy psymtab if it is empty, to allow proper detection
4431 of stripped executables.
4432 * mdebugread.c (cross_ref): Allow cross references to Fortran
4433 common blocks.
4434
fddb9bda
JK
4435Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4436
4437 * stabsread.c (common_block_end, fix_common_block): Stash the
4438 struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so
4439 as to not assume that a pointer fits in an enum.
4440
d9389f37
KH
4441Wed Mar 9 18:56:36 1994 Kung Hsu (kung@mexican.cygnus.com)
4442
4443 * os9kread.c (fill_sym): check compiler verion number for pre-
4444 UltraC compiler.
4445 * os9kread.c (os9k_process_one_symbol): address of symbol is
4446 relative to section not module.
4447 * stabsread.c (define_symbol): add symbol type 's' as local
4448 symbol for os9k.
4449 * remote-os9k.c: add command 'set monitor_log' to turn on or off
4450 monitor logging.
4451 * remote-os9k.c: fix bug in delete breakpoint, single step trace.
4452 * remote-os9k.c: fix bug in 'set remotebaud' function.
4453 * remote-os9k.c (rombug_link): minimize checking so to improve
4454 speed.
fddb9bda 4455 * symfile.c (symbol_file_command): check if failed to link, also make
d9389f37
KH
4456 the command be able to accept more than one filenames.
4457 * target.c (target_link): check if failed to link with rombug.
4458 * config/i386/tm-i386os9k.h : add #define DECR_PC_AFTER_BREAK 0.
4459
cdc7029d
JK
4460Wed Mar 9 15:23:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4461
4462 * remote-es.c (es1800_child_ops): Don't declare it static.
4463
352c21dd
JK
4464Tue Mar 8 11:42:39 1994 Jim Kingdon (kingdon@cygnus.com)
4465
4466 * config/i386/tm-i386v4.h: Give just macro name, not args, to #undef.
4467
ce2f21b2
JK
4468Tue Mar 8 06:56:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4469
9d2b8d50
JK
4470 * dbxread.c: New variable lowest_text_address.
4471 (record_minimal_symbol, read_dbx_symtab): Set it.
4472 (read_dbx_symtab): Use lowest_text_address + text_size instead of
4473 end_of_text_address.
4474 * config/gould/tm-pn.h: Add comment regarding END_OF_TEXT_DEFAULT.
4475
4476 * dbxread.c (end_psymtab): Remove old and commented out
4477 capping_global and capping_static. Fix comments regarding
4478 N_SO_ADDRESS_MAYBE_MISSING to match the real name of the macro.
4479
79448221
JK
4480 * parser-defs.h: Add "extern" to start of variable declarations so
4481 we don't end up with commons.
4482 * parse.c: Define these variables.
4483
ce2f21b2
JK
4484 * irix5-nat.c (find_solib): Cast o_path to CORE_ADDR when using it
4485 as one.
4486
7810d333
JK
4487Mon Mar 7 13:00:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4488
4489 * alpha-tdep.c: Change value to value_ptr.
4490
a6e21fba
PS
4491Sun Mar 6 17:36:53 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4492
4493 * solib.c (elf_locate_base): New function to locate the address
4494 of the dynamic linker's runtime structure in the dynamic info section.
4495 * solib.c (locate_base): Use it instead of iterating over the list
4496 of mapped address segments.
4497 * solib.c (look_for_base, bfd_lookup_symbol): Removed, no longer
4498 necessary.
4499
70e43abe
JL
4500Fri Mar 4 09:50:47 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4501
4502 * hppa-tdep.c (pc_in_linker_stub): Move decl to beginning of file.
4503 (pc_in_interrupt_handler): New function. Also add PARAM decl.
4504 (find_proc_framesize): Deal with HPUX setting SAVE_SP bit for
4505 signal trampoline and interrupt routines.
4506 (frame_saved_pc): Handle signal trampolines and interrupt routines.
4507 (frame_chain, frame_chain_valid): Likewise.
4508 (hppa_frame_find_saved_regs): Likewise. Also deal with special
4509 saved regs convention for SP.
4510
4511 * tm-hppa[bho].h: FRAME_FIND_SAVED_PC_IN_SIGTRAMP): Define.
4512 (FRAME_BASE_BEFORE_SIGTRAMP): Define.
4513 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Define.
4514
4515 * tm-hppah.h (IN_SIGTRAMP): Define.
4516
833a2895
JK
4517Thu Mar 3 12:41:16 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4518
93dc3414
JK
4519 * ch-exp.y (match_simple_name_string): Accept '_' as well as an
4520 alphabetic character as the start of a name.
4521
b855dfe7
JK
4522 * sparclite/Makefile.in (all install): Build and install aload.
4523
d9a5e91f
JK
4524 * configure.in: Accept i[34]86-*-*sysv32 because that is what
4525 config.guess and config.sub produce.
4526
833a2895
JK
4527 * mips-tdep.c: Change value to value_ptr.
4528
82a2edfb
JK
4529Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4530
4531 * breakpoint.c, breakpoint.h, c-valprint.c, ch-valprint.c,
4532 cp-valprint.c, eval.c, expprint.c, findvar.c, language.c,
4533 objfiles.h, infcmd.c, printcmd.c, stack.c, typeprint.c,
4534 valarith.c, valops.c, valprint.c, value.h, values.c: Replace
4535 value with value_ptr. This is for the ptx compiler.
4536 * objfiles.h, target.h: Don't declare a "sec_ptr" field using a
4537 "sec_ptr" typedef.
4538 * symm-nat.c: Add a bunch of stuff for symmetry's ptrace stuff.
4539 #if 0 i386_float_info.
4540 * symm-tdep.c (round): Remove. Also remove sgttyb.
4541 * symm-tdep.c: Remove lots of stuff which duplicates stuff from
4542 i386-tdep.c. Remove register_addr and ptx_coff_regno_to_gdb.
4543 * i386-tdep.c (i386_frame_find_saved_regs): Put in
4544 I386_REGNO_TO_SYMMETRY check in case it is needed for Dynix
4545 someday.
4546 * config/i386/nm-symmetry.h: Change KERNEL_U_ADDR. Move
4547 stuff from PTRACE_READ_REGS, PTRACE_WRITE_REGS macros to
4548 symm-nat.c. Define CHILD_WAIT and declare child_wait().
4549 * config/i386/tm-symmetry.h: Remove call function stuff; stuff in
4550 tm-i386v.h is apparently OK.
4551 * config/i386/xm-symmetry.h [_SEQUENT_]: Define HAVE_TERMIOS not
4552 HAVE_TERMIO. Define MEM_FNS_DECLARED, NEED_POSIX_SETPGID, and
4553 USE_O_NOCTTY.
4554
c485c7a9
PS
4555Wed Mar 2 11:31:08 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4556
4557 * osfsolib.c (xfer_link_map_member): Update to use new
4558 target_read_string interface.
4559
d1c0c6cf
JK
4560Wed Mar 2 09:17:55 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4561
4562 * infrun.c (wait_for_inferior): In checking
4563 remove_breakpoints_on_following_step, check
4564 through_sigtramp_breakpoint as well as step_resume_breakpoint.
4565
25200748
JK
4566Tue Mar 1 16:22:56 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4567
4568 * os9kread.c (os9k_process_one_symbol): Rename
4569 VARIABLES_INSIDE_BLOCK to OS9K_VARIABLES_INSIDE_BLOCK.
4570 * symfile.c (symbol_file_command): Check for (CORE_ADDR)-1, not
4571 (CORE_ADDR)0, from target_link, since that is what it uses.
4572 Process name at end, not during parsing (like we did before Kung's
4573 change), so that -readnow and -mapped can appear anywhere.
4574 Make text_relocation a local variable.
4575 * config/i386/i386os9k.mt: Fix comment.
4576 * Makefile.in (ALLDEPFILES): Add remote-os9k.c.
4577 * os9kread.c: Put "comments" after #endif inside /* */.
4578 * stabsread.h: Add os9k_stabs variable.
4579 * stabsread.c (start_stabs), os9kread.c (os9k_process_one_symbol):
4580 Set it.
4581 * stabsread.c (define_symbol): If os9k_stabs, put a 'V' symbol
4582 descriptor in global_symbols not local_symbols.
4583 (read_type): If os9k_stabs, accept 'c', 'i', and 'b' type
4584 descriptors.
4585 (read_type): If os9k_stabs, accept function parameters after 'f'
4586 type descriptor.
4587 (read_array_type): If os9k_stabs, don't expect index type and
4588 expect lower and upper to be separated by ',' not ';'.
4589 (read_enum_type): If os9k_stabs, read a number before the first
4590 enumeration constant.
4591 (os9k_init_type_vector): New function.
4592 (dbx_lookup_type): Call it when starting new type vector.
4593 * config/i386/tm-i386os9k.h: Define BELIEVE_PCC_PROMOTION.
4594 * (os9k_process_one_symbol): Call define_symbol not os9k_define_symbol.
4595 * os9kstab.c: Removed.
4596 * Makefile.in: Update accordingly.
4597 * objfiles.c (objfile_relocate_data): Removed.
4598 * remote-os9k.c (rombug_wait): Call objfile_relocate
4599 not objfile_relocate_data.
4600 * objfiles.h, objfiles.c: Remove find_pc_objfile.
4601 * remote-os9k.c (rombug_wait): Call find_pc_section not
4602 find_pc_objfile.
4603 * main.c (quit_command): Check inferior_pid; revert Kung change.
4604 * remote-os9k.c (rombug_create_inferior): Set inferior_pid.
4605
1340861c
KH
4606Tue Mar 1 14:56:14 1994 Kung Hsu (kung@mexican.cygnus.com)
4607
4608 * os9kread.c: New file to read os9000 style symbo table.
4609 * os9kstab.c: new file to read os9000 style stabs.
4610 * remote-os9k.c: remote protocol talking to os9000 rombug monitor.
4611 * objfiles.c (find_pc_objfile): new function to search objfile
4612 from pc.
4613 * objfiles.c (objfile_relocate_data): new function to relocate
4614 data symbols in symbol table.
4615 * objfiles.h: Add two aux fields in struct objfile to handle
4616 multiple symbol table files situation like in os9000.
4617 * symfile.c: Change so 'symbol-file' command can handle multiple
4618 files. Also call target_link() to get relocation infos.
4619 * target.c (target_link): new function to get relocation info when
4620 a symbol file is requested to load.
4621 * main.c (quit_command): take out 'inferior_pid != 0' condition,
4622 because in cross mode there's no inferior pid, bit they need to
4623 be detached.
4624 Makefile.in: add os9kread.c os9kstab.c and .o's.
4625 configure.in: add i386os9k target.
4626 config/i386/i386os9k.mt: new add.
4627 config/i386/tm-i386os9k.h: new add.
4628
137b6849
PS
4629Tue Mar 1 13:16:10 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4630
4631 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP): Handle ucbsigvechandler.
4632 * sparc-tdep.c (sparc_frame_saved_pc): Handle ucbsigvechandler.
4633
4ad0021e
JK
4634Tue Mar 1 11:54:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4635
4636 * target.c, target.h (target_read_string): Provide error detection to
4637 caller. Put string in malloc'd space, so caller need not impose
4638 arbitrary limits.
4639 * solib.c (find_solib): Update to use new interface.
4640 * irix5-nat.c (find_solib): Read o_path from inferior
4641 (clear_solib): Free storage for o_path.
4642 * valprint.c (val_print_string): Add comments.
4643
e3d6ec4a
PS
4644Mon Feb 28 23:54:39 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4645
4646 * symtab.c (decode_line_1): Handle the case when skip_quoted does not
4647 advance `p'.
4648
c8ff77be
JK
4649Mon Feb 28 12:40:46 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4650
30974778
JK
4651 * value.h (struct value): Add modifiable field.
4652 * values.c (allocate_value, record_latest_value, value_copy): Set it.
4653 (record_latest_value): Don't mess with VALUE_LVAL of value.
4654 * valops.c (value_assign): Check it. Reword existing error
4655 message on not_lval.
4656
b5aff268
JK
4657 * mips-tdep.c (mips_step_skips_delay), config/mips/tm-mips.h
4658 (STEP_SKIPS_DELAY): Added.
4659 * infrun.c (proceed) [STEP_SKIPS_DELAY]: Check for a breakpoint in
4660 the delay slot.
4661
c8ff77be
JK
4662 * valprint.c (val_print_string): If errcode is set, always print
4663 an error, regardless of force_ellipsis. In the non-EIO case,
4664 just print the error message rather than calling error(). Don't
4665 access *(bufptr-1) if bufptr points to the start of the buffer.
4666 When looking for '\0', don't increment bufptr and addr if bufptr
4667 started out already at limit. If an error happens on fetching the
4668 first character, don't print the string.
4669
2882219f
JK
4670Sun Feb 27 21:05:06 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4671
4672 * config/m68k/tm-apollo68b.h: Remove HAVE_68881 define; it is
4673 obsolete.
4674
4675 * i387-tdep.c, i386-tdep.c i386v-nat.c, i386aix-nat.c,
4676 i386m3-nat.c, config/m68k/tm-m68k.h, i960-tdep.c
4677 config/i960/tm-i960.h, remote-nindy.c, config/m88k/tm-m88k.h,
4678 m88k-tdep.c: Use floatformat.h instead of ieee-float.h.
4679 * sparc-tdep.c: Remove now-obsolete ieee-float.h stuff
4680 * findvar.c: Update comment regarding ieee-float.h.
4681
28ee4b42
PS
4682Sun Feb 27 21:39:48 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4683
4684 * config/i386/tm-i386v4.h (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP,
4685 FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
4686 Define to make backtracing through the various sigtramp handlers
4687 work.
4688 * i386-tdep.c (i386v4_sigtramp_saved_pc): New routine to fetch
4689 the saved pc from ucontext on the stack for SVR4 signal handling.
4690
25354cef
JK
4691Fri Feb 25 09:41:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4692
c20c1bdf
JK
4693 * remote.c, remote-mon.c, remote-utils.c, remote-utils.h,
4694 target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
4695 baud_rate is -1. Remove sr_get_baud_rate and sr_set_baud_rate;
4696 just use the global variable itself. When printing baud rate,
4697 don't print a baud rate if baud_rate is -1.
4698
25354cef
JK
4699 * coffread.c (read_coff_symtab): Pass mst_file_* to
4700 record_minimal_symbol for C_STAT symbols. Put C_EXT and C_STAT
4701 symbols in the minimal symbols regardless of SDB_TYPE.
4702
7126c1d0
JK
4703Thu Feb 24 08:30:33 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4704
bcc37718
JK
4705 * breakpoint.h (enum bptype): New type bp_through_sigtramp.
4706 (bpstat_what_main_action): New code BPSTAT_WHAT_THROUGH_SIGTRAMP.
4707 * breakpoint.c (bpstat_what): Return BPSTAT_WHAT_THROUGH_SIGTRAMP
4708 if we hit a bp_through_sigtramp breakpoint. Remove kludge which
4709 ignored bs->stop for a bp_step_resume breakpoint.
4710 * infrun.c (wait_for_inferior): Make a through_sigtramp_breakpoint
4711 which performs one (the check_sigtramp2 one) of the functions
4712 which had been handled by the step_resume_breakpoint. For each
4713 use of the step_resume_breakpoint, make it still use the
4714 step_resume_breakpoint, use the through_sigtramp_breakpoint, or
4715 operate on both.
4716 Deal with BPSTAT_WHAT_THROUGH_SIGTRAMP return from bpstat_what.
4717 When setting the frame address of the step resume breakpoint, set
4718 it to the address for frame *before* the call instruction is
4719 executed, not after.
4720
3fed1c4a
JK
4721 * mips-tdep.c (mips_print_register): Print integers using
4722 print_scalar_formatted rather than duplicating all the
4723 CC_HAS_LONG_LONG and so on.
4724 (mips_push_dummy_frame): Use read_register_gen rather than using
4725 read_register and then putting it back in target format with
4726 store_unsigned_integer. If registers are more than 4 bytes, give
4727 an error rather than have some registers overwrite other
4728 registers.
4729 #if 0 unused include of opcode/mips.h.
4730
4731 * symfile.h: Don't declare arguments for coff_getfilename.
4732
7126c1d0
JK
4733 * defs.h: Revert Kung change regarding FORCE_LONG_LONG.
4734
6bfd168c
JL
4735Thu Feb 24 08:06:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
4736
4737 * configure.in (hppa*-*-osf*): New configuration.
4738 * config/pa/hppaosf.mt: New target makefile fragment.
4739 * config/pa/tm-hppao.h: New target include file.
4740
5c07a10b
PS
4741Thu Feb 24 04:29:19 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4742
4743 * exec.c (print_section_info): Print entry point for exec_bfd only.
4744 * ser-unix.c (wait_for): Fix typo in HAVE_TERMIO case.
8ce2cfc0
PS
4745 * dwarfread.c: Remove second inclusion of <sys/types.h>, which
4746 causes problems if <sys/types.h> has no multiple inclusion protection.
5c07a10b 4747
fce7695f
JL
4748Wed Feb 23 16:28:55 1994 Jeffrey A. Law (law@cygnus.com)
4749
4750 * tm-hppa.h (CALL_DUMMY): Add two NOP instructions to the end of
4751 the call dummy to avoid kernel bugs in HPUX, BSD, and OSF1.
4752 (CALL_DUMMY_LENGTH): Changed accordingly.
4753
318ee78a
SG
4754Wed Feb 23 16:21:25 1994 Stu Grossman (grossman at cygnus.com)
4755
75a006d9
SG
4756 * sparc-stub.c (trap_low): Make trap handler work for arbitrary
4757 numbers of register windows.
4758
318ee78a
SG
4759 * sparclite/hello.c: Add factorial function for testing.
4760 * salib.c: Use macros instead of constants for I/O addresses to
4761 make 931 support easier.
4762 * sparclite.h: Change constraint for LOC to "rJ" to force use of
4763 register in sta/lda instructions.
4764
56dd4126
JK
4765Wed Feb 23 10:39:18 1994 Jim Kingdon (kingdon@rtl.cygnus.com)
4766
4767 * dbxread.c (process_one_symbol): Set
4768 block_address_function_relative for COFF like we do for ELF and SOM.
4769
847d9775
PS
4770Sat Feb 19 03:17:32 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4771
4772 * mdebugread.c (new_psymtab): Pass in section_offsets and set
4773 them in the pst.
4774 * mdebugread.c (handle_psymbol_enumerators): New function to enter
4775 the enumerators of an ecoff enum into the partial symbol table.
4776 * mdebugread.c (parse_partial_symbols): Call it.
4777 * symfile.c (reread_symbols): Initialize objfile->*_psymbols.next.
4778 * symmisc.c (dump_psymtab): Fix typo, clean up output of section
4779 offsets. Cast psymtab->read_symtab to PTR before passing it to
4780 gdb_print_address.
4781 * i386-tdep.c (i386_skip_prologue): Skip over instructions that
4782 set up the global offset table pointer in pic compiled code.
4783 * config/mips/tm-mips.h (FIX_CALL_DUMMY): For big endian targets,
4784 error() on TYPE_CODE_FLT arguments whose size is greater than 8,
4785 swap all other TYPE_CODE_FLT arguments as mips_push_arguments
4786 ensures that floats are promoted to doubles before they are pushed
4787 on the stack.
4788
9f35e15a
SG
4789Fri Feb 18 23:12:59 1994 Stu Grossman (grossman at cygnus.com)
4790
4791 * sparclite/Makefile.in, sparclite/salib.c, sparclite/sparclite.h:
4792 Fixup cache_on and flush_i_cache so that they work for both the
4793 930 and 932 processors. Rewrite most low level funcs (uart
4794 access & cache stuff) to use new ASI access macros in sparclite.h.
4795 Also make it easy to access second serial port.
4796
56173dc5
ILT
4797Fri Feb 18 22:17:33 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
4798
4799 * hp300ux-nat.c: Don't incloude <sys/dir.h>, <sys/ioctl.h>, or
4800 <sys/stat.h>; not needed.
4801
c84bab2d
JK
4802Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4803
4804 * stack.c (print_frame_info): In "pathological" case, don't
4805 distrust the line number information.
4806
748d77d7
KH
4807Fri Feb 18 16:51:14 1994 Kung Hsu (kung@mexican.cygnus.com)
4808
4809 * mips-tdep.c (mips_print_register): handle 64 bits register.
4810 * valprint.c (print_longest): fix a bug in printing 64 bits value.
4811
889f1f03
JK
4812Fri Feb 18 08:26:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4813
1eb89b9e
JK
4814 * Version 4.12.2.
4815
ef1a0540
JK
4816 * Makefile.in (install): Do the sed for program_transform_name
4817 ourselves instead of worrying about INSTALL_XFORM. This enables
4818 users to override INSTALL_PROGRAM in the standard way.
4819
4820 * Makefile.in (c-exp.tab.o, ch-exp.tab.o, m2-exp.tab.o): Don't
4821 depend on Makefile.in.
4822
fb0f4231
JK
4823 * defs.h, valprint.c: Make longest_to_int a function not a macro.
4824 Only test against INT_MIN if a LONGEST is bigger than an int.
4825
889f1f03
JK
4826 * README: Change GhostScript to Ghostscript.
4827
662f3b3f
JK
4828Fri Feb 18 07:30:55 1994 Jim Kingdon (kingdon@cygnus.com)
4829
d5cb2f7d
JK
4830 * config/rs6000/{tm-rs6000lynx.h,nm-rs6000lynx.h,xm-rs6000lynx.h}:
4831 Rename to tm-rs6000ly.h, nm-rs6000ly.h, xm-rs6000ly.h for 14
4832 character file names.
4833 * Makefile.in (ALLPARAM): Add these files.
4834
662f3b3f
JK
4835 * config/mips/littlemips64.mt: Rename to mipsel64.mt for 14
4836 character file names.
d5cb2f7d 4837 * Makefile.in: Add Kung's new mips64 files.
662f3b3f 4838
70126bf9
KH
4839Thu Feb 17 17:25:47 1994 Kung Hsu (kung@mexican.cygnus.com)
4840
4841 * configure.in: add mips64-*-elf, mips64-*-ecoff, mips64el-*-elf,
4842 mips64el-*-ecoff and mips64-big-*.
4843 * defs.h: get rid of FORCE_LONG_LONG.
4844 * mips-tdep.c (mips_find_saved_regs): add sd and sdc1 instruction
4845 parsing. Change register size to be MIPS_REGSIZE.
4846
c4a081e1
DM
4847Thu Feb 17 09:30:22 1994 David J. Mackenzie (djm@thepub.cygnus.com)
4848
4849 * corelow.c, exec.c, irix5-nat.c, mipsread.c, objfiles.c,
4850 osfsolib.c, rs6000-nat.c, solib.c, symfile.c, utils.c,
4851 xcoffexec.c: Use bfd_get_error and bfd_set_error and new error names.
4852
3b5442f9
SC
4853Fri Feb 11 21:47:24 1994 Steve Chamberlain (sac@sphagnum.cygnus.com)
4854
4855 * remote-hms.c (readchar, hms_open, hms_fetch_register): Made more robust.
4856 (remove_commands, add_commands): Add/remove hms-drain when target
4857 is connected.
4858
d87d7b10
SG
4859Fri Feb 11 16:11:38 1994 Stu Grossman (grossman at cygnus.com)
4860
4861 * configure.in: Add Lynx/rs6000 support.
4862 * lynx-nat.c: Clean up some Sparc stuff. Clean up ptrace error
4863 messages. Add rs6000 support. Don't try to modify unwritable
4864 registers.
4865 * rs6000-nat.c: Move lots of native dependent stuff (like core
4866 file support) from rs6000-tdep.c & xcoffexec.c to here.
4867 * rs6000-tdep.c: Move native dependent stuff to nat.c.
4868 * xcoffexec.c: Move native dependent stuff to nat.c.
4869 * config/rs6000/nm-rs6000.h: Move defs of SOLIB_* macros to here
4870 from tm file.
4871 * config/rs6000/tm-rs6000.h: Remove defs of SOLIB_* funcs, cuz they're
4872 really native.
4873 * config/rs6000/tm-rs6000lynx.h, config/rs6000/xm-rs6000lynx.h:
4874 New files to support Lynx/rs6000.
4875
ba47c66a
PS
4876Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4877
4878 * README: Remove note about gcc warnings on alpha, these should be
4879 gone now.
4880 * c-exp.y, ch-exp.y, core.c, corelow.c, eval.c, fork-child.c,
4881 m2-exp.y, minsyms.c, nlmread.c, parse.c, putenv.c, regex.c
4882 remote-utils.c, stabsread.c: Include <string.h>.
4883 * regex.c: Include "defs.h", change re_comp argument to const char *.
4884 * infptrace.c (fetch_register, store_inferior_registers): Change
4885 regaddr to type CORE_ADDR.
4886 * config/alpha/alpha-nw.mt, config/alpha/alpha-osf1.mt (MT_CFLAGS):
4887 Remove, no longer necessary now that we use bfd_vma for a CORE_ADDR.
4888
4889Mon Feb 7 09:21:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4890
4891 * symtab.h: Always define BYTE_BITFIELD to nothing.
4892
ea5dad7f
JK
4893Mon Feb 7 08:44:17 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
4894
4895 * config/m68k/{m68k-em.mt,tm-m68k-em.h}: Remove; no longer used.
4896 * configure.in: Remove comment about m68k-em.mt.
4897 * Makefile.in: Remove references.
4898
6ddba992
JK
4899Mon Feb 7 08:22:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4900
4901 * defs.h [BFD64]: Use BFD_HOST_64_BIT, not nonexistent
4902 BFD_HOST_64_TYPE.
4903
2848f793
JL
4904Sun Feb 6 15:56:09 1994 Jeff Law (law@wild.cs.utah.edu)
4905
4906 * hpread.c (hpux_symfile_init): Use obj_som_* rather than obj_* to
4907 access BFD private data. Search for the "$TEXT$" space rather
4908 than ".text".
4909 (hppa_sym_fns): Add bfd target flavour to initializer.
4910
01cd70b9
JK
4911Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4912
1dd29bef
JK
4913 * target.c (target_preopen): If target_kill doesn't remove the
4914 target from the stack, use pop_target to do it.
4915
704aea43
JK
4916 * coffread.c (process_coff_symbol, case C_TPDEF): Don't set name
4917 of TYPE_CODE_PTR or TYPE_CODE_FUNC types. This parallels similar
4918 changes to stabsread.c from summer 1993.
4919
4a00e1de
JK
4920 * remote-udi.c (udi_files_info): If prog_name is NULL, just skip
4921 printing the program, rather than passing NULL to printf.
4922 (udi_detach): Set udi_session_id to -1 so that udi_close doesn't
4923 try to call UDIDisconnect again. Print better message.
4924 (udi_kill): Just call UDIDisconnect ourselves, rather than doing
4925 it via udi_close.
4a00e1de
JK
4926 (udi_create_inferior): If udi_session_id is negative, open a new
4927 TIP rather than giving an error.
4928
01cd70b9
JK
4929 * config/mips/mipsm3.mh, config/i386/i386m3.mh,
4930 config/ns32k/ns32km3.mh: Define NAT_FILE.
4931 * config/nm-m3.h: Change guard from _OS_MACH3_H_ and _OS_MACH3_H
4932 (it was inconsistent and namespace-wrong) to NM_M3_H.
4933 * m3-nat.c (mach_really_wait): Change parameter name to ourstatus.
4934 (m3_open): New function.
4935 (m3_ops): Use it.
4936 * TODO: Update Mach section.
4937
4938 * Makefile.in: Remove "rapp" stuff; it is superseded by gdbserver.
4939
d41b3eed
PB
4940Sun Feb 6 13:26:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
4941
4942 * printcmd.c (printf_command): Add missing single-letter
4943 backslash-escape sequences, and improve error message.
4944
7343d716
JK
4945Sun Feb 6 06:55:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4946
842cf831
JK
4947 * corelow.c (solib_add_stub, core_open): Pass address of from_tty
4948 rather than trying to shove an int into a pointer and back out
4949 again. This avoids compiler warnings.
4950
7343d716
JK
4951 * defs.h (alloca): Declare as void *, not char *, on hpux.
4952 Don't prototype it, just declare the return type.
4953
57a9fee3
PS
4954Sun Feb 6 03:25:41 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4955
4956 * config/i386/tm-sun386.h, config/i386/tm-symmetry.h
4957 (REGISTER_CONVERT_TO_RAW): Add missing backslash.
4958
a1bd6534
JK
4959Sat Feb 5 08:03:41 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
4960
021b10e3
JK
4961 * remote-mips.c (mips_fetch_registers): If regno is FP_REGNUM or
4962 ZERO_REGNUM, just read it as zero without talking to the board.
4963
8b0a85ba
JK
4964 * config/i386/tm-i386aix.h (REGISTER_CONVERT_TO_RAW): Add missing
4965 backslash.
4966 * i386-tdep.c (i386_extract_return_value): Pass TYPE_LENGTH (type)
4967 to store_floating, not nonexistent variable len.
4968
aa56c716
JK
4969 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
4970 New functions.
4971 (mips_store_word): Change calling convention to return errors, and
4972 to provide old contents if the caller wants it.
4973 (mips_xfer_memory): Deal with errors from mips_store_word.
4974 * config/mips/tm-idt.h, config/mips/tm-idtl.h: Remove BREAKPOINT
4975 define now that remote-mips.c doesn't use BREAKPOINT.
4976
4977 * remote-mips.c (mips_create_inferior): Call warning if arguments
4978 specified, and then execute "set args" command. Call error, not
4979 mips_error, if executable file not specified.
4980
29fc92e8
JK
4981 * remote-e7000.c: Replace "snoop" command (e7000_noecho) with
4982 remote_debug.
4983
a1bd6534
JK
4984 * config/rs6000/tm-rs6000.h (STORE_STRUCT_RETURN): Don't cast
4985 to unsigned int.
4986
65e98f5b
PS
4987Sat Feb 5 05:27:05 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4988
4989 * value.h (print_longest): Rename "value" to "val" in prototype
4990 declaration because some compilers don't like arguments whose
4991 names are the same as types.
4992 * remote.c (remote_xfer_memory): Cast "myaddr" to unsigned char *
4993 before passing it to remote_*_bytes.
4994
edd01519
SC
4995Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
4996
4997 * h8500-tdep.c (saved_pc_after_call): The size of the
4998 pc is memory model dependent. (segmented_command,
4999 unsegmented_command, _initialize_h8500_tdep): New commands to
5000 change memory model.
29fc92e8 5001 * remote-e7000.c (_initialize_remote_e7000): Change name of snoop
edd01519 5002 command.
678ee700
SC
5003 * remote-hms.c (hms_load): Remove breakpoints when loaded.
5004 (hms_wait): Use new status structure
5005 (hms_open): Push the target here. (hms_before_main_loop): Not
5006 here. (supply_val, hms_fetch_register, hms_store_register): Cope
5007 with H8/500 names too. (hms_fetch_register): Take out REGISTER_TYPE.
5008 * sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
5009 all registers in a compact way.
edd01519 5010
9c01440d
JK
5011Fri Feb 4 07:41:13 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5012
5013 * config/rs6000/tm-rs6000.h: Declare rs6000_struct_return_address
5014 as CORE_ADDR to match definition in rs6000-tdep.c.
5015
4386eff2
PS
5016Fri Feb 4 01:14:20 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5017
5018 * dwarfread.c (process_dies): Skip nested TAG_compile_unit DIEs.
5019 * dwarfread.c (add_partial_symbol): Do not enter opaque aggregate
5020 definitions into the psymtab.
5021
d351c7a6
JK
5022Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5023
5024 * m68k-stub.c: Treat mc68332 like mc68020 most places. Provide
5025 a special exceptionSize for the 68332.
5026
5027 * remote-udi.c (udi_attach): If no arguments, print error.
5028
4901e77d
FF
5029Thu Feb 3 17:34:05 1994 Fred Fish (fnf@cygnus.com)
5030
5031 * Makefile.in (VERSION): Bump to 4.12.1
5032 * NEWS, README: Update to match 4.12 release.
5033
159ada02
JK
5034Thu Feb 3 12:38:58 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5035
4901e77d
FF
5036 * command.c (empty_sfunc): New function.
5037 (add_set_cmd): Use it instead of not_just_help_class_command.
5038 (not_just_help_class_command): Change calling convention back to
5039 what it was before yesterday's change.
5040
159ada02
JK
5041 * stabsread.c (read_sun_builtin_type): Skip the semicolon at the end
5042 of the type if present.
5043
5b3591ab
JK
5044Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5045
eade0c6c
JK
5046 * printcmd.c (decode_format): Don't blithely set the size for
5047 an address to 'w'. Make it 'g' or 'h', depending on TARGET_PTR_BIT.
5048
5049 * defs.h: Just typedef CORE_ADDR to bfd_vma. Include bfd.h.
5050 If BFD64, make a LONGEST a BFD_HOST_64_BIT.
5051 * defs.h (longest_to_int): Don't depend on CC_HAS_LONG_LONG; instead
5052 always just check against INT_MIN and INT_MAX (this also fixes things
5053 if sizeof (long) > sizeof (int), e.g. Alpha).
5054 * config/pa/tm-hppa.h, config/i386/sun386.h, config/rs6000/tm-rs6000.h:
5055 Don't define LONGEST or BUILTIN_TYPE_LONGEST.
5056 * gdbtypes.h: Remove BUILTIN_TYPE_LONGEST and
5057 BUILTIN_TYPE_UNSIGNED_LONGEST.
ce855594
JK
5058 * language.h, c-lang.c, ch-lang.c, m2-lang.c, language.c: Remove
5059 longest_int and longest_unsigned_int.
eade0c6c
JK
5060 * value.h (struct value): Just align to LONGEST, rather than worrying
5061 about CC_HAS_LONG_LONG.
b1de1647
JK
5062 * valarith.c (value_binop): Figure out type ourself based on
5063 sizeof (LONGEST) rather than relying on BUILTIN_TYPE_LONGEST. The
5064 point is that we don't depend on CC_HAS_LONG_LONG anymore.
eade0c6c
JK
5065 * valprint.c (val_print_type_code_int): Just call
5066 extract_unsigned_integer directly, rather than going through
5067 unpack_long.
5068 * printcmd.c (decode_format): Remove code which would sometimes
5069 change 'g' size to 'w' for integers. print_scalar_formatted handles
5070 printing huge integers well enough, thank you.
5071
4901e77d 5072 * command.c (add_set_cmd, not_just_help_class_command): Change
719d9abb
JK
5073 to make this the sfunc, not cfunc, since that is how we call it.
5074 * command.h: Comment difference between sfunc and cfunc.
5075 * demangle.c (set_demangling_command): Add third arg since that
5076 is how it is called.
5077 (_initialize_demangler): Use sfunc, not cfunc, for
5078 set_demangling_command, since that is how it is called.
5079 Remove show_demangling_command; it has no effect.
5080
5b3591ab
JK
5081 * command.c (shell_escape): Report errors correctly (with error
5082 message from strerror).
5083
37f24dc9
ILT
5084Wed Feb 2 14:35:41 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5085
5086 * xcoffread.c (read_xcoff_symtab): Change CSECT_LEN to use
5087 x_scnlen.l rather than x_scnlen to match corresponding change in
5088 coff/internal.h.
5089
61932a8e
JK
5090Wed Feb 2 11:16:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5091
5092 * gdbtypes.h, ch-typeprint.c, ch-valprint.c:
5093 Change comments regarding TYPE_CODE_BOOL.
5094 * language.c (boolean_type): Always return 1 for TYPE_CODE_BOOL,
5095 regardless of the language.
5096 (value_true): Just call value_logical_not regardless of language.
5097 * coffread.c (coff_read_enum_type), stabsread.c (read_enum_type):
5098 Remove #if 0'd code which makes some enums TYPE_CODE_BOOL.
5099 * language.h: Improve comment for la_builtin_type_vector.
5100 * m2-lang.c (_initialize_m2_language): Don't add any fields to
5101 builtin_type_m2_bool.
5102
7bec77b4
JK
5103Tue Feb 1 17:13:32 1994 Kevin Buettner (kev@cujo.geg.mot.com)
5104
5105 * config/m88k/{tm-delta88.h,tm-delta88v4.h}, m88k-tdep.c:
5106 Define IN_SIGTRAMP and backtrace correctly through signal handlers.
5107
8afd05c0
JK
5108Tue Feb 1 22:13:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5109
5110 * procfs.c (wait_fd): Handle EINTR error return from PIOCWSTOP ioctl
5111 by restarting the ioctl.
5112
10b9bb56
JK
5113Tue Feb 1 16:16:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5114
5115 * target.h (target_wait): Add comment about calling
5116 return_to_top_level.
5117
bf8d9d28
ILT
5118Tue Feb 1 12:21:00 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5119
5120 * coffread.c (read_one_sym): bfd_coff_swap_aux_in now takes
5121 additional arguments.
5122 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno): Likewise.
5123
efe3ff3e
SG
5124Mon Jan 31 16:10:41 1994 Stu Grossman (grossman at cygnus.com)
5125
5126 * sparc-stub.c: Remove unnecessary #include of memory.h.
5127
37dea45f
JK
5128Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5129
14d79562
JK
5130 * mips-tdep.c: Remove code which sets saved_regs from
5131 init_extra_frame_info and put it in new function mips_find_saved_regs.
5132 (READ_FRAME_REG): Remove macro and replace uses with the expansion.
5133 * mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
5134 check if it is NULL and call mips_find_saved_regs if so.
5135
47d52968
JK
5136 * remote-mips.c: Use unfiltered, not filtered, output most places.
5137
37dea45f
JK
5138 * blockframe.c (get_prev_frame_info): Detect and stop an infinite
5139 backtrace. Revise comments.
5140
0434c1a0
PS
5141Mon Jan 31 09:40:33 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5142
5143 * mdebugread.c (parse_procedure): Remove _sigtramp kludges for
5144 alpha and irix. The _sigtramp case has to be handled properly
5145 in the tdep files if we have no ecoff debugging info.
5146 * alpha-tdep.c (alpha_frame_saved_pc, alpha_frame_chain),
5147 mips-tdep.c (mips_frame_saved_pc): Handle signal handler frames
5148 without PC_REGNUM kludge.
5149 * mdebugread.c (fixup_sigtramp), mips-tdep.c (read_next_frame_reg):
5150 Clean up handling of mips sigtramp frames, improve comments.
5151
d64956fa
JL
5152Sat Jan 29 23:25:57 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5153
5154 * paread.c (read_unwind_info): Fix typo.
5155
5156 * paread.c (pa_symtab_read): Update the "check_strange_names"
5157 filter to match GCC's current output. Filter out section symbols
5158 (which the HP linker sometimes puts in the wrong place).
5159
9db58d3a
JK
5160Sat Jan 29 07:44:59 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5161
3a479851
JK
5162 * serial.h (SERIAL_SET_TTY_STATE): Comment return value.
5163
a0b352c0
JK
5164 * Makefile.in (TAGS): Just echo one line, rather than the whole thing.
5165
5166 * Makefile.in: Remove all references to sparcly-nat.c.
5167
5168 * Makefile.in (HFILES_NO_SRCDIR): Include dcache.h remote-utils.h
5169 remote-sim.h directly, rather than via $(remote_utils_h). This avoids
5170 duplicating serial.h and target.h.
5171
7a78db15
JK
5172 * Makefile.in: Don't set M_INSTALL and M_UNINSTALL. These variables
5173 are not used anywhere (a 5 Oct 1993 change removed the uses).
5174
895efe6b
JK
5175 * config/m68k/monitor.mt (TDEPFILE): Add remote-es.o.
5176 * config/m68k/es1800.mt: Add comment.
3a479851 5177 * remote-es.c: Extensive changes to update to current conventions.
895efe6b 5178
9db58d3a
JK
5179 * ser-unix.c (wait_for, hardwire_readchar) [HAVE_TERMIO, HAVE_TERMIOS]:
5180 If the timeout is too big to fit in c_cc[VTIME], then do multiple reads
5181 to achieve the desired timeout.
5182 * serial.h (serial_t): Add field timeout_remaining.
5183
f28c6e38
JK
5184Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5185
5186 * c-exp.y (yylex): Reenable nested type code.
5187
b09f44d2
JK
5188Fri Jan 28 15:40:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5189
7f2ffa58
JK
5190 * a29k-tdep.c (examine_tag): Add comment regarding argcount.
5191
796d1fd3
JK
5192 * remote-mips.c (mips_ops): Fix docstring.
5193
97cc0428
JK
5194 * remote-bug.c (bug_ops): Remove spurious newline from docstring.
5195
ddd0223e
JK
5196 * config/m68k/tm-monitor.h: Changes to bring this into accordance
5197 with the old tm-m68k-em.h:
5198 (GDBINIT_FILENAME, DEFAULT_PROMPT): Remove.
97cc0428 5199 (HAVE_68881): Don't undefine; HAVE_68881 is obsolete.
ddd0223e
JK
5200 (REGISTER_NAMES): Don't muck with it; what tm-m68k.h has is fine.
5201 Add FIXME regarding GET_LONGJMP_TARGET.
5202
b09f44d2 5203 * remote-udi.c (udi_close, udi_detach, udi_kill): Add comments.
97cc0428
JK
5204 * infptrace.c (kill_inferior): Add comments.
5205 * main.c (quit_command): Call target_close after we kill or
5206 detach.
5207 * remote-udi.c (udi_close): Don't error() if QUITTING.
b09f44d2 5208
0ffba029
RS
5209Fri Jan 28 11:55:52 1994 Rob Savoye (rob@darkstar.cygnus.com)
5210
5211 * configure.in: Make m68k-coff and aout add monitor support in
5212 addition to the standard serial support.
5213
bb7cb982
JK
5214Fri Jan 28 08:45:02 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5215
5216 * mdebugread.c (psymtab_to_symtab_1): Don't complain on stLabel with
5217 index indexNil.
5218
9fdb3f7a
JK
5219Fri Jan 28 10:40:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5220
5221 * config/pa/tm-hppa.h: Define macro SMASH_TEXT_ADDRESS.
5222 * elfread.c (record_minimal_symbol_and_info),
5223 dwarfread.c (process_dies), paread.c (pa_symtab_read): Use it.
5224
a28d16d3
JK
5225Thu Jan 27 15:12:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5226
6202263d
JK
5227 * i386-stub.c: Add ".text" right before "mem_fault:".
5228
9c41f6a6
JK
5229 * main.c (baud_rate): Add FIXME comment about printing -1 value.
5230
5231 * remote-utils.c (usage): Fix message to be accurate and conform
5232 more closely to normal conventions.
5233
5234 * remote-utils.c (gr_files_info): Have the exec_bfd test control
5235 whether to show information about exec_bfd, and not control whether
5236 to show information about device and speed.
5237
5238 * remote-utils.c (gr_open): If sr_get_device returns NULL, give
5239 usage message, don't dump core.
5240
5241 * remote-bug.c (bug_write_memory): Use alloca, not GCC extension
5242 for variable size array.
5243 (bug_fetch_register, bug_store_register): Rename "value" to
5244 "fpreg_buf" because some compilers don't like variables whose
5245 names are the same as types.
5246 (bug_store_register): Use a cast when converting char * to
5247 unsigned char *.
5248
d5c551c9
JK
5249 * symmisc.c (maintenance_print_symbols): Don't refer to the name
5250 of the command in error message (the text was referring to the old
5251 name of the command).
5252
5253 * symmisc.c (dump_symtab): Fix args to fprintf_filtered.
5254
0e4ad984
JK
5255 * c-typeprint.c (c_type_print_base): Have SHOW == 0 mean to print
5256 full details on structure elements without names. This partially
5257 reverts the changes of 1 Jul 1993 and 31 Aug 1993; I think this aspect
5258 of those changes was accidental.
5259
577da8cb
JK
5260 * stack.c (parse_frame_specification): If SETUP_ARBITRARY_FRAME is
5261 defined, make it an error to specify a single argument which is not
5262 a frame number.
5263
a28d16d3
JK
5264 * Makefile.in (version.c), main.c (print_gdb_version): Use
5265 host_alias and target_alias, not host_canonical and
5266 target_canonical, to print configuration.
5267
833e0d94
JK
5268Wed Jan 26 10:57:21 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5269
d92f3f08
JK
5270 * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
5271 of builtin_type_long. It is necessary to get a type which is
5272 TARGET_PTR_BIT bits in size; builtin_type_long might not be big enough.
5273
833e0d94
JK
5274 Fix many sins which will come up in 32 bit x 64 bit GDB, and
5275 various miscellaneous things discovered in the process:
5276 * printcmd.c, defs.h (print_address_numeric): New function.
5277 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print)
5278 breakpoint.c (describe_other_breakpoints, breakpoint_1, mention),
5279 cp-valprint.c (cplus_print_value), infcmd.c (jump_command),
5280 printcmd.c, stack.c, symfile.c, symmisc.c, valprint.c:
5281 Use it.
5282 * utils.c, defs.h (gdb_print_address): New function.
5283 * expprint (dump_expression), gdbtypes.h: Use it.
5284 * breakpoint.c (describe_other_breakpoints),
5285 symmisc.c (dump_symtab, print_symbol):
5286 Use filtered not unfiltered I/O.
5287 (remove_breakpoints): Remove BREAKPOINT_DEBUG code. Might as well
5288 just run gdb under a debugger for this (and it had problems with
5289 printing addresses, how to print b->shadow, etc.).
5290 * buildsym.c (make_blockvector), core.c (memory_error),
5291 exec.c (print_section_info), maint.c (print_section_table),
5292 mdebugread.c (parse_procedure), solib.c, source.c, symfile.c,
5293 symmisc.c, symtab.c, valops.c, valprint.c, xcoffexec.c:
5294 Add comments saying code is broken. Marked with "FIXME-32x64".
5295 * dbxread.c (process_one_symbol), partial-stab.h (default),
5296 remote-vx.c (vx_run_files_info):
5297 Don't cast int being passed to local_hex_string.
5298 * symmisc.c (print_symbol): Don't cast long being passed to %lx.
5299 * symtab.h (general_symbol_info): Add comment about SYMBOL_VALUE
5300 only being a long.
5301 * symmisc.c (print_symbol): Print "offset" in message for LOC_ARG
5302 and LOC_LOCAL.
5303 * printcmd.c (print_address): Remove #if 0 code with ADDR_BITS_REMOVE.
5304 * source.c: Include <sys/types.h> regardless of USG.
5305
67e9b3b3
PS
5306Tue Jan 25 12:58:26 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5307
5308 * valops.c (value_assign): Set `type' after coercing toval.
5309 * c-valprint.c (c_val_print), ch-valprint.c (chill_val_print):
5310 Use extract_unsigned_integer to get the address of a reference.
5311
36464897
JK
5312Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5313
91a0575c
JK
5314 * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
5315 AIX can use ? instead of \ for continuation. Deal with it.
5316
36464897
JK
5317 * paread.c (read_unwind_info): Just assign to objfile->obj_private,
5318 not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which
5319 the HP compiler in ANSI mode doesn't like.
5320
5321 * main.c: When defaulting HAVE_SIGSETMASK based on USG, just do it
3bc45b7a
JK
5322 based on USG, rather than defining HAVE_SIGSETMASK to an
5323 expression containing defined. Having a macro used in #if expand
5324 to an expression containing "defined" is undefined according to
5325 ANSI, and the HP compiler in ANSI mode doesn't do what we wanted
5326 it to.
36464897 5327
2ba6182b
JG
5328Mon Jan 24 20:51:29 1994 John Gilmore (gnu@cygnus.com)
5329
5330 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
5331 Clean up the changes of 11 Jan, as recommended by Peter Schauer.
5332
96b6b765
PB
5333Fri Jan 21 19:10:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5334
5335 * ch-exp.y (match_string_literal): Allow a zero-length string.
5336 * ch-lang.c (chill_printstr): Don't print zero-length string funny.
5337
dfd4c728
JK
5338Sat Jan 22 17:08:48 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5339
5340 * i386aix-nat.c (i386_float_info): Reverse order of registers before
5341 passing them to print_387_status.
5342 (print_387_status): Don't subtract top from 7 before using it.
5343 * i387-tdep.c: Remove comment about AIX wanting "top" subtracted
5344 from 7; the above explains it.
5345
5efd597b
PS
5346Sat Jan 22 20:25:11 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5347
5348 * mips-tdep.c (init_extra_frame_info): Use frame relative stack
67e9b3b3 5349 pointer value when fixing up the frame at the start of a function.
5efd597b 5350
e90445c9
SG
5351Sat Jan 22 12:29:13 1994 Stu Grossman (grossman at cygnus.com)
5352
5353 * lynx-nat.c (fetch_core_registers): Load the I & L regs for the
5354 Sparc from the stack.
5355
08f74b92
JK
5356Sat Jan 22 08:30:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5357
864df7e6
JK
5358 * remote-mips.c (mips_initialize): Clear mips_initializing via
5359 cleanup chain, not directly.
5360
5361 * ser-unix.c (wait_for) [HAVE_TERMIO, HAVE_TERMIOS]: Make a timeout
5362 of -1 mean forever, like in the HAVE_SGTTY case. Warn if we are
5363 munging the timeout due to the limited range of c_cc[VTIME].
5364
08f74b92
JK
5365 * fork-child.c, inferior.h (fork_inferior): New argument shell_file.
5366 * procfs.c (procfs_create_inferior), inftarg.c (child_create_inferior),
5367 m3-nat.c (m3_create_inferior): Pass it.
5368 * procfs.c: Remove ptrace function. It was declared in a way which
5369 conflicted with the prototype in unistd.h on Solaris.
5370
cdcf48be
PS
5371Sat Jan 22 01:37:40 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5372
5373 * sparc-tdep.c (frame_saved_pc): Get the pc from the saved pc
5374 in the sigcontext if it is a signal trampoline frame.
5375 * config/sparc/tm-sun4sol2.h (IN_SIGTRAMP, SIGCONTEXT_PC_OFFSET):
5376 Define for Solaris2.
5377
8bf94f44
SG
5378Sat Jan 22 00:34:47 1994 Stu Grossman (grossman at cygnus.com)
5379
5380 * sparc-tdep.c, lynx-nat.c, config/sparc/tm-sparc.h,
5381 config/sparc/tm-sparclynx.h: Move defs of FRAME_SAVED_I0/L0 to
5382 tm-sparc.h so they can be overridden if necessary.
5383
d575ddc0
SG
5384Fri Jan 21 17:49:28 1994 Stu Grossman (grossman at cygnus.com)
5385
5386 * lynx-nat.c: Add Sparc support.
5387 * sparcly-nat.c: Remove. It's useless.
5388 * config/sparc/nm-sparclynx.h: Rewrite.
5389 * config/sparc/sparclynx.mh (NATDEPFILES): Replace sparcly-nat.o
5390 with lynx-nat.o
5391 * config/sparc/tm-sparclynx.h: Rewrite.
5392
00240279
ILT
5393Fri Jan 21 19:08:48 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5394
5395 * rs6000-pinsn.c: Use the new disassembler in the opcodes
5396 directory. Old code was discarded, since the new opcode table has
5397 a different format.
5398
a2608ea1
FF
5399Fri Jan 21 14:28:30 1994 Fred Fish (fnf@cygnus.com)
5400
5401 * Makefile.in (realclean): Remove info files per make-stds.texi.
5402
6545c6a0
JK
5403Fri Jan 21 12:47:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5404
5405 * dbxread.c (end_psymtab): Only patch psymtab textlow and texthigh
5406 if N_SO_ADDRESS_MAYBE_MISSING is defined.
5407 * config/sparc/tm-sun4sol2.h: Define it.
5408
cd5ee294
JK
5409Thu Jan 20 15:04:24 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5410
5411 * printcmd.c (print_address_symbolic): Unconditionally use msymbol
5412 if we did not find a symbol.
5413
918fea3e
JL
5414Fri Jan 21 08:20:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5415
5416 * infptrace.c (child_xfer_memory): Only use if CHILD_XFER_MEMORY
5417 is not defined.
5418
5419 * hppab-nat.c (call_ptrace): Delete redundant function.
5420 (kill_inferior, attach, detach, child_resume): Likewise.
5421 (child_xfer_memory): Likewise.
5422
5423 * hppah-nat.c (call_ptrace): Delete redundant function.
5424 (kill_inferior, attach, detach, child_resume): Likewise.
5425
5426 * config/pa/hppabsd.mh (NATDEPFILES): Add infptrace.o.
5427
5428 * config/pa/hppahpux.mh (NATDEPFILES): Add infptrace.o.
5429
5430 * config/pa/nm-hppab.h (FETCH_INFERIOR_REGISTERS): Define.
5431
5432 * config/pa/nm-hppah.h (FETCH_INFERIOR_REGISTERS): define.
5433 (CHILD_XFER_MEMORY): Define.
5434 (PT_*): Define so that generic infptrace.c code can be used.
5435
27ad511f
JK
5436Fri Jan 21 09:23:33 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5437
1b880e74
JK
5438 * xcoffread.c (xcoff_symfile_read): Make second parameter a
5439 struct section_offsets *, not a (nonexistent) struct section_offset *.
5440
6657a0c7
JK
5441 * xcoffread.c (read_xcoff_symtab): Make main_aux just a union
5442 internal_xcoff_symtab, not an array of one of them. Change lots of
5443 "main_aux" to "&main_aux" and so on.
5444
27ad511f
JK
5445 * coffread.c, xcoffread.c: Include <coff/internal.h>
5446 before "symfile.h".
5447
d4a0983a
JK
5448Thu Jan 20 17:30:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5449
dbb0fae2
JK
5450 * coffread.c (coff_getfilename): Make it not static.
5451
d4a0983a
JK
5452 * xcoffread.c (read_xcoff_symtab): complain() not abort().
5453
5454 * xcoffread.c (struct coff_symbol): Rename c_nsyms to c_naux (removes
5455 a completely gratuitous difference between xcoffread.c and coffread.c).
5456
d7e7e851
JK
5457Wed Jan 19 15:09:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5458
5459 * infrun.c (wait_for_inferior): Don't set frame for
5460 step_resume_breakpoint for IN_SIGTRAMP cases.
5461
5462 * infrun.c (wait_for_inferior), breakpoint.h (struct bpstat_what),
5463 breakpoint.c (bpstat_what): Move step_resume from its own field of
5464 the struct bpstat_what into the main_action. Make it override
5465 other breakpoints. This is a conservative change in the sense
5466 that before the step resume breakpoint was a breakpoint.c
5467 breakpoint, hitting the step resume breakpoint overrode even
5468 calling bpstat_stop_status.
5469
f1de67d3
PS
5470Wed Jan 19 12:40:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5471
5472 * infrun.c (normal_stop): Set stop_pc after popping the dummy frame
5473 in case execution was stopped in the called function.
5474 * stack.c (print_frame_info, frame_info): If backtracing through
5475 a call dummy, handle the starting source line number on a line
5476 boundary like backtracing through sigtramp.
5477 * sparc-tdep.c (sparc_frame_find_saved_regs): Get frame address
5478 for call dummy frame right. Remove old test for dummy frame,
5479 it has been unused at least since gdb-3.5.
5480 * sparc-tdep.c (sparc_push_dummy_frame): Set return address register
5481 of the dummy frame.
5482
c6e0f918
JK
5483Tue Jan 18 16:16:35 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5484
5485 * infcmd.c (signal_command): Accept 0 as legitimate signal number.
5486
db4340a6
JK
5487Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5488
5489 * infrun.c (signals_info), target.c (target_signal_from_name):
5490 Use ugly casts to avoid enumvar < enumvar or enumvar++.
5491
4d4f2d50
JK
5492Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5493
d881dd86
JK
5494 * ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
5495 * inflow.c (terminal_ours_1): When discussing how to deal with the
5496 tty state, make note of query() as well as readline.
5497
4d4f2d50
JK
5498 * infrun.c (_initialize_infrun): Add TARGET_SIGNAL_POLL to list of
5499 signals for which stop and print are cleared by default.
5500
5c38fcee
JL
5501Mon Jan 17 20:00:51 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5502
c7f3b703
JL
5503 * config/pa/tm-hppa.h (unwind_table_entry): Use one of the
5504 reserved fields to hold a stub unwind entry type. Fix typo.
5505 (stub_unwind_entry): New structure for raw stub unwind entries.
5506 (stub_unwind_types): The types of stubs we may encounter.
5507 (UNWIND_ENTRY_SIZE, STUB_UNWIND_ENTRY_SIZE): New defines.
5508 * hppa-tdep.c (rp_saved): Use additional information provided
5509 by linker stub unwind descriptors.
5510 (frameless_function_invocation): Likewise.
5511 (frame_chain_valid): Likewise.
5512 * paread.c (compare_unwind_entries): New function for sorting
5513 unwind table entries.
5514 (read_unwind_info): Rewrite to remove dependency on host endianness.
5515 Read in data from the $UNWIND_END$ subspace which contains linker
5516 stub unwind descriptors. Merge that data into the basic unwind
5517 table.
5518
5c38fcee
JL
5519 * hppab-nat.c (_initialize_kernel_u_addr): Delete unwanted functions.
5520
af8b7906
JK
5521Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5522
5523 * xcoffread.c (read_xcoff_symtab, case C_FILE): Accept the name
5524 from either the symbol name or the auxent.
5525 * coffread.c, symfile.h (coff_getfilename): Renamed from getfilename,
5526 no longer static.
5527
0e7da49c
FF
5528Mon Jan 17 13:35:01 1994 Fred Fish (fnf@cygnus.com)
5529
5530 * Makefile.in (ALLPARAM): Change irix5.h to nm-irix5.h.
5531
b90811f9
PS
5532Mon Jan 17 12:35:42 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5533
5534 * README: Update notes for alpha port.
5535
24a11a79
JK
5536Mon Jan 17 11:15:57 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5537
5538 * i960-tdep.c (i960_fault_to_signal): Return TARGET_SIGNAL_ILL
5539 for operation fault, constraint fault, and type fault.
5540
b76dcd4b
JK
5541Sun Jan 16 12:46:01 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5542
623d7380
JK
5543 * Makefile.in (init.c): Add comment explaining formatting conventions.
5544
a39f7739
JK
5545 * c-exp.y (parse_number): Assign to temporary between the right
5546 shifts, to work around a bug in the SCO compiler.
5547
07919221
JK
5548 * Makefile.in (ALLCONFIG, ALLPARAM, ALLDEPFILES, HFILES_NO_SRCDIR):
5549 Add various files which were added to GDB recently.
5550
91cc45da
JK
5551 * xcoffread.c (process_xcoff_symbol): Only change 'V' to 'S' if not
5552 within_function.
5553
b76dcd4b
JK
5554 * Makefile.in: Add mostlyclean target.
5555
d7a5ff3c
JK
5556Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5557
5558 * Version 4.11.4.
5559
8b564df8
PB
5560Sat Jan 15 18:27:34 1994 Per Bothner (bothner@kalessin.cygnus.com)
5561
5562 * main.c (show_commands): Make return type of extern
5563 history_get be HIST_ENTRY, rather than struct _hist_entry.
5564 (The latter loses with the upcoming merged readline.)
5565
dac317dc
JK
5566Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5567
ab5f7971
JK
5568 * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
5569 const char *, not char *.
5570
fb155ce3
JK
5571 * symtab.h (struct symbol): Make section short, not unsigned short.
5572
87041845
JK
5573 * symtab.c (lookup_symbol): Add comment about QUIT here.
5574
f29351d9
JK
5575 * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered.
5576
a9b32d61
JK
5577 * c-exp.y (parse_number): Check for overflow regardless of range
5578 checking. Fix overflow check to use unsigned LONGEST, not
5579 unsigned int.
5580
5581 * c-exp.y (parse_number): Make it so that integer constants are
5582 builtin_type_long_long if builtin_type_long isn't big enough or if
5583 an "LL" suffix is used. Properly handle "UL" or "LU" suffixes.
5584
dac317dc
JK
5585 * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
5586 Print our "()" first, then recurse for the target type.
5587
4c0b3e57
JK
5588Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5589
831a39d7
JK
5590 * remote-udi.c (udi_create_inferior): Quote empty execfile argument.
5591
4c0b3e57
JK
5592 * gdbserver/low-lynx.c: Include <sys/wait.h> not "/usr/include/wait.h".
5593
44a09a68
JK
5594Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5595
5596 * utils.c (request_quit): Re-establish signal handler regardless
5597 of USG.
5598
5599 * config/mips/xm-irix4.h: Define HAVE_TERMIOS.
5600
98506620
JK
5601Fri Jan 14 21:55:39 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5602
5603 * i960-tdep.c: Include target.h.
5604
658821b9
SS
5605Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
5606
5607 * lynx-nat.c (sys/wait.h): Don't use absolute pathname.
5608
5609Fri Jan 14 11:06:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5610
5611 * lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
5612 changes (status -> ourstatus; declare status, etc.).
5613 * config/nm-lynx.h: Fix child_wait prototype and include target.h.
5614
4e8bc56f
JK
5615Fri Jan 14 14:17:06 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5616
5617 * Makefile.in (ALLPARAM): Add config/nm-lynx.h.
5618
aeb145f8
ILT
5619Fri Jan 14 11:49:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5620
5621 * remote-mips.c (mips_request, mips_wait): Correct prototypes.
5622
d253eb7a
JK
5623Fri Jan 14 11:37:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5624
5625 * config/i386/xm-linux.h: Define HAVE_TERMIOS.
5626
52b3045e
PS
5627Fri Jan 14 01:04:36 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5628
5629 * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment.
5630
ae682b80
JK
5631Thu Jan 13 10:32:38 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5632
d0acb092
JK
5633 * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
5634 is defined. Otherwise just report TARGET_SIGNAL_UNKNOWN.
5635
5636 * mips-tdep.c (mips_push_arguments): Byteswap struct_addr before
5637 writing it.
5638
63dcc380
JK
5639 Add search to target vector (#if 0'd until after 4.12):
5640 * target.h (to_search, target_search): Add.
5641 * gdbcore.h, core.c (generic_search): Add.
5642 * remote.c (remote_search): Add.
5643 * a29k-tdep.c (init_frame_info): Use target_search to find traceback
5644 tag.
5645
d6596eee
JK
5646 * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
5647 is on, call find_pc_function rather than relying just on the minimal
5648 symbols (probably only matters for symbol readers which don't put
5649 statics in the minimal symbols, but changing this strikes me as
5650 not conservative enough).
5651 Initialize name_location in all cases.
5652 If no symbol and no msymbol, don't print anything symbolic.
5653
ae682b80
JK
5654 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0.
5655
314e6bf3
JG
5656Wed Jan 12 20:53:16 1994 John Gilmore (gnu@cygnus.com)
5657
5658 * printcmd.c (print_address_symbolic): Make it search the
5659 symtabs for variables as well as functions. Add `set print
5660 fast-symbolic-addr' and default it to fast (the old way).
5661 Print line numbers for data items as well as functions.
5662
5663 * symtab.c (find_addr_symbol): Return the symtab and the symbol
5664 address, if a symbol is found (take two more args pointing to
5665 where to store these results).
5666
5667 * symtab.h (find_addr_symbol): Add prototype.
5668
470dfa0c
JK
5669Wed Jan 12 19:32:11 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5670
5671 * objfiles.h: Fix comments to reflect the fact that the phrase
5672 "top of stack" always refers to where the pushing and popping takes
5673 place, regardless of whether it is at the highest or lowest address.
5674
a8c49897
PS
5675Wed Jan 12 13:23:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5676
5677 * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
5678 compiler generated tag names.
5679 * mdebugread.c (parse_type): Handle cross references to qualified
5680 aggregate types.
5681 * valops.c (value_struct_elt): Improve error message if the
5682 address of a method is requested from an object instance.
5683 * valops.c (search_struct_method): Make name_matched non-static
5684 to get it initialized correctly.
5685 * config/i386/nm-i386sco.h (CANNOT_STORE_REGISTER): Define to
5686 exclude segment register which are not writable on newer SCO versions.
5687
4ad942bf
JK
5688Wed Jan 12 14:44:45 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5689
5690 * go32-xdep.c: Remove unused function uerror.
5691 (sigsetmask): Declare return type. Declare argument (to match the
5692 way it is called). Explicitly return 0.
5693
21578747
JG
5694Wed Jan 12 01:44:25 1994 John Gilmore (gnu@cygnus.com)
5695
5696 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
5697 partial_symbol): Shrink the storage sizes of symbols, by making
5698 enums into 1-byte bitfields when compiled __GNUC__, moving all the
5699 enums and small ints to the end of each struct to improve
5700 alignment, and switching the section number from int to unsigned
5701 short.
5702
e0ea0fbd
JG
5703Wed Jan 12 00:16:26 1994 John Gilmore (gnu@cygnus.com)
5704
5705 * symtab.c (find_addr_symbol): New routine that will find the nearest
5706 symbol associated with an address. It does so by exhaustive
5707 search of the symtabs, so it's slow but complete.
5708
011d4ed9
JG
5709Tue Jan 11 23:57:30 1994 John Gilmore (gnu@cygnus.com)
5710
5711 * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
5712 to [0,0] rather than [0, end of first source file]. This avoids
5713 problems with other parts of GDB looking for linetables in the
5714 _globals_ symtab. Eliminate variables num_object_files and
5715 first_object_file_end.
5716
eb5b74ca
JG
5717Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
5718
5719 * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
5720 (pop_frame): Restore PC2 and LR0 from dummy frames.
5721 (push_dummy_frame): Save PC2 and LR0 into dummy frames.
5722 (setup_arbitrary_frame): Handle 3 args and set up real frames.
5723 * config/a29k/tm-a29k.h (FRAME_NUM_ARGS): Update comments.
5724 (DUMMY_FRAME_RSIZE): Add 2 longwords for PC2 and LR0.
5725 (SETUP_ARBITRARY_FRAME): Define.
5726
4d69cf57
JK
5727Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5728
5729 * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START.
5730
6a69975f
ILT
5731Tue Jan 11 14:27:03 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
5732
5733 * remote-udi.c (udi_resume): Correct prototype.
5734
c598654a
JL
5735Tue Jan 11 11:10:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
5736
5737 * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
5738 hppa_frame_find_saved_regs.
5739 * hppa-tdep.c (dig_fp_from_stack): Delete function.
5740 (prologue_inst_adjust_sp): New function.
5741 (is_branch, inst_saves_gr, inst_saves_fr): New functions.
5742 (skip_prologue): Completely rewrite to use unwind information.
5743 (hppa_frame_find_saved_regs): Likewise.
5744
6397809b
JK
5745Tue Jan 11 06:59:10 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5746
f3fe8934
JK
5747 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
5748 to convert a signal number with appropriate bounds checking.
5749
6397809b
JK
5750 * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
5751
c369b6a3
JG
5752Tue Jan 11 00:53:46 1994 John Gilmore (gnu@cygnus.com)
5753
a31f4b90
JG
5754 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
5755 print a newline to end the display anyway.
5756
c6d8db40
JG
5757 * sparc-tdep.c (sparc_pop_frame): Pop the fsr and csr (float and
5758 coprocessor status regs) when popping a frame. This fixes
5759 float exceptions that occur after calling inferior functions.
5760
c369b6a3
JG
5761 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
5762 Read and write the fsr (float status register) to/from the child
c6d8db40
JG
5763 process along with the float regs. Remove Peter Schauer's change
5764 of May 24 '93, which has higher overhead and doesn't solve the
5765 real problem (which was that FSR wasn't being set).
c369b6a3 5766
7b2bcbf5
JG
5767Mon Jan 10 23:16:42 1994 John Gilmore (gnu@cygnus.com)
5768
5769 * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
5770 stack overflow check isn't right after the register stack
5771 adjustment instruction. Metaware R2.3u compiler moves other
5772 things in front of it. This fix isn't perfect but is what's
5773 running.
5774
6aaa61de
JK
5775Mon Jan 10 20:08:23 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5776
85b8aa88
JK
5777 * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT.
5778
6aaa61de
JK
5779 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
5780 character filenames.
5781 * configure.in: Change accordingly.
5782
ef118278
TL
5783Mon Jan 10 15:48:36 1994 Tom Lord (lord@rtl.cygnus.com)
5784
5785 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
5786 _filtered io routines from these two files.
5787
9d51b3c5
PS
5788Fri Jan 7 12:42:45 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5789
5790 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
5791 config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
5792 * mdebugread.c (parse_symbol): Handle enum sh.type produced by
5793 DEC c89.
5794 * mdebugread.c (add_line): Handle zero linenos produced by DEC c89.
5795
11ebf939
JK
5796Fri Jan 7 12:55:25 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5797
17d059d4
JK
5798 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
5799 printing to gdb_stderr.
5800
5801 * remote-udi.c (udi_kill): Don't close the connection, just set
5802 inferior_pid to zero.
5803 (udi_mourn): Call remove_breakpoints.
5804
5805 * remote-udi.c: Remove obsolete need_artificial_traps comment.
5806
11ebf939
JK
5807 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc.
5808
fcbc95a7
JK
5809Thu Jan 6 07:17:53 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
5810
d8a66e60
JK
5811 * symtab.c (lookup_symbol): Don't try adding .c to the name.
5812
e3a7e9d5
JK
5813 * remote-bug.c: At the start of each section, reset srec_frame
5814 back to 160.
5815
fcbc95a7
JK
5816 * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
5817 * target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
5818 * infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
5819 code which looks for those two waitkinds. Use switch statement.
5820 * config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
5821 CHILD_SPECIAL_WAITSTATUS.
5822
5823 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
5824 * Move target_signal_from_host, target_signal_to_host, and
5825 store_waitstatus from inftarg.c to target.c. procfs needs them.
5826 * target.c: Include "wait.h" and <signal.h>.
5827 * target.h, infrun.c (proceed), proceed callers: Pass new code
5828 TARGET_SIGNAL_DEFAULT instead of -1. This avoids problems with
5829 enums being treated as unsigned and is cleaner.
5830 * infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
5831 TARGET_SIGNAL_0.
5832 * infcmd.c (signal_command), infrun.c (signals_info):
5833 Don't allow user to specify numeric equivalent of
5834 TARGET_SIGNAL_DEFAULT.
5835
7f85a716
SG
5836Tue Jan 4 15:34:36 1994 Stu Grossman (grossman@cygnus.com)
5837
5838 * config/alpha/alpha-netware.mt: New target support for Alpha
5839 running Netware.
5840 * configure.in: Add alpha-*-netware* target.
5841
5efb3899
SS
5842Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
5843
5844 * remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
5845
67ac9759
JK
5846Tue Jan 4 09:47:14 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5847
5848 * target.h: Add enum target_waitkind, enum target_signal, and
5849 struct target_waitstatus. Change status argument to target_wait to
5850 be struct target_waitstatus * instead of int *.
5851 * target.h, infrun.c, all targets: Change type of signal arguments
5852 to resume(), proceed(), and target_resume() from int to enum
5853 target_signal.
5854 * All targets (*_wait, *_resume): Change accordingly.
5855 * infcmd.c (program_info, signal_command), throughout infrun.c,
5856 * fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
5857 * convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
5858 signal code stuff right with the new signals would be non-trivial).
5859 * inferior.h (stop_signal): Make it enum target_signal not int.
5860 * target.c, target.h (target_signal_to_string, target_signal_to_name,
5861 target_signal_from_name): New functions.
5862 * inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
5863 store_waitstatus): New functions.
5864 * procfs.c (procfs_notice_signals): Use them.
5865 * i960-tdep.c (i960_fault_to_signal): New function, to replace
5866 print_fault.
5867 * config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
5868
5869 * objfiles.c (build_objfile_section_table): Don't abort() if
5870 objfile->sections is already set.
5871
5872 * objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
5873 to match recent change to exec.c.
5874
5875 * Version 4.11.3.
5876
5877 * main.c (print_gdb_version): Change year to 1994.
5878
5879 * ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
5880 * Makefile.in (NONSRC): Add ChangeLog-93.
5881
b35885f2
JK
5882Mon Jan 3 11:57:29 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5883
4b404661
JK
5884 * stabsread.c (read_type): Allow defining several type numbers
5885 at once (e.g. "(1,2)=(3,4)="...).
5886
eaba7fae
JK
5887 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int).
5888
b35885f2
JK
5889 * breakpoint.c (frame_in_dummy): Check PC as well as frame.
5890
ae5c71d6
PS
5891Mon Jan 3 02:47:03 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5892
5893 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
5894 to process_one_symbol.
5895 * symtab.c (find_pc_psymbol): Search global_psymbols as well to
5896 avoid caching a bad endaddr in find_pc_partial_function.
5897
d568b76a
JK
5898Sun Jan 2 21:41:17 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
5899
5900 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION.
5901
9ddb33a8
PS
5902Sat Jan 1 04:35:23 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5903
5904 * infrun.c (wait_for_inferior): Do not step or step resume past
5905 the end of a one-line function we just stepped into.
5906
67ac9759 5907For older changes see ChangeLog-93
bd5635a1
RP
5908\f
5909Local Variables:
5910mode: indented-text
5911left-margin: 8
5912fill-column: 74
5913version-control: never
5914End:
This page took 0.53704 seconds and 4 git commands to generate.