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