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