* go32-nat.c: Include i387-nat.h.
[binutils-gdb.git] / gdb / ChangeLog
1 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * go32-nat.c: Include i387-nat.h.
4 (fetch_register): New function, uses some of the guts of
5 go32_fetch_registers and calls i387_supply_register.
6 (go32_fetch_registers): Most of the code moved into
7 fetch_register. Use i387_supply_fsave.
8 (store_register): Use i387_fill_fsave instead of custom code.
9 (go32_store_registers): Use i387_fill_fsave.
10
11 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
12
13 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
14
15 * completer.c (gdb_completer_file_name_break_characters): Remove
16 slash from file-name break characters.
17 [__MSDOS__]: Special definition for DOS/Windows file names.
18 (line_completion_function): When completing on file names, bump
19 `p' to the first file-name constituent character of `word', before
20 invoking the completer.
21
22 2001-02-17 Mark Kettenis <kettenis@gnu.org>
23
24 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
25 consistently for parameter names. Fix comments accordingly.
26 (i387_supply_register): New function.
27 (i387_supply_fsave): Implement using i387_supply_register.
28 * i387-nat.h: Use regnum instead of regno consistently for
29 parameter names. Fix comments accordingly.
30 (i387_supply_register): New prototype.
31
32 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
33
34 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
35 instead of TARGET_PTR_BIT (to support Harvard architectures).
36
37 2001-02-16 Andrew Cagney <ac131313@redhat.com>
38
39 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
40 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
41 argument to parameter list and to call in order to conform to
42 to_xfer_memory field of struct target_ops.
43
44 2001-02-12 Michael Chastain <chastain@redhat.com>
45
46 * somsolib.c (som_solib_add_solib_objfile): Do not use
47 section relocation feature of syms_from_objfile. Do my own
48 section relocation, offsetting each section of the som by
49 either text_addr - text_link_addr or data_start.
50
51 2001-02-16 Andrew Cagney <ac131313@redhat.com>
52
53 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
54
55 2001-02-16 Andrew Cagney <ac131313@redhat.com>
56
57 * MAINTAINERS (paper trail): Update.
58
59 2001-02-16 Mark Kettenis <kettenis@gnu.org>
60
61 * target.h (target_fetch_registers): Fix comment.
62
63 2001-02-15 Andrew Cagney <ac131313@redhat.com>
64
65 * f-exp.y: Include <ctype.h>.
66 (parse_number): Ensure that ``i'' is always initialized.
67
68 >>>>>>> 1.966
69 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
70
71 * MAINTAINERS: Add myself to paper trail section.
72
73 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
74
75 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
76 * configure, config.in: Regenerate.
77 * corelow.c: Include <sys/file.h> if present.
78
79 2001-02-14 Andrew Cagney <ac131313@redhat.com>
80
81 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
82 declare when have SIGTTOU.
83
84 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
85
86 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
87
88 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
89
90 * MAINTAINERS: Update my email address.
91
92 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
93
94 * NEWS: Document that "info symbol" works with COFF debug info and
95 its variants.
96
97 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
98 symbols whose SYMBOL_BFD_SECTION is NULL.
99
100 2000-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
101
102 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
103 * xcoffsolib.c (xcoff_solib_address): Renamed from
104 pc_load_segment_name. Return NULL if address is not in a shared
105 library. Cleanup shared library name construction, using xasprintf.
106 Format shared library member names consistent with format in exec.c.
107 (solib_info): Format shared library member names consistent with
108 format in exec.c.
109 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
110 using xcoff_solib_address for PC_SOLIB definition.
111 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
112 needed.
113
114 2000-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
115
116 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
117 with xmalloc calls and cleanups.
118
119 2000-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
120
121 * rs6000-nat.c (child_xfer_memory): Add missing parameter
122 'struct mem_attrib *' required by 2001-01-23 change.
123
124 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
125
126 Updates to "make TAGS":
127 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
128 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
129 tahoe-tdep.c.
130 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
131
132 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
133
134 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
135
136 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
137
138 From Dean Luick <luick@cray.com>:
139 * defs.h (continuation): Remove unused global variable.
140
141 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
142
143 * configure.tgt: Remove references to convex, pyramid, altos and
144 tahoe.
145 * configure.host: Ditto.
146 * MAINTAINERS: Ditto.
147 * NEWS: Update.
148
149 * tahoe-tdep.c: Delete obsolete file.
150 * pyr-xdep.c: Ditto.
151 * pyr-tdep.c: Ditto.
152 * convex-tdep.c: Ditto.
153 * convex-xdep.c: Ditto.
154 * config/tahoe/xm-tahoe.h: Ditto.
155 * config/tahoe/tm-tahoe.h: Ditto.
156 * config/tahoe/tahoe.mt: Ditto.
157 * config/tahoe/tahoe.mh: Ditto.
158 * config/pyr/xm-pyr.h: Ditto.
159 * config/pyr/tm-pyr.h: Ditto.
160 * config/pyr/pyramid.mt: Ditto.
161 * config/pyr/pyramid.mh: Ditto.
162 * config/m68k/xm-altos.h: Ditto.
163 * config/m68k/tm-altos.h: Ditto.
164 * config/m68k/altos.mt: Ditto.
165 * config/m68k/altos.mh: Ditto.
166 * config/convex/xm-convex.h: Ditto.
167 * config/convex/tm-convex.h: Ditto.
168 * config/convex/convex.mt: Ditto.
169 * config/convex/convex.mh: Ditto.
170 * config/convex/Convex.notes: Ditto.
171 * config/arm/xm-arm.h: Ditto.
172 * config/arm/nm-arm.h: Ditto.
173 * config/arm/arm.mt: Ditto.
174 * config/arm/arm.mh: Ditto.
175 * arm-convert.s: Ditto.
176 * arm-xdep.c: Ditto.
177 * altos-xdep.c: Ditto.
178
179 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
180
181 * defs.h (internal_error, internal_verror): Add __FILE__ and
182 __LINE__ parameter.
183 * utils.c (internal_error, internal_verror): Update.
184
185 * v850-tdep.c: Update calls to internal_error.
186 * utils.c: Ditto.
187 * ui-out.c: Ditto.
188 * ui-file.c: Ditto.
189 * target.h: Ditto.
190 * symtab.h: Ditto.
191 * symm-nat.c: Ditto.
192 * sparc-tdep.c: Ditto.
193 * source.c: Ditto.
194 * serial.c: Ditto.
195 * rs6000-tdep.c: Ditto.
196 * rs6000-nat.c: Ditto.
197 * remote.c: Ditto.
198 * remote-vx.c: Ditto.
199 * remote-sim.c: Ditto.
200 * remote-mips.c: Ditto.
201 * regcache.c: Ditto.
202 * objfiles.h: Ditto.
203 * objfiles.c: Ditto.
204 * mn10300-tdep.c: Ditto.
205 * mips-tdep.c: Ditto.
206 * maint.c: Ditto.
207 * m68k-tdep.c: Ditto.
208 * m3-nat.c: Ditto.
209 * language.c: Ditto.
210 * infptrace.c: Ditto.
211 * inferior.h: Ditto.
212 * infcmd.c: Ditto.
213 * ia64-tdep.c: Ditto.
214 * i386-tdep.c: Ditto.
215 * i386-linux-nat.c: Ditto.
216 * hppah-nat.c: Ditto.
217 * go32-nat.c: Ditto.
218 * findvar.c: Ditto.
219 * f-lang.c: Ditto.
220 * elfread.c: Ditto.
221 * event-loop.c: Ditto.
222 * dwarf2read.c: Ditto.
223 * dsrec.c: Ditto.
224 * d30v-tdep.c: Ditto.
225 * d10v-tdep.c: Ditto.
226 * cli/cli-setshow.c: Ditto.
227 * cli/cli-script.c: Ditto.
228 * ch-exp.c: Ditto.
229 * breakpoint.c: Ditto.
230 * ax-gdb.c: Ditto.
231 * arch-utils.c: Ditto.
232 * a29k-tdep.c: Ditto.
233 * gdb_assert.h: Ditto.
234 * gdbarch.sh: Ditto.
235 * gdbarch.h, gdbarch.c: Re-generate.
236
237 2001-02-07 Andrew Cagney <ac131313@redhat.com>
238
239 From Mark Kettenis <kettenis@gnu.org>:
240 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
241
242 2001-02-07 Andrew Cagney <ac131313@redhat.com>
243
244 * remote-sim.c (dump_mem): Cleanup printf format argument.
245 * MAINTAINERS: Update, mn10300-elf now builds.
246
247 2001-02-07 Mark Kettenis <kettenis@gnu.org>
248
249 * event-top.c: Remove duplicate #include <signal.h>.
250
251 2001-02-06 Andrew Cagney <ac131313@redhat.com>
252
253 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
254 allocated buffer.
255 (save_inferior_pid): Restore the PID from that tempoary
256 buffer. Delete the buffer.
257 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
258
259 2001-02-06 Andrew Cagney <ac131313@redhat.com>
260
261 * MAINTAINERS: Add ``The Obvious Fix Rule''.
262
263 2001-02-06 Andrew Cagney <ac131313@redhat.com>
264
265 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
266
267 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
268
269 * gdbarch.sh: Include "gdb_assert.h".
270 (struct gdbarch): Change ``nr_data'' to unsigned.
271 (alloc_gdbarch_data, free_gdbarch_data): New functions.
272 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
273 architecture vector.
274 (struct gdbarch_data, struct gdbarch_data_registration): Move init
275 method to gdbarch_data. Add free method, make index unsigned.
276 (struct gdbarch_data_registry): Make nr unsigned.
277 (register_gdbarch_data): Add free parameter. Store in
278 gdbarch_data.
279 (init_gdbarch_data): Use set_gdbarch_data.
280 (set_gdbarch_data): New function.
281
282 * gdbarch.h, gdbarch.c: Re-generate.
283
284 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
285
286 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
287 fprintf_filtered with correct arguments.
288
289 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
290 Submitted by Paul Hilfinger (hilfingr@gnat.com)
291 and Andrei Petrov (and@genesyslab.com).
292 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
293 must be allocated dynamically, since these are no longer constants.
294 * infcmd.c: Ditto.
295 * regcache.c: Ditto.
296 * remote.c: Ditto.
297 * sol-thread.c: Ditto.
298 * valops.c: Ditto.
299 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
300 work-around for a missing Sun header file in solaris for sparc64.
301
302 2001-02-04 Philip Blundell <philb@gnu.org>
303
304 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
305 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
306 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
307 GET_THREAD_SIGNALS): Define.
308 * arm-linux-nat.c (fill_gregset): Correct type of argument.
309 (supply_gregset): Likewise.
310 (fill_fpregset): Likewise.
311 (supply_fpregset): Likewise.
312
313 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
314
315 * valops.c (value_cast): If casting a scalar to a pointer, do not
316 issue a message about truncation unless it exceeds the length of
317 an address, not the length of a pointer. This is because what the
318 user gives us is an address, not a pointer, and we will ultimately
319 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
320 to a pointer. This allows things like "print *(int *)0x01000234"
321 to work without generating a misleading message on a target having
322 two byte pointers and four byte addresses.
323
324 2001-02-05 Christopher Faylor <cgf@cygnus.com>
325
326 * win32-nat.c: Change PTR to void * throughout.
327
328 2001-02-05 J.T. Conklin <jtc@redback.com>
329
330 * signals.h: Removed.
331 * event-top.c (#include <signal.h>): Changed from signals.h.
332 * inflow.c: Likewise.
333 * mac-xdep.c: Likewise.
334 * ser-pipe.c: Likewise.
335 * ser-tcp.c: Likewise.
336 * standalone.c: Likewise.
337 * top.c: Likewise.
338 * utils.c: Likewise.
339 * Makefile.in: Removed signals.h from dependencies.
340
341 2001-02-05 Christopher Faylor <cgf@cygnus.com>
342
343 Change suggested by Dean Luick <luick@cray.com>
344 * inferior.h (step_over_calls_kind): Remove trailing comma from
345 last enum element.
346 (step_over_calls): Declare as extern rather than global.
347
348 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
349
350 * sh-tdep.c: Update copyright.
351 (sh_extract_return_value): Rewrite.
352 (sh3e_sh4_extract_return_value): New function.
353 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
354 version of the function for sh3e and sh4 CPUs.
355
356 2001-02-05 Michael Chastain <chastain@redhat.com>
357
358 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
359 to conform with interface change.
360
361 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
362
363 * config/djgpp/fnchange.lst: Tweak to make consistent with the
364 new files.
365
366 * config/djgpp/djconfig.sh: Use explicit absolute file name when
367 invoking `find'.
368
369 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
370 UART_FIFO_WORKS is defined. Otherwise use outportb.
371 From Francisco Pastor <fpastor.etra-id@etra.es>
372
373 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
374 with target.h's `to_xfer_memory' member.
375
376 2001-02-02 J.T. Conklin <jtc@redback.com>
377
378 * ppc-bdm.c (#include <signal.h>): Removed.
379 * remote-array.c: Likewise.
380 * remote-bug.c: Likewise.
381 * remote-e7000.c: Likewise.
382 * remote-mips.c: Likewise.
383 * remote-os9k.c: Likewise.
384 * remote-st.c: Likewise.
385 * remote-udi.c: Likewise.
386 * remote-vx29k.c: Likewise.
387 * remote-vx68.c: Likewise.
388 * remote-vx960.c: Likewise.
389 * remote-vxmips.c: Likewise.
390 * remote-vxsparc.c: Likewise.
391
392 2001-02-02 John Moore <jmoore@redhat.com>
393
394 * remote-utils.h (sr_set_device): Changed free() to xfree() where
395 appropriate. Also changed Copyright to include 2001.
396 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
397 * value.h (value_free): Likewise.
398 * gdbarch.sh (gdbarch_free): Likewise.
399 * gdbarch.c, gdbarch.h: Regenerated.
400
401 2001-02-02 John Moore <jmoore@redhat.com>
402
403 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
404 xfree(). Also changed Copyright to include 2001.
405
406 2001-02-02 J.T. Conklin <jtc@redback.com>
407
408 * monitor.c (#include "gdb_wait.h"): Removed.
409 * ocd.c: Likewise.
410 * ppc-bdm.c: Likewise.
411 * remote-adapt.c: Likewise.
412 * remote-array.c: Likewise.
413 * remote-bug.c: Likewise.
414 * remote-e7000.c: Likewise.
415 * remote-eb.c: Likewise.
416 * remote-es.c: Likewise.
417 * remote-mips.c: Likewise.
418 * remote-mm.c: Likewise.
419 * remote-nindy.c: Likewise.
420 * remote-os9k.c: Likewise.
421 * remote-rdi.c: Likewise.
422 * remote-rdp.c: Likewise.
423 * remote-sds.c: Likewise.
424 * remote-sim.c: Likewise.
425 * remote-st.c: Likewise.
426 * remote-udi.c: Likewise.
427 * remote-vx.c: Likewise.
428 * remote-vx29k.c: Likewise.
429 * remote-vx68.c: Likewise.
430 * remote-vx960.c: Likewise.
431 * remote-vxmips.c: Likewise.
432 * remote-vxsparc.c: Likewise.
433 * remote.c: Likewise.
434 * ser-pipe.c: Likewise.
435 * ser-unix.c: Likewise.
436 * Makefile.in: Updated dependencies.
437
438 2001-01-31 David Smith <dsmith@redhat.com>
439
440 * event-loop.c: Change inclusion of string.h to gdb_string.h and
441 updated the copyright notice.
442 * ser-pipe.c: Ditto.
443 * mi/mi-cmds.c: Ditto.
444 * mi/mi-console.c: Ditto.
445 * mi/mi-getopt.c: Ditto.
446 * mi/mi-parse.c: Ditto.
447
448 2001-01-31 David Smith <dsmith@redhat.com>
449
450 * MAINTAINERS: Add David Smith to Write After Approval list.
451
452 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
453
454 * cli/cli-utils.c (putchar_filtered): Move function from here.
455 * utils.c (putchar_filtered): To here.
456 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
457 * defs.h (putchar_filtered): To here.
458
459 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
460
461 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
462 AC_FUNC_VFORK macro.
463 * config.in, configure: Re-generate.
464
465 * gdb_vfork.h: New file.
466 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
467 * fork-child.c (fork_inferior): Ditto.
468
469 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
470
471 * defs.h (strsave): Delete declaration.
472 * utils.c (strsave): Delete definition.
473 * TODO (strsave): Update
474
475 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
476 * sparcl-tdep.c (sparclite_open): Ditto.
477 * mips-tdep.c (mips_set_processor_type_command): Ditto.
478 (_initialize_mips_tdep): Ditto.
479 * solib.c (solib_open): Ditto.
480 * symfile.c (add_filename_language): Ditto.
481 (set_ext_lang_command): Ditto.
482 * source.c (init_source_path): Ditto.
483 (mod_path): Ditto.
484 * sh3-rom.c (sh3_open): Ditto.
485 (sh3e_open): Ditto.
486 * serial.c (serial_open): Ditto.
487 * remote-mips.c (common_open): Ditto.
488 * monitor.c (monitor_open): Ditto.
489 * m32r-rom.c (m32r_upload_command): Ditto.
490 * infcmd.c (path_command): Ditto.
491 * f-exp.y (parse_number): Ditto.
492 * breakpoint.c (create_longjmp_breakpoint): Ditto.
493 (create_thread_event_breakpoint): Ditto.
494 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
495 (_initialize_arc_tdep): Ditto.
496
497 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
498
499 * cli/cli-script.c (define_command): Check for a bad hook value in
500 switch statement.
501
502 2001-01-30 J.T. Conklin <jtc@redback.com>
503
504 * configure/sh/embed.mt: New file.
505 * configure/sh/linux.mt: New file.
506 * configure/sh/sh.mt: Removed.
507 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
508 (sh-*-*): Removed.
509
510 2001-01-29 Michael Chastain <chastain@redhat.com>
511
512 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
513 symbol comparisons in binary search.
514
515 2000-01-27 Christopher Faylor <cgf@cygnus.com>
516
517 * win32-nat.c (child_xfer_memory): Add missing argument required by
518 2001-01-23 change.
519
520 2001-01-27 Mark Kettenis <kettenis@gnu.org>
521
522 * ui-out.c (do_list_end): New function.
523 (make_cleanup_ui_out_list_end): New function.
524 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
525 * stack.c (print_frame) [UI_OUT]: Call
526 make_cleanup_ui_out_list_end to make sure we mark the end of the
527 list if we do a non-local exit. At the end of the function,
528 instead of calling ui_out_list_end directly, let do_cleanups
529 handle it.
530
531 2001-01-26 Fernando Nasser <fnasser@redhat.com>
532
533 Fix double parsing of filenames passed as command line arguments
534 to GDB (causes weird handling of escape characters).
535 Also, remove dependencies on the CLI from libgdb.
536 * call-cmds.h: Remove declaration of exec_file_command().
537 * gdbcore.h: Remove declaration of exec_file_command().
538 Add declarations for exec_open() and exec_file_clear().
539 * symfile.h: Add declarations for symbol_file_add_main() and
540 symbol_file_clear().
541 * exec.c (exec_open): New function. Implements to_open for exec
542 targets.
543 (exec_file_clear): New function. Makes GDB forget about a previously
544 specified executable file.
545 (exec_file_attach): Move parsing of arguments from here ...
546 (exec_file_command): ... to here.
547 (init_exec_ops): Use exec_open(), not exec_file_command() to
548 implement to_open for exec targets.
549 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
550 with default values. Used when the file name has already been parsed.
551 (symbol_file_clear): New function. Makes GDB forget about previously
552 read symbols.
553 (symbol_file_command): Call the above function instead of inline code.
554 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
555 "call-cmds.h".
556 (captured_main): Call exec_file_attach() and symbol_file_add_main()
557 instead of exec_file_command() and symbol_file_command().
558 (captured_main): Add comment.
559 * corefile.c: Include "symfile.h".
560 (core_file_command): Call symbol_file_add_main() instead of
561 symbol_file_command().
562 (reopen_exec_file): Call exec_open() instead of exec_file_command().
563 * infcmd.c: Include "symfile.h".
564 (attach_command): Call symbol_file_add_main() instead of
565 symbol_file_command().
566 * infrun.c: Remove comment about the inclusion of "symfile.h",
567 not any longer appropriate.
568 (follow_exec): Call symbol_file_add_main() instead of
569 symbol_file_command().
570 * remote-es.c: Include "symfile.h".
571 (es1800_load): Call symbol_file_add_main() instead of
572 symbol_file_command().
573 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
574 not any longer appropriate.
575 (vx-wait): Call symbol_file_add_main() instead of
576 symbol_file_command().
577 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
578 instead of symbol_file_command().
579 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
580 symbol_file_add_main() instead of exec_file_command() and
581 symbol_file_command().
582 * Makefile.in: Update dependencies.
583
584 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
585
586 * remote-udi.c (udi_open): Change strdup to xstrdup.
587 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
588 Update copyright message.
589 * varobj.c (delete_variable_1): Likewise.
590
591 * gdb_string.h: Remove declaration of strdup. Update copyright
592 message.
593 * config/xm-mpw.h: Likewise.
594 * config/i386/xm-i386mach.h: Likewise.
595 * config/m68k/xm-apollo68b.h: Likewise.
596 * config/m68k/xm-hp300bsd.h: Likewise.
597 * config/rs6000/xm-rs6000.h: Likewise.
598 * config/vax/xm-vaxult.h: Remove declaration of strdup.
599 * config/vax/xm-vaxult2.h: Likewise.
600
601 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
602
603 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
604
605 2001-01-25 J.T. Conklin <jtc@redback.com>
606
607 * target.c (target_xfer_memory_partial): Return -1 on failure due
608 to invalid access mode attribute.
609
610 2001-01-25 Christopher Faylor <cgf@cygnus.com>
611
612 * win32-nat.c (_initialize_core_win32): Prototype correctly.
613
614 2001-01-25 Mark Kettenis <kettenis@gnu.org>
615
616 * config/alpha/tm-fbsd.h: Update copyright.
617 (USE_STRUCT_CONVENTION): Define in terms of
618 alphabsd_use_struct_convention.
619 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
620 * alphafbsd-tdep.c: New file.
621
622 2001-01-24 Fernando Nasser <fnasser@redhat.com>
623
624 * top.c (print_gdb_version): Update Copyright year.
625
626 2001-01-24 J.T. Conklin <jtc@redback.com>
627
628 * dcache.c (dcache_write_line): Fix typo.
629
630 * memattr.c (delete_mem_region): Replace free() with xfree().
631 (mem_number): Add explicit type.
632
633 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
634 (rw_common): Likewise.
635
636 2001-01-24 Fernando Nasser <fnasser@redhat.com>
637
638 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
639 for the inferior program arguments.
640 (run_command, run_no_args_command, init_infcmd)): Use accessor
641 functions to set the inferior program arguments.
642 * inferior.h: Add definitions to the accessor functions above.
643
644 2001-01-23 Jim Blandy <jimb@redhat.com>
645
646 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
647 Implement these correctly, using make_cv_type.
648
649 2001-01-23 J.T. Conklin <jtc@redback.com>
650
651 * exec.c (xfer_memory): Add attrib argument.
652 * infptrace.c (child_xfer_memory): Likewise.
653 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
654 * monitor.c (monitor_xfer_memory): Likewise.
655 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
656 * remote-array.c (array_xfer_memory): Likewise.
657 * remote-bug.c (bug_xfer_memory): Likewise.
658 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
659 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
660 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
661 * remote-mips.c (mips_xfer_memory): Likewise.
662 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
663 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
664 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
665 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
666 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
667 * remote-sds.c (sds_xfer_memory): Likewise.
668 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
669 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
670 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
671 * remote-vx.c (vx_xfer_memory): Likewise.
672 * remote.c (remote_xfer_memory): Likewise.
673 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
674 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
675 * thread-db.c (thread_db_xfer_memory): Likewise.
676
677 * target.h (#include "memattr.h"): Added.
678 (target_ops.to_xfer_memory): Add attrib argument.
679
680 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
681 * dcache.h (set_dcache_state): Removed declaration.
682 * dcache.c (set_dcache_state): Removed definition
683
684 * dcache.c: Update module comment, as dcache is now enabled and
685 disabled with memory region attributes instead of by the global
686 variable "remotecache". Add comment describing the interaction
687 between dcache and memory region attributes.
688 (dcache_xfer_memory): Add comment describing benefits of moving
689 cache writeback to a higher level.
690 (dcache_struct): Removed cache_has_stuff field. This was used to
691 record whether the cache had been accessed in order to invalidate
692 it when it was disabled. However, this is not needed because the
693 cache is write through and the code that enables, disables, and
694 deletes memory regions invalidate the cache. Add comment which
695 suggests that we could be more selective and only invalidate those
696 cache lines containing data from those memory regions.
697 (dcache_invalidate): Updated.
698 (dcache_xfer_memory): Updated.
699
700 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
701 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
702 perform a uncached transfer if dcache_enabled_p was clear. This
703 function is now only called if caching is enabled for the memory
704 region.
705 (dcache_info): Always print cache info.
706
707 * target.c (do_xfer_memory): Add attrib argument.
708 (target_xfer_memory, target_xfer_memory_partial): Break transfer
709 into chunks defined by memory regions, pass region attributes to
710 do_xfer_memory().
711 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
712
713 * Makefile.in (SFILES): Add memattr.c.
714 (COMMON_OBS): Add memattr.o.
715 (dcache.o): Add target.h to dependencies.
716 * memattr.c: New file.
717 * memattr.h: Likewise.
718
719 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
720 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
721 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
722 * gdbserver/low-sim.c (#include "defs.h"): Removed.
723 (mygeneric_load): Rename from generic_load.
724
725 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
726 (#include "defs.h"): Removed.
727 (inferior_pid, perror_with_name): Remove declarations.
728 * gdbserver/low-linux.c: Likewise.
729 * gdbserver/low-nbsd.c: Likewise.
730 * gdbserver/low-sparc.c: Likewise.
731 * gdbserver/low-sun3.c: Likewise.
732
733 * i386-stub.c: Re-indent.
734 * m68k-stub.c: Re-indent.
735
736 2001-01-22 Nicholas Duffek <nsd@redhat.com>
737
738 * gdbarch.sh (PARM_BOUNDARY): Define.
739 * gdbarch.c: Regenerate.
740 * gdbarch.h: Regenerate.
741
742 2001-01-22 J.T. Conklin <jtc@redback.com>
743
744 * ns32k-tdep.c: #include "frame.h"
745 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
746 appears to have been inadvertantly removed sometime in May 1999.
747
748 * Revert 2000-11-09 changes where shared library objects were
749 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
750 we'd like to be able to debug dynamically linked executables,
751 this makes it impossible to build a cross debugger on a many
752 hosts.
753
754 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
755 * config/i386/nbsdelf.mt: Likewise.
756 * config/m68k/nbsd.mt: Likewise.
757 * config/ns32k/nbsd.mt: Likewise.
758 * config/powerpc/nbsd.mt: Likewise.
759 * config/sparc/nbsd.mt: Likewise.
760 * config/sparc/nbsdelf.mt: Likewise.
761 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
762 * config/i386/nbsdelf.mh: Likewise.
763 * config/m68k/nbsd.mh: Likewise.
764 * config/ns32k/nbsd.mh: Likewise.
765 * config/powerpc/nbsd.mh: Likewise.
766 * config/sparc/nbsd.mh: Likewise.
767
768 2001-01-19 Jason Merrill <jason@redhat.com>
769
770 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
771 (process_one_symbol): Likewise.
772 * dwarfread.c (handle_producer): Likewise.
773
774 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
775
776 * configure.in (build_warnings): Disable -Wuninitialized until GDB
777 compiles with -Wuninitialized,-Werror.
778 * configure: Regenerate.
779
780 * MAINTAINERS: Add list of buildable targets.
781
782 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
783
784 * defs.h (STRCMP): Delete macro.
785
786 * objfiles.c (objfile_relocate): Replace STRCMP with call to
787 strcmp.
788 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
789 * symfile.c (compare_symbols): Ditto.
790 * standalone.c (open): Ditto.
791 * remote-es.c (verify_break): Ditto.
792 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
793
794 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
795
796 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
797
798 * varobj.c (FREEIF): Delete macro.
799 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
800 call.
801
802 2001-01-18 Nick Clifton <nickc@redhat.com>
803
804 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
805 (arc_print_insn): No bfd available, so pass NULL to
806 arc_get_disassembler.
807
808 2001-01-09 James Ingham <jingham@inghji.apple.com>
809
810 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
811 a mangled symbol rather than recursing into lookup_symbol, since
812 this will just re-unmangle the name & call lookup_symbol_aux -
813 leading to an infinite recursion.
814
815 2001-01-18 Mark Kettenis <kettenis@gnu.org>
816
817 * infcmd.c (print_return_value): Restore another space lost by
818 switch to UIOUT. ``$NN='' should be ``$NN =''.
819
820 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
821
822 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
823 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
824 definition in parenthesis.
825
826 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
827
828 From 2000-10-27 Mark Salter <msalter@redhat.com>:
829 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
830 packet.
831 (remote_insert_hw_breakpoint): Ditto.
832
833 2001-01-17 J.T. Conklin <jtc@redback.com>
834
835 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
836 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
837 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
838 * m68knbsd-tdep.c: New file.
839
840 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
841
842 * m68knbsd-nat.c: #include gdbcore.h.
843
844 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
845
846 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
847
848 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
849
850 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
851 goes away -- just return false (ie. not stopped by watchpoint).
852 * source.c (openp): Fix typo in comment.
853
854 2001-01-12 Nicholas Duffek <nsd@redhat.com>
855
856 * blockframe.c (generic_get_saved_register): Spelling fix.
857 * frame.h (FRAME_FP): Spelling fix.
858
859 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
860
861 * infcmd.c (print_return_value): Restore space lost by switch to
862 UIOUT. ``$NN='' should be ``$NN =''.
863
864 2001-01-08 Nicholas Duffek <nsd@redhat.com>
865
866 * regcache.c (set_register_cached, register_buffer,
867 real_register, pseudo_register fetch_register, store_register):
868 New functions.
869 (register_changed, read_relative_register_raw_bytes_for_frame,
870 registers_changed, registers_fetched, read_register_bytes,
871 read_register_gen, write_register_gen, read_register,
872 read_signed_register, write_register, supply_register): Replace
873 register_valid[] with register_cached() and
874 set_register_cached().
875 (read_register_bytes, read_register_gen, write_register_gen,
876 read_register, read_signed_register, write_register,
877 supply_register): Replace registers[] with register_buffer().
878 (read_register_bytes, read_register_gen, read_register,
879 read_signed_register): Call fetch_register().
880 (write_register_gen, write_register): Call real_register() and
881 store_register().
882 (write_register_bytes): Call store_register().
883 * value.h (set_register_cached, register_buffer): Prototype.
884 * remote.c (remote_fetch_registers): Allocate regs[] with a
885 run-time size. Replace register_valid[] with
886 set_register_cached().
887 (store_register_using_P, remote_store_registers): Replace
888 registers[] with register_buffer().
889
890 2001-01-08 Nicholas Duffek <nsd@redhat.com>
891
892 * regcache.c: Change "write-back" comment to "write-through".
893 Change "regno" to "regnum".
894 (read_register, read_signed_register): Remove "raw" from return
895 value description.
896 (supply_register): Spelling fix.
897 * value.h: Change "regno" to "regnum".
898
899 2001-01-08 Fernando Nasser <fnasser@redhat.com>
900
901 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
902 to be installed.
903
904 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
905
906 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
907
908 2001-01-04 Nicholas Duffek <nsd@redhat.com>
909
910 * valops.c (VALUE_SUBSTRING_START): Delete.
911
912 2001-01-04 Nicholas Duffek <nsd@redhat.com>
913
914 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
915 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
916 (cli_utils_h): New variable.
917 (cli/cli-utils.o): New rule.
918 * cli/cli-utils.c: New file.
919 * cli/cli-utils.h: New file.
920
921 2001-01-04 Nicholas Duffek <nsd@redhat.com>
922
923 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
924 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
925
926 2001-01-03 J.T. Conklin <jtc@redback.com>
927
928 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
929 comment.
930
931 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
932
933 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
934 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
935 non-float types.
936 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
937 Update copyright notice.
938
939 For older changes see ChangeLog-2000
940 \f
941 Local Variables:
942 mode: change-log
943 left-margin: 8
944 fill-column: 74
945 version-control: never
946 End: