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