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