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