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