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