* x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
[binutils-gdb.git] / gdb / ChangeLog
1 2002-03-27 Michal Ludvig <mludvig@suse.cz>
2
3 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
5 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
6 (x86_64_linux_dr_get_status, supply_gregset),
7 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9 (x86_64_register_info_table): Add.
10 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11 (x86_64_register_raw_size, x86_64_register_virtual_type),
12 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
13 general x86_64_register_info_table.
14 (i386_gdbarch_init): gdbarch_register_bytes is now set
15 dynamicaly during initialization.
16 * regformats/reg-x86-64.dat: Synced with changes to registers above.
17 * gdbserver/linux-x86-64-low.c: Ditto.
18
19 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
20
21 * gdbserver/server.c (main): Call target_signal_to_host_p
22 and target_signal_to_host on signals received from the remote.
23 * gdbserver/remote-utils.c (prepare_resume_reply): Call
24 target_signal_from_host on signals sent to the remote.
25 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
26 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
27
28 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
29
30 * signals/signals.c: Include "server.h" in gdbserver build.
31 (target_signal_from_name): Don't use STREQ.
32 (_initialize_signals): Likewise. Don't include function in
33 gdbserver build.
34
35 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
36
37 * signals.c: Moved to...
38 * signals/signals.c: Here.
39 * Makefile (signals.o): Update.
40
41 2002-03-26 Jeff Law (law@redhat.com)
42
43 * somread.c (som_symtab_read): Remove some commented out code and
44 updated related comments. Do not set the minimal symbol table to
45 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
46 in a dynamic executable.
47 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
48 where we are unable to find the minimal symbol for the given
49 PC value.
50
51 2002-03-25 Jeff Law (law@redhat.com)
52
53 * linux-proc.c (read_mapping): Scan up to end of line for filename.
54
55 2002-03-25 Michal Ludvig <mludvig@suse.cz>
56
57 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
58
59 2002-03-23 Andrew Cagney <ac131313@redhat.com>
60
61 * command.h: Update copyright.
62 (struct cmd_list_element): Replace definition with opaque
63 declaration.
64 (enum cmd_types): Document that it will eventually be moved to
65 cli/cli-decode.h
66 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
67 (MALLOCED_REPLACEMENT): Delete macro.
68 * Makefile.in (cli_decode_h): Add $(command_h).
69 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
70 * top.c: Include "cli/cli-decode.h".
71 * completer.c: Include "cli/cli-decode.h".
72 * maint.c: Include "cli/cli-decode.h".
73 * cli/cli-decode.h: Include "command.h".
74 (enum command_class): Delete.
75 (enum cmd_types): Comment out.
76 (enum cmd_auto_boolean): Delete.
77 (enum var_types): Delete.
78
79 2002-03-23 Andrew Cagney <ac131313@redhat.com>
80
81 * cli/cli-decode.c: Include "gdb_assert.h".
82 (add_set_or_show_cmd): New static function.
83 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
84 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
85 all fields, such as func, from the set command.
86
87 2002-03-23 Andrew Cagney <ac131313@redhat.com>
88
89 * MAINTAINERS (sh-elf): Change warning flag to -w.
90
91 2002-03-23 Andrew Cagney <cagney@redhat.com>
92
93 * defs.h (error): Add printf format attribute.
94 * thread-db.c (thread_from_lwp): Fix error format string.
95 * stack.c (parse_frame_specification): Ditto.
96 * cli/cli-decode.c (undef_cmd_error): Ditto.
97 * scm-lang.c (scm_lookup_name): Ditto.
98 * tracepoint.c (trace_error): Ditto.
99 * remote-utils.c (usage): Ditto.
100 * remote.c (compare_sections_command): Ditto.
101 Fix PR gdb/328.
102
103 2002-03-22 Andrew Cagney <ac131313@redhat.com>
104
105 * gdbtypes.c (append_composite_type_field): New function.
106 (init_composite_type): New function.
107 * gdbtypes.h (append_composite_type_field): Declare.
108 (init_composite_type): Ditto.
109
110 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
111
112 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
113 function.
114 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
115 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
116 structure returning convention for SYSV ABI case, but not
117 for GNU/Linux, FreeBSD, or NetBSD.
118
119 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
120
121 * symtab.h (lookup_block_symbol): Add mangled_name argument
122 to prototype.
123
124 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
125 with new mangled_name argument.
126 * linespec.c (decode_line_1): Likewise.
127 * valops (value_of_this): Likewise.
128 * symtab.c (lookup_transparent_type): Likewise.
129 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
130 (lookup_symbol): If we are given a mangled name, pass it down
131 to lookup_symbol_aux.
132 (lookup_block_symbol): If we are given a mangled name to check
133 against, only return symbols which match it.
134
135 2002-03-22 Christopher Faylor <cgf@redhat.com>
136
137 * win32-nat.c (child_create_inferior): Check for proper shell to use
138 here, in case the user changes it on the fly.
139 (_initialize_inftarg): Remove shell path considerations.
140
141 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
142
143 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
144 for gdbarch_max_register_raw_size and max_register_virtual_size.
145 Adjust copyright year.
146
147 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
148
149 * dbxread.c (process_one_symbol): Extend the first N_SLINE
150 in a function to cover the entire beginning of the function
151 as well if it does not already.
152
153 2002-03-21 Tom Rix <trix@redhat.com>
154
155 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
156 (rs6000_ptrace64): Renamed from ptrace64.
157
158 2002-03-20 Martin M. Hunt <hunt@redhat.com>
159
160 * gdbserver/remote-utils.c (remote_open): Don't call
161 getprotobyname, we're all using TCP here so just use
162 IPPROTO_TCP.
163 * gdbserver/gdbreplay.c (remote_open): Ditto.
164
165 2002-03-20 Martin M. Hunt <hunt@redhat.com>
166
167 * regcache.c (_initialize_regcache): No need to call
168 build_regcache() at this time; it gets called whenever
169 the gdbarch changes.
170
171 2002-03-20 David O'Brien <obrien@FreeBSD.org>
172
173 * sparc-nat.c: Include sys/param.h where possible.
174
175 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
176
177 Fix PR gdb/422.
178 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
179 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
180 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
181 complex types.
182 * stabsread.c (rs6000_builtin_type): Likewise.
183 (read_sun_floating_type): Likewise.
184
185 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
186
187 * stabsread.c (read_member_functions): Remove skip code for duplicate
188 constructor/destructor methods. Use standard parsing for these
189 methods and just do not chain them to the list of methods after
190 parsing.
191
192 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
193
194 * coffread.c: Remove redundant static declarations. Replace
195 occurrences of `PTR' with `void *'.
196 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
197 * top.h (quit_cover): Likewise.
198 * defs.h (catch_errors): Likewise.
199
200 2002-03-18 Andrew Cagney <ac131313@redhat.com>
201
202 * defs.h (XMALLOC): Define.
203 * gdb-events.sh (XMALLOC): Delete macro.
204 * gdb-events.c, gdb-events.h: Regenerate.
205 * gdbarch.sh (XMALLOC): Delete macro.
206 * gdbarch.c: Regenerate.
207 * serial.c (XMALLOC): Delete macro.
208 * ui-file.c (XMALLOC): Ditto.
209 * ser-unix.h (XMALLOC): Ditto.
210 * sh-tdep.c (XMALLOC): Ditto.
211 * ui-out.c (XMALLOC): Ditto.
212 * utils.c (XMALLOC): Ditto.
213 * i386-tdep.c (XMALLOC): Ditto.
214 * gdb-events.c (XMALLOC): Ditto.
215 * d10v-tdep.c (XMALLOC): Ditto.
216 * cli-out.c (XMALLOC): Ditto.
217
218 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
219 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
220 * ui-file.c, ui-out.c: Ditto.
221
222 2002-03-18 Andrew Cagney <ac131313@redhat.com>
223
224 * command.h (struct cmd_list_element): Add field context.
225 (set_cmd_context, get_cmd_context): Declare.
226 * cli/cli-decode.h: Ditto.
227 * cli/cli-decode.c (get_cmd_context): New function.
228 (set_cmd_context): New function.
229 (add_cmd): Initialize context.
230 Part of fixing PR gdb/145 and PR gdb/146.
231
232 2002-03-17 Andrew Cagney <ac131313@redhat.com>
233
234 * cli/cli-decode.c (cmd_type): New function.
235 * command.h (cmd_type): Declare.
236 * infrun.c (set_schedlock_func): Call function cmd_type.
237 * kod.c (kod_set_os): Call cmd_type.
238 * cris-tdep.c (cris_version_update): Use function cmd_type.
239 (cris_mode_update, cris_abi_update): Ditto.
240
241 * command.h: (execute_cmd_post_hook): Declare.
242 (execute_cmd_pre_hook): Declare.
243 * cli/cli-script.c (clear_hook_in_cleanup): New function.
244 (execute_cmd_post_hook, execute_cmd_pre_hook): New
245 functions. Execute pre/post hook while ensuring that afterwords
246 hook_in is cleared.
247 * top.c (execute_command): Use execute_cmd_post_hook, and
248 execute_cmd_pre_hook to execute pre/post commands.
249 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
250 hook_stop_stub.
251 (hook_stop_stub): Call execute_cmd_pre_hook.
252
253 2002-03-17 Andrew Cagney <ac131313@redhat.com>
254
255 * kod.c (kod_set_os): Revert previous change. Is called by ``info
256 set'' and this leads to a core dump. Move xstrdup of
257 operating_system to after check that it is not NULL.
258
259 2002-03-17 Andrew Cagney <ac131313@redhat.com>
260
261 * kod.c (kod_set_os): Remove unnecessary check that
262 ``command->type'' is set_cmd.
263
264 * valprint.c (set_input_radix): Use input_radix.
265 (set_output_radix): Use output_radix.
266 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
267 isn't reverted.
268
269 2002-03-16 Andrew Cagney <ac131313@redhat.com>
270
271 * value.h (struct value): Delete field ``substring_addr''. Change
272 aligner fields to force_doublest_align, force_longest_align,
273 force_core_addr_align and force_pointer_aligh.
274
275 * value.h (struct value): Fix typo in above change.
276
277 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
278
279 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
280 to fix internal_error from ``maintenance print architecture''.
281
282 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
283
284 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
285 for gcc versions after gcc-2.8.1.
286
287 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
288
289 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
290 for method resolution. Restore adjustment of ``this'' pointer after
291 calling value_struct_elt, which was accidentally removed during the
292 HP merge.
293
294 2002-03-15 Andrew Cagney <ac131313@redhat.com>
295
296 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
297 value_of_register.
298 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
299 get_saved_register.
300 * value.h (value_of_register): Update.
301
302 2002-03-14 Richard Henderson <rth@redhat.com>
303
304 * configure.in: Detect declaration for canonicalize_file_name.
305 * utils.c (canonicalize_file_name): Declare, if needed.
306 (gdb_realpath): Prefer realpath if available and usable.
307 * config.in, configure: Rebuild.
308
309 2002-03-14 Richard Henderson <rth@redhat.com>
310
311 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
312 a constant array bound.
313
314 * MAINTAINERS: Add myself to write-after-approval.
315
316 2002-03-14 Michael Snyder <msnyder@redhat.com>
317
318 * symfile.c (syms_from_objfile): Return immediately if no syms.
319 (symbol_file_add): Return immediately if no syms.
320 (find_sym_fns): Return immediately if no syms.
321
322 2002-03-13 Michal Ludvig <mludvig@suse.cz>
323
324 * gdbserver/remote-util.c (remote_open): Print remote-side's
325 IP address when remote debugging over the network.
326
327 2002-03-12 David O'Brien <obrien@FreeBSD.org>
328
329 * config/sparc/fbsd.mh: Fix copyright.
330 * config/sparc/fbsd.mt: Likewise.
331
332 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
333
334 * MAINTAINERS: Fix typo in name of gdb warnings option.
335 (x86-64): Fix formating so that this can be parsed by awk.
336
337 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
338
339 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
340 * defs.h: Include "gdb/signals.h".
341 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
342
343 2002-03-10 Michal Ludvig <mludvig@suse.cz>
344
345 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
346 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
347 from x86-64-tdep.h
348
349 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
350 Don Howard <dhoward@redhat.com>
351
352 * mips-tdep.c (ST0_FR): Define.
353 (mips2_fp_compat): New function, temporarily disabled.
354 (mips_read_fp_register_single): New function.
355 (mips_read_fp_register_double): New function.
356 (mips_print_register): Use them.
357 (do_fp_register_row): Likewise.
358
359 2002-03-09 Andrew Cagney <ac131313@redhat.com>
360
361 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
362 approval''.
363
364 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
365
366 * stabsread.c (read_member_functions): Fix is_stub test for
367 static member functions, improve comment.
368
369 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
370
371 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
372 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
373 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
374 commands that set boolean values.
375 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
376 (arm_rdi_resume): Always initialize PC.
377 (arm_rdi_open): Don't use rslt as a boolean.
378 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
379 (arm_rdi_fetch_registers, arm_rdi_store_registers)
380 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
381 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
382
383 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
384
385 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
386 * configure: Rebuilt.
387
388 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
389
390 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
391 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
392
393 2002-03-06 Andrew Cagney <ac131313@redhat.com>
394
395 * cli/cli-decode.c (set_cmd_completer): New function.
396 * command.h (set_cmd_completer): Declare.
397 * cli/cli-decode.h (set_cmd_completer): Ditto.
398
399 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
400 * cli/cli-cmds.c (init_cli_cmds): Ditto.
401 * win32-nat.c (_initialize_inftarg): Ditto.
402 * remote-rdi.c (_initialize_remote_rdi): Ditto.
403 * proc-api.c (_initialize_proc_api): Ditto.
404 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
405 * source.c (_initialize_source): Ditto.
406 * exec.c (_initialize_exec): Ditto.
407 * solib.c (_initialize_solib): Ditto.
408 * top.c (init_main): Ditto.
409 * tracepoint.c (_initialize_tracepoint): Ditto.
410 * symfile.c (_initialize_symfile): Ditto.
411 * printcmd.c (_initialize_printcmd): Ditto.
412 * infcmd.c (_initialize_infcmd): Ditto.
413 * corefile.c (_initialize_core): Ditto.
414
415 2002-03-05 Andrew Cagney <ac131313@redhat.com>
416
417 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
418
419 2002-03-05 Andrew Cagney <ac131313@redhat.com>
420
421 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
422
423 2002-03-05 Andrew Cagney <ac131313@redhat.com>
424
425 * NEWS: Update headings, 5.2 has branched.
426
427 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
428
429 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
430 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
431 (register_addr, REGISTER_RAW_SIZE): Likewise.
432 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
433 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
434
435 2002-03-03 Michal Ludvig <mludvig@suse.cz>
436
437 * MAINTAINERS (x86-64): Add myself.
438 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
439 changed value_ptr -> struct value *
440
441 2002-03-01 David O'Brien <obrien@FreeBSD.org>
442
443 * configure.host (sparc64-*-freebsd): Add.
444 * configure.tgt: Likewise.
445 * config/sparc/fbsd.mh: New file.
446 * config/sparc/fbsd.mt: Likewise.
447 * config/sparc/nm-fbsd.h: Likewise.
448 * config/sparc/tm-fbsd.h: Likewise.
449
450 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
451
452 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
453 regformats/reg-s390x.dat.
454
455 2002-03-01 Andrew Cagney <ac131313@redhat.com>
456
457 * utils.c: Add FIXME explaining true/false problem.
458
459 2002-02-28 Andrew Cagney <ac131313@redhat.com>
460
461 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
462
463 2002-02-28 Michael Chastain <mec@shout.net>
464
465 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
466
467 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
468
469 * gdbserver/linux-s390-low.c: New file.
470 * regformats/reg-s390.dat: New file.
471 * regformats/reg-s390x.dat: New file.
472 * gdbserver/configure.srv: Add S/390.
473 * gdbserver/Makefile.in: Add S/390.
474 * configure.tgt: Enable gdbserver for S/390.
475
476 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
477
478 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
479 first line of the doc string for "info dos", except at the end of
480 the sentence, since the short help stops at the first period.
481
482 2002-02-28 Jason Merrill <jason@redhat.com>
483
484 * dwarf2read.c (dwarf_cfi_name): Add new codes.
485
486 2002-02-27 Fred Fish <fnf@redhat.com>
487
488 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
489 comment (dumy -> dummy).
490
491 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
492
493 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
494
495 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
496
497 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
498
499 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
500
501 * gdbserver/acconfig.h: New file.
502 * gdbserver/i387-fp.c: New file.
503 * gdbserver/i387-fp.h: New file.
504 * gdbserver/linux-x86-64.c: New file.
505 * regformats/reg-x86-64.dat: New file.
506 * configure.tgt: Add x86_64-*-linux* gdbserver support.
507 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
508 * gdbserver/configure.in: Add support for regsets.
509 * gdbserver/config.in: Regenerate.
510 * gdbserver/configure: Regenerate.
511 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
512 * gdbserver/linux-low.h: New file.
513 * gdbserver/linux-low.c: Include "linux-low.h". Add support
514 for regsets.
515 * gdbserver/linux-arm-low.c: Include "linux-low.h".
516 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
517 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
518 * gdbserver/linux-mips-low.c: Include "linux-low.h".
519 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
520 * gdbserver/linux-sh-low.c: Include "linux-low.h".
521 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
522 "i387-fp.h". Add PTRACE_GETREGS and friends.
523 * gdbserver/regcache.c (supply_register): New function.
524 (supply_register_by_name): New function.
525 (collect_register): New function.
526 (collect_register_by_name): New function.
527
528 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
529
530 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
531 (config.status): Add configure.srv dependency.
532 (server_h): Add config.h dependency.
533
534 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
535
536 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
537 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
538 * gdbserver/configure.srv: Change i386-*-linux* to use
539 reg-i386-linux.o.
540
541 2002-02-26 Andrew Cagney <ac131313@redhat.com>
542
543 * x86-64-tdep.c: Re-indent. Update copyright date.
544
545 2002-02-26 Andrew Cagney <ac131313@redhat.com>
546
547 From Michal Ludvig <mludvig@suse.cz>:
548 * x86-64-tdep.c (value.h): Delete.
549 (gdb_assert.h): Include.
550 (x86_64_register_convert_to_virtual,
551 x86_64_register_convert_to_raw ): Add check which lets only
552 floating-point values to be converted.
553 (value_push): Delete.
554 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
555 (i386_gdbarch_init): Number of register_bytes fixed.
556
557 2002-02-26 Andrew Cagney <ac131313@redhat.com>
558
559 * MAINTAINERS: Add x86-64 target.
560
561 2002-02-26 Andrew Cagney <ac131313@redhat.com>
562
563 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
564 * osfsolib.c (solib_map_sections): Ditto.
565 * irix5-nat.c (solib_map_sections): Ditto.
566 * corelow.c (gdb_check_format): Ditto.
567 * symfile.c (symfile_bfd_open): Ditto.
568 * solib.c (solib_map_sections): Ditto.
569 Fix PR gdb/354.
570
571 2002-02-26 Andrew Cagney <ac131313@redhat.com>
572
573 * remote.c (_initialize_remote): By default, disable ``e'' and
574 ``E'' step out-of-range packets.
575
576 2002-02-26 Andreas Schwab <schwab@suse.de>
577
578 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
579 m68k_linux_frame_saved_pc.
580 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
581 in_sigtramp.
582 (SIGCONTEXT_PC_OFFSET): Remove.
583 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
584 m68k_linux_sigtramp_saved_pc): New functions.
585 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
586 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
587 (UCONTEXT_PC_OFFSET): Define.
588 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
589 non-RT and RT signal trampolines.
590
591 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
592
593 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
594 (TARGET_NBPG, STACK_END_ADDR): Delete
595 (VARIABLES_INSIDE_BLOCK): Delete.
596
597 2002-02-25 Andrew Cagney <ac131313@redhat.com>
598
599 * utils.c (perror_with_name): Make string parameter constant.
600 (print_sys_errmsg): Ditto.
601 (query): Ditto.
602 * defs.h (perror_with_name): Update.
603 (print_sys_errmsg): Update.
604 (query): Update.
605
606 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
607
608 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
609 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
610
611 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
612
613 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
614 if it already matches the current architecture from the exec file.
615 Include arch-utils.h for gdbarch_info_init prototype.
616 * Makefile.in (rs6000-nat.o): Update dependencies.
617
618 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
619
620 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
621 list of exported variables.
622
623 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
624
625 * gdbserver/configure.srv: New file.
626 * gdbserver/configure.in: Use configure.srv instead
627 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
628 from it.
629 * gdbserver/configure: Regenerated.
630 * gdbserver/terminal.h: New file.
631 * gdbserver/Makefile.in: Update for configure changes. Remove
632 more unneeded include paths.
633
634 2002-02-24 Andrew Cagney <ac131313@redhat.com>
635
636 From wiz at danbala:
637 * config/sparc/tm-sp64.h: Fix grammar and typos.
638 Fix PR gdb/287.
639
640 2002-02-24 Andrew Cagney <ac131313@redhat.com>
641
642 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
643 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
644 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
645 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
646 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
647 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
648 * s390-tdep.c: Ditto.
649 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
650 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
651 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
652 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
653 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
654 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
655 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
656 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
657 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
658 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
659 Fix PR gdb/378.
660
661 2002-02-23 Andrew Cagney <ac131313@redhat.com>
662
663 * lin-thread.c: Delete file.
664 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
665 to gdb_proc_service.h.
666 * configure: Re-generate.
667
668 * ocd.c (ocd_open): Do not try to open the "ocd" device.
669 * serial.c (serial_open): Delete check for "ocd".
670 Fix PR gdb/349.
671
672 * Makefile.in (linux-thread.o): Delete target.
673 * linux-thread.c: Delete file.
674
675 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
676 renamed SH files to be consistent.
677
678 * symtab.c (sort_search_symbols): Use xfree.
679
680 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
681
682 * arm-linux-tdep.c (arm_linux_init_abi): Register
683 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
684 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
685 definition with undef, since we don't want the sysvr4 definition.
686 (SKIP_TRAMPOLINE_CODE): Likewise.
687
688 2002-02-23 Andrew Cagney <ac131313@redhat.com>
689
690 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
691
692 * configure.in: (AC_CHECK_FUNCS) Added test for
693 canonicalize_file_name Regenerated.
694 * config.in, configure: Regenerated.
695 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
696 defined use canonicalize_file_name.
697
698 2002-02-23 Michael Chastain <mec@shout.net>
699
700 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
701
702 2002-02-23 Andrew Cagney <ac131313@redhat.com>
703
704 * README: Remove references to cygnus.com.
705 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
706 dot com'' form. Remove references to cygnus.com and sourceware.
707
708 2002-02-23 Andrew Cagney <ac131313@redhat.com>
709
710 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
711 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
712 1003.1-2001 no longer allows "head -1".
713 * gdb/Makefile.in (version.c): Likewise.
714 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
715 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
716 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
717
718 2002-02-23 Andrew Cagney <ac131313@redhat.com>
719
720 * cli/cli-decode.c (cmd_cfunc_eq): New function.
721 * command.h (cmd_cfunc_eq): Declare.
722 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
723
724 * cli/cli-cmds.h (is_complete_command): Change parameter to a
725 ``struct cmd_list_element *''.
726 * cli/cli-cmds.c (is_complete_command): Update. Use
727 cmd_cfunc_eq.
728 * top.c (execute_command): Pass the command to
729 is_complete_command.
730 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
731
732 2002-02-23 Andrew Cagney <ac131313@redhat.com>
733
734 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
735 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
736 architecture defines.
737 * s390-tdep.c (s390_gdbarch_init): Likewise.
738
739 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
740
741 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
742 (arm_linux_push_arguments): Likewise.
743 (arm_linux_init_abi): Register them. Also register linux-specific
744 call_dummy_words.
745 (find_minsym_and_objfile): Use strcmp, not STREQ.
746 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
747 (arm_linux_call_dummy_words): Delete declaration.
748 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
749 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
750 declarations.
751 (LOWEST_PC): Delete.
752
753 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
754
755 * maint.c (print_section_info): Do not prepend `0x' to filepos
756 output, it will be handled by local_hex_string_custom.
757
758 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
759
760 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
761 (store_newfpe_double, store_newfpe_extended, store_fpregister)
762 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
763
764 2002-02-22 Jim Blandy <jimb@redhat.com>
765
766 Indicate that the bcache functions don't change the strings
767 they're passed.
768 * bcache.h (bcache, hash): Add `const' keywords to declarations.
769 * bcache.c (bcache, hash): Add `const' keywords to definitions.
770
771 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
772
773 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
774
775 2002-02-21 Christopher Faylor <cgf@redhat.com>
776
777 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
778 find the complete path to a loaded DLL.
779
780 2002-02-21 Fred Fish <fnf@redhat.com>
781
782 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
783 that marks the end of the range of a function, enter a line number
784 entry that has a line number of zero and a PC offset that matches
785 the end of the function. This starts a range of PC's for which no
786 line number information is known.
787 * symtab.c (find_pc_sect_line): If our best fit is in a range of
788 PC's for which no line number info is found (line number is zero)
789 then we didn't find any valid line information.
790 * symtab.h: Document use of zero line number entry.
791
792 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
793
794 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
795 (have_ptrace_getvrregs): Define for run time checks.
796 (gdb_vrregset_t): New type for Altivec register handling.
797 (fetch_register, store_register): Fetch/store altivec register
798 when needed.
799 (fetch_altivec_register, store_altivec_register): New functions.
800 (supply_vrregset, fill_vrregset): New functions.
801 (fetch_altivec_registers, store_altivec_registers): New functions.
802 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
803 registers as well.
804
805 2002-02-21 Jiri Smid <smid@suse.cz>
806
807 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
808
809 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
810
811 * Makefile.in (armnbsd-nat.o): Update dependencies.
812 * armnbsd-nat.c (supply_gregset): New function. Common code to
813 supply the integer register set.
814 (supply_fparegset): New function. Similar for FPA registers.
815 (fetch_regs, fetch_fp_regs): Use them.
816 (fetch_core_registers): Likewise.
817 (fetch_elfcore_registers): New function.
818 (arm_netbsd_elfcore_fns): New core-file type specification.
819 (_initialize_arm_netbsd_nat): Register it.
820
821 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
822
823 * armnbsd-nat.c: Include gdbcore.h.
824 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
825 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
826 'void' to declaration, to shut up ARI.
827 (fetch_core_registers): Make static. Rewrite using supply_register.
828 (arm_netbsd_core_fns): New core-file type specification.
829 (_initialize_arm_netbsd_nat): New function.
830
831 2002-02-21 Christopher Faylor <cgf@redhat.com>
832
833 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
834 value.
835
836 2002-02-20 Christopher Faylor <cgf@redhat.com>
837
838 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
839 fails.
840
841 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
842
843 * jv-exp.y (parse_number): Change type of implicit longs
844 to builtin_type_uint64.
845
846 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
847
848 * gdbserver/linux-low.c (mywait): Change argument to waitpid
849 to be an integer instead of a `union wait'.
850
851 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
852
853 * mips-linux-nat.c: Call the operating system GNU/Linux.
854 * mips-linux-tdep.c: Likewise.
855 * mips-tdep.c: Likewise.
856
857 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
858
859 Fix PR gdb/265.
860 * jv-exp.y (parse_number): Handle 64-bit integers.
861
862 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
863
864 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
865 AC_STDC_HEADERS to AC_HEADER_STDC.
866 * gdbserver/configure: Regenerated.
867
868 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
869
870 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
871 is defined.
872 * sparc-tdep.c (get_longjmp_target): Likewise.
873
874 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
875
876 * News: Add news about ARM and Multi-arch. Mention the new target
877 arm*-*-netbsd*.
878
879 2002-02-19 Jim Blandy <jimb@redhat.com>
880
881 * stabsread.c (error_type_complaint): Improve error message.
882
883 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
884
885 * gdbserver/README: Update documentation.
886 * gdbserver/configure.in: Update configury to match documentation.
887 * gdbserver/Makefile.in: Likewise.
888 * gdbserver/configure: Regenerated.
889 * gdbserver/aclocal.m4: New file, generated by aclocal.
890 * gdbserver/config.in: New file, generated by autoheader.
891
892 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
893
894 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
895 armnbsd-nat.c.
896
897 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
898
899 * arm-tdep.h (enum arm_float_model): New enum.
900 (struct gdbarch_tdep): Add fp_model.
901 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
902 up floating-point conversions until we know the floating-point model
903 in use by the inferior. Don't complain about being unable to
904 determine the ABI of the inferior when we don't have one.
905 (arm_extract_return_value): Support different floating-point models.
906 (arm_store_return_value): Likewise.
907 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
908 ARM_FLOAT_SOFT.
909 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
910
911 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
912
913 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
914 of ``current_gdbarch''.
915
916 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
917
918 * armnbsd-nat.c : ANSIfy all function declarations.
919 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
920 (fetch_inferior_registers): Re-implement in terms of above.
921 (store_register, store_regs, store_fp_register, store_fp_regs): New.
922 (store_inferior_registers): Re-implement in terms of above.
923
924 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
925
926 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
927 kernel.
928 * arm-linux-tdep.c: Likewise.
929 * config/arm/tm-linux.h: Likewise.
930
931 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
932
933 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
934 * config/arm/nbsd.mt (TM_FILE): Delete.
935 * config/arm/tm-nbsd.h: Delete.
936
937 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
938
939 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
940 Initialize CALL_DUMMY_LENGTH.
941
942 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
943
944 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
945 function.
946 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
947 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
948 defines one thing and that is incorrect for this port.
949 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
950
951 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
952
953 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
954
955 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
956
957 * win32-nat.c (display_selector): New function. Displays information
958 about the information returned by GetThreadSelectorEntry API function.
959 (display_selectors): New function. Displays the infomation of
960 the selector given as argument, or of CS, DS ans FS selectors
961 if no argument is given.
962 ( _initialize_inftarg): Add "w32" as info prefix command.
963 Add "info w32 selector" as command calling display_selectors.
964
965 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
966
967 * i386-tdep.c (get_longjmp_target): Fix compilation failure
968 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
969 if not defined.
970
971 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
972
973 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
974
975 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
976
977 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
978 (arm_fix_call_dummy): Call it.
979 (arm_call_dummy_breakpoint_offset): Delete.
980 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
981 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
982
983 2002-02-18 Andrew Cagney <ac131313@redhat.com>
984
985 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
986 Default to func_frame_chain_valid.
987 * gdbarch.h, gdbarch.c: Re-generate.
988 * frame.h (FRAME_CHAIN_VALID): Delete definition.
989
990 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
991
992 * ppc-linux-nat.c: Update copyright.
993 (fetch_register, store_register): Add tid parameter, don't compute
994 tid here.
995 (fetch_ppc_registers, store_ppc_registers): Add tid
996 parameter. Pass it along to callees.
997 (fetch_inferior_registers, store_inferior_registers): Compute tid
998 here, and pass it to calleed functions.
999 (fill_gregset, supply_fpregset): Clean up formatting.
1000
1001 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1002
1003 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1004 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1005
1006 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1007
1008 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1009 * gdbarch.c gdbarch.h: Regenerate.
1010 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1011 function.
1012 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1013 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1014 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1015
1016 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1017 * arm-tdep.c (arm_get_longjmp_target): New function.
1018 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1019 this to a positive value register arm_get_longjmp_target as the
1020 longjmp handler.
1021 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1022 (arm_linux_init_abi): Set up longjmp description in tdep.
1023 * armnbsd-nat.c (get_longjmp_target): Delete.
1024 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1025 description in tdep.
1026 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1027 (get_longjmp_target): Delete declaration.
1028 (GET_LONGJMP_TARGET): Delete.
1029 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1030 (GET_LONGJMP_TARGET): Delete.
1031
1032 2002-02-17 Kevin Buettner <kevinb@redhat.com>
1033
1034 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1035 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1036 of ``current_gdbarch''.
1037
1038 2002-02-17 Tom Tromey <tromey@redhat.com>
1039
1040 * cli/cli-cmds.c (compare_strings): New function.
1041 (complete_command): Only print each unique item once.
1042 * completer.h (complete_line): Declare.
1043 * completer.c (complete_line): New function.
1044 (line_completion_function): Use it.
1045
1046 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1047
1048 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1049 * gdbarch.h, gdbarch.c: Re-generate.
1050
1051 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1052
1053 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1054
1055 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1056
1057 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1058 * valops.c (value_arg_coerce): Don't take the address of a reference
1059 to convert an argument to a reference.
1060
1061 2002-02-15 Christopher Faylor <cgf@redhat.com>
1062
1063 * win32-nat.c (get_image_name): New function.
1064 (handle_load_dll): Use get_image_name function.
1065 (get_child_debug_event): Avoid registering debug events until possibly
1066 execed process is started.
1067 (child_create_inferior): Allow invocation via shell so that command
1068 line redirection, etc. works ok.
1069 (_initialize_inftarg): Add new command: "set shell" to control whether
1070 a shell is used to start a process.
1071
1072 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1073
1074 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1075 instead of find_register_by_number.
1076 (cannot_store_register): Likewise.
1077
1078 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1079
1080 * dwarf2read.c: Replace fprintf (stderr, ...) by
1081 fprintf_unfiltered (gdb_stderr, ...).
1082
1083 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1084
1085 * gdbserver/gdbserver.1: Document --attach.
1086
1087 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1088
1089 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
1090 descriptions.
1091 * arm-tdep.c (arm_default_arm_le_breakpoint)
1092 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
1093 (arm_default_thumb_be_breakpoint): New. Initialize them from
1094 traditional breakpoint defines.
1095 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
1096 (arm_gdbarch_init): Initialize new breakpoint variables.
1097 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
1098 (arm_linux_init_abi): Initialize linux-specific breakpoint.
1099 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
1100 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
1101 code out to ...
1102 (arm_netbsd_init_abi_common): ... here; new function.
1103 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
1104 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
1105 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
1106 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
1107
1108 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
1109
1110 * arm-tdep.h (enum arm_abi): New enum.
1111 (struct gdbarch_tdep): New structure.
1112 (LOWEST_PC): Provide a default.
1113 (arm_gdbarch_register_os_abi): Declare new function.
1114 * arm-tdep.c (arm_abi_names): New array.
1115 (process_note_abi_tag_sections): New function.
1116 (get_elfosabi): New function.
1117 (arm_gdbarch_register_os_abi): New function.
1118 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
1119 support for that ABI has been built in, then call the appropriate
1120 configuration routine. Use gdbarch_num_regs() to get the number
1121 of registers.
1122 (arm_dump_tdep): New function.
1123 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
1124 place-holder functions.
1125 (_initialize_arm_tdep): Register them.
1126 * config/arm/tm-arm.h (LOWEST_PC): Delete.
1127
1128 * armnbsd-tdep.c: New file.
1129 * Makefile.in (armnbsd-tdep.o): Add dependencies.
1130 * config/arm/nbsd.mt (TDEPFILES): Add it.
1131 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
1132
1133 * armnbsd-nat.c: Include regcache.h.
1134 * Makefile.in (armnbsd-nat.o): Update dependency list.
1135
1136 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
1137
1138 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1139
1140 * gdbserver/Makefile.in: Fix typos in target rules.
1141
1142 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1143
1144 Fix part of PR gdb/267.
1145 * linespec.c (find_methods): Handle constructors specially for now.
1146
1147 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
1148
1149 * arm-tdep.c (arm_push_arguments): Eliminate special float type
1150 handling.
1151 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
1152 standard_coerce_float_to_double().
1153
1154 2002-02-14 Christopher Faylor <cgf@redhat.com>
1155
1156 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
1157 GDBINIT_FILENAME.
1158
1159 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
1160
1161 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
1162 find_variant_by_name, because it confuses the multiarch
1163 framework. Return NULL if there isn't an architecture with the
1164 user supplied name, instead of forcing a different one without
1165 recording the change with the multiarch machinery.
1166 (find_variant_by_name): Delete.
1167
1168 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1169
1170 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
1171 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
1172
1173 2002-02-13 Martin M. Hunt <hunt@redhat.com>
1174
1175 * stack.c (print_frame_info_base): When calling
1176 print_frame_info_listing_hook, set current_source_symtab.
1177
1178 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1179
1180 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
1181 and remove unused $(INCLUDE_DIR).
1182 Add regcache.c to OBS.
1183 Add generated register protocol files to clean target.
1184 Update dependencies for new objects, obsolete old target code.
1185
1186 * gdbserver/linux-low.c: Remove all platform-specific code to
1187 new files. Remove various dead code. Update to use regcache
1188 functionality.
1189 * gdbserver/remote-utils.c (fromhex): Add return statement
1190 to quiet warning.
1191 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
1192 constant.
1193 (input_interrupt): Add integer parameter to match prototype
1194 of a signal handler.
1195 (outreg): Use register_data ().
1196 (prepare_resume_reply): Use gdbserver_expedite_regs.
1197 * gdbserver/server.c (main): Dynamically allocate own_buf because
1198 PBUFSIZ is no longer constant. Use registers_to_string () and
1199 registers_from_string ().
1200 * gdbserver/server.h: No longer include "defs.h". Add prototypes
1201 for error (), fatal (), and warning (). Update definition of
1202 PBUFSIZ to use regcache functionality. Add include guard.
1203 * gdbserver/utils.c (fatal): Add missing ``const''.
1204 (warning): New function.
1205
1206 * regformats/regdat.sh: Include "regcache.h" in generated files.
1207 Provide init_registers () function.
1208 * regformats/regdef.h: Add prototype for set_register_cache ().
1209 Add include guard.
1210
1211 * gdbserver/linux-arm-low.c: New file.
1212 * gdbserver/linux-i386-low.c: New file.
1213 * gdbserver/linux-ia64-low.c: New file.
1214 * gdbserver/linux-m68k-low.c: New file.
1215 * gdbserver/linux-mips-low.c: New file.
1216 * gdbserver/linux-ppc-low.c: New file.
1217 * gdbserver/linux-sh-low.c: New file.
1218
1219 * gdbserver/regcache.c: New file.
1220 * gdbserver/regcache.h: New file.
1221
1222 * gdbserver/low-linux.c: Removed obsolete file.
1223
1224 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1225
1226 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
1227 * config/i386/linux.mt: Likewise.
1228 * config/ia64/linux.mt: Likewise.
1229 * config/m68k/linux.mh: Likewise.
1230 * config/powerpc/linux.mh: Likewise.
1231 * config/mips/linux.mt: Likewise.
1232
1233 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
1234
1235 * config/i386/i386lynx.mh: Mark gdbserver variables
1236 as (currently) obsolete for this target.
1237 * config/i386/nbsd.mt: Likewise.
1238 * config/i386/nbsdelf.mt: Likewise.
1239 * config/m32r/m32r.mt: Likewise.
1240 * config/m68k/m68klynx.mh: Likewise.
1241 * config/m68k/nbsd.mt: Likewise.
1242 * config/m68k/sun3os4.mh: Likewise.
1243 * config/mips/vr5000.mt: Likewise.
1244 * config/ns32k/nbsd.mt: Likewise.
1245 * config/pa/hppabsd.mh: Likewise.
1246 * config/pa/hppaosf.mh: Likewise.
1247 * config/powerpc/nbsd.mt: Likewise.
1248 * config/rs6000/rs6000lynx.mh: Likewise.
1249 * config/s390/s390.mt: Likewise.
1250 * config/s390/s390x.mt: Likewise.
1251 * config/sparc/sparclynx.mh: Likewise.
1252 * config/sparc/sun4os4.mh: Likewise.
1253 * config/i386/x86-64linux.mt: Likewise.
1254 * config/sparc/linux.mh: Likewise.
1255
1256 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
1257
1258 * configure.tgt: Configure gdbserver only for known working
1259 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
1260 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
1261 SUBDIRS if it is configured. Update comment for ${nativefile}.
1262 * configure: Regenerated.
1263
1264 2002-02-13 Michael Snyder <msnyder@redhat.com>
1265
1266 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
1267 (default_gcore_mach): Just return 0, work around a problem in bfd.
1268 (default_gcore_target): OK to return NULL if exec_bfd is null.
1269 (make_mem_sec): Use a cast, avoid a warning.
1270
1271 * procfs.c (find_memory_regions_callback): Use a cast instead of
1272 calling host_pointer_to_address (which complains if
1273 sizeof (host pointer) != sizeof (target pointer)).
1274 (procfs_make_note_section): Avoid overflow in psargs string.
1275
1276 * procfs.c (procfs_make_note_section): Make the default
1277 implementation return an error.
1278
1279 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
1280
1281 * procfs.c (procfs_make_note_section): Provide a default definition
1282 (for alpha-dec-osf4.0f). Fix typos.
1283
1284 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
1285
1286 * linux-proc.c: Add include of regcache.h.
1287 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
1288
1289 2002-02-13 Andrew Cagney <ac131313@redhat.com>
1290
1291 From 2002-01-18 Greg McGary <greg@mcgary.org>:
1292 * memattr.c (create_mem_region): Disallow useless empty region.
1293 Regions are half-open intervals, so allow [A..B) [B..C) as
1294 non-overlapping.
1295
1296 2002-02-13 Michael Chastain <mec@shout.net>
1297
1298 * defs.h: Kill CONST_PTR.
1299 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
1300 * c-lang.c (c_builtin_types): Likewise.
1301 * ch-lang.c (ch_builtin_types): Likewise.
1302 * f-lang.c (f_builtin_types): Likewise.
1303 * language.c (unknown_builtin_types): Likewise.
1304 * m2-lang.c (m2_builtin_types): Likewise.
1305 * p-lang.c (pascal_builtin_types): Likewise.
1306 * scm-lang.c (c_builtin_types): Likewise.
1307
1308 2002-02-13 Keith Seitz <keiths@redhat.com>
1309
1310 * arm-tdep.h (arm_get_next_pc): Add declaration.
1311
1312 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
1313
1314 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
1315 with other related struct-returning functions.
1316 (arm_extract_struct_value_address): New function.
1317 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
1318 initialize float_format, double_format and long_double_format as
1319 appropriate to the endianness of the target.
1320 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
1321 (arm_use_struct_convention): Delete declaration.
1322 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1323
1324 2002-02-13 Keith Seitz <keiths@redhat.com>
1325
1326 * defs.h (core_addr_to_string_nz): New function.
1327
1328 2002-02-13 Mark Kettenis <kettenis@gnu.org>
1329
1330 Apply missing bits of 2002-01-15 patch.
1331 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
1332 (fill_fpregset): Use i387_fill_fsave.
1333
1334 2002-02-12 Keith Seitz <keiths@redhat.com>
1335
1336 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
1337 (core_addr_to_string_nz): New function.
1338
1339 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1340
1341 * arm-linux-nat.c: Really include arm-tdep.h.
1342 * config/arm/tm-linux.h (struct type, struct value): Declare.
1343
1344 2002-02-11 Michael Snyder <msnyder@redhat.com>
1345
1346 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
1347 (gcore section): Ifdef for Solaris and Unixware only.
1348 (procfs_do_thread_registers): Unixware needs one lwpstatus
1349 per thread (not one prstatus or pstatus).
1350 (procfs_make_note_section): Iterate only over kernel threads (lwps),
1351 not over all gdb threads. For unixware, call elfcore_write_pstatus
1352 once before iterating over threads.
1353
1354 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1355
1356 * arm-tdep.h: New file.
1357 * arm-tdep.c: Include arm-tdep.h.
1358 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1359 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1360 (arm_print_float_info, arm_register_type, convert_to_extended)
1361 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1362 (arm_extract_return_value, arm_register_name): Make static.
1363 (arm_software_single_step): Similarly. Fix types in declaration.
1364 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
1365 (arm_store_return_value, arm_store_struct_return): New functions.
1366 (arm_gdbarch_init): Register the above functions. Also register
1367 call_dummy_start_offset, sizeof_call_dummy_words,
1368 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
1369 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
1370 max_register_virtual_size, register_size. Set up
1371 prologue_cache.saved_regs here, rather than ...
1372 (_initialize_arm_tdep): ... here.
1373 * config/arm/tm-arm.h (struct type, struct value): Delete forward
1374 declarations.
1375 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
1376 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
1377 (arm_print_float_info, arm_register_type, convert_to_extended)
1378 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
1379 (arm_extract_return_value, arm_register_name): Delete declarations.
1380 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
1381 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
1382 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
1383 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
1384 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
1385 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
1386 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
1387 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
1388 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
1389 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
1390 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
1391 (arm_get_next_pc): No-longer static -- these are needed by the RDI
1392 interface.
1393 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
1394 * remote-rdi.c remote-rdp.c: Likewise.
1395 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
1396 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
1397 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
1398 definition.
1399
1400 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
1401 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
1402 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
1403 from non-ARM_ prefixed definitions.
1404 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
1405 all uses of above.
1406 * remote-rdi.c remote-rdp.c: Likewise.
1407 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
1408
1409 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
1410
1411 * arm-tdep.c (arm_frameless_function_invocation)
1412 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1413 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1414 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1415 (arm_pop_frame, arm_get_next_pc): Make static.
1416 (arm_gdbarch_init): Register above in gdbarch structure.
1417 (arm_read_fp): Renamed from arm_target_read_fp.
1418 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
1419 * config/arm/tm-arm.h (arm_frameless_function_invocation)
1420 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
1421 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
1422 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
1423 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
1424 (arm_pc_is_thumb_dummy): Delete declarations.
1425 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
1426 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
1427 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
1428 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
1429
1430 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1431
1432 * symtab.c (compare_search_syms): New function.
1433 (sort_search_symbols): New function.
1434 (search_symbols): Sort symbols after searching rather than
1435 before.
1436
1437 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1438
1439 * NEWS: Linux -> GNU/Linux.
1440
1441 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1442
1443 * gdbarch.sh: For for level one methods, disallow a definition
1444 when partially multi-arched. Add comments explaining rationale.
1445 * gdbarch.h: Re-generate.
1446
1447 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1448
1449 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
1450 multi-arch partial.
1451
1452 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1453
1454 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
1455 field. Use diff -u.
1456 * gdbarch.c: Re-generate.
1457
1458 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1459
1460 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
1461 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
1462 partial.
1463
1464 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1465
1466 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
1467 multi-arch partial.
1468 (PUSH_ARGUMENTS): Switch to using predefault.
1469 * gdbarch.c: Regenerate.
1470
1471 2002-02-10 Andrew Cagney <ac131313@redhat.com>
1472
1473 * valops.c (PUSH_ARGUMENTS): Delete definition.
1474 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
1475 partial. Default to default_push_arguments.
1476 * gdbarch.h, gdbarch.c: Regenerate.
1477
1478 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1479
1480 * defs.h (throw_exception): Rename return_to_top_level. Update
1481 comments.
1482 * utils.c (error_stream, internal_verror, quit): Ditto.
1483 * top.c (throw_exception, catcher): Ditto.
1484 * sparclet-rom.c (sparclet_load): Ditto.
1485 * remote.c (interrupt_query, minitelnet): Ditto.
1486 * remote-sds.c (interrupt_query): Ditto.
1487 * remote-mips.c (mips_error, mips_kill): Ditto.
1488 * ocd.c (interrupt_query): Ditto.
1489 * monitor.c (monitor_interrupt_query): Ditto.
1490 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
1491 * target.h: Update comment.
1492
1493 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
1494
1495 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1496
1497 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
1498 default_double_format.
1499 * gdbarch.h, gdbarch.c: Re-generate.
1500 * findvar.c (floatformat_unknown): Delete variable definition.
1501 * doublest.h (floatformat_unknown): Delete variable declaration.
1502
1503 2002-02-09 Jim Blandy <jimb@redhat.com>
1504
1505 * stabsread.c (read_type): Add code to parse Sun's syntax for
1506 prototyped function types.
1507
1508 2002-02-09 Andrew Cagney <ac131313@redhat.com>
1509
1510 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
1511 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
1512
1513 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1514
1515 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
1516 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
1517 now _initialize_xcoffsolib gets called again and overrides the
1518 commands from solib.c in a native configuration.
1519
1520 2002-02-09 Mark Kettenis <kettenis@gnu.org>
1521
1522 * doublest.c (store_typed_floating): Don't try to return a value.
1523 Fixes PR gdb/290.
1524
1525 2002-02-08 Jim Blandy <jimb@redhat.com>
1526
1527 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
1528 is prototyped and has no arguments, print its argument list as
1529 `(void)'.
1530
1531 2002-02-08 Chris Demetriou <cgd@broadcom.com>
1532
1533 * MAINTAINERS (write-after-approval): Add myself.
1534 (paper-trail): I've escaped!
1535
1536 2002-02-08 Christopher Faylor <cgf@redhat.com>
1537
1538 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
1539 changes.
1540 (_initialize_check_for_gdb_ini): Ditto.
1541
1542 2002-02-08 Martin M. Hunt <hunt@redhat.com>
1543
1544 * win32-nat.c (cygwin_pid_to_str): Fix typo.
1545 xaprintf -> xasprintf.
1546
1547 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
1548
1549 * win32-nat.c: Remove use of printf and sprintf functions.
1550
1551 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
1552
1553 * arm-tdep.c (arm_frame_chain_valid): Make static.
1554 (arm_push_arguments): Likewise.
1555 (arm_gdbarch_init): New function.
1556 (_initialize_arm_tdep): Call it.
1557 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
1558 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
1559 (FRAME_CHAIN_VALID): Delete.
1560 (arm_frame_chain_valid): Delete declaration.
1561 (PUSH_ARGUMENTS): Delete.
1562 (arm_push_arguments): Delete declaration.
1563 (CALL_DUMMY_P): Delete.
1564
1565 2002-02-08 Andrew Cagney <ac131313@redhat.com>
1566 Corinna Vinschen <vinschen@redhat.com>
1567
1568 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
1569 on builtin float types.
1570
1571 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * utils.c: Include <curses.h> before "bfd.h".
1574 * tui/tui-hooks.c: Likewise.
1575 * tui/tui.c: Likewise.
1576 * tui/tuiCommand.c: Likewise.
1577 * tui/tuiData.c: Likewise.
1578 * tui/tuiDataWin.c: Likewise.
1579 * tui/tuiDisassem.c: Likewise.
1580 * tui/tuiGeneralWin.c: Likewise.
1581 * tui/tuiIO.c: Likewise.
1582 * tui/tuiLayout.c: Likewise.
1583 * tui/tuiRegs.c: Likewise.
1584 * tui/tuiSource.c: Likewise.
1585 * tui/tuiSourceWin.c: Likewise.
1586 * tui/tuiStack.c: Likewise.
1587 * tui/tuiWin.c: Likewise.
1588
1589 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
1590
1591 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
1592 to include space for pseudoregs as well. Update loops accordingly.
1593 (sh_fp_frame_init_saved_regs): Ditto.
1594 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
1595
1596 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1597
1598 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
1599 Add Richard Earnshaw to Arm maintainers.
1600
1601 2002-02-07 Andrew Cagney <ac131313@redhat.com>
1602
1603 * defs.h (warning_begin): Delete declaration.
1604
1605 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
1606 Delete macro.
1607
1608 2002-02-07 Michael Snyder <msnyder@redhat.com>
1609
1610 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1611 Logic bug, remove misplaced else.
1612
1613 2002-02-07 Klee Dienes <klee@apple.com>
1614
1615 * fork-inferior.c (fork_inferior): Add '!' to the list of
1616 characters that need to be quoted when building a string for the
1617 shell. Quote '!' specifically with a backslash, since CSH chokes
1618 when trying to evaluate "str!str".
1619
1620 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
1621
1622 * rdi-share/host.h: Only provide a typedef for bool if it is not
1623 defined.
1624
1625 2002-02-04 Michael Snyder <msnyder@redhat.com>
1626
1627 * breakpoint.h (enum bptype): Add new overlay event bp type.
1628 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
1629
1630 * breakpoint.c (create_internal_breakpoint): New function.
1631 (internal_breakpoint_number): Moved into create_internal_breakpoint.
1632 (create_longjmp_breakpoint): Use create_internal_breakpoint.
1633 (create_thread_event_breakpoint): Ditto.
1634 (create_solib_event_breakpoint): Ditto.
1635 (create_overlay_event_breakpoint): New function.
1636 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
1637 (update_breakpoints_after_exec): Delete and re-initialize
1638 overlay event breakpoints after an exec. Add FIXME comment
1639 about longjmp breakpoint.
1640 (print_it_typical): Ignore overlay event breakpoints.
1641 (print_one_breakpoint): Ditto.
1642 (mention): Ditto.
1643 (bpstat_what): Do not stop for overlay event breakpoints.
1644 (delete_breakpoint): Don't delete overlay event breakpoints.
1645 (breakpoint_re_set_one): Delete the overlay event breakpoint.
1646 (breakpoint_re_set): Re-create overlay event breakpoint.
1647
1648 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
1649 (overlay_manual_command): Disable overlay breakpoints.
1650 (overlay_off_command): Disable overlay breakpoints.
1651
1652 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1653
1654 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
1655 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
1656 to here from config/tm-arm.h.
1657 (coff_sym_is_thumb): Make static.
1658 (arm_elf_make_msymbol_special): New function.
1659 (arm_coff_make_msymbol_special): New function.
1660 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
1661 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
1662 (coff_sym_is_thumb): Delete declaration.
1663 (arm_elf_make_msymbol_special): Declare.
1664 (arm_coff_make_msymbol_special): Declare.
1665 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
1666 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
1667
1668 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1669
1670 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
1671
1672 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
1673
1674 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
1675 * gdbarch.c gdbarch.h: Regenerate.
1676 * arch-utils.c (default_print_float_info): New function.
1677 * arch-utils.h (default_print_float_info): Prototype it.
1678 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
1679 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
1680 (PRINT_FLOAT_INFO): Document it.
1681
1682 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
1683 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
1684 (PRINT_FLOAT_INFO): Define.
1685
1686 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
1687
1688 * win32-nat.c (_initialize_check_for_gdb_ini):
1689 Add typecast to sprintf argument to suppress a warning.
1690
1691 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
1692
1693 * win32-nat.c (last_sig): Changed type of variable to target_signal,
1694 to allow easier handling of pass state.
1695 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
1696 that gives exception name and address.
1697 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
1698 and set last_sig value to ourstatus->value.sig. Some missing
1699 exceptions added.
1700 (child_continue): Correctly report continue_status.
1701 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
1702 TARGET_SIGNAL_0 (new default value).
1703 (child_resume): consider sig argument passed to decide if
1704 the exception should be passed to debuggee or not.
1705
1706 2002-02-05 Michael Snyder <msnyder@redhat.com>
1707
1708 * regcache.c (fetch_register): Call target_fetch_register
1709 only if we don't call FETCH_PSEUDO_REGISTER.
1710 (store_register): Call target_store_register only if we
1711 don't call STORE_PSEUDO_REGISTER.
1712
1713 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
1714
1715 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
1716 ELF_MAKE_MSYMBOL_SPECIAL.
1717 * gdbarch.c, gdbarch.h: Regenerate.
1718 * arch-utils.c (default_make_msymbol_special): New function.
1719 * arch-utils.h (default_make_msymbol_special): Export.
1720 * elfread.c (elf_symtab_read): Compile use of
1721 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
1722 multiarched.
1723 * coffread.c (coff_symtab_read): Ditto, for
1724 COFF_MAKE_MSYMBOL_SPECIAL.
1725
1726 2002-02-05 Jim Blandy <jimb@redhat.com>
1727
1728 * solib-svr4.c (svr4_truncate_ptr): New function.
1729 (svr4_relocate_section_addresses): Do the address arithmetic with
1730 the appropriate truncation for target addresses, even when
1731 CORE_ADDR is larger than a target address.
1732
1733 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1734
1735 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
1736 to (int *).
1737
1738 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1739
1740 * gdbserver/linux-low.c (kill_inferior): Remove commented out
1741 code.
1742
1743 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1744
1745 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
1746
1747 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1748
1749 * gdbserver/linux-low.c: Remove unused include files.
1750
1751 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1752
1753 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
1754 (read_inferior_memory): Use it.
1755 (write_inferior_memory): Likewise.
1756
1757 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1758
1759 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
1760 grubbing through sys_errlist.
1761
1762 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
1763
1764 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
1765
1766 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1767 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
1768
1769 2002-02-04 Andrew Cagney <ac131313@redhat.com>
1770
1771 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
1772 (do_sfunc, set_cmd_sfunc): New functions.
1773
1774 * command.h (struct cmd_list_element): Add field func.
1775 * cli/cli-decode.h (struct cmd_list_element): Ditto.
1776 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
1777 * cli/cli-decode.h: Ditto.
1778
1779 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
1780 (help_all, help_cmd_list): Ditto.
1781 (find_cmd, complete_on_cmdlist): Ditto.
1782 * top.c (execute_command): Ditto.
1783
1784 * cli/cli-setshow.c (do_setshow_command): Call func instead of
1785 function.sfunc.
1786
1787 * infcmd.c (notice_args_read): Fix function signature.
1788
1789 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
1790 * cli/cli-decode.c (add_set_cmd): Ditto.
1791 * utils.c (initialize_utils): Ditto.
1792 * maint.c (_initialize_maint_cmds): Ditto.
1793 * infrun.c (_initialize_infrun): Ditto.
1794 * demangle.c (_initialize_demangler): Ditto.
1795 * remote.c (add_packet_config_cmd): Ditto.
1796 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1797 * cris-tdep.c (_initialize_cris_tdep): Ditto.
1798 * proc-api.c (_initialize_proc_api): Ditto.
1799 * kod.c (_initialize_kod): Ditto.
1800 * valprint.c (_initialize_valprint): Ditto.
1801 * top.c (init_main): Ditto.
1802 * infcmd.c (_initialize_infcmd): Ditto.
1803 * corefile.c (_initialize_core): Ditto.
1804 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1805 * arch-utils.c (initialize_current_architecture): Ditto.
1806 (_initialize_gdbarch_utils): Ditto.
1807 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
1808
1809 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
1810 * wince.c (_initialize_inftarg): Ditto.
1811 * symfile.c (_initialize_symfile): Ditto.
1812 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1813 * language.c (_initialize_language): Ditto.
1814 * arc-tdep.c (_initialize_arc_tdep): Ditto.
1815
1816 2002-02-04 Michael Snyder <msnyder@redhat.com>
1817
1818 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
1819
1820 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1821
1822 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
1823 Add rules for building the register data files.
1824
1825 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1826
1827 * regformats/regdat.sh: Add braces to the definition of
1828 expedite_regs_${arch}.
1829
1830 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * regformats/regdef.h (struct reg): Add comment describing the
1833 requirements for offset and size fields.
1834
1835 2002-02-04 Andreas Schwab <schwab@suse.de>
1836
1837 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
1838 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
1839
1840 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
1841
1842 * gdbarch.sh (copyright): Update years in generated header.
1843 (SMASH_TEXT_ADDRESS): Add rule.
1844 * gdbarch.h, gdbarch.c: Re-generate.
1845 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
1846 * dbxread.c: Likewise.
1847 * dwarfread.c: Likewise.
1848 * elfread.c: Likewise.
1849 * somread.c: Likewise.
1850
1851 * arm-tdep.c (arm_smash_text_address): New function.
1852 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
1853
1854 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
1855
1856 Add support for hardware watchpoints on win32 native.
1857 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
1858 CONTEXT_DEBUG_REGISTERS.
1859 (dr variable): New variable. Static array containing a local copy
1860 of debug registers.
1861 (debug_registers_changed): New variable. Reflects when debug registers
1862 are changed and need to be written to inferior.
1863 (debug_registers_used): New variable. Reflects when any debug register
1864 was set, used when new threads are created.
1865 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
1866 i386-nat code.
1867 (thread_rec): Set dr array if id is the thread of current_event .
1868 (child_continue, child_resume): Change the debug registers for all
1869 threads if debug_registers_changed.
1870 (child_add_thread): Change the debug registers if debug_registers_used.
1871 * config/i386/cygwin.mh: Add use of i386-nat.o file.
1872 Link nm.h to new nm-cygwin.h file.
1873 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
1874 of hardware registers.
1875
1876 2002-02-03 Andrew Cagney <ac131313@redhat.com>
1877
1878 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
1879 Restore behavour broken by 2002-01-20 Andrew Cagney
1880 <ac131313@redhat.com> IEEE_FLOAT removal.
1881
1882 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * c-valprint.c (c_val_print): Pass a proper valaddr to
1885 cp_print_class_method.
1886 * valops.c (search_struct_method): If there is only one method
1887 and args is NULL, return that method.
1888
1889 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1890
1891 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
1892 accessing tag_name directly.
1893
1894 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1895
1896 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
1897 of accessing tag_name directly.
1898
1899 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
1900
1901 PR gdb/280
1902 * gdbtypes.c (replace_type): New function.
1903 * gdbtypes.h (replace_type): Add prototype.
1904 * stabsread.c (read_type): Use replace_type.
1905
1906 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
1907
1908 * Makefile.in (memattr.o): Add missing dependencies rule.
1909
1910 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1911
1912 * breakpoint.c (break_at_finish_command): Really export.
1913 (break_at_finish_at_depth_command): Ditto.
1914 (tbreak_at_finish_command): Ditto.
1915 * hppa-tdep.c: Include completer.h.
1916 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
1917 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
1918
1919 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1920
1921 * utils.c (do_write): New function.
1922 (error_stream): Rewrite combining the code from error_begin and
1923 verror.
1924 (verror): Rewrite using error_stream.
1925 (error_begin): Delete function.
1926
1927 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1928
1929 * utils.c (error_begin): Make static.
1930 * defs.h (error_begin): Delete declaration.
1931
1932 * linespec.c (cplusplus_error): Replace cplusplus_hint.
1933 (decode_line_1): Use cplusplus_error instead of error_begin,
1934 cplusplus_hint and return_to_top_level.
1935 * coffread.c (coff_symfile_read): Use error instead of error_begin
1936 and return_to_top_level.
1937 * infrun.c (default_skip_permanent_breakpoint): Ditto.
1938
1939 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1940
1941 * language.h (type_error, range_error): Make string parameter
1942 constant.
1943 * language.c (warning_pre_print): Delete extern declaration.
1944 * dwarfread.c (warning_pre_print): Ditto.
1945 * language.c (type_error, range_error): Rewrite to use verror and
1946 vwarning instead of warning_begin.
1947
1948 2002-02-01 Michael Snyder <msnyder@redhat.com>
1949
1950 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
1951 (set_ignore_count): Move misplaced comment back where it belongs.
1952
1953 2002-02-01 Andrew Cagney <ac131313@redhat.com>
1954
1955 * command.h (NO_FUNCTION): Delete macro.
1956 * cli/cli-decode.h (NO_FUNCTION): Ditto.
1957 * top.c (execute_command): Replace NO_FUNCTION with NULL.
1958 * tracepoint.c (_initialize_tracepoint): Ditto.
1959 * cli/cli-decode.c (add_set_cmd): Ditto.
1960 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1961
1962 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1963
1964 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
1965 Update ``this'' pointer when calling virtual functions.
1966
1967 2002-02-01 Michael Snyder <msnyder@redhat.com>
1968
1969 * breakpoint.c (create_temp_exception_breakpoint): Delete.
1970 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
1971
1972 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
1973
1974 * regformats/reg-arm.dat: New file.
1975 * regformats/reg-i386.dat: New file.
1976 * regformats/reg-ia64.dat: New file.
1977 * regformats/reg-m68k.dat: New file.
1978 * regformats/reg-mips.dat: New file.
1979 * regformats/reg-ppc.dat: New file.
1980 * regformats/reg-sh.dat: New file.
1981 * regformats/regdef.h: New file.
1982 * regformats/regdat.sh: New file.
1983
1984 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
1985
1986 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
1987 (arm_frame_args_address, arm_frame_locals_address): New functions.
1988 (arm_frame_num_args): New function.
1989 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
1990 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
1991 (FRMA_NUM_ARGS): Call arm_frame_num_args.
1992
1993 2002-01-31 Michael Snyder <msnyder@redhat.com>
1994
1995 * breakpoint.c (break_at_finish_command): Export.
1996 (break_at_finish_at_depth_command): Export.
1997 (tbreak_at_finish_command): Export.
1998 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
1999 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2000 "tbreak" commands, which are HPPA specific.
2001
2002 * printcmd.c (disassemble_command): Remove an ancient
2003 artifact of an old merge.
2004
2005 * symfile.h (enum overlay_debugging_state):
2006 Define enum constant values for overlay mode.
2007 * symfile.c (overlay_debugging): Use enums instead of literals.
2008 (overlay_is_mapped, overlay_auto_command,
2009 overlay_manual_command): Ditto.
2010
2011 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2012 breakpoint_here_p, breakpoint_inserted_here_p,
2013 breakpoint_thread_match, bpstat_stop_status,
2014 describe_other_breakpoints, check_duplicates, clear_command):
2015 Coding standard fixes.
2016
2017 * target.c (target_xfer_memory): Add spaces, coding standard.
2018 (do_xfer_memory): Add missing line to trust-readonly
2019 code: check bfd SEC_READONLY flag for section.
2020
2021 2002-01-31 Andrew Cagney <ac131313@redhat.com>
2022
2023 * PROBLEMS: Fix typo, 5.1->5.1.1.
2024
2025 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2026
2027 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2028 data symbols, since we search based on textlow and texthigh.
2029 (find_pc_sect_symtab): Likewise.
2030
2031 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2032
2033 * defs.h (vwarning): Declare.
2034 * utils.c (vwarning): New function.
2035 (warning): Call vwarning.
2036 (warning_begin): Delete function.
2037
2038 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2039 the warning message.
2040 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2041 warning_begin.
2042
2043 2002-01-30 Michael Snyder <msnyder@redhat.com>
2044
2045 * NEWS: Mention "set trust-readonly-sections" command.
2046 Mention generate-core-file command.
2047
2048 2002-01-15 Michael Snyder <msnyder@redhat.com>
2049
2050 * target.c: New command, "set trust-readonly-sections on".
2051 (do_xfer_memory): Honor the suggestion to trust readonly sections
2052 by reading them from the object file instead of from the target.
2053 (initialize_targets): Register command "set trust-readonly-sections".
2054
2055 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2056
2057 * parse.c (target_map_name_to_register): Simplify, search regs and
2058 pseudo-regs using a single loop.
2059
2060 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2061
2062 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2063
2064 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2065
2066 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2067 * config/i386/i386v42mp.mh: Add i387-nat.o .
2068 * i386v4-nat.c: Include i387-nat.h.
2069 (supply_fpregset): Use i387_supply_fsave.
2070 (fill_fpregset): Use i387_fill_fsave.
2071
2072 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2073
2074 * arm-tdep.c (arm_call_dummy_words): Define.
2075 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2076 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2077 (CALL_DUMMY_WORDS): Define.
2078 (arm_call_dummy_words): Declare.
2079 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2080 (arm_linux_call_dummy_words): Declare.
2081
2082 2002-01-30 Andreas Schwab <schwab@suse.de>
2083
2084 * m68klinux-nat.c: Fix last change to use regcache_collect
2085 instead of referencing registers[] directly.
2086
2087 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2088
2089 * parse.c (target_map_name_to_register): Delete code wrapped in
2090 #ifdef REGISTER_NAME_ALIAS_HOOK.
2091
2092 2002-01-28 Michael Snyder <msnyder@redhat.com>
2093
2094 * regcache.c (legacy_read_register_gen): Need to be able to
2095 read pseudo-register as well as real register.
2096 (legacy_write_register_gen): Ditto.
2097
2098 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2099
2100 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2101 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
2102 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
2103 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
2104 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
2105 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
2106 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
2107 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
2108 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
2109 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
2110 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
2111 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
2112 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
2113 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
2114 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
2115 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
2116 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
2117 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
2118 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
2119 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
2120
2121 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2122
2123 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
2124 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
2125 (initialize_current_architecture): Update target_byte_order using
2126 information from BFD.
2127 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
2128 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
2129
2130 2002-01-28 Andrew Cagney <ac131313@redhat.com>
2131
2132 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
2133 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
2134
2135 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
2136 #ifdef INVALID_FLOAT.
2137 * infcmd.c (do_registers_info): Ditto.
2138 * values.c (unpack_double): Ditto. Add comment.
2139
2140 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
2141 already commented out.
2142
2143 2002-01-26 Andreas Schwab <schwab@suse.de>
2144
2145 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2146 * m68klinux-nat.c: Update ptrace interface for fetching/storing
2147 registers and add support for PTRACE_GETREGS.
2148
2149 2002-01-24 Andrew Cagney <ac131313@redhat.com>
2150
2151 GDB 5.1.1 released from 5.1 branch.
2152 * NEWS: Add 5.1.1 news.
2153 * README: Sync with 5.1 branch.
2154
2155 2002-01-23 Fred Fish <fnf@redhat.com>
2156
2157 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
2158 stabstring on initial malloc. Reallocing will copy it for us,
2159 if necessary.
2160
2161 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2162
2163 * Makefile.in (hpread_h): Delete.
2164 (HFILES_NO_SRCDIR): Remove hpread.h.
2165 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
2166 (hpread.o): Update dependencies.
2167 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
2168
2169 * hp-psymtab-read.c: Remove file.
2170 * hp-symtab-read.c: Remove file.
2171 * hpread.h: Remove file.
2172
2173 * hpread.c: Merge all contents of hp-psymtab-read.c,
2174 hp-symtab-read.c and hpread.h into this file, as it was prior to
2175 January 1999.
2176
2177 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
2178 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
2179 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
2180 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
2181
2182 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
2183
2184 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
2185 fill_gregset): Call gdbarch_tdep() just once, assign result to
2186 variable and use that, instead of calling the function several
2187 times.
2188
2189 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
2190
2191 * configure.host: Accept sparcv9 as alias for sparc64.
2192 * configure.tgt: Likewise.
2193
2194 2002-01-22 Kevin Buettner <kevinb@redhat.com>
2195
2196 * solib-aix5.c (build_so_list_from_mapfile)
2197 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
2198 arguments is not reversed.
2199 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
2200 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
2201
2202 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
2203
2204 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
2205 modified version of obsolete sh_fetch_pseudo_register.
2206 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
2207 (sh4_register_read): New function.
2208 (sh_pseudo_register_write): New function. Renamed and modified
2209 version of obsolete sh_store_pseudo_register.
2210 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
2211 (sh4_register_write): New function.
2212 (sh_gdbarch_init): Remove setting of gdbarch function
2213 fetch_pseudo_register and store_pseudo_register. Remove setting of
2214 register_convert_to_raw, register_convert_to_virtual,
2215 register_convertible.
2216 (sh_sh4_register_convertible): Delete. No longer needed. All is
2217 taken care by architecture specific functions
2218 register_read/register_write.
2219 (sh_sh4_register_convert_to_virtual): Make static.
2220 (sh_sh4_register_convert_to_raw): Ditto.
2221
2222 2002-01-22 Andrew Cagney <ac131313@redhat.com>
2223
2224 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
2225 (floatformat_is_nan, floatformat_mantissa): Ditto.
2226
2227 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
2228 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
2229 builtin_type_ieee_double_little,
2230 builtin_type_ieee_double_littlebyte_bigword,
2231 builtin_type_m68881_ext, builtin_type_i960_ext,
2232 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
2233 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
2234 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
2235 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
2236
2237 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
2238
2239 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
2240 parameter. Set frameless flag if it exists and depended of
2241 whether the scanned function is frameless or not.
2242 (xstormy16_skip_prologue): If function is frameless, return
2243 result of xstormy16_scan_prologue().
2244 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
2245 call.
2246
2247 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
2248
2249 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
2250 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2251 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
2252 sh_sh4_register_byte, sh_sh4_register_raw_size,
2253 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
2254 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
2255 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
2256 sh_store_pseudo_register, sh_do_pseudo_register): Call
2257 gdbarch_tdep() just once, assign result to variable and use that,
2258 instead of calling the function several times.
2259
2260 2002-01-20 Mark Kettenis <kettenis@gnu.org>
2261
2262 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
2263 macros instead of LAST_FPU_CTRL_REGNUM.
2264 (store_register): Likewise.
2265
2266 2002-01-21 Jim Blandy <jimb@redhat.com>
2267
2268 * infcmd.c (run_command): Check that the `exec' target layer's BFD
2269 is up-to-date before running the program, not just when a program
2270 exits.
2271
2272 2002-01-21 Fred Fish <fnf@redhat.com>
2273
2274 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
2275 when we have found all instructions we are looking for.
2276
2277 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2278
2279 * arm-tdep.c (arm_register_name): New function.
2280 (arm_registers_names): Make static.
2281 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
2282 (arm_register_name): Declare.
2283 (REGISTER_NAME): Use it.
2284
2285 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
2286 Kevin Buettner <kevinb@redhat.com>
2287
2288 Convert arm targets to new FRAME interface.
2289 * arm-tdep.c (struct frame_extra_info): Remove fsr.
2290 (arm_frame_find_save_regs): Delete.
2291 (arm_frame_init_saved_regs): New.
2292 (arm_init_extra_frame_info): Alloacte saved_regs as required.
2293 Allocate extra_info as required. Convert all uses of fsr.regs
2294 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
2295 to use extra_info.
2296 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
2297 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
2298 (check_prologue_cache, save_prologue_cache): Likewise.
2299 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
2300 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
2301 (FRAME_FIND_SAVED_REGS): Delete.
2302 (arm_frame_find_saved_regs): Delete prototype.
2303 (arm_frame_init_saved_regs): New prototype.
2304 (FRAME_INIT_SAVED_REGS): Define.
2305
2306 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2307
2308 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
2309
2310 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2311
2312 From Jeff Law <law@redhat.com>:
2313 * infttrace.c: Include <sys/pstat.h>.
2314 (child_pid_to_exec_file): Revamp. Use pstat call to get the
2315 exec file if the ttrace equivalent fails.
2316
2317 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2318
2319 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
2320 (closeLogFile): Ditto.
2321
2322 2002-01-20 Michael Chastain <mec@shout.net>
2323
2324 * top.c (print_gdb_version): Bump copyright year to 2002.
2325
2326 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2327
2328 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
2329 Zannoni and Eli Zaretskii.
2330
2331 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2332
2333 * buildsym.c: Update copyright years.
2334 * c-typeprint.c: Likewise.
2335 * dwarf2read.c: Likewise.
2336 * f-typeprint.c: Likewise.
2337 * gdbtypes.c: Likewise.
2338 * gdbtypes.h: Likewise.
2339 * hp-symtab-read.c: Likewise.
2340 * hpread.c: Likewise.
2341 * mdebugread.c: Likewise.
2342 * p-typeprint.c: Likewise.
2343
2344 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2345
2346 * remote-sim.c (gdbsim_open): Simplify code testing the macro
2347 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
2348 byte-order selectable.
2349 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
2350 * arch-utils.c: Ditto.
2351 (set_endian): Ditto.
2352 (set_endian_from_file): Ditto.
2353 * gdbserver/low-sim.c (create_inferior): Ditto.
2354 * gdbarch.sh: Ditto.
2355 * gdbarch.h: Re-generate.
2356 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2357 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
2358 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
2359 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2360 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2361 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
2362 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
2363 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
2364 macro definition.
2365 * config/mips/tm-wince.h: Remove #undef of macro
2366 TARGET_BYTE_ORDER_SELECTABLE.
2367 * config/sh/tm-wince.h: Ditto.
2368
2369 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2370
2371 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
2372 member function fields. Add accessor macro
2373 TYPE_FN_FIELD_ARTIFICIAL.
2374 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
2375 * c-typeprint.c (c_type_print_base): Skip artificial member
2376 functions.
2377
2378 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2379
2380 * f-typeprint.c: Delete unused function f_type_print_args.
2381 * p-typeprint.c: Delete unused function pascal_type_print_args.
2382
2383 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
2384
2385 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
2386 comment. Add ``artificial'' to ``union field_location''.
2387
2388 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
2389
2390 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
2391 * mdebugread.c (parse_symbol): Likewise.
2392 * stabsread.c (define_symbol): Likewise.
2393 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
2394 initializing TYPE_FIELD_BITPOS to n (obsolete).
2395 (hpread_doc_function_type): Likewise.
2396 * hpread.c (hpread_function_type): Likewise.
2397
2398 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2399
2400 * configure.in (host_makefile_frag): Only require a host makefile
2401 fragment when a native build.
2402 * configure: Re-generate.
2403
2404 2002-01-20 Andrew Cagney <ac131313@redhat.com>
2405
2406 * doublest.h (floatformat_from_type): Declare.
2407 * doublest.c (floatformat_from_type): New function.
2408 (convert_typed_floating): Use.
2409
2410 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
2411 call to function floatformat_from_type.
2412
2413 * gdbarch.sh (IEEE_FLOAT): Delete.
2414 * gdbarch.h, gdbarch.c: Re-generate.
2415 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
2416 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
2417 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
2418 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
2419 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
2420 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
2421 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
2422 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
2423 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
2424 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
2425 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
2426 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
2427
2428 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
2429 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2430 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2431 * sh-tdep.c (sh_gdbarch_init): Ditto.
2432 * mips-tdep.c (mips_gdbarch_init): Ditto.
2433 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2434 * cris-tdep.c (cris_gdbarch_init): Ditto.
2435
2436 2002-01-20 Jiri Smid <smid@suse.cz>
2437
2438 * configure.host, configure.tgt: Support x86-64.
2439 * NEWS: Note new target x86-64.
2440
2441 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
2442 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
2443 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
2444 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
2445 x86-64-linux-nat.o): Fix dependencies.
2446
2447 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2448
2449 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
2450 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
2451 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
2452 * config/sparc/xm-sun4os4.h: Delete file.
2453 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
2454
2455 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2456
2457 * config/sparc/sparclynx.mh (XM_FILE): Delete.
2458 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
2459 * config/m68k/m68klynx.mh (XM_FILE): Delete.
2460 * config/i386/i386lynx.mh (XM_FILE): Delete.
2461 * config/rs6000/xm-rs6000ly.h: Delete file.
2462 * config/sparc/xm-sparclynx.h: Delete file.
2463 * config/m68k/xm-m68klynx.h: Delete file.
2464 * config/i386/xm-i386lynx.h: Delete file.
2465 * config/xm-lynx.h: Delete file.
2466 * config/djgpp/fnchange.lst: Update.
2467
2468 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2469
2470 * alpha-tdep.c (alpha_register_byte): New function.
2471 (alpha_register_raw_size): Ditto.
2472 (alpha_register_virtual_size): Ditto.
2473 (alpha_skip_prologue_internal): Renamed from
2474 alpha_skip_prologue.
2475 (alpha_skip_prologue): New version that calls
2476 alpha_skip_prologue_internal.
2477 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
2478 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
2479 second argument from alpha_skip_prologue.
2480 (REGISTER_BYTE): Use alpha_register_byte.
2481 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
2482 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
2483 (FRAMELESS_FUNCTION_INVOCATION): Use
2484 generic_frameless_function_invocation_not.
2485 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
2486 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
2487
2488 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2489
2490 * config/mips/xm-news-mips.h: Delete file.
2491 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
2492
2493 * config/m88k/xm-m88k.h: Delete file.
2494 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
2495 * config/m88k/xm-delta88v4.h: Ditto.
2496 * config/m88k/xm-delta88.h: Ditto.
2497
2498 * config/alpha/xm-fbsd.h: Delete file.
2499 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
2500
2501 * config/sparc/xm-sparc.h: Delete file.
2502 * Makefile.in (xm-sun4os4.h): Delete dependency.
2503 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
2504 * config/sparc/xm-sun4os4.h: Ditto.
2505 * config/sparc/xm-linux.h: Ditto.
2506
2507 * config/i386/xm-windows.h: Delete file.
2508
2509 2002-01-19 Andrew Cagney <ac131313@redhat.com>
2510
2511 * utils.c: Include <sys/param.h> for MAXPATHLEN.
2512 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
2513
2514 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2515
2516 * alpha-tdep.c (alpha_call_dummy_words): New.
2517 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
2518 (CALL_DUMMY_P): Define.
2519 (CALL_DUMMY_WORDS): Define.
2520 (SIZEOF_CALL_DUMMY_WORDS): Define.
2521
2522 2002-01-19 Per Bothner <per@bothner.com>
2523
2524 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
2525 isn't NULL, which can happen with some gcj-3.x-produced code.
2526
2527 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
2528
2529 * alpha-tdep.c (alpha_register_virtual_type): New function.
2530 (alpha_init_frame_pc_first): Ditto.
2531 (alpha_fix_call_dummy): Ditto.
2532 (alpha_store_struct_return): Ditto.
2533 (alpha_extract_struct_value_address): Ditto.
2534 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
2535 alpha_register_virtual_type.
2536 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
2537 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
2538 alpha_extract_struct_value_address.
2539 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
2540 (INIT_FRAME_PC): Use init_frame_pc_noop.
2541 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
2542
2543 2002-01-19 Mark Kettenis <kettenis@gnu.org>
2544
2545 * i386gnu-nat.c: Include "i386-tdep.h".
2546 (fetch_fpregs): Simplify code dealing with uninitialized floating
2547 point states such that it doesn't require FP7_REGNUM.
2548
2549 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2550
2551 * alpha-tdep.c (frame_extra_info): New.
2552 (alpha_find_saved_regs): Make static. Use
2553 frame->extra_info.
2554 (alpha_frame_init_saved_regs): New function.
2555 (alpha_frame_saved_pc): Use frame->extra_info.
2556 (temp_saved_regs): Don't declare as struct frame_saved_regs.
2557 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
2558 (init_extra_frame_info): Rename to...
2559 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
2560 (alpha_print_extra_frame_info): New function.
2561 (alpha_frame_locals_address): Ditto.
2562 (alpha_frame_args_address): Ditto.
2563 (alpha_pop_frame): Use frame->extra_info.
2564 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
2565 alpha_frame_args_address.
2566 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
2567 (alpha_find_saved_regs): Remove prototype.
2568 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
2569 (EXTRA_FRAME_INFO): Remove.
2570 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
2571 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
2572
2573 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2574
2575 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
2576 (alpha_cannot_fetch_register): Ditto.
2577 (alpha_cannot_store_register): Ditto.
2578 (alpha_register_convertible): Ditto.
2579 (alpha_use_struct_convention): Ditto.
2580 * config/alpha/tm-alpha.h: Update copyright years.
2581 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
2582 (INNER_THAN): Use core_addr_lessthan.
2583 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
2584 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
2585 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
2586 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
2587 (FRAME_CHAIN): Remove unnecessary cast.
2588
2589 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2590
2591 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
2592 obsolete.
2593
2594 2002-01-18 Andrew Cagney <ac131313@redhat.com>
2595
2596 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
2597 * monitor.c, remote-array.c, remote-bug.c: Ditto.
2598 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
2599 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
2600 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
2601 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
2602 * x86-64-linux-nat.c: Ditto.
2603
2604 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2605
2606 * alpha-tdep.c (alpha_register_name): New function.
2607 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
2608 (REGISTER_NAME): Define.
2609
2610 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2611
2612 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
2613
2614 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2615
2616 * alpha-tdep.c: Update copyright years.
2617 (alpha_next_pc): New function.
2618 (alpha_software_single_step): Ditto.
2619 * config/alpha/tm-alpha.h: Add prototype for
2620 alpha_software_single_step.
2621
2622 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2623
2624 * alphabsd-nat.c: Update copyright years.
2625 (fill_gregset): Use regcache_collect.
2626 (fill_fpregset): Likewise.
2627 (fetch_inferior_registers): Only fetch integer registers
2628 if requested to do so.
2629 (store_inferior_registers): Only store integer registers
2630 if requested to do so.
2631
2632 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2633
2634 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
2635 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
2636 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
2637 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
2638 * config/alpha/fbsd.mh (XDEPFILES): Delete.
2639 * config/arm/linux.mh (XDEPFILES): Delete.
2640 * config/arm/nbsd.mh (XDEPFILES): Delete.
2641 * config/i386/i386dgux.mh (XDEPFILES): Delete.
2642 * config/i386/i386sol2.mh (XDEPFILES): Delete.
2643 * config/i386/i386m3.mh (XDEPFILES): Delete.
2644 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
2645 * config/i386/i386gnu.mh (XDEPFILES): Delete.
2646 * config/i386/fbsd.mh (XDEPFILES): Delete.
2647 * config/i386/i386bsd.mh (XDEPFILES): Delete.
2648 * config/i386/i386sco5.mh (XDEPFILES): Delete.
2649 * config/i386/i386v4.mh (XDEPFILES): Delete.
2650 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
2651 * config/i386/i386sco4.mh (XDEPFILES): Delete.
2652 * config/i386/i386aix.mh (XDEPFILES): Delete.
2653 * config/i386/go32.mh (XDEPFILES): Delete.
2654 * config/i386/cygwin.mh (XDEPFILES): Delete.
2655 * config/i386/i386lynx.mh (XDEPFILES): Delete.
2656 * config/i386/i386mach.mh (XDEPFILES): Delete.
2657 * config/i386/i386v32.mh (XDEPFILES): Delete.
2658 * config/i386/linux.mh (XDEPFILES): Delete.
2659 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
2660 * config/i386/ncr3000.mh (XDEPFILES): Delete.
2661 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
2662 * config/i386/i386sco.mh (XDEPFILES): Delete.
2663 * config/i386/i386v.mh (XDEPFILES): Delete.
2664 * config/i386/nbsd.mh (XDEPFILES): Delete.
2665 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
2666 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
2667 * config/i386/symmetry.mh (XDEPFILES): Delete.
2668 * config/i386/obsd.mh (XDEPFILES): Delete.
2669 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
2670 * config/ia64/linux.mh (XDEPFILES): Delete.
2671 * config/ia64/aix.mh (XDEPFILES): Delete.
2672 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
2673 * config/m68k/dpx2.mh (XDEPFILES): Delete.
2674 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
2675 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
2676 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
2677 * config/m68k/linux.mh (XDEPFILES): Delete.
2678 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
2679 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
2680 * config/m68k/nbsd.mh (XDEPFILES): Delete.
2681 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
2682 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
2683 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
2684 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
2685 * config/m88k/delta88.mh (XDEPFILES): Delete.
2686 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
2687 * config/m88k/m88k.mh (XDEPFILES): Delete.
2688 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
2689 * config/mips/linux.mh (XDEPFILES): Delete.
2690 * config/mips/irix6.mh (XDEPFILES): Delete.
2691 * config/mips/irix5.mh (XDEPFILES): Delete.
2692 * config/mips/irix4.mh (XDEPFILES): Delete.
2693 * config/mips/irix3.mh (XDEPFILES): Delete.
2694 * config/mips/decstation.mh (XDEPFILES): Delete.
2695 * config/mips/mipsm3.mh (XDEPFILES): Delete.
2696 (NATDEPFILES): Move core-aout.o to here.
2697 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
2698 * config/pa/hpux1020.mh (XDEPFILES): Delete.
2699 * config/pa/hppabsd.mh (XDEPFILES): Delete.
2700 * config/pa/hppahpux.mh (XDEPFILES): Delete.
2701 * config/pa/hpux11w.mh (XDEPFILES): Delete.
2702 * config/pa/hppaosf.mh (XDEPFILES): Delete.
2703 * config/pa/hpux11.mh (XDEPFILES): Delete.
2704 * config/powerpc/aix.mh (XDEPFILES): Delete.
2705 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
2706 * config/powerpc/linux.mh (XDEPFILES): Delete.
2707 * config/romp/rtbsd.mh: Rename XDEPFILES.
2708 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
2709 * config/rs6000/aix4.mh (XDEPFILES): Delete.
2710 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
2711 * config/s390/s390.mh (XDEPFILES): Delete.
2712 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
2713 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
2714 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
2715 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
2716 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
2717 * config/sparc/nbsd.mh (XDEPFILES): Delete.
2718 * config/sparc/linux.mh (XDEPFILES): Delete.
2719 * config/vax/vaxult.mh (XDEPFILES): Delete.
2720 * config/vax/vaxult2.mh (XDEPFILES): Delete.
2721 * Makefile.in (DEPFILES): Remove XDEPFILES.
2722
2723 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2724
2725 * utils.c (internal_verror): Fix comments, default is yes not no.
2726 Update queries to match. Default to quit and dump core.
2727
2728 2002-01-17 Andrew Cagney <ac131313@redhat.com>
2729
2730 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
2731 copyright.
2732 * defs.h, event-top.c, gdbcmd.h: Ditto.
2733 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
2734 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
2735 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
2736 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
2737 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
2738 * mi/mi-main.c:Ditto.
2739
2740 * stack.c, symfile.c: Update copyright.
2741
2742 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
2743
2744 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
2745 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
2746 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
2747 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
2748
2749 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
2750
2751 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
2752 * gdbserver/low-lynx.c (myattach): Likewise.
2753 * gdbserver/low-nbsd.c (myattach): Likewise.
2754 * gdbserver/low-sim.c (myattach): Likewise.
2755 * gdbserver/low-sparc.c (myattach): Likewise.
2756 * gdbserver/low-sun3.c (myattach): Likewise.
2757
2758 * gdbserver/low-linux.c (myattach): New function.
2759
2760 * gdbserver/server.c (attach_inferior): New function.
2761 (main): Handle "--attach".
2762
2763 2002-01-16 Andrew Cagney <ac131313@redhat.com>
2764
2765 * MAINTAINERS (language support): Daniel Jacobwitz is C++
2766 maintainer.
2767
2768 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
2769
2770 * c-typeprint.c (is_type_conversion_operator): Add additional
2771 check for non-conversion operators.
2772
2773 2002-01-15 Michael Snyder <msnyder@redhat.com>
2774
2775 * linux-proc.c: Add "info proc" command, a la procfs.c.
2776 (read_mapping): New function, abstract and re-use code.
2777 (linux_find_memory_regions): Use new func read_mapping.
2778 (linux_info_proc_cmd): New function, implement "info proc".
2779 (_initialize_linux_proc): Add new command "info proc".
2780
2781 2002-01-15 Michael Snyder <msnyder@redhat.com>
2782
2783 * symfile.c (generic_load): Use bfd_map_over_sections method
2784 instead of manipulating bfd structure members directly.
2785 (add_section_size_callback): New function, bfd sections callback
2786 used by generic_load.
2787 (load_sections_callback): New function, bfd sections callback
2788 used by generic_load.
2789
2790 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
2791
2792 [Based on work by Jim Blandy]
2793 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
2794 (builtin_type_vec128): Export.
2795 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
2796 types.
2797 (builtin_type_vec128): New builtin type for 128 bit vector
2798 registers.
2799 (build_gdbtypes): Initialize builtin_type_v16qi and
2800 builtin_type_v8hi. Create the vec128 register builtin type
2801 structure.
2802 (build_builtin_type_vec128): New function.
2803 (_initialize_gdbtypes): Register builtin_type_v16qi and
2804 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
2805 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
2806 AltiVec register to new builtin type.
2807
2808 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
2809
2810 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
2811 to make_cv_type.
2812
2813 2002-01-14 Andrew Cagney <ac131313@redhat.com>
2814
2815 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
2816 CLEAN_UP_REGISTER_VALUE.
2817 * regcache.c (supply_register): Update only call.
2818
2819 2002-01-14 Andrew Cagney <ac131313@redhat.com>
2820
2821 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
2822 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
2823 a29k-*-vxworks* targets as obsolete.
2824
2825 2002-01-14 Michael Snyder <msnyder@redhat.com>
2826
2827 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
2828 until we can resolve portability issues.
2829 * gregset.h: Remove references to fpxregs.
2830 * gcore.c (gcore_command): Initialize note_sec to NULL.
2831
2832 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2833
2834 * signals.c (target_signal_to_name): Rewrite. Only use
2835 signals[].name when in bounds and non-NULL.
2836
2837 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2838
2839 From Petr Ledvina <ledvinap@kae.zcu.cz>:
2840 * signals.c (target_signal_to_name): Verify that SIG is within the
2841 bounds of the signals array.
2842
2843 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2844
2845 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
2846
2847 2002-01-13 Keith Seitz <keiths@redhat.com>
2848
2849 * stack.c (print_frame_info_base): Print the frame's pc
2850 only if when print_frame_info_listing_hook is not defined.
2851
2852 2002-01-13 Keith Seitz <keiths@redhat.com>
2853
2854 * varobj.c (varobj_set_value): Make sure that there were no
2855 errors evaluating the object before attempting to set its
2856 value.
2857 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
2858 so this offset adjustment is no longer necessary.
2859 (create_child): Don't set the error flag if the child is
2860 a CPLUS_FAKE_CHILD.
2861 (value_of_child): If value_fetch_lazy fails, return NULL
2862 so that callers will be notified that an error occurred.
2863 (c_value_of_variable): Delay check of variable's validity
2864 until later. We actually want all structs and unions to have
2865 the value "{...}".
2866 Do not return "???" for variables which could not be evaluated.
2867 This error condition must be returned to the caller so that it
2868 can get the error condition from gdb.
2869 (cplus_name_of_child): Adjust index for vptr before figuring
2870 out the name of the child.
2871 (cplus_value_of_child): If a child's (real) parent is not valid,
2872 don't even bother trying to give a value for it. Just return
2873 an error. Change all instances in this function.
2874 (cplus_type_of_child): If our parent is one of the "fake"
2875 parents, we need to get at the type of the real parent, and
2876 derive the child's true type using this information.
2877
2878 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2879
2880 From 2002-01-09 John Marshall <johnm@falch.net>:
2881 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
2882 sources.redhat.com, and tweak some related URLs which had
2883 suffered from linkrot.
2884
2885 2002-01-13 Andrew Cagney <ac131313@redhat.com>
2886
2887 From Jeff law:
2888 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
2889 structures passed in registers.
2890
2891 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
2892
2893 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
2894 white space which prevented compilation. Reported by DSK
2895 <dsk@student.unsw.edu.au>.
2896
2897 2002-01-11 Michael Snyder <msnyder@redhat.com>
2898
2899 * symfile.c (build_section_addr_info_from_section_tab):
2900 Use bfd access method instead of manipulating bfd directly.
2901 (syms_from_objfile): Ditto.
2902 (simple_overlay_update_1): Ditto.
2903 (simple_overlay_update): Ditto.
2904 (generic_load): Ditto.
2905 (overlay_unmapped_address): FIXME comment, bfd access methods.
2906 (sections_overlap): FIXME comment, bfd access methods.
2907 (pc_in_mapped_range): FIXME comment, bfd access methods.
2908 (pc_in_unmapped_range): FIXME comment, bfd access methods.
2909 (section_is_mapped): FIXME comment, bfd access methods.
2910 (section_is_overlay): FIXME comment, bfd access methods.
2911
2912 * symfile.c (generic_load): Whitespace and long line cleanups.
2913 Remove duplicate variable, change several local variables to
2914 more appropriate data types.
2915 (print_transfer_performance): Use %lu instead of %ld for ulongs.
2916
2917 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2918
2919 From Peter Schauer:
2920 * language.c (longest_local_hex_string_custom): Use phex_nz to
2921 convert NUM to a hex string.
2922
2923 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
2924
2925 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
2926 the function.
2927 Update Copyright year.
2928
2929 2002-01-12 Andrew Cagney <ac131313@redhat.com>
2930
2931 * language.c (longest_raw_hex_string): Delete unused function.
2932
2933 2002-01-11 Petr Sorfa <petrs@caldera.com>
2934
2935 * MAINTAINERS (write-after-approval): Add myself.
2936 * dwarf2read.c (read_tag_string_type): Handling of
2937 DW_AT_byte_size.
2938 (read_tag_string_type): FORTRAN fix to prevent propagation of
2939 first string size.
2940 (set_cu_language): Handling of DW_LANG_Fortran95
2941
2942 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
2943
2944 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
2945 GETPID(inferior_ptid).
2946 (store_inferior_registers): Likewise.
2947
2948 2002-01-10 Jason Merrill <jason@redhat.com>
2949
2950 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
2951 Fix DW_OP_minus.
2952
2953 2002-01-10 Andrew Cagney <ac131313@redhat.com>
2954
2955 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
2956 and bfd/elf32-sh-nbsd.c.
2957
2958 2002-01-10 Michael Snyder <msnyder@redhat.com>
2959
2960 * NEWS: Mention --pid and corefile/proc-id behavior change.
2961
2962 * Makefile.in: Add rules for gcore.o and linux-proc.o.
2963 * gcore.c: Include cli/cli-decode.h instead of command.h.
2964
2965 * main.c (captured_main): Add new command line option "--pid".
2966 If the second command line argument (following the symbol-file)
2967 begins with a digit, try to attach to it before trying to open
2968 it as a corefile.
2969 (print_gdb_help): Document the "--pid" argument.
2970
2971 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
2972
2973 * completer.c (command_completer): New function.
2974
2975 * completer.h <command_completer>: Add prototype.
2976
2977 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
2978 completer for the "help" command.
2979
2980 2002-01-09 Jason Merrill <jason@redhat.com>
2981
2982 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
2983
2984 2002-01-09 Michael Snyder <msnyder@redhat.com>
2985
2986 * i386-linux-nat.c (fill_fpxregset): Make global.
2987 (store_fpxregset): Ditto.
2988
2989 * gregset.h (gdb_fpxregset_t): Define.
2990 (supply_fpxregset): Prototype.
2991 (fill_fpxregset): Prototype.
2992
2993 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
2994
2995 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
2996
2997 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
2998 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
2999 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3000
3001 2002-01-09 Andrew Cagney <ac131313@redhat.com>
3002
3003 * MAINTAINERS: Update target maintainer rules so that any
3004 Maintainer can approve a tested patch for a maintenance-only
3005 target.
3006
3007 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3008
3009 * MAINTAINERS (write-after-approval): Add myself.
3010
3011 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
3012 IN_SIGTRAMP.
3013
3014 2002-01-08 Michael Snyder <msnyder@redhat.com>
3015
3016 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3017 real name of the executable, rather than the /proc name.
3018
3019 2002-01-03 Michael Snyder <msnyder@redhat.com>
3020
3021 Implement a "generate-core-file" command in gdb, save target state.
3022 * gcore.c: New file. Implement new command 'generate-core-file'.
3023 Save a corefile image of the current state of the inferior.
3024 * linux-proc.c: Add linux-specific code for saving corefiles.
3025 * target.h (struct target_ops): Add new target vectors for saving
3026 corefiles; to_find_memory_regions and to_make_corefile_notes.
3027 (target_find_memory_regions): New macro.
3028 (target_make_corefile_notes): New macro.
3029 * target.c (update_current_target): Inherit new target methods.
3030 (dummy_find_memory_regions): New place-holder method.
3031 (dummy_make_corefile_notes): New place-holder method.
3032 (init_dummy_target): Initialize new dummy target vectors.
3033 * exec.c (exec_set_find_memory_regions): New function.
3034 Allow the exec_ops vector for memory regions to be taken over.
3035 (exec_make_note_section): New function, target vector method.
3036 * defs.h (exec_set_find_memory_regions): Export prototype.
3037 * procfs.c (proc_find_memory_regions): New function, corefile method.
3038 (procfs_make_note_section): New function, corefile method.
3039 (init_procfs_ops): Set new target vector pointers.
3040 (find_memory_regions_callback): New function.
3041 (procfs_do_thread_registers): New function.
3042 (procfs_corefile_thread_callback): New function.
3043 * sol-thread.c (sol_find_memory_regions): New function.
3044 (sol_make_note_section): New function.
3045 (init_sol_thread_ops): Initialize new target vectors.
3046 * inftarg.c (inftarg_set_find_memory_regions): New function.
3047 Allow to_find_memory_regions vector to be taken over.
3048 (inftarg_set_make_corefile_notes): New function.
3049 Allow to_make_corefile_notes vector to be taken over.
3050 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3051 interface layer if not target_has_execution (may be a corefile).
3052 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3053 * config/sparc/sun4sol2.mh: Ditto.
3054 * config/alpha/alpha-linux.mh: Ditto.
3055 * config/arm/linux.mh: Ditto.
3056 * config/i386/x86-64linux.mh: Ditto.
3057 * config/ia64/linux.mh: Ditto.
3058 * config/m68k/linux.mh: Ditto.
3059 * config/mips/linux.mh: Ditto.
3060 * config/powerpc/linux.mh: Ditto.
3061 * config/sparc/linux.mh: Ditto.
3062
3063 2002-01-07 Michael Snyder <msnyder@redhat.com>
3064
3065 * arm-linux-nat.c: Remove references to regcache.c internal data
3066 (registers[] and register_valid[]).
3067
3068 2002-01-07 Michael Snyder <msnyder@redhat.com>
3069
3070 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3071 so that attaching to a pid will automatically read the process's
3072 symbol file and shlibs.
3073 * Makefile.in: Add rule for linux-proc.o.
3074 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3075 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3076 * config/arm/linux.mh: Ditto.
3077 * config/i386/linux.mh: Ditto.
3078 * config/i386/x86-64linux.mh: Ditto.
3079 * config/ia64/linux.mh: Ditto.
3080 * config/m68k/linux.mh: Ditto.
3081 * config/mips/linux.mh: Ditto.
3082 * config/powerpc/linux.mh: Ditto.
3083 * config/sparc/linux.mh: Ditto.
3084
3085 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
3086
3087 * win32-nat.c: Add i386-tdep.h dependency.
3088
3089 2002-01-07 Michael Snyder <msnyder@redhat.com>
3090
3091 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
3092 instead of bfd_get_arch_size. Don't bail out just because
3093 there's no exec_bfd.
3094
3095 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
3096 * p-valprint.c (pascal_object_print_value): Ditto.
3097 * somread.c (som_symtab_read): Ditto.
3098 * symfile.c (simple_free_overlay_region_table): Ditto.
3099 * valops.c (value_assign): Ditto.
3100
3101 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
3102 use tilde_expand and strerror for opening save-tracepoints file.
3103
3104 * thread-db.c (thread_db_new_objfile): Indendation fix.
3105
3106 * infptrace.c (GDB_MAX_ALLOCA): New define.
3107 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
3108 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
3109 can be overridden with whatever value is appropriate to the host).
3110 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
3111 alloca to allocate potentially large buffer.
3112 * rs6000-nat.c (child_xfer_memory): Ditto.
3113 * symm-nat.c (child_xfer_memory): Ditto.
3114 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
3115
3116 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
3117
3118 From Nick Clifton <nickc@redhat.com>
3119 * d10v-tdep.c: Set STACK_START to 0x200bffe.
3120
3121 2002-01-07 Michael Snyder <msnyder@redhat.com>
3122
3123 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3124 Don't use exec_bfd if it's NULL.
3125
3126 2002-01-06 Mark Kettenis <kettenis@gnu.org>
3127
3128 * valops.c (value_arg_coerce): Fix formatting.
3129
3130 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3131
3132 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
3133 * gnu-nat.c: Ditto.
3134
3135 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3136
3137 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
3138 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
3139 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
3140 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
3141 z8k-coff have not been multi-arched. Update z8k-coff build
3142 status.
3143
3144 2002-01-06 Andrew Cagney <ac131313@redhat.com>
3145
3146 * MAINTAINERS: Mark a29k target as obsolete.
3147 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
3148 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
3149 comments.
3150 * NEWS: Note that a29k targets are obsolete.
3151 * a29k-tdep.c: Mark as obsolete.
3152 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3153 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3154 a29k-*-vxworks* targets as obsolete.
3155 * remote-adapt.c: Obsolete.
3156 * remote-eb.c: Obsolete.
3157 * remote-mm.c: Obsolete.
3158 * remote-udi.c: Obsolete.
3159 * config/a29k/a29k-udi.mt: Obsolete.
3160 * config/a29k/a29k.mt: Obsolete.
3161 * config/a29k/tm-a29k.h: Obsolete.
3162 * config/a29k/tm-vx29k.h: Obsolete.
3163 * config/a29k/vx29k.mt: Obsolete.
3164
3165 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3166
3167 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
3168 with BFD_ENDIAN_BIG.
3169
3170 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3171
3172 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
3173 * configure, config.in: Re-generate.
3174 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
3175 * defs.h: Do not include <endian.h>.
3176
3177 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
3178
3179 * acconfig.h (HAVE_PT_GETXMMREGS): New.
3180 * config.in: Regenerate.
3181 * configure.in: Update copyright years.
3182 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
3183 * configure: Regenerate.
3184 * i386bsd-nat.c: Update copyright years.
3185 (fill_gregset): Use regcache_collect.
3186 (fetch_inferior_registers): Only fetch integer registers
3187 if requested to do so. Add support for XMM registers
3188 using PT_GETXMMREGS.
3189 (store_inferior_registers): Only store integer registers
3190 if requested to do so. Add support for XMM registers
3191 using PT_SETXMMREGS.
3192 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
3193 (store_inferior_registers): Remove.
3194 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
3195 (fetch_elfcore_registers): New function.
3196 (i386nbsd_elfcore_fns): New.
3197 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
3198 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
3199 i386bsd-nat.o.
3200 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3201 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
3202 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3203 * config/i386/tm-nbsd.h: Update copyright years.
3204 (HAVE_SSE_REGS): Define.
3205 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
3206 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
3207 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
3208 (SIGCONTEXT_PC_OFFSET): Remove.
3209 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
3210
3211 2002-01-05 Andrew Cagney <ac131313@redhat.com>
3212
3213 * configure.tgt: Remove powerpc-*-macos* target.
3214 * config/m68k/xm-mpw.h: Delete file.
3215 * config/xm-mpw.h: Delete file.
3216 * ser-mac.c: Delete file.
3217 * mpw-make.sed: Delete file.
3218 * mpw-config.in: Delete file.
3219 * mac-xdep.c: Delete file.
3220 * mac-gdb.r: Delete file.
3221 * mac-defs.h: Delete file.
3222 * mac-nat.c: Delete file.
3223 * config/powerpc/macos.mh: Delete file.
3224 * config/powerpc/macos.mt: Delete file.
3225 * config/powerpc/nm-macos.h: Delete file.
3226 * config/powerpc/tm-macos.h: Delete file.
3227 * source.c (openp, open_source_file): Remove obsolete code.
3228 * top.c (gdb_readline): Ditto.
3229 * utils.c (query): Ditto.
3230 * event-top.c (display_gdb_prompt): Ditto.
3231 * Makefile.in (ser-mac.o): Delete obsolete target.
3232 * NEWS: Update.
3233
3234 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3235
3236 * defs.h (BIG_ENDIAN): Delete macro definition.
3237 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
3238 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
3239 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
3240 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
3241 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
3242 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
3243 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
3244 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3245 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3246 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
3247 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
3248 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
3249 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3250 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
3251 * gdbarch.c: Re-generate.
3252
3253 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3254
3255 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
3256 for core files.
3257
3258 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3259
3260 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
3261
3262 2002-01-04 Andrew Cagney <ac131313@redhat.com>
3263
3264 * value.h (value_ptr): Delete typedef.
3265
3266 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3267
3268 * i386nbsd-nat.c: Update copyright years.
3269 Include i386-tdep.h.
3270
3271 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
3272
3273 * stabsread.c: Update copyright years.
3274
3275 From Debashis Mahata <debashis.mahata@wipro.com>:
3276 (read_struct_fields): Deal with Sun C compiler erroneous stab
3277 output for structs and unions.
3278 Fix PR gdb/269.
3279
3280 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3281
3282 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
3283 prototype.
3284
3285 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3286
3287 * cp-abi.c: Fix whitespace.
3288 (baseclass_offset): New wrapper function.
3289 * cp-abi.h (baseclass_offset): Add prototype.
3290 (struct cp_abi_ops): Add baseclass_offset pointer.
3291
3292 * valops.c (vb_match): Move to...
3293 * gnu-v2-abi.c (vb_match): here.
3294 * valops.c (baseclass_offset): Move to...
3295 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
3296
3297 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
3298
3299 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
3300 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
3301 * hpacc-abi.c (init_hpacc_ops): Likewise.
3302
3303 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3304
3305 * valops.c (find_overload_match): Accept obj as a
3306 reference parameter. Update it before returning.
3307 * value.h (find_overload_match): Update prototype.
3308 * eval.c (evaluate_subexp_standard): Pass object to
3309 find_overload_match by reference.
3310
3311 2002-01-03 Andrew Cagney <ac131313@redhat.com>
3312
3313 * valarith.c: Replace value_ptr with struct value pointer. Remove
3314 register attribute from value declarations.
3315 * valops.c: Ditto.
3316 * value.h: Ditto.
3317 * scm-lang.c (scm_lookup_name): Ditto.
3318
3319 2002-01-03 Michael Snyder <msnyder@redhat.com>
3320
3321 Abstract the functionality of iterating over mapped memory
3322 regions into a general purpose iterator function.
3323 * procfs.c (iterate_over_mappings): New function, general purpose
3324 iterator for memory sections.
3325 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
3326 (solib_mappings_callback): New function, callback for above.
3327 (info_proc_mappings): Reimpliment using iterate_over_mappings.
3328 (info_mappings_callback): New function, callback for above.
3329
3330 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
3331
3332 2002-01-01 Mark Kettenis <kettenis@gnu.org>
3333
3334 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
3335 * i386-tdep.c: Include "elf-bfd.h".
3336 (process_note_abi_tag_sections): New function.
3337 (i386_gdbarch_init): Add code to recognize various OS/ABI
3338 combinations.
3339
3340 * maint.c (_initialize_maint_cmds): Add missing \ in
3341 string-literal.
3342
3343 For older changes see ChangeLog-2001
3344 \f
3345 Local Variables:
3346 mode: change-log
3347 left-margin: 8
3348 fill-column: 74
3349 version-control: never
3350 End: