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