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