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