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