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