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