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