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