699062b7ac2a363edb9d3a3aa26415bde0a39332
[external/binutils.git] / gdb / ChangeLog
1 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
2
3         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4
5 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
6
7         * alpha-tdep.c: Update copyright years.
8         (alpha_next_pc): New function.
9         (alpha_software_single_step): Ditto.
10         * config/alpha/tm-alpha.h: Add prototype for
11         alpha_software_single_step.
12
13 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
14
15         * alphabsd-nat.c: Update copyright years.
16         (fill_gregset): Use regcache_collect.
17         (fill_fpregset): Likewise.
18         (fetch_inferior_registers): Only fetch integer registers
19         if requested to do so.
20         (store_inferior_registers): Only store integer registers
21         if requested to do so.
22
23 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
24
25         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
26         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
27         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
28         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
29         * config/alpha/fbsd.mh (XDEPFILES): Delete.
30         * config/arm/linux.mh (XDEPFILES): Delete.
31         * config/arm/nbsd.mh (XDEPFILES): Delete.
32         * config/i386/i386dgux.mh (XDEPFILES): Delete.
33         * config/i386/i386sol2.mh (XDEPFILES): Delete.
34         * config/i386/i386m3.mh (XDEPFILES): Delete.
35         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
36         * config/i386/i386gnu.mh (XDEPFILES): Delete.
37         * config/i386/fbsd.mh (XDEPFILES): Delete.
38         * config/i386/i386bsd.mh (XDEPFILES): Delete.
39         * config/i386/i386sco5.mh (XDEPFILES): Delete.
40         * config/i386/i386v4.mh (XDEPFILES): Delete.
41         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
42         * config/i386/i386sco4.mh (XDEPFILES): Delete.
43         * config/i386/i386aix.mh (XDEPFILES): Delete.
44         * config/i386/go32.mh (XDEPFILES): Delete.
45         * config/i386/cygwin.mh (XDEPFILES): Delete.
46         * config/i386/i386lynx.mh (XDEPFILES): Delete.
47         * config/i386/i386mach.mh (XDEPFILES): Delete.
48         * config/i386/i386v32.mh (XDEPFILES): Delete.
49         * config/i386/linux.mh (XDEPFILES): Delete.
50         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
51         * config/i386/ncr3000.mh (XDEPFILES): Delete.
52         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
53         * config/i386/i386sco.mh (XDEPFILES): Delete.
54         * config/i386/i386v.mh (XDEPFILES): Delete.
55         * config/i386/nbsd.mh (XDEPFILES): Delete.
56         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
57         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
58         * config/i386/symmetry.mh (XDEPFILES): Delete.
59         * config/i386/obsd.mh (XDEPFILES): Delete.
60         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
61         * config/ia64/linux.mh (XDEPFILES): Delete.
62         * config/ia64/aix.mh (XDEPFILES): Delete.
63         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
64         * config/m68k/dpx2.mh (XDEPFILES): Delete.
65         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
66         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
67         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
68         * config/m68k/linux.mh (XDEPFILES): Delete.
69         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
70         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
71         * config/m68k/nbsd.mh (XDEPFILES): Delete.
72         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
73         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
74         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
75         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
76         * config/m88k/delta88.mh (XDEPFILES): Delete.
77         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
78         * config/m88k/m88k.mh (XDEPFILES): Delete.
79         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
80         * config/mips/linux.mh (XDEPFILES): Delete.
81         * config/mips/irix6.mh (XDEPFILES): Delete.
82         * config/mips/irix5.mh (XDEPFILES): Delete.
83         * config/mips/irix4.mh (XDEPFILES): Delete.
84         * config/mips/irix3.mh (XDEPFILES): Delete.
85         * config/mips/decstation.mh (XDEPFILES): Delete.
86         * config/mips/mipsm3.mh (XDEPFILES): Delete.
87         (NATDEPFILES): Move core-aout.o to here.
88         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
89         * config/pa/hpux1020.mh (XDEPFILES): Delete.
90         * config/pa/hppabsd.mh (XDEPFILES): Delete.
91         * config/pa/hppahpux.mh (XDEPFILES): Delete.
92         * config/pa/hpux11w.mh (XDEPFILES): Delete.
93         * config/pa/hppaosf.mh (XDEPFILES): Delete.
94         * config/pa/hpux11.mh (XDEPFILES): Delete.
95         * config/powerpc/aix.mh (XDEPFILES): Delete.
96         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
97         * config/powerpc/linux.mh (XDEPFILES): Delete.
98         * config/romp/rtbsd.mh: Rename XDEPFILES.
99         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
100         * config/rs6000/aix4.mh (XDEPFILES): Delete.
101         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
102         * config/s390/s390.mh (XDEPFILES): Delete.
103         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
104         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
105         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
106         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
107         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
108         * config/sparc/nbsd.mh (XDEPFILES): Delete.
109         * config/sparc/linux.mh (XDEPFILES): Delete.
110         * config/vax/vaxult.mh (XDEPFILES): Delete.
111         * config/vax/vaxult2.mh (XDEPFILES): Delete.
112         * Makefile.in (DEPFILES): Remove XDEPFILES.
113
114 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
115
116         * utils.c (internal_verror): Fix comments, default is yes not no.
117         Update queries to match.  Default to quit and dump core.
118
119 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
120
121         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
122         copyright.
123         * defs.h, event-top.c, gdbcmd.h: Ditto.
124         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
125         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
126         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
127         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
128         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
129         * mi/mi-main.c:Ditto.
130
131         * stack.c, symfile.c: Update copyright.
132
133 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
134
135         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
136         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
137         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
138         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
139
140 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
141
142         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
143         * gdbserver/low-lynx.c (myattach): Likewise.
144         * gdbserver/low-nbsd.c (myattach): Likewise.
145         * gdbserver/low-sim.c (myattach): Likewise.
146         * gdbserver/low-sparc.c (myattach): Likewise.
147         * gdbserver/low-sun3.c (myattach): Likewise.
148
149         * gdbserver/low-linux.c (myattach): New function.
150
151         * gdbserver/server.c (attach_inferior): New function.
152         (main): Handle "--attach".
153
154 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
155
156         * MAINTAINERS (language support): Daniel Jacobwitz is C++
157         maintainer.
158
159 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
160
161         * c-typeprint.c (is_type_conversion_operator): Add additional
162         check for non-conversion operators.
163
164 2002-01-15  Michael Snyder  <msnyder@redhat.com>
165
166         * linux-proc.c: Add "info proc" command, a la procfs.c.
167         (read_mapping): New function, abstract and re-use code.
168         (linux_find_memory_regions): Use new func read_mapping.
169         (linux_info_proc_cmd): New function, implement "info proc".
170         (_initialize_linux_proc): Add new command "info proc".
171
172 2002-01-15  Michael Snyder  <msnyder@redhat.com>
173
174         * symfile.c (generic_load): Use bfd_map_over_sections method
175         instead of manipulating bfd structure members directly.
176         (add_section_size_callback): New function, bfd sections callback
177         used by generic_load.
178         (load_sections_callback): New function, bfd sections callback
179         used by generic_load.
180
181 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
182
183         [Based on work by Jim Blandy] 
184         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
185         (builtin_type_vec128): Export.
186         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
187         types.
188         (builtin_type_vec128): New builtin type for 128 bit vector
189         registers.
190         (build_gdbtypes): Initialize builtin_type_v16qi and
191         builtin_type_v8hi. Create the vec128 register builtin type
192         structure.
193         (build_builtin_type_vec128): New function.
194         (_initialize_gdbtypes): Register builtin_type_v16qi and
195         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
196         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
197         AltiVec register to new builtin type.
198
199 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
200
201         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
202         to make_cv_type.
203
204 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
205
206         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
207         CLEAN_UP_REGISTER_VALUE.
208         * regcache.c (supply_register): Update only call.
209
210 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
211
212         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
213         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
214         a29k-*-vxworks* targets as obsolete.
215
216 2002-01-14  Michael Snyder  <msnyder@redhat.com>
217
218         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
219         until we can resolve portability issues.
220         * gregset.h: Remove references to fpxregs.
221         * gcore.c (gcore_command): Initialize note_sec to NULL.
222
223 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
224
225         * signals.c (target_signal_to_name): Rewrite.  Only use
226         signals[].name when in bounds and non-NULL.
227         
228 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
229
230         From Petr Ledvina <ledvinap@kae.zcu.cz>:
231         * signals.c (target_signal_to_name): Verify that SIG is within the
232         bounds of the signals array.
233
234 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
235
236         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
237
238 2002-01-13  Keith Seitz  <keiths@redhat.com>
239
240         * stack.c (print_frame_info_base): Print the frame's pc
241         only if when print_frame_info_listing_hook is not defined.
242
243 2002-01-13  Keith Seitz  <keiths@redhat.com>
244
245         * varobj.c (varobj_set_value): Make sure that there were no
246         errors evaluating the object before attempting to set its
247         value.
248         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
249         so this offset adjustment is no longer necessary.
250         (create_child): Don't set the error flag if the child is
251         a CPLUS_FAKE_CHILD.
252         (value_of_child): If value_fetch_lazy fails, return NULL
253         so that callers will be notified that an error occurred.
254         (c_value_of_variable): Delay check of variable's validity
255         until later. We actually want all structs and unions to have
256         the value "{...}".
257         Do not return "???" for variables which could not be evaluated.
258         This error condition must be returned to the caller so that it
259         can get the error condition from gdb.
260         (cplus_name_of_child): Adjust index for vptr before figuring
261         out the name of the child.
262         (cplus_value_of_child): If a child's (real) parent is not valid,
263         don't even bother trying to give a value for it. Just return
264         an error. Change all instances in this function.
265         (cplus_type_of_child): If our parent is one of the "fake"
266         parents, we need to get at the type of the real parent, and
267         derive the child's true type using this information.
268
269 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
270
271         From 2002-01-09 John Marshall <johnm@falch.net>:
272         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
273         sources.redhat.com, and tweak some related URLs which had
274         suffered from linkrot.
275
276 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
277
278         From Jeff law:
279         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
280         structures passed in registers.
281
282 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
283
284         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
285         white space which prevented compilation.  Reported by DSK
286         <dsk@student.unsw.edu.au>.
287
288 2002-01-11  Michael Snyder  <msnyder@redhat.com>
289
290         * symfile.c (build_section_addr_info_from_section_tab):
291         Use bfd access method instead of manipulating bfd directly.
292         (syms_from_objfile): Ditto.
293         (simple_overlay_update_1): Ditto.
294         (simple_overlay_update): Ditto.
295         (generic_load): Ditto.
296         (overlay_unmapped_address): FIXME comment, bfd access methods.
297         (sections_overlap): FIXME comment, bfd access methods.
298         (pc_in_mapped_range): FIXME comment, bfd access methods.
299         (pc_in_unmapped_range): FIXME comment, bfd access methods.
300         (section_is_mapped): FIXME comment, bfd access methods.
301         (section_is_overlay): FIXME comment, bfd access methods.
302
303         * symfile.c (generic_load): Whitespace and long line cleanups.
304         Remove duplicate variable, change several local variables to
305         more appropriate data types.
306         (print_transfer_performance): Use %lu instead of %ld for ulongs.
307
308 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
309
310         From Peter Schauer:
311         * language.c (longest_local_hex_string_custom): Use phex_nz to
312         convert NUM to a hex string.
313
314 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
315
316         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
317         the function.
318         Update Copyright year.
319
320 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
321
322         * language.c (longest_raw_hex_string): Delete unused function.
323
324 2002-01-11  Petr Sorfa  <petrs@caldera.com>
325
326         * MAINTAINERS (write-after-approval): Add myself.
327         * dwarf2read.c (read_tag_string_type): Handling of
328         DW_AT_byte_size.
329         (read_tag_string_type): FORTRAN fix to prevent propagation of
330         first string size.
331         (set_cu_language): Handling of DW_LANG_Fortran95
332
333 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
334
335         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
336         GETPID(inferior_ptid).
337         (store_inferior_registers): Likewise.
338
339 2002-01-10  Jason Merrill  <jason@redhat.com>
340
341         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
342         Fix DW_OP_minus.
343
344 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
345
346         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
347         and bfd/elf32-sh-nbsd.c.
348
349 2002-01-10  Michael Snyder  <msnyder@redhat.com>
350
351         * NEWS: Mention --pid and corefile/proc-id behavior change.
352
353         * Makefile.in: Add rules for gcore.o and linux-proc.o.
354         * gcore.c: Include cli/cli-decode.h instead of command.h.
355
356         * main.c (captured_main): Add new command line option "--pid".
357         If the second command line argument (following the symbol-file)
358         begins with a digit, try to attach to it before trying to open
359         it as a corefile.
360         (print_gdb_help): Document the "--pid" argument.
361
362 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
363
364         * completer.c (command_completer): New function.
365
366         * completer.h <command_completer>: Add prototype.
367
368         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
369         completer for the "help" command.
370
371 2002-01-09  Jason Merrill  <jason@redhat.com>
372
373         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
374
375 2002-01-09  Michael Snyder  <msnyder@redhat.com>
376
377         * i386-linux-nat.c (fill_fpxregset): Make global.
378         (store_fpxregset): Ditto.
379
380         * gregset.h (gdb_fpxregset_t): Define.
381         (supply_fpxregset): Prototype.
382         (fill_fpxregset): Prototype.
383
384         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
385
386 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
387
388         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
389         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
390         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
391
392 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
393
394         * MAINTAINERS: Update target maintainer rules so that any
395         Maintainer can approve a tested patch for a maintenance-only
396         target.
397
398 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
399
400         * MAINTAINERS (write-after-approval): Add myself.
401
402         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
403         IN_SIGTRAMP.
404
405 2002-01-08  Michael Snyder  <msnyder@redhat.com>
406
407         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
408         real name of the executable, rather than the /proc name.
409
410 2002-01-03  Michael Snyder  <msnyder@redhat.com>
411
412         Implement a "generate-core-file" command in gdb, save target state.
413         * gcore.c: New file.  Implement new command 'generate-core-file'.
414         Save a corefile image of the current state of the inferior.
415         * linux-proc.c: Add linux-specific code for saving corefiles.
416         * target.h (struct target_ops): Add new target vectors for saving
417         corefiles; to_find_memory_regions and to_make_corefile_notes.
418         (target_find_memory_regions): New macro.
419         (target_make_corefile_notes): New macro.
420         * target.c (update_current_target): Inherit new target methods.
421         (dummy_find_memory_regions): New place-holder method.
422         (dummy_make_corefile_notes): New place-holder method.
423         (init_dummy_target): Initialize new dummy target vectors.
424         * exec.c (exec_set_find_memory_regions): New function.
425         Allow the exec_ops vector for memory regions to be taken over.
426         (exec_make_note_section): New function, target vector method.
427         * defs.h (exec_set_find_memory_regions): Export prototype.
428         * procfs.c (proc_find_memory_regions): New function, corefile method.
429         (procfs_make_note_section): New function, corefile method.
430         (init_procfs_ops): Set new target vector pointers.
431         (find_memory_regions_callback): New function.
432         (procfs_do_thread_registers): New function.
433         (procfs_corefile_thread_callback): New function.
434         * sol-thread.c (sol_find_memory_regions): New function.
435         (sol_make_note_section): New function.
436         (init_sol_thread_ops): Initialize new target vectors.
437         * inftarg.c (inftarg_set_find_memory_regions): New function.
438         Allow to_find_memory_regions vector to be taken over.
439         (inftarg_set_make_corefile_notes): New function.
440         Allow to_make_corefile_notes vector to be taken over.
441         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
442         interface layer if not target_has_execution (may be a corefile).
443         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
444         * config/sparc/sun4sol2.mh: Ditto.
445         * config/alpha/alpha-linux.mh: Ditto.
446         * config/arm/linux.mh: Ditto.
447         * config/i386/x86-64linux.mh: Ditto.
448         * config/ia64/linux.mh: Ditto.
449         * config/m68k/linux.mh: Ditto.
450         * config/mips/linux.mh: Ditto.
451         * config/powerpc/linux.mh: Ditto.
452         * config/sparc/linux.mh: Ditto.
453
454 2002-01-07  Michael Snyder  <msnyder@redhat.com>
455
456         * arm-linux-nat.c: Remove references to regcache.c internal data
457         (registers[] and register_valid[]).
458
459 2002-01-07  Michael Snyder  <msnyder@redhat.com>
460
461         * linux-proc.c: New file.  Implement child_pid_to_exec_file, 
462         so that attaching to a pid will automatically read the process's 
463         symbol file and shlibs.
464         * Makefile.in: Add rule for linux-proc.o.
465         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
466         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
467         * config/arm/linux.mh: Ditto.
468         * config/i386/linux.mh: Ditto.
469         * config/i386/x86-64linux.mh: Ditto.
470         * config/ia64/linux.mh: Ditto.
471         * config/m68k/linux.mh: Ditto.
472         * config/mips/linux.mh: Ditto.
473         * config/powerpc/linux.mh: Ditto.
474         * config/sparc/linux.mh: Ditto.
475
476 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
477
478         * win32-nat.c: Add i386-tdep.h dependency.
479
480 2002-01-07  Michael Snyder  <msnyder@redhat.com>
481
482         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
483         instead of bfd_get_arch_size.  Don't bail out just because
484         there's no exec_bfd.
485         
486         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
487         * p-valprint.c (pascal_object_print_value): Ditto.
488         * somread.c (som_symtab_read): Ditto.
489         * symfile.c (simple_free_overlay_region_table): Ditto.
490         * valops.c (value_assign): Ditto.
491
492         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
493         use tilde_expand and strerror for opening save-tracepoints file.
494
495         * thread-db.c (thread_db_new_objfile): Indendation fix.
496
497         * infptrace.c (GDB_MAX_ALLOCA): New define.
498         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
499         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte, 
500         can be overridden with whatever value is appropriate to the host).
501         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
502         alloca to allocate potentially large buffer.
503         * rs6000-nat.c (child_xfer_memory): Ditto.
504         * symm-nat.c (child_xfer_memory): Ditto.
505         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
506
507 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
508
509         From Nick Clifton  <nickc@redhat.com>
510         * d10v-tdep.c: Set STACK_START to 0x200bffe.
511
512 2002-01-07  Michael Snyder  <msnyder@redhat.com>
513
514         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): 
515         Don't use exec_bfd if it's NULL.
516
517 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
518
519         * valops.c (value_arg_coerce): Fix formatting. 
520
521 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
522
523         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
524         * gnu-nat.c: Ditto.
525
526 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
527
528         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
529         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
530         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
531         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
532         z8k-coff have not been multi-arched.  Update z8k-coff build
533         status.
534
535 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
536
537         * MAINTAINERS: Mark a29k target as obsolete.
538         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
539         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
540         comments.
541         * NEWS: Note that a29k targets are obsolete.
542         * a29k-tdep.c: Mark as obsolete.
543         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
544         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
545         a29k-*-vxworks* targets as obsolete.
546         * remote-adapt.c: Obsolete.
547         * remote-eb.c: Obsolete.
548         * remote-mm.c: Obsolete.
549         * remote-udi.c: Obsolete.
550         * config/a29k/a29k-udi.mt: Obsolete.
551         * config/a29k/a29k.mt: Obsolete.
552         * config/a29k/tm-a29k.h: Obsolete.
553         * config/a29k/tm-vx29k.h: Obsolete.
554         * config/a29k/vx29k.mt: Obsolete.
555
556 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
557
558         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
559         with BFD_ENDIAN_BIG.
560
561 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
562
563         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
564         * configure, config.in: Re-generate.
565         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
566         * defs.h: Do not include <endian.h>.
567
568 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
569
570         * acconfig.h (HAVE_PT_GETXMMREGS): New.
571         * config.in: Regenerate.
572         * configure.in: Update copyright years.
573         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
574         * configure: Regenerate.
575         * i386bsd-nat.c: Update copyright years.
576         (fill_gregset): Use regcache_collect.
577         (fetch_inferior_registers): Only fetch integer registers
578         if requested to do so.  Add support for XMM registers
579         using PT_GETXMMREGS.
580         (store_inferior_registers): Only store integer registers
581         if requested to do so.  Add support for XMM registers
582         using PT_SETXMMREGS.
583         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
584         (store_inferior_registers): Remove.
585         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
586         (fetch_elfcore_registers): New function.
587         (i386nbsd_elfcore_fns): New.
588         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
589         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
590         i386bsd-nat.o.
591         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
592         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
593         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
594         * config/i386/tm-nbsd.h: Update copyright years.
595         (HAVE_SSE_REGS): Define.
596         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
597         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
598         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
599         (SIGCONTEXT_PC_OFFSET): Remove.
600         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
601
602 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
603
604         * configure.tgt: Remove powerpc-*-macos* target.
605         * config/m68k/xm-mpw.h: Delete file.
606         * config/xm-mpw.h: Delete file.
607         * ser-mac.c: Delete file.
608         * mpw-make.sed: Delete file.
609         * mpw-config.in: Delete file.
610         * mac-xdep.c: Delete file.
611         * mac-gdb.r: Delete file.
612         * mac-defs.h: Delete file.
613         * mac-nat.c: Delete file.
614         * config/powerpc/macos.mh: Delete file.
615         * config/powerpc/macos.mt: Delete file.
616         * config/powerpc/nm-macos.h: Delete file.
617         * config/powerpc/tm-macos.h: Delete file.
618         * source.c (openp, open_source_file): Remove obsolete code.
619         * top.c (gdb_readline): Ditto.
620         * utils.c (query): Ditto.
621         * event-top.c (display_gdb_prompt): Ditto.
622         * Makefile.in (ser-mac.o): Delete obsolete target.
623         * NEWS: Update.
624
625 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
626
627         * defs.h (BIG_ENDIAN): Delete macro definition.
628         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
629         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
630         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
631         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
632         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
633         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
634         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
635         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
636         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
637         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
638         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
639         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
640         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
641         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
642         * gdbarch.c: Re-generate.
643
644 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
645
646         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
647         for core files.
648
649 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
650
651         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
652
653 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
654
655         * value.h (value_ptr): Delete typedef.
656
657 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
658
659         * i386nbsd-nat.c: Update copyright years.
660         Include i386-tdep.h.
661
662 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
663
664         * stabsread.c: Update copyright years.
665
666         From Debashis Mahata <debashis.mahata@wipro.com>:
667         (read_struct_fields): Deal with Sun C compiler erroneous stab
668         output for structs and unions.
669         Fix PR gdb/269.
670
671 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
672
673         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
674         prototype.
675
676 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
677
678         * cp-abi.c: Fix whitespace.
679         (baseclass_offset): New wrapper function.
680         * cp-abi.h (baseclass_offset): Add prototype.
681         (struct cp_abi_ops): Add baseclass_offset pointer.
682
683         * valops.c (vb_match): Move to...
684         * gnu-v2-abi.c (vb_match): here.
685         * valops.c (baseclass_offset): Move to...
686         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
687
688         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
689
690         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
691         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
692         * hpacc-abi.c (init_hpacc_ops): Likewise.
693
694 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
695
696         * valops.c (find_overload_match): Accept obj as a
697         reference parameter.  Update it before returning.
698         * value.h (find_overload_match): Update prototype.
699         * eval.c (evaluate_subexp_standard): Pass object to
700         find_overload_match by reference.
701
702 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
703
704         * valarith.c: Replace value_ptr with struct value pointer.  Remove
705         register attribute from value declarations.
706         * valops.c: Ditto.
707         * value.h: Ditto.
708         * scm-lang.c (scm_lookup_name): Ditto.
709
710 2002-01-03  Michael Snyder  <msnyder@redhat.com>
711  
712         Abstract the functionality of iterating over mapped memory
713         regions into a general purpose iterator function.
714         * procfs.c (iterate_over_mappings): New function, general purpose 
715         iterator for memory sections.
716         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
717         (solib_mappings_callback): New function, callback for above.
718         (info_proc_mappings): Reimpliment using iterate_over_mappings.
719         (info_mappings_callback): New function, callback for above.
720
721         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
722
723 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
724
725         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
726         * i386-tdep.c: Include "elf-bfd.h".
727         (process_note_abi_tag_sections): New function.
728         (i386_gdbarch_init): Add code to recognize various OS/ABI
729         combinations.
730
731         * maint.c (_initialize_maint_cmds): Add missing \ in
732         string-literal.
733
734 For older changes see ChangeLog-2001
735 \f
736 Local Variables:
737 mode: change-log
738 left-margin: 8
739 fill-column: 74
740 version-control: never
741 End: