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