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