1 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3 * f-typeprint.c: Delete unused function f_type_print_args.
4 * p-typeprint.c: Delete unused function pascal_type_print_args.
6 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
8 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9 comment. Add ``artificial'' to ``union field_location''.
11 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14 * mdebugread.c (parse_symbol): Likewise.
15 * stabsread.c (define_symbol): Likewise.
16 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
17 initializing TYPE_FIELD_BITPOS to n (obsolete).
18 (hpread_doc_function_type): Likewise.
19 * hpread.c (hpread_function_type): Likewise.
21 2002-01-20 Andrew Cagney <ac131313@redhat.com>
23 * configure.in (host_makefile_frag): Only require a host makefile
24 fragment when a native build.
25 * configure: Re-generate.
27 2002-01-20 Andrew Cagney <ac131313@redhat.com>
29 * doublest.h (floatformat_from_type): Declare.
30 * doublest.c (floatformat_from_type): New function.
31 (convert_typed_floating): Use.
33 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
34 call to function floatformat_from_type.
36 * gdbarch.sh (IEEE_FLOAT): Delete.
37 * gdbarch.h, gdbarch.c: Re-generate.
38 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
39 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
40 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
41 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
42 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
43 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
44 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
45 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
46 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
47 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
48 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
49 * config/arc/tm-arc.h (IEEE_FLOAT): Ditto.
50 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
52 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
53 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
54 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
55 * sh-tdep.c (sh_gdbarch_init): Ditto.
56 * mips-tdep.c (mips_gdbarch_init): Ditto.
57 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
58 * cris-tdep.c (cris_gdbarch_init): Ditto.
60 2002-01-20 Jiri Smid <smid@suse.cz>
62 * configure.host, configure.tgt: Support x86-64.
63 * NEWS: Note new target x86-64.
65 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
66 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
67 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
68 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
69 x86-64-linux-nat.o): Fix dependencies.
71 2002-01-19 Andrew Cagney <ac131313@redhat.com>
73 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
74 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
75 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
76 * config/sparc/xm-sun4os4.h: Delete file.
77 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
79 2002-01-19 Andrew Cagney <ac131313@redhat.com>
81 * config/sparc/sparclynx.mh (XM_FILE): Delete.
82 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
83 * config/m68k/m68klynx.mh (XM_FILE): Delete.
84 * config/i386/i386lynx.mh (XM_FILE): Delete.
85 * config/rs6000/xm-rs6000ly.h: Delete file.
86 * config/sparc/xm-sparclynx.h: Delete file.
87 * config/m68k/xm-m68klynx.h: Delete file.
88 * config/i386/xm-i386lynx.h: Delete file.
89 * config/xm-lynx.h: Delete file.
90 * config/djgpp/fnchange.lst: Update.
92 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
94 * alpha-tdep.c (alpha_register_byte): New function.
95 (alpha_register_raw_size): Ditto.
96 (alpha_register_virtual_size): Ditto.
97 (alpha_skip_prologue_internal): Renamed from
99 (alpha_skip_prologue): New version that calls
100 alpha_skip_prologue_internal.
101 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
102 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
103 second argument from alpha_skip_prologue.
104 (REGISTER_BYTE): Use alpha_register_byte.
105 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
106 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
107 (FRAMELESS_FUNCTION_INVOCATION): Use
108 generic_frameless_function_invocation_not.
109 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
110 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
112 2002-01-19 Andrew Cagney <ac131313@redhat.com>
114 * config/mips/xm-news-mips.h: Delete file.
115 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
117 * config/m88k/xm-m88k.h: Delete file.
118 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
119 * config/m88k/xm-delta88v4.h: Ditto.
120 * config/m88k/xm-delta88.h: Ditto.
122 * config/alpha/xm-fbsd.h: Delete file.
123 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
125 * config/sparc/xm-sparc.h: Delete file.
126 * Makefile.in (xm-sun4os4.h): Delete dependency.
127 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
128 * config/sparc/xm-sun4os4.h: Ditto.
129 * config/sparc/xm-linux.h: Ditto.
131 * config/i386/xm-windows.h: Delete file.
133 2002-01-19 Andrew Cagney <ac131313@redhat.com>
135 * utils.c: Include <sys/param.h> for MAXPATHLEN.
136 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
138 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
140 * alpha-tdep.c (alpha_call_dummy_words): New.
141 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
142 (CALL_DUMMY_P): Define.
143 (CALL_DUMMY_WORDS): Define.
144 (SIZEOF_CALL_DUMMY_WORDS): Define.
146 2002-01-19 Per Bothner <per@bothner.com>
148 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
149 isn't NULL, which can happen with some gcj-3.x-produced code.
151 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
153 * alpha-tdep.c (alpha_register_virtual_type): New function.
154 (alpha_init_frame_pc_first): Ditto.
155 (alpha_fix_call_dummy): Ditto.
156 (alpha_store_struct_return): Ditto.
157 (alpha_extract_struct_value_address): Ditto.
158 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
159 alpha_register_virtual_type.
160 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
161 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
162 alpha_extract_struct_value_address.
163 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
164 (INIT_FRAME_PC): Use init_frame_pc_noop.
165 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
167 2002-01-19 Mark Kettenis <kettenis@gnu.org>
169 * i386gnu-nat.c: Include "i386-tdep.h".
170 (fetch_fpregs): Simplify code dealing with uninitialized floating
171 point states such that it doesn't require FP7_REGNUM.
173 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
175 * alpha-tdep.c (frame_extra_info): New.
176 (alpha_find_saved_regs): Make static. Use
178 (alpha_frame_init_saved_regs): New function.
179 (alpha_frame_saved_pc): Use frame->extra_info.
180 (temp_saved_regs): Don't declare as struct frame_saved_regs.
181 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
182 (init_extra_frame_info): Rename to...
183 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
184 (alpha_print_extra_frame_info): New function.
185 (alpha_frame_locals_address): Ditto.
186 (alpha_frame_args_address): Ditto.
187 (alpha_pop_frame): Use frame->extra_info.
188 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
189 alpha_frame_args_address.
190 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
191 (alpha_find_saved_regs): Remove prototype.
192 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
193 (EXTRA_FRAME_INFO): Remove.
194 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
195 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
197 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
199 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
200 (alpha_cannot_fetch_register): Ditto.
201 (alpha_cannot_store_register): Ditto.
202 (alpha_register_convertible): Ditto.
203 (alpha_use_struct_convention): Ditto.
204 * config/alpha/tm-alpha.h: Update copyright years.
205 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
206 (INNER_THAN): Use core_addr_lessthan.
207 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
208 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
209 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
210 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
211 (FRAME_CHAIN): Remove unnecessary cast.
213 2002-01-18 Andrew Cagney <ac131313@redhat.com>
215 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
218 2002-01-18 Andrew Cagney <ac131313@redhat.com>
220 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
221 * monitor.c, remote-array.c, remote-bug.c: Ditto.
222 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
223 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
224 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
225 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
226 * x86-64-linux-nat.c: Ditto.
228 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
230 * alpha-tdep.c (alpha_register_name): New function.
231 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
232 (REGISTER_NAME): Define.
234 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
236 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
238 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
240 * alpha-tdep.c: Update copyright years.
241 (alpha_next_pc): New function.
242 (alpha_software_single_step): Ditto.
243 * config/alpha/tm-alpha.h: Add prototype for
244 alpha_software_single_step.
246 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
248 * alphabsd-nat.c: Update copyright years.
249 (fill_gregset): Use regcache_collect.
250 (fill_fpregset): Likewise.
251 (fetch_inferior_registers): Only fetch integer registers
252 if requested to do so.
253 (store_inferior_registers): Only store integer registers
254 if requested to do so.
256 2002-01-17 Andrew Cagney <ac131313@redhat.com>
258 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
259 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
260 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
261 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
262 * config/alpha/fbsd.mh (XDEPFILES): Delete.
263 * config/arm/linux.mh (XDEPFILES): Delete.
264 * config/arm/nbsd.mh (XDEPFILES): Delete.
265 * config/i386/i386dgux.mh (XDEPFILES): Delete.
266 * config/i386/i386sol2.mh (XDEPFILES): Delete.
267 * config/i386/i386m3.mh (XDEPFILES): Delete.
268 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
269 * config/i386/i386gnu.mh (XDEPFILES): Delete.
270 * config/i386/fbsd.mh (XDEPFILES): Delete.
271 * config/i386/i386bsd.mh (XDEPFILES): Delete.
272 * config/i386/i386sco5.mh (XDEPFILES): Delete.
273 * config/i386/i386v4.mh (XDEPFILES): Delete.
274 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
275 * config/i386/i386sco4.mh (XDEPFILES): Delete.
276 * config/i386/i386aix.mh (XDEPFILES): Delete.
277 * config/i386/go32.mh (XDEPFILES): Delete.
278 * config/i386/cygwin.mh (XDEPFILES): Delete.
279 * config/i386/i386lynx.mh (XDEPFILES): Delete.
280 * config/i386/i386mach.mh (XDEPFILES): Delete.
281 * config/i386/i386v32.mh (XDEPFILES): Delete.
282 * config/i386/linux.mh (XDEPFILES): Delete.
283 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
284 * config/i386/ncr3000.mh (XDEPFILES): Delete.
285 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
286 * config/i386/i386sco.mh (XDEPFILES): Delete.
287 * config/i386/i386v.mh (XDEPFILES): Delete.
288 * config/i386/nbsd.mh (XDEPFILES): Delete.
289 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
290 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
291 * config/i386/symmetry.mh (XDEPFILES): Delete.
292 * config/i386/obsd.mh (XDEPFILES): Delete.
293 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
294 * config/ia64/linux.mh (XDEPFILES): Delete.
295 * config/ia64/aix.mh (XDEPFILES): Delete.
296 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
297 * config/m68k/dpx2.mh (XDEPFILES): Delete.
298 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
299 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
300 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
301 * config/m68k/linux.mh (XDEPFILES): Delete.
302 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
303 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
304 * config/m68k/nbsd.mh (XDEPFILES): Delete.
305 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
306 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
307 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
308 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
309 * config/m88k/delta88.mh (XDEPFILES): Delete.
310 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
311 * config/m88k/m88k.mh (XDEPFILES): Delete.
312 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
313 * config/mips/linux.mh (XDEPFILES): Delete.
314 * config/mips/irix6.mh (XDEPFILES): Delete.
315 * config/mips/irix5.mh (XDEPFILES): Delete.
316 * config/mips/irix4.mh (XDEPFILES): Delete.
317 * config/mips/irix3.mh (XDEPFILES): Delete.
318 * config/mips/decstation.mh (XDEPFILES): Delete.
319 * config/mips/mipsm3.mh (XDEPFILES): Delete.
320 (NATDEPFILES): Move core-aout.o to here.
321 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
322 * config/pa/hpux1020.mh (XDEPFILES): Delete.
323 * config/pa/hppabsd.mh (XDEPFILES): Delete.
324 * config/pa/hppahpux.mh (XDEPFILES): Delete.
325 * config/pa/hpux11w.mh (XDEPFILES): Delete.
326 * config/pa/hppaosf.mh (XDEPFILES): Delete.
327 * config/pa/hpux11.mh (XDEPFILES): Delete.
328 * config/powerpc/aix.mh (XDEPFILES): Delete.
329 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
330 * config/powerpc/linux.mh (XDEPFILES): Delete.
331 * config/romp/rtbsd.mh: Rename XDEPFILES.
332 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
333 * config/rs6000/aix4.mh (XDEPFILES): Delete.
334 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
335 * config/s390/s390.mh (XDEPFILES): Delete.
336 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
337 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
338 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
339 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
340 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
341 * config/sparc/nbsd.mh (XDEPFILES): Delete.
342 * config/sparc/linux.mh (XDEPFILES): Delete.
343 * config/vax/vaxult.mh (XDEPFILES): Delete.
344 * config/vax/vaxult2.mh (XDEPFILES): Delete.
345 * Makefile.in (DEPFILES): Remove XDEPFILES.
347 2002-01-17 Andrew Cagney <ac131313@redhat.com>
349 * utils.c (internal_verror): Fix comments, default is yes not no.
350 Update queries to match. Default to quit and dump core.
352 2002-01-17 Andrew Cagney <ac131313@redhat.com>
354 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
356 * defs.h, event-top.c, gdbcmd.h: Ditto.
357 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
358 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
359 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
360 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
361 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
362 * mi/mi-main.c:Ditto.
364 * stack.c, symfile.c: Update copyright.
366 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
368 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
369 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
370 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
371 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
373 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
375 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
376 * gdbserver/low-lynx.c (myattach): Likewise.
377 * gdbserver/low-nbsd.c (myattach): Likewise.
378 * gdbserver/low-sim.c (myattach): Likewise.
379 * gdbserver/low-sparc.c (myattach): Likewise.
380 * gdbserver/low-sun3.c (myattach): Likewise.
382 * gdbserver/low-linux.c (myattach): New function.
384 * gdbserver/server.c (attach_inferior): New function.
385 (main): Handle "--attach".
387 2002-01-16 Andrew Cagney <ac131313@redhat.com>
389 * MAINTAINERS (language support): Daniel Jacobwitz is C++
392 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
394 * c-typeprint.c (is_type_conversion_operator): Add additional
395 check for non-conversion operators.
397 2002-01-15 Michael Snyder <msnyder@redhat.com>
399 * linux-proc.c: Add "info proc" command, a la procfs.c.
400 (read_mapping): New function, abstract and re-use code.
401 (linux_find_memory_regions): Use new func read_mapping.
402 (linux_info_proc_cmd): New function, implement "info proc".
403 (_initialize_linux_proc): Add new command "info proc".
405 2002-01-15 Michael Snyder <msnyder@redhat.com>
407 * symfile.c (generic_load): Use bfd_map_over_sections method
408 instead of manipulating bfd structure members directly.
409 (add_section_size_callback): New function, bfd sections callback
410 used by generic_load.
411 (load_sections_callback): New function, bfd sections callback
412 used by generic_load.
414 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
416 [Based on work by Jim Blandy]
417 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
418 (builtin_type_vec128): Export.
419 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
421 (builtin_type_vec128): New builtin type for 128 bit vector
423 (build_gdbtypes): Initialize builtin_type_v16qi and
424 builtin_type_v8hi. Create the vec128 register builtin type
426 (build_builtin_type_vec128): New function.
427 (_initialize_gdbtypes): Register builtin_type_v16qi and
428 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
429 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
430 AltiVec register to new builtin type.
432 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
434 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
437 2002-01-14 Andrew Cagney <ac131313@redhat.com>
439 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
440 CLEAN_UP_REGISTER_VALUE.
441 * regcache.c (supply_register): Update only call.
443 2002-01-14 Andrew Cagney <ac131313@redhat.com>
445 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
446 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
447 a29k-*-vxworks* targets as obsolete.
449 2002-01-14 Michael Snyder <msnyder@redhat.com>
451 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
452 until we can resolve portability issues.
453 * gregset.h: Remove references to fpxregs.
454 * gcore.c (gcore_command): Initialize note_sec to NULL.
456 2002-01-13 Andrew Cagney <ac131313@redhat.com>
458 * signals.c (target_signal_to_name): Rewrite. Only use
459 signals[].name when in bounds and non-NULL.
461 2002-01-13 Andrew Cagney <ac131313@redhat.com>
463 From Petr Ledvina <ledvinap@kae.zcu.cz>:
464 * signals.c (target_signal_to_name): Verify that SIG is within the
465 bounds of the signals array.
467 2002-01-13 Andrew Cagney <ac131313@redhat.com>
469 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
471 2002-01-13 Keith Seitz <keiths@redhat.com>
473 * stack.c (print_frame_info_base): Print the frame's pc
474 only if when print_frame_info_listing_hook is not defined.
476 2002-01-13 Keith Seitz <keiths@redhat.com>
478 * varobj.c (varobj_set_value): Make sure that there were no
479 errors evaluating the object before attempting to set its
481 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
482 so this offset adjustment is no longer necessary.
483 (create_child): Don't set the error flag if the child is
485 (value_of_child): If value_fetch_lazy fails, return NULL
486 so that callers will be notified that an error occurred.
487 (c_value_of_variable): Delay check of variable's validity
488 until later. We actually want all structs and unions to have
490 Do not return "???" for variables which could not be evaluated.
491 This error condition must be returned to the caller so that it
492 can get the error condition from gdb.
493 (cplus_name_of_child): Adjust index for vptr before figuring
494 out the name of the child.
495 (cplus_value_of_child): If a child's (real) parent is not valid,
496 don't even bother trying to give a value for it. Just return
497 an error. Change all instances in this function.
498 (cplus_type_of_child): If our parent is one of the "fake"
499 parents, we need to get at the type of the real parent, and
500 derive the child's true type using this information.
502 2002-01-13 Andrew Cagney <ac131313@redhat.com>
504 From 2002-01-09 John Marshall <johnm@falch.net>:
505 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
506 sources.redhat.com, and tweak some related URLs which had
507 suffered from linkrot.
509 2002-01-13 Andrew Cagney <ac131313@redhat.com>
512 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
513 structures passed in registers.
515 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
517 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
518 white space which prevented compilation. Reported by DSK
519 <dsk@student.unsw.edu.au>.
521 2002-01-11 Michael Snyder <msnyder@redhat.com>
523 * symfile.c (build_section_addr_info_from_section_tab):
524 Use bfd access method instead of manipulating bfd directly.
525 (syms_from_objfile): Ditto.
526 (simple_overlay_update_1): Ditto.
527 (simple_overlay_update): Ditto.
528 (generic_load): Ditto.
529 (overlay_unmapped_address): FIXME comment, bfd access methods.
530 (sections_overlap): FIXME comment, bfd access methods.
531 (pc_in_mapped_range): FIXME comment, bfd access methods.
532 (pc_in_unmapped_range): FIXME comment, bfd access methods.
533 (section_is_mapped): FIXME comment, bfd access methods.
534 (section_is_overlay): FIXME comment, bfd access methods.
536 * symfile.c (generic_load): Whitespace and long line cleanups.
537 Remove duplicate variable, change several local variables to
538 more appropriate data types.
539 (print_transfer_performance): Use %lu instead of %ld for ulongs.
541 2002-01-12 Andrew Cagney <ac131313@redhat.com>
544 * language.c (longest_local_hex_string_custom): Use phex_nz to
545 convert NUM to a hex string.
547 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
549 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
551 Update Copyright year.
553 2002-01-12 Andrew Cagney <ac131313@redhat.com>
555 * language.c (longest_raw_hex_string): Delete unused function.
557 2002-01-11 Petr Sorfa <petrs@caldera.com>
559 * MAINTAINERS (write-after-approval): Add myself.
560 * dwarf2read.c (read_tag_string_type): Handling of
562 (read_tag_string_type): FORTRAN fix to prevent propagation of
564 (set_cu_language): Handling of DW_LANG_Fortran95
566 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
568 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
569 GETPID(inferior_ptid).
570 (store_inferior_registers): Likewise.
572 2002-01-10 Jason Merrill <jason@redhat.com>
574 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
577 2002-01-10 Andrew Cagney <ac131313@redhat.com>
579 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
580 and bfd/elf32-sh-nbsd.c.
582 2002-01-10 Michael Snyder <msnyder@redhat.com>
584 * NEWS: Mention --pid and corefile/proc-id behavior change.
586 * Makefile.in: Add rules for gcore.o and linux-proc.o.
587 * gcore.c: Include cli/cli-decode.h instead of command.h.
589 * main.c (captured_main): Add new command line option "--pid".
590 If the second command line argument (following the symbol-file)
591 begins with a digit, try to attach to it before trying to open
593 (print_gdb_help): Document the "--pid" argument.
595 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
597 * completer.c (command_completer): New function.
599 * completer.h <command_completer>: Add prototype.
601 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
602 completer for the "help" command.
604 2002-01-09 Jason Merrill <jason@redhat.com>
606 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
608 2002-01-09 Michael Snyder <msnyder@redhat.com>
610 * i386-linux-nat.c (fill_fpxregset): Make global.
611 (store_fpxregset): Ditto.
613 * gregset.h (gdb_fpxregset_t): Define.
614 (supply_fpxregset): Prototype.
615 (fill_fpxregset): Prototype.
617 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
619 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
621 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
622 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
623 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
625 2002-01-09 Andrew Cagney <ac131313@redhat.com>
627 * MAINTAINERS: Update target maintainer rules so that any
628 Maintainer can approve a tested patch for a maintenance-only
631 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
633 * MAINTAINERS (write-after-approval): Add myself.
635 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
638 2002-01-08 Michael Snyder <msnyder@redhat.com>
640 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
641 real name of the executable, rather than the /proc name.
643 2002-01-03 Michael Snyder <msnyder@redhat.com>
645 Implement a "generate-core-file" command in gdb, save target state.
646 * gcore.c: New file. Implement new command 'generate-core-file'.
647 Save a corefile image of the current state of the inferior.
648 * linux-proc.c: Add linux-specific code for saving corefiles.
649 * target.h (struct target_ops): Add new target vectors for saving
650 corefiles; to_find_memory_regions and to_make_corefile_notes.
651 (target_find_memory_regions): New macro.
652 (target_make_corefile_notes): New macro.
653 * target.c (update_current_target): Inherit new target methods.
654 (dummy_find_memory_regions): New place-holder method.
655 (dummy_make_corefile_notes): New place-holder method.
656 (init_dummy_target): Initialize new dummy target vectors.
657 * exec.c (exec_set_find_memory_regions): New function.
658 Allow the exec_ops vector for memory regions to be taken over.
659 (exec_make_note_section): New function, target vector method.
660 * defs.h (exec_set_find_memory_regions): Export prototype.
661 * procfs.c (proc_find_memory_regions): New function, corefile method.
662 (procfs_make_note_section): New function, corefile method.
663 (init_procfs_ops): Set new target vector pointers.
664 (find_memory_regions_callback): New function.
665 (procfs_do_thread_registers): New function.
666 (procfs_corefile_thread_callback): New function.
667 * sol-thread.c (sol_find_memory_regions): New function.
668 (sol_make_note_section): New function.
669 (init_sol_thread_ops): Initialize new target vectors.
670 * inftarg.c (inftarg_set_find_memory_regions): New function.
671 Allow to_find_memory_regions vector to be taken over.
672 (inftarg_set_make_corefile_notes): New function.
673 Allow to_make_corefile_notes vector to be taken over.
674 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
675 interface layer if not target_has_execution (may be a corefile).
676 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
677 * config/sparc/sun4sol2.mh: Ditto.
678 * config/alpha/alpha-linux.mh: Ditto.
679 * config/arm/linux.mh: Ditto.
680 * config/i386/x86-64linux.mh: Ditto.
681 * config/ia64/linux.mh: Ditto.
682 * config/m68k/linux.mh: Ditto.
683 * config/mips/linux.mh: Ditto.
684 * config/powerpc/linux.mh: Ditto.
685 * config/sparc/linux.mh: Ditto.
687 2002-01-07 Michael Snyder <msnyder@redhat.com>
689 * arm-linux-nat.c: Remove references to regcache.c internal data
690 (registers[] and register_valid[]).
692 2002-01-07 Michael Snyder <msnyder@redhat.com>
694 * linux-proc.c: New file. Implement child_pid_to_exec_file,
695 so that attaching to a pid will automatically read the process's
696 symbol file and shlibs.
697 * Makefile.in: Add rule for linux-proc.o.
698 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
699 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
700 * config/arm/linux.mh: Ditto.
701 * config/i386/linux.mh: Ditto.
702 * config/i386/x86-64linux.mh: Ditto.
703 * config/ia64/linux.mh: Ditto.
704 * config/m68k/linux.mh: Ditto.
705 * config/mips/linux.mh: Ditto.
706 * config/powerpc/linux.mh: Ditto.
707 * config/sparc/linux.mh: Ditto.
709 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
711 * win32-nat.c: Add i386-tdep.h dependency.
713 2002-01-07 Michael Snyder <msnyder@redhat.com>
715 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
716 instead of bfd_get_arch_size. Don't bail out just because
719 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
720 * p-valprint.c (pascal_object_print_value): Ditto.
721 * somread.c (som_symtab_read): Ditto.
722 * symfile.c (simple_free_overlay_region_table): Ditto.
723 * valops.c (value_assign): Ditto.
725 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
726 use tilde_expand and strerror for opening save-tracepoints file.
728 * thread-db.c (thread_db_new_objfile): Indendation fix.
730 * infptrace.c (GDB_MAX_ALLOCA): New define.
731 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
732 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
733 can be overridden with whatever value is appropriate to the host).
734 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
735 alloca to allocate potentially large buffer.
736 * rs6000-nat.c (child_xfer_memory): Ditto.
737 * symm-nat.c (child_xfer_memory): Ditto.
738 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
740 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
742 From Nick Clifton <nickc@redhat.com>
743 * d10v-tdep.c: Set STACK_START to 0x200bffe.
745 2002-01-07 Michael Snyder <msnyder@redhat.com>
747 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
748 Don't use exec_bfd if it's NULL.
750 2002-01-06 Mark Kettenis <kettenis@gnu.org>
752 * valops.c (value_arg_coerce): Fix formatting.
754 2002-01-06 Andrew Cagney <ac131313@redhat.com>
756 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
759 2002-01-06 Andrew Cagney <ac131313@redhat.com>
761 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
762 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
763 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
764 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
765 z8k-coff have not been multi-arched. Update z8k-coff build
768 2002-01-06 Andrew Cagney <ac131313@redhat.com>
770 * MAINTAINERS: Mark a29k target as obsolete.
771 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
772 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
774 * NEWS: Note that a29k targets are obsolete.
775 * a29k-tdep.c: Mark as obsolete.
776 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
777 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
778 a29k-*-vxworks* targets as obsolete.
779 * remote-adapt.c: Obsolete.
780 * remote-eb.c: Obsolete.
781 * remote-mm.c: Obsolete.
782 * remote-udi.c: Obsolete.
783 * config/a29k/a29k-udi.mt: Obsolete.
784 * config/a29k/a29k.mt: Obsolete.
785 * config/a29k/tm-a29k.h: Obsolete.
786 * config/a29k/tm-vx29k.h: Obsolete.
787 * config/a29k/vx29k.mt: Obsolete.
789 2002-01-05 Andrew Cagney <ac131313@redhat.com>
791 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
794 2002-01-05 Andrew Cagney <ac131313@redhat.com>
796 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
797 * configure, config.in: Re-generate.
798 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
799 * defs.h: Do not include <endian.h>.
801 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
803 * acconfig.h (HAVE_PT_GETXMMREGS): New.
804 * config.in: Regenerate.
805 * configure.in: Update copyright years.
806 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
807 * configure: Regenerate.
808 * i386bsd-nat.c: Update copyright years.
809 (fill_gregset): Use regcache_collect.
810 (fetch_inferior_registers): Only fetch integer registers
811 if requested to do so. Add support for XMM registers
813 (store_inferior_registers): Only store integer registers
814 if requested to do so. Add support for XMM registers
816 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
817 (store_inferior_registers): Remove.
818 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
819 (fetch_elfcore_registers): New function.
820 (i386nbsd_elfcore_fns): New.
821 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
822 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
824 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
825 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
826 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
827 * config/i386/tm-nbsd.h: Update copyright years.
828 (HAVE_SSE_REGS): Define.
829 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
830 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
831 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
832 (SIGCONTEXT_PC_OFFSET): Remove.
833 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
835 2002-01-05 Andrew Cagney <ac131313@redhat.com>
837 * configure.tgt: Remove powerpc-*-macos* target.
838 * config/m68k/xm-mpw.h: Delete file.
839 * config/xm-mpw.h: Delete file.
840 * ser-mac.c: Delete file.
841 * mpw-make.sed: Delete file.
842 * mpw-config.in: Delete file.
843 * mac-xdep.c: Delete file.
844 * mac-gdb.r: Delete file.
845 * mac-defs.h: Delete file.
846 * mac-nat.c: Delete file.
847 * config/powerpc/macos.mh: Delete file.
848 * config/powerpc/macos.mt: Delete file.
849 * config/powerpc/nm-macos.h: Delete file.
850 * config/powerpc/tm-macos.h: Delete file.
851 * source.c (openp, open_source_file): Remove obsolete code.
852 * top.c (gdb_readline): Ditto.
853 * utils.c (query): Ditto.
854 * event-top.c (display_gdb_prompt): Ditto.
855 * Makefile.in (ser-mac.o): Delete obsolete target.
858 2002-01-04 Andrew Cagney <ac131313@redhat.com>
860 * defs.h (BIG_ENDIAN): Delete macro definition.
861 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
862 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
863 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
864 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
865 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
866 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
867 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
868 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
869 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
870 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
871 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
872 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
873 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
874 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
875 * gdbarch.c: Re-generate.
877 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
879 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
882 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
884 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
886 2002-01-04 Andrew Cagney <ac131313@redhat.com>
888 * value.h (value_ptr): Delete typedef.
890 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
892 * i386nbsd-nat.c: Update copyright years.
895 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
897 * stabsread.c: Update copyright years.
899 From Debashis Mahata <debashis.mahata@wipro.com>:
900 (read_struct_fields): Deal with Sun C compiler erroneous stab
901 output for structs and unions.
904 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
906 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
909 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
911 * cp-abi.c: Fix whitespace.
912 (baseclass_offset): New wrapper function.
913 * cp-abi.h (baseclass_offset): Add prototype.
914 (struct cp_abi_ops): Add baseclass_offset pointer.
916 * valops.c (vb_match): Move to...
917 * gnu-v2-abi.c (vb_match): here.
918 * valops.c (baseclass_offset): Move to...
919 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
921 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
923 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
924 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
925 * hpacc-abi.c (init_hpacc_ops): Likewise.
927 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
929 * valops.c (find_overload_match): Accept obj as a
930 reference parameter. Update it before returning.
931 * value.h (find_overload_match): Update prototype.
932 * eval.c (evaluate_subexp_standard): Pass object to
933 find_overload_match by reference.
935 2002-01-03 Andrew Cagney <ac131313@redhat.com>
937 * valarith.c: Replace value_ptr with struct value pointer. Remove
938 register attribute from value declarations.
941 * scm-lang.c (scm_lookup_name): Ditto.
943 2002-01-03 Michael Snyder <msnyder@redhat.com>
945 Abstract the functionality of iterating over mapped memory
946 regions into a general purpose iterator function.
947 * procfs.c (iterate_over_mappings): New function, general purpose
948 iterator for memory sections.
949 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
950 (solib_mappings_callback): New function, callback for above.
951 (info_proc_mappings): Reimpliment using iterate_over_mappings.
952 (info_mappings_callback): New function, callback for above.
954 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
956 2002-01-01 Mark Kettenis <kettenis@gnu.org>
958 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
959 * i386-tdep.c: Include "elf-bfd.h".
960 (process_note_abi_tag_sections): New function.
961 (i386_gdbarch_init): Add code to recognize various OS/ABI
964 * maint.c (_initialize_maint_cmds): Add missing \ in
967 For older changes see ChangeLog-2001
973 version-control: never