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