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