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