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