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