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