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