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