1 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4 and associated comment. They no longer make any sense, since we
5 don't use this file anymore on Linux.
7 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8 * i386-tdep.c (i386_register_offset, i386_register_size): Use
9 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
10 elements in these arrays.
11 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
14 2002-06-15 Mark Kettenis <kettenis@gnu.org>
16 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
17 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
19 2002-06-14 Andrew Cagney <cagney@redhat.com>
21 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
23 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
24 EXTRACT_STRUCT_VALUE_ADDRESS.
25 * gdbarch.h, gdbarch.c: Regenerate.
27 * values.c (value_being_returned): Handle
28 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
29 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
31 * arm-linux-tdep.c (arm_linux_init_abi): Update.
32 * arm-tdep.c (arm_gdbarch_init): Update.
33 * avr-tdep.c (avr_gdbarch_init): Update.
34 * cris-tdep.c (cris_gdbarch_init): Update.
35 * d10v-tdep.c (d10v_gdbarch_init): Update.
36 * ia64-tdep.c (ia64_gdbarch_init): Update.
37 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
38 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
39 * s390-tdep.c (s390_gdbarch_init): Update.
40 * sh-tdep.c (sh_gdbarch_init): Update.
41 * s390-tdep.c (s390_gdbarch_init): Update.
42 * sparc-tdep.c (sparc_gdbarch_init): Update.
43 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
44 * v850-tdep.c (v850_gdbarch_init): Update.
45 * vax-tdep.c (vax_gdbarch_init): Update.
46 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
47 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
49 * config/arc/tm-arc.h: Update.
50 * config/d30v/tm-d30v.h: Update.
51 * config/fr30/tm-fr30.h: Update.
52 * config/h8300/tm-h8300.h: Update.
53 * config/h8500/tm-h8500.h: Update.
54 * config/i386/tm-i386.h: Update.
55 * config/i386/tm-ptx.h: Update.
56 * config/i386/tm-symmetry.h: Update.
57 * config/i960/tm-i960.h: Update.
58 * config/m32r/tm-m32r.h: Update.
59 * config/m68k/tm-delta68.h: Update.
60 * config/m68k/tm-linux.h: Update.
61 * config/m68k/tm-m68k.h: Update.
62 * config/m88k/tm-m88k.h: Update.
63 * config/mcore/tm-mcore.h: Update.
64 * config/mips/tm-mips.h: Update.
65 * config/mn10200/tm-mn10200.h: Update.
66 * config/pa/tm-hppa.h: Update.
67 * config/pa/tm-hppa64.h: Update.
68 * config/sparc/tm-sp64.h: Update.
69 * config/sparc/tm-sparc.h: Update.
70 * config/sparc/tm-sparclet.h: Update.
71 * config/z8k/tm-z8k.h: Update.
73 2002-06-14 Andrew Cagney <cagney@redhat.com>
75 * Makefile.in (i386_linux_tdep_h): Define.
76 (i386_tdep_h, i387_tdep_h): Define.
77 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
78 $(i386_tdep_h) and $(i387_tdep_h).
79 * i386-linux-nat.c: Include "i386-linux-tdep.h".
81 2002-06-14 Mark Kettenis <kettenis@gnu.org>
83 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
84 Already covered by the default.
86 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
87 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
88 (i386_gdbarch_init): Initialize long_double_format and long_double
91 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
92 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
94 * config/i386/i386sol2.mh: ... here.
95 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
96 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
97 (SIGCONTEXT_PC_OFFSET): Remove define.
98 (IN_SIGTRAMP): Remove define.
99 * i386-sol2-tdep.c: New file.
101 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
102 * config/i386/tm-i386nw.h: Removed.
104 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
105 USE_STRUCT_CONVENTION): Remove defines.
106 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
107 (get_longjmp_target): Remove prototype.
108 (IN_SIGTRAMP): Remove define.
109 (i386bsd_in_sigtramp): Remove prototype.
110 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
111 function. Update comment accordingly
112 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
113 (FRAME_SAVED_PC): Remove define.
114 (i386bsd_frame_saved_pc): Remove prototype.
115 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
116 GET_LONGJMP_TARGET): Remove defines.
117 (get_longjmp_target): Remove prototype.
118 (IN_SIGTRAMP): Remove define.
119 (i386bsd_in_sigtramp): Remove prototype.
120 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
121 function. Update comment accordingly
122 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
123 (FRAME_SAVED_PC): Remove define.
124 (i386bsd_frame_saved_pc): Remove prototype.
125 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
127 (USE_STRUCT_CONVENTION): Remove prototype.
128 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
130 (_initialize_i386bsd_nat): Revise logic to determine some
131 constants at compile time when compiling a native GDB. Warn if
132 things don't match up with what we expect.
133 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
135 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
136 to use date stored in `struct gdbarch_tdep'.
137 (i386bsd_sigcontext_offset): Remove varaible.
138 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
139 stored in `struct gdbarch_tdep'.
140 (i386bsd_frame_saved_pc): Make static.
141 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
142 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
143 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
144 i386fbsd4_sc_pc_offset): New variables.
145 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
146 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
148 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
150 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
151 Modify the value of i386fbsd_sigtramp_start and
152 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
153 i386fbsd_sigtramp_end.
154 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
157 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
158 define to i386-linux-tdep.h.
159 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
160 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
162 (i386_linux_register_name, i386_linux_register_byte,
163 i386_linux_register_raw_size): Remove prototypes.
164 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
165 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
166 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
167 TARGET_WRITE_PC): Remove defines.
168 (i386_linux_in_sigtramp, i386_linux_frame_chain,
169 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
170 i386_linux_write_pc): Remove prototypes.
171 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
172 (get_longjmp_target): Remove prototype.
173 * i386-linux-tdep.h: New file.
174 * i386-linux-nat.c: Include "i386-linux-tdep.h".
175 * i386-linux-tdep.c: Include "i386-tdep.h" and
177 (i386_linux_register_name, i386_linux_register_byte,
178 i386_linux_register_raw_size, i386_linux_in_sigtramp,
179 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
181 (i386_linux_init_abi): New function.
182 (_initialize_i386_linux_tdep): New function.
184 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
185 (i386_saved_pc_after_call): Remove prototype.
186 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
187 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
188 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
189 (i386_register_name, i386_stab_reg_to_regnum,
190 i386_dwarf_reg_to_regnum): Remove prototypes.
191 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
192 SIZEOF_SSE_REGS): Remove defines.
193 (REGISTER_BYTES): Remove define.
194 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
195 (i386_register_byte, i386_register_raw_size): Remove prototypes.
196 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
197 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
198 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
199 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
200 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
201 (get_longjmp_target): Remove prototype.
202 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
203 (sigtramp_saved_pc): Remove define.
204 (i386v4_sigtramp_saved_pc): Remove prototype.
205 * config/i386/tm-go32.h (FRAME_CHAIN,
206 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
207 (i386go32_frame_saved_pc): Remove prototype.
208 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
209 (get_longjmp_target): Remove prototype.
210 * i386-tdep.h: Include "osabi.h".
211 (enum i386_abi): Removed.
212 (enum struct_return): New enum.
213 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
214 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
215 sc_pc_offset members.
216 (i386_gdbarch_register_os_abi): Remove prototype.
217 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
218 I386_SSE_NUM_REGS): New defines.
219 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
220 I386_SSE_SIZEOF_REGS): New defines.
221 (i386_register_name, i386_register_byte, i386_register_raw_size):
223 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
224 (i386bsd_sigtramp_saved_pc): New prototype.
225 * i386-tdep.c: Don't include "elf-bfd.h".
226 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
227 i386_frame_chain, i386_saved_pc_after_call): Make static.
228 (i386_frame_saved_pc): Rewrite to call architecture dependent
229 function to deal with signal handlers. Make static.
230 (i386go32_frame_saved_pc): Removed.
231 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
233 (i386_get_longjmp_target): New function.
234 (default_struct_convention, pcc_struct_convention,
235 reg_struct_convention, valid_conventions, struct_convention): New
237 (i386_use_struct_convention): New function.
238 (i386v4_sigtramp_saved_pc): Renamed to
239 i386_svr4_sigtramp_saved_pc. Made static. Moved.
240 (i386_pc_in_sigtramp): New function.
241 (i386_abi_names): Removed.
242 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
243 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
245 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
246 i386_gdbarch_register_os_abi): Removed.
247 (struct i386_abi_handler): Removed.
248 (i386_abi_handler_list): Removed.
249 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
251 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
252 i386_nw_init_abi): New functions.
253 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
254 Use set_gdbarch_xxx() calls instead of relying on macros for a
256 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
257 (_initialize_i386_tdep): Add new 'struct-convcention' command.
258 Register the various architecture variants defined in this file.
260 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
262 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
263 (struct main_type): Remove arg_types member. Update comments for
265 (TYPE_ARG_TYPES): Remove.
266 (TYPE_FN_FIELD_ARGS): Update.
267 (smash_to_method_type): Update prototype.
269 * c-typeprint.c (cp_type_print_method_args): Take method type
270 instead of argument list. Use new argument layout. Simplify.
271 (c_type_print_args): Use new argument layout. Simplify.
272 (c_type_print_base): Update call to cp_type_print_method_args.
273 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
274 argument; use die->type instead. Update call to
275 smash_to_method_type.
276 (read_structure_scope): Update call to dwarf2_add_member_fn.
277 * gdbtypes.c (allocate_stub_method): Update comment.
278 (smash_to_method_type): Take new NARGS and VARARGS arguments.
279 Use new argument layout.
280 (check_stub_method): Use new argument layout. Don't count
282 (print_arg_types): Update comments. Use new argument layout.
283 (recursive_dump_type): Don't print arg_types member.
284 * hpread.c (hpread_read_struct_type): Use new argument layout.
285 (fixup_class_method_type): Likewise.
286 (hpread_type_lookup): Likewise.
287 * stabsread.c (read_type): Update calls to read_args and
288 smash_to_method_type.
289 (read_args): Use new argument layout. Simplify.
290 * valops.c (typecmp): Use new argument layout. Update parameters
291 and comments. Simplify.
292 (hand_function_call): Use new argument layout.
293 (search_struct_method): Update call to typecmp.
294 (find_overload_match): Use new argument layout.
296 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
298 * NEWS: Mention multithreaded debug support for gdbserver.
300 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
302 * MAINTAINERS: Mention NEWS.
304 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
306 * gdbserver/regcache.c: Add comment.
308 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
310 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
311 (struct mips_objfile_private, compare_pdr_entries): New.
312 (non_heuristic_proc_desc): Read the ".pdr" section if it
315 2002-06-12 Andrew Cagney <ac131313@redhat.com>
317 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
318 (arm_debug): New static variable.
319 (_initialize_arm_tdep): Add ``set debug arm'' command.
321 2002-06-12 Andrew Cagney <ac131313@redhat.com>
323 * Makefile.in (sim_arm_h): Define.
324 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
325 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
326 (arm_register_sim_regno): New function, map an internal REGNUM
327 onto a simulator register number.
328 (arm_gdbarch_init): Set register_sim_regno.
330 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
332 * MAINTAINERS: Add self.
334 2002-06-11 Jim Blandy <jimb@redhat.com>
336 * source.c (source_info): Mention whether the symtab has
337 information about preprocessor macros.
339 Call the command `info macro', not `show macro'.
340 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
342 (_initialize_macrocmd): Register `info_macro_command' in
343 `infolist', not `showlist'.
345 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
347 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
348 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
349 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
350 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
351 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
353 (set_mipsfpu_single_command, set_mipsfpu_double_command)
354 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
355 (_initialize_mips_tdep): Remove dead code.
356 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
357 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
358 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
359 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
360 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
361 MIPS_LAST_FP_ARG_REGNUM): Remove.
363 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
365 * gdbserver/thread-db.c: New file.
366 * gdbserver/proc-service.c: New file.
367 * gdbserver/acinclude.m4: New file.
368 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
369 proc-service.o, and thread-db.o.
370 (linux-low.o): Add USE_THREAD_DB.
371 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
372 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
373 * gdbserver/aclocal.m4: Regenerated.
374 * gdbserver/config.in: Regenerated.
375 * gdbserver/configure: Regenerated.
376 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
377 thread_db.h, and linux/elf.h headrs.
378 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
379 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
380 Check for -lthread_db and thread support.
381 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
383 * gdbserver/i387-fp.c: Constify arguments.
384 * gdbserver/i387-fp.h: Likewise.
385 * gdbserver/inferiors.c: (struct thread_info): Renamed from
386 `struct inferior_info'. Remove PID member. Use generic inferior
387 list header. All uses updated.
388 (inferiors, signal_pid): Removed.
389 (all_threads): New variable.
390 (get_thread): Define.
391 (add_inferior_to_list): New function.
392 (for_each_inferior): New function.
393 (change_inferior_id): New function.
394 (add_inferior): Removed.
395 (remove_inferior): New function.
396 (add_thread): New function.
397 (free_one_thread): New function.
398 (remove_thread): New function.
399 (clear_inferiors): Use for_each_inferior and free_one_thread.
400 (find_inferior): New function.
401 (find_inferior_id): New function.
402 (inferior_target_data): Update argument type.
403 (set_inferior_target_data): Likewise.
404 (inferior_regcache_data): Likewise.
405 (set_inferior_regcache_data): Likewise.
406 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
407 (all_processes, stopping_threads, using_thrads)
408 (struct pending_signals, debug_threads, pid_of): New.
409 (inferior_pid): Replace with macro.
410 (struct inferior_linux_data): Remove.
411 (get_stop_pc, add_process): New functions.
412 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
413 Use add_process and add_thread.
414 (linux_attach_lwp): New function, based on old linux_attach. Use
415 add_process and add_thread. Set stop_expected for new threads.
416 (linux_attach): New function.
417 (linux_kill_one_process): New function.
418 (linux_kill): Kill all LWPs.
419 (linux_thread_alive): Use find_inferior_id.
420 (check_removed_breakpoints, status_pending_p): New functions.
421 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
422 Update. Use WNOHANG. Wait for cloned processes also. Update process
423 struct for the found process.
424 (linux_wait_for_event): New function.
425 (linux_wait): Use it. Support LWPs.
426 (send_sigstop, wait_for_sigstop, stop_all_processes)
427 (linux_resume_one_process, linux_continue_one_process): New functions.
428 (linux_resume): Support LWPs.
429 (REGISTER_RAW_SIZE): Remove.
430 (fetch_register): Use register_size instead. Call supply_register.
431 (usr_store_inferior_registers): Likewise. Call collect_register.
433 (regsets_fetch_inferior_registers): Improve error message.
434 (regsets_store_inferior_registers): Add debugging.
435 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
436 (unstopped_p, linux_signal_pid): New functions.
437 (linux_target_ops): Add linux_signal_pid.
438 (linux_init_signals): New function.
439 (initialize_low): Call it. Initialize using_threads.
440 * gdbserver/regcache.c (inferior_regcache_data): Add valid
442 (get_regcache): Fetch registers lazily. Add fetch argument
443 and update all callers.
444 (regcache_invalidate_one, regcache_invalidate): New
446 (new_register_cache): Renamed from create_register_cache.
447 Return the new regcache.
448 (free_register_cache): Change argument to a void *.
449 (registers_to_string, registers_from_string): Call get_regcache
451 (register_data): Make static. Pass fetch flag to get_regcache.
452 (supply_register): Call get_regcache with fetch flag clear.
453 (collect_register): Call get_regcache with fetch flag set.
454 (collect_register_as_string): New function.
455 * gdbserver/regcache.h: Update.
456 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
458 Handle input interrupts while waiting for an ACK.
459 (input_interrupt): Use signal_pid method.
460 (getpkt): Flush after debug output and use stderr.
461 (outreg): Use collect_register_as_string.
462 (new_thread_notify, dead_thread_notify): New functions.
463 (prepare_resume_reply): Check using_threads. Set thread_from_wait
465 (look_up_one_symbol): Flush after debug output.
466 * gdbserver/server.c (step_thread, server_waiting): New variables.
467 (start_inferior): Don't use signal_pid. Update call to mywait.
468 (attach_inferior): Update call to mywait.
469 (handle_query): Handle qfThreadInfo and qsThreadInfo.
470 (main): Don't fetch/store registers explicitly. Use
471 set_desired_inferior. Support proposed ``Hs'' packet. Update
473 * gdbserver/server.h: Update.
474 (struct inferior_list, struct_inferior_list_entry): New.
475 * gdbserver/target.c (set_desired_inferior): New.
476 (write_inferior_memory): Constify.
477 (mywait): New function.
478 * gdbserver/target.h: Update.
479 (struct target_ops): New signal_pid method.
480 (mywait): Removed macro, added prototype.
482 * gdbserver/linux-low.h (regset_func): Removed.
483 (regset_fill_func, regset_store_func): New.
484 (enum regset_type): New.
485 (struct regset_info): Add type field. Use new operation types.
486 (struct linux_target_ops): stop_pc renamed to get_pc.
487 Add decr_pc_after_break and breakpoint_at.
488 (get_process, get_thread_proess, get_process_thread)
489 (strut process_info, all_processes, linux_attach_lwp)
490 (thread_db_init): New.
492 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
493 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
494 (the_low_target): Add new members.
495 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
496 (i386_store_fpxregset): Constify.
497 (target_regsets): Add new kind identifier.
498 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
499 (i386_set_pc): Add debugging.
500 (i386_breakpoint_at): New function.
501 (the_low_target): Add new members.
502 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
503 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
504 (mips_breakpoint_at): New.
505 (the_low_target): Add new members.
506 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
507 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
508 (the_low_target): Add new members.
509 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
510 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
511 (the_low_target): Add new members.
512 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
515 2002-06-11 Michal Ludvig <mludvig@suse.cz>
517 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
518 (unwind_tmp_obstack_free, parse_frame_info)
519 (update_context, cfi_read_fp, cfi_write_fp)
520 (cfi_frame_chain, cfi_init_extra_frame_info)
521 (cfi_virtual_frame_pointer): Use the above function.
522 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
524 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
526 * v850-tdep.c (v850_type_is_scalar): New function.
527 (v850_use_struct_convention): Match current gcc implementation
528 as close as possible.
529 (v850_push_arguments): Fix stack_offset handling. Don't write
530 struct_addr into register. This is done by v850_store_struct_return.
531 (v850_extract_return_value): Care for structs.
532 (v850_store_return_value): Ditto.
533 (v850_store_struct_return): Actually write address.
535 2002-06-11 Michal Ludvig <mludvig@suse.cz>
537 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
538 without debug information too.
540 2002-06-10 Andrew Cagney <ac131313@redhat.com>
542 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
543 Make multi-arch pure.
544 * gdbarch.h, gdbarch.c: Re-generate.
545 * arm-tdep.c (arm_print_float_info): Update.
546 * arch-utils.h (default_print_float_info): Update.
547 * arch-utils.c (default_print_float_info): Update.
548 * infcmd.c (float_info): Update call.
550 2002-06-10 Andrew Cagney <ac131313@redhat.com>
552 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
553 the front of the initialize list.
555 2002-06-10 Andrew Cagney <ac131313@redhat.com>
557 * infrun.c (struct inferior_status): Replace fields
558 selected_frame_address and selected_level with field
560 (save_inferior_status): Update. Use get_frame_id.
561 (struct restore_selected_frame_args): Delete.
562 (restore_selected_frame): Update. Use frame_find_by_id.
563 (restore_inferior_status): Update.
565 * breakpoint.h (struct breakpoint): Change type of
566 watchpoint_frame to frame_id.
567 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
568 call to get_current_frame.
569 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
571 (watchpoint_check): Use frame_find_by_id.
573 * frame.h (record_selected_frame): Delete declaration.
574 * stack.c (record_selected_frame): Delete function.
576 * frame.h (struct frame_id): Define.
577 (get_frame_id): Declare.
578 (frame_find_by_id): Declare.
579 * frame.c (frame_find_by_id): New function.
580 (get_frame_id): New function.
582 2002-06-10 Andrey Volkov <avolkov@transas.com>
584 * ser-e7kpc.c: Fix duplicated define and call of
585 _initialize_ser_e7000pc
587 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
589 * signals/signals.c (target_signal_from_host): Fix #ifdef
591 (do_target_signal_to_host): Likewise.
593 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
595 * mips-tdep.c (mips_find_abi_section): New function.
596 (mips_gdbarch_init): Call it.
598 2002-06-09 Mark Kettenis <kettenis@gnu.org>
600 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
601 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
602 after Andrew's 2002-06-08 gdbarch change.
604 2002-06-09 Mark Kettenis <kettenis@gnu.org>
606 * i386-linux-nat.c (suppy_gregset): Don't supply
607 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
609 (fill_gregset): Don't fetch it under the same circumstances.
611 2002-06-09 Andrew Cagney <cagney@redhat.com>
613 * Makefile.in (callback_h): Define.
614 (remote_sim_h): Update path to remote-sim.h.
615 (remote-rdp.o): Add $(callback_h).
616 (remote-sim.o): Use $(callback_h).
617 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
618 * remote-rdp.c: Include "gdb/callback.h".
620 2002-06-09 Mark Kettenis <kettenis@gnu.org>
622 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
623 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
625 2002-06-08 Andrew Cagney <ac131313@redhat.com>
627 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
628 * rdi-share/serpardr.c: Ditto.
629 * rdi-share/unixcomm.c: Ditto.
630 * rdi-share/serdrv.c: Ditto.
631 * rdi-share/hostchan.h: Ditto.
632 * rdi-share/hostchan.c: Ditto.
633 * rdi-share/host.h: Ditto.
634 * rdi-share/devsw.c: Ditto.
636 * objfiles.h: Change type of obj_private to void pointer.
637 * pa64solib.c: Update copyright. Don't include "assert.h", use
638 strcmp instead of STREQ, use LONGEST, do not use PTR
641 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
642 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
643 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
645 2002-06-08 Andrew Cagney <ac131313@redhat.com>
647 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
648 (default_get_saved_register): Delete function.
649 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
650 generic_unwind_get_saved_register.
651 * gdbarch.h, gdbarch.c: Re-generate.
653 2002-06-08 Andrew Cagney <ac131313@redhat.com>
655 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
656 generic_func_frame_chain_valid.
657 * gdbarch.h, gdbarch.c: Re-generate.
658 * blockframe.c (generic_func_frame_chain_valid): Only check
659 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
660 passing FP to PC_IN_CALL_DUMMY.
663 2002-06-08 Andrew Cagney <ac131313@redhat.com>
665 * gdbarch.sh (struct gdbarch_data): Add field init_p.
666 (register_gdbarch_data): Initialize init_p.
667 (gdbarch_data): Initialize data pointer using the init function.
668 (init_gdbarch_data): Delete function.
669 (gdbarch_update_p): Update.
670 (initialize_non_multiarch): Update.
671 (struct gdbarch): Add field initialized_p.
672 * gdbarch.h, gdbarch.c: Re-generate.
674 2002-06-07 Michal Ludvig <mludvig@suse.cz>
676 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
677 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
678 better do the things actually here.
679 * x86-64-tdep.c (x86_64_register_name2nr): New.
680 (x86_64_register_name): Renamed to x86_64_register_nr2name.
681 (x86_64_gdbarch_init): Respect the above change.
682 * x86-64-tdep.h (x86_64_register_name2nr)
683 (x86_64_register_nr2name): Add prototypes.
684 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
686 2002-06-06 Michael Snyder <msnyder@redhat.com>
688 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
689 Delete extra braces and re-indent.
690 (d10v_store_return_value): Char return values
691 must be shifted over by one byte in R0.
692 (d10v_extract_return_value): Delete extra braces, re-indent.
694 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
696 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
697 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
698 (d10v_integer_to_address): Rewrite.
699 (d10v_frame_init_saved_regs): When reading fp and sp registers use
700 the d10v specific functions which take care of converting to the
703 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
705 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
706 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
708 2002-06-02 Andrew Cagney <ac131313@redhat.com>
710 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
712 * config/tm-linux.h: Ditto.
713 * config/alpha/tm-alphalinux.h: Ditto.
714 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
715 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
716 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
717 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
718 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
719 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
720 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
721 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
722 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
723 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
724 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
725 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
726 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
727 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
728 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
729 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
730 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
731 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
732 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
733 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
734 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
735 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
736 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
737 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
738 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
739 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
740 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
741 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
742 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
743 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
744 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
745 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
746 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
747 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
748 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
749 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
750 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
752 2002-05-04 Aidan Skinner <aidan@velvet.net>
754 * ada-exp.tab.c: New file
755 * ada-exp.y: New file
756 * ada-lang.c: New file
757 * ada-lang.h: New file
758 * ada-lex.c: New file
759 * ada-lex.l: New file
760 * ada-tasks.c: New file
761 * ada-typeprint.c: New file
762 * ada-valprint.c: New file
764 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
766 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
767 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
769 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
771 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
772 insetead of ppc-linux-tdep.o.
773 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
774 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
776 2002-06-02 Andrew Cagney <ac131313@redhat.com>
778 2002-05-07 Christian Groessler <chris@groessler.org>
779 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
780 bit register contents for little endian hosts.
782 2002-06-01 Andrew Cagney <ac131313@redhat.com>
784 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
787 2002-06-01 Andrew Cagney <ac131313@redhat.com>
789 * gdbarch.h: Regenerate.
791 2002-06-01 Andrew Cagney <ac131313@redhat.com>
793 * MAINTAINERS: Add everyone to write-after-approval list.
795 2002-06-01 Andrew Cagney <ac131313@redhat.com>
797 * stack.c (frame_info): Use frame_register_unwind instead of
798 saved_regs. Mention when the SP is on the stack or in a register.
800 * frame.h (frame_register_unwind_ftype): Define. Document.
801 (struct frame_info): Add field register_unwind and
802 register_unwind_cache.
803 (frame_register_unwind): Declare.
804 (generic_unwind_get_saved_register): Declare.
806 * frame.c (frame_register_unwind): New function.
807 (generic_unwind_get_saved_register): New function.
809 * blockframe.c (generic_call_dummy_register_unwind): New function.
810 (frame_saved_regs_register_unwind): New function.
811 (set_unwind_by_pc): New function.
812 (create_new_frame): New function.
813 (get_prev_frame): New function.
815 2002-05-30 Andrew Cagney <ac131313@redhat.com>
817 * a29k-share/: Delete directory.
818 * remote-vx29k.c: Delete file.
820 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
822 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
823 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
825 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
827 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
828 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
831 (sparcnbsd-tdep.o): New dependency lists.
832 * NEWS: Note new UltraSPARC NetBSD native configuration.
833 * configure.host (sparc64-*-netbsd*): New host.
834 * configure.tgt (sparc-*-netbsdelf*)
835 (sparc-*-netbsd*): Set gdb_target to nbsd.
836 (sparc64-*-netbsd*): New target.
837 * sparc64nbsd-nat.c: New file.
838 * sparcnbsd-nat.c: New file.
839 * sparcnbsd-tdep.c: New file.
840 * sparcnbsd-tdep.h: New file.
841 * config/sparc/nbsd.mt: New file.
842 * config/sparc/nbsd64.mh: New file.
843 * config/sparc/nbsd64.mt: New file.
844 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
845 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
847 * config/sparc/nbsdaout.mt: Remove.
848 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
849 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
851 * config/sparc/nbsdelf.mt: Remove.
852 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
853 sparc-nat.c compatiblity defines.
854 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
855 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
856 * config/sparc/tm-nbsd64.h: New file.
857 * config/sparc/tm-nbsdaout.h: Remove.
858 * config/sparc/xm-nbsd.h: Remove.
860 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
862 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
863 * sparc-tdep.c: Include osabi.h.
864 (gdbarch_tdep): Add osabi member.
865 (_initialize_sparc_tdep): Use gdbarch_register.
866 (sparc_gdbarch_init): Use generic OS ABI framework.
867 (sparc_dump_tdep): New function.
869 2002-05-30 Kevin Buettner <kevinb@redhat.com>
871 * corefile.c (do_captured_read_memory_integer): Return non-zero
873 (safe_read_memory_integer): Copy result of memory read when
874 status is non-zero. Also, add comments.
876 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
878 * Makefile.in (ppc_tdep_h): Define.
881 (rs6000-tdep.o): Use $(ppc_tdep_h).
884 (ppcnbsd-tdep.o): New dependency lists.
885 * ppc-tdep.h: Use generic OS ABI framework.
886 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
887 (ppc_linux_init_abi): New functions.
888 (ppc_sysv_abi_broken_use_struct_convention)
889 (ppc_sysv_abi_use_struct_convention)
890 (ppc_sysv_abi_push_arguments): Move to...
891 * ppc-sysv-tdep.c: ...here.
892 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
893 * rs6000-tdep.c (process_note_abi_tag_sections)
894 (get_elfosabi): Remove.
895 (rs6000_gdbarch_init): Use generic OS ABI framework.
896 (rs6000_dump_tdep): New function.
897 (_initialize_rs6000_tdep): Use gdbarch_register.
898 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
899 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
900 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
902 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
903 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
904 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
905 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
906 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
907 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
909 2002-05-29 Jim Blandy <jimb@redhat.com>
911 * macroscope.c (default_macro_scope): Put `void' in empty argument
914 2002-05-29 Andrew Cagney <ac131313@redhat.com>
916 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
917 * arch-utils.c: Include "sim-regno.h".
918 * gdbarch.sh: Don't include "sim-regno.h".
919 * gdbarch.h, gdbarch.c: Regenerate.
920 * sim-regno.h (legacy_register_sim_regno): Move declaration from
922 * arch-utils.h (legacy_register_sim_regno): To here.
923 * remote-sim.c (legacy_register_sim_regno): Move function from
925 * arch-utils.c (legacy_register_sim_regno): To here.
927 2002-05-28 Andrew Cagney <ac131313@redhat.com>
929 * sim-regno.h: New file.
930 * Makefile.in (sim_regno_h): Define.
931 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
932 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
933 (legacy_register_sim_regno): New function.
934 (one2one_register_sim_regno): New function.
935 (gdbsim_fetch_register): Rewrite.
936 (gdbsim_store_register): Only store a register when
937 REGISTER_SIM_REGNO is valid.
938 * d10v-tdep.c: Include "sim-regno.h".
939 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
940 (d10v_ts3_register_sim_regno): Ditto.
941 * gdbarch.sh: Include "sim-regno.h".
942 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
943 * gdbarch.h, gdbarch.c: Regenerate.
944 * arch-utils.h (default_register_sim_regno): Delete declaration.
945 * arch-utils.c (default_register_sim_regno): Delete function.
947 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
949 * ppcnbsd-nat.c: Rewrite.
950 * ppcnbsd-tdep.c: New file.
951 * ppcnbsd-tdep.h: New file.
952 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
953 solib.o, and solib-svr4.o.
954 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
955 nbsd-tdep.o, and corelow.o.
957 2002-05-28 Andrew Cagney <ac131313@redhat.com>
959 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
960 `tr' and `sed'. Mention that `broken' targets are not expected to
963 2002-05-27 Michal Ludvig <mludvig@suse.cz>
965 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
966 Let PC point right after the prologue before looking up symbols.
968 2002-05-27 Martin M. Hunt <hunt@redhat.com>
970 * i386-tdep.c (i386_register_virtual_type): Return
971 builtin_type_vec128i for SSE registers.
973 * gdbtypes.h (builtin_type_vec128i): Declare.
975 * gdbtypes.c (build_builtin_type_vec128i): New function.
976 (builtin_type_v2_double, builtin_type_v4_int64): New types.
977 (builtin_type_vec128i): New type for SSE2 128-bit registers.
978 (build_gdbtypes): Initialize new builtin vector types.
979 (_initialize_gdbtypes): Register new vector types with gdbarch.
981 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
983 * MAINTAINERS: ns32k is not longer an obsolete candidate,
984 since it has been multi-arch'd.
985 * NEWS: Note that ns32k-*-* is now partial multi-arch.
986 Move Alpha and VAX multi-arch news entries to same section
987 as other multi-arch news.
989 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
991 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
992 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
993 static. Rename some register numbers to put them in ns32k-tdep
995 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
996 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
998 (_initialize_ns32k_tdep): Use gdbarch_register.
999 * ns32k-tdep.h: New file.
1000 * ns32knbsd-tdep.c: New file.
1001 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
1002 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
1003 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
1004 REGISTER_BYTES, REGISTER_BYTE): Remove.
1005 * config/ns32k/tm-ns32k.h: New file.
1006 * config/ns32k/tm-umax.h: Remove.
1008 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1010 * ns32k-tdep.c (ns32k_saved_pc_after_call,
1011 ns32k_store_struct_return, ns32k_extract_return_value,
1012 ns32k_store_return_value, ns32k_extract_struct_value_address): New
1014 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
1015 ns32k_saved_pc_after_call.
1016 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
1017 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
1018 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
1019 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1020 ns32k_extract_struct_value_address.
1022 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1024 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
1025 ns32k_fix_call_dummy): New.
1026 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
1027 ns32k_call_dummy_words.
1028 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
1029 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
1030 CALL_DUMMY_NARGS): Remove.
1031 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
1033 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1035 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
1036 ns32k_frame_saved_pc, ns32k_frame_args_address,
1037 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
1038 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
1039 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
1040 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
1041 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
1042 (BREAKPOINT): Remove..
1043 (FRAME_CHAIN): Define as ns32k_frame_chain.
1044 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
1045 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
1046 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
1047 (FRAME_FIND_SAVED_REGS): Remove.
1048 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
1049 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
1050 (POP_FRAME): Define as ns32k_pop_frame.
1052 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1054 * ns32k-tdep.c (ns32k_register_byte_32082,
1055 ns32k_register_byte_32382, ns32k_register_raw_size,
1056 ns32k_register_virtual_size, ns32k_register_virtual_type): New
1058 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
1059 ns32k_register_byte_32382.
1060 * config/ns32k/tm-umax.h: Update copyright years.
1061 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
1062 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
1063 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
1064 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
1065 (ns32k_get_enter_addr): Fix prototype.
1067 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
1069 * ns32k-tdep.c: Update copyright years.
1070 (ns32k_register_name_32082): New function.
1071 (ns32k_register_name_32382): Ditto.
1072 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
1073 (REGISTER_NAME): Define as ns32k_register_name_32382.
1074 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
1075 (REGISTER_NAME): Define as ns32k_register_name_32082.
1077 2002-05-24 Jim Blandy <jimb@redhat.com>
1079 * dwarf2read.c (free_line_header): Use xfree, not free.
1081 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
1083 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
1084 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
1086 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1088 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
1090 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1092 From Ross Alexander at NEC Europe:
1093 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
1095 2002-05-23 Michael Snyder <msnyder@redhat.com>
1097 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
1098 for input, rather than parse_and_eval_address.
1100 2002-05-23 Andrew Cagney <ac131313@redhat.com>
1102 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
1103 * Makefile.in (sim_d10v_h): Update definition.
1105 2002-05-24 Andrew Cagney <cagney@redhat.com>
1107 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
1108 change `2002-05-22 Michael Snyder' below.
1109 (d10v_push_arguments): Ditto.
1110 (d10v_extract_return_value): Ditto.
1112 2002-05-23 Jim Blandy <jimb@redhat.com>
1114 * macrotab.c (check_for_redefinition): Don't complain if the new
1115 definition is the same as the previous one. Take more arguments
1116 to allow the comparison.
1117 (macro_define_object, macro_define_function): Pass more arguments
1118 to check_for_redefinition.
1120 2002-05-22 Michael Snyder <msnyder@redhat.com>
1122 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
1123 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
1124 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
1125 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
1126 Don't bail if return_pc is PC_IN_CALL_DUMMY.
1127 Add a temp variable to save a call (and a memory read).
1128 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
1129 if possible (so that PC_IN_CALL_DUMMY will work).
1131 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
1133 * MAINTAINERS: Remove status `OBSOLETE' from v850.
1135 2002-05-22 Michal Ludvig <mludvig@suse.cz>
1137 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
1139 (dwarf2_build_frame_info): Corrected handling of eh_frame.
1140 (dwarf2_build_frame_info): Add offset to fde->initial_location
1141 so that frames of shared libraries are mapped correctly.
1142 (execute_stack_op): Change type of 'result' from ULONGEST to
1145 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1147 * config/alpha/tm-nbsd.h: Include solib.h.
1149 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1151 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
1152 assumptions about the host's byte order.
1154 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1156 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
1158 * alphanbsd-tdep.c: Include solib-svr4.h.
1159 * shnbsd-tdep.c: Ditto.
1161 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
1163 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
1164 nbsd-tdep.h to dependency list.
1165 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
1166 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
1167 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
1168 nbsdaout.mh and nbsdelf.mh consistently.
1169 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
1170 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
1171 nbsdaout.mt and nbsdelf.mh consistently.
1172 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
1173 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
1174 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1175 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
1176 a.out shared library stuff from here...
1177 * config/nm-nbsdaout.h: ...to here.
1178 * config/tm-nbsd.h: Remove.
1179 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
1180 * config/arm/nbsd.mh: Remove.
1181 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
1183 * config/arm/nbsdaout.mh: New file.
1184 * config/arm/nbsdelf.mh: New file.
1185 * config/arm/nm-nbsdaout.h: New file.
1186 * config/i386/nbsd.mh: Remove.
1187 * config/i386/nbsd.mt: Remove.
1188 * config/i386/nbsdaout.mh: New file.
1189 * config/i386/nbsdaout.mt: New file.
1190 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1191 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
1192 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
1193 i386_register_u_addr): Remove.
1194 * config/i386/nm-nbsdaout.h: New file.
1195 * config/i386/nm-nbsdelf.h: Remove.
1196 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
1197 (USE_STRUCT_CONVENTION): Remove.
1198 * config/i386/tm-nbsdaout.h: New file.
1199 * config/i386/tm-nbsdelf.h: Remove.
1200 * config/m68k/nbsd.mh: Remove.
1201 * config/m68k/nbsd.mt: Remove.
1202 * config/m68k/nbsdaout.mh: New file.
1203 * config/m68k/nbsdaout.mt: New file.
1204 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
1205 * config/m68k/nm-nbsdaout.h: New file.
1206 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1207 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1208 * config/ns32k/nbsd.mh: Remove.
1209 * config/ns32k/nbsd.mt: Remove.
1210 * config/ns32k/nbsdaout.mh: New file.
1211 * config/ns32k/nbsdaout.mt: New file.
1212 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
1213 * config/ns32k/nm-nbsdaout.h: New file.
1214 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
1215 (IN_SOLIB_CALL_TRAMPOLINE): Define.
1216 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
1217 (SVR4_SHARED_LIBS): Remove.
1218 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
1219 * config/sparc/nbsd.mh: Remove.
1220 * config/sparc/nbsd.mt: Remove.
1221 * config/sparc/nbsdaout.mh: New file.
1222 * config/sparc/nbsdaout.mt: New file.
1223 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
1224 * config/sparc/nbsdelf.mt: New file.
1225 * config/sparc/nm-nbsdaout.h: New file.
1226 * config/sparc/nm-nbsdelf.h: Remove.
1227 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
1228 * config/sparc/tm-nbsdaout.h: New file.
1230 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1232 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
1234 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
1236 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1238 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
1240 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
1242 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1244 * NEWS: Note new MIPS NetBSD native configuration.
1245 * configure.host (mips*-*-netbsd*): New host.
1246 * configure.tgt (mips*-*-netbsd*): New target.
1247 * mipsnbsd-nat.c: New file.
1248 * mipsnbsd-tdep.c: New file.
1249 * mipsnbsd-tdep.h: New file.
1250 * config/mips/nbsd.mh: New file.
1251 * config/mips/nbsd.mt: New file.
1252 * config/mips/nm-nbsd.h: New file.
1253 * config/mips/tm-nbsd.h: New file.
1255 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1257 * Makefile.in (SFILES): Add osabi.c.
1258 (COMMON_OBS): Add osabi.o.
1259 (osabi.o): New dependency list.
1260 * osabi.c: New file.
1261 * osabi.h: New file.
1262 * doc/gdbint.texinfo: Document new generic OS ABI framework.
1264 * Makefile.in (alpha_tdep_h): Define and use instead of
1266 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
1267 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
1269 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
1270 * alpha-tdep.h: Include osabi.h.
1271 (alpha_abi): Remove.
1272 (gdbarch_tdep): Use generic OS ABI framework.
1273 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
1274 gdbarch_register_osabi.
1275 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
1276 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
1277 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
1279 * Makefile.in (sh_tdep_h): Add osabi.h.
1280 * sh-tdep.h (sh_osabi): Remove.
1281 (gdbarch_tdep): Use generic OS ABI framework.
1282 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
1283 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
1284 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
1285 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
1287 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
1288 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
1289 gdbarch_register_osabi.
1290 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
1291 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
1292 (get_elfosabi): Rename to...
1293 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
1294 ABI framework support routines.
1295 (arm_gdbarch_init): Use generic OS ABI framework.
1296 (arm_dump_tdep): Likewise.
1297 (_initialize_arm_tdep): Likewise.
1298 * arm-tdep.h: Include osabi.h.
1300 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
1302 (arm_gdbarch_register_os_abi): Remove prototype.
1303 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
1304 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
1306 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
1307 * mips-tdep.c: Include osabi.h.
1308 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
1311 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
1313 * h8300-tdep.c: Fix formatting.
1315 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
1317 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
1318 printing vector registers.
1320 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1322 From Fernando Nasser:
1323 * remote.c (remote_async_open_1): Re-throw the exception when the
1325 (remote_cisco_open): Ditto.
1326 (remote_open_1): Ditto.
1328 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1330 * remote.c (remote_start_remote_dummy): Add uiout parameter.
1331 (remote_start_remote): Add uiout parameter. Pass through to
1332 remote_start_remote_dummy.
1333 (remote_open_1): Use catch_exception instead of catch_errors.
1334 (remote_async_open_1): Ditto.
1335 (remote_cisco_open): Ditto.
1337 2002-05-19 Andrew Cagney <ac131313@redhat.com>
1339 * remote.c (remote_start_remote): Replace PTR with void pointer.
1340 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
1343 2002-05-18 Andrew Cagney <ac131313@redhat.com>
1345 * gdb_indent.sh: Allow the script to be run in the sim directory.
1347 2002-05-18 Mark Kettenis <kettenis@gnu.org>
1349 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
1350 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
1352 * corelow.c (core_open): Only call set_gdbarch_from_file if
1355 2002-05-17 Andrey Volkov <avolkov@transas.com>
1357 * h8300-tdep.c: Add support of EXR register
1358 * config/h8300/tm-h8300.h: Ditto.
1360 2002-05-17 Andrey Volkov <avolkov@transas.com>
1362 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
1364 2002-05-17 Andrey Volkov <avolkov@transas.com>
1366 * h8300-tdep.c: Change literal regnums to REGNO.
1368 2002-05-17 Jim Blandy <jimb@redhat.com>
1370 * NEWS: Note addition of macro support.
1372 Expand preprocessor macros in C expressions.
1373 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
1374 (scan_macro_expansion, scanning_macro_expansion,
1375 finished_macro_expansion): New function declarations.
1376 (expression_macro_lookup_func, expression_macro_lookup_baton): New
1377 variable declarations.
1378 * parser-defs.h (expression_context_pc): New declaration.
1379 * parse.c (expression_context_pc): New variable.
1380 (parse_exp_1): Set expression_context_pc, as well as
1381 expression_context_block.
1382 * c-exp.y (yylex): If we're not already reading the result of a
1383 macro expansion, try to macro-expand the next token. When we're
1384 done scanning a macro expansion, switch back to the mainline text.
1385 Commas and `if's in a macro's expansion don't terminate the input.
1386 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
1387 (macro_original_text, macro_expanded_text,
1388 expression_macro_lookup_func, expression_macro_lookup_baton): New
1390 (scan_macro_expansion, scanning_macro_expansion,
1391 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
1392 c_preprocess_and_parse): New functions.
1393 (c_language_defn, cplus_language_defn, asm_language_defn): Call
1394 c_preprocess_and_parse, instead of c_parse.
1395 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
1396 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
1398 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
1400 * sh-tdep.c (gdb_print_insn_sh64): Delete.
1401 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
1402 (sh_gdbarch_init): Always use gdb_print_insn_sh.
1404 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
1406 * NEWS: Add section for multi-arched targets. Add v850 to that section.
1408 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
1410 * Makefile.in (sh_tdep_h): Define and use.
1411 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
1412 register enum): Move to...
1413 * * sh-tdep.h: ...here.
1414 * sh-tdep.c: Include sh-tdep.h.
1415 * sh3-rom.c: Likewise.
1416 * shnbsd-tdep.c: Likewise.
1418 2002-05-16 Michael Snyder <msnyder@redhat.com>
1420 * arm-tdep.c: Spelling fix in comment.
1422 2002-05-16 Jim Blandy <jimb@redhat.com>
1424 Add commands for manually expanding macros and showing their
1426 * macrocmd.c, macroscope.c, macroscope.h: New files.
1427 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
1428 (macroscope_h): New variable.
1429 (HFILES_NO_SRCDIR): Add macroscope.h.
1430 (COMMON_OBS): Add macrocmd.o, macroscope.o.
1431 (macroscope.o, macrocmd.o): New rules.
1433 Teach the Dwarf 2 reader to read macro information.
1434 * dwarf2read.c: #include "macrotab.h".
1435 (dwarf_macinfo_buffer): New variable.
1436 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
1438 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
1439 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
1440 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
1441 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
1442 dwarf2_macro_spaces_in_definition): New complaints.
1443 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
1444 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
1445 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
1446 the partial symbol table.
1447 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
1448 from what's recorded in the partial symbol table.
1449 (read_file_scope): If the compilation unit has a
1450 `DW_AT_macro_info' attribute, read its macro information.
1451 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
1453 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1456 * ser-tcp.c: Don't include <netinet/udp.h>.
1458 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
1460 * MAINTAINERS: Update my email address.
1462 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
1464 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
1465 include file of the same name.
1467 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1469 * configure.tgt: Mark v850 as multi-arched.
1470 * config/v850/tm-v850.h: Remove file.
1471 * config/v850/v850.mt: Eliminate TM_FILE.
1473 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1475 * v850-tdep.c: Full multi-arch.
1476 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
1477 Define GDB_MULTI_ARCH to 2.
1479 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
1481 * p-exp.y (current_type): New static variable.
1482 Carries the type of the expression at the position that is parsed.
1483 (push_current_type, pop_current_type): Two new functions. Used
1484 to store/restore current_type in expression on specific tokens.
1485 (search_field): New static variable. Set to one after parsing a point
1486 as at that point only a FIELDNAME token should be searched.
1487 (FIELDNAME): New token. After a point only a token belonging to
1488 current_type type definition is allowed.
1489 (all over token rules): reset and change current_type according
1491 (exp '[' rule): insert implicit array index field if
1492 exp is a pascal string type.
1494 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1496 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
1497 frame info. Use frame_info's saved_regs instead of matching member
1498 in extra_frame_info throughout.
1499 (v850_frame_init_saved_regs): New function.
1500 (v850_init_extra_frame_info): Move most functionality into
1501 v850_frame_init_saved_regs().
1502 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
1503 (v850_frame_find_saved_regs): Remove declaration.
1504 (FRAME_FIND_SAVED_REGS): Remove definition.
1505 (v850_frame_init_saved_regs): Add declaration.
1506 (FRAME_INIT_SAVED_REGS): Add definition.
1508 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
1510 * v850-tdep.c: Begin multi-arch'ing v850.
1511 (v850_target_architecture_hook): Remove function.
1512 (v850_gdbarch_init): New function. Add code previously in
1513 v850_target_architecture_hook().
1514 (_initialize_v850_tdep): Don't set target_architecture_hook.
1515 Call register_gdbarch_init() instead.
1517 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
1519 * gdbtypes.h (struct cplus_struct_type): Remove args field.
1520 * hpread.c (hpread_read_struct_type): Remove assignments to args.
1521 (fixup_class_method_type): Likewise.
1523 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
1525 From Martin Pool <mbp@samba.org>:
1526 * gdbserver/server.c (gdbserver_usage): New function.
1529 2002-05-15 Jim Blandy <jimb@redhat.com>
1531 Add macro structures to GDB's symbol tables. Nobody puts anything
1533 * symtab.h (struct symtab): New member: `macro_table'.
1534 * buildsym.h (pending_macros): New global variable.
1535 * buildsym.c: #include "macrotab.h".
1536 (buildsym_init): Initialize `pending_macros'.
1537 (end_symtab): If we found macro information while reading a CU's
1538 debugging info, do build a symtab structure for it. Make the
1539 symtab point to the macro information, and clear the
1540 `pending_macros' pointer which held it while we were reading the
1542 (really_free_pendings): Free any pending macro table.
1543 * objfiles.h (struct objfile): New member: `macro_cache'.
1544 * objfiles.c (allocate_objfile): Set allocate and free functions
1545 for the macro cache's objstack.
1546 (free_objfile): Empty the macro cache's obstack.
1547 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
1548 set new allocate and free functions for it.
1549 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
1550 free functions for the macro cache's objstack. (Why is this
1551 function building its own objfile?)
1552 * symmisc.c (print_objfile_statistics): Print statistics on the
1554 * Makefile.in: Note that buildsym.o depends on macrotab.h.
1556 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1558 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
1559 (REGISTER_U_ADDR): Delete definition.
1560 (arm_register_u_addr): Delete declaration.
1562 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
1564 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
1565 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
1567 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1569 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
1572 2002-05-14 Andrew Cagney <ac131313@redhat.com>
1574 * regcache.c (register_valid): Revise comments refering to "Not
1575 available" and "unavailable".
1576 * frame.c (frame_register_read): Ditto.
1577 * findvar.c (value_of_register): Ditto.
1579 2002-05-15 Andrew Cagney <cagney@redhat.com>
1581 * Makefile.in (remote_sim_h): Replace remote-sim_h.
1582 (remote-sim.o): Update dependencies.
1583 (d10v-tdep.o): Specify dependencies.
1584 (sim_d10v_h): Define.
1586 2002-05-14 Jim Blandy <jimb@redhat.com>
1588 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
1589 * macrotab.c (macro_lookup_inclusion, find_definition,
1590 new_macro_table): Same.
1592 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
1593 not `! strcmp ()'. This is a dubious improvement.
1594 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
1596 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
1597 although it's not necessary, to avoid a warning.
1599 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1601 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
1602 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
1603 TYPE_INSTANCE_FLAGS.
1604 (struct main_type): New.
1605 (struct type): Move most members to struct main_type. Change
1606 cv_type and as_type to new type_chain member. Add instance_flags.
1607 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
1608 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
1609 (finish_cv_type): Remove prototype.
1610 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
1612 (alloc_type_instance): New function.
1613 (smash_type): New function.
1614 (make_pointer_type, make_reference_type, make_function_type)
1615 (smash_to_member_type, smash_to_method_type): Call smash_type.
1616 (make_qualified_type): New function.
1617 (make_type_with_address_space): Call make_qualified_type.
1618 (make_cv_type): Likewise.
1619 (finish_cv_type): Remove unnecessary function.
1620 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
1621 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
1622 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
1623 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
1624 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
1625 * hpread.c (hpread_read_struct_type): Likewise.
1626 * stabsread.c (read_struct_type): Likewise.
1628 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
1630 * configure.tgt: Add a catch all sh* target, for cases like
1631 sh[2,3,4]-elf and sh-hms.
1633 2002-05-14 Keith Seitz <keiths@redhat.com>
1635 * event-loop.c (create_file_handler): Don't do anything but
1636 update data when we are given a fd which we are already
1639 2002-05-14 Michal Ludvig <mludvig@suse.cz>
1641 * dwarf2cfi.c (context_cpy): Copy registers correctly.
1642 (update_context): Use __func__ in warnings.
1644 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
1646 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
1647 and tcp_close to net_open and net_close.
1648 (net_open): Accept "udp:" and "tcp:" specifications. Connect
1649 using UDP if requested. Don't try to disable Nagle on UDP
1651 * remote.c (remote_serial_open): New function. Warn about UDP.
1652 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
1654 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1656 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
1658 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
1660 * configure.tgt: Remove sh-hms target.
1661 * MAINTAINERS: Don't list sh-hms as a separate target.
1663 2002-05-13 Jim Blandy <jimb@redhat.com>
1665 Add first preprocessor macro-expansion files.
1666 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1667 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1668 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1669 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1670 (COMMON_OBS): Add macrotab.o, macroexp.o.
1671 (macroexp.o, macrotab.o): New rules.
1673 2002-05-13 Andrew Cagney <ac131313@redhat.com>
1675 * config/m88k/tm-m88k.h: Update copyright.
1676 (m88k_target_write_pc): Declare
1677 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
1678 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
1679 (SHIFT_INST_REGS): Update definition.
1680 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
1681 using old definition of TARGET_WRITE_PC.
1682 * regcache.c (generic_target_write_pc): Delete code handling
1684 * gdbarch.sh (NNPC_REGNUM): Delete.
1685 * gdbarch.h, gdbarch.c: Regenerate.
1687 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
1689 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
1692 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
1694 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
1695 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
1696 (gen_address_of, gen_struct_ref, gen_repeat): Use type
1698 * c-typeprint.c (cp_type_print_method_args): Likewise.
1699 (c_type_print_args): Likewise.
1700 * d10v-tdep.c (d10v_push_arguments): Likewise.
1701 (d10v_extract_return_value): Likewise.
1702 * expprint.c (print_subexp): Likewise.
1703 * gdbtypes.c (lookup_primitive_typename): Likewise.
1704 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
1705 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
1706 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
1707 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
1708 (TYPE_VECTOR): Likewise.
1709 * hpread.c (hpread_read_struct_type)
1710 (fix_static_member_physnames, fixup_class_method_type)
1711 (hpread_type_lookup): Likewise.
1712 * mdebugread.c (parse_symbol, parse_type): Likewise.
1713 * p-lang.c (is_pascal_string_type): Likewise.
1714 * valops.c (hand_function_call): Likewise.
1715 * x86-64-tdep.c (classify_argument): Likewise.
1717 * hpread.c (hpread_read_function_type)
1718 (hpread_read_doc_function_type): Call replace_type.
1719 * dstread.c (create_new_type): Delete.
1720 (decode_dst_structure, process_dst_function): Call alloc_type.
1721 Use type access macros.
1723 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1725 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
1726 the're not supported by the current architecture.
1727 (i387_fill_fxsave): Likewise.
1729 2002-05-12 Fred Fish <fnf@redhat.com>
1731 * symfile.c (default_symfile_offsets): Arrange for uninitialized
1732 sect_index_xxx members to index the first slot in section_offsets
1733 if all of the section_offsets are zero.
1735 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1737 * configure.tgt (sparc-*openbsd): Remove entry accidentially
1738 checked in with last change.
1740 2002-05-12 Mark Kettenis <kettenis@gnu.org>
1742 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
1743 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
1746 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
1748 * Makefile.in: Update dependencies.
1750 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1752 * language.c (local_hex_string_custom): Simplify. Do not depend
1753 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
1755 * memattr.c (mem_info_command): Replace calls to
1756 longest_local_hex_string and longest_local_hex_string_custom.
1757 * buildsym.c (make_blockvector): Ditto.
1758 * solib.c (info_sharedlibrary_command): Ditto.
1759 * tracepoint.c (tracepoints_info): Ditto.
1760 * symtab.c (print_msymbol_info): Ditto.
1762 * language.c (local_hex_string): Delete.
1763 (local_hex_string_custom): Delete.
1764 (longest_local_hex_string): Rename to local_hex_string.
1765 (longest_local_hex_string_custom): Rename to
1766 local_hex_string_custom.
1767 * language.h (local_hex_string): Change parameter type to LONGEST.
1768 (local_hex_string_custom): Ditto.
1769 (longest_local_hex_string): Delete declaration.
1770 (longest_local_hex_string_custom): Ditto.
1772 * solib.c: Update copyright.
1773 * memattr.c: Update copyright.
1775 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1777 * arch-utils.h (legacy_register_to_value): Declare.
1778 (legacy_value_to_register): Declare.
1779 (legacy_convert_register_p): Declare.
1780 * arch-utils.c (legacy_register_to_value): New function.
1781 (legacy_value_to_register): New function.
1782 (legacy_convert_register_p): New function.
1784 * gdbarch.sh (REGISTER_TO_VALUE): Define.
1785 (VALUE_TO_REGISTER): Define.
1786 (CONVERT_REGISTER_P): Define.
1787 * gdbarch.h, gdbarch.c: Regenerate.
1789 * valops.c (value_assign): Use CONVERT_REGISTER_P and
1791 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
1794 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
1795 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1797 * Makefile.in: Update dependencies for valops.c.
1798 * valops.c: Include "gdb_assert.h".
1799 (typecmp): Skip THIS parameter to methods.
1800 (find_method_list): Remove static_memfuncp argument,
1801 update callers. Check for stub methods.
1802 (find_value_oload_method_list): Don't set *static_memfuncp.
1803 (find_overload_match): Don't check for stub methods. Assert
1804 that methods are not stubbed. Handle static methods.
1805 (value_find_oload_method_list): Remove static_memfuncp argument.
1806 * gdbtypes.c (check_stub_method): Do not add THIS pointer
1807 to the argument list for static stub methods.
1808 * value.h (value_find_oload_method_list): Update prototype.
1810 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1812 * arch-utils.h (generic_register_size): Declare.
1813 (generic_register_raw_size, generic_register_virtual_size): Delete
1815 * arch-utils.c (generic_register_raw_size): Delete.
1816 (generic_register_size): New function.
1817 (generic_register_virtual_size): Delete.
1819 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
1820 default generic_register_size.
1821 * gdbarch.h, gdbarch.c: Re-generate.
1823 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
1824 register_virtual_size.
1825 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1828 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1830 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
1831 * gdbarch.h, gdbarch.c: Regenerate.
1832 * gnu-v3-abi.c: Update copyright.
1833 (vtable_address_point_offset): Update.
1834 (gnuv3_rtti_type): Update.
1835 (gnuv3_baseclass_offset): Update.
1836 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
1837 (init_fetch_link_map_offsets): Update.
1838 * remote.c (get_remote_state): Update.
1840 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1842 * TODO: Remove value_headof/value_from_vtable_info comment.
1843 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
1844 * values.c (value_headof, value_from_vtable_info): Delete.
1845 * value.h (value_from_vtable_info): Delete prototype.
1847 2002-05-11 Andrew Cagney <ac131313@redhat.com>
1849 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
1850 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
1852 (gdb_assert_h): Define.
1853 (gdb_wait_h): Define.
1854 (gdb_regex_h): Define.
1856 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
1858 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1859 * linespec.c (find_methods): Handle GCC 3.x template constructors.
1861 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1863 * nbsd-tdep.c: Fix comment.
1865 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1867 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
1868 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
1869 (nbsd-tdep.o): New dependency list.
1870 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
1872 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
1873 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
1874 * nbsd-tdep.c: New file.
1875 * nbsd-tdep.h: New file.
1876 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
1878 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
1879 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1880 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1881 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1885 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
1886 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
1887 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
1888 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
1889 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
1890 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
1892 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1894 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
1895 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1896 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
1897 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
1898 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
1899 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
1900 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
1902 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1904 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
1905 fetch_elfcore_registers to...
1906 * i386nbsd-tdep.c: ...here.
1907 (i386nbsd_use_struct_convention): Rename to...
1908 (i386nbsd_aout_use_struct_convention): ...this.
1909 (i386nbsd_supply_reg): New function.
1910 (i386nbsd_fill_reg): New function.
1911 (fetch_core_registers): Use i386nbsd_supply_reg.
1912 (fetch_elfcore_registers): Likewise.
1913 (_initialize_i386nbsd_tdep): New function.
1914 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
1915 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1916 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
1917 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
1918 (i386nbsd_aout_use_struct_convention): ...this.
1920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1922 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
1923 (store_inferior_registers): Use shnbsd_fill_reg.
1924 * shnbsd-tdep.c (sh_nbsd_supply_registers,
1925 sh_nbsd_supply_register): Collapse into...
1926 (shnbsd_supply_reg): ...this.
1927 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
1928 (shnbsd_fill_reg): ...this.
1929 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
1930 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
1931 (fetch_core_registers): Use shnbsd_supply_reg.
1932 (fetch_elfcore_registers): Use shnbsd_supply_reg.
1933 (sh_nbsd_core_fns): Rename to...
1934 (shnbsd_core_fns): ...this.
1935 (sh_nbsd_elfcore_fns): Rename to...
1936 (shnbsd_elfcore_fns): ...this.
1937 (sh_nbsd_init_abi): Rename to...
1938 (shnbsd_init_abi): ...this.
1939 (_initialize_sh_nbsd_tdep): Rename to...
1940 (_initialize_shnbsd_tdep): ...this.
1941 * shnbsd-tdep.h (sh_nbsd_supply_registers,
1942 sh_nbsd_supply_register, sh_nbsd_fill_registers,
1943 sh_nbsd_fill_register): Remove prototypes.
1944 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
1946 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1948 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
1949 (i387-nat.o): Delete dependency list.
1950 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
1951 (x86-64-linux-nat.o): Likewise.
1952 * i387-nat.c: Delete file, moving contents to...
1953 * i387-tdep.c: ...here.
1954 * i387-nat.h: Rename...
1955 * i387-tdep.h: ...to this.
1956 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
1957 * i386-linux-nat.c: Likewise.
1958 * i386bsd-nat.c: Likewise.
1959 * i386gnu-nat.c: Likewise.
1960 * i386nbsd-nat.c: Likewise.
1961 * i386v4-nat.c: Likewise.
1962 * x86-64-linux-nat.c: Likewise.
1963 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
1964 * config/i386/go32.mh (NATDEPFILES): Likewise.
1965 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1966 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
1967 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
1968 * config/i386/linux.mh (NATDEPFILES): Likewise.
1969 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
1970 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1971 * config/i386/obsd.mh (NATDEPFILES): Likewise.
1972 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1974 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1976 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
1977 (alphanbsd-nat.o): Remove dependency list.
1978 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
1979 * alphanbsd-nat.c: Delete. Contents moved to...
1980 * alphanbsd-tdep.c: ...here.
1981 (_initialize_alphanbsd_tdep): Register core functions.
1982 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
1984 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
1986 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
1987 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
1988 (alphanbsd-nat.o): Likewise.
1989 (alphabsd-tdep.o): New dependency list.
1990 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
1991 (fill_gregset): Use alphabsd_fill_reg.
1992 (supply_fpregset): Use alphabsd_supply_fpreg.
1993 (fill_fpregset): Use alphabsd_fill_fpreg.
1994 (fetch_inferior_registers): Use struct reg and struct fpreg
1995 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
1996 and alphabsd_supply_fpreg.
1997 (store_inferior_registers): Use struct reg and struct fpreg
1998 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
1999 and alphabsd_fill_fpreg.
2000 * alphabsd-tdep.c: New file.
2001 * alphabsd-tdep.h: New file.
2002 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
2003 (fetch_elfcore_registers): Use alphabsd_supply_reg and
2004 alphabsd_supply_fpreg.
2005 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
2006 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
2008 2002-05-11 Eric Christopher <echristo@redhat.com>
2010 * mips-tdep.c (mips_double_register_type): Fix thinko.
2011 (mips_single_register_type): Ditto.
2012 * MAINTAINERS: Add self.
2014 2002-05-11 Mark Kettenis <kettenis@gnu.org>
2016 * i387-nat.c (i387_supply_register, i387_fill_fsave,
2017 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
2018 right thing on architectures with different endianness and/or
2021 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
2023 From Christian Limpach <chris@Pin.LU>
2024 * configure.in: Change sed expression which comments out
2025 NATDEPFILES to also comment out continuation lines.
2026 * configure: Regenerate.
2028 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2030 * sh-tdep.c: Clean up code erroneously reintroduced by previous
2033 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2035 * sh-tdep.c: Include correct file.
2037 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2039 New support for sh64-elf (sh5) target.
2041 * configure.tgt: For sh64-elf target, default to sh-elf.
2043 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
2044 (struct gdbarch_tdep): Add new fields for new registers and ABI
2047 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
2048 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
2049 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
2050 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
2051 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
2052 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
2053 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
2054 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
2055 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
2056 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
2057 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
2058 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
2059 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
2060 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
2061 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
2062 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
2063 sh64_get_gdb_regnum, sh64_media_reg_base_num,
2064 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
2065 sign_extend, sh64_nofp_frame_init_saved_regs,
2066 sh64_init_extra_frame_info, sh64_get_saved_register,
2067 sh64_extract_struct_value_address, sh64_pop_frame,
2068 sh64_push_arguments, sh64_extract_return_value,
2069 sh64_store_return_value, sh64_show_media_regs,
2070 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
2071 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
2072 sh_sh64_register_virtual_type,
2073 sh_sh64_register_convert_to_virtual,
2074 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
2075 sh64_register_read, sh64_pseudo_register_write,
2076 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
2077 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
2078 sh64_do_pseudo_register, sh_compact_do_registers_info,
2079 sh64_do_registers_info, sh_gdbarch_init): New functions.
2081 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
2083 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
2085 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
2087 * linespec.c (decode_line_1): Check for a double quote after
2088 a filename correctly.
2090 2002-05-10 Jim Blandy <jimb@redhat.com>
2092 Properly track the size of the current objfile's .debug_line section.
2093 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
2094 (DWARF_LINE_SIZE): New macro.
2095 (dwarf2_build_psymtabs_hard): Record the line section's size in
2096 the partial symbol table.
2097 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
2100 2002-05-10 Petr Sorfa <petrs@caldera.com>
2102 * ia64-tdep.c: Handle breakpoints on L instruction type
2103 in MLX instruction bundle by moving the breakpoint to
2104 the third slot (X instruction type) as L holds only data.
2106 2002-05-10 Kevin Buettner <kevinb@redhat.com>
2108 * dbxread.c (discarding_local_symbols_complaint): New complaint.
2109 (process_one_symbol): Complain about discarding local symbols
2110 due to a misplaced N_LBRAC entry.
2112 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
2114 From Daniel Berlin <dan@cgsoftware.com>
2115 * linespec.c (find_toplevel_char): '<' and '>' also increase and
2116 decrease the depth we are at, in the case of templates.
2118 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2120 * mips-tdep.c (mips_float_register_type): New function.
2121 (mips_double_register_type): New function.
2122 (mips_print_register): Use them.
2123 (do_fp_register_row): Likewise.
2125 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2127 * signals/signals.c (signals): Remove conditional compilation around
2128 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
2129 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
2131 2002-05-09 Michael Snyder <msnyder@redhat.com>
2133 * remote-rdp.c (remote_rdp_can_run): Remove.
2135 2002-05-09 Tom Tromey <tromey@redhat.com>
2137 * jv-valprint.c (java_val_print): Handle `char' as a special case
2140 2002-05-09 Michael Snyder <msnyder@redhat.com>
2142 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
2143 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
2144 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
2145 str r(0123),[sp,#nn].
2146 (arm_skip_prologue): Ditto. Also make disassembly
2147 order-independent by placing it in a loop.
2149 2002-05-06 Michael Snyder <msnyder@redhat.com>
2151 * stabsread.c (read_type): Add recognition for new attribute:
2152 "@V;" means that an array type is actually a vector.
2153 This is analogous to the vector flag that's been added to dwarf2.
2155 2002-05-09 Mark Kettenis <kettenis@gnu.org>
2157 * i386-tdep.h (i386_abi): New enum.
2158 (struct gdbarch_tdep): Replace os_ident member with abi.
2159 (i386_gdbarch_register_os_abi): New prototype.
2160 * i386-tdep.c (i386_abi_names): New array.
2161 (process_note_abi_tag_sections): Removed.
2162 (process_note_sections): New function.
2163 (i386_elf_abi_from_note, i386_elf_abi): New functions.
2164 (struct i386_abi_handler): New struct.
2165 (i386_abi_handler_list): New variable.
2166 (i386_gdbarch_register_os_abi): New function.
2167 (i386_gdbarch_init): Adapt for the changes given above.
2169 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
2171 * gregset.h: Say "GNU/Linux".
2173 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
2175 * gdbtypes.c : Add new builtin type for 64 bit vectors.
2176 (build_gdbtypes): Build builtin_type_v2_float.
2177 (_initialize_gdbtypes): Register new builtin type.
2179 2002-05-08 Andrew Cagney <ac131313@redhat.com>
2181 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
2182 (clear_gdbarch_swap): New function.
2183 (initialize_non_multiarch): Call.
2184 (gdbarch_update_p): Before calling init(), swap out and clear the
2185 existing architecture.
2186 * gdbarch.c: Regenerate.
2188 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2190 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
2193 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2195 * sh-nbsd-nat.c: Rename to...
2196 * shnbsd-nat.c: ...this.
2197 * sh-nbsd-tdep.c: Rename to...
2198 * shnbsd-tdep.c: ...this.
2199 * sh-nbsd-tdep.h: Rename to...
2200 * shnbsd-tdep.h: ...this.
2201 * config/sh/nbsd.mh: Use shnbsd-nat.o.
2202 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
2204 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
2206 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
2207 concatenation for command help messages.
2209 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2211 * NEWS: Note new sh*-*-netbsdelf* configuration.
2212 * configure.host: Set gdb_host_cpu to sh for all sh*.
2213 (sh*-*-netbsdelf*): New host.
2214 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
2215 (sh*-*-netbsdelf*): New target.
2216 * sh-nbsd-nat.c: New file.
2217 * sh-nbsd-tdep.c: New file.
2218 * sh-nbsd-tdep.h: New file.
2219 * config/sh/nbsd.mh: New file.
2220 * config/sh/nbsd.mt: New file.
2221 * config/sh/nm-nbsd.h: New file.
2222 * config/sh/tm-nbsd.h: New file.
2224 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
2226 * sh-tdep.c (sh_osabi_names): Declare.
2227 (process_note_abi_tag_sections): New function.
2228 (get_elfosabi): Ditto.
2229 (sh_gdbarch_register_os_abi): Ditto.
2230 (sh_dump_tdep): Ditto.
2231 _initialize_sh_tdep): Use gdbarch_register to register
2232 sh_gdbarch_init and sh_dump_tdep.
2233 * config/sh/tm-sh.h (sh_osabi): Declare.
2234 (gdbarch_tdep): Add sh_osabi and osabi_name members.
2236 2002-05-07 Andrew Cagney <ac131313@redhat.com>
2238 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
2239 (thumb_scan_prologue): Ditto.
2240 (arm_find_callers_reg): Ditto.
2241 (arm_frame_chain): Ditto.
2242 (arm_init_extra_frame_info): Ditto.
2243 (arm_frame_saved_pc): Ditto.
2244 (arm_pop_frame): Ditto.
2245 (arm_push_return_address): New function.
2246 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
2247 call_dummy_location, call_dummy_breakpoint_offset_p,
2248 call_dummy_breakpoint_offset, call_dummy_p,
2249 call_dummy_stack_adjust_p, call_dummy_words,
2250 sizeof_call_dummy_words, call_dummy_start_offset,
2251 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
2252 call_dummy_address, push_return_address and push_dummy_frame for
2253 generic dummy frames.
2255 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
2258 size computation for alloca.
2259 (sh_fp_frame_init_saved_regs): Likewise.
2261 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
2263 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
2264 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
2265 * arm-tdep.c (arm_store_return_value): Use them.
2266 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
2267 * remote-rdp.c (remote_rdp_fetch_register): Use
2268 ARM_MAX_REGISTER_RAW_SIZE.
2269 (remote_rdp_store_register): Likewise.
2271 2002-05-07 Michal Ludvig <mludvig@suse.cz>
2273 * dwarf2cfi.c: Code cleanup, removed unused variables,
2274 added default labels to switch {} statements.
2275 * x86-64-tdep.c: Ditto.
2276 * x86-64-linux-nat.c: Ditto.
2278 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
2280 * solib.h: Protect against multiple inclusion.
2282 2002-05-06 Jim Blandy <jimb@redhat.com>
2284 Add first preprocessor macro-expansion files.
2285 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
2286 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
2287 (splay_tree_h, macroexp_h, macrotab_h): New variable.
2288 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
2289 (COMMON_OBS): Add macrotab.o, macroexp.o.
2290 (macroexp.o, macrotab.o): New rules.
2292 Separate the job of reading the line number info statement program
2293 header (...expialidocious) out into its own function.
2294 * dwarf2read.c (struct line_head, struct filenames, struct
2295 directories): Replace with...
2296 (struct line_header): New structure, containing the full
2297 contents of the statement program header, including the
2298 include directory and file name tables.
2299 (read_file_scope): If we have line number info, instead of just
2300 calling dwarf_decode_lines to do all the work, call
2301 dwarf_decode_line_header first to get a `struct line_header'
2302 containing the data in the statement program header, and then
2303 pass that to dwarf_decode_lines, which will pick up where that
2304 left off. Be sure to clean up the `struct line_header' object.
2305 (dwarf_decode_line_header, free_line_header, add_include_dir,
2306 add_file_name): New functions.
2307 (dwarf_decode_lines): Move all the code to read the statement
2308 program header into dwarf_decode_line_header. Take the line
2309 header it built as the first argument, instead of the offset to
2310 the compilation unit's line number info. Use the new `struct
2311 line_header' type instead of the old structures. No need to do
2312 cleanups here now, since we don't allocate anything.
2313 (dwarf2_statement_list_fits_in_line_number_section,
2314 dwarf2_line_header_too_long): New complaints.
2316 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
2318 * gdbtypes.c (init_vector_type): New function.
2319 (build_builtin_type_vec128): Simplify the representation of SIMD
2321 (build_gdbtypes): Initialize new builtin vector types.
2322 (_initialize_gdbtypes): Register new vector types with gdbarch.
2323 (builtin_type_v4_float, builtin_type_v4_int32,
2324 builtin_type_v8_int16, builtin_type_v16_int8,
2325 builtin_type_v2_int32, builtin_type_v4_int16,
2326 builtin_type_v8_int8): New (renamed) SIMD types.
2328 2002-05-06 Mark Kettenis <kettenis@gnu.org>
2330 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
2331 (i387_fill_fxsave): Likewise.
2333 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
2335 * alpha-tdep.c (alpha_extract_return_value): Don't use
2336 non-constant array size in prototype.
2338 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2340 From Brian Taylor <briant at model dot com>:
2341 * ui-out.c (ui_out_field_core_addr): Use the function
2342 longest_local_hex_string_custom'to format addresses > 32 bits
2345 * ui-out.c (ui_out_field_core_addr): Update comment.
2347 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2349 * stack.c (select_and_print_frame): Make static. Delete the
2351 (func_command): Update call.
2352 (select_frame_command): Delete code computing the frame level.
2353 * frame.h (select_and_print_frame): Delete declaration.
2355 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2357 * sparc-tdep.c (sparc_get_saved_register): Comment why
2358 get_prev_frame call is safe.
2360 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2362 * frame.h (select_frame): Delete level parameter.
2363 * stack.c (select_frame): Update. Use frame_relative_level to
2364 obtain the frame's level.
2365 (select_and_print_frame): Update call.
2366 (select_frame_command): Ditto.
2367 (up_silently_base): Ditto.
2368 (down_silently_base): Ditto.
2369 * ocd.c (ocd_start_remote): Ditto.
2370 * remote-rdp.c (remote_rdp_open): Ditto.
2371 * remote-mips.c (mips_initialize): Ditto.
2372 (common_open): Ditto.
2373 * remote-e7000.c (e7000_start_remote): Ditto.
2374 * m3-nat.c (select_thread): Ditto.
2375 * hppa-tdep.c (child_get_current_exception_event): Ditto.
2376 (child_get_current_exception_event): Ditto.
2377 * varobj.c (varobj_create): Ditto.
2378 (varobj_update): Ditto.
2379 (c_value_of_root): Ditto.
2380 * tracepoint.c (finish_tfind_command): Ditto.
2381 * corelow.c (core_open): Ditto.
2382 * arch-utils.c (generic_prepare_to_proceed): Ditto.
2383 * thread.c (info_threads_command): Ditto.
2384 (switch_to_thread): Ditto.
2385 * infrun.c (normal_stop): Ditto.
2386 (restore_selected_frame): Ditto.
2387 (restore_inferior_status): Ditto.
2388 * breakpoint.c (insert_breakpoints): Ditto.
2389 (watchpoint_check): Ditto.
2390 (bpstat_stop_status): Ditto.
2391 (do_enable_breakpoint): Ditto.
2392 * blockframe.c (flush_cached_frames): Ditto.
2393 (reinit_frame_cache): Ditto.
2395 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2397 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
2400 2002-05-04 Jim Blandy <jimb@redhat.com>
2402 * gdbtypes.c (replace_type): Doc fix.
2404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2406 * valprint.c (strcat_longest): Delete commented out function.
2409 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2411 * MAINTAINERS: Mark a29k as deleted.
2412 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
2413 Move new configurations to the top.
2414 * configure.tgt: Remove a29k.
2415 * config/a29k/tm-vx29k.h: Delete.
2416 * config/a29k/vx29k.mt: Delete.
2417 * config/a29k/tm-a29k.h: Delete.
2418 * config/a29k/a29k-udi.mt: Delete.
2419 * config/a29k/a29k.mt: Delete.
2420 * a29k-tdep.c: Delete.
2421 * remote-udi.c: Delete.
2422 * remote-mm.c: Delete.
2423 * remote-eb.c: Delete.
2424 * remote-adapt.c: Delete.
2425 * Makefile.in: Remove obsolete code.
2426 * gdbserver/Makefile.in: Ditto.
2427 * config/s390/s390x.mt: Ditto.
2428 * config/s390/s390.mt: Ditto.
2429 * config/sparc/sparclynx.mh: Ditto.
2430 * config/sparc/linux.mh: Ditto.
2431 * config/pa/hppaosf.mh: Ditto.
2432 * config/pa/hppabsd.mh: Ditto.
2433 * config/ns32k/nbsd.mt: Ditto.
2434 * config/mips/vr5000.mt: Ditto.
2435 * config/m68k/sun3os4.mh: Ditto.
2436 * config/m68k/nbsd.mt: Ditto.
2437 * config/m68k/m68klynx.mh: Ditto.
2438 * config/m32r/m32r.mt: Ditto.
2439 * config/i386/x86-64linux.mt: Ditto.
2440 * config/i386/nbsdelf.mt: Ditto.
2441 * config/i386/nbsd.mt: Ditto.
2442 * config/i386/i386lynx.mh: Ditto.
2444 2002-05-04 Andrew Cagney <ac131313@redhat.com>
2446 * target.c (debug_print_register): New function. Handle oversize
2448 (debug_to_fetch_registers): Call.
2449 (debug_to_store_registers): Call.
2451 2002-05-03 Jim Blandy <jimb@redhat.com>
2453 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
2454 (read_type): Doc fix.
2455 * gdbtypes.c (replace_type): Doc fix.
2457 * stabsread.c (multiply_defined_struct): New complaint.
2458 (read_struct_type): If the type we were passed isn't empty, or
2459 incomplete, don't read the new struct type into it; complain,
2460 and return the original type unchanged. Take a new `type_code'
2461 argument, which is the type code for the new type.
2462 (read_type): Rather than storing the type's type code here, pass
2463 it as an argument to read_struct_type, and let that take care of
2464 storing it. That way, we don't overwrite the original type code,
2465 so read_struct_type can use it to decide whether we're overwriting
2466 something we shouldn't.
2467 (complain_about_struct_wipeout): New function.
2469 2002-05-03 Andrew Cagney <ac131313@redhat.com>
2471 * gdbarch.sh: Assert that gdbarch is non-NULL.
2472 * gdbarch.c: Regenerate.
2474 2002-05-03 Jason Merrill <jason@redhat.com>
2476 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
2479 2002-05-03 Michal Ludvig <mludvig@suse.cz>
2481 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
2482 (x86_64_dwarf2gdb_regno_map_length),
2483 (x86_64_dwarf2_reg_to_regnum): Added.
2484 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
2485 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
2486 (_initialize_x86_64_tdep): Synced with the change above.
2487 (x86_64_skip_prologue): Reformulated message.
2489 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
2491 * f-exp.y: Also use new prev_lexptr variable
2492 to improve error reporting. Based on Michael Snyder
2493 2002-04-24 dated patch to c-exp.y.
2494 * jv-exp.y: Likewise.
2495 * m2-exp.y: Likewise.
2497 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
2499 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
2500 we are dealing with vectors.
2502 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2504 * config/m68k/tm-nbsd.h: Obvious fix,
2505 correct machine name.
2507 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2509 * p-typeprint.c (pascal_type_print_base): Add support
2510 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
2512 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2514 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
2515 for fondamental pascal 'char' type.
2517 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
2519 * p-lang.h (is_pascal_string_type): Declaration changed,
2520 new sixth argument of type char ** added.
2521 * p-lang.c (is_pascal_string_type): Implementation
2522 changed. Args length_pos, length_size, string_pos, char_size
2523 can now be NULL. New argument arrayname set to the field
2524 name of the char array. Return value set to char array
2525 field index plus one.
2526 * p-valprint.c (pascal_val_print): Adapt to new declaration of
2527 is_pascal_string_type function.
2529 2002-05-02 Andrew Cagney <cagney@redhat.com>
2531 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
2532 <cagney@redhat.com> change.
2533 * gdbarch.c: Regenerate.
2535 2002-05-02 Andrew Cagney <cagney@redhat.com>
2537 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
2538 before probing for a new one. Detect errorenous gdbarch_init
2540 * gdbarch.c: Regenerate.
2542 2002-05-01 Andrew Cagney <cagney@redhat.com>
2544 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
2545 * config/mcore/tm-mcore.h: Ditto. Update copyright.
2546 * config/v850/tm-v850.h: Ditto. Update copyright.
2548 2002-04-30 Andrew Cagney <ac131313@redhat.com>
2550 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
2553 2002-04-30 Michael Snyder <msnyder@redhat.com>
2555 * arm-tdep.c: Whitespace clean-ups.
2556 (arm_skip_prologue): Fix thinko; two lines
2557 should have been removed as part of 4/24 change.
2559 2002-04-30 Kevin Buettner <kevinb@redhat.com>
2561 * rs6000-tdep.c: Added comment describing how fpscr register
2562 numbers were chosen.
2564 2002-04-30 Michael Snyder <msnyder@redhat.com>
2566 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
2568 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2570 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
2571 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
2572 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
2574 2002-04-29 Kevin Buettner <kevinb@redhat.com>
2576 From Louis Hamilton <hamilton@redhat.com>:
2577 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
2578 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
2579 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
2580 not bfd-private xcoff data, to determine wordsize.
2581 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
2583 2002-04-29 Andrew Cagney <ac131313@redhat.com>
2585 GDB 5.2 released from 5.2 branch.
2587 2002-04-29 Michal Ludvig <mludvig@suse.cz>
2589 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
2590 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
2591 (x86_64_register_info_table): Added comments with register numbers.
2593 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
2595 * rs6000-tdep.c (rs6000_extract_return_value,
2596 rs6000_store_return_value): Handle returning vectors.
2597 (rs6000_gdbarch_init): Use
2598 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
2599 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2601 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
2603 (ppc_sysv_abi_push_arguments): Handle vector parameters.
2604 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
2606 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2608 * hpread.c (hpread_psymtab_to_symtab_1,
2609 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
2610 with fprintf_unfiltered (gdb_stderr,...).
2612 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2614 * remote-array.c (printf_monitor, write_monitor,
2615 array_insert_breakpoint, array_remove_breakpoint ):
2616 Replace fprintf (stderr,...
2617 with fprintf_unfiltered (gdb_stderr,....
2618 * remote-es.c: Likewise.
2619 * remote-os9k.c: Likewise.
2620 * remote-st.c: Likewise.
2622 2002-04-28 Andreas Schwab <schwab@suse.de>
2624 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
2625 linux-proc.o and gcore.o.
2627 2002-04-26 Michal Ludvig <mludvig@suse.cz>
2629 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
2630 code without frame pointers.
2632 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2634 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
2637 2002-04-26 Ben Elliston <bje@redhat.com>
2639 * target.c (do_xfer_memory): Correct reference to the new option
2640 "trust-readonly-sections".
2642 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
2644 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
2645 * gdbtypes.c (recursive_dump_type): Output the vector flag.
2646 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
2648 (read_array_type): Record the fact that this array type is really a
2649 vector (i.e. are passed in by value).
2651 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
2653 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
2654 * alpha-tdep.c (alpha_sigcontext_addr): New function.
2655 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
2656 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
2657 * alpha-linux-tdep.c: Include frame.h.
2658 (alpha_linux_sigcontext_addr): New function.
2659 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
2660 alpha_linux_sigcontext_addr.
2661 * alpha-osf1-tdep.c: Include gdbcore.h.
2662 (alpha_osf1_sigcontext_addr): New function.
2663 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
2664 alpha_osf1_sigcontext_addr.
2665 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
2666 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
2668 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2670 * stack.c (selected_frame_level):
2671 (select_frame): Do not set selected_frame_level.
2672 * frame.h (selected_frame_level): Delete declaration.
2674 2002-04-26 Andrew Cagney <ac131313@redhat.com>
2676 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
2677 convert_from_func_ptr-addr when AIX / PowerOpen.
2679 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2681 * valops.c (hand_function_call): Call
2682 generic_save_call_dummy_addr.
2683 * frame.h (generic_save_call_dummy_addr): Declare.
2684 * blockframe.c (struct dummy_frame): Add fields call_lo and
2686 (generic_find_dummy_frame): Check for PC in range call_lo to
2687 call_hi instead of entry_point_address.
2688 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
2689 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
2690 (generic_save_call_dummy_addr): New function.
2692 2002-04-24 David S. Miller <davem@redhat.com>
2694 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
2695 sparc_skip_prologue.
2696 (sparc_skip_prologue): Kill frameless_p arg, and use line number
2697 information to find prologue when possible.
2698 (sparc_prologue_frameless_p): Call examine_prologue directly.
2699 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
2700 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
2702 (SKIP_PROLOGUE): Likewise.
2704 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2706 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
2707 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
2708 indicate that the condition it was testing is always true.
2709 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
2710 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2711 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
2713 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2715 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
2716 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
2717 tdep->jb_pc and tdep->jb_elt_size.
2718 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
2719 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
2720 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
2721 * alpha-nat.c (get_longjmp_target): Remove.
2722 (JB_ELEMENT_SIZE): Ditto.
2724 * alpha-tdep.c (alpha_get_longjmp_target): New function.
2725 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
2726 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
2727 to alpha_get_longjmp_target.
2728 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
2729 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
2730 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
2732 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2734 * README: Update to GDB 5.2.
2736 2002-04-25 Andrew Cagney <ac131313@redhat.com>
2738 * gdbarch.sh (LC_ALL): Set to `c'.
2740 2002-04-25 Theodore A. Roth <troth@verinet.com>
2742 * avr-tdep.c: Ran through gdb_indent.sh.
2744 2002-04-25 Theodore A. Roth <troth@verinet.com>
2746 * MAINTAINERS: Add myself as AVR maintainer.
2747 * NEWS: Note new target avr.
2749 2002-04-25 Theodore A. Roth <troth@verinet.com>
2751 * Makefile.in: Add support for AVR target.
2752 * configure.tgt: Add support for AVR target.
2753 * avr-tdep.c: New file
2754 * config/avr/avr.mt: New file.
2756 2002-04-25 Theodore A. Roth <troth@verinet.com>
2758 * MAINTAINERS: Add myself to write-after-approval.
2760 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2762 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
2763 with fprintf_unfiltered (gdb_stderr,....
2765 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2768 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
2770 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
2772 * p-exp.y: Also use new prev_lexptr variable
2773 to improve error reporting. Based on Michael Snyder
2774 2002-04-24 dated patch to c-exp.y.
2776 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2778 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
2779 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
2780 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
2782 * config/alpha/tm-alpha.h: Remove forward decls of struct type
2784 (FUNCTION_START_OFFSET): Remove.
2785 (BREAKPOINT): Ditto.
2787 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2789 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
2792 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2794 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
2795 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
2796 alpha_linux_pc_in_sigtramp.
2797 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
2798 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
2799 alpha_osf1_pc_in_sigtramp.
2800 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
2801 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
2802 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2803 alphafbsd_pc_in_sigtramp.
2804 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
2805 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2806 alphanbsd_pc_in_sigtramp.
2807 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
2808 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
2810 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2812 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
2814 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2816 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
2818 (alphanbsd-nat.o): New dependency list.
2819 (alphanbsd-tdep.o): Ditto.
2820 * NEWS: Note new native NetBSD/alpha configuration.
2821 * alphanbsd-nat.c: New file.
2822 * alphanbsd-tdep.c: Ditto.
2823 * configure.host (alpha*-*-netbsd*): New host.
2824 * configure.tgt (alpha*-*-netbsd*): New target.
2825 * config/alpha/nbsd.mh: New file.
2826 * config/alpha/nbsd.mt: Ditto.
2827 * config/alpha/nm-nbsd.h: Ditto.
2828 * config/alpha/tm-nbsd.h: Ditto.
2830 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2832 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
2833 (alpha-osf1-tdep.o): New dependency list.
2834 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
2835 and skip_sigtramp_frame members.
2836 * alpha-linux-tdep.c: Include gdbcore.h.
2837 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
2838 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
2839 * alpha-osf1-tdep.c: New file.
2840 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
2842 (alpha_frame_past_sigtramp_frame): New function.
2843 (alpha_dynamic_sigtramp_offset): Ditto.
2844 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
2845 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
2846 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
2847 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
2848 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
2849 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
2850 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
2851 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
2852 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
2853 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
2854 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
2855 to find_solib_trampoline_target.
2856 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
2857 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
2858 (SKIP_TRAMPOLINE_CODE): Remove.
2859 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2860 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2861 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2862 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2863 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
2864 (PROC_SIGTRAMP_MAGIC): Ditto.
2865 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2866 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2867 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2868 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2869 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2871 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
2873 * NEWS: Note that Alpha targets are now multi-arch.
2875 2002-04-24 Michael Snyder <msnyder@redhat.com>
2877 * parser-defs.h (prev_lexptr): New external variable.
2878 * parse.c (parse_exp_1): Set prev_lexptr to null before
2879 calling the language-specific parser.
2880 * c-exp.y (yylex): Set prev_lexptr to start of current token.
2881 (yyerror): Use prev_lexptr in error reporting.
2883 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
2885 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
2886 * gregset.h: If FILL_FPXREGSET is defined, provide
2887 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
2888 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
2889 is defined, call fill_fpxregset.
2891 2002-04-24 Roland McGrath <roland@frob.com>
2893 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
2894 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
2895 (supply_gregset, supply_fpregset): New functions.
2897 * gnu-nat.c (gnu_find_memory_regions): New function.
2898 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
2899 (gnu_xfer_memory): Add a cast.
2901 2002-04-24 Michael Snyder <msnyder@redhat.com>
2903 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
2904 loop. Add handling for "str lr, [sp, #-4]!" and for saves
2905 of argument regs ("str r(0123), [r11, #-nn"]).
2906 (arm_skip_prologue): Better handling for frameless functions.
2907 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
2908 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
2910 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
2912 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
2913 NUM_PSEUDO_REGS can be used.
2915 2002-04-24 Andrew Cagney <ac131313@redhat.com>
2917 * arch-utils.h: Update copyright.
2919 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
2920 * gdbarch.h, gdbarch.c: Re-generate.
2922 * inferior.h (IN_SIGTRAMP): Delete definition.
2923 * arch-utils.c (legacy_pc_in_sigtramp): New function.
2924 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
2926 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
2927 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
2928 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
2929 (find_proc_framesize): Ditto.
2930 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
2931 (alpha_init_extra_frame_info): Ditto.
2932 * infrun.c (handle_inferior_event): Ditto.
2933 (handle_inferior_event): Ditto.
2934 (check_sigtramp2): Ditto.
2935 * blockframe.c (create_new_frame): Ditto.
2936 (get_prev_frame): Ditto.
2937 * ppc-linux-tdep.c: Update comments.
2938 * i386-linux-tdep.c: Update comments.
2939 * breakpoint.c (bpstat_what): Update comment.
2941 2002-04-24 Michal Ludvig <mludvig@suse.cz>
2943 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
2944 (regsets_store_inferior_registers): Removed cast to int from
2946 * gdbserver/regcache.h: Added declaration of struct inferior_info.
2948 2002-04-24 David S. Miller <davem@redhat.com>
2950 * i960-tdep.c (register_in_window_p): New function.
2951 (i960_find_saved_register): Use it instead of
2952 REGISTER_IN_WINDOW_P.
2953 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
2955 * symtab.h (find_stab_function_addr): Kill extern.
2956 * minsyms.c (find_stab_function_addr): Remove from here...
2957 * dbxread.c: ... to here, and mark it static.
2959 2002-04-20 David S. Miller <davem@redhat.com>
2961 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
2962 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
2964 2002-04-21 David S. Miller <davem@redhat.com>
2966 * remote-vxsparc.c (vx_read_register): Fix typo, we want
2967 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
2968 (vx_write_register): Likewise.
2970 2002-04-23 J. Brobecker <brobecker@gnat.com>
2972 * source.c (is_regular_file): New function.
2973 (openp): Check wether file to open is a regular file
2974 to avoid opening directories.
2976 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2978 * findvar.c (extract_signed_integer): Cast printf argument
2979 to suppress format warning.
2980 (extract_unsigned_integer): Likewise.
2981 * infcmd.c (registers_info): Likewise.
2982 * top.c (get_prompt_1): Likewise.
2983 * valops.c (value_assign): Likewise.
2984 * valprint.c (print_decimal): Likewise.
2986 2002-04-22 H.J. Lu (hjl@gnu.org)
2988 * c-exp.y (typebase): Support
2990 [long|long long|short] [signed|unsigned] [int|]
2994 signed [long|long long|short] int
2996 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2998 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
3000 * vax-tdep.h: New file.
3001 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
3002 Make several routines static.
3003 (vax_get_saved_register): New function.
3004 (vax_gdbarch_init): New function.
3005 (_initialize_vax_tdep): Register vax_gdbarch_init.
3006 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
3007 Remove macros now under the control of gdbarch.
3009 2002-04-22 Michael Snyder <msnyder@redhat.com>
3011 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
3012 Some whitespace and coding standards tweaks.
3014 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3016 * vax-tdep.c: Include regcache.h.
3017 (vax_call_dummy_words): New.
3018 (sizeof_vax_call_dummy_words): New.
3019 (vax_fix_call_dummy): New function.
3020 (vax_saved_pc_after_call): Ditto.
3021 * config/vax/tm-vax.h: Don't include regcache.h.
3022 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
3023 (CALL_DUMMY): Remove.
3024 (CALL_DUMMY_WORDS): Define.
3025 (SIZEOF_CALL_DUMMY_WORDS): Define.
3026 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
3028 2002-04-18 Michael Snyder <msnyder@redhat.com>
3030 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
3032 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3034 * vax-tdep.c (vax_frame_chain): New function.
3035 (vax_push_dummy_frame): Ditto.
3036 (vax_pop_frame): Ditto.
3037 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
3038 (FRAMELESS_FUNCTION_INVOCATION): Use
3039 generic_frameless_function_invocation_not.
3040 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
3041 (POP_FRAME): Use vax_pop_frame.
3043 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3045 * vax-tdep.c (vax_store_struct_return): New function.
3046 (vax_extract_return_value): Ditto.
3047 (vax_store_return_value): Ditto.
3048 (vax_extract_struct_value_address): Ditto.
3049 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
3050 vax_store_struct_return.
3051 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
3052 (STORE_RETURN_VALUE): Use vax_store_return_value.
3053 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
3055 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3057 * vax-tdep.c (vax_frame_saved_pc): New function.
3058 (vax_frame_args_address_correct): Ditto.
3059 (vax_frame_args_address): Ditto.
3060 (vax_frame_locals_address): Ditto.
3061 (vax_frame_num_args): Move code to be in proximity to
3062 other frame-related functions.
3063 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
3064 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
3065 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
3066 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
3067 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
3069 2002-04-22 H.J. Lu (hjl@gnu.org)
3071 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
3074 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3076 * vax-tdep.c (vax_frame_init_saved_regs): New function.
3077 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
3078 (FRAME_INIT_SAVED_REGS): New macro.
3080 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3082 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
3084 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3086 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
3088 (fetch_osf_core_registers): Likewise.
3089 (supply_gregset): Likewise.
3091 2002-04-22 J. Brobecker <brobecker@gnat.com>
3093 * symfile.h (get_section_index): Define.
3094 * symfile.c (get_section_index): New function.
3095 * mdebugread.c (SC_IS_SBSS): New macro.
3096 (SC_IS_BSS): Return true for the scBss storage class only, as
3097 the scSBss storage class refers to the .sbss section.
3098 (parse_partial_symbols): Discard the symbols which associated
3099 section does not exist.
3100 Make sure to use the .sbss section index for symbols which
3101 storage class is scBss, rather than using the .bss section index.
3103 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
3105 * vax-tdep.c: Update copyright years.
3106 (vax_register_name): New function.
3107 (vax_register_byte): Ditto.
3108 (vax_register_raw_size): Ditto.
3109 (vax_register_virtual_size): Ditto.
3110 (vax_register_virtual_type): Ditto.
3111 * config/vax/tm-vax.h: Update copyright years.
3112 (REGISTER_NAMES): Remove.
3113 (REGISTER_NAME): Define.
3114 (REGISTER_BYTE): Use vax_register_byte.
3115 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
3116 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
3117 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
3119 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3121 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
3123 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
3125 2002-04-21 David S. Miller <davem@redhat.com>
3127 * arch-utils.c (generic_prologue_frameless_p): Kill
3128 SKIP_PROLOGUE_FRAMELESS_P code.
3129 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3131 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
3132 * arc-tdep.c (arc_prologue_frameless_p): Implement.
3133 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
3135 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
3136 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
3137 (sparc_gdbarch_init): Pass it to
3138 set_gdbarch_prologue_frameless_p.
3140 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3142 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
3143 (alphabsd-nat.o): New dependency list.
3145 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3147 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
3149 (alpha-linux-tdep.o): New dependency list.
3150 (alphafbsd-tdep.o): Likewise.
3152 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3154 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
3156 * alpha-tdep.c: ...from here.
3157 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
3159 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3161 * config/alpha/tm-alpha.h: Move alpha_software_single_step
3162 prototype from here...
3163 * alpha-tdep.h: ...to here.
3165 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3167 * frame.h (selected_frame_level): Document as deprecated.
3168 (frame_relative_level): Declare.
3169 * stack.c (frame_relative_level): New function.
3170 (selected_frame_level): Document as deprecated.
3171 (select_frame): Do not set the selected_frame_level.
3173 * stack.c (frame_info, record_selected_frame): Update.
3174 (frame_command, current_frame_command): Update.
3175 (up_silently_base, up_command, down_silently_base): Update.
3176 (down_command): Update.
3177 * inflow.c (kill_command): Update.
3178 * tracepoint.c (finish_tfind_command): Update.
3179 * corelow.c (core_open): Update.
3180 * thread.c (info_threads_command): Update.
3181 (do_captured_thread_select): Update.
3182 * infcmd.c (finish_command): Update.
3183 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
3185 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3187 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
3189 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3191 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
3194 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3196 * alphafbsd-tdep.c: Update copyright years. Include
3198 (alphafbsd_use_struct_convention): Make static.
3199 (alphafbsd_init_abi): New function.
3200 (_initialize_alphafbsd_tdep): New function.
3201 * config/alpha/tm-fbsd.h: Update copyright years.
3202 (USE_STRUCT_CONVENTION): Remove.
3204 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3206 * alpha-tdep.c (alpha_abi_handler): New structure to describe
3207 an Alpha ABI variant.
3208 (alpha_abi_handler_list): Declare.
3209 (alpha_gdbarch_register_os_abi): New function.
3210 (alpha_gdbarch_init): Give registered ABI variant handlers a
3211 chance to tweak the gdbarch once we have set up defaults.
3212 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
3214 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3216 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
3217 to standard_coerce_float_to_double.
3218 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3220 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3222 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
3223 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
3224 from gdbarch_tdep rather than a constant.
3225 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
3226 the default text address for all Alpha Unix ABIs.
3227 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
3228 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
3230 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
3232 * alpha-tdep.h: New file. Includes several Alpha target constants
3234 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
3235 let gdbarch deal with.
3236 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
3237 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
3239 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
3240 Alpha target register names.
3241 * alphabsd-nat.c: Likewise.
3242 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
3243 Alpha target register names. Make serveral routines static.
3244 (alpha_get_saved_register): New function.
3245 (alpha_abi_names): New.
3246 (process_note_abi_tag_sections): New function.
3247 (get_elfosabi): New function.
3248 (alpha_gdbarch_init): New function.
3249 (alpha_dump_tdep): New function.
3250 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
3252 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3254 * frame.c (find_saved_register): Delete #ifdef
3255 HAVE_REGISTER_WINDOWS code.
3256 * config/sparc/tm-sparc.h: Update comments.
3257 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
3259 2002-04-21 Andrew Cagney <ac131313@redhat.com>
3261 * i960-tdep.c (i960_find_saved_register): New function.
3262 (i960_get_saved_register): New function.
3263 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
3264 (i960_get_saved_register): Declare.
3265 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
3267 2002-04-20 David S. Miller <davem@redhat.com>
3269 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
3271 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3273 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
3274 instead of NUM_PSEUDO_REGS.
3276 2002-04-20 David S. Miller <davem@redhat.com>
3278 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
3279 GDB_MULTI_ARCH_PARTIAL
3280 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
3281 define, let tm-sp64.h do it.
3283 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
3285 * frame.c (find_saved_register): Avoid a NULL pointer
3286 dereference and actually walk the frame list.
3288 2002-04-20 Andrew Cagney <ac131313@redhat.com>
3290 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
3291 sorted in most most-recent-used order. Document.
3292 * gdbarch.h, gdbarch.c: Regenerate.
3294 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3296 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
3297 (add_inferior): Call create_register_cache.
3298 (clear_inferiors): Call free_register_cache.
3299 (inferior_regcache_data, set_inferior_regcache_data): New functions.
3300 * gdbserver/regcache.c (struct inferior_regcache_data): New.
3301 (registers): Remove.
3302 (get_regcache): New function.
3303 (create_register_cache, free_register_cache): New functions.
3304 (set_register_cache): Don't initialize the register cache here.
3305 (registers_to_string, registers_from_string, register_data): Call
3307 * gdbserver/regcache.h: Add prototypes.
3308 * gdbserver/server.h: Likewise.
3310 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
3312 * gdbserver/mem-break.c: New file.
3313 * gdbserver/mem-break.h: New file.
3314 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
3316 * gdbserver/inferiors.c (struct inferior_info): Add target_data
3318 (clear_inferiors): Free target_data member if set.
3319 (inferior_target_data, set_inferior_target_data): New functions.
3320 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
3321 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
3322 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
3323 (struct inferior_linux_data): New.
3324 (linux_create_inferior): Use set_inferior_target_data.
3325 (linux_attach): Likewise. Call add_inferior.
3326 (linux_wait_for_one_inferior): New function.
3327 (linux_wait): Call it.
3328 (linux_write_memory): Add const.
3329 (initialize_low): Call set_breakpoint_data.
3330 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
3332 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
3334 * gdbserver/server.h: Include mem-break.h. Update inferior.c
3336 * gdbserver/target.c (read_inferior_memory)
3337 (write_inferior_memory): New functions.
3338 * gdbserver/target.h (read_inferior_memory)
3339 (write_inferior_memory): Change macros to prototypes.
3340 (struct target_ops): Update comments. Add const to write_memory
3343 2002-04-19 Andrew Cagney <ac131313@redhat.com>
3345 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
3347 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
3348 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
3349 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
3352 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
3355 * gdbtypes.c (init_simd_type): Rewrite using new functions.
3356 (build_builtin_type_vec128): Ditto.
3357 (append_composite_type_field): Fix calculation of type length in
3360 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3362 * config/djgpp/README: Update.
3364 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
3367 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
3369 * alpha-tdep.c (setup_arbitrary_frame): Rename...
3370 (alpha_setup_arbitrary_frame): ...to this.
3371 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
3372 for alpha_setup_arbitrary_frame.
3374 2002-04-18 Andrew Cagney <cagney@redhat.com>
3376 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
3377 * gdbarch.h, gdbarch.c: Regenerate.
3379 * defs.h (breakpoint_from_pc_fn): Delete type definition.
3380 * target.h (memory_breakpoint_from_pc): Update declaration.
3381 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
3383 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
3384 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
3385 * mem-break.c (memory_breakpoint_from_pc): Ditto.
3386 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
3387 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
3388 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
3389 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
3390 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
3391 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
3392 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
3393 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
3394 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
3396 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
3398 * monitor.c (monitor_insert_breakpoint): Ditto.
3399 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
3401 * config/mcore/tm-mcore.h: Update copyright.
3402 * mem-break.c: Ditto.
3403 * xstormy16-tdep.c: Ditto.
3405 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
3407 * p-exp.y: Add precedence rule for '^' token.
3408 This removes the shift/reduce conflicts.
3409 Remove the comment concerning these shift/reduce conflicts.
3411 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
3413 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
3414 (registers_powerpc_nofp): New register set for processors
3415 without floating point unit.
3417 2002-04-18 David S. Miller <davem@redhat.com>
3419 * MAINTAINERS: Add myself to write-after-approval.
3421 2002-04-17 Michael Snyder <msnyder@redhat.com>
3423 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
3425 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3427 * rs6000-tdep.c (frame_initial_stack_address): Use
3428 frame_register_read to read the alloca_reg.
3430 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3432 * frame.c (find_saved_register): Find saved registers in the next
3436 2002-04-17 Andrew Cagney <ac131313@redhat.com>
3438 * gdbarch.sh (LANG): Set to ``c''.
3440 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3442 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
3444 2002-04-15 Andrew Cagney <ac131313@redhat.com>
3446 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
3449 * hpread.c (hpread_get_lntt): Add declaration.
3450 Also fix PR gdb/391.
3452 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3454 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
3455 * aclocal.m4, configure: Re-generate.
3458 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3460 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
3461 instead of tm_print_insn.
3463 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
3465 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
3467 2002-04-14 Andrew Cagney <ac131313@redhat.com>
3469 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
3470 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
3471 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
3473 2002-04-12 Don Howard <dhoward@redhat.com>
3475 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
3476 max_user_call_depth.
3477 (init_cmd_lists): Initialize the new value;
3478 * cli/cli-script.c (execute_user_command): Limit the call depth of
3479 user defined commands. This avoids a core-dump when user commands
3480 are infinitly recursive.
3482 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3484 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
3485 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
3486 from tdep struct instead of DEFAULT_LR_SAVE.
3487 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
3488 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
3489 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
3491 2002-04-12 Michael Snyder <msnyder@redhat.com>
3493 * Remote.c: Spelling fix.
3494 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
3495 If no symbol found for "sbrk", try "_sbrk".
3496 (make_output_phdrs): Use bfd_section_name.
3497 (gcore_copy_callback): Use bfd_section_name.
3498 * eval.c: Indentation fix-ups.
3499 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
3500 in case it gets applied to an address that is already
3501 in the instruction space.
3502 * cli/cli-decode.c (help_list): Allow long lines to wrap.
3503 * symfile.c: Fix indentation, long lines.
3504 * source.c: White space fix-up.
3506 2002-04-12 Andrew Cagney <cagney@redhat.com>
3508 * defs.h (read_relative_register_raw_bytes): Delete declaration.
3509 * frame.c (frame_register_read): New function. Return non-zero on
3511 (read_relative_register_raw_bytes_for_frame): Delete.
3512 (read_relative_register_raw_bytes): Delete.
3513 * frame.h (frame_register_read): Declare.
3514 * d30v-tdep.c: Update Copyright. Use frame_register_read.
3516 * infcmd.c (do_registers_info): Ditto.
3517 * hppa-tdep.c: Ditto.
3518 * rs6000-tdep.c: Ditto.
3519 * h8500-tdep.c: Ditto.
3520 * mips-tdep.c: Ditto.
3521 * h8300-tdep.c: Ditto.
3522 * z8k-tdep.c: Ditto.
3524 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3526 From Jimi X <jimix@watson.ibm.com>:
3527 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
3530 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3532 From Jimi X <jimix@watson.ibm.com>:
3533 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
3536 2002-04-12 Kevin Buettner <kevinb@redhat.com>
3538 From Jimi X <jimix@watson.ibm.com>:
3539 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
3540 register sets for these processor variants.
3542 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
3544 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
3545 registers which are allowed to fail to store.
3546 * gdbserver/linux-low.h (linux_target_ops): Likewise.
3547 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
3548 (ppc_cannot_store_register): FPSCR may not be storable.
3549 * regformats/reg-ppc.dat: Support FPSCR.
3551 2002-04-11 Kevin Buettner <kevinb@redhat.com>
3553 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
3554 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
3555 Add fpscr as an invalid/unfetchable register.
3556 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
3557 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
3558 (fill_fpregset): Add support for register fpscr.
3559 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
3560 (fill_gregset): Account for the fact that register ``mq'' might
3562 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
3563 (registers_power): Add fpscr to register set at slot 71.
3564 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
3565 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
3567 2002-04-11 Michael Snyder <msnyder@redhat.com>
3569 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
3570 * configure: Regenerate.
3571 * config.in: Regenerate.
3572 * acconfig.h: Add define for _SYSCALL32.
3573 * core-sol2.c: Remove #define _SYSCALL32.
3574 * solib-legacy.c: Remove #define _SYSCALL32.
3576 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3578 * stack.c (select_frame): Cleanup internal error message, do not
3581 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3583 * stack.c (select_frame): Check that selected_frame and the
3584 specified level are as expected.
3585 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
3587 * frame.h (struct frame_info): Add field `level'. Update
3589 Work-in-progress PR gdb/464.
3591 2002-04-10 Andrew Cagney <ac131313@redhat.com>
3593 * maint.c (maint_print_section_info): Rename print_section_info.
3594 (print_bfd_section_info, print_objfile_section_info): Update.
3595 * inferior.h (struct gdbarch): Add opaque declaration.
3596 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
3597 * gdbarch.h: Regenerate.
3599 2002-04-10 Michal Ludvig <mludvig@suse.cz>
3601 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
3602 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
3603 (kernel_u_size): Added.
3604 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
3605 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
3607 2002-04-04 Jim Ingham <jingham@apple.com>
3609 * valarith.c (find_size_for_pointer_math): New function, either returns
3610 the size for a pointer's target, returns 1 for void *, or errors for
3612 (value_add, value_sub): use find_size_for_pointer_math.
3614 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3616 * linux-low.c (linux_look_up_symbols): New hook.
3617 (linux_target_ops): Add linux_look_up_symbols.
3618 * remote-utils.c (decode_address): New function.
3619 (look_up_one_symbol): New function.
3620 * server.c (handle_query): Call target look_up_symbols hook.
3621 * server.h (look_up_one_symbol): Add prototype.
3622 * target.h (struct target_ops): Add look_up_symbols hook.
3624 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3626 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
3627 * ChangeLog: Correct paths in last ChangeLog entry.
3629 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3631 * gdbserver/linux-low.h: Remove obsolete prototypes.
3632 (struct linux_target_ops): New.
3633 (extern the_low_target): New.
3634 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
3635 (register_addr): Use the_low_target explicitly.
3636 (fetch_register): Likewise.
3637 (usr_fetch_inferior_registers): Likewise.
3638 (usr_store_inferior_registers): Likewise.
3639 * gdbserver/linux-arm-low.c (num_regs): Remove.
3640 (arm_num_regs): Define.
3641 (arm_regmap): Renamed from regmap, made static.
3642 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
3644 (arm_cannot_store_register): Renamed from cannot_store_register,
3646 (the_low_target): New.
3647 * gdbserver/linux-i386-low.c (num_regs): Remove.
3648 (i386_num_regs): Define.
3649 (i386_regmap): Renamed from regmap, made static.
3650 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
3652 (i386_cannot_store_register): Renamed from cannot_store_register,
3654 (the_low_target): New.
3655 * gdbserver/linux-ia64-low.c (num_regs): Remove.
3656 (ia64_num_regs): Define.
3657 (ia64_regmap): Renamed from regmap, made static.
3658 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
3660 (ia64_cannot_store_register): Renamed from cannot_store_register,
3662 (the_low_target): New.
3663 * gdbserver/linux-m68k-low.c (num_regs): Remove.
3664 (m68k_num_regs): Define.
3665 (m68k_regmap): Renamed from regmap, made static.
3666 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
3668 (m68k_cannot_store_register): Renamed from cannot_store_register,
3670 (the_low_target): New.
3671 * gdbserver/linux-mips-low.c (num_regs): Remove.
3672 (mips_num_regs): Define.
3673 (mips_regmap): Renamed from regmap, made static.
3674 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
3676 (mips_cannot_store_register): Renamed from cannot_store_register,
3678 (the_low_target): New.
3679 * gdbserver/linux-ppc-low.c (num_regs): Remove.
3680 (ppc_num_regs): Define.
3681 (ppc_regmap): Renamed from regmap, made static.
3682 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
3684 (ppc_cannot_store_register): Renamed from cannot_store_register,
3686 (the_low_target): New.
3687 * gdbserver/linux-s390-low.c (num_regs): Remove.
3688 (s390_num_regs): Define.
3689 (s390_regmap): Renamed from regmap, made static.
3690 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
3692 (s390_cannot_store_register): Renamed from cannot_store_register,
3694 (the_low_target): New.
3695 * gdbserver/linux-sh-low.c (num_regs): Remove.
3696 (sh_num_regs): Define.
3697 (sh_regmap): Renamed from regmap, made static.
3698 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
3700 (sh_cannot_store_register): Renamed from cannot_store_register,
3702 (the_low_target): New.
3703 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
3704 (the_low_target): New.
3706 2002-04-09 Andrew Cagney <ac131313@redhat.com>
3708 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
3709 override FP_REGNUM with frame->fp. Update copyright.
3710 * parse.c (num_std_regs, std_regs): Delete.
3711 (target_map_name_to_register): Do not search std_regs. Update
3712 function description.
3713 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
3714 declarations. Update copyright.
3717 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3719 * gdbserver/Makefile.in: Add stamp-h target.
3720 * gdbserver/configure.in: Create stamp-h.
3721 * gdbserver/configure: Regenerated.
3723 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3725 * gdbserver/inferiors.c: New file.
3726 * gdbserver/target.c: New file.
3727 * gdbserver/target.h: New file.
3728 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
3730 * gdbserver/linux-low.c (inferior_pid): New static variable,
3731 moved from server.c.
3732 (linux_create_inferior): Renamed from create_inferior.
3733 Call add_inferior. Return 0 on success instead of a PID.
3734 (linux_attach): Renamed from myattach.
3735 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
3736 (linux_thread_alive): Renamed from mythread_alive.
3737 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
3739 (linux_resume): Renamed from myresume. Add missing ``return 0''.
3740 (regsets_store_inferior_registers): Correct error message.
3741 Add missing ``return 0''.
3742 (linux_fetch_registers): Renamed from fetch_inferior_registers.
3743 (linux_store_registers): Renamed from store_inferior_registers.
3744 (linux_read_memory): Renamed from read_inferior_memory.
3745 (linux_write_memory): Renamed from write_inferior_memory.
3746 (linux_target_ops): New structure.
3747 (initialize_low): Call set_target_ops ().
3748 * gdbserver/remote-utils.c (unhexify): New function.
3749 (hexify): New function.
3750 (input_interrupt): Send signals to ``signal_pid''.
3751 * gdbserver/server.c (inferior_pid): Remove.
3752 (start_inferior): Update create_inferior call.
3753 (attach_inferior): Call add_inferior.
3754 (handle_query): New function.
3755 (main): Call handle_query for `q' packets.
3756 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
3757 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
3759 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3761 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
3763 * gdbserver/configure.in: Check for <string.h>
3764 * gdbserver/configure: Regenerate.
3765 * gdbserver/config.in: Regenerate.
3766 * gdbserver/gdbreplay.c: Include needed system headers.
3767 (remote_open): Remove strchr prototype.
3768 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
3769 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
3770 (supply_register_by_name): Likewise.
3771 (collect_register): Change buf argument to void *.
3772 (collect_register_by_name): Likewise.
3773 * gdbserver/regcache.h: Add missing prototypes.
3774 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
3775 * gdbserver/server.c (handle_query): New function.
3776 (attached): New static variable, moved out of main.
3777 (main): Quiet longjmp clobber warnings.
3778 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
3779 * gdbserver/utils.c (error): Remove NORETURN.
3782 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
3784 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
3785 after the last symbol in a block.
3787 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
3789 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
3790 is non zero as a found symbol.
3792 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3794 * findvar.c: Include "builtin-regs.h".
3795 (value_of_register): Call value_of_builtin_reg when applicable.
3796 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
3797 (target_map_name_to_register): Call
3798 builtin_reg_map_name_to_regnum.
3799 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
3800 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
3801 (builtin_regs_h): Define.
3802 (builtin-regs.o): New target.
3803 (findvar.o): Add $(builtin_regs_h).
3804 * builtin-regs.c, builtin-regs.h: New files.
3805 * std-regs.c: New file.
3806 Partial fix for PR gdb/251.
3808 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3810 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
3811 it's no longer required.
3813 2002-04-08 Andrew Cagney <ac131313@redhat.com>
3815 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
3817 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3819 From Jimi X <jimix@watson.ibm.com>:
3820 * rs6000-tdep.c (rs6000_software_single_step): Use
3821 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
3822 and size. Use target_insert_breakpoint() and
3823 target_remove_breakpoint() to insert and remove breakpoints
3824 instead of explicit memory reads and writes.
3826 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3828 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
3829 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
3830 ELF_OBJECT_FORMAT ifdef.
3832 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3834 From Jimi X <jimix@watson.ibm.com>:
3835 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
3837 2002-04-08 Kevin Buettner <kevinb@redhat.com>
3839 From Jimi X <jimix@watson.ibm.com>:
3840 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
3841 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
3843 2002-04-07 Mark Kettenis <kettenis@gnu.org>
3845 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
3846 s/asprintf/xasprintf/.
3847 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
3849 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3851 I believe Jeff Law denies responsability for this one:
3852 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
3853 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
3854 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
3855 Work-around for PR gdb/366.
3857 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3859 * remote-e7000.c (write_small, e7000_read_inferior_memory,
3860 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
3861 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
3863 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
3865 * sh-tdep.c (sh_fp_frame_init_saved_regs,
3866 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
3869 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3871 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
3874 2002-04-07 Andrew Cagney <ac131313@redhat.com>
3876 * README (Reporting Bugs in GDB): Document the bug web page as the
3877 prefered way of submitting bugs.
3880 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3882 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
3884 * gdbarch.h, gdbarch.c: Re-generate.
3886 2002-04-07 Andreas Schwab <schwab@suse.de>
3888 * m68klinux-nat.c (fill_fpregset): Properly pass address of
3889 buffer to regcache_collect.
3891 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3893 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
3894 * gdbarch.c, gdbarch.h: Re-generate.
3896 2002-04-06 Andrew Cagney <ac131313@redhat.com>
3898 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
3899 declaration. Fix -Werror.
3901 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
3903 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
3904 * gdbarch.c: Regenerate.
3906 2002-04-05 Michael Snyder <msnyder@redhat.com>
3908 * breakpoint.c (clear_command): Rewrite middle section to
3909 combine two loops with identical control conditions.
3910 Add a cleanup to eliminate a memory leak.
3911 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
3913 2002-04-05 H.J. Lu (hjl@gnu.org)
3915 * solib-svr4.c (bkpt_names): Add "__start".
3917 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3919 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
3920 as test for 64 bit target.
3922 2002-04-05 Andrew Cagney <ac131313@redhat.com>
3924 * h8500-tdep.c (h8500_write_fp): Delete function.
3925 * dwarf2cfi.c (cfi_write_fp): Document as not used.
3926 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
3927 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
3928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
3929 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
3930 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
3932 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
3933 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
3934 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
3935 (d10v_write_fp): Delete function.
3936 * inferior.h (write_fp, generic_target_write_fp): Delete
3938 * regcache.c (generic_target_write_fp): Delete function.
3939 (write_fp): Delete function.
3940 * gdbarch.sh (TARGET_WRITE_FP): Delete.
3941 * gdbarch.h, gdbarch.c: Regenerate.
3942 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
3943 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
3944 (sparc64_write_fp): Delete declaration.
3945 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
3946 (h8500_write_fp): Delete declaration.
3948 2002-04-04 Andrew Cagney <ac131313@redhat.com>
3950 * sparc-tdep.c (sparc64_write_fp): Delete.
3951 (sparc_push_dummy_frame): Replace write_fp call with code to store
3953 (sparc_gdbarch_init): Do not initialize write_fp.
3955 2002-04-05 Kevin Buettner <kevinb@redhat.com>
3957 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
3960 2002-03-29 Jim Blandy <jimb@redhat.com>
3962 * stack.c (get_selected_block): Add new argument `addr_in_block',
3963 used to return the exact code address we used to select the block,
3965 * blockframe.c (get_frame_block, get_current_block): Same.
3966 * frame.h (get_frame_block, get_current_block,
3967 get_selected_block): Update declarations.
3968 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
3969 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
3971 2002-04-05 Michael Snyder <msnyder@redhat.com>
3973 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
3976 2002-04-05 J. Brobecker <brobecker@gnat.com>
3978 * utils.c (xfullpath): New function.
3979 * defs.h (xfullpath): Add declaration.
3980 * source.c (openp): Use xfullpath in place of gdb_realpath to
3981 avoid resolving the basename part of filenames when the
3982 associated file is a symbolic link. This fixes a potential
3983 inconsistency between the filenames known to GDB and the
3984 filenames it prints in the annotations.
3985 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
3986 to be able to match a filename with either the real filename, or
3987 the name of any symbolic link to this file.
3988 (lookup_partial_symtab): Ditto.
3990 2002-04-04 Michael Snyder <msnyder@redhat.com>
3992 * breakpoint.c: Add support for hardware breakpoints in overlays.
3993 (overlay_events_enabled): New state variable.
3994 (insert_breakpoints): Use overlay_events_enabled to decide
3995 whether to attempt to set a breakpoint at the overlay load addr.
3996 Handle bp_hardware_breakpoint as well as bp_breakpoint.
3997 (remove_breakpoint): Use overlay_events_enabled to decide
3998 whether breakpoints need to be removed from overlay load addr.
3999 Handle bp_hardware_breakpoint as well as bp_breakpoint.
4000 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
4001 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
4002 disable_overlay_breakpoints): Update overlay_events_enabled.
4004 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
4006 * dwarf2read.c (struct function_range): New.
4007 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
4008 (check_cu_functions): New.
4009 (read_file_scope): Initialize global function lists.
4010 Call dwarf_decode_line after processing children.
4011 (read_func_scope): Add to global function list.
4012 (dwarf_decode_lines): Call check_cu_functions everywhere
4013 record_line is called. Call record_line with a linenumber
4014 of 0 to mark sequence ends.
4016 2002-04-04 Michal Ludvig <mludvig@suse.cz>
4018 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
4019 change sync with glibc.
4021 2002-04-03 Jim Blandy <jimb@redhat.com>
4023 * configure.in: Call AC_C_INLINE.
4024 * configure: Regenerated.
4026 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
4028 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
4029 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
4031 2002-03-31 Mark Kettenis <kettenis@gnu.org>
4033 * NEWS: Mention gcore support on FreeBSD/i386.
4035 * fbsd-proc.c: New file.
4036 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
4037 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
4039 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
4042 2002-03-29 Jim Blandy <jimb@redhat.com>
4044 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
4045 unescaped newlines in string literals, but newer ones don't. So
4048 2002-03-26 Michael Snyder <msnyder@redhat.com>
4049 Andrew Cagney <cagney@redhat.com>
4051 * cli/cli-dump.c: New file. Dump memory to file,
4052 restore file to memory.
4053 * cli/cli-dump.h: New file.
4054 * Makefile.in: Add rules, dependencies for cli-dump.o.
4055 * NEWS: Mention new commands.
4057 2002-03-28 Michael Snyder <msnyder@redhat.com>
4059 * symfile.c (symbol_file_add): Move test for null symbols to later.
4061 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4063 From veksler at il.ibm.com:
4064 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
4065 the xstrduped original path.
4068 2002-03-27 Michael Snyder <msnyder@redhat.com>
4070 * breakpoint.c (_initialize_breakpoint): Clean up help string.
4071 * infcmd.c (_initialize_infcmd): Ditto.
4072 * language.c (_initialize_language): Ditto.
4073 * symfile.c (_initialize_symfile): Ditto.
4074 * top.c (_init_main): Ditto.
4075 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4077 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
4079 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
4080 vector registers handling.
4081 (skip_prologue): Handle new AltiVec instructions. Fill in new
4082 fields of frame data.
4083 (frame_get_saved_regs): Fill in information for AltiVec registers.
4085 2002-03-27 Jim Blandy <jimb@redhat.com>
4087 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
4088 a function; leave this macro here to invoke that function.
4089 (symbol_init_mangled_name): Declaration for that function.
4090 * symtab.c (symbol_init_mangled_name): New function.
4092 2002-03-27 Andrew Cagney <ac131313@redhat.com>
4094 * valarith.c: Replace strerror with safe_strerror.
4095 * tracepoint.c: Ditto.
4097 * go32-nat.c: Ditto.
4101 2002-03-27 Andreas Schwab <schwab@suse.de>
4103 * event-top.c (command_line_handler): Remove useless if.
4105 2002-03-27 Andreas Jaeger <aj@suse.de>
4107 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
4110 2002-03-27 Michal Ludvig <mludvig@suse.cz>
4112 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
4113 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
4114 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
4115 (x86_64_linux_dr_get_status, supply_gregset),
4116 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
4117 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
4118 (x86_64_register_info_table): Add.
4119 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
4120 (x86_64_register_raw_size, x86_64_register_virtual_type),
4121 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
4122 general x86_64_register_info_table.
4123 (i386_gdbarch_init): gdbarch_register_bytes is now set
4124 dynamicaly during initialization.
4125 * regformats/reg-x86-64.dat: Synced with changes to registers above.
4126 * gdbserver/linux-x86-64-low.c: Ditto.
4128 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4130 * gdbserver/server.c (main): Call target_signal_to_host_p
4131 and target_signal_to_host on signals received from the remote.
4132 * gdbserver/remote-utils.c (prepare_resume_reply): Call
4133 target_signal_from_host on signals sent to the remote.
4134 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
4135 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
4137 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4139 * signals/signals.c: Include "server.h" in gdbserver build.
4140 (target_signal_from_name): Don't use STREQ.
4141 (_initialize_signals): Likewise. Don't include function in
4144 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
4146 * signals.c: Moved to...
4147 * signals/signals.c: Here.
4148 * Makefile (signals.o): Update.
4150 2002-03-26 Jeff Law (law@redhat.com)
4152 * somread.c (som_symtab_read): Remove some commented out code and
4153 updated related comments. Do not set the minimal symbol table to
4154 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
4155 in a dynamic executable.
4156 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
4157 where we are unable to find the minimal symbol for the given
4160 2002-03-25 Jeff Law (law@redhat.com)
4162 * linux-proc.c (read_mapping): Scan up to end of line for filename.
4164 2002-03-25 Michal Ludvig <mludvig@suse.cz>
4166 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
4168 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4170 * command.h: Update copyright.
4171 (struct cmd_list_element): Replace definition with opaque
4173 (enum cmd_types): Document that it will eventually be moved to
4175 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
4176 (MALLOCED_REPLACEMENT): Delete macro.
4177 * Makefile.in (cli_decode_h): Add $(command_h).
4178 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
4179 * top.c: Include "cli/cli-decode.h".
4180 * completer.c: Include "cli/cli-decode.h".
4181 * maint.c: Include "cli/cli-decode.h".
4182 * cli/cli-decode.h: Include "command.h".
4183 (enum command_class): Delete.
4184 (enum cmd_types): Comment out.
4185 (enum cmd_auto_boolean): Delete.
4186 (enum var_types): Delete.
4188 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4190 * cli/cli-decode.c: Include "gdb_assert.h".
4191 (add_set_or_show_cmd): New static function.
4192 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
4193 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
4194 all fields, such as func, from the set command.
4196 2002-03-23 Andrew Cagney <ac131313@redhat.com>
4198 * MAINTAINERS (sh-elf): Change warning flag to -w.
4200 2002-03-23 Andrew Cagney <cagney@redhat.com>
4202 * defs.h (error): Add printf format attribute.
4203 * thread-db.c (thread_from_lwp): Fix error format string.
4204 * stack.c (parse_frame_specification): Ditto.
4205 * cli/cli-decode.c (undef_cmd_error): Ditto.
4206 * scm-lang.c (scm_lookup_name): Ditto.
4207 * tracepoint.c (trace_error): Ditto.
4208 * remote-utils.c (usage): Ditto.
4209 * remote.c (compare_sections_command): Ditto.
4212 2002-03-22 Andrew Cagney <ac131313@redhat.com>
4214 * gdbtypes.c (append_composite_type_field): New function.
4215 (init_composite_type): New function.
4216 * gdbtypes.h (append_composite_type_field): Declare.
4217 (init_composite_type): Ditto.
4219 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
4221 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
4223 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
4224 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
4225 structure returning convention for SYSV ABI case, but not
4226 for GNU/Linux, FreeBSD, or NetBSD.
4228 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
4230 * symtab.h (lookup_block_symbol): Add mangled_name argument
4233 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
4234 with new mangled_name argument.
4235 * linespec.c (decode_line_1): Likewise.
4236 * valops (value_of_this): Likewise.
4237 * symtab.c (lookup_transparent_type): Likewise.
4238 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
4239 (lookup_symbol): If we are given a mangled name, pass it down
4240 to lookup_symbol_aux.
4241 (lookup_block_symbol): If we are given a mangled name to check
4242 against, only return symbols which match it.
4244 2002-03-22 Christopher Faylor <cgf@redhat.com>
4246 * win32-nat.c (child_create_inferior): Check for proper shell to use
4247 here, in case the user changes it on the fly.
4248 (_initialize_inftarg): Remove shell path considerations.
4250 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
4252 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
4253 for gdbarch_max_register_raw_size and max_register_virtual_size.
4254 Adjust copyright year.
4256 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
4258 * dbxread.c (process_one_symbol): Extend the first N_SLINE
4259 in a function to cover the entire beginning of the function
4260 as well if it does not already.
4262 2002-03-21 Tom Rix <trix@redhat.com>
4264 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
4265 (rs6000_ptrace64): Renamed from ptrace64.
4267 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4269 * gdbserver/remote-utils.c (remote_open): Don't call
4270 getprotobyname, we're all using TCP here so just use
4272 * gdbserver/gdbreplay.c (remote_open): Ditto.
4274 2002-03-20 Martin M. Hunt <hunt@redhat.com>
4276 * regcache.c (_initialize_regcache): No need to call
4277 build_regcache() at this time; it gets called whenever
4278 the gdbarch changes.
4280 2002-03-20 David O'Brien <obrien@FreeBSD.org>
4282 * sparc-nat.c: Include sys/param.h where possible.
4284 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
4287 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
4288 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
4289 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
4291 * stabsread.c (rs6000_builtin_type): Likewise.
4292 (read_sun_floating_type): Likewise.
4294 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4296 * stabsread.c (read_member_functions): Remove skip code for duplicate
4297 constructor/destructor methods. Use standard parsing for these
4298 methods and just do not chain them to the list of methods after
4301 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
4303 * coffread.c: Remove redundant static declarations. Replace
4304 occurrences of `PTR' with `void *'.
4305 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
4306 * top.h (quit_cover): Likewise.
4307 * defs.h (catch_errors): Likewise.
4309 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4311 * defs.h (XMALLOC): Define.
4312 * gdb-events.sh (XMALLOC): Delete macro.
4313 * gdb-events.c, gdb-events.h: Regenerate.
4314 * gdbarch.sh (XMALLOC): Delete macro.
4315 * gdbarch.c: Regenerate.
4316 * serial.c (XMALLOC): Delete macro.
4317 * ui-file.c (XMALLOC): Ditto.
4318 * ser-unix.h (XMALLOC): Ditto.
4319 * sh-tdep.c (XMALLOC): Ditto.
4320 * ui-out.c (XMALLOC): Ditto.
4321 * utils.c (XMALLOC): Ditto.
4322 * i386-tdep.c (XMALLOC): Ditto.
4323 * gdb-events.c (XMALLOC): Ditto.
4324 * d10v-tdep.c (XMALLOC): Ditto.
4325 * cli-out.c (XMALLOC): Ditto.
4327 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
4328 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
4329 * ui-file.c, ui-out.c: Ditto.
4331 2002-03-18 Andrew Cagney <ac131313@redhat.com>
4333 * command.h (struct cmd_list_element): Add field context.
4334 (set_cmd_context, get_cmd_context): Declare.
4335 * cli/cli-decode.h: Ditto.
4336 * cli/cli-decode.c (get_cmd_context): New function.
4337 (set_cmd_context): New function.
4338 (add_cmd): Initialize context.
4339 Part of fixing PR gdb/145 and PR gdb/146.
4341 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4343 * cli/cli-decode.c (cmd_type): New function.
4344 * command.h (cmd_type): Declare.
4345 * infrun.c (set_schedlock_func): Call function cmd_type.
4346 * kod.c (kod_set_os): Call cmd_type.
4347 * cris-tdep.c (cris_version_update): Use function cmd_type.
4348 (cris_mode_update, cris_abi_update): Ditto.
4350 * command.h: (execute_cmd_post_hook): Declare.
4351 (execute_cmd_pre_hook): Declare.
4352 * cli/cli-script.c (clear_hook_in_cleanup): New function.
4353 (execute_cmd_post_hook, execute_cmd_pre_hook): New
4354 functions. Execute pre/post hook while ensuring that afterwords
4356 * top.c (execute_command): Use execute_cmd_post_hook, and
4357 execute_cmd_pre_hook to execute pre/post commands.
4358 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
4360 (hook_stop_stub): Call execute_cmd_pre_hook.
4362 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4364 * kod.c (kod_set_os): Revert previous change. Is called by ``info
4365 set'' and this leads to a core dump. Move xstrdup of
4366 operating_system to after check that it is not NULL.
4368 2002-03-17 Andrew Cagney <ac131313@redhat.com>
4370 * kod.c (kod_set_os): Remove unnecessary check that
4371 ``command->type'' is set_cmd.
4373 * valprint.c (set_input_radix): Use input_radix.
4374 (set_output_radix): Use output_radix.
4375 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
4378 2002-03-16 Andrew Cagney <ac131313@redhat.com>
4380 * value.h (struct value): Delete field ``substring_addr''. Change
4381 aligner fields to force_doublest_align, force_longest_align,
4382 force_core_addr_align and force_pointer_aligh.
4384 * value.h (struct value): Fix typo in above change.
4386 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4388 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
4389 to fix internal_error from ``maintenance print architecture''.
4391 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4393 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
4394 for gcc versions after gcc-2.8.1.
4396 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4398 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
4399 for method resolution. Restore adjustment of ``this'' pointer after
4400 calling value_struct_elt, which was accidentally removed during the
4403 2002-03-15 Andrew Cagney <ac131313@redhat.com>
4405 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
4407 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
4409 * value.h (value_of_register): Update.
4411 2002-03-14 Richard Henderson <rth@redhat.com>
4413 * configure.in: Detect declaration for canonicalize_file_name.
4414 * utils.c (canonicalize_file_name): Declare, if needed.
4415 (gdb_realpath): Prefer realpath if available and usable.
4416 * config.in, configure: Rebuild.
4418 2002-03-14 Richard Henderson <rth@redhat.com>
4420 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
4421 a constant array bound.
4423 * MAINTAINERS: Add myself to write-after-approval.
4425 2002-03-14 Michael Snyder <msnyder@redhat.com>
4427 * symfile.c (syms_from_objfile): Return immediately if no syms.
4428 (symbol_file_add): Return immediately if no syms.
4429 (find_sym_fns): Return immediately if no syms.
4431 2002-03-13 Michal Ludvig <mludvig@suse.cz>
4433 * gdbserver/remote-util.c (remote_open): Print remote-side's
4434 IP address when remote debugging over the network.
4436 2002-03-12 David O'Brien <obrien@FreeBSD.org>
4438 * config/sparc/fbsd.mh: Fix copyright.
4439 * config/sparc/fbsd.mt: Likewise.
4441 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
4443 * MAINTAINERS: Fix typo in name of gdb warnings option.
4444 (x86-64): Fix formating so that this can be parsed by awk.
4446 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4448 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
4449 * defs.h: Include "gdb/signals.h".
4450 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
4452 2002-03-10 Michal Ludvig <mludvig@suse.cz>
4454 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
4455 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
4458 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
4459 Don Howard <dhoward@redhat.com>
4461 * mips-tdep.c (ST0_FR): Define.
4462 (mips2_fp_compat): New function, temporarily disabled.
4463 (mips_read_fp_register_single): New function.
4464 (mips_read_fp_register_double): New function.
4465 (mips_print_register): Use them.
4466 (do_fp_register_row): Likewise.
4468 2002-03-09 Andrew Cagney <ac131313@redhat.com>
4470 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
4473 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4475 * stabsread.c (read_member_functions): Fix is_stub test for
4476 static member functions, improve comment.
4478 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
4480 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
4481 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
4482 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
4483 commands that set boolean values.
4484 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
4485 (arm_rdi_resume): Always initialize PC.
4486 (arm_rdi_open): Don't use rslt as a boolean.
4487 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
4488 (arm_rdi_fetch_registers, arm_rdi_store_registers)
4489 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
4490 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
4492 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
4494 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
4495 * configure: Rebuilt.
4497 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4499 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
4500 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
4502 2002-03-06 Andrew Cagney <ac131313@redhat.com>
4504 * cli/cli-decode.c (set_cmd_completer): New function.
4505 * command.h (set_cmd_completer): Declare.
4506 * cli/cli-decode.h (set_cmd_completer): Ditto.
4508 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
4509 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4510 * win32-nat.c (_initialize_inftarg): Ditto.
4511 * remote-rdi.c (_initialize_remote_rdi): Ditto.
4512 * proc-api.c (_initialize_proc_api): Ditto.
4513 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
4514 * source.c (_initialize_source): Ditto.
4515 * exec.c (_initialize_exec): Ditto.
4516 * solib.c (_initialize_solib): Ditto.
4517 * top.c (init_main): Ditto.
4518 * tracepoint.c (_initialize_tracepoint): Ditto.
4519 * symfile.c (_initialize_symfile): Ditto.
4520 * printcmd.c (_initialize_printcmd): Ditto.
4521 * infcmd.c (_initialize_infcmd): Ditto.
4522 * corefile.c (_initialize_core): Ditto.
4524 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4526 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
4528 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4530 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
4532 2002-03-05 Andrew Cagney <ac131313@redhat.com>
4534 * NEWS: Update headings, 5.2 has branched.
4536 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
4538 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
4539 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
4540 (register_addr, REGISTER_RAW_SIZE): Likewise.
4541 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
4542 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
4544 2002-03-03 Michal Ludvig <mludvig@suse.cz>
4546 * MAINTAINERS (x86-64): Add myself.
4547 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
4548 changed value_ptr -> struct value *
4550 2002-03-01 David O'Brien <obrien@FreeBSD.org>
4552 * configure.host (sparc64-*-freebsd): Add.
4553 * configure.tgt: Likewise.
4554 * config/sparc/fbsd.mh: New file.
4555 * config/sparc/fbsd.mt: Likewise.
4556 * config/sparc/nm-fbsd.h: Likewise.
4557 * config/sparc/tm-fbsd.h: Likewise.
4559 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
4561 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
4562 regformats/reg-s390x.dat.
4564 2002-03-01 Andrew Cagney <ac131313@redhat.com>
4566 * utils.c: Add FIXME explaining true/false problem.
4568 2002-02-28 Andrew Cagney <ac131313@redhat.com>
4570 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
4572 2002-02-28 Michael Chastain <mec@shout.net>
4574 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
4576 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
4578 * gdbserver/linux-s390-low.c: New file.
4579 * regformats/reg-s390.dat: New file.
4580 * regformats/reg-s390x.dat: New file.
4581 * gdbserver/configure.srv: Add S/390.
4582 * gdbserver/Makefile.in: Add S/390.
4583 * configure.tgt: Enable gdbserver for S/390.
4585 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
4587 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
4588 first line of the doc string for "info dos", except at the end of
4589 the sentence, since the short help stops at the first period.
4591 2002-02-28 Jason Merrill <jason@redhat.com>
4593 * dwarf2read.c (dwarf_cfi_name): Add new codes.
4595 2002-02-27 Fred Fish <fnf@redhat.com>
4597 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
4598 comment (dumy -> dummy).
4600 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4602 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
4604 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
4606 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
4608 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4610 * gdbserver/acconfig.h: New file.
4611 * gdbserver/i387-fp.c: New file.
4612 * gdbserver/i387-fp.h: New file.
4613 * gdbserver/linux-x86-64.c: New file.
4614 * regformats/reg-x86-64.dat: New file.
4615 * configure.tgt: Add x86_64-*-linux* gdbserver support.
4616 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
4617 * gdbserver/configure.in: Add support for regsets.
4618 * gdbserver/config.in: Regenerate.
4619 * gdbserver/configure: Regenerate.
4620 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
4621 * gdbserver/linux-low.h: New file.
4622 * gdbserver/linux-low.c: Include "linux-low.h". Add support
4624 * gdbserver/linux-arm-low.c: Include "linux-low.h".
4625 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
4626 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
4627 * gdbserver/linux-mips-low.c: Include "linux-low.h".
4628 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
4629 * gdbserver/linux-sh-low.c: Include "linux-low.h".
4630 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
4631 "i387-fp.h". Add PTRACE_GETREGS and friends.
4632 * gdbserver/regcache.c (supply_register): New function.
4633 (supply_register_by_name): New function.
4634 (collect_register): New function.
4635 (collect_register_by_name): New function.
4637 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4639 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
4640 (config.status): Add configure.srv dependency.
4641 (server_h): Add config.h dependency.
4643 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
4645 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
4646 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
4647 * gdbserver/configure.srv: Change i386-*-linux* to use
4650 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4652 * x86-64-tdep.c: Re-indent. Update copyright date.
4654 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4656 From Michal Ludvig <mludvig@suse.cz>:
4657 * x86-64-tdep.c (value.h): Delete.
4658 (gdb_assert.h): Include.
4659 (x86_64_register_convert_to_virtual,
4660 x86_64_register_convert_to_raw ): Add check which lets only
4661 floating-point values to be converted.
4662 (value_push): Delete.
4663 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
4664 (i386_gdbarch_init): Number of register_bytes fixed.
4666 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4668 * MAINTAINERS: Add x86-64 target.
4670 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4672 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
4673 * osfsolib.c (solib_map_sections): Ditto.
4674 * irix5-nat.c (solib_map_sections): Ditto.
4675 * corelow.c (gdb_check_format): Ditto.
4676 * symfile.c (symfile_bfd_open): Ditto.
4677 * solib.c (solib_map_sections): Ditto.
4680 2002-02-26 Andrew Cagney <ac131313@redhat.com>
4682 * remote.c (_initialize_remote): By default, disable ``e'' and
4683 ``E'' step out-of-range packets.
4685 2002-02-26 Andreas Schwab <schwab@suse.de>
4687 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
4688 m68k_linux_frame_saved_pc.
4689 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
4691 (SIGCONTEXT_PC_OFFSET): Remove.
4692 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
4693 m68k_linux_sigtramp_saved_pc): New functions.
4694 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
4695 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
4696 (UCONTEXT_PC_OFFSET): Define.
4697 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
4698 non-RT and RT signal trampolines.
4700 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
4702 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
4703 (TARGET_NBPG, STACK_END_ADDR): Delete
4704 (VARIABLES_INSIDE_BLOCK): Delete.
4706 2002-02-25 Andrew Cagney <ac131313@redhat.com>
4708 * utils.c (perror_with_name): Make string parameter constant.
4709 (print_sys_errmsg): Ditto.
4711 * defs.h (perror_with_name): Update.
4712 (print_sys_errmsg): Update.
4715 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
4717 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
4718 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
4720 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4722 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
4723 if it already matches the current architecture from the exec file.
4724 Include arch-utils.h for gdbarch_info_init prototype.
4725 * Makefile.in (rs6000-nat.o): Update dependencies.
4727 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
4729 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
4730 list of exported variables.
4732 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
4734 * gdbserver/configure.srv: New file.
4735 * gdbserver/configure.in: Use configure.srv instead
4736 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
4738 * gdbserver/configure: Regenerated.
4739 * gdbserver/terminal.h: New file.
4740 * gdbserver/Makefile.in: Update for configure changes. Remove
4741 more unneeded include paths.
4743 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4745 From wiz at danbala:
4746 * config/sparc/tm-sp64.h: Fix grammar and typos.
4749 2002-02-24 Andrew Cagney <ac131313@redhat.com>
4751 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
4752 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
4753 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
4754 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
4755 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
4756 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
4757 * s390-tdep.c: Ditto.
4758 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
4759 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
4760 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
4761 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
4762 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
4763 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
4764 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
4765 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
4766 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
4767 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
4770 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4772 * lin-thread.c: Delete file.
4773 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
4774 to gdb_proc_service.h.
4775 * configure: Re-generate.
4777 * ocd.c (ocd_open): Do not try to open the "ocd" device.
4778 * serial.c (serial_open): Delete check for "ocd".
4781 * Makefile.in (linux-thread.o): Delete target.
4782 * linux-thread.c: Delete file.
4784 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
4785 renamed SH files to be consistent.
4787 * symtab.c (sort_search_symbols): Use xfree.
4789 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4791 * arm-linux-tdep.c (arm_linux_init_abi): Register
4792 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
4793 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
4794 definition with undef, since we don't want the sysvr4 definition.
4795 (SKIP_TRAMPOLINE_CODE): Likewise.
4797 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4799 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
4801 * configure.in: (AC_CHECK_FUNCS) Added test for
4802 canonicalize_file_name Regenerated.
4803 * config.in, configure: Regenerated.
4804 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
4805 defined use canonicalize_file_name.
4807 2002-02-23 Michael Chastain <mec@shout.net>
4809 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
4811 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4813 * README: Remove references to cygnus.com.
4814 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
4815 dot com'' form. Remove references to cygnus.com and sourceware.
4817 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4819 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
4820 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
4821 1003.1-2001 no longer allows "head -1".
4822 * gdb/Makefile.in (version.c): Likewise.
4823 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
4824 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
4825 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
4827 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4829 * cli/cli-decode.c (cmd_cfunc_eq): New function.
4830 * command.h (cmd_cfunc_eq): Declare.
4831 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
4833 * cli/cli-cmds.h (is_complete_command): Change parameter to a
4834 ``struct cmd_list_element *''.
4835 * cli/cli-cmds.c (is_complete_command): Update. Use
4837 * top.c (execute_command): Pass the command to
4838 is_complete_command.
4839 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
4841 2002-02-23 Andrew Cagney <ac131313@redhat.com>
4843 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
4844 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
4845 architecture defines.
4846 * s390-tdep.c (s390_gdbarch_init): Likewise.
4848 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4850 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
4851 (arm_linux_push_arguments): Likewise.
4852 (arm_linux_init_abi): Register them. Also register linux-specific
4854 (find_minsym_and_objfile): Use strcmp, not STREQ.
4855 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
4856 (arm_linux_call_dummy_words): Delete declaration.
4857 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
4858 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
4860 (LOWEST_PC): Delete.
4862 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4864 * maint.c (print_section_info): Do not prepend `0x' to filepos
4865 output, it will be handled by local_hex_string_custom.
4867 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
4869 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
4870 (store_newfpe_double, store_newfpe_extended, store_fpregister)
4871 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
4873 2002-02-22 Jim Blandy <jimb@redhat.com>
4875 Indicate that the bcache functions don't change the strings
4877 * bcache.h (bcache, hash): Add `const' keywords to declarations.
4878 * bcache.c (bcache, hash): Add `const' keywords to definitions.
4880 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
4882 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
4884 2002-02-21 Christopher Faylor <cgf@redhat.com>
4886 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
4887 find the complete path to a loaded DLL.
4889 2002-02-21 Fred Fish <fnf@redhat.com>
4891 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
4892 that marks the end of the range of a function, enter a line number
4893 entry that has a line number of zero and a PC offset that matches
4894 the end of the function. This starts a range of PC's for which no
4895 line number information is known.
4896 * symtab.c (find_pc_sect_line): If our best fit is in a range of
4897 PC's for which no line number info is found (line number is zero)
4898 then we didn't find any valid line information.
4899 * symtab.h: Document use of zero line number entry.
4901 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
4903 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
4904 (have_ptrace_getvrregs): Define for run time checks.
4905 (gdb_vrregset_t): New type for Altivec register handling.
4906 (fetch_register, store_register): Fetch/store altivec register
4908 (fetch_altivec_register, store_altivec_register): New functions.
4909 (supply_vrregset, fill_vrregset): New functions.
4910 (fetch_altivec_registers, store_altivec_registers): New functions.
4911 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
4914 2002-02-21 Jiri Smid <smid@suse.cz>
4916 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
4918 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4920 * Makefile.in (armnbsd-nat.o): Update dependencies.
4921 * armnbsd-nat.c (supply_gregset): New function. Common code to
4922 supply the integer register set.
4923 (supply_fparegset): New function. Similar for FPA registers.
4924 (fetch_regs, fetch_fp_regs): Use them.
4925 (fetch_core_registers): Likewise.
4926 (fetch_elfcore_registers): New function.
4927 (arm_netbsd_elfcore_fns): New core-file type specification.
4928 (_initialize_arm_netbsd_nat): Register it.
4930 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
4932 * armnbsd-nat.c: Include gdbcore.h.
4933 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
4934 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
4935 'void' to declaration, to shut up ARI.
4936 (fetch_core_registers): Make static. Rewrite using supply_register.
4937 (arm_netbsd_core_fns): New core-file type specification.
4938 (_initialize_arm_netbsd_nat): New function.
4940 2002-02-21 Christopher Faylor <cgf@redhat.com>
4942 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
4945 2002-02-20 Christopher Faylor <cgf@redhat.com>
4947 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
4950 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4952 * jv-exp.y (parse_number): Change type of implicit longs
4953 to builtin_type_uint64.
4955 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4957 * gdbserver/linux-low.c (mywait): Change argument to waitpid
4958 to be an integer instead of a `union wait'.
4960 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4962 * mips-linux-nat.c: Call the operating system GNU/Linux.
4963 * mips-linux-tdep.c: Likewise.
4964 * mips-tdep.c: Likewise.
4966 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4969 * jv-exp.y (parse_number): Handle 64-bit integers.
4971 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4973 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
4974 AC_STDC_HEADERS to AC_HEADER_STDC.
4975 * gdbserver/configure: Regenerated.
4977 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4979 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
4981 * sparc-tdep.c (get_longjmp_target): Likewise.
4983 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
4985 * News: Add news about ARM and Multi-arch. Mention the new target
4988 2002-02-19 Jim Blandy <jimb@redhat.com>
4990 * stabsread.c (error_type_complaint): Improve error message.
4992 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
4994 * gdbserver/README: Update documentation.
4995 * gdbserver/configure.in: Update configury to match documentation.
4996 * gdbserver/Makefile.in: Likewise.
4997 * gdbserver/configure: Regenerated.
4998 * gdbserver/aclocal.m4: New file, generated by aclocal.
4999 * gdbserver/config.in: New file, generated by autoheader.
5001 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5003 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
5006 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5008 * arm-tdep.h (enum arm_float_model): New enum.
5009 (struct gdbarch_tdep): Add fp_model.
5010 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
5011 up floating-point conversions until we know the floating-point model
5012 in use by the inferior. Don't complain about being unable to
5013 determine the ABI of the inferior when we don't have one.
5014 (arm_extract_return_value): Support different floating-point models.
5015 (arm_store_return_value): Likewise.
5016 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
5018 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
5020 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5022 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
5023 of ``current_gdbarch''.
5025 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5027 * armnbsd-nat.c : ANSIfy all function declarations.
5028 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
5029 (fetch_inferior_registers): Re-implement in terms of above.
5030 (store_register, store_regs, store_fp_register, store_fp_regs): New.
5031 (store_inferior_registers): Re-implement in terms of above.
5033 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5035 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
5037 * arm-linux-tdep.c: Likewise.
5038 * config/arm/tm-linux.h: Likewise.
5040 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5042 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
5043 * config/arm/nbsd.mt (TM_FILE): Delete.
5044 * config/arm/tm-nbsd.h: Delete.
5046 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5048 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
5049 Initialize CALL_DUMMY_LENGTH.
5051 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
5053 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
5055 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
5056 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
5057 defines one thing and that is incorrect for this port.
5058 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
5060 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5062 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
5064 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
5066 * win32-nat.c (display_selector): New function. Displays information
5067 about the information returned by GetThreadSelectorEntry API function.
5068 (display_selectors): New function. Displays the infomation of
5069 the selector given as argument, or of CS, DS ans FS selectors
5070 if no argument is given.
5071 ( _initialize_inftarg): Add "w32" as info prefix command.
5072 Add "info w32 selector" as command calling display_selectors.
5074 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
5076 * i386-tdep.c (get_longjmp_target): Fix compilation failure
5077 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
5080 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5082 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
5084 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5086 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
5087 (arm_fix_call_dummy): Call it.
5088 (arm_call_dummy_breakpoint_offset): Delete.
5089 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
5090 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
5092 2002-02-18 Andrew Cagney <ac131313@redhat.com>
5094 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
5095 Default to func_frame_chain_valid.
5096 * gdbarch.h, gdbarch.c: Re-generate.
5097 * frame.h (FRAME_CHAIN_VALID): Delete definition.
5099 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
5101 * ppc-linux-nat.c: Update copyright.
5102 (fetch_register, store_register): Add tid parameter, don't compute
5104 (fetch_ppc_registers, store_ppc_registers): Add tid
5105 parameter. Pass it along to callees.
5106 (fetch_inferior_registers, store_inferior_registers): Compute tid
5107 here, and pass it to calleed functions.
5108 (fill_gregset, supply_fpregset): Clean up formatting.
5110 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5112 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
5113 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
5115 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
5117 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
5118 * gdbarch.c gdbarch.h: Regenerate.
5119 * breakpoint.c (create_longjmp_breakpoint): Always compile this
5121 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
5122 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
5123 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
5125 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
5126 * arm-tdep.c (arm_get_longjmp_target): New function.
5127 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
5128 this to a positive value register arm_get_longjmp_target as the
5130 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
5131 (arm_linux_init_abi): Set up longjmp description in tdep.
5132 * armnbsd-nat.c (get_longjmp_target): Delete.
5133 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
5134 description in tdep.
5135 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
5136 (get_longjmp_target): Delete declaration.
5137 (GET_LONGJMP_TARGET): Delete.
5138 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
5139 (GET_LONGJMP_TARGET): Delete.
5141 2002-02-17 Kevin Buettner <kevinb@redhat.com>
5143 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
5144 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
5145 of ``current_gdbarch''.
5147 2002-02-17 Tom Tromey <tromey@redhat.com>
5149 * cli/cli-cmds.c (compare_strings): New function.
5150 (complete_command): Only print each unique item once.
5151 * completer.h (complete_line): Declare.
5152 * completer.c (complete_line): New function.
5153 (line_completion_function): Use it.
5155 2002-02-16 Andrew Cagney <ac131313@redhat.com>
5157 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
5158 * gdbarch.h, gdbarch.c: Re-generate.
5160 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5162 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
5164 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
5166 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5167 * valops.c (value_arg_coerce): Don't take the address of a reference
5168 to convert an argument to a reference.
5170 2002-02-15 Christopher Faylor <cgf@redhat.com>
5172 * win32-nat.c (get_image_name): New function.
5173 (handle_load_dll): Use get_image_name function.
5174 (get_child_debug_event): Avoid registering debug events until possibly
5175 execed process is started.
5176 (child_create_inferior): Allow invocation via shell so that command
5177 line redirection, etc. works ok.
5178 (_initialize_inftarg): Add new command: "set shell" to control whether
5179 a shell is used to start a process.
5181 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5183 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
5184 instead of find_register_by_number.
5185 (cannot_store_register): Likewise.
5187 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
5189 * dwarf2read.c: Replace fprintf (stderr, ...) by
5190 fprintf_unfiltered (gdb_stderr, ...).
5192 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
5194 * gdbserver/gdbserver.1: Document --attach.
5196 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5198 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
5200 * arm-tdep.c (arm_default_arm_le_breakpoint)
5201 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
5202 (arm_default_thumb_be_breakpoint): New. Initialize them from
5203 traditional breakpoint defines.
5204 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
5205 (arm_gdbarch_init): Initialize new breakpoint variables.
5206 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
5207 (arm_linux_init_abi): Initialize linux-specific breakpoint.
5208 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
5209 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
5211 (arm_netbsd_init_abi_common): ... here; new function.
5212 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
5213 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
5214 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
5215 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
5217 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
5219 * arm-tdep.h (enum arm_abi): New enum.
5220 (struct gdbarch_tdep): New structure.
5221 (LOWEST_PC): Provide a default.
5222 (arm_gdbarch_register_os_abi): Declare new function.
5223 * arm-tdep.c (arm_abi_names): New array.
5224 (process_note_abi_tag_sections): New function.
5225 (get_elfosabi): New function.
5226 (arm_gdbarch_register_os_abi): New function.
5227 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
5228 support for that ABI has been built in, then call the appropriate
5229 configuration routine. Use gdbarch_num_regs() to get the number
5231 (arm_dump_tdep): New function.
5232 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
5233 place-holder functions.
5234 (_initialize_arm_tdep): Register them.
5235 * config/arm/tm-arm.h (LOWEST_PC): Delete.
5237 * armnbsd-tdep.c: New file.
5238 * Makefile.in (armnbsd-tdep.o): Add dependencies.
5239 * config/arm/nbsd.mt (TDEPFILES): Add it.
5240 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
5242 * armnbsd-nat.c: Include regcache.h.
5243 * Makefile.in (armnbsd-nat.o): Update dependency list.
5245 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
5247 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5249 * gdbserver/Makefile.in: Fix typos in target rules.
5251 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5253 Fix part of PR gdb/267.
5254 * linespec.c (find_methods): Handle constructors specially for now.
5256 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
5258 * arm-tdep.c (arm_push_arguments): Eliminate special float type
5260 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
5261 standard_coerce_float_to_double().
5263 2002-02-14 Christopher Faylor <cgf@redhat.com>
5265 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
5268 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
5270 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
5271 find_variant_by_name, because it confuses the multiarch
5272 framework. Return NULL if there isn't an architecture with the
5273 user supplied name, instead of forcing a different one without
5274 recording the change with the multiarch machinery.
5275 (find_variant_by_name): Delete.
5277 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5279 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
5280 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
5282 2002-02-13 Martin M. Hunt <hunt@redhat.com>
5284 * stack.c (print_frame_info_base): When calling
5285 print_frame_info_listing_hook, set current_source_symtab.
5287 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5289 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
5290 and remove unused $(INCLUDE_DIR).
5291 Add regcache.c to OBS.
5292 Add generated register protocol files to clean target.
5293 Update dependencies for new objects, obsolete old target code.
5295 * gdbserver/linux-low.c: Remove all platform-specific code to
5296 new files. Remove various dead code. Update to use regcache
5298 * gdbserver/remote-utils.c (fromhex): Add return statement
5300 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
5302 (input_interrupt): Add integer parameter to match prototype
5303 of a signal handler.
5304 (outreg): Use register_data ().
5305 (prepare_resume_reply): Use gdbserver_expedite_regs.
5306 * gdbserver/server.c (main): Dynamically allocate own_buf because
5307 PBUFSIZ is no longer constant. Use registers_to_string () and
5308 registers_from_string ().
5309 * gdbserver/server.h: No longer include "defs.h". Add prototypes
5310 for error (), fatal (), and warning (). Update definition of
5311 PBUFSIZ to use regcache functionality. Add include guard.
5312 * gdbserver/utils.c (fatal): Add missing ``const''.
5313 (warning): New function.
5315 * regformats/regdat.sh: Include "regcache.h" in generated files.
5316 Provide init_registers () function.
5317 * regformats/regdef.h: Add prototype for set_register_cache ().
5320 * gdbserver/linux-arm-low.c: New file.
5321 * gdbserver/linux-i386-low.c: New file.
5322 * gdbserver/linux-ia64-low.c: New file.
5323 * gdbserver/linux-m68k-low.c: New file.
5324 * gdbserver/linux-mips-low.c: New file.
5325 * gdbserver/linux-ppc-low.c: New file.
5326 * gdbserver/linux-sh-low.c: New file.
5328 * gdbserver/regcache.c: New file.
5329 * gdbserver/regcache.h: New file.
5331 * gdbserver/low-linux.c: Removed obsolete file.
5333 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5335 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
5336 * config/i386/linux.mt: Likewise.
5337 * config/ia64/linux.mt: Likewise.
5338 * config/m68k/linux.mh: Likewise.
5339 * config/powerpc/linux.mh: Likewise.
5340 * config/mips/linux.mt: Likewise.
5342 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
5344 * config/i386/i386lynx.mh: Mark gdbserver variables
5345 as (currently) obsolete for this target.
5346 * config/i386/nbsd.mt: Likewise.
5347 * config/i386/nbsdelf.mt: Likewise.
5348 * config/m32r/m32r.mt: Likewise.
5349 * config/m68k/m68klynx.mh: Likewise.
5350 * config/m68k/nbsd.mt: Likewise.
5351 * config/m68k/sun3os4.mh: Likewise.
5352 * config/mips/vr5000.mt: Likewise.
5353 * config/ns32k/nbsd.mt: Likewise.
5354 * config/pa/hppabsd.mh: Likewise.
5355 * config/pa/hppaosf.mh: Likewise.
5356 * config/powerpc/nbsd.mt: Likewise.
5357 * config/rs6000/rs6000lynx.mh: Likewise.
5358 * config/s390/s390.mt: Likewise.
5359 * config/s390/s390x.mt: Likewise.
5360 * config/sparc/sparclynx.mh: Likewise.
5361 * config/sparc/sun4os4.mh: Likewise.
5362 * config/i386/x86-64linux.mt: Likewise.
5363 * config/sparc/linux.mh: Likewise.
5365 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
5367 * configure.tgt: Configure gdbserver only for known working
5368 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
5369 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
5370 SUBDIRS if it is configured. Update comment for ${nativefile}.
5371 * configure: Regenerated.
5373 2002-02-13 Michael Snyder <msnyder@redhat.com>
5375 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
5377 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
5378 (default_gcore_mach): Just return 0, work around a problem in bfd.
5379 (default_gcore_target): OK to return NULL if exec_bfd is null.
5380 (make_mem_sec): Use a cast, avoid a warning.
5382 * procfs.c (find_memory_regions_callback): Use a cast instead of
5383 calling host_pointer_to_address (which complains if
5384 sizeof (host pointer) != sizeof (target pointer)).
5385 (procfs_make_note_section): Avoid overflow in psargs string.
5387 * procfs.c (procfs_make_note_section): Make the default
5388 implementation return an error.
5390 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
5392 * procfs.c (procfs_make_note_section): Provide a default definition
5393 (for alpha-dec-osf4.0f). Fix typos.
5395 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
5397 * linux-proc.c: Add include of regcache.h.
5398 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
5400 2002-02-13 Andrew Cagney <ac131313@redhat.com>
5402 From 2002-01-18 Greg McGary <greg@mcgary.org>:
5403 * memattr.c (create_mem_region): Disallow useless empty region.
5404 Regions are half-open intervals, so allow [A..B) [B..C) as
5407 2002-02-13 Michael Chastain <mec@shout.net>
5409 * defs.h: Kill CONST_PTR.
5410 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
5411 * c-lang.c (c_builtin_types): Likewise.
5412 * ch-lang.c (ch_builtin_types): Likewise.
5413 * f-lang.c (f_builtin_types): Likewise.
5414 * language.c (unknown_builtin_types): Likewise.
5415 * m2-lang.c (m2_builtin_types): Likewise.
5416 * p-lang.c (pascal_builtin_types): Likewise.
5417 * scm-lang.c (c_builtin_types): Likewise.
5419 2002-02-13 Keith Seitz <keiths@redhat.com>
5421 * arm-tdep.h (arm_get_next_pc): Add declaration.
5423 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
5425 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
5426 with other related struct-returning functions.
5427 (arm_extract_struct_value_address): New function.
5428 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
5429 initialize float_format, double_format and long_double_format as
5430 appropriate to the endianness of the target.
5431 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
5432 (arm_use_struct_convention): Delete declaration.
5433 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5435 2002-02-13 Keith Seitz <keiths@redhat.com>
5437 * defs.h (core_addr_to_string_nz): New function.
5439 2002-02-13 Mark Kettenis <kettenis@gnu.org>
5441 Apply missing bits of 2002-01-15 patch.
5442 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
5443 (fill_fpregset): Use i387_fill_fsave.
5445 2002-02-12 Keith Seitz <keiths@redhat.com>
5447 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
5448 (core_addr_to_string_nz): New function.
5450 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5452 * arm-linux-nat.c: Really include arm-tdep.h.
5453 * config/arm/tm-linux.h (struct type, struct value): Declare.
5455 2002-02-11 Michael Snyder <msnyder@redhat.com>
5457 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
5458 (gcore section): Ifdef for Solaris and Unixware only.
5459 (procfs_do_thread_registers): Unixware needs one lwpstatus
5460 per thread (not one prstatus or pstatus).
5461 (procfs_make_note_section): Iterate only over kernel threads (lwps),
5462 not over all gdb threads. For unixware, call elfcore_write_pstatus
5463 once before iterating over threads.
5465 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5467 * arm-tdep.h: New file.
5468 * arm-tdep.c: Include arm-tdep.h.
5469 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5470 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5471 (arm_print_float_info, arm_register_type, convert_to_extended)
5472 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5473 (arm_extract_return_value, arm_register_name): Make static.
5474 (arm_software_single_step): Similarly. Fix types in declaration.
5475 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
5476 (arm_store_return_value, arm_store_struct_return): New functions.
5477 (arm_gdbarch_init): Register the above functions. Also register
5478 call_dummy_start_offset, sizeof_call_dummy_words,
5479 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
5480 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
5481 max_register_virtual_size, register_size. Set up
5482 prologue_cache.saved_regs here, rather than ...
5483 (_initialize_arm_tdep): ... here.
5484 * config/arm/tm-arm.h (struct type, struct value): Delete forward
5486 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
5487 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
5488 (arm_print_float_info, arm_register_type, convert_to_extended)
5489 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
5490 (arm_extract_return_value, arm_register_name): Delete declarations.
5491 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
5492 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
5493 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
5494 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
5495 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5496 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
5497 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
5498 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
5499 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
5500 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
5501 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
5502 (arm_get_next_pc): No-longer static -- these are needed by the RDI
5504 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
5505 * remote-rdi.c remote-rdp.c: Likewise.
5506 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
5507 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
5508 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
5511 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
5512 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
5513 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
5514 from non-ARM_ prefixed definitions.
5515 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
5517 * remote-rdi.c remote-rdp.c: Likewise.
5518 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
5520 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
5522 * arm-tdep.c (arm_frameless_function_invocation)
5523 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5524 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5525 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5526 (arm_pop_frame, arm_get_next_pc): Make static.
5527 (arm_gdbarch_init): Register above in gdbarch structure.
5528 (arm_read_fp): Renamed from arm_target_read_fp.
5529 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
5530 * config/arm/tm-arm.h (arm_frameless_function_invocation)
5531 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
5532 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
5533 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
5534 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
5535 (arm_pc_is_thumb_dummy): Delete declarations.
5536 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
5537 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
5538 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
5539 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
5541 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
5543 * symtab.c (compare_search_syms): New function.
5544 (sort_search_symbols): New function.
5545 (search_symbols): Sort symbols after searching rather than
5548 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5550 * NEWS: Linux -> GNU/Linux.
5552 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5554 * gdbarch.sh: For for level one methods, disallow a definition
5555 when partially multi-arched. Add comments explaining rationale.
5556 * gdbarch.h: Re-generate.
5558 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5560 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
5563 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5565 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
5567 * gdbarch.c: Re-generate.
5569 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5571 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
5572 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
5575 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5577 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
5579 (PUSH_ARGUMENTS): Switch to using predefault.
5580 * gdbarch.c: Regenerate.
5582 2002-02-10 Andrew Cagney <ac131313@redhat.com>
5584 * valops.c (PUSH_ARGUMENTS): Delete definition.
5585 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
5586 partial. Default to default_push_arguments.
5587 * gdbarch.h, gdbarch.c: Regenerate.
5589 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5591 * defs.h (throw_exception): Rename return_to_top_level. Update
5593 * utils.c (error_stream, internal_verror, quit): Ditto.
5594 * top.c (throw_exception, catcher): Ditto.
5595 * sparclet-rom.c (sparclet_load): Ditto.
5596 * remote.c (interrupt_query, minitelnet): Ditto.
5597 * remote-sds.c (interrupt_query): Ditto.
5598 * remote-mips.c (mips_error, mips_kill): Ditto.
5599 * ocd.c (interrupt_query): Ditto.
5600 * monitor.c (monitor_interrupt_query): Ditto.
5601 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
5602 * target.h: Update comment.
5604 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
5606 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5608 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
5609 default_double_format.
5610 * gdbarch.h, gdbarch.c: Re-generate.
5611 * findvar.c (floatformat_unknown): Delete variable definition.
5612 * doublest.h (floatformat_unknown): Delete variable declaration.
5614 2002-02-09 Jim Blandy <jimb@redhat.com>
5616 * stabsread.c (read_type): Add code to parse Sun's syntax for
5617 prototyped function types.
5619 2002-02-09 Andrew Cagney <ac131313@redhat.com>
5621 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
5622 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
5624 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5626 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
5627 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
5628 now _initialize_xcoffsolib gets called again and overrides the
5629 commands from solib.c in a native configuration.
5631 2002-02-09 Mark Kettenis <kettenis@gnu.org>
5633 * doublest.c (store_typed_floating): Don't try to return a value.
5636 2002-02-08 Jim Blandy <jimb@redhat.com>
5638 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
5639 is prototyped and has no arguments, print its argument list as
5642 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5644 * MAINTAINERS (write-after-approval): Add myself.
5645 (paper-trail): I've escaped!
5647 2002-02-08 Christopher Faylor <cgf@redhat.com>
5649 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
5651 (_initialize_check_for_gdb_ini): Ditto.
5653 2002-02-08 Martin M. Hunt <hunt@redhat.com>
5655 * win32-nat.c (cygwin_pid_to_str): Fix typo.
5656 xaprintf -> xasprintf.
5658 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
5660 * win32-nat.c: Remove use of printf and sprintf functions.
5662 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
5664 * arm-tdep.c (arm_frame_chain_valid): Make static.
5665 (arm_push_arguments): Likewise.
5666 (arm_gdbarch_init): New function.
5667 (_initialize_arm_tdep): Call it.
5668 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
5669 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
5670 (FRAME_CHAIN_VALID): Delete.
5671 (arm_frame_chain_valid): Delete declaration.
5672 (PUSH_ARGUMENTS): Delete.
5673 (arm_push_arguments): Delete declaration.
5674 (CALL_DUMMY_P): Delete.
5676 2002-02-08 Andrew Cagney <ac131313@redhat.com>
5677 Corinna Vinschen <vinschen@redhat.com>
5679 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
5680 on builtin float types.
5682 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
5684 * utils.c: Include <curses.h> before "bfd.h".
5685 * tui/tui-hooks.c: Likewise.
5686 * tui/tui.c: Likewise.
5687 * tui/tuiCommand.c: Likewise.
5688 * tui/tuiData.c: Likewise.
5689 * tui/tuiDataWin.c: Likewise.
5690 * tui/tuiDisassem.c: Likewise.
5691 * tui/tuiGeneralWin.c: Likewise.
5692 * tui/tuiIO.c: Likewise.
5693 * tui/tuiLayout.c: Likewise.
5694 * tui/tuiRegs.c: Likewise.
5695 * tui/tuiSource.c: Likewise.
5696 * tui/tuiSourceWin.c: Likewise.
5697 * tui/tuiStack.c: Likewise.
5698 * tui/tuiWin.c: Likewise.
5700 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
5702 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
5703 to include space for pseudoregs as well. Update loops accordingly.
5704 (sh_fp_frame_init_saved_regs): Ditto.
5705 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
5707 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5709 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
5710 Add Richard Earnshaw to Arm maintainers.
5712 2002-02-07 Andrew Cagney <ac131313@redhat.com>
5714 * defs.h (warning_begin): Delete declaration.
5716 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
5719 2002-02-07 Michael Snyder <msnyder@redhat.com>
5721 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5722 Logic bug, remove misplaced else.
5724 2002-02-07 Klee Dienes <klee@apple.com>
5726 * fork-inferior.c (fork_inferior): Add '!' to the list of
5727 characters that need to be quoted when building a string for the
5728 shell. Quote '!' specifically with a backslash, since CSH chokes
5729 when trying to evaluate "str!str".
5731 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
5733 * rdi-share/host.h: Only provide a typedef for bool if it is not
5736 2002-02-04 Michael Snyder <msnyder@redhat.com>
5738 * breakpoint.h (enum bptype): Add new overlay event bp type.
5739 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
5741 * breakpoint.c (create_internal_breakpoint): New function.
5742 (internal_breakpoint_number): Moved into create_internal_breakpoint.
5743 (create_longjmp_breakpoint): Use create_internal_breakpoint.
5744 (create_thread_event_breakpoint): Ditto.
5745 (create_solib_event_breakpoint): Ditto.
5746 (create_overlay_event_breakpoint): New function.
5747 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
5748 (update_breakpoints_after_exec): Delete and re-initialize
5749 overlay event breakpoints after an exec. Add FIXME comment
5750 about longjmp breakpoint.
5751 (print_it_typical): Ignore overlay event breakpoints.
5752 (print_one_breakpoint): Ditto.
5754 (bpstat_what): Do not stop for overlay event breakpoints.
5755 (delete_breakpoint): Don't delete overlay event breakpoints.
5756 (breakpoint_re_set_one): Delete the overlay event breakpoint.
5757 (breakpoint_re_set): Re-create overlay event breakpoint.
5759 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
5760 (overlay_manual_command): Disable overlay breakpoints.
5761 (overlay_off_command): Disable overlay breakpoints.
5763 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5765 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
5766 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
5767 to here from config/tm-arm.h.
5768 (coff_sym_is_thumb): Make static.
5769 (arm_elf_make_msymbol_special): New function.
5770 (arm_coff_make_msymbol_special): New function.
5771 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
5772 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
5773 (coff_sym_is_thumb): Delete declaration.
5774 (arm_elf_make_msymbol_special): Declare.
5775 (arm_coff_make_msymbol_special): Declare.
5776 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
5777 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
5779 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5781 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
5783 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
5785 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
5786 * gdbarch.c gdbarch.h: Regenerate.
5787 * arch-utils.c (default_print_float_info): New function.
5788 * arch-utils.h (default_print_float_info): Prototype it.
5789 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
5790 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
5791 (PRINT_FLOAT_INFO): Document it.
5793 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
5794 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
5795 (PRINT_FLOAT_INFO): Define.
5797 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5799 * win32-nat.c (_initialize_check_for_gdb_ini):
5800 Add typecast to sprintf argument to suppress a warning.
5802 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
5804 * win32-nat.c (last_sig): Changed type of variable to target_signal,
5805 to allow easier handling of pass state.
5806 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
5807 that gives exception name and address.
5808 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
5809 and set last_sig value to ourstatus->value.sig. Some missing
5811 (child_continue): Correctly report continue_status.
5812 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
5813 TARGET_SIGNAL_0 (new default value).
5814 (child_resume): consider sig argument passed to decide if
5815 the exception should be passed to debuggee or not.
5817 2002-02-05 Michael Snyder <msnyder@redhat.com>
5819 * regcache.c (fetch_register): Call target_fetch_register
5820 only if we don't call FETCH_PSEUDO_REGISTER.
5821 (store_register): Call target_store_register only if we
5822 don't call STORE_PSEUDO_REGISTER.
5824 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
5826 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
5827 ELF_MAKE_MSYMBOL_SPECIAL.
5828 * gdbarch.c, gdbarch.h: Regenerate.
5829 * arch-utils.c (default_make_msymbol_special): New function.
5830 * arch-utils.h (default_make_msymbol_special): Export.
5831 * elfread.c (elf_symtab_read): Compile use of
5832 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
5834 * coffread.c (coff_symtab_read): Ditto, for
5835 COFF_MAKE_MSYMBOL_SPECIAL.
5837 2002-02-05 Jim Blandy <jimb@redhat.com>
5839 * solib-svr4.c (svr4_truncate_ptr): New function.
5840 (svr4_relocate_section_addresses): Do the address arithmetic with
5841 the appropriate truncation for target addresses, even when
5842 CORE_ADDR is larger than a target address.
5844 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5846 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
5849 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5851 * gdbserver/linux-low.c (kill_inferior): Remove commented out
5854 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5856 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
5858 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5860 * gdbserver/linux-low.c: Remove unused include files.
5862 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5864 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
5865 (read_inferior_memory): Use it.
5866 (write_inferior_memory): Likewise.
5868 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5870 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
5871 grubbing through sys_errlist.
5873 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
5875 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
5877 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5878 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
5880 2002-02-04 Andrew Cagney <ac131313@redhat.com>
5882 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
5883 (do_sfunc, set_cmd_sfunc): New functions.
5885 * command.h (struct cmd_list_element): Add field func.
5886 * cli/cli-decode.h (struct cmd_list_element): Ditto.
5887 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
5888 * cli/cli-decode.h: Ditto.
5890 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
5891 (help_all, help_cmd_list): Ditto.
5892 (find_cmd, complete_on_cmdlist): Ditto.
5893 * top.c (execute_command): Ditto.
5895 * cli/cli-setshow.c (do_setshow_command): Call func instead of
5898 * infcmd.c (notice_args_read): Fix function signature.
5900 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
5901 * cli/cli-decode.c (add_set_cmd): Ditto.
5902 * utils.c (initialize_utils): Ditto.
5903 * maint.c (_initialize_maint_cmds): Ditto.
5904 * infrun.c (_initialize_infrun): Ditto.
5905 * demangle.c (_initialize_demangler): Ditto.
5906 * remote.c (add_packet_config_cmd): Ditto.
5907 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5908 * cris-tdep.c (_initialize_cris_tdep): Ditto.
5909 * proc-api.c (_initialize_proc_api): Ditto.
5910 * kod.c (_initialize_kod): Ditto.
5911 * valprint.c (_initialize_valprint): Ditto.
5912 * top.c (init_main): Ditto.
5913 * infcmd.c (_initialize_infcmd): Ditto.
5914 * corefile.c (_initialize_core): Ditto.
5915 * arm-tdep.c (_initialize_arm_tdep): Ditto.
5916 * arch-utils.c (initialize_current_architecture): Ditto.
5917 (_initialize_gdbarch_utils): Ditto.
5918 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
5920 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
5921 * wince.c (_initialize_inftarg): Ditto.
5922 * symfile.c (_initialize_symfile): Ditto.
5923 * mips-tdep.c (_initialize_mips_tdep): Ditto.
5924 * language.c (_initialize_language): Ditto.
5925 * arc-tdep.c (_initialize_arc_tdep): Ditto.
5927 2002-02-04 Michael Snyder <msnyder@redhat.com>
5929 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
5931 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5933 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
5934 Add rules for building the register data files.
5936 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5938 * regformats/regdat.sh: Add braces to the definition of
5939 expedite_regs_${arch}.
5941 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
5943 * regformats/regdef.h (struct reg): Add comment describing the
5944 requirements for offset and size fields.
5946 2002-02-04 Andreas Schwab <schwab@suse.de>
5948 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
5949 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
5951 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
5953 * gdbarch.sh (copyright): Update years in generated header.
5954 (SMASH_TEXT_ADDRESS): Add rule.
5955 * gdbarch.h, gdbarch.c: Re-generate.
5956 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
5957 * dbxread.c: Likewise.
5958 * dwarfread.c: Likewise.
5959 * elfread.c: Likewise.
5960 * somread.c: Likewise.
5962 * arm-tdep.c (arm_smash_text_address): New function.
5963 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
5965 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
5967 Add support for hardware watchpoints on win32 native.
5968 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
5969 CONTEXT_DEBUG_REGISTERS.
5970 (dr variable): New variable. Static array containing a local copy
5972 (debug_registers_changed): New variable. Reflects when debug registers
5973 are changed and need to be written to inferior.
5974 (debug_registers_used): New variable. Reflects when any debug register
5975 was set, used when new threads are created.
5976 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
5978 (thread_rec): Set dr array if id is the thread of current_event .
5979 (child_continue, child_resume): Change the debug registers for all
5980 threads if debug_registers_changed.
5981 (child_add_thread): Change the debug registers if debug_registers_used.
5982 * config/i386/cygwin.mh: Add use of i386-nat.o file.
5983 Link nm.h to new nm-cygwin.h file.
5984 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
5985 of hardware registers.
5987 2002-02-03 Andrew Cagney <ac131313@redhat.com>
5989 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
5990 Restore behavour broken by 2002-01-20 Andrew Cagney
5991 <ac131313@redhat.com> IEEE_FLOAT removal.
5993 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
5995 * c-valprint.c (c_val_print): Pass a proper valaddr to
5996 cp_print_class_method.
5997 * valops.c (search_struct_method): If there is only one method
5998 and args is NULL, return that method.
6000 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6002 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
6003 accessing tag_name directly.
6005 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6007 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
6008 of accessing tag_name directly.
6010 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
6013 * gdbtypes.c (replace_type): New function.
6014 * gdbtypes.h (replace_type): Add prototype.
6015 * stabsread.c (read_type): Use replace_type.
6017 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
6019 * Makefile.in (memattr.o): Add missing dependencies rule.
6021 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6023 * breakpoint.c (break_at_finish_command): Really export.
6024 (break_at_finish_at_depth_command): Ditto.
6025 (tbreak_at_finish_command): Ditto.
6026 * hppa-tdep.c: Include completer.h.
6027 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
6028 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
6030 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6032 * utils.c (do_write): New function.
6033 (error_stream): Rewrite combining the code from error_begin and
6035 (verror): Rewrite using error_stream.
6036 (error_begin): Delete function.
6038 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6040 * utils.c (error_begin): Make static.
6041 * defs.h (error_begin): Delete declaration.
6043 * linespec.c (cplusplus_error): Replace cplusplus_hint.
6044 (decode_line_1): Use cplusplus_error instead of error_begin,
6045 cplusplus_hint and return_to_top_level.
6046 * coffread.c (coff_symfile_read): Use error instead of error_begin
6047 and return_to_top_level.
6048 * infrun.c (default_skip_permanent_breakpoint): Ditto.
6050 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6052 * language.h (type_error, range_error): Make string parameter
6054 * language.c (warning_pre_print): Delete extern declaration.
6055 * dwarfread.c (warning_pre_print): Ditto.
6056 * language.c (type_error, range_error): Rewrite to use verror and
6057 vwarning instead of warning_begin.
6059 2002-02-01 Michael Snyder <msnyder@redhat.com>
6061 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
6062 (set_ignore_count): Move misplaced comment back where it belongs.
6064 2002-02-01 Andrew Cagney <ac131313@redhat.com>
6066 * command.h (NO_FUNCTION): Delete macro.
6067 * cli/cli-decode.h (NO_FUNCTION): Ditto.
6068 * top.c (execute_command): Replace NO_FUNCTION with NULL.
6069 * tracepoint.c (_initialize_tracepoint): Ditto.
6070 * cli/cli-decode.c (add_set_cmd): Ditto.
6071 * cli/cli-cmds.c (init_cli_cmds): Ditto.
6073 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6075 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
6076 Update ``this'' pointer when calling virtual functions.
6078 2002-02-01 Michael Snyder <msnyder@redhat.com>
6080 * breakpoint.c (create_temp_exception_breakpoint): Delete.
6081 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
6083 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
6085 * regformats/reg-arm.dat: New file.
6086 * regformats/reg-i386.dat: New file.
6087 * regformats/reg-ia64.dat: New file.
6088 * regformats/reg-m68k.dat: New file.
6089 * regformats/reg-mips.dat: New file.
6090 * regformats/reg-ppc.dat: New file.
6091 * regformats/reg-sh.dat: New file.
6092 * regformats/regdef.h: New file.
6093 * regformats/regdat.sh: New file.
6095 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
6097 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
6098 (arm_frame_args_address, arm_frame_locals_address): New functions.
6099 (arm_frame_num_args): New function.
6100 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
6101 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
6102 (FRMA_NUM_ARGS): Call arm_frame_num_args.
6104 2002-01-31 Michael Snyder <msnyder@redhat.com>
6106 * breakpoint.c (break_at_finish_command): Export.
6107 (break_at_finish_at_depth_command): Export.
6108 (tbreak_at_finish_command): Export.
6109 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
6110 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
6111 "tbreak" commands, which are HPPA specific.
6113 * printcmd.c (disassemble_command): Remove an ancient
6114 artifact of an old merge.
6116 * symfile.h (enum overlay_debugging_state):
6117 Define enum constant values for overlay mode.
6118 * symfile.c (overlay_debugging): Use enums instead of literals.
6119 (overlay_is_mapped, overlay_auto_command,
6120 overlay_manual_command): Ditto.
6122 * breakpoint.c (insert_breakpoints, remove_breakpoint,
6123 breakpoint_here_p, breakpoint_inserted_here_p,
6124 breakpoint_thread_match, bpstat_stop_status,
6125 describe_other_breakpoints, check_duplicates, clear_command):
6126 Coding standard fixes.
6128 * target.c (target_xfer_memory): Add spaces, coding standard.
6129 (do_xfer_memory): Add missing line to trust-readonly
6130 code: check bfd SEC_READONLY flag for section.
6132 2002-01-31 Andrew Cagney <ac131313@redhat.com>
6134 * PROBLEMS: Fix typo, 5.1->5.1.1.
6136 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
6138 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
6139 data symbols, since we search based on textlow and texthigh.
6140 (find_pc_sect_symtab): Likewise.
6142 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6144 * defs.h (vwarning): Declare.
6145 * utils.c (vwarning): New function.
6146 (warning): Call vwarning.
6147 (warning_begin): Delete function.
6149 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
6150 the warning message.
6151 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
6154 2002-01-30 Michael Snyder <msnyder@redhat.com>
6156 * NEWS: Mention "set trust-readonly-sections" command.
6157 Mention generate-core-file command.
6159 2002-01-15 Michael Snyder <msnyder@redhat.com>
6161 * target.c: New command, "set trust-readonly-sections on".
6162 (do_xfer_memory): Honor the suggestion to trust readonly sections
6163 by reading them from the object file instead of from the target.
6164 (initialize_targets): Register command "set trust-readonly-sections".
6166 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6168 * parse.c (target_map_name_to_register): Simplify, search regs and
6169 pseudo-regs using a single loop.
6171 2002-01-30 Andrew Cagney <ac131313@redhat.com>
6173 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
6175 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
6177 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
6178 * config/i386/i386v42mp.mh: Add i387-nat.o .
6179 * i386v4-nat.c: Include i387-nat.h.
6180 (supply_fpregset): Use i387_supply_fsave.
6181 (fill_fpregset): Use i387_fill_fsave.
6183 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
6185 * arm-tdep.c (arm_call_dummy_words): Define.
6186 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
6187 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
6188 (CALL_DUMMY_WORDS): Define.
6189 (arm_call_dummy_words): Declare.
6190 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
6191 (arm_linux_call_dummy_words): Declare.
6193 2002-01-30 Andreas Schwab <schwab@suse.de>
6195 * m68klinux-nat.c: Fix last change to use regcache_collect
6196 instead of referencing registers[] directly.
6198 2002-01-29 Andrew Cagney <ac131313@redhat.com>
6200 * parse.c (target_map_name_to_register): Delete code wrapped in
6201 #ifdef REGISTER_NAME_ALIAS_HOOK.
6203 2002-01-28 Michael Snyder <msnyder@redhat.com>
6205 * regcache.c (legacy_read_register_gen): Need to be able to
6206 read pseudo-register as well as real register.
6207 (legacy_write_register_gen): Ditto.
6209 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6211 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6212 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
6213 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
6214 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
6215 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
6216 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
6217 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
6218 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
6219 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
6220 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
6221 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
6222 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
6223 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
6224 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
6225 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
6226 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
6227 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
6228 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
6229 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
6230 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
6232 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6234 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
6235 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
6236 (initialize_current_architecture): Update target_byte_order using
6237 information from BFD.
6238 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
6239 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
6241 2002-01-28 Andrew Cagney <ac131313@redhat.com>
6243 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
6244 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
6246 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
6247 #ifdef INVALID_FLOAT.
6248 * infcmd.c (do_registers_info): Ditto.
6249 * values.c (unpack_double): Ditto. Add comment.
6251 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
6252 already commented out.
6254 2002-01-26 Andreas Schwab <schwab@suse.de>
6256 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
6257 * m68klinux-nat.c: Update ptrace interface for fetching/storing
6258 registers and add support for PTRACE_GETREGS.
6260 2002-01-24 Andrew Cagney <ac131313@redhat.com>
6262 GDB 5.1.1 released from 5.1 branch.
6263 * NEWS: Add 5.1.1 news.
6264 * README: Sync with 5.1 branch.
6266 2002-01-23 Fred Fish <fnf@redhat.com>
6268 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
6269 stabstring on initial malloc. Reallocing will copy it for us,
6272 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6274 * Makefile.in (hpread_h): Delete.
6275 (HFILES_NO_SRCDIR): Remove hpread.h.
6276 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
6277 (hpread.o): Update dependencies.
6278 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
6280 * hp-psymtab-read.c: Remove file.
6281 * hp-symtab-read.c: Remove file.
6282 * hpread.h: Remove file.
6284 * hpread.c: Merge all contents of hp-psymtab-read.c,
6285 hp-symtab-read.c and hpread.h into this file, as it was prior to
6288 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
6289 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
6290 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
6291 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
6293 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
6295 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
6296 fill_gregset): Call gdbarch_tdep() just once, assign result to
6297 variable and use that, instead of calling the function several
6300 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6302 * configure.host: Accept sparcv9 as alias for sparc64.
6303 * configure.tgt: Likewise.
6305 2002-01-22 Kevin Buettner <kevinb@redhat.com>
6307 * solib-aix5.c (build_so_list_from_mapfile)
6308 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
6309 arguments is not reversed.
6310 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
6311 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
6313 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
6315 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
6316 modified version of obsolete sh_fetch_pseudo_register.
6317 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
6318 (sh4_register_read): New function.
6319 (sh_pseudo_register_write): New function. Renamed and modified
6320 version of obsolete sh_store_pseudo_register.
6321 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
6322 (sh4_register_write): New function.
6323 (sh_gdbarch_init): Remove setting of gdbarch function
6324 fetch_pseudo_register and store_pseudo_register. Remove setting of
6325 register_convert_to_raw, register_convert_to_virtual,
6326 register_convertible.
6327 (sh_sh4_register_convertible): Delete. No longer needed. All is
6328 taken care by architecture specific functions
6329 register_read/register_write.
6330 (sh_sh4_register_convert_to_virtual): Make static.
6331 (sh_sh4_register_convert_to_raw): Ditto.
6333 2002-01-22 Andrew Cagney <ac131313@redhat.com>
6335 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
6336 (floatformat_is_nan, floatformat_mantissa): Ditto.
6338 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
6339 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
6340 builtin_type_ieee_double_little,
6341 builtin_type_ieee_double_littlebyte_bigword,
6342 builtin_type_m68881_ext, builtin_type_i960_ext,
6343 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
6344 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
6345 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
6346 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
6348 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
6350 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
6351 parameter. Set frameless flag if it exists and depended of
6352 whether the scanned function is frameless or not.
6353 (xstormy16_skip_prologue): If function is frameless, return
6354 result of xstormy16_scan_prologue().
6355 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
6358 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
6360 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
6361 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
6362 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
6363 sh_sh4_register_byte, sh_sh4_register_raw_size,
6364 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
6365 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
6366 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
6367 sh_store_pseudo_register, sh_do_pseudo_register): Call
6368 gdbarch_tdep() just once, assign result to variable and use that,
6369 instead of calling the function several times.
6371 2002-01-20 Mark Kettenis <kettenis@gnu.org>
6373 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
6374 macros instead of LAST_FPU_CTRL_REGNUM.
6375 (store_register): Likewise.
6377 2002-01-21 Jim Blandy <jimb@redhat.com>
6379 * infcmd.c (run_command): Check that the `exec' target layer's BFD
6380 is up-to-date before running the program, not just when a program
6383 2002-01-21 Fred Fish <fnf@redhat.com>
6385 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
6386 when we have found all instructions we are looking for.
6388 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6390 * arm-tdep.c (arm_register_name): New function.
6391 (arm_registers_names): Make static.
6392 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
6393 (arm_register_name): Declare.
6394 (REGISTER_NAME): Use it.
6396 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
6397 Kevin Buettner <kevinb@redhat.com>
6399 Convert arm targets to new FRAME interface.
6400 * arm-tdep.c (struct frame_extra_info): Remove fsr.
6401 (arm_frame_find_save_regs): Delete.
6402 (arm_frame_init_saved_regs): New.
6403 (arm_init_extra_frame_info): Alloacte saved_regs as required.
6404 Allocate extra_info as required. Convert all uses of fsr.regs
6405 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
6407 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
6408 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
6409 (check_prologue_cache, save_prologue_cache): Likewise.
6410 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
6411 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
6412 (FRAME_FIND_SAVED_REGS): Delete.
6413 (arm_frame_find_saved_regs): Delete prototype.
6414 (arm_frame_init_saved_regs): New prototype.
6415 (FRAME_INIT_SAVED_REGS): Define.
6417 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6419 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
6421 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6423 From Jeff Law <law@redhat.com>:
6424 * infttrace.c: Include <sys/pstat.h>.
6425 (child_pid_to_exec_file): Revamp. Use pstat call to get the
6426 exec file if the ttrace equivalent fails.
6428 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6430 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
6431 (closeLogFile): Ditto.
6433 2002-01-20 Michael Chastain <mec@shout.net>
6435 * top.c (print_gdb_version): Bump copyright year to 2002.
6437 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6439 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
6440 Zannoni and Eli Zaretskii.
6442 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6444 * buildsym.c: Update copyright years.
6445 * c-typeprint.c: Likewise.
6446 * dwarf2read.c: Likewise.
6447 * f-typeprint.c: Likewise.
6448 * gdbtypes.c: Likewise.
6449 * gdbtypes.h: Likewise.
6450 * hp-symtab-read.c: Likewise.
6451 * hpread.c: Likewise.
6452 * mdebugread.c: Likewise.
6453 * p-typeprint.c: Likewise.
6455 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6457 * remote-sim.c (gdbsim_open): Simplify code testing the macro
6458 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
6459 byte-order selectable.
6460 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
6461 * arch-utils.c: Ditto.
6462 (set_endian): Ditto.
6463 (set_endian_from_file): Ditto.
6464 * gdbserver/low-sim.c (create_inferior): Ditto.
6465 * gdbarch.sh: Ditto.
6466 * gdbarch.h: Re-generate.
6467 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6468 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
6469 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
6470 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6471 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6472 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
6473 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
6474 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
6476 * config/mips/tm-wince.h: Remove #undef of macro
6477 TARGET_BYTE_ORDER_SELECTABLE.
6478 * config/sh/tm-wince.h: Ditto.
6480 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6482 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
6483 member function fields. Add accessor macro
6484 TYPE_FN_FIELD_ARTIFICIAL.
6485 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
6486 * c-typeprint.c (c_type_print_base): Skip artificial member
6489 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6491 * f-typeprint.c: Delete unused function f_type_print_args.
6492 * p-typeprint.c: Delete unused function pascal_type_print_args.
6494 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
6496 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
6497 comment. Add ``artificial'' to ``union field_location''.
6499 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
6501 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
6502 * mdebugread.c (parse_symbol): Likewise.
6503 * stabsread.c (define_symbol): Likewise.
6504 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
6505 initializing TYPE_FIELD_BITPOS to n (obsolete).
6506 (hpread_doc_function_type): Likewise.
6507 * hpread.c (hpread_function_type): Likewise.
6509 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6511 * configure.in (host_makefile_frag): Only require a host makefile
6512 fragment when a native build.
6513 * configure: Re-generate.
6515 2002-01-20 Andrew Cagney <ac131313@redhat.com>
6517 * doublest.h (floatformat_from_type): Declare.
6518 * doublest.c (floatformat_from_type): New function.
6519 (convert_typed_floating): Use.
6521 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
6522 call to function floatformat_from_type.
6524 * gdbarch.sh (IEEE_FLOAT): Delete.
6525 * gdbarch.h, gdbarch.c: Re-generate.
6526 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
6527 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
6528 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
6529 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
6530 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
6531 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
6532 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
6533 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
6534 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
6535 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
6536 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
6537 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
6539 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
6540 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6541 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6542 * sh-tdep.c (sh_gdbarch_init): Ditto.
6543 * mips-tdep.c (mips_gdbarch_init): Ditto.
6544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6545 * cris-tdep.c (cris_gdbarch_init): Ditto.
6547 2002-01-20 Jiri Smid <smid@suse.cz>
6549 * configure.host, configure.tgt: Support x86-64.
6550 * NEWS: Note new target x86-64.
6552 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
6553 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
6554 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
6555 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
6556 x86-64-linux-nat.o): Fix dependencies.
6558 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6560 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
6561 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
6562 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
6563 * config/sparc/xm-sun4os4.h: Delete file.
6564 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
6566 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6568 * config/sparc/sparclynx.mh (XM_FILE): Delete.
6569 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
6570 * config/m68k/m68klynx.mh (XM_FILE): Delete.
6571 * config/i386/i386lynx.mh (XM_FILE): Delete.
6572 * config/rs6000/xm-rs6000ly.h: Delete file.
6573 * config/sparc/xm-sparclynx.h: Delete file.
6574 * config/m68k/xm-m68klynx.h: Delete file.
6575 * config/i386/xm-i386lynx.h: Delete file.
6576 * config/xm-lynx.h: Delete file.
6577 * config/djgpp/fnchange.lst: Update.
6579 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6581 * alpha-tdep.c (alpha_register_byte): New function.
6582 (alpha_register_raw_size): Ditto.
6583 (alpha_register_virtual_size): Ditto.
6584 (alpha_skip_prologue_internal): Renamed from
6585 alpha_skip_prologue.
6586 (alpha_skip_prologue): New version that calls
6587 alpha_skip_prologue_internal.
6588 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
6589 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
6590 second argument from alpha_skip_prologue.
6591 (REGISTER_BYTE): Use alpha_register_byte.
6592 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
6593 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
6594 (FRAMELESS_FUNCTION_INVOCATION): Use
6595 generic_frameless_function_invocation_not.
6596 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
6597 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
6599 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6601 * config/mips/xm-news-mips.h: Delete file.
6602 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
6604 * config/m88k/xm-m88k.h: Delete file.
6605 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
6606 * config/m88k/xm-delta88v4.h: Ditto.
6607 * config/m88k/xm-delta88.h: Ditto.
6609 * config/alpha/xm-fbsd.h: Delete file.
6610 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
6612 * config/sparc/xm-sparc.h: Delete file.
6613 * Makefile.in (xm-sun4os4.h): Delete dependency.
6614 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
6615 * config/sparc/xm-sun4os4.h: Ditto.
6616 * config/sparc/xm-linux.h: Ditto.
6618 * config/i386/xm-windows.h: Delete file.
6620 2002-01-19 Andrew Cagney <ac131313@redhat.com>
6622 * utils.c: Include <sys/param.h> for MAXPATHLEN.
6623 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
6625 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6627 * alpha-tdep.c (alpha_call_dummy_words): New.
6628 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
6629 (CALL_DUMMY_P): Define.
6630 (CALL_DUMMY_WORDS): Define.
6631 (SIZEOF_CALL_DUMMY_WORDS): Define.
6633 2002-01-19 Per Bothner <per@bothner.com>
6635 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
6636 isn't NULL, which can happen with some gcj-3.x-produced code.
6638 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
6640 * alpha-tdep.c (alpha_register_virtual_type): New function.
6641 (alpha_init_frame_pc_first): Ditto.
6642 (alpha_fix_call_dummy): Ditto.
6643 (alpha_store_struct_return): Ditto.
6644 (alpha_extract_struct_value_address): Ditto.
6645 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
6646 alpha_register_virtual_type.
6647 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
6648 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
6649 alpha_extract_struct_value_address.
6650 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
6651 (INIT_FRAME_PC): Use init_frame_pc_noop.
6652 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
6654 2002-01-19 Mark Kettenis <kettenis@gnu.org>
6656 * i386gnu-nat.c: Include "i386-tdep.h".
6657 (fetch_fpregs): Simplify code dealing with uninitialized floating
6658 point states such that it doesn't require FP7_REGNUM.
6660 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6662 * alpha-tdep.c (frame_extra_info): New.
6663 (alpha_find_saved_regs): Make static. Use
6665 (alpha_frame_init_saved_regs): New function.
6666 (alpha_frame_saved_pc): Use frame->extra_info.
6667 (temp_saved_regs): Don't declare as struct frame_saved_regs.
6668 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
6669 (init_extra_frame_info): Rename to...
6670 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
6671 (alpha_print_extra_frame_info): New function.
6672 (alpha_frame_locals_address): Ditto.
6673 (alpha_frame_args_address): Ditto.
6674 (alpha_pop_frame): Use frame->extra_info.
6675 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
6676 alpha_frame_args_address.
6677 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
6678 (alpha_find_saved_regs): Remove prototype.
6679 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
6680 (EXTRA_FRAME_INFO): Remove.
6681 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
6682 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
6684 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6686 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
6687 (alpha_cannot_fetch_register): Ditto.
6688 (alpha_cannot_store_register): Ditto.
6689 (alpha_register_convertible): Ditto.
6690 (alpha_use_struct_convention): Ditto.
6691 * config/alpha/tm-alpha.h: Update copyright years.
6692 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
6693 (INNER_THAN): Use core_addr_lessthan.
6694 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
6695 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
6696 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
6697 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
6698 (FRAME_CHAIN): Remove unnecessary cast.
6700 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6702 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
6705 2002-01-18 Andrew Cagney <ac131313@redhat.com>
6707 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
6708 * monitor.c, remote-array.c, remote-bug.c: Ditto.
6709 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
6710 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
6711 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
6712 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
6713 * x86-64-linux-nat.c: Ditto.
6715 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6717 * alpha-tdep.c (alpha_register_name): New function.
6718 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
6719 (REGISTER_NAME): Define.
6721 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6723 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
6725 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6727 * alpha-tdep.c: Update copyright years.
6728 (alpha_next_pc): New function.
6729 (alpha_software_single_step): Ditto.
6730 * config/alpha/tm-alpha.h: Add prototype for
6731 alpha_software_single_step.
6733 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
6735 * alphabsd-nat.c: Update copyright years.
6736 (fill_gregset): Use regcache_collect.
6737 (fill_fpregset): Likewise.
6738 (fetch_inferior_registers): Only fetch integer registers
6739 if requested to do so.
6740 (store_inferior_registers): Only store integer registers
6741 if requested to do so.
6743 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6745 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
6746 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
6747 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
6748 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
6749 * config/alpha/fbsd.mh (XDEPFILES): Delete.
6750 * config/arm/linux.mh (XDEPFILES): Delete.
6751 * config/arm/nbsd.mh (XDEPFILES): Delete.
6752 * config/i386/i386dgux.mh (XDEPFILES): Delete.
6753 * config/i386/i386sol2.mh (XDEPFILES): Delete.
6754 * config/i386/i386m3.mh (XDEPFILES): Delete.
6755 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
6756 * config/i386/i386gnu.mh (XDEPFILES): Delete.
6757 * config/i386/fbsd.mh (XDEPFILES): Delete.
6758 * config/i386/i386bsd.mh (XDEPFILES): Delete.
6759 * config/i386/i386sco5.mh (XDEPFILES): Delete.
6760 * config/i386/i386v4.mh (XDEPFILES): Delete.
6761 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
6762 * config/i386/i386sco4.mh (XDEPFILES): Delete.
6763 * config/i386/i386aix.mh (XDEPFILES): Delete.
6764 * config/i386/go32.mh (XDEPFILES): Delete.
6765 * config/i386/cygwin.mh (XDEPFILES): Delete.
6766 * config/i386/i386lynx.mh (XDEPFILES): Delete.
6767 * config/i386/i386mach.mh (XDEPFILES): Delete.
6768 * config/i386/i386v32.mh (XDEPFILES): Delete.
6769 * config/i386/linux.mh (XDEPFILES): Delete.
6770 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
6771 * config/i386/ncr3000.mh (XDEPFILES): Delete.
6772 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
6773 * config/i386/i386sco.mh (XDEPFILES): Delete.
6774 * config/i386/i386v.mh (XDEPFILES): Delete.
6775 * config/i386/nbsd.mh (XDEPFILES): Delete.
6776 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
6777 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
6778 * config/i386/symmetry.mh (XDEPFILES): Delete.
6779 * config/i386/obsd.mh (XDEPFILES): Delete.
6780 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
6781 * config/ia64/linux.mh (XDEPFILES): Delete.
6782 * config/ia64/aix.mh (XDEPFILES): Delete.
6783 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
6784 * config/m68k/dpx2.mh (XDEPFILES): Delete.
6785 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
6786 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
6787 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
6788 * config/m68k/linux.mh (XDEPFILES): Delete.
6789 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
6790 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
6791 * config/m68k/nbsd.mh (XDEPFILES): Delete.
6792 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
6793 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
6794 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
6795 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
6796 * config/m88k/delta88.mh (XDEPFILES): Delete.
6797 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
6798 * config/m88k/m88k.mh (XDEPFILES): Delete.
6799 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
6800 * config/mips/linux.mh (XDEPFILES): Delete.
6801 * config/mips/irix6.mh (XDEPFILES): Delete.
6802 * config/mips/irix5.mh (XDEPFILES): Delete.
6803 * config/mips/irix4.mh (XDEPFILES): Delete.
6804 * config/mips/irix3.mh (XDEPFILES): Delete.
6805 * config/mips/decstation.mh (XDEPFILES): Delete.
6806 * config/mips/mipsm3.mh (XDEPFILES): Delete.
6807 (NATDEPFILES): Move core-aout.o to here.
6808 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
6809 * config/pa/hpux1020.mh (XDEPFILES): Delete.
6810 * config/pa/hppabsd.mh (XDEPFILES): Delete.
6811 * config/pa/hppahpux.mh (XDEPFILES): Delete.
6812 * config/pa/hpux11w.mh (XDEPFILES): Delete.
6813 * config/pa/hppaosf.mh (XDEPFILES): Delete.
6814 * config/pa/hpux11.mh (XDEPFILES): Delete.
6815 * config/powerpc/aix.mh (XDEPFILES): Delete.
6816 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
6817 * config/powerpc/linux.mh (XDEPFILES): Delete.
6818 * config/romp/rtbsd.mh: Rename XDEPFILES.
6819 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
6820 * config/rs6000/aix4.mh (XDEPFILES): Delete.
6821 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
6822 * config/s390/s390.mh (XDEPFILES): Delete.
6823 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
6824 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
6825 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
6826 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
6827 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
6828 * config/sparc/nbsd.mh (XDEPFILES): Delete.
6829 * config/sparc/linux.mh (XDEPFILES): Delete.
6830 * config/vax/vaxult.mh (XDEPFILES): Delete.
6831 * config/vax/vaxult2.mh (XDEPFILES): Delete.
6832 * Makefile.in (DEPFILES): Remove XDEPFILES.
6834 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6836 * utils.c (internal_verror): Fix comments, default is yes not no.
6837 Update queries to match. Default to quit and dump core.
6839 2002-01-17 Andrew Cagney <ac131313@redhat.com>
6841 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
6843 * defs.h, event-top.c, gdbcmd.h: Ditto.
6844 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
6845 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
6846 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
6847 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
6848 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
6849 * mi/mi-main.c:Ditto.
6851 * stack.c, symfile.c: Update copyright.
6853 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6855 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
6856 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
6857 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
6858 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
6860 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
6862 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
6863 * gdbserver/low-lynx.c (myattach): Likewise.
6864 * gdbserver/low-nbsd.c (myattach): Likewise.
6865 * gdbserver/low-sim.c (myattach): Likewise.
6866 * gdbserver/low-sparc.c (myattach): Likewise.
6867 * gdbserver/low-sun3.c (myattach): Likewise.
6869 * gdbserver/low-linux.c (myattach): New function.
6871 * gdbserver/server.c (attach_inferior): New function.
6872 (main): Handle "--attach".
6874 2002-01-16 Andrew Cagney <ac131313@redhat.com>
6876 * MAINTAINERS (language support): Daniel Jacobwitz is C++
6879 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
6881 * c-typeprint.c (is_type_conversion_operator): Add additional
6882 check for non-conversion operators.
6884 2002-01-15 Michael Snyder <msnyder@redhat.com>
6886 * linux-proc.c: Add "info proc" command, a la procfs.c.
6887 (read_mapping): New function, abstract and re-use code.
6888 (linux_find_memory_regions): Use new func read_mapping.
6889 (linux_info_proc_cmd): New function, implement "info proc".
6890 (_initialize_linux_proc): Add new command "info proc".
6892 2002-01-15 Michael Snyder <msnyder@redhat.com>
6894 * symfile.c (generic_load): Use bfd_map_over_sections method
6895 instead of manipulating bfd structure members directly.
6896 (add_section_size_callback): New function, bfd sections callback
6897 used by generic_load.
6898 (load_sections_callback): New function, bfd sections callback
6899 used by generic_load.
6901 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
6903 [Based on work by Jim Blandy]
6904 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
6905 (builtin_type_vec128): Export.
6906 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
6908 (builtin_type_vec128): New builtin type for 128 bit vector
6910 (build_gdbtypes): Initialize builtin_type_v16qi and
6911 builtin_type_v8hi. Create the vec128 register builtin type
6913 (build_builtin_type_vec128): New function.
6914 (_initialize_gdbtypes): Register builtin_type_v16qi and
6915 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
6916 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
6917 AltiVec register to new builtin type.
6919 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
6921 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6924 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6926 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
6927 CLEAN_UP_REGISTER_VALUE.
6928 * regcache.c (supply_register): Update only call.
6930 2002-01-14 Andrew Cagney <ac131313@redhat.com>
6932 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6933 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6934 a29k-*-vxworks* targets as obsolete.
6936 2002-01-14 Michael Snyder <msnyder@redhat.com>
6938 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
6939 until we can resolve portability issues.
6940 * gregset.h: Remove references to fpxregs.
6941 * gcore.c (gcore_command): Initialize note_sec to NULL.
6943 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6945 * signals.c (target_signal_to_name): Rewrite. Only use
6946 signals[].name when in bounds and non-NULL.
6948 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6950 From Petr Ledvina <ledvinap@kae.zcu.cz>:
6951 * signals.c (target_signal_to_name): Verify that SIG is within the
6952 bounds of the signals array.
6954 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6956 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
6958 2002-01-13 Keith Seitz <keiths@redhat.com>
6960 * stack.c (print_frame_info_base): Print the frame's pc
6961 only if when print_frame_info_listing_hook is not defined.
6963 2002-01-13 Keith Seitz <keiths@redhat.com>
6965 * varobj.c (varobj_set_value): Make sure that there were no
6966 errors evaluating the object before attempting to set its
6968 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
6969 so this offset adjustment is no longer necessary.
6970 (create_child): Don't set the error flag if the child is
6972 (value_of_child): If value_fetch_lazy fails, return NULL
6973 so that callers will be notified that an error occurred.
6974 (c_value_of_variable): Delay check of variable's validity
6975 until later. We actually want all structs and unions to have
6977 Do not return "???" for variables which could not be evaluated.
6978 This error condition must be returned to the caller so that it
6979 can get the error condition from gdb.
6980 (cplus_name_of_child): Adjust index for vptr before figuring
6981 out the name of the child.
6982 (cplus_value_of_child): If a child's (real) parent is not valid,
6983 don't even bother trying to give a value for it. Just return
6984 an error. Change all instances in this function.
6985 (cplus_type_of_child): If our parent is one of the "fake"
6986 parents, we need to get at the type of the real parent, and
6987 derive the child's true type using this information.
6989 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6991 From 2002-01-09 John Marshall <johnm@falch.net>:
6992 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
6993 sources.redhat.com, and tweak some related URLs which had
6994 suffered from linkrot.
6996 2002-01-13 Andrew Cagney <ac131313@redhat.com>
6999 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
7000 structures passed in registers.
7002 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
7004 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
7005 white space which prevented compilation. Reported by DSK
7006 <dsk@student.unsw.edu.au>.
7008 2002-01-11 Michael Snyder <msnyder@redhat.com>
7010 * symfile.c (build_section_addr_info_from_section_tab):
7011 Use bfd access method instead of manipulating bfd directly.
7012 (syms_from_objfile): Ditto.
7013 (simple_overlay_update_1): Ditto.
7014 (simple_overlay_update): Ditto.
7015 (generic_load): Ditto.
7016 (overlay_unmapped_address): FIXME comment, bfd access methods.
7017 (sections_overlap): FIXME comment, bfd access methods.
7018 (pc_in_mapped_range): FIXME comment, bfd access methods.
7019 (pc_in_unmapped_range): FIXME comment, bfd access methods.
7020 (section_is_mapped): FIXME comment, bfd access methods.
7021 (section_is_overlay): FIXME comment, bfd access methods.
7023 * symfile.c (generic_load): Whitespace and long line cleanups.
7024 Remove duplicate variable, change several local variables to
7025 more appropriate data types.
7026 (print_transfer_performance): Use %lu instead of %ld for ulongs.
7028 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7031 * language.c (longest_local_hex_string_custom): Use phex_nz to
7032 convert NUM to a hex string.
7034 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
7036 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
7038 Update Copyright year.
7040 2002-01-12 Andrew Cagney <ac131313@redhat.com>
7042 * language.c (longest_raw_hex_string): Delete unused function.
7044 2002-01-11 Petr Sorfa <petrs@caldera.com>
7046 * MAINTAINERS (write-after-approval): Add myself.
7047 * dwarf2read.c (read_tag_string_type): Handling of
7049 (read_tag_string_type): FORTRAN fix to prevent propagation of
7051 (set_cu_language): Handling of DW_LANG_Fortran95
7053 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
7055 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
7056 GETPID(inferior_ptid).
7057 (store_inferior_registers): Likewise.
7059 2002-01-10 Jason Merrill <jason@redhat.com>
7061 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
7064 2002-01-10 Andrew Cagney <ac131313@redhat.com>
7066 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
7067 and bfd/elf32-sh-nbsd.c.
7069 2002-01-10 Michael Snyder <msnyder@redhat.com>
7071 * NEWS: Mention --pid and corefile/proc-id behavior change.
7073 * Makefile.in: Add rules for gcore.o and linux-proc.o.
7074 * gcore.c: Include cli/cli-decode.h instead of command.h.
7076 * main.c (captured_main): Add new command line option "--pid".
7077 If the second command line argument (following the symbol-file)
7078 begins with a digit, try to attach to it before trying to open
7080 (print_gdb_help): Document the "--pid" argument.
7082 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
7084 * completer.c (command_completer): New function.
7086 * completer.h <command_completer>: Add prototype.
7088 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
7089 completer for the "help" command.
7091 2002-01-09 Jason Merrill <jason@redhat.com>
7093 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
7095 2002-01-09 Michael Snyder <msnyder@redhat.com>
7097 * i386-linux-nat.c (fill_fpxregset): Make global.
7098 (store_fpxregset): Ditto.
7100 * gregset.h (gdb_fpxregset_t): Define.
7101 (supply_fpxregset): Prototype.
7102 (fill_fpxregset): Prototype.
7104 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
7106 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7108 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
7109 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
7110 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
7112 2002-01-09 Andrew Cagney <ac131313@redhat.com>
7114 * MAINTAINERS: Update target maintainer rules so that any
7115 Maintainer can approve a tested patch for a maintenance-only
7118 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
7120 * MAINTAINERS (write-after-approval): Add myself.
7122 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
7125 2002-01-08 Michael Snyder <msnyder@redhat.com>
7127 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
7128 real name of the executable, rather than the /proc name.
7130 2002-01-03 Michael Snyder <msnyder@redhat.com>
7132 Implement a "generate-core-file" command in gdb, save target state.
7133 * gcore.c: New file. Implement new command 'generate-core-file'.
7134 Save a corefile image of the current state of the inferior.
7135 * linux-proc.c: Add linux-specific code for saving corefiles.
7136 * target.h (struct target_ops): Add new target vectors for saving
7137 corefiles; to_find_memory_regions and to_make_corefile_notes.
7138 (target_find_memory_regions): New macro.
7139 (target_make_corefile_notes): New macro.
7140 * target.c (update_current_target): Inherit new target methods.
7141 (dummy_find_memory_regions): New place-holder method.
7142 (dummy_make_corefile_notes): New place-holder method.
7143 (init_dummy_target): Initialize new dummy target vectors.
7144 * exec.c (exec_set_find_memory_regions): New function.
7145 Allow the exec_ops vector for memory regions to be taken over.
7146 (exec_make_note_section): New function, target vector method.
7147 * defs.h (exec_set_find_memory_regions): Export prototype.
7148 * procfs.c (proc_find_memory_regions): New function, corefile method.
7149 (procfs_make_note_section): New function, corefile method.
7150 (init_procfs_ops): Set new target vector pointers.
7151 (find_memory_regions_callback): New function.
7152 (procfs_do_thread_registers): New function.
7153 (procfs_corefile_thread_callback): New function.
7154 * sol-thread.c (sol_find_memory_regions): New function.
7155 (sol_make_note_section): New function.
7156 (init_sol_thread_ops): Initialize new target vectors.
7157 * inftarg.c (inftarg_set_find_memory_regions): New function.
7158 Allow to_find_memory_regions vector to be taken over.
7159 (inftarg_set_make_corefile_notes): New function.
7160 Allow to_make_corefile_notes vector to be taken over.
7161 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
7162 interface layer if not target_has_execution (may be a corefile).
7163 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
7164 * config/sparc/sun4sol2.mh: Ditto.
7165 * config/alpha/alpha-linux.mh: Ditto.
7166 * config/arm/linux.mh: Ditto.
7167 * config/i386/x86-64linux.mh: Ditto.
7168 * config/ia64/linux.mh: Ditto.
7169 * config/m68k/linux.mh: Ditto.
7170 * config/mips/linux.mh: Ditto.
7171 * config/powerpc/linux.mh: Ditto.
7172 * config/sparc/linux.mh: Ditto.
7174 2002-01-07 Michael Snyder <msnyder@redhat.com>
7176 * arm-linux-nat.c: Remove references to regcache.c internal data
7177 (registers[] and register_valid[]).
7179 2002-01-07 Michael Snyder <msnyder@redhat.com>
7181 * linux-proc.c: New file. Implement child_pid_to_exec_file,
7182 so that attaching to a pid will automatically read the process's
7183 symbol file and shlibs.
7184 * Makefile.in: Add rule for linux-proc.o.
7185 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
7186 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
7187 * config/arm/linux.mh: Ditto.
7188 * config/i386/linux.mh: Ditto.
7189 * config/i386/x86-64linux.mh: Ditto.
7190 * config/ia64/linux.mh: Ditto.
7191 * config/m68k/linux.mh: Ditto.
7192 * config/mips/linux.mh: Ditto.
7193 * config/powerpc/linux.mh: Ditto.
7194 * config/sparc/linux.mh: Ditto.
7196 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
7198 * win32-nat.c: Add i386-tdep.h dependency.
7200 2002-01-07 Michael Snyder <msnyder@redhat.com>
7202 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
7203 instead of bfd_get_arch_size. Don't bail out just because
7204 there's no exec_bfd.
7206 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
7207 * p-valprint.c (pascal_object_print_value): Ditto.
7208 * somread.c (som_symtab_read): Ditto.
7209 * symfile.c (simple_free_overlay_region_table): Ditto.
7210 * valops.c (value_assign): Ditto.
7212 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
7213 use tilde_expand and strerror for opening save-tracepoints file.
7215 * thread-db.c (thread_db_new_objfile): Indendation fix.
7217 * infptrace.c (GDB_MAX_ALLOCA): New define.
7218 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
7219 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
7220 can be overridden with whatever value is appropriate to the host).
7221 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
7222 alloca to allocate potentially large buffer.
7223 * rs6000-nat.c (child_xfer_memory): Ditto.
7224 * symm-nat.c (child_xfer_memory): Ditto.
7225 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
7227 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
7229 From Nick Clifton <nickc@redhat.com>
7230 * d10v-tdep.c: Set STACK_START to 0x200bffe.
7232 2002-01-07 Michael Snyder <msnyder@redhat.com>
7234 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
7235 Don't use exec_bfd if it's NULL.
7237 2002-01-06 Mark Kettenis <kettenis@gnu.org>
7239 * valops.c (value_arg_coerce): Fix formatting.
7241 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7243 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
7246 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7248 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
7249 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
7250 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
7251 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
7252 z8k-coff have not been multi-arched. Update z8k-coff build
7255 2002-01-06 Andrew Cagney <ac131313@redhat.com>
7257 * MAINTAINERS: Mark a29k target as obsolete.
7258 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
7259 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
7261 * NEWS: Note that a29k targets are obsolete.
7262 * a29k-tdep.c: Mark as obsolete.
7263 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
7264 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
7265 a29k-*-vxworks* targets as obsolete.
7266 * remote-adapt.c: Obsolete.
7267 * remote-eb.c: Obsolete.
7268 * remote-mm.c: Obsolete.
7269 * remote-udi.c: Obsolete.
7270 * config/a29k/a29k-udi.mt: Obsolete.
7271 * config/a29k/a29k.mt: Obsolete.
7272 * config/a29k/tm-a29k.h: Obsolete.
7273 * config/a29k/tm-vx29k.h: Obsolete.
7274 * config/a29k/vx29k.mt: Obsolete.
7276 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7278 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
7279 with BFD_ENDIAN_BIG.
7281 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7283 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
7284 * configure, config.in: Re-generate.
7285 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
7286 * defs.h: Do not include <endian.h>.
7288 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
7290 * acconfig.h (HAVE_PT_GETXMMREGS): New.
7291 * config.in: Regenerate.
7292 * configure.in: Update copyright years.
7293 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
7294 * configure: Regenerate.
7295 * i386bsd-nat.c: Update copyright years.
7296 (fill_gregset): Use regcache_collect.
7297 (fetch_inferior_registers): Only fetch integer registers
7298 if requested to do so. Add support for XMM registers
7299 using PT_GETXMMREGS.
7300 (store_inferior_registers): Only store integer registers
7301 if requested to do so. Add support for XMM registers
7302 using PT_SETXMMREGS.
7303 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
7304 (store_inferior_registers): Remove.
7305 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
7306 (fetch_elfcore_registers): New function.
7307 (i386nbsd_elfcore_fns): New.
7308 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
7309 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
7311 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7312 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
7313 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
7314 * config/i386/tm-nbsd.h: Update copyright years.
7315 (HAVE_SSE_REGS): Define.
7316 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
7317 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
7318 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
7319 (SIGCONTEXT_PC_OFFSET): Remove.
7320 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
7322 2002-01-05 Andrew Cagney <ac131313@redhat.com>
7324 * configure.tgt: Remove powerpc-*-macos* target.
7325 * config/m68k/xm-mpw.h: Delete file.
7326 * config/xm-mpw.h: Delete file.
7327 * ser-mac.c: Delete file.
7328 * mpw-make.sed: Delete file.
7329 * mpw-config.in: Delete file.
7330 * mac-xdep.c: Delete file.
7331 * mac-gdb.r: Delete file.
7332 * mac-defs.h: Delete file.
7333 * mac-nat.c: Delete file.
7334 * config/powerpc/macos.mh: Delete file.
7335 * config/powerpc/macos.mt: Delete file.
7336 * config/powerpc/nm-macos.h: Delete file.
7337 * config/powerpc/tm-macos.h: Delete file.
7338 * source.c (openp, open_source_file): Remove obsolete code.
7339 * top.c (gdb_readline): Ditto.
7340 * utils.c (query): Ditto.
7341 * event-top.c (display_gdb_prompt): Ditto.
7342 * Makefile.in (ser-mac.o): Delete obsolete target.
7345 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7347 * defs.h (BIG_ENDIAN): Delete macro definition.
7348 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
7349 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
7350 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
7351 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
7352 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
7353 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
7354 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
7355 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
7356 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
7357 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
7358 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
7359 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
7360 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7361 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
7362 * gdbarch.c: Re-generate.
7364 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7366 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
7369 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7371 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
7373 2002-01-04 Andrew Cagney <ac131313@redhat.com>
7375 * value.h (value_ptr): Delete typedef.
7377 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7379 * i386nbsd-nat.c: Update copyright years.
7380 Include i386-tdep.h.
7382 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
7384 * stabsread.c: Update copyright years.
7386 From Debashis Mahata <debashis.mahata@wipro.com>:
7387 (read_struct_fields): Deal with Sun C compiler erroneous stab
7388 output for structs and unions.
7391 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7393 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
7396 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7398 * cp-abi.c: Fix whitespace.
7399 (baseclass_offset): New wrapper function.
7400 * cp-abi.h (baseclass_offset): Add prototype.
7401 (struct cp_abi_ops): Add baseclass_offset pointer.
7403 * valops.c (vb_match): Move to...
7404 * gnu-v2-abi.c (vb_match): here.
7405 * valops.c (baseclass_offset): Move to...
7406 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
7408 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
7410 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
7411 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
7412 * hpacc-abi.c (init_hpacc_ops): Likewise.
7414 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7416 * valops.c (find_overload_match): Accept obj as a
7417 reference parameter. Update it before returning.
7418 * value.h (find_overload_match): Update prototype.
7419 * eval.c (evaluate_subexp_standard): Pass object to
7420 find_overload_match by reference.
7422 2002-01-03 Andrew Cagney <ac131313@redhat.com>
7424 * valarith.c: Replace value_ptr with struct value pointer. Remove
7425 register attribute from value declarations.
7428 * scm-lang.c (scm_lookup_name): Ditto.
7430 2002-01-03 Michael Snyder <msnyder@redhat.com>
7432 Abstract the functionality of iterating over mapped memory
7433 regions into a general purpose iterator function.
7434 * procfs.c (iterate_over_mappings): New function, general purpose
7435 iterator for memory sections.
7436 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
7437 (solib_mappings_callback): New function, callback for above.
7438 (info_proc_mappings): Reimpliment using iterate_over_mappings.
7439 (info_mappings_callback): New function, callback for above.
7441 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
7443 2002-01-01 Mark Kettenis <kettenis@gnu.org>
7445 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
7446 * i386-tdep.c: Include "elf-bfd.h".
7447 (process_note_abi_tag_sections): New function.
7448 (i386_gdbarch_init): Add code to recognize various OS/ABI
7451 * maint.c (_initialize_maint_cmds): Add missing \ in
7454 For older changes see ChangeLog-2001
7460 version-control: never