* ld.h: Fix formatting.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-05-03 Michal Ludvig <mludvig@suse.cz>
2
3 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
4 (x86_64_dwarf2gdb_regno_map_length),
5 (x86_64_dwarf2_reg_to_regnum): Added.
6 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8 (_initialize_x86_64_tdep): Synced with the change above.
9 (x86_64_skip_prologue): Reformulated message.
10
11 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
12
13 * f-exp.y: Also use new prev_lexptr variable
14 to improve error reporting. Based on Michael Snyder
15 2002-04-24 dated patch to c-exp.y.
16 * jv-exp.y: Likewise.
17 * m2-exp.y: Likewise.
18
19 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
20
21 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
22 we are dealing with vectors.
23
24 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
25
26 * config/m68k/tm-nbsd.h: Obvious fix,
27 correct machine name.
28
29 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
30
31 * p-typeprint.c (pascal_type_print_base): Add support
32 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
33
34 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
35
36 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
37 for fondamental pascal 'char' type.
38
39 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
40
41 * p-lang.h (is_pascal_string_type): Declaration changed,
42 new sixth argument of type char ** added.
43 * p-lang.c (is_pascal_string_type): Implementation
44 changed. Args length_pos, length_size, string_pos, char_size
45 can now be NULL. New argument arrayname set to the field
46 name of the char array. Return value set to char array
47 field index plus one.
48 * p-valprint.c (pascal_val_print): Adapt to new declaration of
49 is_pascal_string_type function.
50
51 2002-05-02 Andrew Cagney <cagney@redhat.com>
52
53 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
54 <cagney@redhat.com> change.
55 * gdbarch.c: Regenerate.
56
57 2002-05-02 Andrew Cagney <cagney@redhat.com>
58
59 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
60 before probing for a new one. Detect errorenous gdbarch_init
61 functions.
62 * gdbarch.c: Regenerate.
63
64 2002-05-01 Andrew Cagney <cagney@redhat.com>
65
66 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
67 * config/mcore/tm-mcore.h: Ditto. Update copyright.
68 * config/v850/tm-v850.h: Ditto. Update copyright.
69
70 2002-04-30 Andrew Cagney <ac131313@redhat.com>
71
72 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
73 current_gdbarch.
74
75 2002-04-30 Michael Snyder <msnyder@redhat.com>
76
77 * arm-tdep.c: Whitespace clean-ups.
78 (arm_skip_prologue): Fix thinko; two lines
79 should have been removed as part of 4/24 change.
80
81 2002-04-30 Kevin Buettner <kevinb@redhat.com>
82
83 * rs6000-tdep.c: Added comment describing how fpscr register
84 numbers were chosen.
85
86 2002-04-30 Michael Snyder <msnyder@redhat.com>
87
88 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
89
90 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
91
92 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
93 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
94 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
95
96 2002-04-29 Kevin Buettner <kevinb@redhat.com>
97
98 From Louis Hamilton <hamilton@redhat.com>:
99 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
100 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
101 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
102 not bfd-private xcoff data, to determine wordsize.
103 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
104
105 2002-04-29 Andrew Cagney <ac131313@redhat.com>
106
107 GDB 5.2 released from 5.2 branch.
108
109 2002-04-29 Michal Ludvig <mludvig@suse.cz>
110
111 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
112 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
113 (x86_64_register_info_table): Added comments with register numbers.
114
115 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
116
117 * rs6000-tdep.c (rs6000_extract_return_value,
118 rs6000_store_return_value): Handle returning vectors.
119 (rs6000_gdbarch_init): Use
120 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
121 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
122 New function.
123 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
124 vectors.
125 (ppc_sysv_abi_push_arguments): Handle vector parameters.
126 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
127
128 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
129
130 * hpread.c (hpread_psymtab_to_symtab_1,
131 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
132 with fprintf_unfiltered (gdb_stderr,...).
133
134 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
135
136 * remote-array.c (printf_monitor, write_monitor,
137 array_insert_breakpoint, array_remove_breakpoint ):
138 Replace fprintf (stderr,...
139 with fprintf_unfiltered (gdb_stderr,....
140 * remote-es.c: Likewise.
141 * remote-os9k.c: Likewise.
142 * remote-st.c: Likewise.
143
144 2002-04-28 Andreas Schwab <schwab@suse.de>
145
146 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
147 linux-proc.o and gcore.o.
148
149 2002-04-26 Michal Ludvig <mludvig@suse.cz>
150
151 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
152 code without frame pointers.
153
154 2002-04-26 Andrew Cagney <ac131313@redhat.com>
155
156 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
157 ON_STACK is needed.
158
159 2002-04-26 Ben Elliston <bje@redhat.com>
160
161 * target.c (do_xfer_memory): Correct reference to the new option
162 "trust-readonly-sections".
163
164 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
165
166 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
167 * gdbtypes.c (recursive_dump_type): Output the vector flag.
168 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
169 vectors.
170 (read_array_type): Record the fact that this array type is really a
171 vector (i.e. are passed in by value).
172
173 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
174
175 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
176 * alpha-tdep.c (alpha_sigcontext_addr): New function.
177 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
178 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
179 * alpha-linux-tdep.c: Include frame.h.
180 (alpha_linux_sigcontext_addr): New function.
181 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
182 alpha_linux_sigcontext_addr.
183 * alpha-osf1-tdep.c: Include gdbcore.h.
184 (alpha_osf1_sigcontext_addr): New function.
185 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
186 alpha_osf1_sigcontext_addr.
187 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
188 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
189
190 2002-04-26 Andrew Cagney <ac131313@redhat.com>
191
192 * stack.c (selected_frame_level):
193 (select_frame): Do not set selected_frame_level.
194 * frame.h (selected_frame_level): Delete declaration.
195
196 2002-04-26 Andrew Cagney <ac131313@redhat.com>
197
198 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
199 convert_from_func_ptr-addr when AIX / PowerOpen.
200
201 2002-04-25 Andrew Cagney <ac131313@redhat.com>
202
203 * valops.c (hand_function_call): Call
204 generic_save_call_dummy_addr.
205 * frame.h (generic_save_call_dummy_addr): Declare.
206 * blockframe.c (struct dummy_frame): Add fields call_lo and
207 call_hi.
208 (generic_find_dummy_frame): Check for PC in range call_lo to
209 call_hi instead of entry_point_address.
210 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
211 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
212 (generic_save_call_dummy_addr): New function.
213
214 2002-04-24 David S. Miller <davem@redhat.com>
215
216 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
217 sparc_skip_prologue.
218 (sparc_skip_prologue): Kill frameless_p arg, and use line number
219 information to find prologue when possible.
220 (sparc_prologue_frameless_p): Call examine_prologue directly.
221 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
222 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
223 second argument.
224 (SKIP_PROLOGUE): Likewise.
225
226 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
227
228 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
229 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
230 indicate that the condition it was testing is always true.
231 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
232 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
233 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
234
235 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
236
237 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
238 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
239 tdep->jb_pc and tdep->jb_elt_size.
240 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
241 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
242 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
243 * alpha-nat.c (get_longjmp_target): Remove.
244 (JB_ELEMENT_SIZE): Ditto.
245 (JB_PC): Ditto.
246 * alpha-tdep.c (alpha_get_longjmp_target): New function.
247 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
248 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
249 to alpha_get_longjmp_target.
250 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
251 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
252 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
253
254 2002-04-25 Andrew Cagney <ac131313@redhat.com>
255
256 * README: Update to GDB 5.2.
257
258 2002-04-25 Andrew Cagney <ac131313@redhat.com>
259
260 * gdbarch.sh (LC_ALL): Set to `c'.
261
262 2002-04-25 Theodore A. Roth <troth@verinet.com>
263
264 * avr-tdep.c: Ran through gdb_indent.sh.
265
266 2002-04-25 Theodore A. Roth <troth@verinet.com>
267
268 * MAINTAINERS: Add myself as AVR maintainer.
269 * NEWS: Note new target avr.
270
271 2002-04-25 Theodore A. Roth <troth@verinet.com>
272
273 * Makefile.in: Add support for AVR target.
274 * configure.tgt: Add support for AVR target.
275 * avr-tdep.c: New file
276 * config/avr/avr.mt: New file.
277
278 2002-04-25 Theodore A. Roth <troth@verinet.com>
279
280 * MAINTAINERS: Add myself to write-after-approval.
281
282 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
283
284 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
285 with fprintf_unfiltered (gdb_stderr,....
286
287 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
288
289 Fix PR gdb/508.
290 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
291
292 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
293
294 * p-exp.y: Also use new prev_lexptr variable
295 to improve error reporting. Based on Michael Snyder
296 2002-04-24 dated patch to c-exp.y.
297
298 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
299
300 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
301 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
302 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
303 to 0.
304 * config/alpha/tm-alpha.h: Remove forward decls of struct type
305 and struct value.
306 (FUNCTION_START_OFFSET): Remove.
307 (BREAKPOINT): Ditto.
308
309 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
310
311 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
312 * NEWS: Ditto.
313
314 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
315
316 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
317 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
318 alpha_linux_pc_in_sigtramp.
319 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
320 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
321 alpha_osf1_pc_in_sigtramp.
322 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
323 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
324 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
325 alphafbsd_pc_in_sigtramp.
326 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
327 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
328 alphanbsd_pc_in_sigtramp.
329 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
330 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
331
332 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
333
334 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
335
336 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
337
338 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
339 alphanbsd-tdep.c.
340 (alphanbsd-nat.o): New dependency list.
341 (alphanbsd-tdep.o): Ditto.
342 * NEWS: Note new native NetBSD/alpha configuration.
343 * alphanbsd-nat.c: New file.
344 * alphanbsd-tdep.c: Ditto.
345 * configure.host (alpha*-*-netbsd*): New host.
346 * configure.tgt (alpha*-*-netbsd*): New target.
347 * config/alpha/nbsd.mh: New file.
348 * config/alpha/nbsd.mt: Ditto.
349 * config/alpha/nm-nbsd.h: Ditto.
350 * config/alpha/tm-nbsd.h: Ditto.
351
352 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
353
354 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
355 (alpha-osf1-tdep.o): New dependency list.
356 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
357 and skip_sigtramp_frame members.
358 * alpha-linux-tdep.c: Include gdbcore.h.
359 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
360 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
361 * alpha-osf1-tdep.c: New file.
362 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
363 alpha-osf1-dep.c.
364 (alpha_frame_past_sigtramp_frame): New function.
365 (alpha_dynamic_sigtramp_offset): Ditto.
366 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
367 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
368 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
369 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
370 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
371 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
372 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
373 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
374 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
375 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
376 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
377 to find_solib_trampoline_target.
378 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
379 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
380 (SKIP_TRAMPOLINE_CODE): Remove.
381 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
382 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
383 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
384 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
385 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
386 (PROC_SIGTRAMP_MAGIC): Ditto.
387 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
388 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
389 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
390 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
391 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
392
393 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
394
395 * NEWS: Note that Alpha targets are now multi-arch.
396
397 2002-04-24 Michael Snyder <msnyder@redhat.com>
398
399 * parser-defs.h (prev_lexptr): New external variable.
400 * parse.c (parse_exp_1): Set prev_lexptr to null before
401 calling the language-specific parser.
402 * c-exp.y (yylex): Set prev_lexptr to start of current token.
403 (yyerror): Use prev_lexptr in error reporting.
404
405 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
406
407 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
408 * gregset.h: If FILL_FPXREGSET is defined, provide
409 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
410 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
411 is defined, call fill_fpxregset.
412
413 2002-04-24 Roland McGrath <roland@frob.com>
414
415 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
416 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
417 (supply_gregset, supply_fpregset): New functions.
418
419 * gnu-nat.c (gnu_find_memory_regions): New function.
420 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
421 (gnu_xfer_memory): Add a cast.
422
423 2002-04-24 Michael Snyder <msnyder@redhat.com>
424
425 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
426 loop. Add handling for "str lr, [sp, #-4]!" and for saves
427 of argument regs ("str r(0123), [r11, #-nn"]).
428 (arm_skip_prologue): Better handling for frameless functions.
429 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
430 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
431
432 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
433
434 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
435 NUM_PSEUDO_REGS can be used.
436
437 2002-04-24 Andrew Cagney <ac131313@redhat.com>
438
439 * arch-utils.h: Update copyright.
440
441 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
442 * gdbarch.h, gdbarch.c: Re-generate.
443
444 * inferior.h (IN_SIGTRAMP): Delete definition.
445 * arch-utils.c (legacy_pc_in_sigtramp): New function.
446 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
447
448 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
449 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
450 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
451 (find_proc_framesize): Ditto.
452 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
453 (alpha_init_extra_frame_info): Ditto.
454 * infrun.c (handle_inferior_event): Ditto.
455 (handle_inferior_event): Ditto.
456 (check_sigtramp2): Ditto.
457 * blockframe.c (create_new_frame): Ditto.
458 (get_prev_frame): Ditto.
459 * ppc-linux-tdep.c: Update comments.
460 * i386-linux-tdep.c: Update comments.
461 * breakpoint.c (bpstat_what): Update comment.
462
463 2002-04-24 Michal Ludvig <mludvig@suse.cz>
464
465 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
466 (regsets_store_inferior_registers): Removed cast to int from
467 ptrace() calls.
468 * gdbserver/regcache.h: Added declaration of struct inferior_info.
469
470 2002-04-24 David S. Miller <davem@redhat.com>
471
472 * i960-tdep.c (register_in_window_p): New function.
473 (i960_find_saved_register): Use it instead of
474 REGISTER_IN_WINDOW_P.
475 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
476
477 * symtab.h (find_stab_function_addr): Kill extern.
478 * minsyms.c (find_stab_function_addr): Remove from here...
479 * dbxread.c: ... to here, and mark it static.
480
481 2002-04-20 David S. Miller <davem@redhat.com>
482
483 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
484 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
485
486 2002-04-21 David S. Miller <davem@redhat.com>
487
488 * remote-vxsparc.c (vx_read_register): Fix typo, we want
489 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
490 (vx_write_register): Likewise.
491
492 2002-04-23 J. Brobecker <brobecker@gnat.com>
493
494 * source.c (is_regular_file): New function.
495 (openp): Check wether file to open is a regular file
496 to avoid opening directories.
497
498 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
499
500 * findvar.c (extract_signed_integer): Cast printf argument
501 to suppress format warning.
502 (extract_unsigned_integer): Likewise.
503 * infcmd.c (registers_info): Likewise.
504 * top.c (get_prompt_1): Likewise.
505 * valops.c (value_assign): Likewise.
506 * valprint.c (print_decimal): Likewise.
507
508 2002-04-22 H.J. Lu (hjl@gnu.org)
509
510 * c-exp.y (typebase): Support
511
512 [long|long long|short] [signed|unsigned] [int|]
513
514 and
515
516 signed [long|long long|short] int
517
518 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
519
520 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
521 and vax-tdep.h.
522 * vax-tdep.h: New file.
523 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
524 Make several routines static.
525 (vax_get_saved_register): New function.
526 (vax_gdbarch_init): New function.
527 (_initialize_vax_tdep): Register vax_gdbarch_init.
528 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
529 Remove macros now under the control of gdbarch.
530
531 2002-04-22 Michael Snyder <msnyder@redhat.com>
532
533 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
534 Some whitespace and coding standards tweaks.
535
536 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
537
538 * vax-tdep.c: Include regcache.h.
539 (vax_call_dummy_words): New.
540 (sizeof_vax_call_dummy_words): New.
541 (vax_fix_call_dummy): New function.
542 (vax_saved_pc_after_call): Ditto.
543 * config/vax/tm-vax.h: Don't include regcache.h.
544 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
545 (CALL_DUMMY): Remove.
546 (CALL_DUMMY_WORDS): Define.
547 (SIZEOF_CALL_DUMMY_WORDS): Define.
548 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
549
550 2002-04-18 Michael Snyder <msnyder@redhat.com>
551
552 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
553
554 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
555
556 * vax-tdep.c (vax_frame_chain): New function.
557 (vax_push_dummy_frame): Ditto.
558 (vax_pop_frame): Ditto.
559 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
560 (FRAMELESS_FUNCTION_INVOCATION): Use
561 generic_frameless_function_invocation_not.
562 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
563 (POP_FRAME): Use vax_pop_frame.
564
565 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
566
567 * vax-tdep.c (vax_store_struct_return): New function.
568 (vax_extract_return_value): Ditto.
569 (vax_store_return_value): Ditto.
570 (vax_extract_struct_value_address): Ditto.
571 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
572 vax_store_struct_return.
573 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
574 (STORE_RETURN_VALUE): Use vax_store_return_value.
575 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
576
577 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
578
579 * vax-tdep.c (vax_frame_saved_pc): New function.
580 (vax_frame_args_address_correct): Ditto.
581 (vax_frame_args_address): Ditto.
582 (vax_frame_locals_address): Ditto.
583 (vax_frame_num_args): Move code to be in proximity to
584 other frame-related functions.
585 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
586 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
587 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
588 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
589 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
590
591 2002-04-22 H.J. Lu (hjl@gnu.org)
592
593 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
594 includedir.
595
596 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
597
598 * vax-tdep.c (vax_frame_init_saved_regs): New function.
599 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
600 (FRAME_INIT_SAVED_REGS): New macro.
601
602 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
603
604 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
605
606 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
607
608 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
609 where needed.
610 (fetch_osf_core_registers): Likewise.
611 (supply_gregset): Likewise.
612
613 2002-04-22 J. Brobecker <brobecker@gnat.com>
614
615 * symfile.h (get_section_index): Define.
616 * symfile.c (get_section_index): New function.
617 * mdebugread.c (SC_IS_SBSS): New macro.
618 (SC_IS_BSS): Return true for the scBss storage class only, as
619 the scSBss storage class refers to the .sbss section.
620 (parse_partial_symbols): Discard the symbols which associated
621 section does not exist.
622 Make sure to use the .sbss section index for symbols which
623 storage class is scBss, rather than using the .bss section index.
624
625 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
626
627 * vax-tdep.c: Update copyright years.
628 (vax_register_name): New function.
629 (vax_register_byte): Ditto.
630 (vax_register_raw_size): Ditto.
631 (vax_register_virtual_size): Ditto.
632 (vax_register_virtual_type): Ditto.
633 * config/vax/tm-vax.h: Update copyright years.
634 (REGISTER_NAMES): Remove.
635 (REGISTER_NAME): Define.
636 (REGISTER_BYTE): Use vax_register_byte.
637 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
638 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
639 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
640
641 2002-04-21 Andrew Cagney <ac131313@redhat.com>
642
643 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
644 declaration
645 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
646
647 2002-04-21 David S. Miller <davem@redhat.com>
648
649 * arch-utils.c (generic_prologue_frameless_p): Kill
650 SKIP_PROLOGUE_FRAMELESS_P code.
651 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
652 references.
653 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
654 * arc-tdep.c (arc_prologue_frameless_p): Implement.
655 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
656 references.
657 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
658 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
659 (sparc_gdbarch_init): Pass it to
660 set_gdbarch_prologue_frameless_p.
661
662 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
663
664 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
665 (alphabsd-nat.o): New dependency list.
666
667 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
668
669 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
670 alphafbsd-tdep.c.
671 (alpha-linux-tdep.o): New dependency list.
672 (alphafbsd-tdep.o): Likewise.
673
674 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
675
676 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
677 to here...
678 * alpha-tdep.c: ...from here.
679 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
680
681 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
682
683 * config/alpha/tm-alpha.h: Move alpha_software_single_step
684 prototype from here...
685 * alpha-tdep.h: ...to here.
686
687 2002-04-21 Andrew Cagney <ac131313@redhat.com>
688
689 * frame.h (selected_frame_level): Document as deprecated.
690 (frame_relative_level): Declare.
691 * stack.c (frame_relative_level): New function.
692 (selected_frame_level): Document as deprecated.
693 (select_frame): Do not set the selected_frame_level.
694
695 * stack.c (frame_info, record_selected_frame): Update.
696 (frame_command, current_frame_command): Update.
697 (up_silently_base, up_command, down_silently_base): Update.
698 (down_command): Update.
699 * inflow.c (kill_command): Update.
700 * tracepoint.c (finish_tfind_command): Update.
701 * corelow.c (core_open): Update.
702 * thread.c (info_threads_command): Update.
703 (do_captured_thread_select): Update.
704 * infcmd.c (finish_command): Update.
705 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
706
707 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
708
709 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
710
711 2002-04-21 Andrew Cagney <ac131313@redhat.com>
712
713 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
714 type const.
715
716 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
717
718 * alphafbsd-tdep.c: Update copyright years. Include
719 alpha-tdep.h.
720 (alphafbsd_use_struct_convention): Make static.
721 (alphafbsd_init_abi): New function.
722 (_initialize_alphafbsd_tdep): New function.
723 * config/alpha/tm-fbsd.h: Update copyright years.
724 (USE_STRUCT_CONVENTION): Remove.
725
726 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
727
728 * alpha-tdep.c (alpha_abi_handler): New structure to describe
729 an Alpha ABI variant.
730 (alpha_abi_handler_list): Declare.
731 (alpha_gdbarch_register_os_abi): New function.
732 (alpha_gdbarch_init): Give registered ABI variant handlers a
733 chance to tweak the gdbarch once we have set up defaults.
734 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
735
736 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
737
738 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
739 to standard_coerce_float_to_double.
740 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
741
742 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
743
744 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
745 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
746 from gdbarch_tdep rather than a constant.
747 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
748 the default text address for all Alpha Unix ABIs.
749 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
750 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
751
752 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
753
754 * alpha-tdep.h: New file. Includes several Alpha target constants
755 taken from...
756 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
757 let gdbarch deal with.
758 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
759 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
760 to dependency list.
761 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
762 Alpha target register names.
763 * alphabsd-nat.c: Likewise.
764 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
765 Alpha target register names. Make serveral routines static.
766 (alpha_get_saved_register): New function.
767 (alpha_abi_names): New.
768 (process_note_abi_tag_sections): New function.
769 (get_elfosabi): New function.
770 (alpha_gdbarch_init): New function.
771 (alpha_dump_tdep): New function.
772 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
773
774 2002-04-21 Andrew Cagney <ac131313@redhat.com>
775
776 * frame.c (find_saved_register): Delete #ifdef
777 HAVE_REGISTER_WINDOWS code.
778 * config/sparc/tm-sparc.h: Update comments.
779 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
780
781 2002-04-21 Andrew Cagney <ac131313@redhat.com>
782
783 * i960-tdep.c (i960_find_saved_register): New function.
784 (i960_get_saved_register): New function.
785 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
786 (i960_get_saved_register): Declare.
787 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
788
789 2002-04-20 David S. Miller <davem@redhat.com>
790
791 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
792
793 2002-04-20 Andrew Cagney <ac131313@redhat.com>
794
795 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
796 instead of NUM_PSEUDO_REGS.
797
798 2002-04-20 David S. Miller <davem@redhat.com>
799
800 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
801 GDB_MULTI_ARCH_PARTIAL
802 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
803 define, let tm-sp64.h do it.
804
805 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
806
807 * frame.c (find_saved_register): Avoid a NULL pointer
808 dereference and actually walk the frame list.
809
810 2002-04-20 Andrew Cagney <ac131313@redhat.com>
811
812 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
813 sorted in most most-recent-used order. Document.
814 * gdbarch.h, gdbarch.c: Regenerate.
815
816 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
817
818 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
819 (add_inferior): Call create_register_cache.
820 (clear_inferiors): Call free_register_cache.
821 (inferior_regcache_data, set_inferior_regcache_data): New functions.
822 * gdbserver/regcache.c (struct inferior_regcache_data): New.
823 (registers): Remove.
824 (get_regcache): New function.
825 (create_register_cache, free_register_cache): New functions.
826 (set_register_cache): Don't initialize the register cache here.
827 (registers_to_string, registers_from_string, register_data): Call
828 get_regcache.
829 * gdbserver/regcache.h: Add prototypes.
830 * gdbserver/server.h: Likewise.
831
832 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
833
834 * gdbserver/mem-break.c: New file.
835 * gdbserver/mem-break.h: New file.
836 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
837 dependencies.
838 * gdbserver/inferiors.c (struct inferior_info): Add target_data
839 member.
840 (clear_inferiors): Free target_data member if set.
841 (inferior_target_data, set_inferior_target_data): New functions.
842 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
843 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
844 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
845 (struct inferior_linux_data): New.
846 (linux_create_inferior): Use set_inferior_target_data.
847 (linux_attach): Likewise. Call add_inferior.
848 (linux_wait_for_one_inferior): New function.
849 (linux_wait): Call it.
850 (linux_write_memory): Add const.
851 (initialize_low): Call set_breakpoint_data.
852 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
853 handling members.
854 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
855 call.
856 * gdbserver/server.h: Include mem-break.h. Update inferior.c
857 prototypes.
858 * gdbserver/target.c (read_inferior_memory)
859 (write_inferior_memory): New functions.
860 * gdbserver/target.h (read_inferior_memory)
861 (write_inferior_memory): Change macros to prototypes.
862 (struct target_ops): Update comments. Add const to write_memory
863 definition.
864
865 2002-04-19 Andrew Cagney <ac131313@redhat.com>
866
867 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
868 instead of ->prev.
869 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
870 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
871 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
872 instead of ->prev.
873
874 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
875
876 Fix PR gdb/471.
877 * gdbtypes.c (init_simd_type): Rewrite using new functions.
878 (build_builtin_type_vec128): Ditto.
879 (append_composite_type_field): Fix calculation of type length in
880 union case.
881
882 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
883
884 * config/djgpp/README: Update.
885
886 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
887 compiler warnings.
888
889 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
890
891 * alpha-tdep.c (setup_arbitrary_frame): Rename...
892 (alpha_setup_arbitrary_frame): ...to this.
893 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
894 for alpha_setup_arbitrary_frame.
895
896 2002-04-18 Andrew Cagney <cagney@redhat.com>
897
898 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
899 * gdbarch.h, gdbarch.c: Regenerate.
900
901 * defs.h (breakpoint_from_pc_fn): Delete type definition.
902 * target.h (memory_breakpoint_from_pc): Update declaration.
903 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
904
905 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
906 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
907 * mem-break.c (memory_breakpoint_from_pc): Ditto.
908 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
909 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
910 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
911 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
912 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
913 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
914 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
915 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
916 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
917
918 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
919 const pointer.
920 * monitor.c (monitor_insert_breakpoint): Ditto.
921 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
922
923 * config/mcore/tm-mcore.h: Update copyright.
924 * mem-break.c: Ditto.
925 * xstormy16-tdep.c: Ditto.
926
927 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
928
929 * p-exp.y: Add precedence rule for '^' token.
930 This removes the shift/reduce conflicts.
931 Remove the comment concerning these shift/reduce conflicts.
932
933 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
934
935 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
936 (registers_powerpc_nofp): New register set for processors
937 without floating point unit.
938
939 2002-04-18 David S. Miller <davem@redhat.com>
940
941 * MAINTAINERS: Add myself to write-after-approval.
942
943 2002-04-17 Michael Snyder <msnyder@redhat.com>
944
945 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
946
947 2002-04-17 Andrew Cagney <ac131313@redhat.com>
948
949 * rs6000-tdep.c (frame_initial_stack_address): Use
950 frame_register_read to read the alloca_reg.
951
952 2002-04-17 Andrew Cagney <ac131313@redhat.com>
953
954 * frame.c (find_saved_register): Find saved registers in the next
955 not prev frame.
956 Fix PR gdb/365.
957
958 2002-04-17 Andrew Cagney <ac131313@redhat.com>
959
960 * gdbarch.sh (LANG): Set to ``c''.
961
962 2002-04-15 Andrew Cagney <ac131313@redhat.com>
963
964 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
965
966 2002-04-15 Andrew Cagney <ac131313@redhat.com>
967
968 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
969 Update copyright.
970
971 * hpread.c (hpread_get_lntt): Add declaration.
972 Also fix PR gdb/391.
973
974 2002-04-14 Andrew Cagney <ac131313@redhat.com>
975
976 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
977 * aclocal.m4, configure: Re-generate.
978 Fix PR gdb/391.
979
980 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
981
982 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
983 instead of tm_print_insn.
984
985 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
986
987 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
988
989 2002-04-14 Andrew Cagney <ac131313@redhat.com>
990
991 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
992 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
993 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
994
995 2002-04-12 Don Howard <dhoward@redhat.com>
996
997 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
998 max_user_call_depth.
999 (init_cmd_lists): Initialize the new value;
1000 * cli/cli-script.c (execute_user_command): Limit the call depth of
1001 user defined commands. This avoids a core-dump when user commands
1002 are infinitly recursive.
1003
1004 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1005
1006 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1007 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1008 from tdep struct instead of DEFAULT_LR_SAVE.
1009 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1010 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1011 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1012
1013 2002-04-12 Michael Snyder <msnyder@redhat.com>
1014
1015 * Remote.c: Spelling fix.
1016 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1017 If no symbol found for "sbrk", try "_sbrk".
1018 (make_output_phdrs): Use bfd_section_name.
1019 (gcore_copy_callback): Use bfd_section_name.
1020 * eval.c: Indentation fix-ups.
1021 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1022 in case it gets applied to an address that is already
1023 in the instruction space.
1024 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1025 * symfile.c: Fix indentation, long lines.
1026 * source.c: White space fix-up.
1027
1028 2002-04-12 Andrew Cagney <cagney@redhat.com>
1029
1030 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1031 * frame.c (frame_register_read): New function. Return non-zero on
1032 success.
1033 (read_relative_register_raw_bytes_for_frame): Delete.
1034 (read_relative_register_raw_bytes): Delete.
1035 * frame.h (frame_register_read): Declare.
1036 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1037 * sh-tdep.c: Ditto.
1038 * infcmd.c (do_registers_info): Ditto.
1039 * hppa-tdep.c: Ditto.
1040 * rs6000-tdep.c: Ditto.
1041 * h8500-tdep.c: Ditto.
1042 * mips-tdep.c: Ditto.
1043 * h8300-tdep.c: Ditto.
1044 * z8k-tdep.c: Ditto.
1045
1046 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1047
1048 From Jimi X <jimix@watson.ibm.com>:
1049 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1050 64-bit SysV ABI.
1051
1052 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1053
1054 From Jimi X <jimix@watson.ibm.com>:
1055 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1056 bfd info.
1057
1058 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1059
1060 From Jimi X <jimix@watson.ibm.com>:
1061 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1062 register sets for these processor variants.
1063
1064 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1065
1066 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1067 registers which are allowed to fail to store.
1068 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1069 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1070 (ppc_cannot_store_register): FPSCR may not be storable.
1071 * regformats/reg-ppc.dat: Support FPSCR.
1072
1073 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1074
1075 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1076 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1077 Add fpscr as an invalid/unfetchable register.
1078 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1079 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1080 (fill_fpregset): Add support for register fpscr.
1081 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1082 (fill_gregset): Account for the fact that register ``mq'' might
1083 not exist.
1084 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1085 (registers_power): Add fpscr to register set at slot 71.
1086 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1087 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1088
1089 2002-04-11 Michael Snyder <msnyder@redhat.com>
1090
1091 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1092 * configure: Regenerate.
1093 * config.in: Regenerate.
1094 * acconfig.h: Add define for _SYSCALL32.
1095 * core-sol2.c: Remove #define _SYSCALL32.
1096 * solib-legacy.c: Remove #define _SYSCALL32.
1097
1098 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1099
1100 * stack.c (select_frame): Cleanup internal error message, do not
1101 use %p.
1102
1103 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1104
1105 * stack.c (select_frame): Check that selected_frame and the
1106 specified level are as expected.
1107 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1108 Update copyright.
1109 * frame.h (struct frame_info): Add field `level'. Update
1110 copyright.
1111 Work-in-progress PR gdb/464.
1112
1113 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1114
1115 * maint.c (maint_print_section_info): Rename print_section_info.
1116 (print_bfd_section_info, print_objfile_section_info): Update.
1117 * inferior.h (struct gdbarch): Add opaque declaration.
1118 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1119 * gdbarch.h: Regenerate.
1120
1121 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1122
1123 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1124 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1125 (kernel_u_size): Added.
1126 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1127 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1128
1129 2002-04-04 Jim Ingham <jingham@apple.com>
1130
1131 * valarith.c (find_size_for_pointer_math): New function, either returns
1132 the size for a pointer's target, returns 1 for void *, or errors for
1133 incomplete types.
1134 (value_add, value_sub): use find_size_for_pointer_math.
1135
1136 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1137
1138 * linux-low.c (linux_look_up_symbols): New hook.
1139 (linux_target_ops): Add linux_look_up_symbols.
1140 * remote-utils.c (decode_address): New function.
1141 (look_up_one_symbol): New function.
1142 * server.c (handle_query): Call target look_up_symbols hook.
1143 * server.h (look_up_one_symbol): Add prototype.
1144 * target.h (struct target_ops): Add look_up_symbols hook.
1145
1146 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1147
1148 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1149 * ChangeLog: Correct paths in last ChangeLog entry.
1150
1151 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1152
1153 * gdbserver/linux-low.h: Remove obsolete prototypes.
1154 (struct linux_target_ops): New.
1155 (extern the_low_target): New.
1156 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1157 (register_addr): Use the_low_target explicitly.
1158 (fetch_register): Likewise.
1159 (usr_fetch_inferior_registers): Likewise.
1160 (usr_store_inferior_registers): Likewise.
1161 * gdbserver/linux-arm-low.c (num_regs): Remove.
1162 (arm_num_regs): Define.
1163 (arm_regmap): Renamed from regmap, made static.
1164 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1165 made static.
1166 (arm_cannot_store_register): Renamed from cannot_store_register,
1167 made static.
1168 (the_low_target): New.
1169 * gdbserver/linux-i386-low.c (num_regs): Remove.
1170 (i386_num_regs): Define.
1171 (i386_regmap): Renamed from regmap, made static.
1172 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1173 made static.
1174 (i386_cannot_store_register): Renamed from cannot_store_register,
1175 made static.
1176 (the_low_target): New.
1177 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1178 (ia64_num_regs): Define.
1179 (ia64_regmap): Renamed from regmap, made static.
1180 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1181 made static.
1182 (ia64_cannot_store_register): Renamed from cannot_store_register,
1183 made static.
1184 (the_low_target): New.
1185 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1186 (m68k_num_regs): Define.
1187 (m68k_regmap): Renamed from regmap, made static.
1188 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1189 made static.
1190 (m68k_cannot_store_register): Renamed from cannot_store_register,
1191 made static.
1192 (the_low_target): New.
1193 * gdbserver/linux-mips-low.c (num_regs): Remove.
1194 (mips_num_regs): Define.
1195 (mips_regmap): Renamed from regmap, made static.
1196 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1197 made static.
1198 (mips_cannot_store_register): Renamed from cannot_store_register,
1199 made static.
1200 (the_low_target): New.
1201 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1202 (ppc_num_regs): Define.
1203 (ppc_regmap): Renamed from regmap, made static.
1204 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1205 made static.
1206 (ppc_cannot_store_register): Renamed from cannot_store_register,
1207 made static.
1208 (the_low_target): New.
1209 * gdbserver/linux-s390-low.c (num_regs): Remove.
1210 (s390_num_regs): Define.
1211 (s390_regmap): Renamed from regmap, made static.
1212 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1213 made static.
1214 (s390_cannot_store_register): Renamed from cannot_store_register,
1215 made static.
1216 (the_low_target): New.
1217 * gdbserver/linux-sh-low.c (num_regs): Remove.
1218 (sh_num_regs): Define.
1219 (sh_regmap): Renamed from regmap, made static.
1220 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1221 made static.
1222 (sh_cannot_store_register): Renamed from cannot_store_register,
1223 made static.
1224 (the_low_target): New.
1225 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1226 (the_low_target): New.
1227
1228 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1229
1230 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1231 override FP_REGNUM with frame->fp. Update copyright.
1232 * parse.c (num_std_regs, std_regs): Delete.
1233 (target_map_name_to_register): Do not search std_regs. Update
1234 function description.
1235 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1236 declarations. Update copyright.
1237 Fix PR gdb/251.
1238
1239 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * gdbserver/Makefile.in: Add stamp-h target.
1242 * gdbserver/configure.in: Create stamp-h.
1243 * gdbserver/configure: Regenerated.
1244
1245 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1246
1247 * gdbserver/inferiors.c: New file.
1248 * gdbserver/target.c: New file.
1249 * gdbserver/target.h: New file.
1250 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1251 dependencies.
1252 * gdbserver/linux-low.c (inferior_pid): New static variable,
1253 moved from server.c.
1254 (linux_create_inferior): Renamed from create_inferior.
1255 Call add_inferior. Return 0 on success instead of a PID.
1256 (linux_attach): Renamed from myattach.
1257 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1258 (linux_thread_alive): Renamed from mythread_alive.
1259 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1260 child dies.
1261 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1262 (regsets_store_inferior_registers): Correct error message.
1263 Add missing ``return 0''.
1264 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1265 (linux_store_registers): Renamed from store_inferior_registers.
1266 (linux_read_memory): Renamed from read_inferior_memory.
1267 (linux_write_memory): Renamed from write_inferior_memory.
1268 (linux_target_ops): New structure.
1269 (initialize_low): Call set_target_ops ().
1270 * gdbserver/remote-utils.c (unhexify): New function.
1271 (hexify): New function.
1272 (input_interrupt): Send signals to ``signal_pid''.
1273 * gdbserver/server.c (inferior_pid): Remove.
1274 (start_inferior): Update create_inferior call.
1275 (attach_inferior): Call add_inferior.
1276 (handle_query): New function.
1277 (main): Call handle_query for `q' packets.
1278 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1279 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1280
1281 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1282
1283 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1284 dependencies.
1285 * gdbserver/configure.in: Check for <string.h>
1286 * gdbserver/configure: Regenerate.
1287 * gdbserver/config.in: Regenerate.
1288 * gdbserver/gdbreplay.c: Include needed system headers.
1289 (remote_open): Remove strchr prototype.
1290 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1291 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1292 (supply_register_by_name): Likewise.
1293 (collect_register): Change buf argument to void *.
1294 (collect_register_by_name): Likewise.
1295 * gdbserver/regcache.h: Add missing prototypes.
1296 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1297 * gdbserver/server.c (handle_query): New function.
1298 (attached): New static variable, moved out of main.
1299 (main): Quiet longjmp clobber warnings.
1300 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1301 * gdbserver/utils.c (error): Remove NORETURN.
1302 (fatal): Likewise.
1303
1304 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1305
1306 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1307 after the last symbol in a block.
1308
1309 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1310
1311 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1312 is non zero as a found symbol.
1313
1314 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1315
1316 * findvar.c: Include "builtin-regs.h".
1317 (value_of_register): Call value_of_builtin_reg when applicable.
1318 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1319 (target_map_name_to_register): Call
1320 builtin_reg_map_name_to_regnum.
1321 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1322 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1323 (builtin_regs_h): Define.
1324 (builtin-regs.o): New target.
1325 (findvar.o): Add $(builtin_regs_h).
1326 * builtin-regs.c, builtin-regs.h: New files.
1327 * std-regs.c: New file.
1328 Partial fix for PR gdb/251.
1329
1330 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1331
1332 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1333 it's no longer required.
1334
1335 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1336
1337 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1338
1339 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1340
1341 From Jimi X <jimix@watson.ibm.com>:
1342 * rs6000-tdep.c (rs6000_software_single_step): Use
1343 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1344 and size. Use target_insert_breakpoint() and
1345 target_remove_breakpoint() to insert and remove breakpoints
1346 instead of explicit memory reads and writes.
1347
1348 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1349
1350 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1351 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1352 ELF_OBJECT_FORMAT ifdef.
1353
1354 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1355
1356 From Jimi X <jimix@watson.ibm.com>:
1357 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1358
1359 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1360
1361 From Jimi X <jimix@watson.ibm.com>:
1362 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1363 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1364
1365 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1366
1367 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1368 s/asprintf/xasprintf/.
1369 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1370
1371 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1372
1373 I believe Jeff Law denies responsability for this one:
1374 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1375 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1376 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1377 Work-around for PR gdb/366.
1378
1379 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1380
1381 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1382 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1383 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1384
1385 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1386
1387 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1388 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1389 information.
1390
1391 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1392
1393 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1394 maintainer.
1395
1396 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1397
1398 * README (Reporting Bugs in GDB): Document the bug web page as the
1399 prefered way of submitting bugs.
1400 Fix PR gdb/402.
1401
1402 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1403
1404 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1405 -1. Update comment.
1406 * gdbarch.h, gdbarch.c: Re-generate.
1407
1408 2002-04-07 Andreas Schwab <schwab@suse.de>
1409
1410 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1411 buffer to regcache_collect.
1412
1413 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1414
1415 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1416 * gdbarch.c, gdbarch.h: Re-generate.
1417
1418 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1419
1420 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1421 declaration. Fix -Werror.
1422
1423 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1424
1425 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1426 * gdbarch.c: Regenerate.
1427
1428 2002-04-05 Michael Snyder <msnyder@redhat.com>
1429
1430 * breakpoint.c (clear_command): Rewrite middle section to
1431 combine two loops with identical control conditions.
1432 Add a cleanup to eliminate a memory leak.
1433 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1434
1435 2002-04-05 H.J. Lu (hjl@gnu.org)
1436
1437 * solib-svr4.c (bkpt_names): Add "__start".
1438
1439 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1440
1441 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1442 as test for 64 bit target.
1443
1444 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1445
1446 * h8500-tdep.c (h8500_write_fp): Delete function.
1447 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1448 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1449 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1451 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1452 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1453 (s390_write_fp):
1454 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1455 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1456 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1457 (d10v_write_fp): Delete function.
1458 * inferior.h (write_fp, generic_target_write_fp): Delete
1459 declarations.
1460 * regcache.c (generic_target_write_fp): Delete function.
1461 (write_fp): Delete function.
1462 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1463 * gdbarch.h, gdbarch.c: Regenerate.
1464 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1465 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1466 (sparc64_write_fp): Delete declaration.
1467 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1468 (h8500_write_fp): Delete declaration.
1469
1470 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1471
1472 * sparc-tdep.c (sparc64_write_fp): Delete.
1473 (sparc_push_dummy_frame): Replace write_fp call with code to store
1474 the FP directly.
1475 (sparc_gdbarch_init): Do not initialize write_fp.
1476
1477 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1478
1479 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1480 clause.
1481
1482 2002-03-29 Jim Blandy <jimb@redhat.com>
1483
1484 * stack.c (get_selected_block): Add new argument `addr_in_block',
1485 used to return the exact code address we used to select the block,
1486 not just the block.
1487 * blockframe.c (get_frame_block, get_current_block): Same.
1488 * frame.h (get_frame_block, get_current_block,
1489 get_selected_block): Update declarations.
1490 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1491 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1492
1493 2002-04-05 Michael Snyder <msnyder@redhat.com>
1494
1495 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1496 warning message.
1497
1498 2002-04-05 J. Brobecker <brobecker@gnat.com>
1499
1500 * utils.c (xfullpath): New function.
1501 * defs.h (xfullpath): Add declaration.
1502 * source.c (openp): Use xfullpath in place of gdb_realpath to
1503 avoid resolving the basename part of filenames when the
1504 associated file is a symbolic link. This fixes a potential
1505 inconsistency between the filenames known to GDB and the
1506 filenames it prints in the annotations.
1507 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1508 to be able to match a filename with either the real filename, or
1509 the name of any symbolic link to this file.
1510 (lookup_partial_symtab): Ditto.
1511
1512 2002-04-04 Michael Snyder <msnyder@redhat.com>
1513
1514 * breakpoint.c: Add support for hardware breakpoints in overlays.
1515 (overlay_events_enabled): New state variable.
1516 (insert_breakpoints): Use overlay_events_enabled to decide
1517 whether to attempt to set a breakpoint at the overlay load addr.
1518 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1519 (remove_breakpoint): Use overlay_events_enabled to decide
1520 whether breakpoints need to be removed from overlay load addr.
1521 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1522 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1523 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1524 disable_overlay_breakpoints): Update overlay_events_enabled.
1525
1526 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1527
1528 * dwarf2read.c (struct function_range): New.
1529 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1530 (check_cu_functions): New.
1531 (read_file_scope): Initialize global function lists.
1532 Call dwarf_decode_line after processing children.
1533 (read_func_scope): Add to global function list.
1534 (dwarf_decode_lines): Call check_cu_functions everywhere
1535 record_line is called. Call record_line with a linenumber
1536 of 0 to mark sequence ends.
1537
1538 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1539
1540 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1541 change sync with glibc.
1542
1543 2002-04-03 Jim Blandy <jimb@redhat.com>
1544
1545 * configure.in: Call AC_C_INLINE.
1546 * configure: Regenerated.
1547
1548 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1549
1550 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1551 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1552
1553 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1554
1555 * NEWS: Mention gcore support on FreeBSD/i386.
1556
1557 * fbsd-proc.c: New file.
1558 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1559 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1560
1561 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1562 while statement.
1563
1564 2002-03-29 Jim Blandy <jimb@redhat.com>
1565
1566 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1567 unescaped newlines in string literals, but newer ones don't. So
1568 escape them.
1569
1570 2002-03-26 Michael Snyder <msnyder@redhat.com>
1571 Andrew Cagney <cagney@redhat.com>
1572
1573 * cli/cli-dump.c: New file. Dump memory to file,
1574 restore file to memory.
1575 * cli/cli-dump.h: New file.
1576 * Makefile.in: Add rules, dependencies for cli-dump.o.
1577 * NEWS: Mention new commands.
1578
1579 2002-03-28 Michael Snyder <msnyder@redhat.com>
1580
1581 * symfile.c (symbol_file_add): Move test for null symbols to later.
1582
1583 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1584
1585 From veksler at il.ibm.com:
1586 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1587 the xstrduped original path.
1588 Fix PR gdb/417.
1589
1590 2002-03-27 Michael Snyder <msnyder@redhat.com>
1591
1592 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1593 * infcmd.c (_initialize_infcmd): Ditto.
1594 * language.c (_initialize_language): Ditto.
1595 * symfile.c (_initialize_symfile): Ditto.
1596 * top.c (_init_main): Ditto.
1597 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1598
1599 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1600
1601 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1602 vector registers handling.
1603 (skip_prologue): Handle new AltiVec instructions. Fill in new
1604 fields of frame data.
1605 (frame_get_saved_regs): Fill in information for AltiVec registers.
1606
1607 2002-03-27 Jim Blandy <jimb@redhat.com>
1608
1609 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1610 a function; leave this macro here to invoke that function.
1611 (symbol_init_mangled_name): Declaration for that function.
1612 * symtab.c (symbol_init_mangled_name): New function.
1613
1614 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1615
1616 * valarith.c: Replace strerror with safe_strerror.
1617 * tracepoint.c: Ditto.
1618 * lin-lwp.c: Ditto.
1619 * go32-nat.c: Ditto.
1620 * inflow.c: Ditto.
1621 * gnu-nat.c: Ditto.
1622
1623 2002-03-27 Andreas Schwab <schwab@suse.de>
1624
1625 * event-top.c (command_line_handler): Remove useless if.
1626
1627 2002-03-27 Andreas Jaeger <aj@suse.de>
1628
1629 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1630 comment.
1631
1632 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1633
1634 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1635 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1636 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1637 (x86_64_linux_dr_get_status, supply_gregset),
1638 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1639 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1640 (x86_64_register_info_table): Add.
1641 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1642 (x86_64_register_raw_size, x86_64_register_virtual_type),
1643 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1644 general x86_64_register_info_table.
1645 (i386_gdbarch_init): gdbarch_register_bytes is now set
1646 dynamicaly during initialization.
1647 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1648 * gdbserver/linux-x86-64-low.c: Ditto.
1649
1650 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1651
1652 * gdbserver/server.c (main): Call target_signal_to_host_p
1653 and target_signal_to_host on signals received from the remote.
1654 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1655 target_signal_from_host on signals sent to the remote.
1656 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1657 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1658
1659 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1660
1661 * signals/signals.c: Include "server.h" in gdbserver build.
1662 (target_signal_from_name): Don't use STREQ.
1663 (_initialize_signals): Likewise. Don't include function in
1664 gdbserver build.
1665
1666 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * signals.c: Moved to...
1669 * signals/signals.c: Here.
1670 * Makefile (signals.o): Update.
1671
1672 2002-03-26 Jeff Law (law@redhat.com)
1673
1674 * somread.c (som_symtab_read): Remove some commented out code and
1675 updated related comments. Do not set the minimal symbol table to
1676 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1677 in a dynamic executable.
1678 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1679 where we are unable to find the minimal symbol for the given
1680 PC value.
1681
1682 2002-03-25 Jeff Law (law@redhat.com)
1683
1684 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1685
1686 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1687
1688 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1689
1690 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1691
1692 * command.h: Update copyright.
1693 (struct cmd_list_element): Replace definition with opaque
1694 declaration.
1695 (enum cmd_types): Document that it will eventually be moved to
1696 cli/cli-decode.h
1697 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1698 (MALLOCED_REPLACEMENT): Delete macro.
1699 * Makefile.in (cli_decode_h): Add $(command_h).
1700 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1701 * top.c: Include "cli/cli-decode.h".
1702 * completer.c: Include "cli/cli-decode.h".
1703 * maint.c: Include "cli/cli-decode.h".
1704 * cli/cli-decode.h: Include "command.h".
1705 (enum command_class): Delete.
1706 (enum cmd_types): Comment out.
1707 (enum cmd_auto_boolean): Delete.
1708 (enum var_types): Delete.
1709
1710 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1711
1712 * cli/cli-decode.c: Include "gdb_assert.h".
1713 (add_set_or_show_cmd): New static function.
1714 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1715 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1716 all fields, such as func, from the set command.
1717
1718 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1719
1720 * MAINTAINERS (sh-elf): Change warning flag to -w.
1721
1722 2002-03-23 Andrew Cagney <cagney@redhat.com>
1723
1724 * defs.h (error): Add printf format attribute.
1725 * thread-db.c (thread_from_lwp): Fix error format string.
1726 * stack.c (parse_frame_specification): Ditto.
1727 * cli/cli-decode.c (undef_cmd_error): Ditto.
1728 * scm-lang.c (scm_lookup_name): Ditto.
1729 * tracepoint.c (trace_error): Ditto.
1730 * remote-utils.c (usage): Ditto.
1731 * remote.c (compare_sections_command): Ditto.
1732 Fix PR gdb/328.
1733
1734 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1735
1736 * gdbtypes.c (append_composite_type_field): New function.
1737 (init_composite_type): New function.
1738 * gdbtypes.h (append_composite_type_field): Declare.
1739 (init_composite_type): Ditto.
1740
1741 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1742
1743 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1744 function.
1745 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1746 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1747 structure returning convention for SYSV ABI case, but not
1748 for GNU/Linux, FreeBSD, or NetBSD.
1749
1750 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1751
1752 * symtab.h (lookup_block_symbol): Add mangled_name argument
1753 to prototype.
1754
1755 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1756 with new mangled_name argument.
1757 * linespec.c (decode_line_1): Likewise.
1758 * valops (value_of_this): Likewise.
1759 * symtab.c (lookup_transparent_type): Likewise.
1760 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1761 (lookup_symbol): If we are given a mangled name, pass it down
1762 to lookup_symbol_aux.
1763 (lookup_block_symbol): If we are given a mangled name to check
1764 against, only return symbols which match it.
1765
1766 2002-03-22 Christopher Faylor <cgf@redhat.com>
1767
1768 * win32-nat.c (child_create_inferior): Check for proper shell to use
1769 here, in case the user changes it on the fly.
1770 (_initialize_inftarg): Remove shell path considerations.
1771
1772 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1773
1774 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1775 for gdbarch_max_register_raw_size and max_register_virtual_size.
1776 Adjust copyright year.
1777
1778 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1781 in a function to cover the entire beginning of the function
1782 as well if it does not already.
1783
1784 2002-03-21 Tom Rix <trix@redhat.com>
1785
1786 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1787 (rs6000_ptrace64): Renamed from ptrace64.
1788
1789 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1790
1791 * gdbserver/remote-utils.c (remote_open): Don't call
1792 getprotobyname, we're all using TCP here so just use
1793 IPPROTO_TCP.
1794 * gdbserver/gdbreplay.c (remote_open): Ditto.
1795
1796 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1797
1798 * regcache.c (_initialize_regcache): No need to call
1799 build_regcache() at this time; it gets called whenever
1800 the gdbarch changes.
1801
1802 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1803
1804 * sparc-nat.c: Include sys/param.h where possible.
1805
1806 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1807
1808 Fix PR gdb/422.
1809 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1810 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1811 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1812 complex types.
1813 * stabsread.c (rs6000_builtin_type): Likewise.
1814 (read_sun_floating_type): Likewise.
1815
1816 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1817
1818 * stabsread.c (read_member_functions): Remove skip code for duplicate
1819 constructor/destructor methods. Use standard parsing for these
1820 methods and just do not chain them to the list of methods after
1821 parsing.
1822
1823 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1824
1825 * coffread.c: Remove redundant static declarations. Replace
1826 occurrences of `PTR' with `void *'.
1827 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1828 * top.h (quit_cover): Likewise.
1829 * defs.h (catch_errors): Likewise.
1830
1831 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1832
1833 * defs.h (XMALLOC): Define.
1834 * gdb-events.sh (XMALLOC): Delete macro.
1835 * gdb-events.c, gdb-events.h: Regenerate.
1836 * gdbarch.sh (XMALLOC): Delete macro.
1837 * gdbarch.c: Regenerate.
1838 * serial.c (XMALLOC): Delete macro.
1839 * ui-file.c (XMALLOC): Ditto.
1840 * ser-unix.h (XMALLOC): Ditto.
1841 * sh-tdep.c (XMALLOC): Ditto.
1842 * ui-out.c (XMALLOC): Ditto.
1843 * utils.c (XMALLOC): Ditto.
1844 * i386-tdep.c (XMALLOC): Ditto.
1845 * gdb-events.c (XMALLOC): Ditto.
1846 * d10v-tdep.c (XMALLOC): Ditto.
1847 * cli-out.c (XMALLOC): Ditto.
1848
1849 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1850 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1851 * ui-file.c, ui-out.c: Ditto.
1852
1853 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1854
1855 * command.h (struct cmd_list_element): Add field context.
1856 (set_cmd_context, get_cmd_context): Declare.
1857 * cli/cli-decode.h: Ditto.
1858 * cli/cli-decode.c (get_cmd_context): New function.
1859 (set_cmd_context): New function.
1860 (add_cmd): Initialize context.
1861 Part of fixing PR gdb/145 and PR gdb/146.
1862
1863 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1864
1865 * cli/cli-decode.c (cmd_type): New function.
1866 * command.h (cmd_type): Declare.
1867 * infrun.c (set_schedlock_func): Call function cmd_type.
1868 * kod.c (kod_set_os): Call cmd_type.
1869 * cris-tdep.c (cris_version_update): Use function cmd_type.
1870 (cris_mode_update, cris_abi_update): Ditto.
1871
1872 * command.h: (execute_cmd_post_hook): Declare.
1873 (execute_cmd_pre_hook): Declare.
1874 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1875 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1876 functions. Execute pre/post hook while ensuring that afterwords
1877 hook_in is cleared.
1878 * top.c (execute_command): Use execute_cmd_post_hook, and
1879 execute_cmd_pre_hook to execute pre/post commands.
1880 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1881 hook_stop_stub.
1882 (hook_stop_stub): Call execute_cmd_pre_hook.
1883
1884 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1885
1886 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1887 set'' and this leads to a core dump. Move xstrdup of
1888 operating_system to after check that it is not NULL.
1889
1890 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1891
1892 * kod.c (kod_set_os): Remove unnecessary check that
1893 ``command->type'' is set_cmd.
1894
1895 * valprint.c (set_input_radix): Use input_radix.
1896 (set_output_radix): Use output_radix.
1897 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1898 isn't reverted.
1899
1900 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1901
1902 * value.h (struct value): Delete field ``substring_addr''. Change
1903 aligner fields to force_doublest_align, force_longest_align,
1904 force_core_addr_align and force_pointer_aligh.
1905
1906 * value.h (struct value): Fix typo in above change.
1907
1908 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1909
1910 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1911 to fix internal_error from ``maintenance print architecture''.
1912
1913 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1914
1915 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1916 for gcc versions after gcc-2.8.1.
1917
1918 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1919
1920 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1921 for method resolution. Restore adjustment of ``this'' pointer after
1922 calling value_struct_elt, which was accidentally removed during the
1923 HP merge.
1924
1925 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1926
1927 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1928 value_of_register.
1929 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1930 get_saved_register.
1931 * value.h (value_of_register): Update.
1932
1933 2002-03-14 Richard Henderson <rth@redhat.com>
1934
1935 * configure.in: Detect declaration for canonicalize_file_name.
1936 * utils.c (canonicalize_file_name): Declare, if needed.
1937 (gdb_realpath): Prefer realpath if available and usable.
1938 * config.in, configure: Rebuild.
1939
1940 2002-03-14 Richard Henderson <rth@redhat.com>
1941
1942 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1943 a constant array bound.
1944
1945 * MAINTAINERS: Add myself to write-after-approval.
1946
1947 2002-03-14 Michael Snyder <msnyder@redhat.com>
1948
1949 * symfile.c (syms_from_objfile): Return immediately if no syms.
1950 (symbol_file_add): Return immediately if no syms.
1951 (find_sym_fns): Return immediately if no syms.
1952
1953 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1954
1955 * gdbserver/remote-util.c (remote_open): Print remote-side's
1956 IP address when remote debugging over the network.
1957
1958 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1959
1960 * config/sparc/fbsd.mh: Fix copyright.
1961 * config/sparc/fbsd.mt: Likewise.
1962
1963 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1964
1965 * MAINTAINERS: Fix typo in name of gdb warnings option.
1966 (x86-64): Fix formating so that this can be parsed by awk.
1967
1968 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1969
1970 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1971 * defs.h: Include "gdb/signals.h".
1972 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1973
1974 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1975
1976 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1977 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1978 from x86-64-tdep.h
1979
1980 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1981 Don Howard <dhoward@redhat.com>
1982
1983 * mips-tdep.c (ST0_FR): Define.
1984 (mips2_fp_compat): New function, temporarily disabled.
1985 (mips_read_fp_register_single): New function.
1986 (mips_read_fp_register_double): New function.
1987 (mips_print_register): Use them.
1988 (do_fp_register_row): Likewise.
1989
1990 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1991
1992 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1993 approval''.
1994
1995 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1996
1997 * stabsread.c (read_member_functions): Fix is_stub test for
1998 static member functions, improve comment.
1999
2000 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2001
2002 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2003 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2004 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2005 commands that set boolean values.
2006 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2007 (arm_rdi_resume): Always initialize PC.
2008 (arm_rdi_open): Don't use rslt as a boolean.
2009 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2010 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2011 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2012 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2013
2014 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2015
2016 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2017 * configure: Rebuilt.
2018
2019 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2020
2021 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2022 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2023
2024 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2025
2026 * cli/cli-decode.c (set_cmd_completer): New function.
2027 * command.h (set_cmd_completer): Declare.
2028 * cli/cli-decode.h (set_cmd_completer): Ditto.
2029
2030 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2031 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2032 * win32-nat.c (_initialize_inftarg): Ditto.
2033 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2034 * proc-api.c (_initialize_proc_api): Ditto.
2035 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2036 * source.c (_initialize_source): Ditto.
2037 * exec.c (_initialize_exec): Ditto.
2038 * solib.c (_initialize_solib): Ditto.
2039 * top.c (init_main): Ditto.
2040 * tracepoint.c (_initialize_tracepoint): Ditto.
2041 * symfile.c (_initialize_symfile): Ditto.
2042 * printcmd.c (_initialize_printcmd): Ditto.
2043 * infcmd.c (_initialize_infcmd): Ditto.
2044 * corefile.c (_initialize_core): Ditto.
2045
2046 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2047
2048 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2049
2050 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2051
2052 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2053
2054 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2055
2056 * NEWS: Update headings, 5.2 has branched.
2057
2058 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2059
2060 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2061 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2062 (register_addr, REGISTER_RAW_SIZE): Likewise.
2063 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2064 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2065
2066 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2067
2068 * MAINTAINERS (x86-64): Add myself.
2069 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2070 changed value_ptr -> struct value *
2071
2072 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2073
2074 * configure.host (sparc64-*-freebsd): Add.
2075 * configure.tgt: Likewise.
2076 * config/sparc/fbsd.mh: New file.
2077 * config/sparc/fbsd.mt: Likewise.
2078 * config/sparc/nm-fbsd.h: Likewise.
2079 * config/sparc/tm-fbsd.h: Likewise.
2080
2081 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2082
2083 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2084 regformats/reg-s390x.dat.
2085
2086 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2087
2088 * utils.c: Add FIXME explaining true/false problem.
2089
2090 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2091
2092 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2093
2094 2002-02-28 Michael Chastain <mec@shout.net>
2095
2096 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2097
2098 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2099
2100 * gdbserver/linux-s390-low.c: New file.
2101 * regformats/reg-s390.dat: New file.
2102 * regformats/reg-s390x.dat: New file.
2103 * gdbserver/configure.srv: Add S/390.
2104 * gdbserver/Makefile.in: Add S/390.
2105 * configure.tgt: Enable gdbserver for S/390.
2106
2107 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2108
2109 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2110 first line of the doc string for "info dos", except at the end of
2111 the sentence, since the short help stops at the first period.
2112
2113 2002-02-28 Jason Merrill <jason@redhat.com>
2114
2115 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2116
2117 2002-02-27 Fred Fish <fnf@redhat.com>
2118
2119 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2120 comment (dumy -> dummy).
2121
2122 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2123
2124 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2125
2126 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2127
2128 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2129
2130 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2131
2132 * gdbserver/acconfig.h: New file.
2133 * gdbserver/i387-fp.c: New file.
2134 * gdbserver/i387-fp.h: New file.
2135 * gdbserver/linux-x86-64.c: New file.
2136 * regformats/reg-x86-64.dat: New file.
2137 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2138 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2139 * gdbserver/configure.in: Add support for regsets.
2140 * gdbserver/config.in: Regenerate.
2141 * gdbserver/configure: Regenerate.
2142 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2143 * gdbserver/linux-low.h: New file.
2144 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2145 for regsets.
2146 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2147 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2148 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2149 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2150 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2151 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2152 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2153 "i387-fp.h". Add PTRACE_GETREGS and friends.
2154 * gdbserver/regcache.c (supply_register): New function.
2155 (supply_register_by_name): New function.
2156 (collect_register): New function.
2157 (collect_register_by_name): New function.
2158
2159 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2160
2161 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2162 (config.status): Add configure.srv dependency.
2163 (server_h): Add config.h dependency.
2164
2165 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2166
2167 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2168 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2169 * gdbserver/configure.srv: Change i386-*-linux* to use
2170 reg-i386-linux.o.
2171
2172 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2173
2174 * x86-64-tdep.c: Re-indent. Update copyright date.
2175
2176 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2177
2178 From Michal Ludvig <mludvig@suse.cz>:
2179 * x86-64-tdep.c (value.h): Delete.
2180 (gdb_assert.h): Include.
2181 (x86_64_register_convert_to_virtual,
2182 x86_64_register_convert_to_raw ): Add check which lets only
2183 floating-point values to be converted.
2184 (value_push): Delete.
2185 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2186 (i386_gdbarch_init): Number of register_bytes fixed.
2187
2188 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2189
2190 * MAINTAINERS: Add x86-64 target.
2191
2192 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2193
2194 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2195 * osfsolib.c (solib_map_sections): Ditto.
2196 * irix5-nat.c (solib_map_sections): Ditto.
2197 * corelow.c (gdb_check_format): Ditto.
2198 * symfile.c (symfile_bfd_open): Ditto.
2199 * solib.c (solib_map_sections): Ditto.
2200 Fix PR gdb/354.
2201
2202 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2203
2204 * remote.c (_initialize_remote): By default, disable ``e'' and
2205 ``E'' step out-of-range packets.
2206
2207 2002-02-26 Andreas Schwab <schwab@suse.de>
2208
2209 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2210 m68k_linux_frame_saved_pc.
2211 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2212 in_sigtramp.
2213 (SIGCONTEXT_PC_OFFSET): Remove.
2214 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2215 m68k_linux_sigtramp_saved_pc): New functions.
2216 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2217 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2218 (UCONTEXT_PC_OFFSET): Define.
2219 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2220 non-RT and RT signal trampolines.
2221
2222 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2223
2224 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2225 (TARGET_NBPG, STACK_END_ADDR): Delete
2226 (VARIABLES_INSIDE_BLOCK): Delete.
2227
2228 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2229
2230 * utils.c (perror_with_name): Make string parameter constant.
2231 (print_sys_errmsg): Ditto.
2232 (query): Ditto.
2233 * defs.h (perror_with_name): Update.
2234 (print_sys_errmsg): Update.
2235 (query): Update.
2236
2237 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2238
2239 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2240 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2241
2242 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2243
2244 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2245 if it already matches the current architecture from the exec file.
2246 Include arch-utils.h for gdbarch_info_init prototype.
2247 * Makefile.in (rs6000-nat.o): Update dependencies.
2248
2249 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2250
2251 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2252 list of exported variables.
2253
2254 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2255
2256 * gdbserver/configure.srv: New file.
2257 * gdbserver/configure.in: Use configure.srv instead
2258 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2259 from it.
2260 * gdbserver/configure: Regenerated.
2261 * gdbserver/terminal.h: New file.
2262 * gdbserver/Makefile.in: Update for configure changes. Remove
2263 more unneeded include paths.
2264
2265 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2266
2267 From wiz at danbala:
2268 * config/sparc/tm-sp64.h: Fix grammar and typos.
2269 Fix PR gdb/287.
2270
2271 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2272
2273 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2274 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2275 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2276 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2277 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2278 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2279 * s390-tdep.c: Ditto.
2280 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2281 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2282 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2283 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2284 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2285 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2286 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2287 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2288 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2289 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2290 Fix PR gdb/378.
2291
2292 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2293
2294 * lin-thread.c: Delete file.
2295 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2296 to gdb_proc_service.h.
2297 * configure: Re-generate.
2298
2299 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2300 * serial.c (serial_open): Delete check for "ocd".
2301 Fix PR gdb/349.
2302
2303 * Makefile.in (linux-thread.o): Delete target.
2304 * linux-thread.c: Delete file.
2305
2306 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2307 renamed SH files to be consistent.
2308
2309 * symtab.c (sort_search_symbols): Use xfree.
2310
2311 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2312
2313 * arm-linux-tdep.c (arm_linux_init_abi): Register
2314 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2315 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2316 definition with undef, since we don't want the sysvr4 definition.
2317 (SKIP_TRAMPOLINE_CODE): Likewise.
2318
2319 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2320
2321 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2322
2323 * configure.in: (AC_CHECK_FUNCS) Added test for
2324 canonicalize_file_name Regenerated.
2325 * config.in, configure: Regenerated.
2326 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2327 defined use canonicalize_file_name.
2328
2329 2002-02-23 Michael Chastain <mec@shout.net>
2330
2331 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2332
2333 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2334
2335 * README: Remove references to cygnus.com.
2336 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2337 dot com'' form. Remove references to cygnus.com and sourceware.
2338
2339 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2340
2341 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2342 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2343 1003.1-2001 no longer allows "head -1".
2344 * gdb/Makefile.in (version.c): Likewise.
2345 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2346 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2347 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2348
2349 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2350
2351 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2352 * command.h (cmd_cfunc_eq): Declare.
2353 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2354
2355 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2356 ``struct cmd_list_element *''.
2357 * cli/cli-cmds.c (is_complete_command): Update. Use
2358 cmd_cfunc_eq.
2359 * top.c (execute_command): Pass the command to
2360 is_complete_command.
2361 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2362
2363 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2364
2365 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2366 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2367 architecture defines.
2368 * s390-tdep.c (s390_gdbarch_init): Likewise.
2369
2370 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2371
2372 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2373 (arm_linux_push_arguments): Likewise.
2374 (arm_linux_init_abi): Register them. Also register linux-specific
2375 call_dummy_words.
2376 (find_minsym_and_objfile): Use strcmp, not STREQ.
2377 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2378 (arm_linux_call_dummy_words): Delete declaration.
2379 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2380 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2381 declarations.
2382 (LOWEST_PC): Delete.
2383
2384 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2385
2386 * maint.c (print_section_info): Do not prepend `0x' to filepos
2387 output, it will be handled by local_hex_string_custom.
2388
2389 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2390
2391 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2392 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2393 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2394
2395 2002-02-22 Jim Blandy <jimb@redhat.com>
2396
2397 Indicate that the bcache functions don't change the strings
2398 they're passed.
2399 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2400 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2401
2402 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2403
2404 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2405
2406 2002-02-21 Christopher Faylor <cgf@redhat.com>
2407
2408 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2409 find the complete path to a loaded DLL.
2410
2411 2002-02-21 Fred Fish <fnf@redhat.com>
2412
2413 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2414 that marks the end of the range of a function, enter a line number
2415 entry that has a line number of zero and a PC offset that matches
2416 the end of the function. This starts a range of PC's for which no
2417 line number information is known.
2418 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2419 PC's for which no line number info is found (line number is zero)
2420 then we didn't find any valid line information.
2421 * symtab.h: Document use of zero line number entry.
2422
2423 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2424
2425 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2426 (have_ptrace_getvrregs): Define for run time checks.
2427 (gdb_vrregset_t): New type for Altivec register handling.
2428 (fetch_register, store_register): Fetch/store altivec register
2429 when needed.
2430 (fetch_altivec_register, store_altivec_register): New functions.
2431 (supply_vrregset, fill_vrregset): New functions.
2432 (fetch_altivec_registers, store_altivec_registers): New functions.
2433 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2434 registers as well.
2435
2436 2002-02-21 Jiri Smid <smid@suse.cz>
2437
2438 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2439
2440 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2441
2442 * Makefile.in (armnbsd-nat.o): Update dependencies.
2443 * armnbsd-nat.c (supply_gregset): New function. Common code to
2444 supply the integer register set.
2445 (supply_fparegset): New function. Similar for FPA registers.
2446 (fetch_regs, fetch_fp_regs): Use them.
2447 (fetch_core_registers): Likewise.
2448 (fetch_elfcore_registers): New function.
2449 (arm_netbsd_elfcore_fns): New core-file type specification.
2450 (_initialize_arm_netbsd_nat): Register it.
2451
2452 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2453
2454 * armnbsd-nat.c: Include gdbcore.h.
2455 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2456 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2457 'void' to declaration, to shut up ARI.
2458 (fetch_core_registers): Make static. Rewrite using supply_register.
2459 (arm_netbsd_core_fns): New core-file type specification.
2460 (_initialize_arm_netbsd_nat): New function.
2461
2462 2002-02-21 Christopher Faylor <cgf@redhat.com>
2463
2464 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2465 value.
2466
2467 2002-02-20 Christopher Faylor <cgf@redhat.com>
2468
2469 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2470 fails.
2471
2472 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2473
2474 * jv-exp.y (parse_number): Change type of implicit longs
2475 to builtin_type_uint64.
2476
2477 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2478
2479 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2480 to be an integer instead of a `union wait'.
2481
2482 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2483
2484 * mips-linux-nat.c: Call the operating system GNU/Linux.
2485 * mips-linux-tdep.c: Likewise.
2486 * mips-tdep.c: Likewise.
2487
2488 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2489
2490 Fix PR gdb/265.
2491 * jv-exp.y (parse_number): Handle 64-bit integers.
2492
2493 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2494
2495 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2496 AC_STDC_HEADERS to AC_HEADER_STDC.
2497 * gdbserver/configure: Regenerated.
2498
2499 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2500
2501 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2502 is defined.
2503 * sparc-tdep.c (get_longjmp_target): Likewise.
2504
2505 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2506
2507 * News: Add news about ARM and Multi-arch. Mention the new target
2508 arm*-*-netbsd*.
2509
2510 2002-02-19 Jim Blandy <jimb@redhat.com>
2511
2512 * stabsread.c (error_type_complaint): Improve error message.
2513
2514 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2515
2516 * gdbserver/README: Update documentation.
2517 * gdbserver/configure.in: Update configury to match documentation.
2518 * gdbserver/Makefile.in: Likewise.
2519 * gdbserver/configure: Regenerated.
2520 * gdbserver/aclocal.m4: New file, generated by aclocal.
2521 * gdbserver/config.in: New file, generated by autoheader.
2522
2523 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2524
2525 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2526 armnbsd-nat.c.
2527
2528 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2529
2530 * arm-tdep.h (enum arm_float_model): New enum.
2531 (struct gdbarch_tdep): Add fp_model.
2532 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2533 up floating-point conversions until we know the floating-point model
2534 in use by the inferior. Don't complain about being unable to
2535 determine the ABI of the inferior when we don't have one.
2536 (arm_extract_return_value): Support different floating-point models.
2537 (arm_store_return_value): Likewise.
2538 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2539 ARM_FLOAT_SOFT.
2540 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2541
2542 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2543
2544 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2545 of ``current_gdbarch''.
2546
2547 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2548
2549 * armnbsd-nat.c : ANSIfy all function declarations.
2550 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2551 (fetch_inferior_registers): Re-implement in terms of above.
2552 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2553 (store_inferior_registers): Re-implement in terms of above.
2554
2555 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2556
2557 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2558 kernel.
2559 * arm-linux-tdep.c: Likewise.
2560 * config/arm/tm-linux.h: Likewise.
2561
2562 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2563
2564 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2565 * config/arm/nbsd.mt (TM_FILE): Delete.
2566 * config/arm/tm-nbsd.h: Delete.
2567
2568 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2569
2570 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2571 Initialize CALL_DUMMY_LENGTH.
2572
2573 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2574
2575 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2576 function.
2577 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2578 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2579 defines one thing and that is incorrect for this port.
2580 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2581
2582 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2583
2584 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2585
2586 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2587
2588 * win32-nat.c (display_selector): New function. Displays information
2589 about the information returned by GetThreadSelectorEntry API function.
2590 (display_selectors): New function. Displays the infomation of
2591 the selector given as argument, or of CS, DS ans FS selectors
2592 if no argument is given.
2593 ( _initialize_inftarg): Add "w32" as info prefix command.
2594 Add "info w32 selector" as command calling display_selectors.
2595
2596 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2597
2598 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2599 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2600 if not defined.
2601
2602 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2603
2604 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2605
2606 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2607
2608 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2609 (arm_fix_call_dummy): Call it.
2610 (arm_call_dummy_breakpoint_offset): Delete.
2611 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2612 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2613
2614 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2615
2616 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2617 Default to func_frame_chain_valid.
2618 * gdbarch.h, gdbarch.c: Re-generate.
2619 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2620
2621 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2622
2623 * ppc-linux-nat.c: Update copyright.
2624 (fetch_register, store_register): Add tid parameter, don't compute
2625 tid here.
2626 (fetch_ppc_registers, store_ppc_registers): Add tid
2627 parameter. Pass it along to callees.
2628 (fetch_inferior_registers, store_inferior_registers): Compute tid
2629 here, and pass it to calleed functions.
2630 (fill_gregset, supply_fpregset): Clean up formatting.
2631
2632 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2633
2634 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2635 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2636
2637 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2638
2639 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2640 * gdbarch.c gdbarch.h: Regenerate.
2641 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2642 function.
2643 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2644 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2645 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2646
2647 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2648 * arm-tdep.c (arm_get_longjmp_target): New function.
2649 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2650 this to a positive value register arm_get_longjmp_target as the
2651 longjmp handler.
2652 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2653 (arm_linux_init_abi): Set up longjmp description in tdep.
2654 * armnbsd-nat.c (get_longjmp_target): Delete.
2655 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2656 description in tdep.
2657 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2658 (get_longjmp_target): Delete declaration.
2659 (GET_LONGJMP_TARGET): Delete.
2660 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2661 (GET_LONGJMP_TARGET): Delete.
2662
2663 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2664
2665 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2666 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2667 of ``current_gdbarch''.
2668
2669 2002-02-17 Tom Tromey <tromey@redhat.com>
2670
2671 * cli/cli-cmds.c (compare_strings): New function.
2672 (complete_command): Only print each unique item once.
2673 * completer.h (complete_line): Declare.
2674 * completer.c (complete_line): New function.
2675 (line_completion_function): Use it.
2676
2677 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2678
2679 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2680 * gdbarch.h, gdbarch.c: Re-generate.
2681
2682 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2683
2684 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2685
2686 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2687
2688 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2689 * valops.c (value_arg_coerce): Don't take the address of a reference
2690 to convert an argument to a reference.
2691
2692 2002-02-15 Christopher Faylor <cgf@redhat.com>
2693
2694 * win32-nat.c (get_image_name): New function.
2695 (handle_load_dll): Use get_image_name function.
2696 (get_child_debug_event): Avoid registering debug events until possibly
2697 execed process is started.
2698 (child_create_inferior): Allow invocation via shell so that command
2699 line redirection, etc. works ok.
2700 (_initialize_inftarg): Add new command: "set shell" to control whether
2701 a shell is used to start a process.
2702
2703 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2704
2705 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2706 instead of find_register_by_number.
2707 (cannot_store_register): Likewise.
2708
2709 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2710
2711 * dwarf2read.c: Replace fprintf (stderr, ...) by
2712 fprintf_unfiltered (gdb_stderr, ...).
2713
2714 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2715
2716 * gdbserver/gdbserver.1: Document --attach.
2717
2718 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2719
2720 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2721 descriptions.
2722 * arm-tdep.c (arm_default_arm_le_breakpoint)
2723 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2724 (arm_default_thumb_be_breakpoint): New. Initialize them from
2725 traditional breakpoint defines.
2726 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2727 (arm_gdbarch_init): Initialize new breakpoint variables.
2728 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2729 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2730 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2731 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2732 code out to ...
2733 (arm_netbsd_init_abi_common): ... here; new function.
2734 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2735 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2736 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2737 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2738
2739 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2740
2741 * arm-tdep.h (enum arm_abi): New enum.
2742 (struct gdbarch_tdep): New structure.
2743 (LOWEST_PC): Provide a default.
2744 (arm_gdbarch_register_os_abi): Declare new function.
2745 * arm-tdep.c (arm_abi_names): New array.
2746 (process_note_abi_tag_sections): New function.
2747 (get_elfosabi): New function.
2748 (arm_gdbarch_register_os_abi): New function.
2749 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2750 support for that ABI has been built in, then call the appropriate
2751 configuration routine. Use gdbarch_num_regs() to get the number
2752 of registers.
2753 (arm_dump_tdep): New function.
2754 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2755 place-holder functions.
2756 (_initialize_arm_tdep): Register them.
2757 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2758
2759 * armnbsd-tdep.c: New file.
2760 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2761 * config/arm/nbsd.mt (TDEPFILES): Add it.
2762 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2763
2764 * armnbsd-nat.c: Include regcache.h.
2765 * Makefile.in (armnbsd-nat.o): Update dependency list.
2766
2767 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2768
2769 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2770
2771 * gdbserver/Makefile.in: Fix typos in target rules.
2772
2773 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2774
2775 Fix part of PR gdb/267.
2776 * linespec.c (find_methods): Handle constructors specially for now.
2777
2778 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2779
2780 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2781 handling.
2782 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2783 standard_coerce_float_to_double().
2784
2785 2002-02-14 Christopher Faylor <cgf@redhat.com>
2786
2787 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2788 GDBINIT_FILENAME.
2789
2790 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2791
2792 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2793 find_variant_by_name, because it confuses the multiarch
2794 framework. Return NULL if there isn't an architecture with the
2795 user supplied name, instead of forcing a different one without
2796 recording the change with the multiarch machinery.
2797 (find_variant_by_name): Delete.
2798
2799 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2800
2801 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2802 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2803
2804 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2805
2806 * stack.c (print_frame_info_base): When calling
2807 print_frame_info_listing_hook, set current_source_symtab.
2808
2809 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2810
2811 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2812 and remove unused $(INCLUDE_DIR).
2813 Add regcache.c to OBS.
2814 Add generated register protocol files to clean target.
2815 Update dependencies for new objects, obsolete old target code.
2816
2817 * gdbserver/linux-low.c: Remove all platform-specific code to
2818 new files. Remove various dead code. Update to use regcache
2819 functionality.
2820 * gdbserver/remote-utils.c (fromhex): Add return statement
2821 to quiet warning.
2822 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2823 constant.
2824 (input_interrupt): Add integer parameter to match prototype
2825 of a signal handler.
2826 (outreg): Use register_data ().
2827 (prepare_resume_reply): Use gdbserver_expedite_regs.
2828 * gdbserver/server.c (main): Dynamically allocate own_buf because
2829 PBUFSIZ is no longer constant. Use registers_to_string () and
2830 registers_from_string ().
2831 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2832 for error (), fatal (), and warning (). Update definition of
2833 PBUFSIZ to use regcache functionality. Add include guard.
2834 * gdbserver/utils.c (fatal): Add missing ``const''.
2835 (warning): New function.
2836
2837 * regformats/regdat.sh: Include "regcache.h" in generated files.
2838 Provide init_registers () function.
2839 * regformats/regdef.h: Add prototype for set_register_cache ().
2840 Add include guard.
2841
2842 * gdbserver/linux-arm-low.c: New file.
2843 * gdbserver/linux-i386-low.c: New file.
2844 * gdbserver/linux-ia64-low.c: New file.
2845 * gdbserver/linux-m68k-low.c: New file.
2846 * gdbserver/linux-mips-low.c: New file.
2847 * gdbserver/linux-ppc-low.c: New file.
2848 * gdbserver/linux-sh-low.c: New file.
2849
2850 * gdbserver/regcache.c: New file.
2851 * gdbserver/regcache.h: New file.
2852
2853 * gdbserver/low-linux.c: Removed obsolete file.
2854
2855 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2856
2857 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2858 * config/i386/linux.mt: Likewise.
2859 * config/ia64/linux.mt: Likewise.
2860 * config/m68k/linux.mh: Likewise.
2861 * config/powerpc/linux.mh: Likewise.
2862 * config/mips/linux.mt: Likewise.
2863
2864 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2865
2866 * config/i386/i386lynx.mh: Mark gdbserver variables
2867 as (currently) obsolete for this target.
2868 * config/i386/nbsd.mt: Likewise.
2869 * config/i386/nbsdelf.mt: Likewise.
2870 * config/m32r/m32r.mt: Likewise.
2871 * config/m68k/m68klynx.mh: Likewise.
2872 * config/m68k/nbsd.mt: Likewise.
2873 * config/m68k/sun3os4.mh: Likewise.
2874 * config/mips/vr5000.mt: Likewise.
2875 * config/ns32k/nbsd.mt: Likewise.
2876 * config/pa/hppabsd.mh: Likewise.
2877 * config/pa/hppaosf.mh: Likewise.
2878 * config/powerpc/nbsd.mt: Likewise.
2879 * config/rs6000/rs6000lynx.mh: Likewise.
2880 * config/s390/s390.mt: Likewise.
2881 * config/s390/s390x.mt: Likewise.
2882 * config/sparc/sparclynx.mh: Likewise.
2883 * config/sparc/sun4os4.mh: Likewise.
2884 * config/i386/x86-64linux.mt: Likewise.
2885 * config/sparc/linux.mh: Likewise.
2886
2887 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2888
2889 * configure.tgt: Configure gdbserver only for known working
2890 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2891 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2892 SUBDIRS if it is configured. Update comment for ${nativefile}.
2893 * configure: Regenerated.
2894
2895 2002-02-13 Michael Snyder <msnyder@redhat.com>
2896
2897 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2898
2899 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2900 (default_gcore_mach): Just return 0, work around a problem in bfd.
2901 (default_gcore_target): OK to return NULL if exec_bfd is null.
2902 (make_mem_sec): Use a cast, avoid a warning.
2903
2904 * procfs.c (find_memory_regions_callback): Use a cast instead of
2905 calling host_pointer_to_address (which complains if
2906 sizeof (host pointer) != sizeof (target pointer)).
2907 (procfs_make_note_section): Avoid overflow in psargs string.
2908
2909 * procfs.c (procfs_make_note_section): Make the default
2910 implementation return an error.
2911
2912 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2913
2914 * procfs.c (procfs_make_note_section): Provide a default definition
2915 (for alpha-dec-osf4.0f). Fix typos.
2916
2917 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2918
2919 * linux-proc.c: Add include of regcache.h.
2920 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2921
2922 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2923
2924 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2925 * memattr.c (create_mem_region): Disallow useless empty region.
2926 Regions are half-open intervals, so allow [A..B) [B..C) as
2927 non-overlapping.
2928
2929 2002-02-13 Michael Chastain <mec@shout.net>
2930
2931 * defs.h: Kill CONST_PTR.
2932 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2933 * c-lang.c (c_builtin_types): Likewise.
2934 * ch-lang.c (ch_builtin_types): Likewise.
2935 * f-lang.c (f_builtin_types): Likewise.
2936 * language.c (unknown_builtin_types): Likewise.
2937 * m2-lang.c (m2_builtin_types): Likewise.
2938 * p-lang.c (pascal_builtin_types): Likewise.
2939 * scm-lang.c (c_builtin_types): Likewise.
2940
2941 2002-02-13 Keith Seitz <keiths@redhat.com>
2942
2943 * arm-tdep.h (arm_get_next_pc): Add declaration.
2944
2945 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2946
2947 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2948 with other related struct-returning functions.
2949 (arm_extract_struct_value_address): New function.
2950 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2951 initialize float_format, double_format and long_double_format as
2952 appropriate to the endianness of the target.
2953 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2954 (arm_use_struct_convention): Delete declaration.
2955 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2956
2957 2002-02-13 Keith Seitz <keiths@redhat.com>
2958
2959 * defs.h (core_addr_to_string_nz): New function.
2960
2961 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2962
2963 Apply missing bits of 2002-01-15 patch.
2964 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2965 (fill_fpregset): Use i387_fill_fsave.
2966
2967 2002-02-12 Keith Seitz <keiths@redhat.com>
2968
2969 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2970 (core_addr_to_string_nz): New function.
2971
2972 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2973
2974 * arm-linux-nat.c: Really include arm-tdep.h.
2975 * config/arm/tm-linux.h (struct type, struct value): Declare.
2976
2977 2002-02-11 Michael Snyder <msnyder@redhat.com>
2978
2979 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2980 (gcore section): Ifdef for Solaris and Unixware only.
2981 (procfs_do_thread_registers): Unixware needs one lwpstatus
2982 per thread (not one prstatus or pstatus).
2983 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2984 not over all gdb threads. For unixware, call elfcore_write_pstatus
2985 once before iterating over threads.
2986
2987 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2988
2989 * arm-tdep.h: New file.
2990 * arm-tdep.c: Include arm-tdep.h.
2991 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2992 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2993 (arm_print_float_info, arm_register_type, convert_to_extended)
2994 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2995 (arm_extract_return_value, arm_register_name): Make static.
2996 (arm_software_single_step): Similarly. Fix types in declaration.
2997 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2998 (arm_store_return_value, arm_store_struct_return): New functions.
2999 (arm_gdbarch_init): Register the above functions. Also register
3000 call_dummy_start_offset, sizeof_call_dummy_words,
3001 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3002 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3003 max_register_virtual_size, register_size. Set up
3004 prologue_cache.saved_regs here, rather than ...
3005 (_initialize_arm_tdep): ... here.
3006 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3007 declarations.
3008 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3009 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3010 (arm_print_float_info, arm_register_type, convert_to_extended)
3011 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3012 (arm_extract_return_value, arm_register_name): Delete declarations.
3013 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3014 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3015 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3016 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3017 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3018 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3019 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3020 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3021 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3022 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3023 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3024 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3025 interface.
3026 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3027 * remote-rdi.c remote-rdp.c: Likewise.
3028 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3029 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3030 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3031 definition.
3032
3033 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3034 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3035 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3036 from non-ARM_ prefixed definitions.
3037 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3038 all uses of above.
3039 * remote-rdi.c remote-rdp.c: Likewise.
3040 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3041
3042 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3043
3044 * arm-tdep.c (arm_frameless_function_invocation)
3045 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3046 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3047 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3048 (arm_pop_frame, arm_get_next_pc): Make static.
3049 (arm_gdbarch_init): Register above in gdbarch structure.
3050 (arm_read_fp): Renamed from arm_target_read_fp.
3051 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3052 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3053 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3054 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3055 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3056 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3057 (arm_pc_is_thumb_dummy): Delete declarations.
3058 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3059 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3060 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3061 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3062
3063 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3064
3065 * symtab.c (compare_search_syms): New function.
3066 (sort_search_symbols): New function.
3067 (search_symbols): Sort symbols after searching rather than
3068 before.
3069
3070 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3071
3072 * NEWS: Linux -> GNU/Linux.
3073
3074 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3075
3076 * gdbarch.sh: For for level one methods, disallow a definition
3077 when partially multi-arched. Add comments explaining rationale.
3078 * gdbarch.h: Re-generate.
3079
3080 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3081
3082 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3083 multi-arch partial.
3084
3085 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3086
3087 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3088 field. Use diff -u.
3089 * gdbarch.c: Re-generate.
3090
3091 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3092
3093 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3094 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3095 partial.
3096
3097 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3098
3099 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3100 multi-arch partial.
3101 (PUSH_ARGUMENTS): Switch to using predefault.
3102 * gdbarch.c: Regenerate.
3103
3104 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3105
3106 * valops.c (PUSH_ARGUMENTS): Delete definition.
3107 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3108 partial. Default to default_push_arguments.
3109 * gdbarch.h, gdbarch.c: Regenerate.
3110
3111 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3112
3113 * defs.h (throw_exception): Rename return_to_top_level. Update
3114 comments.
3115 * utils.c (error_stream, internal_verror, quit): Ditto.
3116 * top.c (throw_exception, catcher): Ditto.
3117 * sparclet-rom.c (sparclet_load): Ditto.
3118 * remote.c (interrupt_query, minitelnet): Ditto.
3119 * remote-sds.c (interrupt_query): Ditto.
3120 * remote-mips.c (mips_error, mips_kill): Ditto.
3121 * ocd.c (interrupt_query): Ditto.
3122 * monitor.c (monitor_interrupt_query): Ditto.
3123 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3124 * target.h: Update comment.
3125
3126 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3127
3128 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3129
3130 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3131 default_double_format.
3132 * gdbarch.h, gdbarch.c: Re-generate.
3133 * findvar.c (floatformat_unknown): Delete variable definition.
3134 * doublest.h (floatformat_unknown): Delete variable declaration.
3135
3136 2002-02-09 Jim Blandy <jimb@redhat.com>
3137
3138 * stabsread.c (read_type): Add code to parse Sun's syntax for
3139 prototyped function types.
3140
3141 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3142
3143 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3144 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3145
3146 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3147
3148 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3149 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3150 now _initialize_xcoffsolib gets called again and overrides the
3151 commands from solib.c in a native configuration.
3152
3153 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3154
3155 * doublest.c (store_typed_floating): Don't try to return a value.
3156 Fixes PR gdb/290.
3157
3158 2002-02-08 Jim Blandy <jimb@redhat.com>
3159
3160 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3161 is prototyped and has no arguments, print its argument list as
3162 `(void)'.
3163
3164 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3165
3166 * MAINTAINERS (write-after-approval): Add myself.
3167 (paper-trail): I've escaped!
3168
3169 2002-02-08 Christopher Faylor <cgf@redhat.com>
3170
3171 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3172 changes.
3173 (_initialize_check_for_gdb_ini): Ditto.
3174
3175 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3176
3177 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3178 xaprintf -> xasprintf.
3179
3180 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3181
3182 * win32-nat.c: Remove use of printf and sprintf functions.
3183
3184 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3185
3186 * arm-tdep.c (arm_frame_chain_valid): Make static.
3187 (arm_push_arguments): Likewise.
3188 (arm_gdbarch_init): New function.
3189 (_initialize_arm_tdep): Call it.
3190 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3191 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3192 (FRAME_CHAIN_VALID): Delete.
3193 (arm_frame_chain_valid): Delete declaration.
3194 (PUSH_ARGUMENTS): Delete.
3195 (arm_push_arguments): Delete declaration.
3196 (CALL_DUMMY_P): Delete.
3197
3198 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3199 Corinna Vinschen <vinschen@redhat.com>
3200
3201 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3202 on builtin float types.
3203
3204 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3205
3206 * utils.c: Include <curses.h> before "bfd.h".
3207 * tui/tui-hooks.c: Likewise.
3208 * tui/tui.c: Likewise.
3209 * tui/tuiCommand.c: Likewise.
3210 * tui/tuiData.c: Likewise.
3211 * tui/tuiDataWin.c: Likewise.
3212 * tui/tuiDisassem.c: Likewise.
3213 * tui/tuiGeneralWin.c: Likewise.
3214 * tui/tuiIO.c: Likewise.
3215 * tui/tuiLayout.c: Likewise.
3216 * tui/tuiRegs.c: Likewise.
3217 * tui/tuiSource.c: Likewise.
3218 * tui/tuiSourceWin.c: Likewise.
3219 * tui/tuiStack.c: Likewise.
3220 * tui/tuiWin.c: Likewise.
3221
3222 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3223
3224 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3225 to include space for pseudoregs as well. Update loops accordingly.
3226 (sh_fp_frame_init_saved_regs): Ditto.
3227 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3228
3229 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3230
3231 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3232 Add Richard Earnshaw to Arm maintainers.
3233
3234 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3235
3236 * defs.h (warning_begin): Delete declaration.
3237
3238 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3239 Delete macro.
3240
3241 2002-02-07 Michael Snyder <msnyder@redhat.com>
3242
3243 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3244 Logic bug, remove misplaced else.
3245
3246 2002-02-07 Klee Dienes <klee@apple.com>
3247
3248 * fork-inferior.c (fork_inferior): Add '!' to the list of
3249 characters that need to be quoted when building a string for the
3250 shell. Quote '!' specifically with a backslash, since CSH chokes
3251 when trying to evaluate "str!str".
3252
3253 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3254
3255 * rdi-share/host.h: Only provide a typedef for bool if it is not
3256 defined.
3257
3258 2002-02-04 Michael Snyder <msnyder@redhat.com>
3259
3260 * breakpoint.h (enum bptype): Add new overlay event bp type.
3261 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3262
3263 * breakpoint.c (create_internal_breakpoint): New function.
3264 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3265 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3266 (create_thread_event_breakpoint): Ditto.
3267 (create_solib_event_breakpoint): Ditto.
3268 (create_overlay_event_breakpoint): New function.
3269 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3270 (update_breakpoints_after_exec): Delete and re-initialize
3271 overlay event breakpoints after an exec. Add FIXME comment
3272 about longjmp breakpoint.
3273 (print_it_typical): Ignore overlay event breakpoints.
3274 (print_one_breakpoint): Ditto.
3275 (mention): Ditto.
3276 (bpstat_what): Do not stop for overlay event breakpoints.
3277 (delete_breakpoint): Don't delete overlay event breakpoints.
3278 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3279 (breakpoint_re_set): Re-create overlay event breakpoint.
3280
3281 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3282 (overlay_manual_command): Disable overlay breakpoints.
3283 (overlay_off_command): Disable overlay breakpoints.
3284
3285 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3286
3287 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3288 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3289 to here from config/tm-arm.h.
3290 (coff_sym_is_thumb): Make static.
3291 (arm_elf_make_msymbol_special): New function.
3292 (arm_coff_make_msymbol_special): New function.
3293 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3294 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3295 (coff_sym_is_thumb): Delete declaration.
3296 (arm_elf_make_msymbol_special): Declare.
3297 (arm_coff_make_msymbol_special): Declare.
3298 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3299 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3300
3301 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3302
3303 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3304
3305 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3306
3307 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3308 * gdbarch.c gdbarch.h: Regenerate.
3309 * arch-utils.c (default_print_float_info): New function.
3310 * arch-utils.h (default_print_float_info): Prototype it.
3311 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3312 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3313 (PRINT_FLOAT_INFO): Document it.
3314
3315 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3316 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3317 (PRINT_FLOAT_INFO): Define.
3318
3319 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3320
3321 * win32-nat.c (_initialize_check_for_gdb_ini):
3322 Add typecast to sprintf argument to suppress a warning.
3323
3324 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3325
3326 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3327 to allow easier handling of pass state.
3328 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3329 that gives exception name and address.
3330 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3331 and set last_sig value to ourstatus->value.sig. Some missing
3332 exceptions added.
3333 (child_continue): Correctly report continue_status.
3334 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3335 TARGET_SIGNAL_0 (new default value).
3336 (child_resume): consider sig argument passed to decide if
3337 the exception should be passed to debuggee or not.
3338
3339 2002-02-05 Michael Snyder <msnyder@redhat.com>
3340
3341 * regcache.c (fetch_register): Call target_fetch_register
3342 only if we don't call FETCH_PSEUDO_REGISTER.
3343 (store_register): Call target_store_register only if we
3344 don't call STORE_PSEUDO_REGISTER.
3345
3346 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3347
3348 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3349 ELF_MAKE_MSYMBOL_SPECIAL.
3350 * gdbarch.c, gdbarch.h: Regenerate.
3351 * arch-utils.c (default_make_msymbol_special): New function.
3352 * arch-utils.h (default_make_msymbol_special): Export.
3353 * elfread.c (elf_symtab_read): Compile use of
3354 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3355 multiarched.
3356 * coffread.c (coff_symtab_read): Ditto, for
3357 COFF_MAKE_MSYMBOL_SPECIAL.
3358
3359 2002-02-05 Jim Blandy <jimb@redhat.com>
3360
3361 * solib-svr4.c (svr4_truncate_ptr): New function.
3362 (svr4_relocate_section_addresses): Do the address arithmetic with
3363 the appropriate truncation for target addresses, even when
3364 CORE_ADDR is larger than a target address.
3365
3366 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3367
3368 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3369 to (int *).
3370
3371 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3372
3373 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3374 code.
3375
3376 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3377
3378 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3379
3380 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3381
3382 * gdbserver/linux-low.c: Remove unused include files.
3383
3384 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3385
3386 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3387 (read_inferior_memory): Use it.
3388 (write_inferior_memory): Likewise.
3389
3390 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3391
3392 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3393 grubbing through sys_errlist.
3394
3395 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3396
3397 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3398
3399 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3400 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3401
3402 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3403
3404 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3405 (do_sfunc, set_cmd_sfunc): New functions.
3406
3407 * command.h (struct cmd_list_element): Add field func.
3408 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3409 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3410 * cli/cli-decode.h: Ditto.
3411
3412 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3413 (help_all, help_cmd_list): Ditto.
3414 (find_cmd, complete_on_cmdlist): Ditto.
3415 * top.c (execute_command): Ditto.
3416
3417 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3418 function.sfunc.
3419
3420 * infcmd.c (notice_args_read): Fix function signature.
3421
3422 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3423 * cli/cli-decode.c (add_set_cmd): Ditto.
3424 * utils.c (initialize_utils): Ditto.
3425 * maint.c (_initialize_maint_cmds): Ditto.
3426 * infrun.c (_initialize_infrun): Ditto.
3427 * demangle.c (_initialize_demangler): Ditto.
3428 * remote.c (add_packet_config_cmd): Ditto.
3429 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3430 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3431 * proc-api.c (_initialize_proc_api): Ditto.
3432 * kod.c (_initialize_kod): Ditto.
3433 * valprint.c (_initialize_valprint): Ditto.
3434 * top.c (init_main): Ditto.
3435 * infcmd.c (_initialize_infcmd): Ditto.
3436 * corefile.c (_initialize_core): Ditto.
3437 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3438 * arch-utils.c (initialize_current_architecture): Ditto.
3439 (_initialize_gdbarch_utils): Ditto.
3440 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3441
3442 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3443 * wince.c (_initialize_inftarg): Ditto.
3444 * symfile.c (_initialize_symfile): Ditto.
3445 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3446 * language.c (_initialize_language): Ditto.
3447 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3448
3449 2002-02-04 Michael Snyder <msnyder@redhat.com>
3450
3451 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3452
3453 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3454
3455 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3456 Add rules for building the register data files.
3457
3458 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3459
3460 * regformats/regdat.sh: Add braces to the definition of
3461 expedite_regs_${arch}.
3462
3463 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3464
3465 * regformats/regdef.h (struct reg): Add comment describing the
3466 requirements for offset and size fields.
3467
3468 2002-02-04 Andreas Schwab <schwab@suse.de>
3469
3470 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3471 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3472
3473 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3474
3475 * gdbarch.sh (copyright): Update years in generated header.
3476 (SMASH_TEXT_ADDRESS): Add rule.
3477 * gdbarch.h, gdbarch.c: Re-generate.
3478 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3479 * dbxread.c: Likewise.
3480 * dwarfread.c: Likewise.
3481 * elfread.c: Likewise.
3482 * somread.c: Likewise.
3483
3484 * arm-tdep.c (arm_smash_text_address): New function.
3485 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3486
3487 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3488
3489 Add support for hardware watchpoints on win32 native.
3490 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3491 CONTEXT_DEBUG_REGISTERS.
3492 (dr variable): New variable. Static array containing a local copy
3493 of debug registers.
3494 (debug_registers_changed): New variable. Reflects when debug registers
3495 are changed and need to be written to inferior.
3496 (debug_registers_used): New variable. Reflects when any debug register
3497 was set, used when new threads are created.
3498 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3499 i386-nat code.
3500 (thread_rec): Set dr array if id is the thread of current_event .
3501 (child_continue, child_resume): Change the debug registers for all
3502 threads if debug_registers_changed.
3503 (child_add_thread): Change the debug registers if debug_registers_used.
3504 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3505 Link nm.h to new nm-cygwin.h file.
3506 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3507 of hardware registers.
3508
3509 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3510
3511 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3512 Restore behavour broken by 2002-01-20 Andrew Cagney
3513 <ac131313@redhat.com> IEEE_FLOAT removal.
3514
3515 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3516
3517 * c-valprint.c (c_val_print): Pass a proper valaddr to
3518 cp_print_class_method.
3519 * valops.c (search_struct_method): If there is only one method
3520 and args is NULL, return that method.
3521
3522 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3523
3524 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3525 accessing tag_name directly.
3526
3527 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3530 of accessing tag_name directly.
3531
3532 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3533
3534 PR gdb/280
3535 * gdbtypes.c (replace_type): New function.
3536 * gdbtypes.h (replace_type): Add prototype.
3537 * stabsread.c (read_type): Use replace_type.
3538
3539 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3540
3541 * Makefile.in (memattr.o): Add missing dependencies rule.
3542
3543 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3544
3545 * breakpoint.c (break_at_finish_command): Really export.
3546 (break_at_finish_at_depth_command): Ditto.
3547 (tbreak_at_finish_command): Ditto.
3548 * hppa-tdep.c: Include completer.h.
3549 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3550 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3551
3552 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3553
3554 * utils.c (do_write): New function.
3555 (error_stream): Rewrite combining the code from error_begin and
3556 verror.
3557 (verror): Rewrite using error_stream.
3558 (error_begin): Delete function.
3559
3560 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3561
3562 * utils.c (error_begin): Make static.
3563 * defs.h (error_begin): Delete declaration.
3564
3565 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3566 (decode_line_1): Use cplusplus_error instead of error_begin,
3567 cplusplus_hint and return_to_top_level.
3568 * coffread.c (coff_symfile_read): Use error instead of error_begin
3569 and return_to_top_level.
3570 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3571
3572 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3573
3574 * language.h (type_error, range_error): Make string parameter
3575 constant.
3576 * language.c (warning_pre_print): Delete extern declaration.
3577 * dwarfread.c (warning_pre_print): Ditto.
3578 * language.c (type_error, range_error): Rewrite to use verror and
3579 vwarning instead of warning_begin.
3580
3581 2002-02-01 Michael Snyder <msnyder@redhat.com>
3582
3583 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3584 (set_ignore_count): Move misplaced comment back where it belongs.
3585
3586 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3587
3588 * command.h (NO_FUNCTION): Delete macro.
3589 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3590 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3591 * tracepoint.c (_initialize_tracepoint): Ditto.
3592 * cli/cli-decode.c (add_set_cmd): Ditto.
3593 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3594
3595 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3596
3597 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3598 Update ``this'' pointer when calling virtual functions.
3599
3600 2002-02-01 Michael Snyder <msnyder@redhat.com>
3601
3602 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3603 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3604
3605 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3606
3607 * regformats/reg-arm.dat: New file.
3608 * regformats/reg-i386.dat: New file.
3609 * regformats/reg-ia64.dat: New file.
3610 * regformats/reg-m68k.dat: New file.
3611 * regformats/reg-mips.dat: New file.
3612 * regformats/reg-ppc.dat: New file.
3613 * regformats/reg-sh.dat: New file.
3614 * regformats/regdef.h: New file.
3615 * regformats/regdat.sh: New file.
3616
3617 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3618
3619 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3620 (arm_frame_args_address, arm_frame_locals_address): New functions.
3621 (arm_frame_num_args): New function.
3622 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3623 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3624 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3625
3626 2002-01-31 Michael Snyder <msnyder@redhat.com>
3627
3628 * breakpoint.c (break_at_finish_command): Export.
3629 (break_at_finish_at_depth_command): Export.
3630 (tbreak_at_finish_command): Export.
3631 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3632 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3633 "tbreak" commands, which are HPPA specific.
3634
3635 * printcmd.c (disassemble_command): Remove an ancient
3636 artifact of an old merge.
3637
3638 * symfile.h (enum overlay_debugging_state):
3639 Define enum constant values for overlay mode.
3640 * symfile.c (overlay_debugging): Use enums instead of literals.
3641 (overlay_is_mapped, overlay_auto_command,
3642 overlay_manual_command): Ditto.
3643
3644 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3645 breakpoint_here_p, breakpoint_inserted_here_p,
3646 breakpoint_thread_match, bpstat_stop_status,
3647 describe_other_breakpoints, check_duplicates, clear_command):
3648 Coding standard fixes.
3649
3650 * target.c (target_xfer_memory): Add spaces, coding standard.
3651 (do_xfer_memory): Add missing line to trust-readonly
3652 code: check bfd SEC_READONLY flag for section.
3653
3654 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3655
3656 * PROBLEMS: Fix typo, 5.1->5.1.1.
3657
3658 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3659
3660 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3661 data symbols, since we search based on textlow and texthigh.
3662 (find_pc_sect_symtab): Likewise.
3663
3664 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3665
3666 * defs.h (vwarning): Declare.
3667 * utils.c (vwarning): New function.
3668 (warning): Call vwarning.
3669 (warning_begin): Delete function.
3670
3671 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3672 the warning message.
3673 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3674 warning_begin.
3675
3676 2002-01-30 Michael Snyder <msnyder@redhat.com>
3677
3678 * NEWS: Mention "set trust-readonly-sections" command.
3679 Mention generate-core-file command.
3680
3681 2002-01-15 Michael Snyder <msnyder@redhat.com>
3682
3683 * target.c: New command, "set trust-readonly-sections on".
3684 (do_xfer_memory): Honor the suggestion to trust readonly sections
3685 by reading them from the object file instead of from the target.
3686 (initialize_targets): Register command "set trust-readonly-sections".
3687
3688 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3689
3690 * parse.c (target_map_name_to_register): Simplify, search regs and
3691 pseudo-regs using a single loop.
3692
3693 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3694
3695 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3696
3697 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3698
3699 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3700 * config/i386/i386v42mp.mh: Add i387-nat.o .
3701 * i386v4-nat.c: Include i387-nat.h.
3702 (supply_fpregset): Use i387_supply_fsave.
3703 (fill_fpregset): Use i387_fill_fsave.
3704
3705 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3706
3707 * arm-tdep.c (arm_call_dummy_words): Define.
3708 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3709 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3710 (CALL_DUMMY_WORDS): Define.
3711 (arm_call_dummy_words): Declare.
3712 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3713 (arm_linux_call_dummy_words): Declare.
3714
3715 2002-01-30 Andreas Schwab <schwab@suse.de>
3716
3717 * m68klinux-nat.c: Fix last change to use regcache_collect
3718 instead of referencing registers[] directly.
3719
3720 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3721
3722 * parse.c (target_map_name_to_register): Delete code wrapped in
3723 #ifdef REGISTER_NAME_ALIAS_HOOK.
3724
3725 2002-01-28 Michael Snyder <msnyder@redhat.com>
3726
3727 * regcache.c (legacy_read_register_gen): Need to be able to
3728 read pseudo-register as well as real register.
3729 (legacy_write_register_gen): Ditto.
3730
3731 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3732
3733 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3734 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3735 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3736 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3737 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3738 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3739 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3740 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3741 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3742 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3743 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3744 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3745 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3746 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3747 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3748 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3749 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3750 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3751 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3752 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3753
3754 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3755
3756 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3757 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3758 (initialize_current_architecture): Update target_byte_order using
3759 information from BFD.
3760 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3761 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3762
3763 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3764
3765 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3766 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3767
3768 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3769 #ifdef INVALID_FLOAT.
3770 * infcmd.c (do_registers_info): Ditto.
3771 * values.c (unpack_double): Ditto. Add comment.
3772
3773 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3774 already commented out.
3775
3776 2002-01-26 Andreas Schwab <schwab@suse.de>
3777
3778 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3779 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3780 registers and add support for PTRACE_GETREGS.
3781
3782 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3783
3784 GDB 5.1.1 released from 5.1 branch.
3785 * NEWS: Add 5.1.1 news.
3786 * README: Sync with 5.1 branch.
3787
3788 2002-01-23 Fred Fish <fnf@redhat.com>
3789
3790 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3791 stabstring on initial malloc. Reallocing will copy it for us,
3792 if necessary.
3793
3794 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3795
3796 * Makefile.in (hpread_h): Delete.
3797 (HFILES_NO_SRCDIR): Remove hpread.h.
3798 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3799 (hpread.o): Update dependencies.
3800 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3801
3802 * hp-psymtab-read.c: Remove file.
3803 * hp-symtab-read.c: Remove file.
3804 * hpread.h: Remove file.
3805
3806 * hpread.c: Merge all contents of hp-psymtab-read.c,
3807 hp-symtab-read.c and hpread.h into this file, as it was prior to
3808 January 1999.
3809
3810 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3811 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3812 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3813 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3814
3815 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3816
3817 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3818 fill_gregset): Call gdbarch_tdep() just once, assign result to
3819 variable and use that, instead of calling the function several
3820 times.
3821
3822 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3823
3824 * configure.host: Accept sparcv9 as alias for sparc64.
3825 * configure.tgt: Likewise.
3826
3827 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3828
3829 * solib-aix5.c (build_so_list_from_mapfile)
3830 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3831 arguments is not reversed.
3832 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3833 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3834
3835 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3836
3837 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3838 modified version of obsolete sh_fetch_pseudo_register.
3839 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3840 (sh4_register_read): New function.
3841 (sh_pseudo_register_write): New function. Renamed and modified
3842 version of obsolete sh_store_pseudo_register.
3843 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3844 (sh4_register_write): New function.
3845 (sh_gdbarch_init): Remove setting of gdbarch function
3846 fetch_pseudo_register and store_pseudo_register. Remove setting of
3847 register_convert_to_raw, register_convert_to_virtual,
3848 register_convertible.
3849 (sh_sh4_register_convertible): Delete. No longer needed. All is
3850 taken care by architecture specific functions
3851 register_read/register_write.
3852 (sh_sh4_register_convert_to_virtual): Make static.
3853 (sh_sh4_register_convert_to_raw): Ditto.
3854
3855 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3856
3857 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3858 (floatformat_is_nan, floatformat_mantissa): Ditto.
3859
3860 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3861 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3862 builtin_type_ieee_double_little,
3863 builtin_type_ieee_double_littlebyte_bigword,
3864 builtin_type_m68881_ext, builtin_type_i960_ext,
3865 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3866 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3867 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3868 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3869
3870 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3871
3872 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3873 parameter. Set frameless flag if it exists and depended of
3874 whether the scanned function is frameless or not.
3875 (xstormy16_skip_prologue): If function is frameless, return
3876 result of xstormy16_scan_prologue().
3877 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3878 call.
3879
3880 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3881
3882 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3883 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3884 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3885 sh_sh4_register_byte, sh_sh4_register_raw_size,
3886 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3887 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3888 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3889 sh_store_pseudo_register, sh_do_pseudo_register): Call
3890 gdbarch_tdep() just once, assign result to variable and use that,
3891 instead of calling the function several times.
3892
3893 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3894
3895 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3896 macros instead of LAST_FPU_CTRL_REGNUM.
3897 (store_register): Likewise.
3898
3899 2002-01-21 Jim Blandy <jimb@redhat.com>
3900
3901 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3902 is up-to-date before running the program, not just when a program
3903 exits.
3904
3905 2002-01-21 Fred Fish <fnf@redhat.com>
3906
3907 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3908 when we have found all instructions we are looking for.
3909
3910 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3911
3912 * arm-tdep.c (arm_register_name): New function.
3913 (arm_registers_names): Make static.
3914 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3915 (arm_register_name): Declare.
3916 (REGISTER_NAME): Use it.
3917
3918 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3919 Kevin Buettner <kevinb@redhat.com>
3920
3921 Convert arm targets to new FRAME interface.
3922 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3923 (arm_frame_find_save_regs): Delete.
3924 (arm_frame_init_saved_regs): New.
3925 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3926 Allocate extra_info as required. Convert all uses of fsr.regs
3927 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3928 to use extra_info.
3929 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3930 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3931 (check_prologue_cache, save_prologue_cache): Likewise.
3932 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3933 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3934 (FRAME_FIND_SAVED_REGS): Delete.
3935 (arm_frame_find_saved_regs): Delete prototype.
3936 (arm_frame_init_saved_regs): New prototype.
3937 (FRAME_INIT_SAVED_REGS): Define.
3938
3939 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3940
3941 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3942
3943 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3944
3945 From Jeff Law <law@redhat.com>:
3946 * infttrace.c: Include <sys/pstat.h>.
3947 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3948 exec file if the ttrace equivalent fails.
3949
3950 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3951
3952 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3953 (closeLogFile): Ditto.
3954
3955 2002-01-20 Michael Chastain <mec@shout.net>
3956
3957 * top.c (print_gdb_version): Bump copyright year to 2002.
3958
3959 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3960
3961 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3962 Zannoni and Eli Zaretskii.
3963
3964 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3965
3966 * buildsym.c: Update copyright years.
3967 * c-typeprint.c: Likewise.
3968 * dwarf2read.c: Likewise.
3969 * f-typeprint.c: Likewise.
3970 * gdbtypes.c: Likewise.
3971 * gdbtypes.h: Likewise.
3972 * hp-symtab-read.c: Likewise.
3973 * hpread.c: Likewise.
3974 * mdebugread.c: Likewise.
3975 * p-typeprint.c: Likewise.
3976
3977 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3978
3979 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3980 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3981 byte-order selectable.
3982 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3983 * arch-utils.c: Ditto.
3984 (set_endian): Ditto.
3985 (set_endian_from_file): Ditto.
3986 * gdbserver/low-sim.c (create_inferior): Ditto.
3987 * gdbarch.sh: Ditto.
3988 * gdbarch.h: Re-generate.
3989 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3990 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3991 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3992 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3993 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3994 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3995 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3996 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3997 macro definition.
3998 * config/mips/tm-wince.h: Remove #undef of macro
3999 TARGET_BYTE_ORDER_SELECTABLE.
4000 * config/sh/tm-wince.h: Ditto.
4001
4002 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4003
4004 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4005 member function fields. Add accessor macro
4006 TYPE_FN_FIELD_ARTIFICIAL.
4007 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4008 * c-typeprint.c (c_type_print_base): Skip artificial member
4009 functions.
4010
4011 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4012
4013 * f-typeprint.c: Delete unused function f_type_print_args.
4014 * p-typeprint.c: Delete unused function pascal_type_print_args.
4015
4016 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4017
4018 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4019 comment. Add ``artificial'' to ``union field_location''.
4020
4021 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4022
4023 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4024 * mdebugread.c (parse_symbol): Likewise.
4025 * stabsread.c (define_symbol): Likewise.
4026 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4027 initializing TYPE_FIELD_BITPOS to n (obsolete).
4028 (hpread_doc_function_type): Likewise.
4029 * hpread.c (hpread_function_type): Likewise.
4030
4031 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4032
4033 * configure.in (host_makefile_frag): Only require a host makefile
4034 fragment when a native build.
4035 * configure: Re-generate.
4036
4037 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4038
4039 * doublest.h (floatformat_from_type): Declare.
4040 * doublest.c (floatformat_from_type): New function.
4041 (convert_typed_floating): Use.
4042
4043 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4044 call to function floatformat_from_type.
4045
4046 * gdbarch.sh (IEEE_FLOAT): Delete.
4047 * gdbarch.h, gdbarch.c: Re-generate.
4048 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4049 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4050 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4051 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4052 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4053 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4054 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4055 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4056 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4057 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4058 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4059 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4060
4061 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4062 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4063 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4064 * sh-tdep.c (sh_gdbarch_init): Ditto.
4065 * mips-tdep.c (mips_gdbarch_init): Ditto.
4066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4067 * cris-tdep.c (cris_gdbarch_init): Ditto.
4068
4069 2002-01-20 Jiri Smid <smid@suse.cz>
4070
4071 * configure.host, configure.tgt: Support x86-64.
4072 * NEWS: Note new target x86-64.
4073
4074 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4075 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4076 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4077 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4078 x86-64-linux-nat.o): Fix dependencies.
4079
4080 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4081
4082 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4083 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4084 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4085 * config/sparc/xm-sun4os4.h: Delete file.
4086 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4087
4088 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4089
4090 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4091 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4092 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4093 * config/i386/i386lynx.mh (XM_FILE): Delete.
4094 * config/rs6000/xm-rs6000ly.h: Delete file.
4095 * config/sparc/xm-sparclynx.h: Delete file.
4096 * config/m68k/xm-m68klynx.h: Delete file.
4097 * config/i386/xm-i386lynx.h: Delete file.
4098 * config/xm-lynx.h: Delete file.
4099 * config/djgpp/fnchange.lst: Update.
4100
4101 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4102
4103 * alpha-tdep.c (alpha_register_byte): New function.
4104 (alpha_register_raw_size): Ditto.
4105 (alpha_register_virtual_size): Ditto.
4106 (alpha_skip_prologue_internal): Renamed from
4107 alpha_skip_prologue.
4108 (alpha_skip_prologue): New version that calls
4109 alpha_skip_prologue_internal.
4110 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4111 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4112 second argument from alpha_skip_prologue.
4113 (REGISTER_BYTE): Use alpha_register_byte.
4114 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4115 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4116 (FRAMELESS_FUNCTION_INVOCATION): Use
4117 generic_frameless_function_invocation_not.
4118 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4119 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4120
4121 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4122
4123 * config/mips/xm-news-mips.h: Delete file.
4124 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4125
4126 * config/m88k/xm-m88k.h: Delete file.
4127 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4128 * config/m88k/xm-delta88v4.h: Ditto.
4129 * config/m88k/xm-delta88.h: Ditto.
4130
4131 * config/alpha/xm-fbsd.h: Delete file.
4132 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4133
4134 * config/sparc/xm-sparc.h: Delete file.
4135 * Makefile.in (xm-sun4os4.h): Delete dependency.
4136 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4137 * config/sparc/xm-sun4os4.h: Ditto.
4138 * config/sparc/xm-linux.h: Ditto.
4139
4140 * config/i386/xm-windows.h: Delete file.
4141
4142 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4143
4144 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4145 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4146
4147 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4148
4149 * alpha-tdep.c (alpha_call_dummy_words): New.
4150 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4151 (CALL_DUMMY_P): Define.
4152 (CALL_DUMMY_WORDS): Define.
4153 (SIZEOF_CALL_DUMMY_WORDS): Define.
4154
4155 2002-01-19 Per Bothner <per@bothner.com>
4156
4157 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4158 isn't NULL, which can happen with some gcj-3.x-produced code.
4159
4160 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4161
4162 * alpha-tdep.c (alpha_register_virtual_type): New function.
4163 (alpha_init_frame_pc_first): Ditto.
4164 (alpha_fix_call_dummy): Ditto.
4165 (alpha_store_struct_return): Ditto.
4166 (alpha_extract_struct_value_address): Ditto.
4167 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4168 alpha_register_virtual_type.
4169 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4170 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4171 alpha_extract_struct_value_address.
4172 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4173 (INIT_FRAME_PC): Use init_frame_pc_noop.
4174 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4175
4176 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4177
4178 * i386gnu-nat.c: Include "i386-tdep.h".
4179 (fetch_fpregs): Simplify code dealing with uninitialized floating
4180 point states such that it doesn't require FP7_REGNUM.
4181
4182 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4183
4184 * alpha-tdep.c (frame_extra_info): New.
4185 (alpha_find_saved_regs): Make static. Use
4186 frame->extra_info.
4187 (alpha_frame_init_saved_regs): New function.
4188 (alpha_frame_saved_pc): Use frame->extra_info.
4189 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4190 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4191 (init_extra_frame_info): Rename to...
4192 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4193 (alpha_print_extra_frame_info): New function.
4194 (alpha_frame_locals_address): Ditto.
4195 (alpha_frame_args_address): Ditto.
4196 (alpha_pop_frame): Use frame->extra_info.
4197 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4198 alpha_frame_args_address.
4199 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4200 (alpha_find_saved_regs): Remove prototype.
4201 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4202 (EXTRA_FRAME_INFO): Remove.
4203 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4204 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4205
4206 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4207
4208 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4209 (alpha_cannot_fetch_register): Ditto.
4210 (alpha_cannot_store_register): Ditto.
4211 (alpha_register_convertible): Ditto.
4212 (alpha_use_struct_convention): Ditto.
4213 * config/alpha/tm-alpha.h: Update copyright years.
4214 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4215 (INNER_THAN): Use core_addr_lessthan.
4216 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4217 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4218 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4219 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4220 (FRAME_CHAIN): Remove unnecessary cast.
4221
4222 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4223
4224 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4225 obsolete.
4226
4227 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4228
4229 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4230 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4231 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4232 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4233 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4234 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4235 * x86-64-linux-nat.c: Ditto.
4236
4237 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4238
4239 * alpha-tdep.c (alpha_register_name): New function.
4240 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4241 (REGISTER_NAME): Define.
4242
4243 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4244
4245 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4246
4247 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4248
4249 * alpha-tdep.c: Update copyright years.
4250 (alpha_next_pc): New function.
4251 (alpha_software_single_step): Ditto.
4252 * config/alpha/tm-alpha.h: Add prototype for
4253 alpha_software_single_step.
4254
4255 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4256
4257 * alphabsd-nat.c: Update copyright years.
4258 (fill_gregset): Use regcache_collect.
4259 (fill_fpregset): Likewise.
4260 (fetch_inferior_registers): Only fetch integer registers
4261 if requested to do so.
4262 (store_inferior_registers): Only store integer registers
4263 if requested to do so.
4264
4265 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4266
4267 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4268 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4269 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4270 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4271 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4272 * config/arm/linux.mh (XDEPFILES): Delete.
4273 * config/arm/nbsd.mh (XDEPFILES): Delete.
4274 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4275 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4276 * config/i386/i386m3.mh (XDEPFILES): Delete.
4277 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4278 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4279 * config/i386/fbsd.mh (XDEPFILES): Delete.
4280 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4281 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4282 * config/i386/i386v4.mh (XDEPFILES): Delete.
4283 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4284 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4285 * config/i386/i386aix.mh (XDEPFILES): Delete.
4286 * config/i386/go32.mh (XDEPFILES): Delete.
4287 * config/i386/cygwin.mh (XDEPFILES): Delete.
4288 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4289 * config/i386/i386mach.mh (XDEPFILES): Delete.
4290 * config/i386/i386v32.mh (XDEPFILES): Delete.
4291 * config/i386/linux.mh (XDEPFILES): Delete.
4292 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4293 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4294 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4295 * config/i386/i386sco.mh (XDEPFILES): Delete.
4296 * config/i386/i386v.mh (XDEPFILES): Delete.
4297 * config/i386/nbsd.mh (XDEPFILES): Delete.
4298 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4299 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4300 * config/i386/symmetry.mh (XDEPFILES): Delete.
4301 * config/i386/obsd.mh (XDEPFILES): Delete.
4302 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4303 * config/ia64/linux.mh (XDEPFILES): Delete.
4304 * config/ia64/aix.mh (XDEPFILES): Delete.
4305 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4306 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4307 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4308 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4309 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4310 * config/m68k/linux.mh (XDEPFILES): Delete.
4311 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4312 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4313 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4314 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4315 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4316 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4317 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4318 * config/m88k/delta88.mh (XDEPFILES): Delete.
4319 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4320 * config/m88k/m88k.mh (XDEPFILES): Delete.
4321 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4322 * config/mips/linux.mh (XDEPFILES): Delete.
4323 * config/mips/irix6.mh (XDEPFILES): Delete.
4324 * config/mips/irix5.mh (XDEPFILES): Delete.
4325 * config/mips/irix4.mh (XDEPFILES): Delete.
4326 * config/mips/irix3.mh (XDEPFILES): Delete.
4327 * config/mips/decstation.mh (XDEPFILES): Delete.
4328 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4329 (NATDEPFILES): Move core-aout.o to here.
4330 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4331 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4332 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4333 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4334 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4335 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4336 * config/pa/hpux11.mh (XDEPFILES): Delete.
4337 * config/powerpc/aix.mh (XDEPFILES): Delete.
4338 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4339 * config/powerpc/linux.mh (XDEPFILES): Delete.
4340 * config/romp/rtbsd.mh: Rename XDEPFILES.
4341 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4342 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4343 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4344 * config/s390/s390.mh (XDEPFILES): Delete.
4345 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4346 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4347 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4348 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4349 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4350 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4351 * config/sparc/linux.mh (XDEPFILES): Delete.
4352 * config/vax/vaxult.mh (XDEPFILES): Delete.
4353 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4354 * Makefile.in (DEPFILES): Remove XDEPFILES.
4355
4356 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4357
4358 * utils.c (internal_verror): Fix comments, default is yes not no.
4359 Update queries to match. Default to quit and dump core.
4360
4361 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4362
4363 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4364 copyright.
4365 * defs.h, event-top.c, gdbcmd.h: Ditto.
4366 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4367 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4368 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4369 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4370 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4371 * mi/mi-main.c:Ditto.
4372
4373 * stack.c, symfile.c: Update copyright.
4374
4375 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4376
4377 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4378 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4379 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4380 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4381
4382 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4383
4384 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4385 * gdbserver/low-lynx.c (myattach): Likewise.
4386 * gdbserver/low-nbsd.c (myattach): Likewise.
4387 * gdbserver/low-sim.c (myattach): Likewise.
4388 * gdbserver/low-sparc.c (myattach): Likewise.
4389 * gdbserver/low-sun3.c (myattach): Likewise.
4390
4391 * gdbserver/low-linux.c (myattach): New function.
4392
4393 * gdbserver/server.c (attach_inferior): New function.
4394 (main): Handle "--attach".
4395
4396 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4397
4398 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4399 maintainer.
4400
4401 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4402
4403 * c-typeprint.c (is_type_conversion_operator): Add additional
4404 check for non-conversion operators.
4405
4406 2002-01-15 Michael Snyder <msnyder@redhat.com>
4407
4408 * linux-proc.c: Add "info proc" command, a la procfs.c.
4409 (read_mapping): New function, abstract and re-use code.
4410 (linux_find_memory_regions): Use new func read_mapping.
4411 (linux_info_proc_cmd): New function, implement "info proc".
4412 (_initialize_linux_proc): Add new command "info proc".
4413
4414 2002-01-15 Michael Snyder <msnyder@redhat.com>
4415
4416 * symfile.c (generic_load): Use bfd_map_over_sections method
4417 instead of manipulating bfd structure members directly.
4418 (add_section_size_callback): New function, bfd sections callback
4419 used by generic_load.
4420 (load_sections_callback): New function, bfd sections callback
4421 used by generic_load.
4422
4423 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4424
4425 [Based on work by Jim Blandy]
4426 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4427 (builtin_type_vec128): Export.
4428 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4429 types.
4430 (builtin_type_vec128): New builtin type for 128 bit vector
4431 registers.
4432 (build_gdbtypes): Initialize builtin_type_v16qi and
4433 builtin_type_v8hi. Create the vec128 register builtin type
4434 structure.
4435 (build_builtin_type_vec128): New function.
4436 (_initialize_gdbtypes): Register builtin_type_v16qi and
4437 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4438 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4439 AltiVec register to new builtin type.
4440
4441 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4442
4443 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4444 to make_cv_type.
4445
4446 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4447
4448 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4449 CLEAN_UP_REGISTER_VALUE.
4450 * regcache.c (supply_register): Update only call.
4451
4452 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4453
4454 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4455 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4456 a29k-*-vxworks* targets as obsolete.
4457
4458 2002-01-14 Michael Snyder <msnyder@redhat.com>
4459
4460 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4461 until we can resolve portability issues.
4462 * gregset.h: Remove references to fpxregs.
4463 * gcore.c (gcore_command): Initialize note_sec to NULL.
4464
4465 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4466
4467 * signals.c (target_signal_to_name): Rewrite. Only use
4468 signals[].name when in bounds and non-NULL.
4469
4470 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4471
4472 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4473 * signals.c (target_signal_to_name): Verify that SIG is within the
4474 bounds of the signals array.
4475
4476 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4477
4478 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4479
4480 2002-01-13 Keith Seitz <keiths@redhat.com>
4481
4482 * stack.c (print_frame_info_base): Print the frame's pc
4483 only if when print_frame_info_listing_hook is not defined.
4484
4485 2002-01-13 Keith Seitz <keiths@redhat.com>
4486
4487 * varobj.c (varobj_set_value): Make sure that there were no
4488 errors evaluating the object before attempting to set its
4489 value.
4490 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4491 so this offset adjustment is no longer necessary.
4492 (create_child): Don't set the error flag if the child is
4493 a CPLUS_FAKE_CHILD.
4494 (value_of_child): If value_fetch_lazy fails, return NULL
4495 so that callers will be notified that an error occurred.
4496 (c_value_of_variable): Delay check of variable's validity
4497 until later. We actually want all structs and unions to have
4498 the value "{...}".
4499 Do not return "???" for variables which could not be evaluated.
4500 This error condition must be returned to the caller so that it
4501 can get the error condition from gdb.
4502 (cplus_name_of_child): Adjust index for vptr before figuring
4503 out the name of the child.
4504 (cplus_value_of_child): If a child's (real) parent is not valid,
4505 don't even bother trying to give a value for it. Just return
4506 an error. Change all instances in this function.
4507 (cplus_type_of_child): If our parent is one of the "fake"
4508 parents, we need to get at the type of the real parent, and
4509 derive the child's true type using this information.
4510
4511 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4512
4513 From 2002-01-09 John Marshall <johnm@falch.net>:
4514 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4515 sources.redhat.com, and tweak some related URLs which had
4516 suffered from linkrot.
4517
4518 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4519
4520 From Jeff law:
4521 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4522 structures passed in registers.
4523
4524 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4525
4526 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4527 white space which prevented compilation. Reported by DSK
4528 <dsk@student.unsw.edu.au>.
4529
4530 2002-01-11 Michael Snyder <msnyder@redhat.com>
4531
4532 * symfile.c (build_section_addr_info_from_section_tab):
4533 Use bfd access method instead of manipulating bfd directly.
4534 (syms_from_objfile): Ditto.
4535 (simple_overlay_update_1): Ditto.
4536 (simple_overlay_update): Ditto.
4537 (generic_load): Ditto.
4538 (overlay_unmapped_address): FIXME comment, bfd access methods.
4539 (sections_overlap): FIXME comment, bfd access methods.
4540 (pc_in_mapped_range): FIXME comment, bfd access methods.
4541 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4542 (section_is_mapped): FIXME comment, bfd access methods.
4543 (section_is_overlay): FIXME comment, bfd access methods.
4544
4545 * symfile.c (generic_load): Whitespace and long line cleanups.
4546 Remove duplicate variable, change several local variables to
4547 more appropriate data types.
4548 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4549
4550 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4551
4552 From Peter Schauer:
4553 * language.c (longest_local_hex_string_custom): Use phex_nz to
4554 convert NUM to a hex string.
4555
4556 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4557
4558 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4559 the function.
4560 Update Copyright year.
4561
4562 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4563
4564 * language.c (longest_raw_hex_string): Delete unused function.
4565
4566 2002-01-11 Petr Sorfa <petrs@caldera.com>
4567
4568 * MAINTAINERS (write-after-approval): Add myself.
4569 * dwarf2read.c (read_tag_string_type): Handling of
4570 DW_AT_byte_size.
4571 (read_tag_string_type): FORTRAN fix to prevent propagation of
4572 first string size.
4573 (set_cu_language): Handling of DW_LANG_Fortran95
4574
4575 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4576
4577 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4578 GETPID(inferior_ptid).
4579 (store_inferior_registers): Likewise.
4580
4581 2002-01-10 Jason Merrill <jason@redhat.com>
4582
4583 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4584 Fix DW_OP_minus.
4585
4586 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4587
4588 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4589 and bfd/elf32-sh-nbsd.c.
4590
4591 2002-01-10 Michael Snyder <msnyder@redhat.com>
4592
4593 * NEWS: Mention --pid and corefile/proc-id behavior change.
4594
4595 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4596 * gcore.c: Include cli/cli-decode.h instead of command.h.
4597
4598 * main.c (captured_main): Add new command line option "--pid".
4599 If the second command line argument (following the symbol-file)
4600 begins with a digit, try to attach to it before trying to open
4601 it as a corefile.
4602 (print_gdb_help): Document the "--pid" argument.
4603
4604 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4605
4606 * completer.c (command_completer): New function.
4607
4608 * completer.h <command_completer>: Add prototype.
4609
4610 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4611 completer for the "help" command.
4612
4613 2002-01-09 Jason Merrill <jason@redhat.com>
4614
4615 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4616
4617 2002-01-09 Michael Snyder <msnyder@redhat.com>
4618
4619 * i386-linux-nat.c (fill_fpxregset): Make global.
4620 (store_fpxregset): Ditto.
4621
4622 * gregset.h (gdb_fpxregset_t): Define.
4623 (supply_fpxregset): Prototype.
4624 (fill_fpxregset): Prototype.
4625
4626 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4627
4628 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4629
4630 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4631 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4632 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4633
4634 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4635
4636 * MAINTAINERS: Update target maintainer rules so that any
4637 Maintainer can approve a tested patch for a maintenance-only
4638 target.
4639
4640 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4641
4642 * MAINTAINERS (write-after-approval): Add myself.
4643
4644 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4645 IN_SIGTRAMP.
4646
4647 2002-01-08 Michael Snyder <msnyder@redhat.com>
4648
4649 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4650 real name of the executable, rather than the /proc name.
4651
4652 2002-01-03 Michael Snyder <msnyder@redhat.com>
4653
4654 Implement a "generate-core-file" command in gdb, save target state.
4655 * gcore.c: New file. Implement new command 'generate-core-file'.
4656 Save a corefile image of the current state of the inferior.
4657 * linux-proc.c: Add linux-specific code for saving corefiles.
4658 * target.h (struct target_ops): Add new target vectors for saving
4659 corefiles; to_find_memory_regions and to_make_corefile_notes.
4660 (target_find_memory_regions): New macro.
4661 (target_make_corefile_notes): New macro.
4662 * target.c (update_current_target): Inherit new target methods.
4663 (dummy_find_memory_regions): New place-holder method.
4664 (dummy_make_corefile_notes): New place-holder method.
4665 (init_dummy_target): Initialize new dummy target vectors.
4666 * exec.c (exec_set_find_memory_regions): New function.
4667 Allow the exec_ops vector for memory regions to be taken over.
4668 (exec_make_note_section): New function, target vector method.
4669 * defs.h (exec_set_find_memory_regions): Export prototype.
4670 * procfs.c (proc_find_memory_regions): New function, corefile method.
4671 (procfs_make_note_section): New function, corefile method.
4672 (init_procfs_ops): Set new target vector pointers.
4673 (find_memory_regions_callback): New function.
4674 (procfs_do_thread_registers): New function.
4675 (procfs_corefile_thread_callback): New function.
4676 * sol-thread.c (sol_find_memory_regions): New function.
4677 (sol_make_note_section): New function.
4678 (init_sol_thread_ops): Initialize new target vectors.
4679 * inftarg.c (inftarg_set_find_memory_regions): New function.
4680 Allow to_find_memory_regions vector to be taken over.
4681 (inftarg_set_make_corefile_notes): New function.
4682 Allow to_make_corefile_notes vector to be taken over.
4683 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4684 interface layer if not target_has_execution (may be a corefile).
4685 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4686 * config/sparc/sun4sol2.mh: Ditto.
4687 * config/alpha/alpha-linux.mh: Ditto.
4688 * config/arm/linux.mh: Ditto.
4689 * config/i386/x86-64linux.mh: Ditto.
4690 * config/ia64/linux.mh: Ditto.
4691 * config/m68k/linux.mh: Ditto.
4692 * config/mips/linux.mh: Ditto.
4693 * config/powerpc/linux.mh: Ditto.
4694 * config/sparc/linux.mh: Ditto.
4695
4696 2002-01-07 Michael Snyder <msnyder@redhat.com>
4697
4698 * arm-linux-nat.c: Remove references to regcache.c internal data
4699 (registers[] and register_valid[]).
4700
4701 2002-01-07 Michael Snyder <msnyder@redhat.com>
4702
4703 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4704 so that attaching to a pid will automatically read the process's
4705 symbol file and shlibs.
4706 * Makefile.in: Add rule for linux-proc.o.
4707 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4708 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4709 * config/arm/linux.mh: Ditto.
4710 * config/i386/linux.mh: Ditto.
4711 * config/i386/x86-64linux.mh: Ditto.
4712 * config/ia64/linux.mh: Ditto.
4713 * config/m68k/linux.mh: Ditto.
4714 * config/mips/linux.mh: Ditto.
4715 * config/powerpc/linux.mh: Ditto.
4716 * config/sparc/linux.mh: Ditto.
4717
4718 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4719
4720 * win32-nat.c: Add i386-tdep.h dependency.
4721
4722 2002-01-07 Michael Snyder <msnyder@redhat.com>
4723
4724 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4725 instead of bfd_get_arch_size. Don't bail out just because
4726 there's no exec_bfd.
4727
4728 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4729 * p-valprint.c (pascal_object_print_value): Ditto.
4730 * somread.c (som_symtab_read): Ditto.
4731 * symfile.c (simple_free_overlay_region_table): Ditto.
4732 * valops.c (value_assign): Ditto.
4733
4734 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4735 use tilde_expand and strerror for opening save-tracepoints file.
4736
4737 * thread-db.c (thread_db_new_objfile): Indendation fix.
4738
4739 * infptrace.c (GDB_MAX_ALLOCA): New define.
4740 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4741 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4742 can be overridden with whatever value is appropriate to the host).
4743 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4744 alloca to allocate potentially large buffer.
4745 * rs6000-nat.c (child_xfer_memory): Ditto.
4746 * symm-nat.c (child_xfer_memory): Ditto.
4747 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4748
4749 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4750
4751 From Nick Clifton <nickc@redhat.com>
4752 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4753
4754 2002-01-07 Michael Snyder <msnyder@redhat.com>
4755
4756 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4757 Don't use exec_bfd if it's NULL.
4758
4759 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4760
4761 * valops.c (value_arg_coerce): Fix formatting.
4762
4763 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4764
4765 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4766 * gnu-nat.c: Ditto.
4767
4768 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4769
4770 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4771 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4772 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4773 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4774 z8k-coff have not been multi-arched. Update z8k-coff build
4775 status.
4776
4777 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4778
4779 * MAINTAINERS: Mark a29k target as obsolete.
4780 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4781 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4782 comments.
4783 * NEWS: Note that a29k targets are obsolete.
4784 * a29k-tdep.c: Mark as obsolete.
4785 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4786 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4787 a29k-*-vxworks* targets as obsolete.
4788 * remote-adapt.c: Obsolete.
4789 * remote-eb.c: Obsolete.
4790 * remote-mm.c: Obsolete.
4791 * remote-udi.c: Obsolete.
4792 * config/a29k/a29k-udi.mt: Obsolete.
4793 * config/a29k/a29k.mt: Obsolete.
4794 * config/a29k/tm-a29k.h: Obsolete.
4795 * config/a29k/tm-vx29k.h: Obsolete.
4796 * config/a29k/vx29k.mt: Obsolete.
4797
4798 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4799
4800 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4801 with BFD_ENDIAN_BIG.
4802
4803 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4804
4805 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4806 * configure, config.in: Re-generate.
4807 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4808 * defs.h: Do not include <endian.h>.
4809
4810 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4811
4812 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4813 * config.in: Regenerate.
4814 * configure.in: Update copyright years.
4815 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4816 * configure: Regenerate.
4817 * i386bsd-nat.c: Update copyright years.
4818 (fill_gregset): Use regcache_collect.
4819 (fetch_inferior_registers): Only fetch integer registers
4820 if requested to do so. Add support for XMM registers
4821 using PT_GETXMMREGS.
4822 (store_inferior_registers): Only store integer registers
4823 if requested to do so. Add support for XMM registers
4824 using PT_SETXMMREGS.
4825 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4826 (store_inferior_registers): Remove.
4827 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4828 (fetch_elfcore_registers): New function.
4829 (i386nbsd_elfcore_fns): New.
4830 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4831 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4832 i386bsd-nat.o.
4833 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4834 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4835 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4836 * config/i386/tm-nbsd.h: Update copyright years.
4837 (HAVE_SSE_REGS): Define.
4838 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4839 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4840 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4841 (SIGCONTEXT_PC_OFFSET): Remove.
4842 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4843
4844 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4845
4846 * configure.tgt: Remove powerpc-*-macos* target.
4847 * config/m68k/xm-mpw.h: Delete file.
4848 * config/xm-mpw.h: Delete file.
4849 * ser-mac.c: Delete file.
4850 * mpw-make.sed: Delete file.
4851 * mpw-config.in: Delete file.
4852 * mac-xdep.c: Delete file.
4853 * mac-gdb.r: Delete file.
4854 * mac-defs.h: Delete file.
4855 * mac-nat.c: Delete file.
4856 * config/powerpc/macos.mh: Delete file.
4857 * config/powerpc/macos.mt: Delete file.
4858 * config/powerpc/nm-macos.h: Delete file.
4859 * config/powerpc/tm-macos.h: Delete file.
4860 * source.c (openp, open_source_file): Remove obsolete code.
4861 * top.c (gdb_readline): Ditto.
4862 * utils.c (query): Ditto.
4863 * event-top.c (display_gdb_prompt): Ditto.
4864 * Makefile.in (ser-mac.o): Delete obsolete target.
4865 * NEWS: Update.
4866
4867 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4868
4869 * defs.h (BIG_ENDIAN): Delete macro definition.
4870 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4871 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4872 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4873 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4874 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4875 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4876 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4877 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4878 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4879 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4880 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4881 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4882 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4883 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4884 * gdbarch.c: Re-generate.
4885
4886 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4887
4888 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4889 for core files.
4890
4891 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4892
4893 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4894
4895 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4896
4897 * value.h (value_ptr): Delete typedef.
4898
4899 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4900
4901 * i386nbsd-nat.c: Update copyright years.
4902 Include i386-tdep.h.
4903
4904 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4905
4906 * stabsread.c: Update copyright years.
4907
4908 From Debashis Mahata <debashis.mahata@wipro.com>:
4909 (read_struct_fields): Deal with Sun C compiler erroneous stab
4910 output for structs and unions.
4911 Fix PR gdb/269.
4912
4913 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4914
4915 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4916 prototype.
4917
4918 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4919
4920 * cp-abi.c: Fix whitespace.
4921 (baseclass_offset): New wrapper function.
4922 * cp-abi.h (baseclass_offset): Add prototype.
4923 (struct cp_abi_ops): Add baseclass_offset pointer.
4924
4925 * valops.c (vb_match): Move to...
4926 * gnu-v2-abi.c (vb_match): here.
4927 * valops.c (baseclass_offset): Move to...
4928 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4929
4930 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4931
4932 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4933 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4934 * hpacc-abi.c (init_hpacc_ops): Likewise.
4935
4936 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4937
4938 * valops.c (find_overload_match): Accept obj as a
4939 reference parameter. Update it before returning.
4940 * value.h (find_overload_match): Update prototype.
4941 * eval.c (evaluate_subexp_standard): Pass object to
4942 find_overload_match by reference.
4943
4944 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4945
4946 * valarith.c: Replace value_ptr with struct value pointer. Remove
4947 register attribute from value declarations.
4948 * valops.c: Ditto.
4949 * value.h: Ditto.
4950 * scm-lang.c (scm_lookup_name): Ditto.
4951
4952 2002-01-03 Michael Snyder <msnyder@redhat.com>
4953
4954 Abstract the functionality of iterating over mapped memory
4955 regions into a general purpose iterator function.
4956 * procfs.c (iterate_over_mappings): New function, general purpose
4957 iterator for memory sections.
4958 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4959 (solib_mappings_callback): New function, callback for above.
4960 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4961 (info_mappings_callback): New function, callback for above.
4962
4963 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4964
4965 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4966
4967 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4968 * i386-tdep.c: Include "elf-bfd.h".
4969 (process_note_abi_tag_sections): New function.
4970 (i386_gdbarch_init): Add code to recognize various OS/ABI
4971 combinations.
4972
4973 * maint.c (_initialize_maint_cmds): Add missing \ in
4974 string-literal.
4975
4976 For older changes see ChangeLog-2001
4977 \f
4978 Local Variables:
4979 mode: change-log
4980 left-margin: 8
4981 fill-column: 74
4982 version-control: never
4983 End:
This page took 0.136094 seconds and 4 git commands to generate.