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