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