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