* infcmd.c (run_command): Check that the `exec' target layer's BFD
[external/binutils.git] / gdb / ChangeLog
1 2002-01-21  Jim Blandy  <jimb@redhat.com>
2
3         * infcmd.c (run_command): Check that the `exec' target layer's BFD
4         is up-to-date before running the program, not just when a program
5         exits.
6
7 2002-01-21  Fred Fish  <fnf@redhat.com>
8
9         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10         when we have found all instructions we are looking for.
11
12 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
13
14         * arm-tdep.c (arm_register_name): New function.
15         (arm_registers_names): Make static.
16         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
17         (arm_register_name): Declare.
18         (REGISTER_NAME): Use it.
19
20 2002-01-21  Richard Earnshaw  <rearnsha@arm.com>
21             Kevin Buettner  <kevinb@redhat.com>
22
23         Convert arm targets to new FRAME interface.
24         * arm-tdep.c (struct frame_extra_info): Remove fsr.
25         (arm_frame_find_save_regs): Delete.
26         (arm_frame_init_saved_regs): New.
27         (arm_init_extra_frame_info): Alloacte saved_regs as required.
28         Allocate extra_info as required.  Convert all uses of fsr.regs
29         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
30         to use extra_info.
31         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
32         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
33         (check_prologue_cache, save_prologue_cache): Likewise.
34         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
35         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
36         (FRAME_FIND_SAVED_REGS): Delete.
37         (arm_frame_find_saved_regs): Delete prototype.
38         (arm_frame_init_saved_regs): New prototype.
39         (FRAME_INIT_SAVED_REGS): Define.
40
41 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
42
43         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
44
45 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
46
47         From Jeff Law <law@redhat.com>:
48         * infttrace.c: Include <sys/pstat.h>.
49         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
50         exec file if the ttrace equivalent fails.
51
52 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
53
54         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
55         (closeLogFile): Ditto.
56
57 2002-01-20  Michael Chastain  <mec@shout.net>
58
59         * top.c (print_gdb_version): Bump copyright year to 2002.
60
61 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
62
63         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
64         Zannoni and Eli Zaretskii.
65
66 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
67
68         * buildsym.c: Update copyright years.
69         * c-typeprint.c: Likewise.
70         * dwarf2read.c: Likewise.
71         * f-typeprint.c: Likewise.
72         * gdbtypes.c: Likewise.
73         * gdbtypes.h: Likewise.
74         * hp-symtab-read.c: Likewise.
75         * hpread.c: Likewise.
76         * mdebugread.c: Likewise.
77         * p-typeprint.c: Likewise.
78
79 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
80
81         * remote-sim.c (gdbsim_open): Simplify code testing the macro
82         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
83         byte-order selectable.
84         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
85         * arch-utils.c: Ditto.
86         (set_endian): Ditto.
87         (set_endian_from_file): Ditto.
88         * gdbserver/low-sim.c (create_inferior): Ditto.
89         * gdbarch.sh: Ditto.
90         * gdbarch.h: Re-generate.
91         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
92         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE): 
93         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE): 
94         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
95         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
96         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P): 
97         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE): 
98         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
99         macro definition.
100         * config/mips/tm-wince.h: Remove #undef of macro
101         TARGET_BYTE_ORDER_SELECTABLE.
102         * config/sh/tm-wince.h: Ditto.
103
104 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
105
106         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
107         member function fields.  Add accessor macro
108         TYPE_FN_FIELD_ARTIFICIAL.
109         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
110         * c-typeprint.c (c_type_print_base): Skip artificial member
111         functions.
112
113 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
114
115         * f-typeprint.c: Delete unused function f_type_print_args.
116         * p-typeprint.c: Delete unused function pascal_type_print_args.
117
118 2002-01-20  Daniel Jacobowitz  <drow@mvista.com>
119
120         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
121         comment.  Add ``artificial'' to ``union field_location''.
122
123         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
124
125         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
126         * mdebugread.c (parse_symbol): Likewise.
127         * stabsread.c (define_symbol): Likewise.
128         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
129         initializing TYPE_FIELD_BITPOS to n (obsolete).
130         (hpread_doc_function_type): Likewise.
131         * hpread.c (hpread_function_type): Likewise.
132
133 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
134
135         * configure.in (host_makefile_frag): Only require a host makefile
136         fragment when a native build.
137         * configure: Re-generate.
138
139 2002-01-20  Andrew Cagney  <ac131313@redhat.com>
140
141         * doublest.h (floatformat_from_type): Declare.
142         * doublest.c (floatformat_from_type): New function.
143         (convert_typed_floating): Use.
144
145         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
146         call to function floatformat_from_type.
147
148         * gdbarch.sh (IEEE_FLOAT): Delete.
149         * gdbarch.h, gdbarch.c: Re-generate.
150         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
151         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
152         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
153         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
154         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
155         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
156         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
157         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
158         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
159         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
160         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
161         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
162
163         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
164         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
165         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
166         * sh-tdep.c (sh_gdbarch_init): Ditto.
167         * mips-tdep.c (mips_gdbarch_init): Ditto.
168         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
169         * cris-tdep.c (cris_gdbarch_init): Ditto.
170
171 2002-01-20  Jiri Smid  <smid@suse.cz>
172
173         * configure.host, configure.tgt: Support x86-64.
174         * NEWS: Note new target x86-64.
175
176         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
177         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
178         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
179         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
180         x86-64-linux-nat.o): Fix dependencies.
181
182 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
183
184         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
185         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
186         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
187         * config/sparc/xm-sun4os4.h: Delete file.
188         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
189
190 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
191
192         * config/sparc/sparclynx.mh (XM_FILE): Delete.
193         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
194         * config/m68k/m68klynx.mh (XM_FILE): Delete.
195         * config/i386/i386lynx.mh (XM_FILE): Delete.
196         * config/rs6000/xm-rs6000ly.h: Delete file.
197         * config/sparc/xm-sparclynx.h: Delete file.
198         * config/m68k/xm-m68klynx.h: Delete file.
199         * config/i386/xm-i386lynx.h: Delete file.
200         * config/xm-lynx.h: Delete file.
201         * config/djgpp/fnchange.lst: Update.
202
203 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
204
205         * alpha-tdep.c (alpha_register_byte): New function.
206         (alpha_register_raw_size): Ditto.
207         (alpha_register_virtual_size): Ditto.
208         (alpha_skip_prologue_internal): Renamed from
209         alpha_skip_prologue.
210         (alpha_skip_prologue): New version that calls
211         alpha_skip_prologue_internal.
212         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
213         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
214         second argument from alpha_skip_prologue.
215         (REGISTER_BYTE): Use alpha_register_byte.
216         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
217         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
218         (FRAMELESS_FUNCTION_INVOCATION): Use
219         generic_frameless_function_invocation_not.
220         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
221         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
222
223 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
224
225         * config/mips/xm-news-mips.h: Delete file.
226         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
227
228         * config/m88k/xm-m88k.h: Delete file.
229         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
230         * config/m88k/xm-delta88v4.h: Ditto.
231         * config/m88k/xm-delta88.h: Ditto.
232
233         * config/alpha/xm-fbsd.h: Delete file.
234         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
235
236         * config/sparc/xm-sparc.h: Delete file.
237         * Makefile.in (xm-sun4os4.h): Delete dependency.
238         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
239         * config/sparc/xm-sun4os4.h: Ditto.
240         * config/sparc/xm-linux.h: Ditto.
241
242         * config/i386/xm-windows.h: Delete file.
243
244 2002-01-19  Andrew Cagney  <ac131313@redhat.com>
245
246         * utils.c: Include <sys/param.h> for MAXPATHLEN.
247         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
248
249 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
250
251         * alpha-tdep.c (alpha_call_dummy_words): New.
252         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
253         (CALL_DUMMY_P): Define.
254         (CALL_DUMMY_WORDS): Define.
255         (SIZEOF_CALL_DUMMY_WORDS): Define.
256
257 2002-01-19  Per Bothner  <per@bothner.com>
258
259         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
260         isn't NULL, which can happen with some gcj-3.x-produced code.
261
262 2002-01-19  Jason Thorpe  <thorpej@wasabisystems.com>
263
264         * alpha-tdep.c (alpha_register_virtual_type): New function.
265         (alpha_init_frame_pc_first): Ditto.
266         (alpha_fix_call_dummy): Ditto.
267         (alpha_store_struct_return): Ditto.
268         (alpha_extract_struct_value_address): Ditto.
269         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
270         alpha_register_virtual_type.
271         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
272         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
273         alpha_extract_struct_value_address.
274         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
275         (INIT_FRAME_PC): Use init_frame_pc_noop.
276         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
277
278 2002-01-19  Mark Kettenis  <kettenis@gnu.org>
279
280         * i386gnu-nat.c: Include "i386-tdep.h".
281         (fetch_fpregs): Simplify code dealing with uninitialized floating
282         point states such that it doesn't require FP7_REGNUM.
283
284 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
285
286         * alpha-tdep.c (frame_extra_info): New.
287         (alpha_find_saved_regs): Make static.  Use
288         frame->extra_info.
289         (alpha_frame_init_saved_regs): New function.
290         (alpha_frame_saved_pc): Use frame->extra_info.
291         (temp_saved_regs): Don't declare as struct frame_saved_regs.
292         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
293         (init_extra_frame_info): Rename to...
294         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
295         (alpha_print_extra_frame_info): New function.
296         (alpha_frame_locals_address): Ditto.
297         (alpha_frame_args_address): Ditto.
298         (alpha_pop_frame): Use frame->extra_info.
299         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
300         alpha_frame_args_address.
301         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
302         (alpha_find_saved_regs): Remove prototype.
303         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
304         (EXTRA_FRAME_INFO): Remove.
305         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
306         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
307
308 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
309
310         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
311         (alpha_cannot_fetch_register): Ditto.
312         (alpha_cannot_store_register): Ditto.
313         (alpha_register_convertible): Ditto.
314         (alpha_use_struct_convention): Ditto.
315         * config/alpha/tm-alpha.h: Update copyright years.
316         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
317         (INNER_THAN): Use core_addr_lessthan.
318         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
319         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
320         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
321         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
322         (FRAME_CHAIN): Remove unnecessary cast.
323
324 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
325
326         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
327         obsolete.
328
329 2002-01-18  Andrew Cagney  <ac131313@redhat.com>
330
331         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
332         * monitor.c, remote-array.c, remote-bug.c: Ditto.
333         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
334         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
335         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
336         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
337         * x86-64-linux-nat.c: Ditto.
338
339 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
340
341         * alpha-tdep.c (alpha_register_name): New function.
342         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
343         (REGISTER_NAME): Define.
344
345 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
346
347         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
348
349 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
350
351         * alpha-tdep.c: Update copyright years.
352         (alpha_next_pc): New function.
353         (alpha_software_single_step): Ditto.
354         * config/alpha/tm-alpha.h: Add prototype for
355         alpha_software_single_step.
356
357 2002-01-18  Jason Thorpe  <thorpej@wasabisystems.com>
358
359         * alphabsd-nat.c: Update copyright years.
360         (fill_gregset): Use regcache_collect.
361         (fill_fpregset): Likewise.
362         (fetch_inferior_registers): Only fetch integer registers
363         if requested to do so.
364         (store_inferior_registers): Only store integer registers
365         if requested to do so.
366
367 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
368
369         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
370         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
371         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
372         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
373         * config/alpha/fbsd.mh (XDEPFILES): Delete.
374         * config/arm/linux.mh (XDEPFILES): Delete.
375         * config/arm/nbsd.mh (XDEPFILES): Delete.
376         * config/i386/i386dgux.mh (XDEPFILES): Delete.
377         * config/i386/i386sol2.mh (XDEPFILES): Delete.
378         * config/i386/i386m3.mh (XDEPFILES): Delete.
379         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
380         * config/i386/i386gnu.mh (XDEPFILES): Delete.
381         * config/i386/fbsd.mh (XDEPFILES): Delete.
382         * config/i386/i386bsd.mh (XDEPFILES): Delete.
383         * config/i386/i386sco5.mh (XDEPFILES): Delete.
384         * config/i386/i386v4.mh (XDEPFILES): Delete.
385         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
386         * config/i386/i386sco4.mh (XDEPFILES): Delete.
387         * config/i386/i386aix.mh (XDEPFILES): Delete.
388         * config/i386/go32.mh (XDEPFILES): Delete.
389         * config/i386/cygwin.mh (XDEPFILES): Delete.
390         * config/i386/i386lynx.mh (XDEPFILES): Delete.
391         * config/i386/i386mach.mh (XDEPFILES): Delete.
392         * config/i386/i386v32.mh (XDEPFILES): Delete.
393         * config/i386/linux.mh (XDEPFILES): Delete.
394         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
395         * config/i386/ncr3000.mh (XDEPFILES): Delete.
396         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
397         * config/i386/i386sco.mh (XDEPFILES): Delete.
398         * config/i386/i386v.mh (XDEPFILES): Delete.
399         * config/i386/nbsd.mh (XDEPFILES): Delete.
400         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
401         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
402         * config/i386/symmetry.mh (XDEPFILES): Delete.
403         * config/i386/obsd.mh (XDEPFILES): Delete.
404         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
405         * config/ia64/linux.mh (XDEPFILES): Delete.
406         * config/ia64/aix.mh (XDEPFILES): Delete.
407         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
408         * config/m68k/dpx2.mh (XDEPFILES): Delete.
409         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
410         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
411         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
412         * config/m68k/linux.mh (XDEPFILES): Delete.
413         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
414         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
415         * config/m68k/nbsd.mh (XDEPFILES): Delete.
416         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
417         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
418         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
419         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
420         * config/m88k/delta88.mh (XDEPFILES): Delete.
421         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
422         * config/m88k/m88k.mh (XDEPFILES): Delete.
423         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
424         * config/mips/linux.mh (XDEPFILES): Delete.
425         * config/mips/irix6.mh (XDEPFILES): Delete.
426         * config/mips/irix5.mh (XDEPFILES): Delete.
427         * config/mips/irix4.mh (XDEPFILES): Delete.
428         * config/mips/irix3.mh (XDEPFILES): Delete.
429         * config/mips/decstation.mh (XDEPFILES): Delete.
430         * config/mips/mipsm3.mh (XDEPFILES): Delete.
431         (NATDEPFILES): Move core-aout.o to here.
432         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
433         * config/pa/hpux1020.mh (XDEPFILES): Delete.
434         * config/pa/hppabsd.mh (XDEPFILES): Delete.
435         * config/pa/hppahpux.mh (XDEPFILES): Delete.
436         * config/pa/hpux11w.mh (XDEPFILES): Delete.
437         * config/pa/hppaosf.mh (XDEPFILES): Delete.
438         * config/pa/hpux11.mh (XDEPFILES): Delete.
439         * config/powerpc/aix.mh (XDEPFILES): Delete.
440         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
441         * config/powerpc/linux.mh (XDEPFILES): Delete.
442         * config/romp/rtbsd.mh: Rename XDEPFILES.
443         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
444         * config/rs6000/aix4.mh (XDEPFILES): Delete.
445         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
446         * config/s390/s390.mh (XDEPFILES): Delete.
447         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
448         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
449         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
450         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
451         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
452         * config/sparc/nbsd.mh (XDEPFILES): Delete.
453         * config/sparc/linux.mh (XDEPFILES): Delete.
454         * config/vax/vaxult.mh (XDEPFILES): Delete.
455         * config/vax/vaxult2.mh (XDEPFILES): Delete.
456         * Makefile.in (DEPFILES): Remove XDEPFILES.
457
458 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
459
460         * utils.c (internal_verror): Fix comments, default is yes not no.
461         Update queries to match.  Default to quit and dump core.
462
463 2002-01-17  Andrew Cagney  <ac131313@redhat.com>
464
465         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
466         copyright.
467         * defs.h, event-top.c, gdbcmd.h: Ditto.
468         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
469         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
470         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
471         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
472         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
473         * mi/mi-main.c:Ditto.
474
475         * stack.c, symfile.c: Update copyright.
476
477 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
478
479         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
480         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
481         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
482         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
483
484 2002-01-17  Daniel Jacobowitz  <drow@mvista.com>
485
486         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
487         * gdbserver/low-lynx.c (myattach): Likewise.
488         * gdbserver/low-nbsd.c (myattach): Likewise.
489         * gdbserver/low-sim.c (myattach): Likewise.
490         * gdbserver/low-sparc.c (myattach): Likewise.
491         * gdbserver/low-sun3.c (myattach): Likewise.
492
493         * gdbserver/low-linux.c (myattach): New function.
494
495         * gdbserver/server.c (attach_inferior): New function.
496         (main): Handle "--attach".
497
498 2002-01-16  Andrew Cagney  <ac131313@redhat.com>
499
500         * MAINTAINERS (language support): Daniel Jacobwitz is C++
501         maintainer.
502
503 2002-01-15  Daniel Jacobowitz  <drow@mvista.com>
504
505         * c-typeprint.c (is_type_conversion_operator): Add additional
506         check for non-conversion operators.
507
508 2002-01-15  Michael Snyder  <msnyder@redhat.com>
509
510         * linux-proc.c: Add "info proc" command, a la procfs.c.
511         (read_mapping): New function, abstract and re-use code.
512         (linux_find_memory_regions): Use new func read_mapping.
513         (linux_info_proc_cmd): New function, implement "info proc".
514         (_initialize_linux_proc): Add new command "info proc".
515
516 2002-01-15  Michael Snyder  <msnyder@redhat.com>
517
518         * symfile.c (generic_load): Use bfd_map_over_sections method
519         instead of manipulating bfd structure members directly.
520         (add_section_size_callback): New function, bfd sections callback
521         used by generic_load.
522         (load_sections_callback): New function, bfd sections callback
523         used by generic_load.
524
525 2002-01-15  Elena Zannoni  <ezannoni@redhat.com>
526
527         [Based on work by Jim Blandy]
528         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
529         (builtin_type_vec128): Export.
530         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
531         types.
532         (builtin_type_vec128): New builtin type for 128 bit vector
533         registers.
534         (build_gdbtypes): Initialize builtin_type_v16qi and
535         builtin_type_v8hi. Create the vec128 register builtin type
536         structure.
537         (build_builtin_type_vec128): New function.
538         (_initialize_gdbtypes): Register builtin_type_v16qi and
539         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
540         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
541         AltiVec register to new builtin type.
542
543 2001-01-15  Daniel Jacobowitz  <drow@mvista.com>
544
545         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
546         to make_cv_type.
547
548 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
549
550         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
551         CLEAN_UP_REGISTER_VALUE.
552         * regcache.c (supply_register): Update only call.
553
554 2002-01-14  Andrew Cagney  <ac131313@redhat.com>
555
556         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
557         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
558         a29k-*-vxworks* targets as obsolete.
559
560 2002-01-14  Michael Snyder  <msnyder@redhat.com>
561
562         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
563         until we can resolve portability issues.
564         * gregset.h: Remove references to fpxregs.
565         * gcore.c (gcore_command): Initialize note_sec to NULL.
566
567 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
568
569         * signals.c (target_signal_to_name): Rewrite.  Only use
570         signals[].name when in bounds and non-NULL.
571
572 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
573
574         From Petr Ledvina <ledvinap@kae.zcu.cz>:
575         * signals.c (target_signal_to_name): Verify that SIG is within the
576         bounds of the signals array.
577
578 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
579
580         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
581
582 2002-01-13  Keith Seitz  <keiths@redhat.com>
583
584         * stack.c (print_frame_info_base): Print the frame's pc
585         only if when print_frame_info_listing_hook is not defined.
586
587 2002-01-13  Keith Seitz  <keiths@redhat.com>
588
589         * varobj.c (varobj_set_value): Make sure that there were no
590         errors evaluating the object before attempting to set its
591         value.
592         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
593         so this offset adjustment is no longer necessary.
594         (create_child): Don't set the error flag if the child is
595         a CPLUS_FAKE_CHILD.
596         (value_of_child): If value_fetch_lazy fails, return NULL
597         so that callers will be notified that an error occurred.
598         (c_value_of_variable): Delay check of variable's validity
599         until later. We actually want all structs and unions to have
600         the value "{...}".
601         Do not return "???" for variables which could not be evaluated.
602         This error condition must be returned to the caller so that it
603         can get the error condition from gdb.
604         (cplus_name_of_child): Adjust index for vptr before figuring
605         out the name of the child.
606         (cplus_value_of_child): If a child's (real) parent is not valid,
607         don't even bother trying to give a value for it. Just return
608         an error. Change all instances in this function.
609         (cplus_type_of_child): If our parent is one of the "fake"
610         parents, we need to get at the type of the real parent, and
611         derive the child's true type using this information.
612
613 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
614
615         From 2002-01-09 John Marshall <johnm@falch.net>:
616         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
617         sources.redhat.com, and tweak some related URLs which had
618         suffered from linkrot.
619
620 2002-01-13  Andrew Cagney  <ac131313@redhat.com>
621
622         From Jeff law:
623         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
624         structures passed in registers.
625
626 2002-01-13  Eli Zaretskii  <eliz@is.elta.co.il>
627
628         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
629         white space which prevented compilation.  Reported by DSK
630         <dsk@student.unsw.edu.au>.
631
632 2002-01-11  Michael Snyder  <msnyder@redhat.com>
633
634         * symfile.c (build_section_addr_info_from_section_tab):
635         Use bfd access method instead of manipulating bfd directly.
636         (syms_from_objfile): Ditto.
637         (simple_overlay_update_1): Ditto.
638         (simple_overlay_update): Ditto.
639         (generic_load): Ditto.
640         (overlay_unmapped_address): FIXME comment, bfd access methods.
641         (sections_overlap): FIXME comment, bfd access methods.
642         (pc_in_mapped_range): FIXME comment, bfd access methods.
643         (pc_in_unmapped_range): FIXME comment, bfd access methods.
644         (section_is_mapped): FIXME comment, bfd access methods.
645         (section_is_overlay): FIXME comment, bfd access methods.
646
647         * symfile.c (generic_load): Whitespace and long line cleanups.
648         Remove duplicate variable, change several local variables to
649         more appropriate data types.
650         (print_transfer_performance): Use %lu instead of %ld for ulongs.
651
652 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
653
654         From Peter Schauer:
655         * language.c (longest_local_hex_string_custom): Use phex_nz to
656         convert NUM to a hex string.
657
658 2002-01-12  Elena Zannoni  <ezannoni@redhat.com>
659
660         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
661         the function.
662         Update Copyright year.
663
664 2002-01-12  Andrew Cagney  <ac131313@redhat.com>
665
666         * language.c (longest_raw_hex_string): Delete unused function.
667
668 2002-01-11  Petr Sorfa  <petrs@caldera.com>
669
670         * MAINTAINERS (write-after-approval): Add myself.
671         * dwarf2read.c (read_tag_string_type): Handling of
672         DW_AT_byte_size.
673         (read_tag_string_type): FORTRAN fix to prevent propagation of
674         first string size.
675         (set_cu_language): Handling of DW_LANG_Fortran95
676
677 2002-01-11  Richard Earnshaw  <rearnsha@arm.com>
678
679         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
680         GETPID(inferior_ptid).
681         (store_inferior_registers): Likewise.
682
683 2002-01-10  Jason Merrill  <jason@redhat.com>
684
685         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
686         Fix DW_OP_minus.
687
688 2002-01-10  Andrew Cagney  <ac131313@redhat.com>
689
690         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
691         and bfd/elf32-sh-nbsd.c.
692
693 2002-01-10  Michael Snyder  <msnyder@redhat.com>
694
695         * NEWS: Mention --pid and corefile/proc-id behavior change.
696
697         * Makefile.in: Add rules for gcore.o and linux-proc.o.
698         * gcore.c: Include cli/cli-decode.h instead of command.h.
699
700         * main.c (captured_main): Add new command line option "--pid".
701         If the second command line argument (following the symbol-file)
702         begins with a digit, try to attach to it before trying to open
703         it as a corefile.
704         (print_gdb_help): Document the "--pid" argument.
705
706 2002-01-10  Eli Zaretskii  <eliz@is.elta.co.il>
707
708         * completer.c (command_completer): New function.
709
710         * completer.h <command_completer>: Add prototype.
711
712         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
713         completer for the "help" command.
714
715 2002-01-09  Jason Merrill  <jason@redhat.com>
716
717         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
718
719 2002-01-09  Michael Snyder  <msnyder@redhat.com>
720
721         * i386-linux-nat.c (fill_fpxregset): Make global.
722         (store_fpxregset): Ditto.
723
724         * gregset.h (gdb_fpxregset_t): Define.
725         (supply_fpxregset): Prototype.
726         (fill_fpxregset): Prototype.
727
728         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
729
730 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
731
732         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
733         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
734         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
735
736 2002-01-09  Andrew Cagney  <ac131313@redhat.com>
737
738         * MAINTAINERS: Update target maintainer rules so that any
739         Maintainer can approve a tested patch for a maintenance-only
740         target.
741
742 2002-01-09  Richard Earnshaw  <rearnsha@arm.com>
743
744         * MAINTAINERS (write-after-approval): Add myself.
745
746         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
747         IN_SIGTRAMP.
748
749 2002-01-08  Michael Snyder  <msnyder@redhat.com>
750
751         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
752         real name of the executable, rather than the /proc name.
753
754 2002-01-03  Michael Snyder  <msnyder@redhat.com>
755
756         Implement a "generate-core-file" command in gdb, save target state.
757         * gcore.c: New file.  Implement new command 'generate-core-file'.
758         Save a corefile image of the current state of the inferior.
759         * linux-proc.c: Add linux-specific code for saving corefiles.
760         * target.h (struct target_ops): Add new target vectors for saving
761         corefiles; to_find_memory_regions and to_make_corefile_notes.
762         (target_find_memory_regions): New macro.
763         (target_make_corefile_notes): New macro.
764         * target.c (update_current_target): Inherit new target methods.
765         (dummy_find_memory_regions): New place-holder method.
766         (dummy_make_corefile_notes): New place-holder method.
767         (init_dummy_target): Initialize new dummy target vectors.
768         * exec.c (exec_set_find_memory_regions): New function.
769         Allow the exec_ops vector for memory regions to be taken over.
770         (exec_make_note_section): New function, target vector method.
771         * defs.h (exec_set_find_memory_regions): Export prototype.
772         * procfs.c (proc_find_memory_regions): New function, corefile method.
773         (procfs_make_note_section): New function, corefile method.
774         (init_procfs_ops): Set new target vector pointers.
775         (find_memory_regions_callback): New function.
776         (procfs_do_thread_registers): New function.
777         (procfs_corefile_thread_callback): New function.
778         * sol-thread.c (sol_find_memory_regions): New function.
779         (sol_make_note_section): New function.
780         (init_sol_thread_ops): Initialize new target vectors.
781         * inftarg.c (inftarg_set_find_memory_regions): New function.
782         Allow to_find_memory_regions vector to be taken over.
783         (inftarg_set_make_corefile_notes): New function.
784         Allow to_make_corefile_notes vector to be taken over.
785         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
786         interface layer if not target_has_execution (may be a corefile).
787         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
788         * config/sparc/sun4sol2.mh: Ditto.
789         * config/alpha/alpha-linux.mh: Ditto.
790         * config/arm/linux.mh: Ditto.
791         * config/i386/x86-64linux.mh: Ditto.
792         * config/ia64/linux.mh: Ditto.
793         * config/m68k/linux.mh: Ditto.
794         * config/mips/linux.mh: Ditto.
795         * config/powerpc/linux.mh: Ditto.
796         * config/sparc/linux.mh: Ditto.
797
798 2002-01-07  Michael Snyder  <msnyder@redhat.com>
799
800         * arm-linux-nat.c: Remove references to regcache.c internal data
801         (registers[] and register_valid[]).
802
803 2002-01-07  Michael Snyder  <msnyder@redhat.com>
804
805         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
806         so that attaching to a pid will automatically read the process's
807         symbol file and shlibs.
808         * Makefile.in: Add rule for linux-proc.o.
809         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
810         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
811         * config/arm/linux.mh: Ditto.
812         * config/i386/linux.mh: Ditto.
813         * config/i386/x86-64linux.mh: Ditto.
814         * config/ia64/linux.mh: Ditto.
815         * config/m68k/linux.mh: Ditto.
816         * config/mips/linux.mh: Ditto.
817         * config/powerpc/linux.mh: Ditto.
818         * config/sparc/linux.mh: Ditto.
819
820 2002-01-06  Pierre Muller  <muller@ics.u-strasbg.fr>
821
822         * win32-nat.c: Add i386-tdep.h dependency.
823
824 2002-01-07  Michael Snyder  <msnyder@redhat.com>
825
826         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
827         instead of bfd_get_arch_size.  Don't bail out just because
828         there's no exec_bfd.
829
830         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
831         * p-valprint.c (pascal_object_print_value): Ditto.
832         * somread.c (som_symtab_read): Ditto.
833         * symfile.c (simple_free_overlay_region_table): Ditto.
834         * valops.c (value_assign): Ditto.
835
836         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
837         use tilde_expand and strerror for opening save-tracepoints file.
838
839         * thread-db.c (thread_db_new_objfile): Indendation fix.
840
841         * infptrace.c (GDB_MAX_ALLOCA): New define.
842         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
843         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
844         can be overridden with whatever value is appropriate to the host).
845         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
846         alloca to allocate potentially large buffer.
847         * rs6000-nat.c (child_xfer_memory): Ditto.
848         * symm-nat.c (child_xfer_memory): Ditto.
849         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
850
851 2002-01-07  Jackie Smith Cashion  <jsmith@redhat.com>
852
853         From Nick Clifton  <nickc@redhat.com>
854         * d10v-tdep.c: Set STACK_START to 0x200bffe.
855
856 2002-01-07  Michael Snyder  <msnyder@redhat.com>
857
858         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
859         Don't use exec_bfd if it's NULL.
860
861 2002-01-06  Mark Kettenis  <kettenis@gnu.org>
862
863         * valops.c (value_arg_coerce): Fix formatting.
864
865 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
866
867         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
868         * gnu-nat.c: Ditto.
869
870 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
871
872         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
873         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
874         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
875         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
876         z8k-coff have not been multi-arched.  Update z8k-coff build
877         status.
878
879 2002-01-06  Andrew Cagney  <ac131313@redhat.com>
880
881         * MAINTAINERS: Mark a29k target as obsolete.
882         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
883         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
884         comments.
885         * NEWS: Note that a29k targets are obsolete.
886         * a29k-tdep.c: Mark as obsolete.
887         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
888         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
889         a29k-*-vxworks* targets as obsolete.
890         * remote-adapt.c: Obsolete.
891         * remote-eb.c: Obsolete.
892         * remote-mm.c: Obsolete.
893         * remote-udi.c: Obsolete.
894         * config/a29k/a29k-udi.mt: Obsolete.
895         * config/a29k/a29k.mt: Obsolete.
896         * config/a29k/tm-a29k.h: Obsolete.
897         * config/a29k/tm-vx29k.h: Obsolete.
898         * config/a29k/vx29k.mt: Obsolete.
899
900 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
901
902         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
903         with BFD_ENDIAN_BIG.
904
905 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
906
907         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
908         * configure, config.in: Re-generate.
909         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
910         * defs.h: Do not include <endian.h>.
911
912 2002-01-05  Jason Thorpe  <thorpej@wasabisystems.com>
913
914         * acconfig.h (HAVE_PT_GETXMMREGS): New.
915         * config.in: Regenerate.
916         * configure.in: Update copyright years.
917         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
918         * configure: Regenerate.
919         * i386bsd-nat.c: Update copyright years.
920         (fill_gregset): Use regcache_collect.
921         (fetch_inferior_registers): Only fetch integer registers
922         if requested to do so.  Add support for XMM registers
923         using PT_GETXMMREGS.
924         (store_inferior_registers): Only store integer registers
925         if requested to do so.  Add support for XMM registers
926         using PT_SETXMMREGS.
927         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
928         (store_inferior_registers): Remove.
929         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
930         (fetch_elfcore_registers): New function.
931         (i386nbsd_elfcore_fns): New.
932         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
933         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
934         i386bsd-nat.o.
935         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
936         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
937         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
938         * config/i386/tm-nbsd.h: Update copyright years.
939         (HAVE_SSE_REGS): Define.
940         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
941         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
942         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
943         (SIGCONTEXT_PC_OFFSET): Remove.
944         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
945
946 2002-01-05  Andrew Cagney  <ac131313@redhat.com>
947
948         * configure.tgt: Remove powerpc-*-macos* target.
949         * config/m68k/xm-mpw.h: Delete file.
950         * config/xm-mpw.h: Delete file.
951         * ser-mac.c: Delete file.
952         * mpw-make.sed: Delete file.
953         * mpw-config.in: Delete file.
954         * mac-xdep.c: Delete file.
955         * mac-gdb.r: Delete file.
956         * mac-defs.h: Delete file.
957         * mac-nat.c: Delete file.
958         * config/powerpc/macos.mh: Delete file.
959         * config/powerpc/macos.mt: Delete file.
960         * config/powerpc/nm-macos.h: Delete file.
961         * config/powerpc/tm-macos.h: Delete file.
962         * source.c (openp, open_source_file): Remove obsolete code.
963         * top.c (gdb_readline): Ditto.
964         * utils.c (query): Ditto.
965         * event-top.c (display_gdb_prompt): Ditto.
966         * Makefile.in (ser-mac.o): Delete obsolete target.
967         * NEWS: Update.
968
969 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
970
971         * defs.h (BIG_ENDIAN): Delete macro definition.
972         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
973         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
974         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
975         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
976         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
977         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
978         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
979         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
980         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
981         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
982         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
983         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
984         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
985         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
986         * gdbarch.c: Re-generate.
987
988 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
989
990         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
991         for core files.
992
993 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
994
995         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
996
997 2002-01-04  Andrew Cagney  <ac131313@redhat.com>
998
999         * value.h (value_ptr): Delete typedef.
1000
1001 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1002
1003         * i386nbsd-nat.c: Update copyright years.
1004         Include i386-tdep.h.
1005
1006 2002-01-04  Elena Zannoni  <ezannoni@redhat.com>
1007
1008         * stabsread.c: Update copyright years.
1009
1010         From Debashis Mahata <debashis.mahata@wipro.com>:
1011         (read_struct_fields): Deal with Sun C compiler erroneous stab
1012         output for structs and unions.
1013         Fix PR gdb/269.
1014
1015 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
1016
1017         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
1018         prototype.
1019
1020 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
1021
1022         * cp-abi.c: Fix whitespace.
1023         (baseclass_offset): New wrapper function.
1024         * cp-abi.h (baseclass_offset): Add prototype.
1025         (struct cp_abi_ops): Add baseclass_offset pointer.
1026
1027         * valops.c (vb_match): Move to...
1028         * gnu-v2-abi.c (vb_match): here.
1029         * valops.c (baseclass_offset): Move to...
1030         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
1031
1032         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
1033
1034         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
1035         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
1036         * hpacc-abi.c (init_hpacc_ops): Likewise.
1037
1038 2002-01-04  Daniel Jacobowitz  <drow@mvista.com>
1039
1040         * valops.c (find_overload_match): Accept obj as a
1041         reference parameter.  Update it before returning.
1042         * value.h (find_overload_match): Update prototype.
1043         * eval.c (evaluate_subexp_standard): Pass object to
1044         find_overload_match by reference.
1045
1046 2002-01-03  Andrew Cagney  <ac131313@redhat.com>
1047
1048         * valarith.c: Replace value_ptr with struct value pointer.  Remove
1049         register attribute from value declarations.
1050         * valops.c: Ditto.
1051         * value.h: Ditto.
1052         * scm-lang.c (scm_lookup_name): Ditto.
1053
1054 2002-01-03  Michael Snyder  <msnyder@redhat.com>
1055
1056         Abstract the functionality of iterating over mapped memory
1057         regions into a general purpose iterator function.
1058         * procfs.c (iterate_over_mappings): New function, general purpose
1059         iterator for memory sections.
1060         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
1061         (solib_mappings_callback): New function, callback for above.
1062         (info_proc_mappings): Reimpliment using iterate_over_mappings.
1063         (info_mappings_callback): New function, callback for above.
1064
1065         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
1066
1067 2002-01-01  Mark Kettenis  <kettenis@gnu.org>
1068
1069         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
1070         * i386-tdep.c: Include "elf-bfd.h".
1071         (process_note_abi_tag_sections): New function.
1072         (i386_gdbarch_init): Add code to recognize various OS/ABI
1073         combinations.
1074
1075         * maint.c (_initialize_maint_cmds): Add missing \ in
1076         string-literal.
1077
1078 For older changes see ChangeLog-2001
1079 \f
1080 Local Variables:
1081 mode: change-log
1082 left-margin: 8
1083 fill-column: 74
1084 version-control: never
1085 End: