powerpc aix build failure. Add self to maintainers.
[binutils-gdb.git] / gdb / ChangeLog
1 2001-12-24 Tom Rix <trix@redhat.com>
2
3 * config/powerpc/aix.mt (TDEPFILES): Add xcoffread.o to fix a build
4 failure.
5
6 2001-12-21 Tom Tromey <tromey@redhat.com>
7
8 * configure, config.in: Rebuilt.
9 * configure.in: Check for realpath.
10 * defs.h (gdb_realpath): Declare.
11 * symtab.h (partial_symtab): Added fullname field.
12 * source.c (openp): Use gdb_realpath.
13 (forget_cached_source_info): Clear full name of each partial
14 symtab.
15 * utils.c (gdb_realpath): New function.
16 * symtab.c (lookup_symtab): Removed.
17 (lookup_symtab_1): Renamed to lookup_symtab.
18 (lookup_symtab): Look for real path.
19 (lookup_partial_symtab): Likewise.
20
21 2001-12-21 Michael Snyder <msnyder@redhat.com>
22
23 * maint.c (match_substring): New function. Tokenizer for
24 maint info sections command arguments.
25 (match_bfd_flag): Use match_substring.
26 (print_bfd_section_info): Use match_substring.
27 (print_objfile_section_info): Use match_substring.
28 (maintenance_info_sections): Use match_substring.
29
30 2001-12-21 Orjan Friberg <orjanf@axis.com>
31
32 * configure.tgt: Delete CRIS from multi-arch targets.
33
34 * config/cris/tm-cris.h: New file.
35
36 * config/cris/cris.mt (TDEPFILES): Add corelow.o solib.o solib-svr4.o.
37 (TM_FILE): New macro.
38
39 * cris-tdep.c (cris_examine): Correct check for srp register.
40 (supply_gregset, fetch_core_registers,
41 cris_linux_svr4_fetch_link_map_offsets, cris_fpless_backtrace):
42 New functions.
43 (_initialize_cris_tdep): Add core functions and new command.
44 (cris_gdbarch_init): Define link map offsets.
45
46 Thu Dec 20 16:42:30 2001 Jeffrey A Law (law@cygnus.com)
47
48 * somsolib.c (som_solib_add): Ignore the solib limit threshhold
49 if AUTO_SOLIB_LIMIT is not greater than zero.
50
51 * somsolib.c (som_solib_create_inferior_hook): No longer warn
52 about missing __d_pid symbol.
53
54 2001-12-20 Elena Zannoni <ezannoni@redhat.com>
55
56 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register):
57 New function.
58 (fetch_register): New function.
59 (fetch_ppc_registers): New function.
60 (fetch_inferior_registers): New function.
61 (store_register): New function.
62 (store_ppc_registers): New function.
63 (store_inferior_registers): New function.
64 (ppc_register_u_addr): Eliminate ustart parameter and its
65 uses. Make static.
66 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE): Define if needed.
67 Include sys/ptrace.h.
68
69 * config/powerpc/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
70 (U_REGS_OFFSET, REGISTER_U_ADDR): Delete.
71
72 * config/powerpc/linux.mh (NATDEPFILES): Delete core-aout.o.
73
74 2001-12-20 Elena Zannoni <ezannoni@redhat.com>
75
76 * rs6000-nat.c (fetch_register): Don't error out unless the
77 register number is really bogus.
78
79 2001-12-20 Michael Snyder <msnyder@redhat.com>
80
81 * maint.c (maintenance_info_sections): Accept new argument
82 'ALLOBJ', iterate over all object files.
83 (print_section_table): Delete. Replaced by:
84 (print_section_info): New function.
85 (print_bfd_section_info): New function.
86 (print_objfile_section_info): New function.
87 (_initialize_maint_commands): Add help for new features.
88
89 2001-12-20 Kevin Buettner <kevinb@redhat.com>
90
91 * arm-tdep.c (arm_init_extra_frame_info): Add special case for
92 call dummies.
93 (arm_frame_saved_pc): Likewise.
94 (arm_push_dummy_frame): Make sure all of the GPRs are saved.
95 (arm_pop_frame): Eliminate special case for call dummies. It
96 is no longer needed now that the frame info is being properly
97 initialized.
98
99 * arm-tdep.c (arm_scan_prologue): Don't require "mov ip, sp"
100 to be the first instruction in the prologue. Also, revise
101 the way the frame offset is computed for frameless functions.
102
103 2001-12-20 Michael Snyder <msnyder@redhat.com>
104
105 * maint.c (maintenance_info_sections): Pass string argument to
106 print_section_table, so that it can be used to select sections.
107 (print_section_table): Change PTR to void *. Look at string arg
108 to select sections by name and by flag attributes.
109 (match_bfd_flags): New function.
110 (print_bfd_flags): New function.
111
112 Thu Dec 20 11:37:50 2001 Jeffrey A Law (law@redhat.com)
113
114 * cli/cli-decode.c (add_cmd): Initialize pre_show_hook in
115 the new command.
116
117 2001-12-20 Andrew Cagney <ac131313@redhat.com>
118
119 * remote.c (struct packet_reg): Add field in_g_packet.
120 (struct remote_state): Rename field g_packet to regs;
121 (free_remote_state): Update.
122 (init_remote_state): Add pseudo-registers to table. Initialize
123 in_g_packet. Drop sentinal from table.
124 (packet_reg_from_regnum, packet_reg_from_pnum): Update.
125 (remote_fetch_registers): Handle registers not in the g-packet.
126 (remote_store_registers): Ditto.
127
128 2001-12-20 Andrew Cagney <ac131313@redhat.com>
129
130 * gdbarch.sh (TARGET_CHAR_SIGNED): Do not specify the print
131 format.
132
133 2001-12-19 Jim Blandy <jimb@redhat.com>
134
135 * s390-tdep.c (s390_pop_frame_regular): Make sure the saved_regs
136 array is actually set before we try to use it.
137
138 * s390-tdep.c (s390_frame_saved_pc_nofix): If we get the saved PC
139 out of the return address register, cache that in the frame's
140 extra info, just as if we'd gotten it from the saved regs array;
141 that way, it's not a lie to set the saved_pc_valid flag.
142
143 * s390-tdep.c (s390_get_frame_info): Give orig_sp a reasonable
144 value, even when fextra_info->stack_bought can't be trusted,
145
146 * s390-tdep.c (s390_readinstruction): Don't call
147 info->read_memory_func to read zero bytes. Some targets'
148 xfer_memory functions can't cope with that.
149
150 * gdbarch.sh (TARGET_CHAR_SIGNED): New macro.
151 * gdbarch.c, gdbarch.h: Regenerated.
152 * gdbtypes.c (build_gdbtypes): If TARGET_CHAR_SIGNED is zero,
153 set the TYPE_FLAG_UNSIGNED bit on the type.
154 * s390-tdep.c (s390_gdbarch_init): On the S/390, characters
155 are unsigned by default.
156 * rs6000-tdep.c (rs6000_gdbarch_init): Same for PowerPC and
157 RS6000.
158
159 2001-12-19 Elena Zannoni <ezannoni@redhat.com>
160
161 * corefile.c (do_captured_read_memory_integer,
162 safe_read_memory_integer): New functions.
163 * gdbcore.h (safe_read_memory_integer): Export.
164 * arm-tdep.c (arm_scan_prologue): Use safe_read_memory_integer,
165 to read the frame value, to capture calls to error().
166
167 2001-12-19 Jim Blandy <jimb@redhat.com>
168
169 * s390-tdep.c (s390_register_name): S390_LAST_REGNUM is, in fact,
170 the last register number, not one greater than the last register
171 number.
172
173 * s390-tdep.c (s390_register_virtual_type): Replace clever but
174 incorrect range comparison with correct, legible equivalent.
175
176 * s390-tdep.c (s390_register_raw_size): Replace unnecessarily
177 obscure range comparison with legible equivalent.
178
179 Wed Dec 19 12:18:57 2001 Jeffrey A Law (law@redhat.com)
180
181 * config/pa/tm-hppa.h (STORE_RETURN_VALUE): Use hppa_store_return_value.
182 (EXTRACT_RETURN_VALUE): Similarly.
183 * hppa-tdep.c (hppa_store_return_value): New function.
184 (hppa_extract_return_value): New function.
185
186 * infttrace.c (child_acknowledge_created_inferior): Pass
187 correct argument to add_thread.
188 (update_thread_state_after_attach): Likewise.
189
190 2001-12-19 Fernando Nasser <fnasser@redhat.com>
191
192 * config/arm/tm-arm.h: Properly define SOFTWARE_SINGLE_STEP_P.
193 Always define SOFTWARE_SINGLE_STEP.
194 * config/arm/tm-embed.h: Properly define SOFTWARE_SINGLE_STEP_P.
195 * arm-tdep.c (arm_get_next_pc, thumb_get_next_pc, bitcount,
196 shifted_reg_val): Always compile these functions.
197 (arm_software_single_step): Fix second argument in function calls.
198
199 2001-12-19 Andrew Cagney <ac131313@redhat.com>
200
201 * arch-utils.h (gdbarch_info_init): Declare.
202 * arch-utils.c: Include "arch-utils.h".
203 (gdbarch_info_init): Define.
204 (set_endian, set_architecture, set_gdbarch_from_file)
205 (initialize_current_architecture): Use gdbarch_info_init.
206 * rs6000-nat.c (set_host_arch): Ditto.
207 * cris-tdep.c (cris_version_update, cris_mode_update)
208 (cris_abi_update): Ditto.
209
210 2001-12-19 Jim Blandy <jimb@redhat.com>
211
212 * c-lang.c (c_emit_char): Print ASCII 11 as '\v', to match
213 ISO C, and our parser. Print ASCII 0 as '\0', since that's what
214 people are used to seeing.
215
216 2001-12-18 Jim Blandy <jimb@redhat.com>
217
218 * c-lang.c (c_printstr, c_builtin_types, cplus_builtin_types):
219 Fix indentation.
220
221 * Makefile.in (c-exp.tab.o): Delete duplicate build rule. Fix
222 dependency list on remaining build rule.
223
224 2001-12-18 Martin M. Hunt <hunt@redhat.com>
225
226 * ser-tcp.c (tcp_open): Disable Nagle algorithm which
227 improves performance in some cases.
228
229 2001-12-17 Ben Harris <bjh21@netbsd.org>
230
231 * armbsd-nat.c: Remove file, renamed to armnbsd-nat.c.
232 * armnbsd-nat.c: New file, renamed from armbsd-nat.c.
233 * Makefile.in: Rename armbsd-nat.c to armnbsd-nat.c.
234 * config/arm/nbsd.mh: Likewise.
235
236 2001-12-17 Corinna Vinschen <vinschen@redhat.com>
237
238 * NEWS: Note new target XStormy16.
239 * MAINTAINERS: Add -Werror to XStormy16.
240
241 2001-12-17 Fernando Nasser <fnasser@redhat.com>
242
243 From Richard Earnshaw <rearnsha@arm.com>:
244 * arm-tdep.c (arm_software_single_step): New function. Implements
245 software single-stepping for ARM targets.
246 (arm_get_next_pc, thumb_get_next_pc, bitcount, shifted_reg_val): Only
247 needed for software single-stepping.
248 * config/arm/tm-arm.h: Activate SOFTWARE_SINGLE_STEP_P.
249
250 2001-12-17 Fernando Nasser <fnasser@redhat.com>
251
252 From Richard Earnshaw <rearnsha@arm.com>:
253 * config/arm/nbsd.mh, config/arm/nbsd.mt, config/arm/tm-nbsd.h,
254 config/arm/nm-nbsd.h, config/arm/xm-nbsd.h: New files.
255 * armbsd-nat.c: New file.
256 * Makefile.in: Build it.
257 * configure.host, configure.tgt: Support NetBSD/arm.
258
259 2001-12-17 Corinna Vinschen <vinschen@redhat.com>
260
261 * MAINTAINERS: Add myself as XStormy16 maintainer.
262
263 2001-12-15 Kevin Buettner <kevinb@redhat.com>
264
265 * config/rs6000/tm-rs6000.h (solib.h): Conditionally include.
266
267 2001-12-15 Andrew Cagney <ac131313@redhat.com>
268
269 * gdbarch.c: Re-generate.
270
271 2001-12-15 Andrew Cagney <ac131313@redhat.com>
272
273 * MAINTAINERS: Remove powerpcle-eabi and rs6000-ibm-aix3.2 from
274 target list.
275
276 2001-12-15 Andrew Cagney <ac131313@redhat.com>
277
278 * defs.h (LITTLE_ENDIAN): Delete definition.
279 * arch-utils.c, cris-tdep.c, d10v-tdep.c, defs.h, gdbarch.c,
280 gdbarch.sh, remote-rdp.c, remote-sim.c, sh-tdep.c, sparc-tdep.c,
281 config/alpha/tm-alpha.h, config/arm/tm-arm.h,
282 config/i386/tm-i386.h, config/i960/tm-i960.h,
283 config/ia64/tm-ia64.h, config/mcore/tm-mcore.h,
284 config/mips/tm-wince.h, config/mn10200/tm-mn10200.h,
285 config/ns32k/tm-umax.h, config/powerpc/tm-ppcle-eabi.h,
286 config/sh/tm-wince.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
287 doc/gdbint.texinfo: Replace LITTLE_ENDIAN with BFD_ENDIAN_LITTLE.
288
289 2001-12-15 Andrew Cagney <ac131313@redhat.com>
290
291 * ui-out.c (struct ui_out_table): Add field entry_level.
292 (verify_field): New function.
293 (verify_field_proper_position): Delete function.
294 (verify_field_alignment): Delete function.
295 (ui_out_field_int): Update to use verify_field.
296 (ui_out_field_skip): Ditto.
297 (ui_out_field_string): Ditto.
298 (ui_out_field_fmt): Ditto.
299 (ui_out_table_begin): Initialize table.entry_level.
300 (ui_out_table_end): Clear table.entry_level.
301 (ui_out_begin): Call verify_field before pushing the new tuple or
302 list onto the stack. Use table.entry_level.
303
304 2001-12-14 Corinna Vinschen <vinschen@redhat.com>
305
306 * config/djgpp/fnchange.lst: Add entries for opcodes/xstormy16-* files.
307
308 2001-12-13 Andrew Cagney <ac131313@redhat.com>
309
310 * arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH
311 of register's type.
312
313 2001-12-13 Jackie Smith Cashion <jsmith@redhat.com>
314
315 * cli/cli-script.c (print_command_lines): Remove extra
316 "if", "else", "while", and "end" from show user output.
317
318 2001-12-13 Kevin Buettner <kevinb@redhat.com>
319
320 * i387-nat.c (i387_fill_fxsave): Change type of ``val'' from char
321 to short so that we don't memcpy() beyond the end of this buffer.
322 Also, change shift value used in computing val to account for the
323 fact that only eight bits are used.
324
325 2001-12-13 Corinna Vinschen <vinschen@redhat.com>
326
327 * Makefile.in: Add support for xstormy16.
328 * configure.tgt: Ditto.
329 * xstormy16-tdep.c: New file.
330 * config/xstormy16/xstormy16.mt: New file.
331
332 2001-12-13 Andreas Schwab <schwab@suse.de>
333
334 * MAINTAINERS (write-after-approval): Add myself.
335
336 2001-12-12 Jim Blandy <jimb@redhat.com>
337
338 * Makefile.in (c-exp.tab.o): Add missing dependencies.
339
340 * Makefile.in (c_lang_h): New variable. Use it in dependency
341 lists, instead of `c-lang.h' itself.
342
343 2001-12-11 Fred Fish <fnf@redhat.com>
344
345 * c-typeprint.c (c_type_print_base): Use type flags access macros
346 to test bits.
347 * ch-typeprint.c (chill_type_print_base): Ditto.
348 * ch-valprint.c (chill_val_print): Ditto.
349 * d10v-tdep.c (d10v_pointer_to_address): Ditto.
350 * dwarf2read.c (dwarf2_add_member_fn): Ditto.
351 * dwarfread.c (read_structure_scope): Ditto.
352 * gdbtypes.c (create_range_type): Dittol
353 (create_set_type): Ditto.
354 (check_typedef): Ditto.
355 * jv-typeprint.c (java_type_print_base): Ditto.
356 * p-typeprint.c (pascal_type_print_base): Ditto
357 * p-valprint.c (pascal_val_print): Ditto.
358 * stabsread.c (read_cfront_member_functions): Ditto.
359 (read_member_functions): Ditto.
360 (cleanup_undefined_types): Ditto.
361 * valprint.c (val_print): Ditto.
362
363 * valops.c (hand_function_call): Remove is_prototyped
364 variable and just use type flag test macro directly.
365
366 2001-12-11 Fred Fish <fnf@redhat.com>
367
368 * gdbtypes.c (print_bound_type): New function.
369 (recursive_dump_type): Print type struct code values
370 TYPE_CODE_BITSTRING, TYPE_CODE_COMPLEX, TYPE_CODE_TEMPLATE,
371 and TYPE_CODE_TEMPLATE_ARG.
372 (recursive_dump_type): Print type struct members
373 upper_bound_type, lower_bound_type, cv_type, and as_type.
374 Also always print the tagname member, even when it is NULL.
375
376 2001-12-11 Michael Snyder <msnyder@redhat.com>
377
378 * d10v-tdep.c (d10v_register_virtual_size): Delete.
379 (d10v_gdbarch_init): Use generic_register_virtual_size.
380 * rs6000-tdep.c (rs6000_register_virtual_size): Delete.
381 (rs6000_gdbarch_init): Use generic_register_virtual_size.
382 * x86-64-tdep.c (x86_64_register_virtual_size): Delete.
383 (i386_gdbarch_init): Use generic_register_virtual_size.
384
385 2001-12-11 Andrew Cagney <ac131313@redhat.com>
386
387 * values.c: Include "gdb_assert.h".
388 (value_fn_field): Rearange to avoid -Wuninitialized warning.
389
390 2001-12-10 Fred Fish <fnf@redhat.com>
391
392 * values.c (value_fn_field): Add physname variable. Use a minimal
393 symbol if we don't find a full symbol. Remove setting of the new
394 value's type since that was already done by allocate_value().
395 Remove obsolete commented out error call since callees need to
396 handle a NULL return, which is possible result not an error.
397 * eval.c (evaluate_subexp_standard): Move check for inlined
398 functions to precede attempt to dereference a NULL argvec[0].
399
400 2001-12-10 Fred Fish <fnf@redhat.com>
401
402 * arm-linux-tdep.c (skip_hurd_resolver): Use NULL rather than
403 zero in args to lookup_minimal_symbol.
404 * linespec.c (decode_line_1): Ditto.
405 * i386-linux-tdep.c (skip_hurd_resolver): Ditto.
406 * minsyms.c (find_stab_function_addr): Ditto.
407 * symfile.c (simple_read_overlay_table): Ditto.
408 (simple_read_overlay_region_table): Ditto.
409
410 2001-12-10 Michael Snyder <msnyder@redhat.com>
411
412 * arch-utils.c (generic_register_virtual_size): New function.
413 * arch-utils.h: Export generic version of register_virtual_size.
414 * gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default.
415 * gdbarch.c: Regenerate.
416
417 2001-12-09 Fred Fish <fnf@redhat.com>
418
419 * gdbtypes.c (TYPE_FLAG_UNSIGNED, TYPE_FLAG_STUB): Use
420 TYPE_UNSIGNED and TYPE_NOSIGN to determine when to print these
421 rather than testing the bits directly.
422 (TYPE_FLAG_NOSIGN, TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC,
423 TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_PROTOTYPED,
424 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE,
425 TYPE_FLAG_VARARGS): Test for and print these bits as well.
426
427 2001-12-09 Fred Fish <fnf@redhat.com>
428
429 * gdbtypes.c (build_gdbtypes): For builtin_type_char, pass
430 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
431 type is created.
432
433 2001-12-09 Fred Fish <fnf@redhat.com>
434
435 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_CONST,
436 TYPE_VOLATILE, TYPE_INCOMPLETE): Move macros that test the
437 bits to location in file where the bits are defined.
438 (TYPE_STUB, TYPE_TARGET_STUB, TYPE_STATIC, TYPE_PROTOTYPED,
439 TYPE_CODE_SPACE, TYPE_DATA_SPACE): New test macros.
440
441 2001-12-09 Fred Fish <fnf@redhat.com>
442
443 * gdbtypes.c (allocate_stub_method): Replace hand crafted type
444 initialization with call to the init_type() function.
445
446 2001-12-09 Andrew Cagney <ac131313@redhat.com>
447
448 * arch-utils.c (generic_register_raw_size): New function.
449 * gdbarch.sh (REGISTER_RAW_SIZE): Use generic_register_raw_size as
450 the static default.
451 * gdbarch.c: Regenerate.
452 * arch-utils.h (generic_register_raw_size): Declare.
453
454 * config/mips/tm-mips.h (REGISTER_RAW_SIZE): Delete macro.
455 * mips-tdep.c (mips_register_raw_size): Make function static.
456 (mips_gdbarch_init): Initialize register_raw_size.
457
458 2001-12-08 Fred Fish <fnf@redhat.com>
459
460 * dwarf2read.c (read_typedef): Replace hand crafted type
461 initialization with a call to the init_type() function, which
462 is how the rest of gdb creates types.
463
464 2001-12-09 Fred Fish <fnf@redhat.com>
465
466 * mdebugread.c (cross_ref): Pass TYPE_FLAG_STUB to init_type()
467 rather than setting it after the type is created.
468
469 2001-12-09 Elena Zannoni <ezannoni@redhat.com>
470
471 * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Remove
472 definition, it is now multiarched.
473 * ppc-tdep.h (struct gdbarch_tdep): Move from rs6000-tdep.c. Add
474 fields for special register numbers.
475 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize new tdep special
476 regnum fields.
477 (rs6000_saved_pc_after_call): Use gdbarch_tdep registers fields
478 instead of hardcoded macros.
479 (branch_dest, rs6000_pop_frame, rs6000_fix_call_dummy,
480 ppc_push_return_address, rs6000_frame_saved_pc,
481 frame_get_saved_regs, rs6000_frame_chain,
482 rs6000_store_return_value): Ditto.
483 (rs6000_stab_reg_to_regnum): New function.
484 * ppcnbsd-nat.c (fetch_inferior_registers,
485 store_inferior_registers, fetch_core_registers): Ditto.
486 * ppc-linux-tdep.c (ppc_linux_in_sigtramp,
487 ppc_linux_frame_init_saved_regs): Ditto.
488 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
489 fill_gregset): Ditto.
490 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
491 Ditto.
492
493 2001-12-08 Fred Fish <fnf@redhat.com>
494
495 * c-lang.c (c_create_fundamental_type): For FT_CHAR, pass
496 TYPE_FLAG_NOSIGN to init_type() rather than setting it after the
497 type is created.
498
499 2001-12-08 Fred Fish <fnf@redhat.com>
500
501 * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
502 * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
503 not collide with other flag bits.
504
505 2001-12-08 Fred Fish <fnf@redhat.com>
506
507 * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags.
508 For unsigned types set TYPE_FLAG_UNSIGNED and pass it to
509 init_type().
510
511 2001-12-08 Daniel Jacobowitz <drow@mvista.com>
512
513 * Makefile.in (cp-valprint.o): Add dependency on $(cp_abi_h).
514
515 2001-12-08 Jim Blandy <jimb@redhat.com>
516
517 * config/s390/s390.mh: Don't use the linux-thread.o module;
518 thread-db.o, lin-lwp.o, and proc-service.o should work just fine.
519
520 2001-12-07 Andrew Cagney <ac131313@redhat.com>
521
522 * PROBLEMS: New file.
523 * README: Move known problems to PROBLEMS file.
524
525 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
526
527 * stabsread.c (read_member_functions): Skip member functions which
528 are duplicates of the callable constructor/destructor.
529
530 2001-12-07 Jim Blandy <jimb@redhat.com>
531
532 * s390-tdep.c (s390_store_return_value): Don't convert float
533 values to double format when returning them; just return them in
534 the first half of the FP register, as the ABI specifies.
535
536 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
537
538 * valops.c (hand_function_call): Check for method arguments in
539 TYPE_ARG_TYPES(), not in TYPE_FIELD ().
540
541 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
542
543 * cp-valprint.c (cp_print_value): Preserve offset if
544 the virtual base is outside of this object.
545
546 2001-12-07 Daniel Jacobowitz <drow@mvista.com>
547
548 * gdbtypes.c (finish_cv_type): New function.
549 (check_typedef): Remove ``register'' keyword from argument.
550 Preserve const and volatile attributes across filling in
551 opaque types.
552 * gdbtypes.h (finish_cv_type): Add prototype.
553
554 * hp-symtab-read.c (hpread_read_struct_type): Call finish_cv_type.
555 * stabsread.c (read_struct_type): Likewise.
556 * dwarf2read.c (read_structure_scope): Likewise. Remove redundant
557 assignment to die->type.
558
559 2001-12-07 Jim Blandy <jimb@redhat.com>
560
561 * printcmd.c (print_scalar_formatted): Compare the length of the
562 value against the lengths of the target's floating-point types,
563 not the host's. Add support for `long double'.
564
565 2001-12-07 Martin M. Hunt <hunt@redhat.com>
566
567 * configure.in: Check for sys/filio.h
568 * configure: Rebuild.
569 * config.in: Add HAVE_SYS_FILIO_H
570 * ser-tcp.c: Conditionally include sys/filio.h.
571
572 2001-12-07 Andrew Cagney <ac131313@redhat.com>
573
574 * ui-out.c (ui_out_table_begin): Initialize body_flag.
575 (struct ui_out_table): New structure. Move table fields to here.
576 Rename headercurr to headernext.
577 (struct ui_out): Remove table specific fields. Add field table.
578 (ui_out_table_begin, ui_out_table_body, ui_out_table_end): Update.
579 (ui_out_table_header, ui_out_begin): Update.
580 (verify_field_proper_position, verify_field_alignment): Update.
581 (ui_out_new, clear_header_list, append_header_to_list): Update.
582 (get_next_header): Rename get_curr_header. Update comments and
583 code.
584
585 2001-12-06 Andrew Cagney <ac131313@redhat.com>
586
587 * regcache.c (XCALLOC): Delete macro that should not have been
588 added.
589
590 2001-12-07 Jiri Smid <smid@suse.cz>
591
592 * dwarf2cfi.c: New file.
593 * dwarf2cfi.h: New file.
594 * dwarf2read.c (dwarf_frame_offset, dwarf_frame_size): New variables.
595 (dwarf_eh_frame_offset, dwarf_eh_frame_size): New variables.
596 (dwarf2_read_section): Change to non static.
597 (dwarf2_locate_sections): Add .debug_frame and .eh_frame section
598 recognition.
599 (FRAME_SECTION, EH_FRAME_SECTION): New define.
600 * elfread.c (elf_symfile_read): Add call of frame informations build.
601 * frame.h (frame_info): Add pointer to unwind_context.
602 * symfile.h (dwarf2_build_frame_info): Add declaration.
603 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Add.
604 * gdbarch.h, gdbarch.c: Regenerate.
605 * Makefile.in: Add dwarf2cfi_h, dwarf2cfi.o
606 * x86-64-tdep.c (i386_gdbarch_init): Initialize target vector to
607 use debug frame info.
608
609 2001-12-06 Andrew Cagney <ac131313@redhat.com>
610
611 * defs.h: Do not include "mmalloc.h".
612 (mcalloc, mmalloc, mrealloc, mfree): Delete declaration.
613 * objfiles.c: Include "mmalloc.h".
614 * utils.c: Include "mmalloc.h".
615 (mmalloc, mfree, mrealloc, mmalloc): Make static, change PTR to
616 void pointer.
617
618 2001-12-06 Andrew Cagney <ac131313@redhat.com>
619
620 * regcache.c (store_register, fetch_register): Only use
621 fetch/store pseudo-register when function is present. Assume
622 target can handle all registers.
623 (registers_changed): Simplify invalidate loop.
624 (registers_fetched): Add comments.
625 (register_buffer): Add regnum range assertion. Remove code
626 handling -ve regnum.
627 (build_regcache): Make space for pseudo-registers when computing
628 sizeof_registers. Initialize register_offset.
629
630 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Change to a function with
631 predicate.
632 (STORE_PSEUDO_REGISTER): Ditto.
633 * gdbarch.h, gdbarch.c: Re-generate.
634
635 2001-12-06 Jim Blandy <jimb@redhat.com>
636
637 * config/s390/nm-linux.h: Watchpoints are either continuable or
638 steppable, not both. The S/390 has continuable watchpoints, so
639 delete the #definition of HAVE_STEPPABLE_WATCHPOINT.
640
641 2001-12-04 Pierre Muller <muller@ics.u-strasbg.fr>
642
643 * go32-nat.c (go32_fetch_registers): Remove call to register_buffer
644 (which is now a static function in regcache.c)
645 and use regcache_collect instead.
646
647 2001-12-05 Andrew Cagney <cagney@redhat.com>
648
649 * target.c (cleanup_target): Do not initialize to_query to
650 return_zero.
651
652 2001-12-05 Jim Blandy <jimb@redhat.com>
653
654 * s390-tdep.c (s390_get_frame_info): Recognize argument register
655 spills that use the `stm' instruction.
656 (is_arg_reg): New function.
657
658 2001-12-03 Keith Walker <keith.walker@arm.com>
659
660 * gdbserver/low-linux.c (arm_register_u_addr): Added.
661 (initialize_arch): Added for ARM target.
662 * config/arm/nm-linux.h (U_REGS_OFFSET): Defined.
663 (REGISTER_U_ADDR): Defined.
664 * config/arm/tm-linux.h (ARM_GNULINUX_TARGET): Defined.
665
666 2001-12-04 Corinna Vinschen <vinschen@redhat.com>
667
668 * arm-tdep.c (arm_skip_prologue): Always skip prologue by scanning
669 the prologue if source is assembler.
670
671 2001-12-04 Jackie Smith Cashion <jsmith@redhat.com>
672
673 * MAINTAINERS (write-after-approval): Add self.
674
675 * d10v-tdep.c (d10v_gdbarch_init): Change size of long long to 8 bytes.
676
677 From Andrew Cagney <cagney@redhat.com>:
678 * d10v-tdep.c (d10v_frame_chain_valid): Check if the caller's PC
679 is in the entry function.
680 (d10v_use_struct_convention): Store multi-field struct and union
681 return values on the stack.
682
683 2001-12-04 Jim Blandy <jimb@redhat.com>
684
685 * s390-tdep.c (s390_get_frame_info): Recognize spills of reg
686 arguments into their stack slots.
687
688 * s390-tdep.c (s390_get_frame_info): More doc fixes.
689
690 * s390-tdep.c (s390_get_frame_info): Doc fixes.
691
692 2001-12-04 Orjan Friberg <orjanf@axis.com>
693
694 * cris-tdep.c (cris_regnums): Add DCCR_REGNUM for completeness.
695 (cris_examine): Add comment about solib prologue parsing.
696 (bdap_prefix): Read offset with correct signedness and size.
697 (move_to_preg_op): Don't rely on register numbering for register size.
698 (none_reg_mode_move_from_preg_op): Ditto.
699
700 2001-12-04 Orjan Friberg <orjanf@axis.com>
701
702 * solib.c (solib_open): Make path relative if search for absolute path
703 failed. If search for relative path in solib_search_path failed, fall
704 back to search for basename only.
705
706 2001-12-03 Martin M. Hunt <hunt@redhat.com>
707
708 * serial.h: Add a note to serial_open.
709
710 * ser-tcp.c (tcp_open): Rewrite to use a non-blocking connect.
711 Allow UI and CLI to abort connect. Instead of trying 15 times
712 with very long timeouts, just try one connect with a maximum timeout
713 of 15 seconds.
714
715 2001-12-03 Kevin Buettner <kevinb@redhat.com>
716
717 * config/powerpc/tm-macos.h (solib.h): Include.
718 * config/powerpc/tm-ppc-eabi.h (solib.h): Include.
719
720 2001-12-03 Michael Snyder <msnyder@redhat.com>
721
722 * symtab.c (search_symbols): Make sure alloca size is big enough.
723
724 2001-12-03 Andrew Cagney <ac131313@redhat.com>
725
726 * MAINTAINERS: Prune m68k targets down to just m68k-elf.
727
728 2001-12-03 Jim Blandy <jimb@redhat.com>
729
730 * s390-tdep.c (s390_get_frame_info): Don't used fextra_info to set
731 orig_sp if it's not initialized.
732
733 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
734
735 * findvar.c (locate_var_value): Specify in which register a register
736 variable is stored.
737
738 2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
739
740 * win32-nat.c (mappings): Correct position of XMM registers,
741 based on FXSAVE instruction structure.
742
743 2001-12-02 Andrew Cagney <ac131313@redhat.com>
744
745 * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
746 mmalloc.
747
748 * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c, hpread.c,
749 nlmread.c, objfiles.c, os9kread.c, somread.c, source.c, symfile.c,
750 symmisc.c, xcoffread.c: Use xmfree instead of mfree.
751
752 * jv-lang.c (add_class_symtab_symbol): Use xmrealloc instead of
753 mrealloc.
754
755 2001-12-02 Andrew Cagney <ac131313@redhat.com>
756
757 * i386-tdep.c (i386go32_frame_saved_pc): New function.
758 * config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
759 (FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
760
761 2001-12-01 Andrew Cagney <ac131313@redhat.com>
762
763 * defs.h: Update comment on HOST_BYTE_ORDER.
764 * config/xm-aix4.h: Delete definition of HOST_BYTE_ORDER.
765 * config/xm-nbsd.h, config/alpha/xm-alphalinux.h: Ditto.
766 * config/alpha/xm-alphaosf.h, config/alpha/xm-fbsd.h: Ditto.
767 * config/arm/xm-linux.h, config/i386/xm-cygwin.h: Ditto.
768 * config/i386/xm-i386bsd.h, config/i386/xm-i386gnu.h: Ditto.
769 * config/i386/xm-i386lynx.h, config/i386/xm-i386m3.h: Ditto.
770 * config/i386/xm-i386mach.h, config/i386/xm-i386v.h: Ditto.
771 * config/i386/xm-ptx.h, config/i386/xm-symmetry.h: Ditto.
772 * config/ia64/xm-aix.h, config/ia64/xm-linux.h: Ditto.
773 * config/m68k/xm-3b1.h, config/m68k/xm-apollo68b.h: Ditto.
774 * config/m68k/xm-apollo68v.h, config/m68k/xm-delta68.h: Ditto.
775 * config/m68k/xm-dpx2.h, config/m68k/xm-hp300bsd.h: Ditto.
776 * config/m68k/xm-hp300hpux.h, config/m68k/xm-m68k.h: Ditto.
777 * config/m68k/xm-m68klynx.h, config/m68k/xm-sun2.h: Ditto.
778 * config/m68k/xm-sun3.h, config/m88k/xm-dgux.h: Ditto.
779 * config/m88k/xm-m88k.h, config/mips/xm-irix3.h: Ditto.
780 * config/mips/xm-irix5.h, config/mips/xm-linux.h: Ditto.
781 * config/mips/xm-mips.h, config/mips/xm-mipsm3.h: Ditto.
782 * config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h: Ditto.
783 * config/mips/xm-riscos.h, config/pa/xm-hppab.h: Ditto.
784 * config/pa/xm-hppah.h, config/powerpc/xm-linux.h: Ditto.
785 * config/romp/xm-rtbsd.h, config/rs6000/xm-rs6000.h: Ditto.
786 * config/rs6000/xm-rs6000ly.h, config/s390/xm-linux.h: Ditto.
787 * config/sparc/xm-sparc.h, config/sparc/xm-sparclynx.h: Ditto.
788 * config/vax/xm-vax.h: Ditto.
789
790 * config/a29k/tm-vx29k.h: Add #error as file depends on
791 HOST_BYTE_ORDER.
792 * config/a29k/tm-a29k.h: Ditto.
793 * MAINTAINERS (a29k-amd-udi): Document as broken.
794
795 2001-12-01 Andrew Cagney <ac131313@redhat.com>
796
797 * Makefile.in (tm-news.h, tm-isi.h, xm-news1000.h): Delete.
798 (ALLDEPFILES): Delete news-xdep.c.
799 (news-xdep.o): Delete.
800 (isi-xdep.o): Delete.
801 * configure.tgt: Delete m68*-isi-*, m68*-sony-*, m68*-rom68k-*,
802 m68*-*bug-*, m68*-monitor-* and m68*-est-* targets.
803 * configure.host: Delete m68030-sony-*, m68*-isi-* and m68*-sony-*
804 Hosts.
805 * m68k-tdep.c (isi_skip_prologue): Delete function.
806 * news-xdep.c: Delete file.
807 * isi-xdep.c: Delete file.
808 * config/m68k/isi.mh: Delete file.
809 * config/m68k/isi.mt: Delete file.
810 * config/m68k/news.mh: Delete file.
811 * config/m68k/news.mt: Delete file.
812 * config/m68k/news1000.mh: Delete file.
813 * config/m68k/nm-news.h: Delete file.
814 * config/m68k/tm-isi.h: Delete file.
815 * config/m68k/tm-news.h: Delete file.
816 * config/m68k/xm-isi.h: Delete file.
817 * config/m68k/xm-news.h: Delete file.
818 * config/m68k/xm-news1000.h: Delete file.
819
820 * kdb-start.c: Delete file.
821 * stuff.c: Delete file.
822
823 * NEWS: Note that a29k-nyu-sym1 and a29k-*-kern* were deleted.
824 * configure.host: Delete a29k-*-* host.
825 * configure.tgt: Delete a29k-*-kern* and a29k-*-sym1* targets.
826 * config/a29k/a29k-kern.mt: Delete file.
827 * config/a29k/nm-ultra3.h: Delete file.
828 * config/a29k/tm-ultra3.h: Delete file.
829 * config/a29k/ultra3.mh: Delete file.
830 * config/a29k/ultra3.mt: Delete file.
831 * config/a29k/xm-ultra3.h: Delete file.
832
833 * NEWS: Note that i[3456]86-*-sunos* was deleted.
834 * Makefile.in (sun386-nat.o): Delete.
835 * configure.tgt: Delete i[3456]86-*-sunos* target.
836 * configure.host: Delete i[3456]86-*-sunos* host.
837 * sun386-nat.c: Delete.file.
838 * config/i386/nm-sun386.h: Delete file.
839 * config/i386/sun386.mh: Delete file.
840 * config/i386/sun386.mt: Delete file.
841 * config/i386/tm-sun386.h: Delete file.
842 * config/i386/xm-sun386.h: Delete file.
843
844 * NEWS: Note that ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*
845 and ns32k-utek-* were deleted.
846 * Makefile.in (ultra3-nat.o, ultra3-xdep.o): Delete.
847 (umax-xdep.o, ns32km3-nat.o): Delete.
848 * configure.tgt: Delete ns32k-*-mach3*, ns32k-utek-sysv* and
849 ns32k-utek-* targets.
850 * configure.host: Delete ns32k-*-mach3*, ns32k-umax-* and
851 ns32k-utek-sysv* hosts.
852 * ultra3-nat.c: Delete file.
853 * ultra3-xdep.c: Delete file.
854 * umax-xdep.o: Delete file.
855 * ns32km3-nat: Delete file.
856 * config/ns32k/merlin.mh: Delete file.
857 * config/ns32k/merlin.mt: Delete file.
858 * config/ns32k/nm-umax.h: Delete file.
859 * config/ns32k/ns32km3.mh: Delete file.
860 * config/ns32k/ns32km3.mt: Delete file.
861 * config/ns32k/tm-merlin.h: Delete file.
862 * config/ns32k/tm-ns32km3.h: Delete file.
863 * config/ns32k/umax.mh: Delete file.
864 * config/ns32k/umax.mt: Delete file.
865 * config/ns32k/xm-merlin.h: Delete file.
866 * config/ns32k/xm-ns32km3.h: Delete file.
867 * config/ns32k/xm-umax.h: Delete file.
868
869 * NEWS: Note that m88*-harris-cxux* was deleted.
870 * configure.host: Delete m88*-harris-cxux* host.
871 * configure.tgt: Delete m88*-harris-cxux* target.
872 * config/m88k/cxux.mh: Delete file.
873 * config/m88k/cxux.mt: Delete file.
874 * config/m88k/nm-cxux.h: Delete file.
875 * config/m88k/tm-cxux.h: Delete file.
876 * config/m88k/xm-cxux.h: Delete file.
877
878 * NEWS: Note that powerpc-*-netware*, powerpcle-*-cygwin* and
879 powerpcle-*-solaris* were deleted.
880 * configure.host: Delete powerpcle-*-cygwin* and
881 powerpcle-*-solaris* hosts.
882 * configure.tgt: Delete powerpc-*-netware*, powerpcle-*-cygwin*
883 and powerpcle-*-solaris* targets.
884 * config/powerpc/cygwin.mh: Delete file.
885 * config/powerpc/cygwin.mt: Delete file.
886 * config/powerpc/nm-solaris.h: Delete.file.
887 * config/powerpc/ppc-nw.mt: Delete file.
888 * config/powerpc/solaris.mh: Delete file.
889 * config/powerpc/solaris.mt: Delete file.
890 * config/powerpc/tm-cygwin.h: Delete file.
891 * config/powerpc/tm-ppc-nw.h: Delete file.
892 * config/powerpc/tm-solaris.h: Delete file.
893 * config/powerpc/xm-cygwin.h: Delete file.
894 * config/powerpc/xm-mpw.h: Delete file.
895 * config/powerpc/xm-solaris.h: Delete file.
896
897 * NEWS, MAINTAINERS: Note that w65-*-* was deleted.
898 * configure.tgt: Delete w65-*-*.
899 * Makefile.in (w65-tdep.o): Delete.
900 * config/w65/tm-w65.h: Delete file.
901 * config/w65/w65.mt: Delete file.
902 * w65-tdep.c: Delete file.
903
904 * NEWS: Mention deleted tic80-*-*.
905 * configure.tgt: Delete tic80-*-*.
906 * Makefile.in (tic80-tdep.o): Delete.
907 * config/tic80/tic80.mt: Delete.
908 * config/tic80/tm-tic80.h: Delete.
909 * tic80-tdep.c: Delete.
910 * MAINTAINERS: Note that tic80 was deleted.
911
912 2001-11-30 Kevin Buettner <kevinb@redhat.com>
913
914 * ppc-linux-tdep.c (solib-svr4.h): Include.
915 (ppc_linux_svr4_fetch_link_map_offsets): New function.
916 * ppc-tdep.h (ppc_linux_svr4_fetch_link_map_offsets): Declare.
917 * rs6000-tdep.c (solib-svr4.h): Include.
918 (rs6000_gdbarch_init): Set up ppc_linux_svr4_fetch_link_map_offsets()
919 as the link map offsets fetcher.
920
921 * config/powerpc/aix.mt (TDEPFILES): Add solib-svr4.o.
922 * config/powerpc/macos.mt (TDEPFILES): Likewise.
923 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
924 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
925 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
926 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
927 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
928 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
929 * config/rs6000/aix4.mt (TDEPFILES): Likewise.
930 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
931 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
932
933 2001-11-30 Kevin Buettner <kevinb@redhat.com>
934
935 From Louis Hamilton <hamilton@redhat.com>:
936 * arm-tdep.c (solib-svr4.h): Include.
937 (arm_linux_svr4_fetch_link_map_offsets): New function.
938 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
939 (arm_linux_svr4_fetch_link_map_offsets): Declare.
940
941 2001-11-30 Daniel Jacobowitz <drow@mvista.com>
942
943 * values.c (value_primitive_field): Add embedded_offset to the
944 address of structure members.
945 * gnu-v3-abi.c (gnuv3_rtti_type): Cast to base type before
946 attempting to access vtable pointer. Set using_enc_p if we cast.
947 (gnuv3_virtual_fn_field): Call value_cast with structure rather than
948 structure pointer. Cast to base type before attempting to access
949 vtable pointer.
950
951 2001-11-29 Elena Zannoni <ezannoni@redhat.com>
952
953 * Makefile.in (ppc-linux-nat.o): Add dependency on ppc-tdep.h.
954
955 * ppc-tdep.h (PPC_GPLAST_REGNUM): Define.
956
957 * ppc-linux-nat.c: Include ppc-tdep.h.
958 (ppc_register_u_addr): Don't use the static array regmap[],
959 dynamically define the mapping instead.
960 (supply_gregset): Ditto.
961 (fill_gregset): Ditto.
962 (COPY_REG): Delete macro defintion.
963 (regmap): Delete array.
964
965 2001-11-29 Jim Blandy <jimb@redhat.com>
966
967 Tighten up GDB's support for returning structs by value.
968 * s390-tdep.c (s390_use_struct_convention): New function.
969 (s390_gdbarch_init): Register it as the S/390's
970 USE_STRUCT_CONVENTION method. Register
971 generic_cannot_extract_struct_value_address as our
972 EXTRACT_STRUCT_VALUE_ADDRESS method.
973 * arch-utils.c (generic_cannot_extract_struct_value_address): New
974 function.
975 * arch-utils.h: Add corresponding prototype.
976
977 * values.c (value_being_returned): Make error message a proper
978 sentence.
979
980 2001-11-27 Keith Walker <keith.walker@arm.com>
981
982 * dwarf2read.c (read_attribute_value): New function to handle
983 DW_FORM_indirect
984 (read_attribute): uses read_attribute_value
985
986 2001-11-29 Jim Blandy <jimb@redhat.com>
987
988 * s390-tdep.c (s390_frame_saved_pc_nofix): If the prologue didn't
989 save the return address register, assume that the return address
990 is still in there.
991
992 2001-11-27 Andrew Cagney <ac131313@redhat.com>
993
994 * MAINTAINERS: Clarify obvious fix a little (as suggested by Eli
995 Zaretskii).
996
997 2001-11-25 Jim Blandy <jimb@redhat.com>
998
999 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
1000
1001 2001-11-27 Jim Blandy <jimb@redhat.com>
1002
1003 * s390-tdep.c: Get frame chains and saved pc values properly from
1004 dummy frames.
1005 (s390_frame_saved_pc_nofix): if `*fi' is a dummy frame, get the
1006 saved PC from the dummy frame's registers.
1007 (s390_frame_chain): Same for the saved SP.
1008 (s390_gdbarch_init): Register `generic_save_dummy_frame_tos' as
1009 the `SAVE_DUMMY_FRAME_TOS' method, so the dummy frame's `top' gets
1010 set correctly.
1011
1012 * s390-tdep.c (s390_frame_chain): Remember that the SP's element
1013 of the frame's saved_regs array is special.
1014
1015 * s390-tdep.c (register_names): Call the general-purpose registers
1016 `r0' -- `r15', and the floating-point registers `f0' -- `f15', to
1017 match the assembly language.
1018
1019 2001-11-26 Pierre Muller <muller@ics.u-strasbg.fr>
1020
1021 * config/i386/tm-cygwin.h: Define HAVE_SSE_REGS if
1022 HAVE_CONTEXT_EXTENDED_REGISTERS is defined.
1023 * win32-nat.c: Define CONTEXT_DEBUGGER_DR that will also include
1024 extended registers if HAVE_SSE_REGS is defined.
1025 (mappings array): Add offset of extended registers.
1026 (thread_rec): Use new CONTEXT_DEBUGGER_DR macro.
1027
1028 2001-11-26 Tom Tromey <tromey@redhat.com>
1029
1030 * NEWS: Updated.
1031 * event-loop.c (start_event_loop): Call
1032 after_char_processing_hook.
1033 * event-top.h (after_char_processing_hook): Declare.
1034 * event-top.c (rl_callback_read_char_wrapper): Call
1035 after_char_processing_hook.
1036 (after_char_processing_hook): New global.
1037 * top.c (operate_saved_history): New global.
1038 (gdb_rl_operate_and_get_next): New function.
1039 (init_main): Add the operate-and-get-next defun.
1040 (gdb_rl_operate_and_get_next_completion): New function.
1041
1042 2001-11-26 Tom Tromey <tromey@redhat.com>
1043
1044 * NEWS: Update for --args.
1045 * infcmd.c (construct_inferior_arguments): Moved from ...
1046 * fork-child.c: ... here.
1047
1048 2001-11-26 Jim Blandy <jimb@redhat.com>
1049
1050 * symtab.c (find_pc_sect_line): Revert change of 2001-11-13; add
1051 comment explaining that hand-written assembly code can have line
1052 number info but no debug info for an enclosing function.
1053
1054 2001-11-26 Jakub Jelinek <jakub@redhat.com>
1055
1056 * sparc-nat.c (fetch_inferior_registers): Don't rely
1057 on CORE_ADDR being 32-bit.
1058 (store_inferior_registers): Likewise.
1059
1060 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1061
1062 * config/djgpp/config.sed: Fix an error in etc/ at "make install"
1063 time on non-LFN systems where standards*.inf* expands to nothing.
1064
1065 * go32-nat.c (save_npx): Avoid a warning from GCC 3.x.
1066
1067 2001-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1068 Christopher Faylor <cgf@redhat.com>
1069
1070 * win32-nat.c (struct so_stuff): Add objfile *objfile field needed to
1071 be able to remove the DLL when unloaded. Remove unused last field.
1072 (handle_unload_dll): New function to handle unloading of DLL.
1073 (solib_symbols_add): Change return type to struct objfile *.
1074 (get_child_debug_event): Call handle_unload_dll function.
1075
1076 2001-11-24 Christopher Faylor <cgf@redhat.com>
1077
1078 * win32-nat.c (_initialize_check_for_gdb_ini): New function.
1079 * config/i386/xm-cygwin.h: Remove obsolete handling of __CYGWIN32__.
1080 (GDBINIT_FILENAME): Remove.
1081
1082 2001-11-23 Mark Kettenis <kettenis@gnu.org>
1083
1084 Add x86 OpenBSD native configuration.
1085 * config/i386/obsd.mt, config/i386/tm-obsd.h, config/i386/obsd.mh,
1086 config/i386/nm-obsd.h: New files.
1087 * configure.host (i[3456]86-*-openbsd*): New host.
1088 * configure.tgt (i[3456]86-*-openbsd*): New target.
1089 * NEWS: Update.
1090
1091 2001-11-21 GDB Administrator <gdbadmin@sourceware.cygnus.com>
1092
1093 * GDB 5.1 was released.
1094
1095 2001-11-21 Tom Tromey <tromey@redhat.com>
1096
1097 Fix for PR gdb/209, PR gdb/156:
1098 * gdbarch.c, gdbarch.h: Rebuilt.
1099 * gdbarch.sh: Added `construct_inferior_arguments'.
1100 * cli/cli-decode.h (cmd_list_element): Added pre_show_hook.
1101 Typo fix.
1102 * cli/cli-setshow.c (do_setshow_command): Call the pre_show_hook.
1103 * infcmd.c (_initialize_infcmd): Set sfunc on `set args' command.
1104 (inferior_argc, inferior_argv): New globals.
1105 (notice_args_set): New function.
1106 (set_inferior_args): Clear inferior_argc and inferior_argv.
1107 (set_inferior_args_vector): New function.
1108 (get_inferior_args): Handle inferior argument vector.
1109 (run_command): Use get_inferior_args().
1110 (notice_args_read): New function.
1111 (_initialize_infcmd): Don't call set_inferior_args.
1112 * command.h: Typo fix.
1113 (cmd_list_element): Added pre_show_hook.
1114 * main.c (captured_main): Added --args option.
1115 (print_gdb_help): Document --args.
1116 * inferior.h (construct_inferior_arguments): Declare.
1117 (set_inferior_args_vector): Likewise.
1118 * fork-child.c (construct_inferior_arguments): New function.
1119
1120 2001-11-21 Kevin Buettner <kevinb@redhat.com>
1121
1122 * lin-lwp.c (lin_lwp_attach_lwp): Make sure SIGCHLD is in set of
1123 blocked signals.
1124
1125 * lin-lwp.c (lin_lwp_attach_lwp): Mark main thread as stopped.
1126
1127 2001-11-20 Jim Blandy <jimb@redhat.com>
1128
1129 * target.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT): Delete
1130 default definition; this is never used.
1131
1132 2001-11-20 Keith Seitz <keiths@redhat.com>
1133
1134 * varobj.c (c_value_of_child): Release memory for "name" when
1135 finshed using it.
1136 (c_type_of_child): Likewise.
1137 (cplus_value_of_child): Isolate the use of name_of_child to
1138 one case that needs it.
1139 Release memory for "name" when finished using it.
1140
1141 2001-11-20 Keith Seitz <keiths@redhat.com>
1142
1143 * top.c (gdb_init): Call init_ui_hook before initializing
1144 the default UI.
1145
1146 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
1147
1148 * config/powerpc/nm-linux.h (ppc_register_u_addr): Add extern
1149 declaration.
1150
1151 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
1152
1153 * ppc-linux-nat.c (COPY_REG): Use regcache_collect instead of
1154 accessing registers[].
1155 (fill_fpregset): Ditto.
1156
1157 2001-11-19 Elena Zannoni <ezannoni@redhat.com>
1158
1159 * infptrace.c (fetch_register): Dynamically allocate buffer for
1160 register.
1161 (store_register): Use regcache_collect, instead of accessing the
1162 register buffer directly.
1163
1164 2001-11-19 Daniel Jacobowitz <drow@mvista.com>
1165
1166 * mips-tdep.c (find_proc_desc): Add cur_frame argument. Pass
1167 cur_frame to heuristic_proc_desc.
1168 (heuristic_proc_desc): Add cur_frame argument. Do not read SP
1169 if cur_frame == 0.
1170 (after_prologue): Pass cur_frame == 0 to find_proc_desc.
1171 (mips_frame_chain): Pass cur_frame == 1 to find_proc_desc.
1172 (mips_init_extra_frame_info): Likewise.
1173
1174 2001-11-19 Andrew Cagney <ac131313@redhat.com>
1175
1176 * defs.h (return_to_top_level): Comment.
1177
1178 Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
1179
1180 * remote.c (remote_open_1, remote_async_open_1): Use ISO C string
1181 concatenation for error parameter.
1182 (remote_cisco_open): Ditto.
1183
1184 2001-11-19 Keith Seitz <keiths@redhat.com>
1185
1186 * varobj.c (c_value_of_child): Use the wrapper function,
1187 gdb_value_struct_elt.
1188 (cplus_value_of_child): Likewise.
1189
1190 2001-11-18 Andrew Cagney <ac131313@redhat.com>
1191
1192 * i386-tdep.c (i386_gdbarch_init): Initialize num_regs.
1193 * config/i386/tm-i386.h (NUM_REGS): Delete.
1194
1195 2001-11-18 Kevin Buettner <kevinb@redhat.com>
1196
1197 * i386-linux-nat.c (fill_gregset): Fix botched regcache_collect()
1198 conversion for I386_LINUX_ORIG_EAX_REGNUM.
1199
1200 2001-11-18 Andrew Cagney <ac131313@redhat.com>
1201
1202 * config/i386/embed.mt (TM_FILE): Set to tm-i386.h.
1203 * config/i386/tm-embed.h: Delete.
1204
1205 2001-11-17 Andrew Cagney <ac131313@redhat.com>
1206
1207 * Makefile.in (distclean): Explicitly delete Makefile et.al. in
1208 gdbserver sub directory.
1209
1210 2001-11-17 Andrew Cagney <ac131313@redhat.com>
1211
1212 * README: Mention need for alloca(). Mention problems with
1213 alpha-dec-osf4.0e. Clarify that comments refer to GDB 5.1.
1214
1215 2001-11-17 Kevin Buettner <kevinb@redhat.com>
1216
1217 * i386-linux-nat.c (fill_gregset): Use regcache_collect() instead
1218 of accessing registers[] directly.
1219
1220 2001-11-17 Kevin Buettner <kevinb@redhat.com>
1221
1222 * i386-linux-nat.c (fill_gregset): Don't invoke read_register_gen()
1223 when fetching ORIG_EAX.
1224
1225 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
1226
1227 * arm-linux-nat.c: Don't include <asm/ptrace.h>.
1228 (fetch_register): Use elf_gregset_t instead of struct pt_regs.
1229 (fetch_regs): Likewise.
1230 (store_register): Likewise.
1231 (store_regs): Likewise.
1232
1233 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
1234
1235 * sparc-linux-nat.c (fill_gregset): Replace read_register_gen
1236 with regcache_collect.
1237 (fill_fpregset): Likewise.
1238
1239 2001-11-17 Daniel Jacobowitz <drow@mvista.com>
1240
1241 * Makefile.in: Add mips-linux-nat.c, mips-linux-tdep.c,
1242 and sparc-linux-nat.c to ALLDEPFILES. Add dependencies.
1243 * config/sparc/linux.mh: Add sparc-linux-nat.o to NATDEPFILES.
1244 * sparc-linux-nat.c: New file, from Mark Kettenis.
1245
1246 2001-11-16 Jakub Jelinek <jakub@redhat.com>
1247
1248 * dwarf2read.c (dwarf_str_buffer): New.
1249 (struct dwarf2_pinfo): Add dwarf_str_buffer and dwarf_str_size.
1250 (DWARF_STR_BUFFER, DWARF_STR_SIZE): Define.
1251 (dwarf2_has_info): Clear dwarf_str_offset.
1252 (dwarf2_build_psymtabs): Read .debug_str section if present.
1253 (dwarf2_build_psymtabs_hard): Save DWARF_STR_BUFFER and
1254 DWARF_STR_SIZE.
1255 (psymtab_to_symtab_1): Restore DWARF_STR_BUFFER and DWARF_STR_SIZE.
1256 (read_attribute): Handle DW_FORM_strp.
1257 (read_n_bytes, read_string): Remove HOST_CHAR_BIT != 8
1258 handling code.
1259 (read_indirect_string): New.
1260 (dump_die): Handle DW_FORM_strp.
1261
1262 2001-11-16 Jim Blandy <jimb@redhat.com>
1263
1264 * s390-tdep.c: Tweak argument-passing to match GCC bugs.
1265 (is_float_singleton, is_struct_like, is_float_like): New
1266 functions, that isolate the weirdness.
1267 (is_double_or_float, is_simple_arg, pass_by_copy_ref,
1268 is_double_arg): Use is_struct_like and is_float_like, rather than
1269 testing the type codes ourselves.
1270 (s390_push_arguments): When passing args on the stack, align each
1271 on to a four-byte boundary, regardless of what the type itself
1272 needs.
1273
1274 2001-11-16 Ben Harris <bjh21@netbsd.org>
1275
1276 * Makefile.in (os9kread.o): Replace $< with autoconf-approved
1277 $(srcdir)/....
1278 (procfs.o): Ditto.
1279 (z8k-tdep.o): Ditto.
1280
1281 2001-11-16 Ben Harris <bjh21@netbsd.org>
1282
1283 * MAINTAINERS (write-after-approval): Add self.
1284
1285 2001-11-15 Jim Blandy <jimb@redhat.com>
1286
1287 * s390-tdep.c (is_simple_arg): Structs and unions exactly eight
1288 bytes long should be handled as DOUBLE_ARGs; don't recognize them
1289 as SIMPLE_ARGs.
1290
1291 2001-11-12 Andrew Cagney <ac131313@redhat.com>
1292
1293 * remote.c (struct packet_reg): Declare.
1294 (struct remote_state): Add fields sizeof_g_packet and g_packet.
1295 (init_remote_state): Initialize sizeof_g_packet and g_packet.
1296 (free_remote_state): Free g_packet.
1297 (packet_reg_from_pnum, packet_reg_by_regnum): New functions.
1298 (remote_wait): Use above instead of gdbarch methods
1299 REGISTER_RAW_SIZE and REGISTER_BYTES.
1300 (remote_async_wait): Ditto.
1301 (remote_fetch_registers, remote_store_registers): Ditto.
1302 (store_register_using_P): Ditto.
1303
1304 2001-11-15 Andrew Cagney <ac131313@redhat.com>
1305
1306 * remote.c (_initialize_remote): Don't multi-arch swap tty_input.
1307 Second attempt.
1308
1309 2001-11-15 Andrew Cagney <ac131313@redhat.com>
1310
1311 * utils.c (phex_nz): For default case, set str to phex_nz return
1312 value.
1313 (phex): Ditto.
1314
1315 2001-11-15 Andrew Cagney <ac131313@redhat.com>
1316
1317 * TODO (register_buffer): Delete.
1318 * regcache.c (register_buffer): Make static.
1319 (regcache_collect): New function.
1320 * regcache.h (register_buffer): Delete declaration.
1321 (regcache_collect): Declare.
1322 * remote.c (store_register_using_P): Rewrite using
1323 regcache_collect.
1324 (remote_store_registers): Ditto.
1325 * go32-nat.c (store_register): Ditto.
1326
1327 2001-11-14 Andrew Cagney <ac131313@redhat.com>
1328
1329 * remote.c (struct remote_state): Declare.
1330 (get_remote_state): New function.
1331 (init_remote_state): New function.
1332 (remote_gdbarch_data_handle): New global.
1333 (build_remote_packet_sizes): Delete function, moved to
1334 init_remote_state.
1335 (register_remote_packet_sizes): Delete function.
1336 (actual_register_packet_size, remote_packet_size): Moved to
1337 ``struct remote_state''.
1338 (PBUFSIZE): Delete. Replaced by rs->remote_packet_size.
1339 (free_remote_state): New function.
1340 (get_memory_packet_size, get_memory_read_packet_size)
1341 (set_thread, remote_unpack_thread_info_response)
1342 (remote_get_threadinfo, parse_threadlist_response)
1343 (remote_get_threadlist, remote_current_thread)
1344 (remote_threads_info, remote_threads_extra_info)
1345 (extended_remote_restart, get_offsets)
1346 (get_offsets, remote_check_symbols, remote_open_1)
1347 (remote_async_open_1, remote_detach, remote_async_detach)
1348 (remote_resume, remote_async_resume, remote_wait)
1349 (remote_async_wait, remote_fetch_registers)
1350 (store_register_using_P, remote_store_registers)
1351 (check_binary_download, putpkt_binary)
1352 (remote_insert_breakpoint, remote_remove_breakpoint)
1353 (remote_insert_watchpoint, remote_remove_watchpoint)
1354 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1355 (compare_sections_command, remote_query)
1356 (remote_rcmd, remote_rcmd, packet_command)
1357 (remote_info_process): Update.
1358
1359 2001-11-14 Andrew Cagney <ac131313@redhat.com>
1360
1361 * remote.c: Include "gdb_assert.h".
1362 (tty_input): Wire buffer to 400 bytes.
1363 (readsocket): Check tty_input doesn't overflow.
1364 (build_remote_gdbarch_data, _initialize_remote): Don't multi-arch
1365 tty_input.
1366
1367 2001-11-14 Michael Snyder <msnyder@redhat.com>
1368
1369 * d10v-tdep.c (d10v_pointer_to_address): Use new type flag
1370 TYPE_FLAG_CODE_SPACE to recognize a pointer that has been cast
1371 into the instruction address space.
1372 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
1373
1374 2001-11-14 Michael Snyder <msnyder@redhat.com>
1375 Add address space identifiers to expression language for types.
1376 * c-exp.y (space_identifier, cv_with_space_id,
1377 const_or_volatile_or_space_identifier_noopt,
1378 const_or_volatile_or_space_identifier): New terminals.
1379 (ptype): Accept const_or_volatile_or_space_identifier.
1380 (typebase): Accept const_or_volatile_or_space_identifier.
1381 * c-typeprint.c (c_type_print_cv_qualifier): Rename to
1382 c_type_print_modifier. Handle address space modified types.
1383 * gdbtypes.h (TYPE_FLAG_CODE_SPACE, TYPE_FLAG_DATA_SPACE):
1384 New type flags.
1385 (struct type): Add new field as_type for addr-space qualified types.
1386 (TYPE_AS_TYPE): New macro, retrieves the chain of types that are
1387 identical to this one except for address-space qualification.
1388 * gdbtypes.c (alloc_type): Initialize new field 'as_type'.
1389 (address_space_name_to_int): New function.
1390 (address_space_int_to_name): New function.
1391 (make_type_with_address_space): New function.
1392 (make_cv_type): Handle as_type field of new struct type object.
1393 * parse.c (check_type_stack_depth): New function.
1394 (push_type_address_space): New function.
1395 (follow_types): Handle types with address-space qualifier.
1396 * parser-defs.h (enum type_pieces): Add enum tp_space_identifier.
1397
1398 2001-11-14 Jim Blandy <jimb@redhat.com>
1399
1400 * s390-tdep.c (s390_pop_frame_regular): On the S/390, the frame
1401 pointer and the SP are often the same, so we can't pop the frame
1402 by setting the SP to the FP; we need to get the old SP from
1403 saved_regs.
1404
1405 * s390-tdep.c (s390_extract_return_value): Returned `float' values
1406 can simply be copied bitwise from the registers into the value
1407 object's buffer.
1408
1409 * s390-tdep.c (s390_get_frame_info): Initialize SP's element of
1410 the frame's saved_regs array correctly.
1411
1412 * symfile.c (simple_read_overlay_table): Make sure we can find
1413 both `_novlys' and `_ovly_table' before we try anything else;
1414 print a helpful error message.
1415 (simple_overlay_update): No need to print error message here.
1416
1417 2001-11-14 Michael Snyder <msnyder@redhat.com>
1418
1419 * Makefile.in (doublest.o): Add dependency on gdbtypes.h.
1420
1421 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1422
1423 * arm-tdep.c (arm_register_type): New function.
1424 (arm_register_convertible): Delete.
1425 (arm_register_convert_to_virtual): Delete.
1426 (arm_register_convert_to_raw): Delete.
1427 * config/arm/tm-arm.h (REGISTER_CONVERTIBLE): Delete.
1428 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1429 (REGISTER_CONVERT_TO_RAW): Delete.
1430 (REGISTER_VIRTUAL_TYPE): Redefine as call to arm_register_type.
1431 (arm_register_type): Declare.
1432
1433 2001-11-13 Elena Zannoni <ezannoni@redhat.com>
1434
1435 From Andrew Cagney <cagney@redhat.com>:
1436 * gdbtypes.h (builtin_type_int128, builtin_type_uint128): Declare.
1437 * gdbtypes.c (_initialize_gdbtypes, build_gdbtypes): Initialize
1438 new builtin types.
1439
1440 2001-11-13 Jim Blandy <jimb@redhat.com>
1441
1442 * s390-tdep.c: Rewrite inferior function call code. This may
1443 break zSeries support; that should be fixed soon.
1444 #include "gdb_assert.h".
1445 (is_integer_like, is_pointer_like, is_simple_arg,
1446 pass_by_copy_ref, extend_simple_arg, is_double_arg, round_up,
1447 round_down, alignment_of): New functions.
1448 (s390_push_arguments): Rewritten to handle passing large arguments
1449 by value, and to make more readable.
1450
1451 * s390-tdep.c (s390_pop_frame): Call generic_pop_current_frame, to
1452 interact correctly with generic dummy frames.
1453 (s390_pop_frame_regular): Move the guts of the frame-popping code
1454 to here, to be called by generic_pop_current_frame. Use the
1455 frame's saved_regs array; this works for `return' as well as
1456 inferior function calls.
1457
1458 * s390-tdep.c (s390_gdbarch_init): Register the function
1459 `standard_coerce_float_to_double', since GCC for the S/390 follows
1460 the standard rules for passing floats.
1461
1462 * valops.c (default_coerce_float_to_double,
1463 standard_coerce_float_to_double): Doc fixes.
1464
1465 Patch from Peter Schauer:
1466
1467 * symtab.c (find_pc_sect_line): If we can't find the function
1468 containing PC, we certainly won't have line number information for
1469 that location, so return zero immediately.
1470
1471 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1472
1473 * config/i960/tm-nindy960.h (REGISTER_CONVERTIBLE)
1474 (REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Delete
1475 undef.
1476 * i960-tdep.c (i960_register_type): New function.
1477 * config/i960/tm-i960.h (REGISTER_CONVERTIBLE): Delete.
1478 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1479 (REGISTER_CONVERT_TO_RAW): Delete.
1480 (REGISTER_VIRTUAL_TYPE): Update. Call i960_register_type.
1481
1482 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1483
1484 * m88k-tdep.c (m88k_register_type): New function.
1485 * config/m88k/tm-m88k.h (REGISTER_CONVERTIBLE): Delete.
1486 (REGISTER_CONVERT_TO_VIRTUAL): Delete.
1487 (REGISTER_CONVERT_TO_RAW): Delete.
1488 (m88k_register_type): Declare.
1489 (REGISTER_VIRTUAL_TYPE): Update. Call m88k_register_type.
1490
1491 2001-11-11 Mark Kettenis <kettenis@elgar.my.domain>
1492
1493 * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
1494 * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
1495 * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
1496 (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
1497
1498 2001-11-12 Jim Blandy <jimb@redhat.com>
1499
1500 Patch from Andreas Schwab <schwab@suse.de>:
1501 * eval.c (evaluate_subexp_standard): Fix memory leak: use alloca
1502 instead of xmalloc.
1503
1504 2001-11-12 Jim Blandy <jimb@redhat.com>
1505
1506 * corefile.c (write_memory_unsigned_integer,
1507 write_memory_signed_integer): New functions.
1508 (write_memory): Move to be with other write_memory_* functions.
1509 * gdbcore.h (write_memory_unsigned_integer,
1510 write_memory_signed_integer): New declarations.
1511
1512 2001-11-11 Geoffrey Keating <geoffk@redhat.com>
1513
1514 * dwarf2read.c (dwarf_decode_lines): Properly deal with
1515 unknown standard opcodes.
1516
1517 2001-11-11 Andrew Cagney <ac131313@redhat.com>
1518
1519 * README (alpha-dec-osf5.1): Mention -DUSE_LDR_ROUTINES.
1520 (sparcv9-sun-solars2.8): Mention problem with 64 bit GCC 3.0.x.
1521 (i586-sco-sysv5uw7.1.1): Mention problem with threads.
1522
1523 2001-11-11 Andrew Cagney <ac131313@redhat.com>
1524
1525 From Mark Kettenis <kettenis@gnu.org>:
1526 * breakpoint.c (breakpoint_re_set_one): Don't discard SHLIB
1527 breakpoints when they fail.
1528
1529 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1530
1531 * printcmd.c, valprint.c, language.c, linespec.c, infcmd.c,
1532 gnu-nat.c, findvar.c, expprint.c, typeprint.c, stack.c, top.c:
1533 Replace value_ptr with struct value.
1534
1535 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1536
1537 * c-valprint.c, ch-lang.c, ch-valprint.c, cp-valprint.c,
1538 p-valprint.c, scm-exp.c, scm-lang.c, scm-valprint.c: Replace
1539 value_ptr with struct value.
1540
1541 2001-11-10 Andrew Cagney <ac131313@redhat.com>
1542
1543 * eval.c: Replace most occurances of value_ptr with struct value.
1544
1545 2001-11-09 Jim Blandy <jimb@redhat.com>
1546
1547 * s390-tdep.c: Don't use a call dummy.
1548 (s390_fix_call_dummy, s390_pc_in_call_dummy): Delete.
1549 (s390_push_return_address): Put the address of the inferior call
1550 breakpoint in r14.
1551 (s390_gdbarch_init):
1552 - Provide trivial definition of s390_call_dummy_words; register it
1553 with the gdbarch appropriately.
1554 - Delete S390x_call_dummy_words.
1555 - Gather inferior-call-related settings into a group.
1556 - Use generic dummy frames.
1557 - Put the inferior call breakpoint at the entry point.
1558 - Use generic gdbarch methods: pc_in_call_dummy_at_entry_point,
1559 generic_push_dummy_frame, generic_fix_call_dummy.
1560 - There is a call dummy breakpoint offset; it's zero.
1561
1562 * s390-tdep.c: (s390_push_arguments): Write a back chain pointer
1563 into the dummy frame, to help us get backtraces.
1564
1565 * values.c (value_as_address): If VAL is a function or method,
1566 just return its address; don't let COERCE_ARRAY convert its
1567 address to a pointer, and then have unpack_long convert it back to
1568 an address.
1569
1570 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1571
1572 * p-lang.c (is_pascal_string_type): New function to determine if a
1573 type is a string type.
1574 * p-lang.h: Add prototype for is_pascal_string_type.
1575 * p-valprint.c (pascal_val_print) : Use is_pascal_string_type function
1576 to display strings nicely.
1577
1578 2001-11-06 Pierre Muller <muller@ics.u-strasbg.fr>
1579
1580 * p-exp.y (yylex): Only change case of expression if symbol is found.
1581 Also check for GPC standard name form.
1582
1583 2001-11-08 Andrew Cagney <ac131313@redhat.com>
1584
1585 * gdb_indent.sh: New file.
1586
1587 2001-11-08 Jim Blandy <jimb@redhat.com>
1588
1589 * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
1590 got_load_len, to placate compiler.
1591
1592 2001-11-08 Mark Kettenis <kettenis@gnu.org>
1593
1594 * i386-tdep.c (i386_gdbarch_init): Fix typo.
1595
1596 2001-11-08 Jim Blandy <jimb@redhat.com>
1597
1598 * s390-tdep.c (s390_gdbarch_init): Use func_frame_chain_valid, not
1599 file_frame_chain_valid.
1600
1601 * s390-tdep.c (s390_get_frame_info): If the prologue loads r12
1602 from the constant pool, but doesn't add in the constant pool's
1603 address to it, then this function probably isn't using r12 as a
1604 GOT pointer, and that load probably wasn't part of the prologue.
1605
1606 * s390-tdep.c (s390_gdbarch_init): Use the default
1607 prepare_to_proceed function established by config/nm-linux.h;
1608 don't try to set it to linuxthreads_prepare_to_proceed.
1609
1610 Wed Nov 7 20:38:14 2001 Andrew Cagney <cagney@redhat.com>
1611
1612 * i386-tdep.c: Include "i386-tdep.h".
1613 (XMALLOC): Define.
1614 (i386_gdbarch_init): New function.
1615 (_initialize_i386_tdep): Register bfd_arch_i386.
1616 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Define as
1617 GDB_MULTI_ARCH_PARTIAL.
1618 * i386-tdep.h: When partially multi-arch, conditionally define
1619 all macros.
1620
1621 Wed Nov 7 20:45:32 2001 Andrew Cagney <cagney@redhat.com>
1622
1623 * i386-tdep.c (set_disassembly_flavor): Delete function.
1624 (set_disassembly_flavor_sfunc): Delete function.
1625
1626 2001-11-07 Elena Zannoni <ezannoni@redhat.com>
1627
1628 * dbxread.c (set_namestring): New function, replacing the
1629 SET_NAMESTRING macro.
1630 (SET_NAMESTRING, CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE,
1631 CUR_SYMBOL_STRX, DBXREAD_ONLY, START_PSYMTAB, END_PSYMTAB): Delete
1632 definitions.
1633 (read_dbx_symtab): Don't include partial-stab.h any more. Don't
1634 reuse code in partial-stab.h, include the code directly, instead.
1635
1636 * Makefile.in (dbxread.o): Remove dependency on partial-stab.h.
1637 (HFILES_NO_SRCDIR): Remove partial-stab.h.
1638
1639 * partial-stab.h: Remove file.
1640
1641 2001-11-07 Andrew Cagney <ac131313@redhat.com>
1642
1643 * gdbarch.sh: For multi-arch functions, check there is a
1644 predefault and use it as the static default.
1645 * gdbarch.c: Re-generate.
1646
1647 2001-11-08 Mark Kettenis <kettenis@gnu.org>
1648
1649 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Define in
1650 terms of NUM_GREGS, NUM_FREGS and NUM_SSE_REGS instead of
1651 hardcoding the register number.
1652
1653 2001-11-07 Andrew Cagney <ac131313@redhat.com>
1654
1655 * gdbarch.sh (USE_STRUCT_CONVENTION): Default to
1656 generic_use_struct_convention.
1657 * gdbarch.h, gdbarch.c: Regenerate.
1658 * values.c (USE_STRUCT_CONVENTION): Delete definition, moved to
1659 gdbarch.h.
1660
1661 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1662
1663 * gdbarch.sh (PC_IN_CALL_DUMMY): Require a value.
1664 * gdbarch.c: Regenerate.
1665
1666 2001-11-06 Fred Fish <fnf@redhat.com>
1667
1668 * complaints.c (info_verbose): Remove unneeded decl, is in defs.h.
1669 * dbxread.c: Ditto
1670 * dwarf2read.c: Ditto.
1671 * dwarfread.c: Ditto.
1672 * exec.c: Ditto.
1673 * hpread.c: Ditto.
1674 * hpread.h: Ditto.
1675 * mdebugread.c: Ditto.
1676 * os9kread.c: Ditto.
1677 * stack.c: Ditto.
1678 * symfile.c: Ditto.
1679 * tracepoint.c: Ditto.
1680
1681 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1682
1683 * MAINTAINERS: Update Andrew Cagney's responsibilities. Mention
1684 David Taylor and Nick Duffek in past maintainers.
1685
1686 2001-11-06 Elena Zannoni <ezannoni@redhat.com>
1687
1688 * mdebugread.c (CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB,
1689 END_PSYMTAB, SET_NAMESTRING, HANDLE_RBRAC): Delete definitions.
1690 (parse_partial_symbols): Don't include partial-stab.h any
1691 more. Don't reuse code in partial-stab.h, include the code
1692 directly, instead. Simplify code from partial-stab.h eliminating
1693 ifdef DBXREAD_ONLY code.
1694
1695 * Makefile.in (mdebugread.o): Remove dependency on partial-stab.h.
1696
1697 2001-11-06 Jim Blandy <jimb@redhat.com>
1698
1699 * s390-nat.c: #include "regcache.h", to get declaration for
1700 `supply_register'. (The last change already added the dependency
1701 of s390-nat.o on regcache.h. Oops.)
1702
1703 * Makefile.in (ALLDEPFILES): Add s390-tdep.c and s390-nat.c.
1704 (s390-tdep.o, s390-nat.o): New rules.
1705
1706 * s390-nat.c (s390_register_u_addr): Pass proper arguments to
1707 internal_error.
1708
1709 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1710
1711 * gdbarch.sh (CALL_DUMMY_LOCATION): Require a value.
1712 * gdbarch.c: Regenerate.
1713
1714 2001-11-06 Andrew Cagney <ac131313@redhat.com>
1715
1716 * blockframe.c (get_prev_frame): Replace #ifdef
1717 INIT_EXTRA_FRAME_INFO with run-time test.
1718
1719 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1720
1721 * gdbarch.sh (push_return_address): Change to a function with
1722 predicate.
1723 * gdbarch.h, gdbarch.c: Re-generate.
1724 * valops.c (hand_function_call): Replace #ifdef
1725 PUSH_RETURN_ADDRESS with run-time test of PUSH_RETURN_ADDRESS_P.
1726
1727 2001-11-06 Corinna Vinschen <vinschen@redhat.com>
1728
1729 * arch-utils.c (generic_in_function_epilogue_p): New function.
1730 * arch-utils.h (generic_in_function_epilogue_p): Declare extern.
1731 * breakpoint.c (watchpoint_check): Add test whether the pc is
1732 currently in the epilogue of a function.
1733 * gdbarch.c: Autogenerated from gdbarch.sh.
1734 * gdbarch.h: Ditto.
1735 * gdbarch.sh (function_list): Add `in_function_epilogue_p' definition.
1736
1737 2001-11-05 Jim Blandy <jimb@redhat.com>
1738
1739 * config/s390/s390.mh (NATDEPFILES): Don't split this across
1740 several lines with backslashes; the `sed' command in
1741 configure.in's AC_OUTPUT clause that comments out the NATDEPFILES
1742 assignment doesn't handle lines extended with backslashes.
1743
1744 * configure.in (AC_OUTPUT): Handle assignments to NATDEPFILES
1745 using `+=' as well as `='.
1746 * configure: Regenerated.
1747
1748 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1749
1750 * gdbarch.sh (init_extra_frame_info): Change to a function with
1751 predicate.
1752 * gdbarch.h, gdbarch.c: Re-generate.
1753 * blockframe.c (create_new_frame): Replace #ifdef
1754 INIT_EXTRA_FRAME_INFO with run-time test of
1755 INIT_EXTRA_FRAME_INFO_P.
1756
1757 2001-11-05 Andrew Cagney <ac131313@redhat.com>
1758
1759 * gdbarch.sh (verify_gdbarch): Use a mem_file to accumulate all
1760 error messages. Print in a single batch.
1761 * gdbarch.c: Re-generate.
1762
1763 2001-11-04 Mark Kettenis <kettenis@gnu.org>
1764
1765 * i386-linux-nat.c (GETREGS_SUPPLIES, supply_gregset,
1766 fill_gregset): Add support for "orig_eax" register.
1767
1768 Add support for "orig_eax" pseudo register on Linux/x86.
1769 * i386-linux-tdep.c: Include "inferior.h".
1770 (i386_linux_register_name, i386_linux_register_byte,
1771 i386_linux_register_raw_size): New functions.
1772 (i386_linux_write_pc): New function.
1773 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): New define.
1774 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
1775 REGISTER_BYTE, REGISTER_RAW_SIZE): Define to deal with additional
1776 register.
1777 (i386_linux_register_name, i386_linux_register_byte,
1778 i386_linux_register_raw_size): New prototypes.
1779 (TARGET_WRITE_PC): New define.
1780 (i386_linux_write_pc): New prototype.
1781
1782 * i386-tdep.c (i386_register_offset): Renamed from
1783 i386_register_byte. Made static.
1784 (i386_register_size): Renamed from i386_register_raw_size. Made
1785 static.
1786 (i386_register_virtual_size): Removed.
1787 (i386_register_byte, i386_register_raw_size,
1788 i386_register_virtual_size): New functions.
1789 (_initialize_i386_tdep): Initialize i386_register_offset instead
1790 of i386_register_byte. Remove code to initialize
1791 i386_register_virtual_size.
1792 * config/i386/tm-i386.h (REGISTER_BYTE): Redefine to use
1793 i386_register_byte function.
1794 (REGISTER_RAW_SIZE): Redefine to use i386_register_raw_size
1795 function.
1796 (REGISTER_VIRTUAL_SIZE): Redefine to use
1797 i386_register_virtual_size function.
1798 (i386_register_byte, i386_register_raw_size,
1799 i386_register_virtual_size): New functions.
1800
1801 * Makefile.in (ALLDEPFILES): Add i387-nat.c.
1802 (i387-nat.o): Add dependencies.
1803
1804 2001-11-02 Andrew Cagney <ac131313@redhat.com>
1805
1806 * README: Mention problem with alpha-dec-osf5.1.
1807
1808 2001-11-02 Andrew Cagney <ac131313@redhat.com>
1809
1810 * utils.c (internal_verror): Restore calls to abort().
1811 Fix PR gdb/219.
1812
1813 2001-11-02 Michael Chastain <mec@shout.net>
1814
1815 * MAINTAINERS: Update my entry.
1816
1817 2001-11-01 Michael Snyder <msnyder@redhat.com>
1818
1819 * symtab.c (operator_chars): Allow '*' and '[' to be quoted in
1820 operator names, to avoid regexp expansion.
1821 (search_symbols): Alloca buffer is too small, may get clobbered.
1822
1823 2001-11-01 Fred Fish <fnf@redhat.com>
1824
1825 * coff-solib.c (coff_solib_add): Add new readsyms arg.
1826 * irix5-nat.c (solib_add): Ditto.
1827 * osfsolib.c (solib_add): Ditto.
1828 * pa64solib.c (pa64_solib_add): Ditto.
1829 * pa64solib.c (add_to_solist): Ditto.
1830 * pa64solib.c (read_dld_descriptor): Ditto.
1831 * solib.c (solib_add): Ditto.
1832 * somsolib.c (som_solib_add): Ditto.
1833 * win32-nat.c (child_solib_add): Ditto.
1834 * xcoffsolib.c (solib_add): Ditto.
1835
1836 * coff-solib.h (coff_solib_add): Add new readsyms arg to prototype.
1837 * pa64solib.c (add_to_solist): Ditto.
1838 * pa64solib.c (read_dld_descriptor): Ditto.
1839 * pa64solib.h (pa64_solib_add): Ditto.
1840 * solib.h (solib_add): Ditto.
1841 * somsolib.h (som_solib_add): Ditto.
1842 * config/i386/tm-cygwin.h (child_solib_add): Ditto.
1843
1844 * coff-solib.c (coff_solib_add): If readsyms is zero don't read
1845 symbols but do any other needed work for shared libs.
1846 * irix5-nat.c: Ditto.
1847 * osfsolib.c (solib_add): Ditto.
1848 * solib.c (solib_add): Ditto.
1849 * win32-nat.c (child_solib_add): Ditto.
1850 * xcoffsolib.c (solib_add): Ditto.
1851
1852 * irix5-nat.c (sharedlibrary_command): Pass 1 as readsyms to
1853 solib_add to force reading of shared library symbols.
1854 * osfsolib.c (sharedlibrary_command;): Ditto.
1855 * pa64solib.c (pa64_solib_sharedlibrary_command): Ditto.
1856 * solib.c (sharedlibrary_command): Ditto.
1857 * somsolib.c (som_solib_sharedlibrary_command): Ditto.
1858 * xcoffsolib.c (sharedlibrary_command): Ditto.
1859
1860 * coff-solib.c (coff_solib_create_inferior_hook): Call solib_add
1861 unconditionally with auto_solib_add.
1862 * irix5-nat.c (solib_create_inferior_hook): Ditto.
1863 * osfsolib.c (solib_create_inferior_hook): Ditto.
1864 * solib.c (solib_create_inferior_hook): Ditto.
1865 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1866 * solib-svr4.c (enable_break): Ditto.
1867 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1868
1869 * corelow.c (solib_add_stub): Add auto_solib_add to args passed
1870 via SOLIB_ADD.
1871 * sol-thread.c (sol_thread_attach): Ditto.
1872 * config/rs6000/nm-rs6000.h (SOLIB_ADD): Ditto.
1873
1874 * infcmd.c (attach_command): Remove auto_solib_add decl.
1875 Call SOLIB_ADD directly with auto_solib_add.
1876 * infrun.c (handle_inferior_event): Ditto.
1877
1878 * coff-solib.h (SOLIB_ADD): Add readsyms arg.
1879 * pa64solib.h (SOLIB_ADD): Ditto.
1880 * solib.h (SOLIB_ADD): Ditto.
1881 * somsolib.h (SOLIB_ADD): Ditto.
1882 * config/i386/tm-cygwin.h (SOLIB_ADD): Ditto.
1883
1884 * fork-child.c (clone_and_follow_inferior): Remove unused
1885 auto_solib_add decl.
1886
1887 * pa64solib.c (pa64_solib_add): Call add_to_solist with readsyms.
1888 (read_dld_descriptor): Ditto.
1889 (pa64_solib_add): Call read_dld_descriptor with readsyms.
1890 (pa64_solib_in_dynamic_linker): Ditto.
1891
1892 * corelow.c (symfile.h): Need this for auto_solib_add declaration.
1893 * sol-thread.c (symfile.h): Ditto.
1894
1895 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1896
1897 * s390-nat.c (s390_remove_watchpoint): Use xfree.
1898 (s390_insert_watchpoint): Use xmalloc.
1899
1900 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1901
1902 * varobj.c: Replace value_ptr with ``struct value *''.
1903
1904 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1905
1906 * varobj.c: Re-indent.
1907
1908 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1909
1910 * x86-64-tdep.c (value_push, x86_64_push_arguments): Replace
1911 ``value_ptr'' with ``struct value *''.
1912 * s390-tdep.c (s390_push_arguments): Ditto.
1913
1914 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1915
1916 * ppc-tdep.h: Add #ifndef wrapper. Replace value_ptr with
1917 ``struct value *''.
1918 (struct frame_info, struct value): Add opaque declarations.
1919
1920 2001-10-31 Corinna Vinschen <vinschen@redhat.com>
1921
1922 * arch-utils.c (generic_in_solib_call_trampoline): New function.
1923 * arch-utils.h (generic_in_solib_call_trampoline): Extern declaration.
1924 * gdbarch.c: Regenerated from gdbarch.sh.
1925 * gdbarch.h: Ditto.
1926 * gdbarch.sh (function_list): Add `IN_SOLIB_CALL_TRAMPOLINE' definition.
1927 * infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Remove macro.
1928
1929 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1930
1931 From DJ Barrow.
1932 * s390-tdep.c: (s390_gdbarch_init): Don't initialize
1933 find_solib_trampoline_target.
1934
1935 2001-10-31 Andrew Cagney <ac131313@redhat.com>
1936
1937 * remote-vx.c (net_wait): Fix typo from PIDGET change.
1938
1939 2001-10-31 Mark Kettenis <kettenis@gnu.org>
1940
1941 * config/i386/tm-i386.h (REGISTER_NAMES): Remove.
1942 (REGISTER_NAME): New define.
1943 (i386_register_name): New prototype.
1944 * i386-tdep.c (i386_register_names): New variable.
1945 (i386_register_name): New function.
1946 * config/i386/tm-i386os9k.h, config/i386/tm-ptx.h,
1947 config/i386/tm-symmetry.h: Undefine REGISTER_NAME instead of
1948 REGISTER_NAMES.
1949
1950 2001-10-31 Christopher Faylor <cgf@redhat.com>
1951
1952 * win32-nat.c (register_loaded_dll): Attempt to ensure that the case of
1953 the loaded DLL matches the on-disk case since the debugging API does
1954 not seem to ensure this. Calculate max name length here.
1955 (handle_load_dll): Move max name length calculation to
1956 register_loaded_dll.
1957
1958 2001-10-31 Daniel Jacobowitz <drow@mvista.com>
1959
1960 * arm-linux-nat.c: Include <asm/ptrace.h> explicitly.
1961
1962 2001-10-30 Keith Seitz <keiths@redhat.com>
1963
1964 * wrapper.h (gdb_value_struct_elt): New function.
1965 * wrapper.c (gdb_value_struct_elt): Ditto.
1966 (do_captured_value_struct_elt): Ditto.
1967
1968 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1969
1970 * README, NEWS: Update for 5.1.
1971
1972 2001-10-30 Andrew Cagney <ac131313@redhat.com>
1973
1974 * configure.in (WERROR_CFLAGS): Use AC_TRY_COMPILE to test the
1975 -W... flags.
1976 * configure: Re-generate.
1977
1978 2001-10-30 Fred Fish <fnf@redhat.com>
1979
1980 * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
1981 * pa64solib.c (add_to_solist): Ditto.
1982 * win32-nat.c (_initialize_inftarg): Remove unnecessary
1983 initialization of auto_solib_add, it defaults to 1.
1984
1985 2001-10-27 Fred Fish <fnf@redhat.com>
1986
1987 * symfile.c (auto_solib_add): Update comment to note that
1988 this variable is now just used as a boolean to control shlib
1989 autoloading, and clarify when it is used.
1990 * symfile.h (auto_solib_add): Ditto.
1991
1992 * symfile.c (auto_solib_limit): New variable that holds the
1993 autoloading threshold instead of overloading auto_solib_add.
1994 * symfile.h (auto_solib_limit): Ditto.
1995
1996 * irix5-nat.c (_initialize_solib): Change auto-solib-add
1997 variable from var_zinteger to var_boolean and update help.
1998 * osfsolib.c (_initialize_solib): Ditto.
1999 * pa64solib.c (_initialize_pa64_solib): Ditto.
2000 * solib.c (_initialize_solib): Ditto.
2001 * somsolib.c (_initialize_som_solib): Ditto.
2002 * xcoffsolib.c (_initialize_solib): Ditto.
2003
2004 * pa64solib.c (pa64_solib_total_st_size): Update comment to
2005 note that the new auto_solib_limit variable is used instead
2006 of overloading auto_solib_add variable.
2007 (_initialize_pa64_solib): Ditto.
2008 * somsolib.c (som_solib_total_st_size): Ditto.
2009 (_initialize_som_solib): Ditto.
2010
2011 * pa64solib.c (_initialize_pa64_solib): Add new set/show
2012 commands for auto-solib-limit variable.
2013 * somsolib.c (_initialize_som_solib): Ditto
2014
2015 * pa64solib.c (add_to_solist): Check that auto_solib_add is
2016 set and use auto_solib_limit as the threshold size instead
2017 of auto_solib_add.
2018 * somsolib.c (som_solib_add): Ditto, and also change warning
2019 text about size threshold exceeded.
2020
2021 2001-10-21 Mark Kettenis <kettenis@gnu.org>
2022
2023 * config/i386/tm-i386v.h: Don't include "regcache.h".
2024 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, FRAME_CHAIN,
2025 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_NUM_ARGS):
2026 Remove macros. The versions from "tm-i386.h" should work fine
2027 (and in most cases even better).
2028
2029 2001-10-30 Mark Kettenis <kettenis@gnu.org>
2030
2031 * i386-tdep.c (i386_extract_return_value): Use
2032 convert_typed_floating to extract floating-point value from
2033 register buffer.
2034 (i386_store_return_value): Use convert_typed_floating to store
2035 floating-point return balue in register buffer
2036 (i386_register_virtual_type): Change type of floating-point
2037 registers to builtin_type_i387_ext.
2038 (i386_register_convert_to_virtual): Use convert_typed_floating to
2039 do the conversion.
2040 (i386_register_convert_to_raw): Likewise.
2041
2042 2001-10-29 Mark Kettenis <kettenis@gnu.org>
2043
2044 * doublest.h (convert_typed_floating): New prototype.
2045 * doublest.c (convert_typed_floating): New function.
2046
2047 2001-10-28 Mark Kettenis <kettenis@gnu.org>
2048
2049 * doublest.c: Improve comments a bit.
2050 (floatformat_from_length): New function.
2051 (NAN): Define to 0.0 if not already defined.
2052 (extract_floating): Rewrite to use floatformat_from_length. Warn
2053 instead of error if LEN doesn't match a known floating-point type,
2054 and return NaN (or 0.0 if NaN isn't available) in that case.
2055 (store_floating): Likewise, but zero out the target byte-stream if
2056 LEN doesn't match a known floating-point type.
2057 (extract_typed_floating): Reformat a bit.
2058 (store_typed_floating): Reformat a bit. Add comment about zeroing
2059 out padding in the target buffer.
2060 * doublest.h (extract_floating, store_floating): Fix comment about
2061 deprecation of these functions. Add parameter names to prototypes.
2062
2063 2001-10-28 Mark Kettenis <kettenis@gnu.org>
2064
2065 * i387-tdep.c (print_i387_value): Use extract_typed_floating to
2066 convert RAW to a DOUBLEST instead of extract_floating.
2067
2068 * gdbtypes.c (_initialize_gdbtypes): Set floating-point type for
2069 builtin_type_i387_ext to floatformat_i387_ext.
2070
2071 2001-10-24 Daniel Jacobowitz <drow@mvista.com>
2072
2073 * arm-linux-nat.c (fill_gregset): Do not check register_valid[].
2074 (fill_fpregset): Likewise.
2075
2076 2001-10-26 Orjan Friberg <orjanf@axis.com>
2077
2078 * cris-tdep.c (constraint): Loop through the whole cris_spec_regs
2079 struct, not just the NUM_SPECREGS first entries.
2080 (bdap_prefix): Read PC before autoincrement.
2081
2082 2001-10-24 Corinna Vinschen <vinschen@redhat.com>
2083
2084 * win32-nat.c (DebugSetProcessKillOnExit): New static function
2085 pointer to Windows' DebugSetProcessKillOnExit() function.
2086 (DebugActiveProcessStop): Ditto for DebugActiveProcessStop().
2087 (has_detach_ability): New function.
2088 (child_attach): If system has detach ability, enable it.
2089 (child_detach): If system has detach ability, actually
2090 detach from process.
2091 Change tty output to Linux format.
2092
2093 2001-10-23 Jim Blandy <jimb@redhat.com>
2094
2095 Isolate STABS readers' use of the `textlow' and `texthigh' fields
2096 of `struct partial_symtab' to only a few locations. This change
2097 is not supposed to affect the way the values are computed, only
2098 where they live.
2099
2100 * dbxread.c (struct symloc): Add `textlow' and `texthigh' fields
2101 to the reader-specific structure.
2102 * mdebugread.c (struct symloc): Same.
2103 * dbxread.c (TEXTLOW, TEXTHIGH): New accessor macros.
2104 * mdebugread.c (TEXTLOW, TEXTHIGH): Same.
2105 * dbxread.c (dbx_symfile_read): After we've built all our partial
2106 symbol tables, set each partial symtab's `textlow' and `texthigh'
2107 fields from our reader-specific structure.
2108 * mdebugread.c (mdebug_build_psymtabs): Same.
2109 * dbxread.c (start_psymtab): Initialize the reader-specific
2110 structure's `textlow' and `texthigh' from the new psymtab's.
2111 * mdebugread.c (parse_partial_symbols, new_psymtab): Same.
2112 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab): Use
2113 the reader-specific `textlow' and `texthigh', not the generic
2114 psymtab fields.
2115 * mdebugread.c (parse_lines, parse_partial_symbols,
2116 psymtab_to_symtab_1): Same.
2117 * partial-stab.h: Same.
2118
2119 Tue Oct 23 18:59:42 2001 Andrew Cagney <cagney@redhat.com>
2120
2121 * hp-psymtab-read.c, hppah-nat.c, hppa-tdep.c: Fix -Wformat
2122 problems.
2123
2124 Tue Oct 23 14:16:10 2001 Andrew Cagney <cagney@redhat.com>
2125
2126 * somsolib.c (som_solib_add): Use core_addr_to_host_pointer.
2127 (som_solib_desire_dynamic_linker_symbols): Compare integers with
2128 zero not NULL.
2129 * hp-psymtab-read.c (hpread_call_pxdb): Make parameter constant.
2130
2131 2001-10-21 Andrew Cagney <ac131313@redhat.com>
2132
2133 * top.c (print_gdb_version): Do not print ``(MI_OUT)''. MI
2134 interface is always enabled.
2135
2136 2001-10-21 Andrew Cagney <ac131313@redhat.com>
2137
2138 * Makefile.in: Replace top.h with $(top_h). Replace expression.h
2139 with $(expression_h). Replace command.h with $(command_h).
2140 (language_h): Define. Replace language.h with $(language_h).
2141 Replace call-cmds.h with $(call_cmds_h). Replace varobj.h with
2142 $(varobj_h).
2143 (wrapper_h, valprint_h, objfiles_h, complaints_h): Ditto.
2144 (serial_h, hpread_h, buildsym_h, stabsread_h): Ditto.
2145 (xcoffsolib_h, gdb_stabs_h, linespec_h): Ditto.
2146 (bcache_h, gdb_events_h, monitor_h): Ditto.
2147 (ser_unix_h, source_h): Ditto.
2148 (varobj_h): Update list.
2149
2150 * call-cmds.h: Add CALL_CMDS_H macro wrapper.
2151 * solist.h: Add SOLIST_H macro wrapper.
2152 * monitor.h: Add MONITOR_H macro wrapper.
2153 * typeprint.h: Add TYPEPRINT_H macro wrapper.
2154 * xcoffsolib.h: Add XCOFFSOLIB_H macro wrapper.
2155 * valprint.h: Add VALPRINT_H macro wrapper.
2156 * top.h: Add TOP_H macro wrapper.
2157
2158 2001-10-21 Andrew Cagney <ac131313@redhat.com>
2159
2160 * config/a29k/tm-vx29k.h, i386-tdep.c: Include "value.h".
2161 * arm-tdep.c, exec.c, ia64-tdep.c, infrun.c: Ditto.
2162 * ppc-linux-tdep.c, remote-es.c, remote.c: Ditto.
2163 * rs6000-tdep.c, s390-tdep.c, x86-64-tdep.c: Ditto.
2164 * Makefile.in (arm-tdep.o, exec.o, i386-tdep.o, ia64-tdep.o)
2165 (infrun.o, ppc-linux-tdep.o, remote.o, rs6000-tdep.o)
2166 (x86-64-tdep.o): Update dependencies.
2167 * gdbarch.sh [!GDB_MULTI_ARCH]: Include "value.h".
2168 * gdbarch.h, gdbarch.c: Re-generate.
2169
2170 2001-10-21 Mark Kettenis <kettenis@gnu.org>
2171
2172 * infptrace.c (child_xfer_memory): Fix a few coding standards
2173 violations.
2174
2175 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2176
2177 * config/djgpp/README: Fix a typo and tweak for GDB 5.1.
2178
2179 2001-10-20 Andrew Cagney <ac131313@redhat.com>
2180
2181 * jv-lang.h: Add #ifndef JV_LANG_H wrapper.
2182 (struct value): Add opaque declaration. Replace value_ptr with
2183 ``struct value *''.
2184 * jv-valprint.c, jv-lang.c: Replace value_ptr with equivalent
2185 struct.
2186
2187 * wrapper.h (struct value): Add opaque declaration. Replace
2188 value_ptr with ``struct value *''.
2189 * wrapper.c: Replace value_ptr with ``struct value *''.
2190 * breakpoint.h, breakpoint.c: Ditto.
2191 * cp-abi.h, hpacc-abi.c, gnu-v2-abi.c, cp-abi.c: Ditto.
2192
2193 2001-10-20 Andrew Cagney <ac131313@redhat.com>
2194
2195 * alpha-nat.c: Include <alpha/coreregs.h> instead of
2196 <machine/reg.h>.
2197 (fetch_osf_core_registers): Define core_reg_mapping in a way that
2198 works on OSF5 as well as previous OSF versions.
2199
2200 2001-10-20 Christopher Faylor <cgf@redhat.com>
2201
2202 * win32-nat.c (handle_load_dll): Avoid strlwr'ing loaded DLLs or cygwin
2203 may not be able to read them in certain situations.
2204
2205 2001-10-18 Andrew Cagney <ac131313@redhat.com>
2206
2207 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Define.
2208 * config/powerpc/linux.mt (SIM, SIM_OBS): Ditto
2209
2210 2001-10-18 Andrew Cagney <ac131313@redhat.com>
2211
2212 * README: Mention problems with HP/UX.
2213
2214 2001-10-16 Andrew Cagney <ac131313@redhat.com>
2215
2216 Based on code by John Moore <jmore@redhat.com>:
2217
2218 * utils.c (core_addr_to_string): New function for conversion of
2219 CORE_ADDR to string.
2220 (string_to_core_addr): New function to convert from string to
2221 CORE_ADDR.
2222 * defs.h: Added extern statements for the above.
2223
2224 2001-10-17 Jason Molenda (jason-cl@molenda.com)
2225
2226 * symtab.c (lookup_block_symbol): Break out of linear search
2227 if we're past the range of possible matches.
2228
2229 2001-10-16 Christopher Faylor <cgf@redhat.com>
2230
2231 * win32-nat.c (safe_symbol_file_add_stub): Improve logic for avoiding
2232 load of already loaded DLL.
2233 (register_loaded_dll): Convert loaded DLL name to "posix" format or it
2234 will confuse subsequent opening of the filename due to dos paths.
2235 (dll_symbol_command): Pass from_tty parameter to safe_symbol_file_add.
2236
2237 2001-10-15 Elena Zannoni <ezannoni@redhat.com>
2238
2239 * symtab.c (lookup_block_symbol): Update comment.
2240
2241 2001-10-15 Andrew Cagney <ac131313@redhat.com>
2242
2243 * value.h (value_as_address): Rename value_as_pointer.
2244 * eval.c, findvar.c, gnu-v2-abi.c, gnu-v3-abi.c, jv-lang.c,
2245 jv-valprint.c, printcmd.c, stack.c, top.c, valarith.c, valops.c,
2246 values.c: Update.
2247
2248 202001-10-15 Jim Ingham <jingham@inghji.apple.com>
2249
2250 * valarith.c (value_sub): Don't pass a raw type to
2251 value_from_pointer, it has to go through check_typedef first.
2252
2253 2001-10-15 Andrew Cagney <ac131313@redhat.com>
2254
2255 * gdbarch.sh (fallbackdefault): Set to one when predefault is
2256 empty.
2257 * gdbarch.h: Regenerate.
2258
2259 2001-10-15 Andrew Cagney <ac131313@redhat.com>
2260
2261 * mips-tdep.c (mips_integer_to_address): New function.
2262 (mips_gdbarch_init): Initialize pointer_to_address,
2263 address_to_pointer and integer_to_address.
2264
2265 * config/mips/tm-mips.h (POINTER_TO_ADDRESS): Delete
2266 (ADDRESS_TO_POINTER): Delete.
2267
2268 * d10v-tdep.c (d10v_integer_to_address): New function.
2269 (d10v_gdbarch_init): Initialize integer_to_address.
2270
2271 * values.c (value_as_pointer): Use INTEGER_TO_ADDRESS when
2272 available.
2273
2274 * gdbarch.sh (INTEGER_TO_ADDRESS): New predicate and function.
2275 * gdbarch.h, gdbarch.c: Regenerate.
2276
2277 2001-10-14 Mark Kettenis <kettenis@gnu.org>
2278
2279 * config/s390/nm-linux.h: Don't include <signal.h>.
2280 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2281 GET_THREAD_SIGNAL): Remove.
2282
2283 * config/nm-linux.h (struct objfile): Remove forward declaration.
2284 (linuxthreads_new_objfile): Remove prototype.
2285 (linuxthreads_pid_to_str): Remove prototype.
2286 (PREPARE_TO_PROCEED): Redefine in terms of
2287 lin_lwp_prepare_to_proceed.
2288 (struct target_waitstatus): Forward declaration.
2289 (child_wait): New prototype.
2290 (CHILD_WAIT): Define.
2291 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2292 GET_THREAD_SIGNAL): Moved here from arch-specific files.
2293 * config/alpha/nm-linux.h, config/arm/nm-linux.h,
2294 config/ia64/nm-linux.h, config/mips/nm-linux.h,
2295 config/powerpc/nm-linux.h: Don't include <signal.h>.
2296 (lin_lwp_attach_lwp, ATTACH_LWP, lin_thread_get_thread_signals,
2297 GET_THREAD_SIGNAL): Remove.
2298 * config/i386/nm-linux.h: Likewise.
2299 (struct target_waitstatus, child_wait, CHILD_WAIT): Remove.
2300 * config/m68k/linux.mh, config/sparc/linux.mh (NATDEPFILES):
2301 Remove linux-thread.o. Add proc-service.o, thread-db.o and
2302 lin-lwp.o.
2303 (LOADLIBES): New variable.
2304
2305 * sparc-nat.c (fetch_core_registers): Remove redundant prototype.
2306
2307 * proc-service.c (BUILD_LWP): Redefine in terms of ptid_build.
2308
2309 Fix attaching to cloned processes. This fixes PR gdb/61.
2310 * lin-lwp.c (struct lwp_info): Add new member `cloned'.
2311 (is_cloned) Removed.
2312 (lin_lwp_attach_lwp): Don't call stop_wait_callback. Instead call
2313 waitpid explicitly. Mark the LWP as cloned if waitpid fails and
2314 retry with __WCLONE flag.
2315 (lin_lwp_attach): Likewise. Warn if attaching to a cloned process.
2316 (detach_callback): Replace use of is_cloned with explicit check on
2317 LWP id and process id.
2318 (stop_wait_callback): Replace use of is_cloned with check if LWP
2319 is marked as cloned.
2320 [CHILD_WAIT] (child_wait): New function.
2321 (lin_lwp_wait): Replace use of is_cloned with check if LWP is
2322 marked as cloned. Mark newly detected LWPs as cloned if detected
2323 by waitpid with __WCLONE flag.
2324 (kill_wait_callback): Replace use of is_cloned with check if LWP
2325 is marked as cloned.
2326 * config/i386/nm-linux.h (struct target_waitstatus): Add forward
2327 declaration.
2328 (child_wait): Add prototype.
2329 (CHILD_WAIT): Define.
2330
2331 2001-10-13 Andrew Cagney <ac131313@redhat.com>
2332
2333 S/390 31 & 64 bit target and GNU/Linux native support.
2334 Contributed by D.J. Barrow <djbarrow@de.ibm.com> of IBM.
2335 * s390-nat.c, s390-tdep.c: New file.
2336 * config/s390/nm-linux.h, config/s390/s390.mh: New file.
2337 * config/s390/s390.mt, config/s390/s390x.mt: New file.
2338 * config/s390/tm-linux.h, config/s390/tm-s390.h: New file.
2339 * config/s390/xm-linux.h: New file.
2340 * NEWS: Update.
2341 * MAINTAINERS: Update.
2342
2343 2001-10-13 Andrew Cagney <ac131313@redhat.com>
2344
2345 From 2001-07-09 D.J. Barrow <djbarrow@de.ibm.com>:
2346 * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check
2347 CALL_DUMMY_BREAKPOINT_OFFSET_P.
2348 * gdbarch.c: Regenerate.
2349
2350 2001-10-13 Mark Kettenis <kettenis@gnu.org>
2351
2352 * thread-db.c: Fix a few formatting mistakes.
2353
2354 2001-10-12 Christopher Faylor <cgf@redhat.com>
2355
2356 * win32-nat.c (safe_symbol_file_add_stub): Properly initialize linked
2357 list pointer to beginning rather than one beyond beginning.
2358
2359 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
2360
2361 * symtab.h (struct block): (ALL_BLOCK_SYMBOLS): New macro.
2362
2363 * symtab.c (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2364 (make_symbol_completion_list): Likewise.
2365 (make_symbol_overload_list): Likewise.
2366 * buildsym.c (finish_block): Likewise.
2367 * breakpoint.c (get_catch_sals): Likewise.
2368 * mdebugread.c (mylookup_symbol): Likewise.
2369 * objfiles.c (objfile_relocate): Likewise.
2370 * printcmd.c (print_frame_args): Likewise.
2371 * stack.c (print_block_frame_locals): Likewise.
2372 (print_block_frame_labels): Likewise.
2373 (print_frame_arg_vars): Likewise.
2374 * symmisc.c (dump_symtab): Likewise.
2375 * tracepoint.c (add_local_symbols): Likewise.
2376 (scope_info): Likewise.
2377
2378 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
2379
2380 * minsyms.c (msymbol_hash): Use better hash function.
2381 (msymbol_hash_iw): Likewise. Terminate loop at '(' properly.
2382
2383 * objfiles.h: Increase MINIMAL_SYMBOL_HASH_SIZE to match modern
2384 binaries.
2385
2386 2001-10-12 Daniel Jacobowitz <drow@mvista.com>
2387
2388 * printcmd.c (print_frame_args): Move symbol iteration explicitly
2389 inside the func != NULL block.
2390
2391 2001-10-12 Fernando Nasser <fnasser@redhat.com>
2392
2393 * MAINTAINERS (Misc): Add Ian Roxborough as tcl/, tk/ and itcl/
2394 maintainer.
2395
2396 2001-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
2397
2398 * config/i386/tm-cygwin.h: Include tm-i386.h instead of tm-i386v.h.
2399 This fixes errors in "long long" handling for 'finish' and 'return'
2400 commands.
2401
2402 2001-10-12 Christopher Faylor <cgf@redhat.com>
2403
2404 * win32-nat.c (safe_symbol_file_add_stub): Avoid adding a shared
2405 library if it has already been loaded.
2406 (safe_symbol_file_add_cleanup): Don't mess with stderr or we won't see
2407 any error messages.
2408 (safe_symbol_file_add): Ditto.
2409 (solib_symbols_add): Make static. Accept 'from_tty' parameter. Pass
2410 it to safe_symbol_file_add.
2411 (core_dll_symbols_add): Accomodate extra solib_symbols_add parameter.
2412 (child_solib_add): Ditto.
2413
2414 * win32-nat.c (handle_exception): Don't print "first chance"
2415 exceptions.
2416 (get_child_debug_event): Continue from exceptions if !handle_exception.
2417
2418 2001-10-11 Tom Tromey <tromey@redhat.com>
2419
2420 * symtab.c (lookup_symtab): Removed.
2421 (lookup_symtab_1): Renamed to lookup_symtab.
2422
2423 2001-10-10 Christopher Faylor <cgf@redhat.com>
2424
2425 * win32-nat.c (get_child_debug_event): Close file handles created after
2426 process creation and DLL load.
2427 (child_create_inferior): Close unneeded process/thread handle after
2428 thread creation.
2429
2430 2001-10-10 Jim Blandy <jimb@redhat.com>
2431
2432 * mn10300-tdep.c (mn10300_analyze_prologue): Doc fixes.
2433
2434 2001-10-10 Keith Seitz <keiths@redhat.com>
2435
2436 * varobj.c (cplus_value_of_child): Deal with a failure
2437 to dereference a pointer object.
2438
2439 2001-10-08 J. Brobecker <brobecker@gnat.com>
2440
2441 * hpux-thread.c: rewrite find_active_thread() and find_tcb()
2442 to use ptid_t, instead of overloading the thread and the pid
2443 into the same 32-bit value. Make associated necessary adaptations.
2444 Also remove unused variable cached_active_thread.
2445
2446 2001-10-08 Nicholas Duffek <nsd@redhat.com>
2447
2448 * MAINTAINERS (powerpc, SCO/Unixware, Solaris/x86): Remove my
2449 entries.
2450
2451 2001-10-06 Mark Kettenis <kettenis@beast.freebsd.org>
2452
2453 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Define.
2454
2455 2001-10-04 Tom Tromey <tromey@redhat.com>
2456
2457 * main.c (enable_external_editor): Don't declare.
2458 (captured_main): Don't set enable_external_editor.
2459
2460 2001-10-02 Kevin Buettner <kevinb@redhat.com>
2461
2462 * Makefile.in (ALLDEPFILES): Add solib-svr4.c and solib-sunos.c
2463 to this list.
2464 (solib-sunos.o): Add dependencies.
2465 (solib-svr4.o): Revise dependencies.
2466 * solib-svr4.c: Remove SunOS shared library support.
2467 * solib-sunos.c: New file, created from solib-svr4.c, which still
2468 contains SunOS shared library support, but no SVR4 support.
2469
2470 * config/i386/nbsd.mh (NATDEPFILES): Remove solib-svr4.o and
2471 solib-legacy.o from this list. Add solib-sunos.o.
2472 * config/i386/sun386.mt (TDEPFILES): Likewise.
2473 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
2474 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
2475 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
2476 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
2477 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
2478 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
2479
2480 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
2481
2482 * Makefile.in (mipsread.o): Remove old dependency on partial-stab.h.
2483
2484 2001-10-01 Elena Zannoni <ezannoni@redhat.com>
2485
2486 * xcoffread.c (N_UNDF, N_ABS, N_TEXT, N_DATA, N_BSS, N_COMM, N_FN,
2487 N_EXT, N_INDR, N_SETA, N_SETT, N_SETD, N_SETB, N_SETV,
2488 CUR_SYMBOL_TYPE, CUR_SYMBOL_VALUE, START_PSYMTAB, END_PSYMTAB,
2489 SET_NAMESTRING): Delete definitions.
2490 Don't include language.h any more.
2491 Don't include partial-stab.h any more.
2492 (scan_xcoff_symtab): Don't jump through hoops to reuse code in
2493 partial-stab.h, include the code directly, instead.
2494
2495 * Makefile.in (xcoffread.o): Remove dependency on partial-stab.h.
2496
2497 2001-10-01 Andrew Cagney <ac131313@redhat.com>
2498
2499 * infcmd.c (do_registers_info): Delete code dumping large
2500 registers. Handled by val_print.
2501
2502 2001-09-30 Andrew Cagney <ac131313@redhat.com>
2503
2504 * gdbarch.sh (gdbarch_alloc): Name the new architecture
2505 ``current_gdbarch'' so that it, and not the identically named
2506 global is refered to by macros.
2507 * gdbarch.c: Regenerate.
2508
2509 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2510
2511 * cli/cli-decode.c (add_set_boolean_cmd): Define.
2512 * cli/cli-decode.h (add_set_boolean_cmd): Declare.
2513 * command.h (add_set_boolean_cmd): Ditto.
2514 * remote.c (_initialize_remote): Use add_set_boolean_cmd for "set
2515 remotebreak"
2516
2517 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2518
2519 * gdbarch.sh (gdbarch_dump): Sort output.
2520 * gdbarch.c: Regenerate.
2521
2522 2001-09-29 Andrew Cagney <ac131313@redhat.com>
2523
2524 * rs6000-tdep.c (rs6000_gdbarch_init): Don't use the previous
2525 architecture to infer the wordsize. Previous architecture may not
2526 be a PowerPC.
2527
2528 2001-09-27 J. Brobecker <brobecker@gnat.com>
2529
2530 * infttrace.c (kill_inferior): Issue a TT_PROC_EXIT request rather
2531 than a TT_PROC_STOP request to kill the inferior and its child
2532 processes. Otherwise, the inferior is not killed on HPUX 11.0.
2533 Removed the code that detaches the child processes since we just
2534 killed them.
2535
2536 2001-09-26 Andrew Cagney <ac131313@redhat.com>
2537
2538 * serial.c (serial_set_cmdlist, serial_show_cmdlist): New
2539 variables.
2540 (serial_set_cmd, serial_show_cmd): New functions.
2541 (_initialize_serial): Add "set/show serial" command.
2542
2543 2001-09-26 Andrew Cagney <ac131313@redhat.com>
2544
2545 * CONTRIBUTE: Update.
2546
2547 2001-09-26 Kevin Buettner <kevinb@redhat.com>
2548
2549 * solib-svr4.h (set_solib_svr4_fetch_link_map_offsets): Add
2550 argument ``gdbarch''.
2551 * solib-svr4.c (SVR4_FETCH_LINK_MAP_OFFSETS): Change default value.
2552 (default_svr4_fetch_link_map_offsets): Rename to
2553 legacy_fetch_link_map_offsets().
2554 (svr4_fetch_link_map_offsets): New function.
2555 (fetch_link_map_offsets, fetch_link_map_offsets_init): Deleted.
2556 (fetch_link_map_offsets_gdbarch_data): New static global.
2557 (set_solib_svr4_fetch_link_map_offsets): Add argument ``gdbarch''.
2558 Revise to invoke set_gdbarch_data().
2559 (init_fetch_link_map_offsets): Change return type and add an
2560 argument so that it may be used as a gdbarch_data initializer.
2561 (_initialize_svr4_solib): Eliminate use of gdbarch swap mechanism.
2562 Use gdbarch data mechanism instead.
2563
2564 2001-09-25 Jiri Smid <smid@suse.cz>
2565
2566 * x86-64-linux-tdep.c (LINUX_SIGINFO_SIZE): Add.
2567 (x86_64_linux_sigcontext_addr): Replace `sizeof (struct siginfo)'
2568 by LINUX_SIGINFO_SIZE.
2569
2570 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2571
2572 * maint.c (maintenance_set_cmdlist, maintenance_show_cmdlist): New
2573 variables.
2574 (maintenance_set_profile_cmd): New function.
2575 (maintenance_show_cmd, maintenance_set_cmd): New functions.
2576 (_initialize_maint_cmds): Add "maintenance set" and "maintenance
2577 show" and, commented out, "maintenance set/show profile" commands.
2578
2579 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2580
2581 * findvar.c (read_var_value): For LOC_INDIRECT and LOC_REF_ARG
2582 convert the pointer into a CORE_ADDRs.
2583
2584 2001-09-24 Andrew Cagney <ac131313@redhat.com>
2585
2586 * doublest.h (store_floating, extract_floating): Add comment
2587 indicating these functions are deprecated.
2588 (extract_typed_floating, store_typed_floating): Declare.
2589 * doublest.c: Include "gdbtypes.h".
2590 (extract_typed_floating, store_typed_floating): Define.
2591
2592 * stabsread.c (define_symbol): Use store_typed_floating.
2593 * valarith.c (value_binop): Ditto.
2594 * values.c (unpack_long): Use extract_typed_floating.
2595 (unpack_double): Ditto.
2596
2597 2001-09-24 Orjan Friberg <orjanf@axis.com>
2598
2599 * cris-tdep.c (reg_mode_add_sub_cmp_and_or_move_op): Fetch operand1
2600 from correct register.
2601
2602 2001-09-22 Mark Kettenis <kettenis@gnu.org>
2603
2604 * x86-64-linux-tdep.c (STRUCT_OFFSET): Removed.
2605
2606 2001-09-21 Jiri Smid <smid@suse.cz>
2607
2608 * config/i386/x86-64linux.mh: New file.
2609 * config/i386/x86-64linux.mt: New file.
2610 * config/i386/nm-x86_64.h: New file.
2611 * x86-64-linux-tdep.c: New file.
2612 * x86-64-linux-nat.c: New file.
2613 * x86-64-tdep.c: New file.
2614 * x86-64-tdep.h: New file.
2615 * i386-tdep.h: New file.
2616 * i387-nat.c: Include i386-tdep.h when multiarch.
2617 * i387-tdep.c: Ditto.
2618 * config/djgpp/fnchange.lst: Add entries for x86_64-linux-tdep.c
2619 and x86_64-linux-nat.c
2620 * Makefile.in: Add x86_64-linux-tdep.o, x86_64-tdep.o,
2621 x86_64-linux-tdep.o, x86_64-nat.o, update dependencies.
2622
2623 2001-09-21 Jiri Smid <smid@suse.cz>
2624
2625 * MAINTAINERS: Add myself to the write-after-approval list.
2626 * i386-nat.c (TARGET_HAS_DR_LEN_8, DR_LEN_8): Declare.
2627 (i386_length_and_rw_bits, i386_handle_nonaligned_watchpoint,
2628 i386_insert_watchpoint, i386_remove_watchpoint): Add support for
2629 8-byte wide watchpoints.
2630 (i386_show_dr): Debug message format string change.
2631
2632 2001-09-21 Michael Snyder <msnyder@redhat.com>
2633
2634 * c-exp.y (typebase): Accept (signed long long) as a type expr.
2635
2636 2001-09-20 Michael Snyder <msnyder@redhat.com>
2637 Changes by Daniel Berlin <dan@cgsoftware.com>, to support
2638 better parsing of const and volatile type expressions.
2639 * c-exp.y (const_and_volatile, const_or_volatile_noopt,
2640 const_or_volatile): New non-terminals.
2641 (ptype): Use new rule for const_or_volatile.
2642 (typebase): Use new rule for const_or_volatile_noopt.
2643 * parser-defs.h (enum type_pieces): New values tp_const, tp_volatile.
2644 * parse.c (follow_types): Handle tp_const and tp_volatile on the
2645 type stack: call make_cv_type to create new const/volatile type.
2646
2647 2001-09-20 Kevin Buettner <kevinb@redhat.com>
2648
2649 * solib-svr4.c (fetch_link_map_offsets): Add comment.
2650 (fetch_link_map_offsets_init): New static global.
2651 (set_solib_svr4_fetch_link_map_offsets, init_fetch_link_map_offsets):
2652 Revise implementation to use ``fetch_link_map_offsets_init''
2653 instead of ``fetch_link_map_offsets''.
2654
2655 2001-09-20 Alan Modra <amodra@bigpond.net.au>
2656
2657 * coffread.c: Replace all occurrences of bfd_read with bfd_bread.
2658 * dbxread.c: Likewise.
2659 * dwarf2read.c: Likewise.
2660 * dwarfread.c: Likewise.
2661 * somread.c: Likewise.
2662 * ultra3-nat.c: Likewise.
2663 * xcoffread.c: Likewise.
2664
2665 2001-09-19 Andrew Cagney <ac131313@redhat.com>
2666
2667 * cris-tdep.c (cris_get_signed_offset): Change return type to an
2668 explicitly signed char.
2669
2670 * config/mcore/tm-mcore.h (mcore_virtual_frame_pointer): Update
2671 function signature to match recent tracepoint.c:encode_actions
2672 changes.
2673 * mcore-tdep.c (mcore_virtual_frame_pointer): Ditto.
2674
2675 2001-09-18 Andrew Cagney <ac131313@redhat.com>
2676
2677 * thread.c (do_captured_thread_select): Add uiout parameter.
2678 (do_captured_list_thread_ids): Ditto.
2679 * breakpoint.c (do_captured_breakpoint_query): Ditto.
2680
2681 * breakpoint.c (gdb_breakpoint_query): Update. Use
2682 catch_exceptions.
2683 * thread.c (gdb_list_thread_ids): Ditto.
2684 (gdb_thread_select): Ditto.
2685 (thread_command): Pass uiout to gdb_thread_select.
2686
2687 * gdb.h (gdb_breakpoint_query): Add parameter ui_out.
2688 (gdb_thread_select, gdb_list_thread_ids): Ditto.
2689
2690 2001-09-13 Kevin Buettner <kevinb@redhat.com>
2691
2692 From Ilya Golubev <gin@mo.msk.ru>:
2693 * solib.c (clear_solib): Call `remove_target_sections' to fix
2694 stale pointers in `struct target_ops'.
2695 * irix5-nat.c (clear_solib): Likewise.
2696 * osfsolib.c (clear_solib): Likewise.
2697
2698 2001-09-13 Jim Blandy <jimb@redhat.com>
2699
2700 * monitor.c (monitor_load): Don't delete symtab users, or reset
2701 inferior_ptid.
2702
2703 * monitor.c (monitor_load): Fix indentation.
2704
2705 2001-09-11 Jim Blandy <jimb@redhat.com>
2706
2707 * printcmd.c (print_scalar_formatted): Compare the length of the
2708 value against the lengths of the target's floating-point types,
2709 not the host's. Add support for `long double'.
2710
2711 * printcmd.c (print_scalar_formatted): Fix indentation.
2712
2713 2001-09-10 Jim Blandy <jimb@redhat.com>
2714
2715 * rom68k-rom.c (init_rom68k_cmds): Set the flag indicating that
2716 programs running on the board can produce output.
2717
2718 2001-09-10 Jason Molenda (jmolenda@apple.com)
2719
2720 * NEWS: "ANS/ISO C" -> "ISO C".
2721 * MAINTAINERS (write-after-approval): Update my entry.
2722
2723 2001-09-08 Mark Kettenis <kettenis@gnu.org>
2724
2725 * config/xm-aix4.h (MEM_FNS_DECLARED): Removed.
2726
2727 * config/arm/xm-linux.h, config/ia64/xm-linux.h,
2728 config/m68k/xm-linux.h, config/mips/xm-linux.h,
2729 config/powerpc/xm-linux.h, config/sparc/xm-linux.h: Remove
2730 redundant inclusion of <unistd.h>.
2731
2732 * gdbtypes.h (struct block): Add forward declaration.
2733
2734 2001-09-07 Andrew Cagney <ac131313@redhat.com>
2735
2736 * defs.h (enum return_reason): Renumber so that all values are
2737 negative.
2738 (RETURN_MASK): Negate reason.
2739 (catch_exception_ftype): Declare.
2740 (catch_exceptions): Declare.
2741 * top.c (catcher): New function, based on catch_errors. Add in
2742 parameter func_uiout and out parameters func_val, func_caught and
2743 func_cleanup. Change type of func to catch_exceptions_ftype.
2744 Save/restore uiout.
2745 (struct catch_errors_args): Define.
2746 (do_catch_errors): New function.
2747 (catch_errors): Rewrite, use do_catch_errors and catcher.
2748 (catch_exceptions): New function, use catcher.
2749
2750 2001-09-07 Jim Blandy <jimb@redhat.com>
2751
2752 Correctly parse register values provided by the monitor.
2753 * rom68k-rom.c: #include "value.h".
2754 (is_hex_digit, hex_digit_value, is_whitespace,
2755 rom68k_supply_one_register): New static functions.
2756 (rom68k_supply_register): Call rom68k_supply_one_register, instead
2757 of monitor_supply_register; the latter was incorrectly parsing
2758 the values.
2759 * Makefile.in (rom68k-rom.o): Note that this now #includes value.h.
2760
2761 2001-09-07 Mark Kettenis <kettenis@gnu.org>
2762
2763 * config/rs6000/xm-rs6000.h (setpgrp): Remove macro. GDB defaults
2764 to using setpgid if available now.
2765
2766 2001-09-06 Keith Seitz <keiths@redhat.com>
2767
2768 From Ian Roxborough <irox@redhat.com>
2769 * configure.in: Use ITCL_LIB_FULL_PATH and
2770 ITK_LIB_FULL_PATH to set Itcl and Itk dependancies
2771 for gdb.
2772 * configure: Regenerated.
2773
2774 2001-09-06 Kevin Buettner <kevinb@redhat.com>
2775
2776 * dbxread.c (process_one_symbol): Don't use error result from
2777 find_stab_function_addr().
2778 * partial-stab.h (case 'F'): Likewise.
2779
2780 * partial-stab.h (case 'f'): Make SOFUN_ADDRESS_MAYBE_MISSING
2781 code match that used for case 'F'. This fixes the divergence
2782 that was introduced by my 1999-09-14 changes to partial-stab.h.
2783
2784 2001-09-05 Elena Zannoni <ezannoni@redhat.com>
2785
2786 * gdbarch.sh: Move include of dis-asm.h so it is generated earlier
2787 in gdbarch.h.
2788 (TARGET_PRINT_INSN): Multiarch.
2789 * gdbarch.h: Regenerate.
2790 * gdbarch.c: Regenerate.
2791
2792 * arch-utils.c (legacy_print_insn): New function.
2793 * arch-utils.h (legacy_print_insn): Export.
2794
2795 * cris-tdep.c (cris_delayed_get_disassembler): Use
2796 TARGET_PRINT_INSN, instead of tm_print_insn.
2797 * d10v-tdep.c (print_insn): Ditto.
2798 * d30v-tdep.c (print_insn): Ditto.
2799 * m32r-tdep.c (dump_insn): Ditto.
2800 * v850-tdep.c (v850_scan_prologue): Ditto.
2801 * mcore-tdep.c (mcore_dump_insn): Ditto.
2802 * sh-tdep.c (sh_gdbarch_init): Set print_insn gdbarch field.
2803
2804 2001-09-05 Jim Blandy <jimb@redhat.com>
2805
2806 * gdbtypes.h (struct type): Doc fix.
2807
2808 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2809
2810 From Daniel Jacobowitz <drow@mvista.com>
2811 * dbxread.c (free_header_files): Make global.
2812 (init_header_files): Likewise.
2813 * stabsread.h (free_header_files): Add prototype.
2814 (init_header_files): Likewise.
2815 * mdebugread.c (mdebug_build_psymtabs): Initialize
2816 properly before using the stabs debug reader.
2817
2818 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2819
2820 From Daniel Jacobowitz <drow@mvista.com>
2821 * dbxread.c (dbx_symfile_read): Only reinitialize
2822 the psymbol list if mainline or if both static
2823 and global lists are empty.
2824 * dwarf2read.c (dwarf2_build_psymtabs): Likewise.
2825 * dwarfread.c (dwarf_build_psymtabs): Likewise.
2826 * xcoffread.c (xcoff_initial_scan): Likewise.
2827 * os9kread.c (os9k_symfile_read): Likewise.
2828
2829 2001-09-04 Elena Zannoni <ezannoni@redhat.com>
2830
2831 From Daniel Jacobowitz <drow@mvista.com>
2832 * mdebugread.c (psymtab_to_symtab_1): Handle N_SO stabs without
2833 a name specially.
2834
2835 2001-09-01 Mark Kettenis <kettenis@gnu.org>
2836
2837 Make GDB use libiberty regex implementation.
2838 * gdb_regex.h: Normalize protection against multiple inclusion.
2839 Include "xregex.h" instead of "gnu-regex.h".
2840 * cli/cli-cmds.c: Include "gdb_regex.h" instead of "gnu-regex.h".
2841 * cli/cli-decode.c: Likewise.
2842 * Makefile.in (REGEX): Remove.
2843 (GDB_CFLAGS): Remove reference to gnu-regex.h in comment.
2844 (ADD_FILES, ADD_DEPS): Remove $(REGEX).
2845 (POSSLIBS): Remove.
2846 (TAGFILES_NO_SRCDIR): Remove $(POSSLIBS).
2847 (irix5-nat.o, solib.o, solib-svr4.o, source.o, symtab.o,
2848 xcoffsolib.o, cli-decode.o, cli-cmd.o): Replace gnu-regex.h with
2849 gdb_regex.h in list of dependencies.
2850 (gnu-regex.o): Remove rule.
2851 * gnu-regex.c, gnu-regex.h: Remove files.
2852
2853 2001-08-31 Jason Molenda (jmolenda@apple.com)
2854
2855 * c-valprint.c (c_val_print): Second call to check_typedef ()
2856 is no longer necessary.
2857
2858 2001-08-31 Kevin Buettner <kevinb@redhat.com>
2859
2860 * ia64-tdep.c (examine_prologue): Don't let a branch unit nop
2861 terminate the prologue scan.
2862
2863 2001-08-30 Jim Blandy <jimb@redhat.com>
2864
2865 * symfile.c (sections_overlap): New function.
2866 (map_overlay_command): Call sections_overlap, instead of using
2867 incorrect logic to recognize overlapping sections.
2868
2869 * symfile.c (load_command): Invalidate the overlay cache.
2870
2871 2001-08-30 Mark Kettenis <kettenis@gnu.org>
2872
2873 * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed.
2874
2875 2001-08-29 Kevin Buettner <kevinb@redhat.com>
2876
2877 From 2001-08-07 Daniel Jacobowitz <drow@mvista.com>:
2878 * solib-svr4.c (enable_break): Check the inferior link map
2879 before assuming the inferior PC is at the start of the dynamic
2880 loader.
2881
2882 2001-08-28 Andrew Cagney <cagney@toribio.toronto.redhat.com>
2883
2884 * frame.h (struct frame_info): Fix documentation on fields
2885 saved_regs, next and prev.
2886
2887 2001-08-23 Mark Kettenis <kettenis@gnu.org>
2888
2889 * event-top.c (async_stop_sig) [HAVE_SIGPROCMASK]: Some
2890 gratuitious whitespace changes.
2891 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is defined.
2892 * top.c: Remove redundant logic to define HAVE_SIGSETMASK.
2893 (sigsetmask) Don't define macro.
2894 (stop_sig) [HAVE_SIGPROCMASK]: Add bit of code snatched from
2895 async_stop_sig from event-top.c.
2896 [!HAVE_SIGPROCMASK]: Call sigsetmask if HAVE_SIGSETMASK is
2897 defined.
2898 * configure.in (AC_CHECK_FUNCS): Put functions in alphabetical
2899 order. Add sigsetmask.
2900 (AC_FUNC_VFORK, AC_FUNC_ALLOCA): Reorder such that they're in
2901 alphabetical order.
2902 * config/xm-aix4.h, config/alpha/xm-alphalinux.h,
2903 config/i386/xm-cygwin.h, config/rs6000/xm-rs6000.h
2904 (HAVE_SIGSETMASK): Remove.
2905 * aclocal.m4, config.in, configure: Regenerated.
2906
2907 2001-08-26 Andrew Cagney <ac131313@redhat.com>
2908
2909 From 2001-06-29 Andrew Cagney <ac131313@redhat.com>:
2910 * config/powerpc/nbsd.mh (XM_FILE): Delete.
2911
2912 2001-08-21 Andrew Cagney <ac131313@redhat.com>
2913
2914 * doublest.h (HOST_FLOAT_FORMAT): Delete macro.
2915 (HOST_DOUBLE_FORMAT): Delete macro.
2916
2917 2001-08-24 Mark Kettenis <kettenis@gnu.org>
2918
2919 * config/xm-lynx.h, config/xm-nbsd.h, config/xm-sysv4.h,
2920 config/i386/xm-i386aix.h, config/m68k/xm-dpx2.h: Remove redundant
2921 inclusion of <limits.h>.
2922
2923 2001-08-24 Andrew Cagney <ac131313@redhat.com>
2924
2925 * regcache.c (read_register_bytes): When REGISTER_NAME indicates
2926 that a register should be ignored, supply a value for the register
2927 from the raw registers[] buffer.
2928
2929 2001-08-24 Andrew Cagney <ac131313@redhat.com>
2930
2931 * go32-nat.c (go32_create_inferior): Use xfree instead of free.
2932 * config/djgpp/fnchange.lst: Add entries for i386bsd-tdep.c and
2933 i386bsd-nat.c.
2934
2935 2001-08-21 Andrew Cagney <ac131313@redhat.com>
2936
2937 * gdbtypes.h (builtin_type_ieee_single_big)
2938 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2939 (builtin_type_ieee_double_little)
2940 (builtin_type_ieee_double_littlebyte_bigword)
2941 (builtin_type_i387_ext, builtin_type_m68881_ext)
2942 (builtin_type_i960_ext, builtin_type_m88110_ext)
2943 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2944 (builtin_type_arm_ext_littlebyte_bigword)
2945 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2946 (builtin_type_ia64_quad_big)
2947 (builtin_type_ia64_quad_little): Declare.
2948 * gdbtypes.c (builtin_type_ieee_single_big)
2949 (builtin_type_ieee_single_little, builtin_type_ieee_double_big)
2950 (builtin_type_ieee_double_little)
2951 (builtin_type_ieee_double_littlebyte_bigword)
2952 (builtin_type_i387_ext, builtin_type_m68881_ext)
2953 (builtin_type_i960_ext, builtin_type_m88110_ext)
2954 (builtin_type_m88110_harris_ext, builtin_type_arm_ext_big)
2955 (builtin_type_arm_ext_littlebyte_bigword)
2956 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
2957 (builtin_type_ia64_quad_big)
2958 (builtin_type_ia64_quad_little): Define.
2959 (_initialize_gdbtypes): Initialize builtin floatformat types.
2960
2961 2001-08-23 Mark Kettenis <kettenis@gnu.org>
2962
2963 * tracepoint.c (read_actions): Add FIXME for code depending on
2964 STOP_SIGNAL.
2965
2966 2001-08-23 Martin M. Hunt <hunt@redhat.com>
2967
2968 * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
2969 to download loop.
2970 (mips_load_srec): Ditto.
2971
2972 2001-08-22 Andrew Cagney <ac131313@redhat.com>
2973
2974 * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
2975 of builtin_type_float, builtin_type_double and
2976 builtin_type_long_double.
2977 (recursive_dump_type): Print the floatformat name.
2978 * gdbtypes.h (struct type): Add type_specific field floatformat.
2979 (TYPE_FLOATFORMAT): Define
2980
2981 2001-08-21 Keith Seitz <keiths@redhat.com>
2982
2983 * printcmd.c (print_insn): Use the given stream for
2984 output.
2985
2986 2001-07-24 Andrew Cagney <ac131313@redhat.com>
2987
2988 * arm-tdep.c (convert_from_extended, convert_to_extended): Delete
2989 assembler version of function.
2990 (convert_from_extended, convert_to_extended): Rewrite. Use
2991 floatformat_to_doublest, floatformat_from_doublest,
2992 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword.
2993 (arm_push_arguments): Use extract_floating and store_floating to
2994 perform floating point conversions.
2995 (SWAP_TARGET_AND_HOST): Delete macro.
2996 * arm-linux-tdep.c (arm_linux_push_arguments): Use
2997 extract_floating and store_floating to perform floating point
2998 conversions.
2999
3000 2001-08-20 Andrew Cagney <ac131313@redhat.com>
3001
3002 * gdbtypes.h (struct type): Clarify meaning of field ``length''.
3003
3004 2001-08-17 Keith Seitz <keiths@redhat.com>
3005
3006 * varobj.c (varobj_update): Change first parameter to
3007 pointer to struct varobj*. This function can delete
3008 varobjs, so we need to give callers the new varobj
3009 when this happens.
3010 (value_of_root): Update "var", too, if "var_handle"
3011 changes.
3012 * varobj.h (varobj_update): Likewise.
3013
3014 2001-08-17 Keith Seitz <keiths@redhat.com>
3015
3016 * Makefile.in (varobj_h): Define.
3017 (mi-cmd-var.o): Depends on varobj_h.
3018 (gdbtk-varobj.o): Change varobj.h to $(varobj_h).
3019
3020 2001-08-16 Keith Seitz <keiths@redhat.com>
3021
3022 * configure.in (GDBTK_SRC_DIR): We must have autoconf
3023 give us the absolute path to the source directory.
3024 * configure: Regenerated.
3025 * Makefile.in (GDBTK_SRC_DIR): Add variable so that
3026 autoconf can substitue it in for us.
3027 (gdbtk.o): Pass in GDBTK_SRC_DIR instead of srcdir. We
3028 really do need an absolute pathname.
3029
3030 2001-08-15 Keith Seitz <keiths@redhat.com>
3031
3032 * Makefile.in (GDBTK_VERSION): Set a version number.
3033 (GDBTK_LIBRARY): New variable to point to location where
3034 gdbtk will install its tcl library. Changed all refereneces
3035 to $(datadir)/insight1.0 to $(GDBTK_LIBRARY).
3036 (SUBDIR_GDBTK_ALL): Remove "all-gdbtk". No longer needed.
3037 (SUBDIR_GDBTK_CLEAN): Remove "clean-gdbtk". No longer needed.
3038 (all-gdbtk): Remove.
3039 (install-gdbtk): Remove.
3040 (gdbtk.o): Pass srcdir to file when compiling.
3041
3042 2001-08-15 Ian Roxborough <irox@redhat.com>
3043
3044 * Makefile.in: Changed all references to the install directory
3045 "gdbtcl" to read "insight1.0".
3046
3047 2001-08-15 Corinna Vinschen <vinschen@redhat.com>
3048
3049 * arch-utils.c (generic_skip_trampoline_code): New function.
3050 * arch-utils.h (generic_skip_trampoline_code): Declare external.
3051 * gdbarch.c: Regeberated from gdbarch.sh.
3052 * gdbarch.h: Ditto.
3053 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Multi-arch.
3054 * infrun.c: Remove default setting of SKIP_TRAMPOLINE_CODE macro.
3055
3056 2001-08-14 Daniel Jacobowitz <drow@mvista.com>
3057 H.J. Lu (hjl@gnu.org)
3058
3059 * partial-stab.h: valu should be a CORE_ADDR.
3060
3061 2001-08-14 H.J. Lu (hjl@gnu.org)
3062
3063 * dbxread.c (SWAP_SYMBOL): Removed.
3064 (INTERNALIZE_SYMBOL): Check sign extended vma.
3065
3066 2001-08-13 Christopher Faylor <cgf@cygnus.com>
3067
3068 * top.c (SIGSETJMP): Protect env argument with parentheses.
3069 (SIGLONGJMP): Protect env argument with parentheses.
3070
3071 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3072
3073 * config/mn10300/mn10300.mt (TM_FILE): Delete.
3074 * configure.tgt: Add mn10300 to list of mulit-arch targets.
3075 * config/mn10300/tm-mn10300.h: Delete file. Move contents ...
3076 * mn10300-tdep.c: To here.
3077
3078 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3079
3080 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_VIRTUAL): Make
3081 val a DOUBLEST. Use floatformat_to_doublest.
3082 (REGISTER_CONVERT_TO_RAW): Ditto. Use foatformat_from_doublest.
3083 * config/m88k/tm-m88k.h (REGISTER_CONVERT_TO_VIRTUAL): Ditto.
3084 (REGISTER_CONVERT_TO_RAW): Ditto.
3085
3086 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3087
3088 * config/mn10300/tm-mn10300.h (PC_REGNUM, SP_REGNUM): Delete.
3089 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize pc_regnum and
3090 sp_regnum.
3091
3092 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3093
3094 * doublest.c (convert_doublest_to_floatformat): Rename
3095 floatformat_from_doublest. Make static.
3096 (convert_floatformat_to_doublest): Rename floatformat_to_doublest.
3097 Make static.
3098 (floatformat_to_doublest): New function.
3099 (floatformat_from_doublest): New function.
3100 (host_float_format, host_double_format, host_long_double_format):
3101 New static variables.
3102 (store_floating, extract_floating): Always use
3103 floatformat_to_doublest and floatformat_from_doublest.
3104 * doublest.h (HOST_LONG_DOUBLE_FORMAT): Delete macro.
3105
3106 2001-08-11 Andrew Cagney <ac131313@redhat.com>
3107
3108 * config/mn10300/tm-mn10300.h (INIT_FRAME_PC): Delete.
3109 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize init_frame_pc.
3110
3111 2001-08-07 Andrew Cagney <ac131313@redhat.com>
3112
3113 * target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
3114 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
3115 * gdbarch.h, gdbarch.c: Regenerate.
3116
3117 * arch-utils.h (legacy_virtual_frame_pointer): Declare.
3118 * arch-utils.c: Include "gdb_assert.h".
3119 (legacy_virtual_frame_pointer): Define.
3120 * Makefile.in (arch-utils.o): Depends on gdb_assert.h.
3121
3122 * tracepoint.c (encode_actions): Make frame_reg an int. Make
3123 frame_offset a LONGEST.
3124 * ax-gdb.c (gen_frame_args_address): Ditto.
3125 (gen_frame_locals_address): Ditto.
3126 * mn10300-tdep.c (mn10300_gdbarch_init): Initialize
3127 virtual_frame_pointer.
3128 (mn10300_virtual_frame_pointer): Make static. Update parameter
3129 list to match function signature.
3130 * config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
3131
3132 2001-08-10 Keith Seitz <keiths@redhat.com>
3133
3134 * gdb-events.sh: Add architecture_changed event.
3135 * gdbarch.sh: Include gdb-event.h.
3136 (gdbarch_update_p): Notify UIs when architecture changes.
3137 * gdb-events.h: Regenerated.
3138 * gdb-events.c: Regenerated.
3139 * gdbarch.c: Regenerated.
3140
3141 2001-08-10 Michael Snyder <msnyder@redhat.com>
3142
3143 * regcache.c (legacy_write_register_gen): Don't 'optimize out'
3144 a write_register to a pseudo-reg. Target_store_pseudo_register
3145 needs to get called, because these regs may be computed and may
3146 have side-effects.
3147
3148 2001-08-10 Keith Seitz <keiths@redhat.com>
3149
3150 * gdb-events.sh: Deal with event notifications with no
3151 arguments.
3152
3153 2001-08-10 Orjan Friberg <orjanf@axis.com>
3154
3155 * remote.c (read_frame): Correct off-by-one error in condition.
3156
3157 2001-08-08 Don Howard <dhoward@redhat.com>
3158
3159 * stabsread.c (read_type): Add support for const and volatile
3160 modifiers.
3161
3162 2001-08-02 Daniel Jacobowitz <drow@mvista.com>
3163
3164 * core-regset.c (fetch_core_registers): Remove HAVE_GREGSET_T
3165 and HAVE_FPREGSET_T checks. Use gdb_gregset_t and gdb_fpregset_t.
3166
3167 2001-08-02 Keith Seitz <keiths@redhat.com>
3168
3169 * defs.h (SLASH_STRING): If not defined, set
3170 to "/", regardless of _WIN32, __CYGWIN__, or
3171 whatnot.
3172
3173 2001-08-02 Mark Kettenis <kettenis@gnu.org>
3174
3175 * cli/cli-decode.h: Include "gdb_regex.h" instead of
3176 "gnu-regex.h".
3177
3178 * NEWS: Update.
3179
3180 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
3181
3182 * config/i386/xm-go32.h: Include xm-i386.h.
3183 (HOST_BYTE_ORDER, HOST_LONG_DOUBLE_FORMAT): Remove definitions.
3184
3185 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
3186
3187 The following changes avoid polluting global namespace with the
3188 `enable' and `disable' identifiers, because some platforms define
3189 in their system headers symbols with global scope that go by those
3190 names.
3191
3192 * breakpoint.h (enum enable_state): Rename from `enum enable'.
3193 Also rename all the enum members to have the "bp_" prefix.
3194 (struct breakpoint): Rename the `enable' member to `enable_state'.
3195 (enum bpdisp): Rename all members to have the "disp_" prefix.
3196
3197 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
3198 changed.
3199 (args_for_catchpoint_enable): Rename the `enable' member to
3200 `enable_p'. All users changed.
3201
3202 * tracepoint.h (enum enable): Remove.
3203 (struct tracepoint): The member `enabled' is now `int enabled_p'.
3204
3205 * tracepoint.c: All users of the `enabled' member changed.
3206
3207 * printcmd.c (struct display): The `status' member is now an int.
3208
3209 * memattr.h (struct mem_region): Rename the `status' member to
3210 `enabled_p'.
3211 (enum enable): Remove.
3212
3213 * memattr.c: Change all users of the `status' member of struct
3214 mem_region to use `enabled_p' instead.
3215
3216 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
3217
3218 * go32-nat.c: Remove the kludgey work-around for conflicts between
3219 <dos.h> and "breakpoint.h".
3220
3221 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
3222
3223 * MAINTAINERS: Add myself to the write-after-approval list.
3224 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
3225 hostname is given.
3226
3227 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3228
3229 * doublest.h (store_floating, floatformat_to_doublest): Make IN
3230 paramter a const void pointer.
3231 (floatformat_from_doublest): Make IN const, Make OUT a void
3232 pointer.
3233 * doublest.c (floatformat_to_doublest): Update.
3234 (floatformat_from_doublest): Update.
3235 (extract_floating): Update.
3236
3237 2001-07-31 Andrew Cagney <ac131313@redhat.com>
3238
3239 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3240 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
3241 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
3242 (floatformat_to_doublest, floatformat_from_doublest)
3243 (floatformat_is_negative, floatformat_is_nan)
3244 (floatformat_mantissa, store_floating)
3245 (extract_floating): Move declaration from here.
3246 * doublest.h: To here. New file.
3247 * utils.c (get_field, floatformat_to_doublest, put_field)
3248 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
3249 (floatformat_is_nan, floatformat_mantissa)
3250 (FLOATFORMAT_CHAR_BIT): Move from here.
3251 * doublest.c: To here. New file.
3252 * findvar.c (store_floating, extract_floating): Move from here.
3253 * doublest.c: To here.
3254 * Makefile.in (SFILES): Add doublest.c.
3255 (COMMON_OBS): Add doublest.o.
3256 (doublest.o): Specify dependencies.
3257 (doublest_h): Define.
3258
3259 * config/m88k/tm-m88k.h: Include "doublest.h".
3260 * config/i960/tm-i960.h: Ditto.
3261 * config/i386/tm-symmetry.h: Ditto.
3262 * rs6000-tdep.c, valarith.c: Ditto.
3263 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
3264 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
3265 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
3266 * alpha-tdep.c, ax.h, expression.h: Ditto.
3267 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
3268
3269 * Makefile.in (arm-tdep.o): Add $(doublest_h).
3270 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
3271 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
3272 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
3273 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
3274 (parser_defs_h): Ditto.
3275 (expression_h): Add $(doublest_h) and $(symtab_h).
3276
3277 2001-08-01 Andrew Cagney <ac131313@redhat.com>
3278
3279 * Makefile.in: Sort header definitions.
3280 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
3281 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
3282 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
3283 $(annotate_h). Replace target.h with $(target_h). Replace
3284 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
3285
3286 2001-07-31 Mark Kettenis <kettenis@gnu.org>
3287
3288 * config/i386/xm-i386.h: New file.
3289 * config/i386/xm-fbsd.h: Removed.
3290 * config/i386/xm-linux.h: Removed.
3291 * config/i386/fbsd.mh: Reorganize a bit.
3292 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
3293 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
3294 xm-linux.h.
3295
3296 2001-07-30 Jim Blandy <jimb@redhat.com>
3297
3298 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
3299
3300 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
3303 Check for SETPGRP_VOID separately if cross-compiling and ISO C
3304 headers are available.
3305
3306 2001-07-30 Mark Kettenis <kettenis@gnu.org>
3307
3308 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
3309 i386_dwarf_reg_to_regnum.
3310
3311 * i386-tdep.c (i386_register_convert_to_virtual): Replace
3312 assertion with a warning if we're asked to convert towards a
3313 non-floating-point type. Zero out the the buffer where the data
3314 is supposed to be stored in that case.
3315
3316 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
3317
3318 * config/djgpp/djconfig.sh: Unset CDPATH.
3319
3320 * go32-nat.c (get_cr3): Temporary disable support for page tables
3321 in UMBs, as it is incomplete.
3322
3323 Support for stepping through longjmp in DJGPP programs:
3324
3325 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
3326 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
3327 (get_longjmp_target): Add prototype.
3328
3329 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3330
3331 Fix some PID/TPID fallout for HP/UX.
3332 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
3333 * infttrace.c (ptrace_wait): Match external declaration,
3334 and match target_post_wait declaration.
3335
3336 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3337
3338 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
3339 (cris): Set --enable-gdb-build-warnings flag to -w.
3340
3341 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3342
3343 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
3344 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
3345 (TARGET_LONG_DOUBLE_BIT): Define.
3346 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
3347 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
3348 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
3349 floating point registers.
3350 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
3351 (REGISTER_CONVERT_TO_RAW): Remove.
3352 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
3353
3354 2001-07-26 Andrew Cagney <ac131313@redhat.com>
3355
3356 * thread.c, breakpoint.c: Include "gdb.h".
3357 * Makefile.in (gdb_h): Define.
3358 (HFILES_NO_SRCDIR): Add gdb.h.
3359 (mi-cmd-break.o, mi-main.o, thread.o)
3360 (breakpoint.o): Add dependency on $(gdb_h).
3361
3362 * defs.h (enum gdb_rc, gdb_breakpoint_query)
3363 (gdb_breakpoint, gdb_thread_select)
3364 (gdb_list_thread_ids): Move declaration from here ...
3365 * gdb.h: To here. New file.
3366
3367 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3368
3369 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
3370 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
3371 (SFILES): Likewise.
3372 (tui-out.o): Define dependencies.
3373 (tui-hooks.o): Likewise.
3374
3375 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3376
3377 * MAINTAINERS: Update e-mail address of active @cygnus.com
3378 maintainers to @redhat.com.
3379
3380 2001-07-28 Andrew Cagney <ac131313@redhat.com>
3381
3382 * README (Known bugs): Delete section.
3383 (Kernel debugging): Delete section.
3384 (Languages other than C): Delete section.
3385 (Host/target specific installation notes) New section.
3386
3387 2001-07-28 Mark Kettenis <kettenis@gnu.org>
3388
3389 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3390 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
3391 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
3392 prototypes.
3393 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
3394 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
3395 i386_dwarf_reg_to_regnum.
3396 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
3397 New functions.
3398
3399 * i386-tdep.c: Include "gdb_assert.h"
3400 (i386_register_convert_to_virtual): Fix such that it can handle
3401 conversion to any floating-point type. Assert that we are dealing
3402 with a floating-point first.
3403 (i386_register_convert_to_raw): Assert that TYPE is a
3404 floating-point type with length 12.
3405
3406 2001-07-27 John R. Moore <jmoore@redhat.com>
3407
3408 * configure.in: Added dependency of gdb on tcl/tk libraries.
3409 * Makefile.in: Likewise.
3410 * configure: Regenerated with the above using autoconf.
3411
3412 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
3413
3414 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
3415 NUM_REGS.
3416 (SH_DEFAULT_NUM_REGS): Define.
3417
3418 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
3419
3420 * go32-nat.c (read_memory_region): Make sure the segment limit was
3421 indeed set, to work around a Windows 2000 bug.
3422
3423 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
3426 * infttrace.c (child_xfer_memory): Likewise.
3427 * symm-nat.c (child_xfer_memory): Likewise.
3428 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
3429 (write_inferior_memory): Likewise.
3430 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
3431 (write_inferior_memory): Likewise.
3432 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
3433 (write_inferior_memory): Likewise.
3434 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
3435 (write_inferior_memory): Likewise.
3436 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
3437 (write_inferior_memory): Likewise.
3438 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
3439 (write_inferior_memory): Likewise.
3440
3441 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
3442
3443 * README: Mention how to make gdb.pdf.
3444
3445 * NEWS: Update.
3446
3447 2001-07-24 Stephen P. Smith <ischis2@home.com>
3448
3449 * MAINTAINERS (Stephen P. Smith): Added to write after approval
3450 list.
3451
3452 2001-07-23 Andrew Cagney <ac131313@redhat.com>
3453
3454 * mips-tdep.c (mips_push_arguments): Add comment explaining
3455 problem with LE o32 GCC.
3456
3457 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
3458
3459 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
3460 doesn't understand them.
3461
3462 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
3463
3464 * memattr.c (mem_info_command): Reformat output to look more like
3465 'info break' output.
3466 (_initialize_mem): Improve help.
3467
3468 2001-07-23 Mark Kettenis <kettenis@gnu.org>
3469
3470 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
3471 (AC_FUNC_SETPGRP): Add.
3472 * aclocal.m4, configure, config.in: Regenerated.
3473 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
3474 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
3475 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
3476 distinguish between the two setpgrp flavours.
3477 * config/xm-sysv4.h, config/arm/xm-linux.h,
3478 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
3479 config/i386/xm-linux.h, config/i386/xm-ptx.h,
3480 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3481 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
3482 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
3483 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
3484
3485 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
3486
3487 * go32-nat.c (read_memory_region): Set the granularity bit of the
3488 allocated segment according to its size, and adjust the limit to
3489 be page-aligned if the segment is page-granular.
3490
3491 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
3492 (display_page_table, go32_pte, go32_pte_for_address): New functions.
3493 (_initialize_go32_nat): Initialize and document them.
3494
3495 2001-07-22 Mark Kettenis <kettenis@gnu.org>
3496
3497 * i386gnu-nat.c: Include "i387-nat.h".
3498 (struct env387): Removed.
3499 (reg_offset): Fix comment.
3500 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
3501 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
3502 use i387_supply_fsave.
3503 (gnu_fetch_registers): Remove spurious whitespace.
3504 (convert_to_env387): Remove.
3505 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
3506 of convert_to_env387.
3507 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
3508 store_fpregs.
3509 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
3510 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
3511 (NATDEPFILES): Add i387-nat.o.
3512
3513 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3514
3515 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
3516 (m68hc11-tdep.o): Define dependencies.
3517
3518 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3519
3520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
3521
3522 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3523
3524 * utils.c (init_page_info): Use tui_get_command_dimension.
3525 * printcmd.c (disassemble_command): Simplify tui specific code,
3526 use tui_is_window_visible, tui_show_assembly.
3527
3528 2001-07-21 Mark Kettenis <kettenis@gnu.org>
3529
3530 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
3531 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
3532 code to ...
3533 * i386fbsd-nat.c: ... here. New file.
3534 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
3535 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
3536 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
3537 (i386fbsd-nat.o): Add dependencies.
3538
3539 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
3540
3541 * signals.c: New file.
3542 * Makefile.in: Add signals.o.
3543 * target.c (struct signals, target_signal_to_name)
3544 (target_signal_from_name, target_signal_from_host)
3545 (do_target_signal_to_host, target_signal_to_host_p)
3546 (target_signal_to_host, target_signal_from_command): Move to
3547 signals.c.
3548 (initialize_targets): Move check of struct signals to...
3549 * signals.c (_initialize_signals): Here.
3550
3551 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3552
3553 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
3554
3555 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3556
3557 From Stephen Smith:
3558 * configure.tgt (i*86-*-pe*): New target.
3559
3560 2001-07-19 Andrew Cagney <ac131313@redhat.com>
3561
3562 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
3563 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
3564 * somsolib.c (no_shared_libraries): Provide stub.
3565 * xcoffsolib.c (no_shared_libraries): Provide stub.
3566
3567 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3568
3569 * Makefile.in (COMMON_OBS): Remove tui-file.o.
3570 (SUBDIR_TUI_OBS): Add it here.
3571 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
3572 (main.o): Remove dependency with tui-file.h.
3573
3574 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
3575
3576 * Makefile.in (tui-file.o): Update dependencies.
3577
3578 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
3579
3580 * top.c (catch_errors): Convert PTR to void * in parameters list.
3581 (quit_cover): Ditto.
3582
3583 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3584
3585 * source.c (find_source_lines): Remove tui test, must be replaced
3586 by appropriate warning hook.
3587 (print_source_lines): Remove tui hacks, must be replaced by cli.
3588 (forward_search_command): Remove tui hacks, can be replaced by
3589 appropriate calls to identify_source_line when tui scrolls.
3590 (reverse_search_command): Likewise.
3591
3592 2001-07-16 Nick Duffek <nsd@redhat.com>
3593
3594 * remote.c (init_remote_ops, init_remote_cisco_ops,
3595 init_remote_async_ops): Set to_pid_to_str and
3596 to_extra_thread_info correctly and in the same order as declared
3597 in target.h.
3598
3599 2001-07-16 Andrew Cagney <ac131313@redhat.com>
3600
3601 * remote.c: Revert below. Included more than intended.
3602
3603 2001-07-16 Nick Duffek <nsd@redhat.com>
3604
3605 * remote.c (init_remote_ops, init_remote_cisco_ops,
3606 init_remote_async_ops): Set to_pid_to_str and
3607 to_extra_thread_info correctly and in the same order as declared
3608 in target.h.
3609
3610 2001-07-16 Nick Duffek <nsd@redhat.com>
3611
3612 * findvar.c (read_var_value): Apply value_as_pointer() to
3613 addresses retrieved from the target for LOC_BASEREG and
3614 LOC_BASEREG_ARG variables.
3615
3616 2001-07-16 Orjan Friberg <orjanf@axis.com>
3617
3618 * NEWS: New target CRIS.
3619
3620 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * top.c (show_commands): Remove extern decl of history_get, it's
3623 already in readline/history.h.
3624
3625 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
3626
3627 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
3628 execute_user_command, do_setshow_command, get_prompt, init_proc,
3629 serial_log_command): Remove extern declarations. Include
3630 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
3631 * gdbcmd.h (execute_user_command): Remove declaration, it's already
3632 in cli/cli-script.h.
3633 * command.h (do_setshow_command): Remove declaration, it's already
3634 in cli/cli-setshow.h.
3635 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
3636 * Makefile.in (infrun.o): Update dependencies.
3637 (top.o): Ditto.
3638 * cli/cli-setshow.h: Add comment for do_setshow_command.
3639
3640 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
3641
3642 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
3643 call to chdir on this symbol rather than on __DJGPP__.
3644 (CANT_FORK) [__MSDOS__]: Move from here...
3645 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
3646 (GLOBAL_CURDIR) [__MSDOS__]: Define.
3647
3648 2001-07-16 Orjan Friberg <orjanf@axis.com>
3649
3650 * configure.tgt: Recognise the CRIS architecture.
3651 * config/cris/cris.mt: New file for CRIS target.
3652 * cris-tdep.c: New file for CRIS target.
3653
3654 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
3655
3656 * top.c (quit_cover, float_handler): Move definition up before use.
3657 (gdb_init): Move to end of file, to avoid calls to not yet defined
3658 functions.
3659 Delete prototypes.
3660
3661 2001-07-14 Andrew Cagney <ac131313@redhat.com>
3662
3663 * serial.h (SERIAL_ASYNC): Delete.
3664 (DEPRECATED_SERIAL_FD): Delete.
3665 (SERIAL_DEBUG): Delete.
3666 (SERIAL_DEBUG_P): Delete.
3667 (SERIAL_DRAIN_OUTPUT): Delete.
3668 (SERIAL_FLUSH_OUTPUT): Delete.
3669 (SERIAL_FLUSH_INPUT): Delete.
3670 (SERIAL_SEND_BREAK): Delete.
3671 (SERIAL_RAW): Delete.
3672 (SERIAL_GET_TTY_STATE): Delete.
3673 (SERIAL_SET_TTY_STATE): Delete.
3674 (SERIAL_PRINT_TTY_STATE): Delete.
3675 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
3676 (SERIAL_SETBAUDRATE): Delete.
3677 (SERIAL_SETSTOPBITS): Delete.
3678 (SERIAL_CAN_ASYNC_P): Delete.
3679 (SERIAL_IS_ASYNC_P): Delete.
3680 (SERIAL_UN_FDOPEN): Delete.
3681 (SERIAL_READCHAR): Delete.
3682 (SERIAL_CLOSE): Delete.
3683 (SERIAL_FDOPEN): Delete.
3684 (SERIAL_OPEN): Delete.
3685 * ser-unix.c: Update.
3686 * sparclet-rom.c: Update.
3687 * remote-bug.c: Update.
3688 * dsrec.c: Update.
3689 * xmodem.c: Update.
3690 * nindy-share/ttyflush.c: Update.
3691 * nindy-share/Onindy.c: Update.
3692 * utils.c: Update.
3693 * serial.c: Update.
3694 * remote-nindy.c: Update.
3695 * inflow.c: Update.
3696 * sparcl-tdep.c: Update.
3697 * sh3-rom.c: Update.
3698 * remote.c: Update.
3699 * remote-utils.c: Update.
3700 * remote-st.c: Update.
3701 * remote-sds.c: Update.
3702 * remote-rdp.c: Update.
3703 * remote-os9k.c: Update.
3704 * remote-nrom.c: Update.
3705 * remote-mips.c: Update.
3706 * remote-es.c: Update.
3707 * remote-e7000.c: Update.
3708 * remote-array.c: Update.
3709 * ocd.c: Update.
3710 * nindy-share/nindy.c: Update.
3711 * monitor.c: Update.
3712
3713 2001-07-14 Andrew Cagney <ac131313@redhat.com>
3714
3715 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
3716 * mcore-tdep.c: Ditto.
3717 * sparc-tdep.c: Ditto.
3718 * sh-tdep.c: Ditto.
3719 * rs6000-tdep.c: Ditto.
3720 * ppc-linux-tdep.c: Ditto.
3721 * m68hc11-tdep.c: Ditto.
3722 * ia64-tdep.c: Ditto.
3723 * i386-tdep.c: Ditto.
3724 * arm-linux-tdep.c: Ditto.
3725 * hppa-tdep.c: Ditto.
3726 * h8500-tdep.c: Ditto.
3727 * fr30-tdep.c: Ditto.
3728 * arm-tdep.c: Ditto.
3729 * alpha-tdep.c: Ditto.
3730 * d30v-tdep.c: Ditto.
3731 * d10v-tdep.c: Ditto.
3732 * m32r-tdep.c: Ditto.
3733 * mips-tdep.c: Ditto.
3734 * v850-tdep.c: Ditto.
3735
3736 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
3737
3738 * top.c (readline_line_completion_function, noop_completer): Move
3739 from here...
3740 * completer.c (readline_line_completion_function, noop_completer):
3741 ...to here.
3742 * gdbcmd.h (readline_line_completion_function, noop_completer):
3743 Move declarations from here...
3744 * completer.h (readline_line_completion_function, noop_completer):
3745 ...to here.
3746 * corefile.c: Include completer.h.
3747 * source.c: Ditto.
3748 * symfile.c: Ditto.
3749 * Makefile.in: Update dependencies.
3750
3751 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
3752
3753 * go32-nat.c (go32_create_inferior): Support command lines longer
3754 than 126 characters.
3755
3756 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3757
3758 * NEWS: New target 68HC11/68HC12.
3759
3760 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3761
3762 * utils.c (query): Remove tui hacks; tui must use the query_hook.
3763 * top.c (command_loop): Remove tui insert_mode hacks; don't call
3764 tuiCleanUp because this must be made with atexit by tui.
3765 * symfile.c (symbol_file_command): Remove call to TUIDO
3766 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
3767 not necessary when using the selected frame hooks.
3768 (print_stack_frame_stub): Likewise.
3769 (print_frame_info_base): Likewise.
3770 (print_frame_info): Likewise.
3771 (up_silently_command): Likewise.
3772 (down_silently_command): Likewise.
3773 (show_stack_frame): Likewise for TUIDO.
3774 (select_frame): Likewise.
3775 (select_and_print_frame): Likewise.
3776 (stack_publish_stopped_with_no_frame): Remove.
3777 (select_and_maybe_print_frame): Remove.
3778 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
3779 must use the initialize ui hook.
3780 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
3781 selected frame hooks.
3782 * event-top.c (command_handler): Remove tui insert_mode hack.
3783 * defs.h: Remove TUIDO; Only include tui.h.
3784 * breakpoint.c (mention): Remove calls to TUIDO.
3785 (delete_breakpoint): Remove tui hacks; tui must install
3786 the breakpoint hooks.
3787
3788 2001-07-14 Mark Kettenis <kettenis@gnu.org>
3789
3790 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
3791 * config/i386/nm-linux.h: ...to here. Change comments about user
3792 area/struct a bit.
3793
3794 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
3795
3796 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
3797 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
3798
3799 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
3800
3801 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
3802 generate an internal error.
3803 (e7000_fetch_registers): Initialize variable 'wanted'.
3804 (e7000_wait): Initialize variable 'wanted_nopc'.
3805 (e7000_store_register): Fix sprintf compiler warnings.
3806 (sub2_from_pc): Ditto.
3807 (e7000_open): Close the descriptor, not the name.
3808 (e7000_load): Fix compiler warnings.
3809 (sub2_from_pc): Ditto.
3810 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
3811
3812 2001-07-13 Mark Kettenis <kettenis@gnu.org>
3813
3814 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
3815 <sys/sysctl.h>.
3816 (store_inferior_registers): Wrap long line.
3817 (i386bsd_dr_get_status): Fix typo in comment.
3818 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
3819 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
3820 (i386bsd_in_sigtramp): New prototype.
3821 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
3822 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
3823 (external) variables.
3824 (SIGCONTEXT_PC_OFFSET): Removed.
3825 (FRAME_SAVED_PC): New define.
3826 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
3827 (TDEPFILES): Add i386bsd-tdep.o.
3828
3829 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3830
3831 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
3832 definition.
3833
3834 2001-07-13 Mark Kettenis <kettenis@gnu.org>
3835
3836 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
3837 are no registered LWPs yet.
3838
3839 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3840
3841 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
3842 function.
3843 (CANNOT_STORE_REGISTER): Likewise.
3844
3845 2001-07-12 Keith Seitz <keiths@redhat.com>
3846
3847 * remote-rdp.c: Include "serial.h"
3848
3849 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3850
3851 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
3852 in HAVE_TERMIO/HAVE_TERMIOS cases.
3853
3854 2001-07-12 Mark Kettenis <kettenis@gnu.org>
3855
3856 * lin-lwp.c (stop_wait_callback): Add support for flushing
3857 signals. Use that in favour of the old code to get rid of
3858 superfluous SIGINTs.
3859 (lin_lwp_wait): Use the new support in stop_wait_callback to
3860 flush all but one SIGINT.
3861
3862 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
3863 to comment.
3864 (i386_store_return_value): Improve comments about storing
3865 floating-point return values.
3866
3867 * config/arm/xm-linux.h, config/i386/xm-linux.h,
3868 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
3869 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
3870 Removed. Taken care of by autoconf and terminal.h.
3871
3872 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
3873
3874 * mips-tdep.c (mips_type_needs_double_align): New function.
3875 (mips_push_arguments): Align o32 structs to even argument
3876 registers if necessary.
3877
3878 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3879
3880 * config/djgpp/fnchange.lst: Add entries for
3881 mips-linux-nat.c and mips-linux-tdep.c.
3882
3883 2001-07-12 Mark Kettenis <kettenis@gnu.org>
3884
3885 * config/powerpc/xm-linux.h: Fix corrupted file.
3886
3887 * configure.in: Add check for sigsetjmp.
3888 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
3889 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
3890 * configure, config.in: Regenerated.
3891
3892 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
3893
3894 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
3895 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3896 PR_REGNUM fields.
3897
3898 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
3899 skip_prologue_hard_way().
3900 (skip_prologue_hard_way): Make it a function pointer.
3901 (sh_print_register): Use function pointer do_pseudo_register,
3902 instead of sh_do_pseudo_register.
3903 (sh_do_registers_info): Ditto.
3904 (sh_gdbarch_init): Initialize do_pseudo_register.
3905 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
3906 (skip_prologue_hard_way): Update.
3907 (sh_gdbarch_init): Move setting of frame_chain,
3908 get_saved_register, init_extra_frame_info, push_arguments,
3909 extract_return_value, pop_frame, store_struct_return,
3910 extract_struct_value_address, use_struct_convention,
3911 init_extra_frame_info to before target specific settings.
3912 (sh_gdbarch_init): Initialize new tdep fields
3913 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
3914 PR_REGNUM.
3915 (sh_push_arguments): Use new gdbarch_tdep fields
3916 {ARG0,ARGLAST}_REGNUM.
3917 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
3918 sh_init_extra_frame_info, sh_push_return_address,
3919 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3920 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
3921 gdbarch_tdep->PR_REGNUM.
3922 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
3923
3924 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3925
3926 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
3927 from it. Move definitions of REALTIME_LO and REALTIME_HI above
3928 include.
3929
3930 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3931
3932 * MAINTAINERS: List myself for MIPS/Linux
3933 port.
3934
3935 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3936
3937 * gdbserver/remote-utils.c (remote_open): Only
3938 check for F_SETOWN if we had F_SETFL and FASYNC.
3939
3940 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
3941
3942 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
3943
3944 * config/m68k/linux.mh: Remove core-regset.o.
3945 * m68klinux-nat.c: Fix comment.
3946 (supply_gregset): Change argument to elf_gregset_t *.
3947 (supply_fpregset): Change argument to elf_fpregset_t *.
3948 (fetch_core_registers): New function.
3949 (linux_elf_core_fns): Define.
3950 (_initialize_m68k_linux_nat): New function.
3951
3952 2001-07-11 Andrew Cagney <ac131313@redhat.com>
3953
3954 * configure.tgt: Mark d10v as pure multi-arch.
3955 * config/d10v/tm-d10v.h: Delete file.
3956 * config/d10v/d10v.mt (TM_FILE): Delete.
3957
3958 2001-07-10 Andrew Cagney <ac131313@redhat.com>
3959
3960 * serial.h (typedef serial_t): Delete. Replace all references to
3961 serial_t with `struct serial *'.
3962 * serial.c: Update.
3963 * nindy-share/ttyflush.c: Update.
3964 * nindy-share/ttyflush.c: Update.
3965 * nindy-share/Onindy.c: Update.
3966 * nindy-share/nindy.c: Update.
3967 * remote-rdp.c: Update.
3968 * remote-sds.c: Update.
3969 * remote-st.c: Update.
3970 * remote-nindy.c: Update.
3971 * remote-mips.c: Update.
3972 * remote-e7000.c: Update.
3973 * remote-os9k.c: Update.
3974 * remote-nrom.c: Update.
3975 * remote-es.c: Update.
3976 * remote-array.c: Update.
3977 * ocd.c: Update.
3978 * mon960-rom.c: Update.
3979 * dsrec.c: Update.
3980 * inflow.c: Update.
3981 * ser-e7kpc.c: Update.
3982 * sparclet-rom.c: Update.
3983 * srec.h: Update.
3984 * ser-tcp.c: Update.
3985 * ser-go32.c: Update.
3986 * sparcl-tdep.c: Update.
3987 * w89k-rom.c: Update.
3988 * utils.c: Update.
3989 * sh3-rom.c: Update.
3990 * remote.c: Update.
3991 * ser-pipe.c: Update.
3992 * ser-unix.c: Update.
3993 * ser-unix.h: Update.
3994 * xmodem.c: Update.
3995 * xmodem.h: Update.
3996
3997 2001-07-11 J.T. Conklin <jtc@redback.com>
3998
3999 From Greg McGary <greg@mcgary.org>:
4000 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
4001 of SIGIO.
4002 (input_interrupt): Don't block on read, in case we got redundant
4003 SIGIO. Don't gripe about redundant SIGIO.
4004 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
4005 handler while waiting.
4006 * gdbserver/low-linux.c (mywait): Likewise.
4007 * gdbserver/low-nbsd.c (mywait): Likewise.
4008 * gdbserver/low-sparc.c (mywait): Likewise.
4009
4010 2001-07-11 Keith Seitz <keiths@redhat.com>
4011
4012 * infrun.c (print_stop_reason): Add missing uiout field
4013 "reason" for SIGNAL_RECEIVED case.
4014
4015 2001-07-11 Mark Kettenis <kettenis@gnu.org>
4016
4017 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
4018 Remove unused macro's.
4019
4020 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
4021 used.
4022
4023 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
4024
4025 * go32-nat.c (info_dos_cmdlist): New variable.
4026 (go32_info_dos_command): New function.
4027 (_initialize_go32_nat): Convert all DOS-specific commands into
4028 subcommands of "info dos". Suggested by Andrew Cagney
4029 <ac131313@redhat.com>.
4030
4031 2001-07-11 Mark Kettenis <kettenis@gnu.org>
4032
4033 * config/nm-linux.h: Fix comments.
4034
4035 * thread-db.c (enable_thread_event_reporting): Correct warning
4036 message about getting thread death breakpoint.
4037 Reported by John S Kallal <jskallal@home.com>.
4038
4039 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
4040 (i386_store_return_value): Frob FPU status and tag word to make
4041 sure the return value is the only value on the FPU stack.
4042
4043 * config/tm-linux.h: Do not include <signal.h>. Instead provide
4044 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
4045 already defined.
4046 * config/nm-linux.h: Include <signal.h>.
4047 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
4048 (__SIGRTMAX + 1) respectively.
4049
4050 2001-07-10 Andrew Cagney <ac131313@redhat.com>
4051
4052 * mcore-rom.c: Include "serial.h".
4053 * Makefile.in (mcore-rom.o): Depends on "serial.h".
4054
4055 2001-07-10 Andrew Cagney <ac131313@redhat.com>
4056
4057 * Makefile.in (remote-bug.o): Depends on serial.h.
4058 * remote-bug.c: Include "serial.h".
4059 * MAINTAINERS: Mark m88k target as buildable.
4060 * TODO: Update.
4061
4062 2001-07-10 Jim Blandy <jimb@redhat.com>
4063
4064 Clean up the D10V port so that GDB and the target program no
4065 longer disagree on how big pointers are.
4066 * findvar.c (value_from_register): Remove special case code for D10V.
4067 * printcmd.c (print_frame_args): Same.
4068 * valops.c (value_at, value_fetch_lazy): Same.
4069 * values.c (unpack_long): Same.
4070 * gdbarch.sh: Changes to effect the following:
4071 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
4072 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
4073 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
4074 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
4075 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
4076 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
4077 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
4078 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
4079 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
4080 gdbarch_d10v_convert_daddr_to_raw_ftype,
4081 gdbarch_d10v_convert_daddr_to_raw,
4082 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
4083 gdbarch_d10v_convert_iaddr_to_raw_ftype,
4084 gdbarch_d10v_convert_iaddr_to_raw,
4085 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
4086 * gdbarch.c: Delete the corresponding definitions.
4087 (struct gdbarch): Delete members d10v_make_daddr,
4088 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4089 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
4090 (startup_gdbarch): Remove initializers for the above.
4091 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
4092 more.
4093 * d10v-tdep.c (d10v_register_virtual_type): Rather that
4094 claiming the stack pointer and PC are 32 bits long (which they
4095 aren't), say that the stack pointer is an int16_t, and the
4096 program counter is a function pointer. This allows the rest
4097 of GDB to make the appropriate conversions between the code
4098 pointer format and real addresses.
4099 (d10v_register_convertible, d10v_register_convert_to_virtual,
4100 d10v_register_convert_to_raw): Delete function; no registers
4101 are convertible now, so we use
4102 generic_register_convertible_not instead.
4103 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
4104 methods.
4105 (d10v_push_arguments, d10v_extract_return_value): Remove special
4106 cases for code and data pointers.
4107 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
4108 the target agree on how large pointers are. Say that addresses
4109 are 32 bits long. Register the address_to_pointer and
4110 pointer_to_address conversion functions. Since no registers are
4111 convertible now, register generic_register_convertible_not as the
4112 gdbarch_register_convertible method instead of
4113 d10v_register_convertible. Remove registrations for
4114 d10v_register_convert_to_virtual,
4115 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
4116 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
4117 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
4118 gdbarch_d10v_convert_iaddr_to_raw.
4119
4120 * printcmd.c (print_scalar_formatted): If we are printing an
4121 address, remember that TARGET_ADDR_BIT is not always equal to
4122 TARGET_PTR_BIT.
4123
4124 * valops.c (value_cast): When casting a pointer to an integer,
4125 don't convert it to an address.
4126
4127 2001-07-10 Andrew Cagney <ac131313@redhat.com>
4128
4129 * remote-utils.h (struct serial): Declare as opaque. Remove
4130 include of "serial.h".
4131 * Makefile.in (remote_utils_h): Update.
4132
4133 * monitor.h (struct serial): Declare as opaque. Remove include of
4134 "serial.h".
4135 (struct monitor_ops): Replace serial_t with `struct serial *'.
4136 * monitor.c (monitor_desc): Ditto.
4137
4138 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
4139
4140 * mips-linux-tdep.c: New file.
4141 * mips-linux-nat.c: New file.
4142 * config/mips/linux.mh: New file.
4143 * config/mips/linux.mt: New file.
4144 * config/mips/xm-linux.h: New file.
4145 * config/mips/nm-linux.h: New file.
4146 * config/mips/tm-linux.h: New file.
4147 * configure.host: Recognize mips*-*-linux*.
4148 * configure.tgt: Likewise.
4149 * NEWS: Mention mips*-*-linux* port.
4150
4151 2001-07-09 Andrew Cagney <ac131313@redhat.com>
4152
4153 * serial.h (struct serial): Rename `struct _serial_t'.
4154 * serial.c (XMALLOC): Define.
4155 (serial_open): Update. Use XMALLOC.
4156 (serial_fdopen): Ditto.
4157
4158 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4159
4160 * gdbtypes.h (builtin_type_void_data_ptr): Rename
4161 builtin_type_ptr.
4162 * gdbtypes.c (builtin_type_void_data_ptr): Update.
4163 (build_gdbtypes): Update.
4164 (_initialize_gdbtypes): Update.
4165 * values.c (value_as_pointer): Update.
4166 * utils.c (host_pointer_to_address): Update.
4167 (address_to_host_pointer): Update.
4168
4169 2001-07-08 Andrew Cagney <ac131313@redhat.com>
4170
4171 * remote-udi.c (udi_wait): Make type, instead of name, of first
4172 parameter a ptid_t.
4173
4174 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4175
4176 * ser-mac.c: Make obsolete.
4177 * Makefile.in (ser-mac.o): Ditto.
4178
4179 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
4180
4181 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
4182 (read_memory_region, get_descriptor, display_descriptor)
4183 (go32_sldt, go32_sgdt, go32_sidt): New functions.
4184 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
4185 away `disable' from dos.h, since breakpoint.h defines an enum
4186 member of the same name, and GCC 2.7.2 barfs.
4187 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
4188 dos-gdt, and dos-idt, all of them in the "info" class
4189
4190 2001-07-07 Kevin Buettner <kevinb@redhat.com>
4191
4192 * procfs.c (create_procinfo): Allocate space for saved_entryset
4193 and saved_exitset.
4194 (destroy_one_procinfo): Free space allocated to saved_entryset
4195 and saved_exitset.
4196
4197 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4198
4199 * TODO (5.1): Update.
4200
4201 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4202
4203 * symtab.c (main_name): New function.
4204 (set_main_name): New function.
4205 * symtab.h: Declare.
4206 * TODO: Update
4207
4208 From 2000-03-05 Anthony Green <green@redhat.com>:
4209 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
4210 setting main_name.
4211 * blockframe.c (inside_main_func): Use main_name instead of
4212 "main".
4213 * symtab.c (find_main_psymtab): Ditto.
4214 * source.c (select_source_symtab): Ditto.
4215 * nlmread.c (nlm_symfile_read): Ditto.
4216 * rs6000-tdep.c (skip_prologue): Ditto.
4217
4218 2001-07-07 Andrew Cagney <ac131313@redhat.com>
4219
4220 * TODO: Convert most items into PRs.
4221
4222 2001-07-07 Mark Kettenis <kettenis@gnu.org>
4223
4224 * lin-lwp.c (status_to_str): New function.
4225 (lin_lwp_wait): Use it to print debug messages where appropriate.
4226
4227 2001-07-06 Michael Chastain <chastain@redhat.com>
4228
4229 * i387-tdep.c (print_i387_value): Fix pointer glitch.
4230
4231 2001-07-07 Mark Kettenis <kettenis@gnu.org>
4232
4233 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
4234 commented with "paranoia" into gdb_assert.
4235 (select_event_lwp_callback): Likewise.
4236 (cancel_breakpoints_callback): Bail out early if LP is the event
4237 LWP. Add comment about backup up breakpoints. Fix formatting and
4238 debug message.
4239 (select_event_lwp): Make solely repsonsible for switching event
4240 LWP. Fix formatting and remove bogus "ERROR" debug message.
4241 Don't backup breakpoints from here.
4242 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
4243 handle that. Only call select_event_lwp if we're not waiting for
4244 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
4245
4246 2001-07-06 Michael Snyder <msnyder@redhat.com>
4247
4248 * procfs.c (procfs_resume): Silence noisy warning.
4249
4250 2001-06-12 Michael Snyder <msnyder@redhat.com>
4251
4252 * lin-lwp.c: Prevent thread starvation by using a monte carlo
4253 method to choose which of several event threads to handle next.
4254
4255 (stop_wait_callback): Defer pushback of breakpoint events until
4256 later; add SIGTRAP events to the queue of unhandled events.
4257 Keep calling waitpid until SIGSTOP retrieved. If more than one
4258 non-SIGSTOP event is retrieved, push them back onto the process
4259 queue using kill.
4260 (count_events_callback, select_singlestep_lwp_callback,
4261 select_event_lwp_callback, cancel_breakpoints_callback,
4262 select_event_lwp): New functions. Implement monte carlo method
4263 for selecting which of several SIGTRAP threads to handle next.
4264 Push back the breakpoint event for all threads other than the
4265 selected one.
4266 (lin_lwp_wait): Call select_event_lwp to decide which of several
4267 sigtrapped lwps to handle next.
4268 (resume_callback): Disable code that attempts to handle
4269 step_resume breakpoints. Let core gdb handle this.
4270
4271 2001-07-06 Jim Blandy <jimb@redhat.com>
4272
4273 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
4274 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
4275 (build_gdbtypes): Initialize it.
4276 (_initialize_gdbtypes): Swap it.
4277
4278 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * mips-tdep.c (mips32_op): Correct offset.
4281 (itype_op): Likewise.
4282 (itype_rs): Fix formatting.
4283 (itype_immediate): Fix formatting.
4284 (jtype_op): Correct offset.
4285 (jtype_target): Fix formatting.
4286 (rtype_op): Correct offset.
4287 (rtype_rs): Fix formatting.
4288 (rtype_rt): Likewise.
4289 (rtype_rd): Likewise.
4290 (rtype_shamt): Likewise.
4291 (rtype_funct): Likewise.
4292
4293 (mips32_next_pc): Fix formatting and comments. Recognize
4294 coprocessor 1 branches. Check the correct field for BLT family
4295 branches. Use itype_rt instead of itype_rs for the second register
4296 of a BNE or BNEL branch. Move (unreachable) default case.
4297
4298 2001-07-04 Andrew Cagney <ac131313@redhat.com>
4299
4300 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
4301 (ui_out_is_mi_like_p): Declare.
4302 * ui-out.c (ui_out_is_mi_like_p): Define.
4303 (default_ui_out_impl): Initialize is_mi_like_p to zero.
4304 * cli-out.c (cli_ui_out_impl): Ditto.
4305 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
4306 (watchpoint_check, print_one_breakpoint, mention): Ditto.
4307 * infrun.c (print_stop_reason, normal_stop): Ditto.
4308
4309 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * mips-tdep.c (mips_software_single_step): New function.
4312 * config/mips/tm-mips.h: Add prototype for
4313 mips_software_single_step.
4314
4315 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
4316
4317 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
4318 of greg_t.
4319 (fill_gregset): Likewise.
4320
4321 2001-07-05 Andrew Cagney <ac131313@redhat.com>
4322
4323 * objfiles.c (open_mapped_file): Use lbasename instead of
4324 basename.
4325
4326 2001-07-05 Jim Blandy <jimb@redhat.com>
4327
4328 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
4329 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
4330 d10v_write_sp, d10v_write_fp, d10v_read_fp,
4331 d10v_push_return_address): Call the functions d10v_make_daddr,
4332 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
4333 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
4334 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
4335 D10V_CONVERT_DADDR_TO_RAW.
4336
4337 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
4338
4339 2001-07-05 Mark Kettenis <kettenis@gnu.org>
4340
4341 * config/i386/xm-go32.h (HOST_I386): Removed.
4342 * config/i386/xm-linux.h (HOST_I386): Removed.
4343
4344 2001-07-04 Mark Kettenis <kettenis@gnu.org>
4345
4346 * i387-tdep.c (print_i387_value): Add extra space after final full
4347 stop in comment.
4348
4349 2001-07-04 Andrew Cagney <ac131313@redhat.com>
4350
4351 * TODO (5.1): Update. Doco changes committed.
4352
4353 2001-06-29 Andrew Cagney <ac131313@redhat.com>
4354
4355 * config/arm/tm-arm.h: Include "floatformat.h".
4356
4357 2001-06-29 Andrew Cagney <ac131313@redhat.com>
4358
4359 * i387-tdep.c: Include "gdb_assert.h".
4360 (print_i387_value): Use extract_floating to extract the FP value
4361 from a zero padded local buffer.
4362
4363 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4364
4365 * TODO: Delete all thread items. The thread code was overhauled.
4366
4367 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
4368
4369 * memattr.c (create_mem_region): Move n to next memory region,
4370 to avoid infinite loop.
4371
4372 * memattr.h: Add copyright statement.
4373 * memattr.c: Ditto.
4374
4375 2001-07-04 Jim Blandy <jimb@redhat.com>
4376
4377 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
4378 (read_partial_die): Delete fourth argument; we return this info in
4379 the struct partial_die_info object itself now.
4380 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
4381 has_pc_info field of the partial die struct, rather than passing a
4382 variable by reference to read_partial_die.
4383
4384 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
4385 code in loop condition.
4386
4387 2001-07-03 Michael Snyder <msnyder@redhat.com>
4388
4389 * thread_db (find_new_threads_callback, thread_db_thread_alive,
4390 attach_thread): Update comments.
4391
4392 2001-06-29 Ken Whaley <ken@believe.com>
4393
4394 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
4395 to TD_THR_UNKNOWN when looking for defunct zombie threads.
4396 (thread_db_thread_alive): Ditto.
4397 (find_new_threads_callback): Ditto.
4398
4399 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
4400
4401 * MAINTAINERS: Add myself to the write-after-approval list.
4402
4403 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
4404
4405 * solib-svr4.c: Include "elf/mips.h".
4406 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
4407
4408 2001-07-02 Jim Blandy <jimb@redhat.com>
4409
4410 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
4411 dump_die_list, store_in_ref_table, follow_die_ref): Make these
4412 static; they're private functions.
4413
4414 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
4415
4416 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
4417
4418 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
4419
4420 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
4421
4422 2001-06-29 Andrew Cagney <ac131313@redhat.com>
4423
4424 * config/djgpp/fnchange.lst: Sort.
4425
4426 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4427
4428 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
4429 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
4430
4431 2001-06-29 Andreas Jaeger <aj@suse.de>
4432
4433 * MAINTAINERS: Add myself to the write-after-approval list.
4434
4435 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4436
4437 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
4438 (get_hex_word): Don't use HOST_BYTE_ORDER.
4439 (array_fetch_registers): Add variable ``reg''. Use
4440 store_unsigned_integer to byte-swap the register. Delete unused
4441 local ``regs''.
4442
4443 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4444
4445 * MAINTAINERS: Add Per Bothner to Java maintainers.
4446
4447 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4448
4449 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
4450 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
4451 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
4452 * TODO: Update.
4453 * MAINTAINERS: Update. arm-elf builds.
4454
4455 2001-06-28 Jim Blandy <jimb@redhat.com>
4456
4457 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
4458
4459 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
4460 d10v_breakpoint_from_pc, d10v_register_byte,
4461 d10v_register_raw_size, d10v_register_virtual_size,
4462 d10v_register_virtual_type, d10v_register_convertible,
4463 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
4464 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4465 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
4466 d10v_store_struct_return, d10v_store_return_value,
4467 d10v_extract_struct_value_address, d10v_frame_saved_pc,
4468 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
4469 d10v_frame_chain, d10v_frame_init_saved_regs,
4470 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
4471 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
4472 d10v_push_return_address, d10v_push_arguments,
4473 d10v_extract_return_value): Make these functions static.
4474
4475 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4476
4477 From Fernando Nasser:
4478 * infrun.c (handle_inferior_event): Handle "nexti" inside function
4479 prologues.
4480
4481 2001-06-28 Michael Snyder <msnyder@redhat.com>
4482
4483 * infrun.c (handle_inferior_event): Replace prev_pc test in all
4484 calls to bpstat_stop_status (removed in 1999-09-24). This test
4485 helps distinguish stepping over a breakpoint trap from stepping
4486 thru a jump to the instruction after a breakpoint trap.
4487 (handle_inferior_event): Don't bother writing the PC if
4488 DECR_PC_AFTER_BREAK is zero (optimization).
4489 * breakpoint.c (bpstat_stop_status): Add comment explaining the
4490 purpose and usage of the "not_a_breakpoint" argument in computing
4491 the breakpoint address.
4492
4493 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4494
4495 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4496 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
4497 (setreg_resp_delim_pattern): Likewise.
4498 (setmem_resp_delim_fastmap): New buffer.
4499 (setreg_resp_delim_fastmap): Likewise.
4500 (monitor_open): Initialize above regexp if they are defined.
4501 (monitor_write_memory): Use regexp to check the result of write.
4502 (monitor_store_register): Likewise to check result of register set.
4503
4504 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4505
4506 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
4507 * coff-solib.c: Include symfile.h and objfiles.h to make
4508 OBJF_SHARED visible.
4509
4510 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4511
4512 * configure.in (--enable-gdbmi): Enable by default.
4513 * configure: Regenerate.
4514 * TODO: Update.
4515 * NEWS: Update
4516
4517 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
4518
4519 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
4520 explaining the consequences of always returning zero. No code
4521 change.
4522
4523 2001-06-28 Andrew Cagney <ac131313@redhat.com>
4524
4525 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
4526 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
4527 to TARGET_SIGNAL_REALTIME_127.
4528 * target.c (struct signals): Add SIG63 to SIG127.
4529 (target_signal_from_host): Handle up to 127 signals.
4530 (do_target_signal_to_host): Likewise.
4531
4532 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4533
4534 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
4535 from possibly unsigned char.
4536
4537 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4538
4539 * ser-ocd.c: Delete file.
4540 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
4541 (ser-ocd.o): Delete target.
4542 * TODO: Update.
4543 * NEWS: Update.
4544
4545 2001-06-27 Andrew Cagney <ac131313@redhat.com>
4546
4547 * MAINTAINERS (Write After Approval): Sort.
4548 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
4549
4550 2001-06-26 Andrew Cagney <ac131313@redhat.com>
4551
4552 * breakpoint.c (breakpoint_1): Always output the breakpoint
4553 headings. Leave it to ui-out to decide which
4554
4555 2001-06-25 Andrew Cagney <ac131313@redhat.com>
4556
4557 * stack.c (print_frame): For ui_out, output a list of arguments.
4558
4559 2001-06-25 Kevin Buettner <kevinb@redhat.com>
4560
4561 * MAINTAINERS (paper trail): Update.
4562
4563 2001-06-25 Michael Snyder <msnyder@redhat.com>
4564
4565 * infrun.c: Eliminate the "thread_step_needed" state variable,
4566 and replace it with a relatively simple test in resume.
4567 (resume): Replace thread_step_needed logic with a test for
4568 stepping, breakpoint_here_p and breakpoints_inserted.
4569 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
4570 (proceed): Discard thread_step_needed logic.
4571 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
4572 Discard thread_step_needed logic.
4573
4574 2001-06-24 Fernando Nasser <fnasser@redhat.com>
4575
4576 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
4577 * rdi-share/host.h: Add missing parenthesis in conditional.
4578
4579 2001-06-22 J.T. Conklin <jtc@redback.com>
4580
4581 * configure.in: include nlist.h when checking for member som_addr
4582 in struct so_map.
4583 * configure: regenerate.
4584
4585 2001-06-21 Keith Seitz <keiths@redhat.com>
4586
4587 * cli-out.c (cli_out_new): Initialize new structure member
4588 "suppress_output".
4589
4590 2001-06-20 Andrew Cagney <ac131313@redhat.com>
4591
4592 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
4593 (table_header_ftype): Ditto.
4594 * cli-out.c (cli_table_header): Update.
4595 * ui-out.c (ui_out_table_header): Update.
4596 (uo_table_header): Update.
4597 (default_table_header): Update.
4598 (append_header_to_list): Update.
4599 (struct ui_out_header): Add field ``col_name''.
4600 (append_header_to_list): Use xstrdup. Initialize col_name.
4601 * breakpoint.c (breakpoint_1): Pass COL_NAME to
4602 ui_out_table_header.
4603
4604 2001-06-19 Andrew Cagney <ac131313@redhat.com>
4605
4606 * cli-out.c: Include "gdb_assert.h'.
4607 (struct ui_out_data): Add field ``suppress_output.
4608 (cli_table_begin): When NR_ROWS is zero, suppress_output.
4609 (cli_table_end): Clear suppress_output.
4610 (cli_table_body): Check suppress_output.
4611 (cli_table_header, cli_begin): Ditto.
4612 (cli_end, cli_field_int, cli_field_skip): Ditto.
4613 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
4614 (cli_text, cli_message, cli_wrap_hint): Ditto.
4615 * breakpoint.c (breakpoint_1): Close the ui_out table before
4616 printing the breakpoint not found message.
4617
4618 2001-06-18 Andrew Cagney <ac131313@redhat.com>
4619
4620 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
4621 (default_table_begin): Ditto.
4622 (uo_table_begin): Ditto.
4623 * cli-out.c (cli_table_begin): Ditto.
4624 * ui-out.h (ui_out_table_begin): Update
4625 (table_begin_ftype): Update.
4626 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
4627 ui_out_table_begin.
4628
4629 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4630
4631 * breakpoint.c (breakpoint_1): Restructure. Compute the
4632 nr_printable_breakpoints. Move the header output to before the
4633 main print breakpoints loop.
4634 (user_settable_breakpoint): New function.
4635
4636 2001-06-18 Andrew Cagney <ac131313@redhat.com>
4637
4638 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
4639 "mi", "mi0" and "mi1".
4640
4641 2001-06-17 Andrew Cagney <ac131313@redhat.com>
4642
4643 * gdbarch.sh: Generate an error when conflicting macro
4644 definitions. Generate an error when both pure multi-arch and
4645 "tm.h".
4646 * gdbarch.h, gdbarch.c: Regenerate.
4647 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
4648
4649 2001-06-17 Andrew Cagney <ac131313@redhat.com>
4650
4651 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
4652 GDB_MULTI_ARCH_PARTIAL from two.
4653
4654 2001-06-17 Fernando Nasser <fnasser@redhat.com>
4655
4656 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
4657 * cli/cli-script.c (free_command_lines): Reset list pointer.
4658
4659 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4660
4661 * arch-utils.c (init_frame_pc_default): New function
4662 * arch-utils.h (init_frame_pc_default): Declare.
4663 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
4664 not init_frame_pc_noop.
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
4667 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
4668 init_frame_pc_noop.
4669
4670 2001-06-16 Andrew Cagney <ac131313@redhat.com>
4671
4672 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
4673
4674 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4675
4676 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
4677 (CANNOT_STORE_REGISTER): Ditto.
4678 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
4679 (CANNOT_STORE_REGISTER): Ditto.
4680 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
4681 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
4682 * arch-utils.h (cannot_register_not): Define.
4683 * arch-utils.c (cannot_register_not): Declare.
4684
4685 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4686
4687 * gdbarch.sh: Clarify pre/post default
4688 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
4689 * blockframe.c (get_prev_frame): Remove #ifdef from around
4690 INIT_FRAME_PC_FIRST call.
4691 * arch-utils.c (init_frame_pc_noop): Define.
4692 * arch-utils.h (init_frame_pc_noop): Declare.
4693 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
4694 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
4695 * mips-tdep.c (mips_init_frame_pc_first): Make static.
4696 (mips_gdbarch_init): Initialize init_frame_pc_first.
4697 (mips_dump_tdep): Update.
4698
4699 2001-06-15 Michael Snyder <msnyder@redhat.com>
4700
4701 * infrun.c (context_switch): New function. Abstract the operation
4702 of saving and restoring infrun's state when switching threads.
4703 (handle_inferior_event): Normalize the handling of the 'thread hop'
4704 event (when the wrong thread hits a thread-specific breakpoint,
4705 and we need to solo-step that thread past the breakpoint).
4706 Call keep_going, instead of target_resume. Handle the subsequent
4707 singlestep-trap as a normal event instead of just resuming.
4708
4709 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4710
4711 * arch-utils.c (core_addr_identity): New function. Rename
4712 default_convert_from_func_ptr_addr.
4713 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
4714 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
4715 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
4716 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
4717 * mips-tdep.c (mips_addr_bits_remove): Make static.
4718 (mips_gdbarch_init): Initialize addr_bits_remove.
4719
4720 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4721
4722 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
4723 * configure.tgt: Add S/390 31 & 64 bit target configuration.
4724 * configure.host: Ditto for host.
4725
4726 2001-06-15 Andrew Cagney <ac131313@redhat.com>
4727
4728 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
4729 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
4730 predicate.
4731 * gdbarch.h, gdbarch.c: Regenerate.
4732 * values.c (value_being_returned): Change the reference to
4733 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
4734
4735 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
4736
4737 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
4738 Write After Approval list.
4739
4740 2001-06-14 Michael Snyder <msnyder@redhat.com>
4741
4742 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
4743 set_remote_protocol_qSymbol_packet_cmd): New functions.
4744 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
4745 (remote_check_symbols): New function. Implement qSymbol packet,
4746 allowing target to request symbol lookup service from gdb.
4747 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
4748 allowing symbol lookup from exec_bfd on connection to target.
4749 (remote_new_objfile): New function. Catch new objfile notifications
4750 from shared library module, and call remote_check_symbols.
4751 (_initialize_remote): Hook remote_new_objfile into the shared
4752 library notification chain. Add "set remote symbol-lookup" command.
4753
4754 2001-06-14 Keith Seitz <keiths@redhat.com>
4755
4756 * tracepoint.c (trace_command): We now have tracepoint
4757 events. Get rid of those ugly hooks.
4758 (tracepoint_operation): Likewise.
4759 (trace_pass_command): Likewise.
4760
4761 2001-06-13 Michael Snyder <msnyder@redhat.com>
4762
4763 * gdbthread.h (struct thread_info): Add new fields:
4764 current_line, current_symtab, step_sp, for saved infrun state.
4765 * thread.c (save_infrun_state, load_infrun_state): Save and
4766 restore current_line, current_symtab, and step_sp.
4767 (add_thread): Rather than adding assignments to initialize
4768 the new fields, just use memset (tp, 0, sizeof (*tp).
4769 This way future new fields will not be overlooked.
4770 * infrun.c (handle_inferior_event): Save and restore save_sp,
4771 current_line, and current_symtab when switching threads.
4772
4773 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
4774
4775 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
4776 testsuite/gdb.mi.
4777
4778 2001-06-11 Andrew Cagney <ac131313@redhat.com>
4779
4780 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
4781 (lookup_partial_symtab, file_matches): Ditto.
4782 (make_source_files_completion_list): Ditto.
4783 (make_file_symbol_completion_list): Ditto. Make local char*
4784 variable ``tail'' constant.
4785 (make_source_files_completion_list): Ditto with ``base_name''.
4786 * source.c (open_source_file): Use lbasename. Make ``p'' const
4787 char *.
4788
4789 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
4790
4791 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
4792 (SLASH_STRING): Remove unused definitions.
4793 * config/i386/xm-cygwin.h: Likewise.
4794
4795 2001-06-12 Andrew Cagney <ac131313@redhat.com>
4796
4797 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
4798 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
4799 * ui-out.h: Update declarations.
4800
4801 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
4802
4803 * source.c (openp): Make parameters ``path'' and ``string''
4804 constant.
4805 (openp): Use alloca to safely duplicate ``string''. Make local
4806 variables ``p'' and ``p1'' constant. Delete char* casts.
4807 * defs.h: Update.
4808
4809 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
4810 (lookup_symtab, lookup_partial_symtab): Ditto.
4811 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
4812
4813 2001-06-11 Andrew Cagney <ac131313@redhat.com>
4814
4815 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
4816 (ui_out_table_header, ui_out_field_int): Ditto.
4817 (ui_out_field_core_addr, ui_out_field_string): Ditto.
4818 (ui_out_field_stream, ui_out_field_fmt): Ditto.
4819 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
4820 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
4821 (ui_out_field_core_addr, ui_out_field_stream): Update.
4822 (ui_out_field_string, ui_out_field_fmt): Update.
4823 (ui_out_text, ui_out_message): Update.
4824 (append_header_to_list): Make char* parameters constant.
4825 (uo_table_header, uo_table_begin): Ditto.
4826 (uo_field_int, uo_field_skip): Ditto.
4827 (uo_field_string, uo_field_fmt): Ditto.
4828 (uo_text, uo_message): Ditto.
4829
4830 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
4831
4832 * completer.c (gdb_completer_loc_break_characters): New variable.
4833 (line_completion_function): If we are completing on locations,
4834 back up the start of word pointer past all characters which can
4835 appear in a location spec.
4836 (location_completer): New function.
4837
4838 * completer.h: Add prototype for location_completer.
4839
4840 * symtab.c (make_source_files_completion_list)
4841 (add_filename_to_list, not_interesting_fname): New functions.
4842 (filename_seen): New function, body extracted from
4843 output_source_filename.
4844 (output_source_filename): Call filename_seen to check if the file
4845 was already printed.
4846 (make_symbol_completion_list): If TEXT includes a
4847 double-quoted string, return an empty list, not NULL.
4848 (make_file_symbol_completion_list): New function, similar to
4849 make_symbol_completion_list but with an additional argument
4850 SRCFILE.
4851
4852 * symtab.h (make_file_symbol_completion_list)
4853 (make_source_files_completion_list): Add prototypes.
4854
4855 * breakpoint.c (_initialize_breakpoint): Make location_completer
4856 be the completion function for all commands which set breakpoints
4857 and watchpoints.
4858 (top-level): #include "completer.h".
4859
4860 * tracepoint.c (_initialize_tracepoint): Make location_completer
4861 be the completion function for the "trace" command.
4862 (top-level): #include "completer.h".
4863
4864 * printcmd.c (_initialize_printcmd): Make location_completer be
4865 the completion function for the "print", "inspect", "call", and
4866 "disassemble" commands.
4867 (top-level): #include "completer.h".
4868
4869 * infcmd.c (_initialize_infcmd): Make location_completer be the
4870 completion function for the "go", "jump", and "until" commands.
4871 (top-level): #include "completer.h".
4872
4873 2001-06-10 Christopher Faylor <cgf@redhat.com>
4874
4875 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
4876 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
4877 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
4878 * defs.h: Ditto.
4879 * m32r-rom.c: Ditto.
4880 * p-exp.y: Ditto.
4881 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
4882 faster compilation.
4883 (get_ds_base): Remove _MSC_VER version of this function.
4884 * nindy-share/ttyflush.c: Ditto.
4885 * rdi-share/host.h: Ditto.
4886 * ser-go32.c (dos_readchar): Remove call to obsolete function.
4887 * remote-sim.c (gdb_os_poll_quit): Ditto.
4888 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
4889
4890 * main.c (captured_main): Eliminate special Cygwin checks.
4891 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
4892
4893 2001-06-09 Andrew Cagney <ac131313@redhat.com>
4894
4895 * Makefile.in (gdbcmd_h): Add ui_out_h.
4896 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
4897 (thread.o, top.o): Ditto.
4898
4899 * ui-out.h (table_begin_ftype): Make string parameters constant.
4900 (table_header_ftype): Ditto.
4901 (field_int_ftype): Ditto.
4902 (field_skip_ftype): Ditto.
4903 (field_string_ftype): Ditto.
4904 (field_fmt_ftype): Ditto.
4905 (text_ftype): Ditto.
4906 (message_ftype): Ditto.
4907 * cli-out.c (cli_table_begin): Ditto.
4908 (cli_table_header): Ditto.
4909 (cli_field_int): Ditto.
4910 (cli_field_skip): Ditto.
4911 (cli_field_string): Ditto.
4912 (cli_field_fmt): Ditto.
4913 (cli_text): Ditto.
4914 (cli_message): Ditto.
4915 (out_field_fmt): Ditto.
4916 * ui-out.c (default_table_begin): Ditto.
4917 (default_table_header): Ditto.
4918 (default_field_int): Ditto.
4919 (default_field_skip): Ditto.
4920 (default_field_string): Ditto.
4921 (default_field_fmt): Ditto.
4922 (default_text): Ditto.
4923 (default_message): Ditto.
4924
4925 2001-06-08 Michael Snyder <msnyder@redhat.com>
4926
4927 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
4928 remove_breakpoint, so that the subsequent test for
4929 bpt->inserted will succeed, and duplicates will be fixed up.
4930
4931 2001-06-08 Per Bothner <per@bothner.com>
4932
4933 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
4934
4935 2001-06-07 Keith Seitz <keiths@redhat.com>
4936
4937 * tracepoint.c (tracepoint_opertation): Add ui event
4938 notifications.
4939 (trace_pass_command): Ditto.
4940
4941 2001-06-07 Andrew Cagney <ac131313@redhat.com>
4942
4943 * MAINTAINERS (Write After Approval): Note the entry criteria.
4944 (HP/PA): Jeff Law stepped down
4945
4946 2001-06-07 Jim Blandy <jimb@redhat.com>
4947
4948 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
4949 variable values as operators.
4950
4951 2001-06-07 Keith Seitz <keiths@redhat.com>
4952
4953 * gdb-events.sh: Fix quote escaping which was obsoleted
4954 by last patch.
4955
4956 2001-06-07 Keith Seitz <keiths@redhat.com>
4957
4958 * gdb-events.sh: Make if statements and tests
4959 a little more portable.
4960 Don't use shell's echo command to put strings containing
4961 escaped characeters into a file -- different flavors of /bin/sh
4962 require differnt levels of escaping. Use cat <<EOF instead.
4963 Our internal field separator is a colon. Change all
4964 commands which assume it is a space.
4965
4966 2001-06-06 Mark Kettenis <kettenis@gnu.org>
4967
4968 * lin-lwp.c (struct lwp_info): Add member `resumed'.
4969 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
4970 LWP it's called for.
4971 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
4972 SIGSTOP is reported.
4973 (resume_clear_callback): New function.
4974 (resume_set_callback): New function.
4975 (lin_lwp_resume): Mark all LWP's that we're going to resume as
4976 resumed, and unmark all others.
4977 (status_callback): Only report a pending wait status if we pretend
4978 that LP has been resumed.
4979 (resumed_callback): New function.
4980 (lin_lwp_wait): Add assertions to check that LWP's are properly
4981 marked as resumed. Partially revert 2001-05-25 patch by Michael
4982 Snyder: do not resume all threads. Add comment explaining the
4983 problems associated with this bit of code.
4984
4985 2001-06-07 Keith Seitz <keiths@redhat.com>
4986
4987 * MAINTAINTERS: Syd Polk is stepping down from
4988 maintaining libgui. I am replacing him.
4989
4990 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
4991
4992 * config/mips/tm-irix6.h: New file.
4993
4994 * config/mips/irix6.mh: New file.
4995
4996 * config/mips/irix6.mt: New file.
4997
4998 * config/mips/xm-irix6.h: New file.
4999
5000 * config/mips/nm-irix6.h: New file.
5001
5002 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
5003 disassembler info in tm_print_insn_info as appropriate for the N32
5004 ABI. Force N32 ABI to be the default if the CPU is R8000 or
5005 R10000.
5006
5007 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
5008
5009 * configure.host (mips*-sgi-irix6*): Ditto.
5010
5011 2001-06-07 Andrew Cagney <ac131313@redhat.com>
5012
5013 * gnu-v3-abi.c: Include "gdb_assert.h".
5014 (build_gdb_vtable_type): Replace abort() with gdb_assert().
5015
5016 2001-06-06 Jim Blandy <jimb@redhat.com>
5017
5018 * cp-abi.h: Rearrange code to put documentation comments above the
5019 functions we export. The actual function table itself simply
5020 refers to those functions. Minor doc fixes.
5021
5022 * gdbarch.sh: Changes to effect the following:
5023 * gdbarch.c (initialize_non_multiarch): New function.
5024 * gdbarch.h (initialize_non_multiarch): New declaration.
5025 * arch-utils.c (initialize_current_architecture): For
5026 non-multiarch configurations, call initialize_non_multiarch.
5027
5028 2001-06-06 Andrew Cagney <ac131313@redhat.com>
5029
5030 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
5031 declaration.
5032 (compare_symbols): Ditto.
5033
5034 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
5035
5036 * arch-utils.c (generic_prepare_to_proceed): Allow for having
5037 stopped due to a Ctrl-C as well as breakpoints.
5038
5039 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
5040 support thread switches after Ctrl-C.
5041 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
5042 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
5043 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
5044
5045 2001-06-06 Jim Blandy <jimb@redhat.com>
5046
5047 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
5048 per-architecture data should be registered at initialization time,
5049 before any gdbarch objects get used, so the generality is
5050 unnecessary.
5051
5052 2001-06-06 Keith Seitz <keiths@redhat.com>
5053
5054 * gdb-events.sh (function_list): Add tracepoint_create,
5055 tracepoint_delete, and tracepoint_modify events.
5056 * gdb-events.c: Regenerated.
5057 * gdb-events.h: Regenerated.
5058
5059 2001-06-06 Keith Seitz <keiths@redhat.com>
5060
5061 * gdb-events.sh: Update copyrights.
5062 Change free to xfree.
5063 * gdb-events.c: Regenerated.
5064 * gdb-events.h: Regenerated.
5065
5066 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
5067
5068 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
5069 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
5070 * completer.c: Ditto.
5071 * cli/cli-cmds.c (cd_command): Ditto.
5072
5073 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
5074
5075 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
5076 (mips_set_processor_type_command): Remove unused variable j.
5077 (mips_breakpoint_from_pc): Declare breakpoint instruction
5078 sequences as unsigned char, to avoid compiler warnings.
5079
5080 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
5081 instead of system-specific define's like _WIN32 and __MSDOS__.
5082 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
5083 ROOTED_P.
5084 (top-level): #include "filenames.h".
5085
5086 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
5087 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
5088 (top-level): #include "filenames.h".
5089
5090 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
5091 (SLASH_STRING): Define only for _WIN32.
5092
5093 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
5094 __MSDOS_.
5095
5096 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
5097 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
5098 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
5099 (top-level): #include "filenames.h".
5100
5101 * go32-nat.c (go32_wait): Change the return value to ptid_t.
5102
5103 * config/djgpp/fnchange.lst: Add two new files in the
5104 gdb/testsuite/gdb.c++/ directory to the remapped names.
5105
5106 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
5107
5108 2001-06-01 Jim Blandy <jimb@redhat.com>
5109
5110 Expand the gdbarch per-architecture data vector as needed, rather
5111 than requiring that all per-architecture data be registered before
5112 the first gdbarch object is allocated.
5113 * gdbarch.sh: Changes to effect the following:
5114 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
5115 declarations and definitions.
5116 (check_gdbarch_data): New function, and declaration.
5117 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
5118 zero is good enough.
5119 (free_gdbarch_data): Tolerate a null data pointer. Free only
5120 those data items gdbarch->data actually has allocated.
5121 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
5122 (gdbarch_update_p): No need to call init_gdbarch_data.
5123
5124 2001-06-01 Kevin Buettner <kevinb@redhat.com>
5125
5126 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
5127 on types that we wish to recurse on.
5128 (slot_alignment_is_next_even): New function.
5129 (ia64_push_arguments): Call slot_alignment_is_next_even() to
5130 examine the type in order to decide if it's necessary to skip
5131 an odd slot.
5132
5133 2001-06-01 Michael Snyder <msnyder@redhat.com>
5134
5135 * thread.c (delete_step_resume_breakpoint): New function.
5136 Maintain internal consistency of the thread list while deleting
5137 a step_resume_breakpoint.
5138 * gdbthread.h (delete_step_resume_breakpoint): Export.
5139 * breakpoint.c (bpstat_find_step_resume_breakpoint):
5140 Make thread-aware: don't return a step_resume_breakpoint
5141 for the wrong thread.
5142 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
5143 instead of delete_breakpoint_current_contents.
5144 (fetch_inferior_event): Ditto.
5145 (handle_inferior_event): Call delete_step_resume_breakpoint
5146 instead of delete_breakpoint.
5147 * infrun.c (handle_inferior_event): After singlestepping over a
5148 thread-specific breakpoint, use currently_stepping() to decide
5149 whether to step or continue.
5150
5151 2001-06-01 Jim Blandy <jimb@redhat.com>
5152
5153 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
5154 these static --- there's no reason other files should use these.
5155
5156 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
5157 Fix memory leak.
5158
5159 * partial-stab.h: New complaint: function_outside_compilation_unit.
5160 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
5161 complain, and don't try to set pst's start address.
5162
5163 2001-05-31 Kevin Buettner <kevinb@redhat.com>
5164
5165 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
5166 match the location at which the kernel is placing the sigcontext
5167 struct.
5168
5169 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
5170 (refine_prologue_limit): New function.
5171 (examine_prologue): Further limit number of instructions
5172 scanned by calling refine_prologue_limit(). Revise way in
5173 which the end of prologue address is computed for frameless
5174 functions.
5175
5176 2001-05-29 Christopher Faylor <cgf@redhat.com>
5177
5178 * partial-stab.h: Revert previous patch.
5179
5180 2001-05-29 Christopher Faylor <cgf@redhat.com>
5181
5182 * partial-stab.h: Consistently guard against pst being NULL.
5183
5184 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
5185
5186 * symfile.c (compare_psymbols, compare_symbols): Declare using
5187 PTR, as in the definition.
5188 * minsyms.c (compare_minimal_symbols): Likewise.
5189 * coffread.c (find_targ_sec): Likewise.
5190 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
5191 * mipsread.c (alphacoff_locate_sections): Likewise.
5192 * mdebugread.c (compare_blocks): Likewise.
5193
5194 2001-05-25 Nick Duffek <nsd@redhat.com>
5195
5196 * solib.c (update_solib_list): Move target_resize_to_sections()
5197 into solib_map_sections() loop.
5198 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
5199 bfd_get_arch_size() fails.
5200
5201 2001-05-25 Nick Duffek <nsd@redhat.com>
5202
5203 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
5204 solib-osf.o.
5205 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
5206 with solib-osf.o and solib.o.
5207 * config/alpha/alpha-osf2.mh: Likewise.
5208 * config/alpha/alpha-osf3.mh: Likewise.
5209 * solib-osf.c: New file, renamed and largely rewritten from
5210 osfsolib.c.
5211
5212 2001-05-25 Michael Snyder <msnyder@redhat.com>
5213
5214 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
5215 to consume the SIGSTOP generated by PTRACE_ATTACH.
5216 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
5217 try again to get the SIGSTOP event.
5218 (lin_lwp_wait): Resume all threads when ignoring a signal.
5219 This will insure that newly attached threads get resumed.
5220 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
5221 * remote.c (remote_write_bytes): Update 'p' packet pointer.
5222
5223 2001-05-25 Jim Blandy <jimb@redhat.com>
5224
5225 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
5226 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
5227 useful value, then we should fix that instead.
5228
5229 2001-05-24 Nick Duffek <nsd@redhat.com>
5230
5231 * solist.h (struct so_list): Document the requirement that
5232 current_sos initialize some fields to 0.
5233
5234 2001-05-24 Mark Kettenis <kettenis@gnu.org>
5235
5236 * gnu-nat.c: Include <ctype.h>.
5237 (gnu_pid_to_exec_file): Add PID parameter.
5238 (set_sig_thread_cmd): Use PIDGET on return value from
5239 thread_id_to_pid.
5240 (proc_string): Use MERGEPID to construct argument to
5241 pid_to_thread_id.
5242
5243 2001-05-22 Kevin Buettner <kevinb@redhat.com>
5244
5245 * breakpoint.c (breakpoint_address_is_meaningful): New function.
5246 (check_duplicates): Don't compare non-meaningful addresses.
5247
5248 2001-05-22 Michael Snyder <msnyder@redhat.com>
5249
5250 * thread-db.c: Allow for defunct zombie threads.
5251 (attach_thread): Do not attempt to attach zombie thread.
5252 (thread_db_thread_alive): Return false for defunct zombie thread.
5253 (find_new_threads_callback): Don't add defunct zombie thread to list.
5254
5255 2001-05-22 Jim Blandy <jimb@redhat.com>
5256
5257 Add support for the GNU V3 C++ ABI.
5258 (Includes changes by Dan Berlin.)
5259
5260 * gnu-v3-abi.c: New file.
5261 * minsyms.c: #include "value.h" and "cp-abi.h".
5262 (install_minimal_symbols): Check the minimal symbol table for
5263 symbols that look mangled in the V3 style, and select the V3 ABI
5264 if we find any.
5265 * Makefile.in (SFILES): Add gnu-v3-abi.c.
5266 (COMMON_OBS): Add gnu-v3-abi.o.
5267 (gnu-v3-abi.o): Add new rule.
5268 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
5269
5270 2001-05-21 Jim Blandy <jimb@redhat.com>
5271
5272 * values.c (value_primitive_field): If we're extracting a base
5273 class, then the type of the result should be the base class being
5274 extracted, not the type of which it is a base class.
5275
5276 * value.h (struct value): Doc fix, and rearrange members to place
5277 them near their explanations.
5278
5279 2001-05-21 Michael Snyder <msnyder@redhat.com>
5280
5281 * remote.c (remote_async_wait): Added new variable fieldsize.
5282 Add fieldsize (return value of hex2bin) to string pointer p.
5283
5284 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
5285
5286 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
5287 (m68hc11_analyze_instruction): Update the pc correctly.
5288 (m68hc11_guess_from_prologue): Take into account the stack correction
5289 for the saving address.
5290
5291 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
5292
5293 Changes by Jim Ingham:
5294
5295 * values.c (value_change_enclosing_type): New function. If the
5296 new enclosing type is larger than the old one, we need to allocate
5297 more space.
5298 * value.h: Add value_change_enclosing_type prototype.
5299 * valops.c (value_cast): Use it.
5300 (value_assign): Use it.
5301 (value_addr): Use it.
5302 (value_ind): Use it.
5303 (value_full_object): Use it.
5304
5305 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
5306
5307 * values.c (value_static_field): Handle static fields that have a
5308 constant value.
5309
5310 2001-05-17 Michael Snyder <msnyder@redhat.com>
5311
5312 * blockframe.c (create_new_frame): Zero all the fields via memset,
5313 rather than zeroing them one by one.
5314
5315 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
5316
5317 * top.c (user_args): Remove unused declaration.
5318
5319 2001-05-16 Michael Snyder <msnyder@redhat.com>
5320
5321 * infcmd.c (do_registers_info): Move alloca outside of loop.
5322
5323 2001-05-15 John S Kallal <jskallal@home.com>
5324
5325 * remote.c (remote_wait): Added new variable fieldsize.
5326 Add fieldsize (return value of hex2bin) to string pointer p.
5327
5328 2001-05-15 Mark Kettenis <kettenis@gnu.org>
5329
5330 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
5331 info.bfd_arch_info.
5332
5333 2001-05-14 Kevin Buettner <kevinb@redhat.com>
5334
5335 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
5336 Adjust format strings for printing LWPs to account for the fact
5337 that the type returned by GET_LWP() is now a long instead of an
5338 int.
5339
5340 2001-05-14 Kevin Buettner <kevinb@redhat.com>
5341
5342 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
5343 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
5344 (ptid_get_tid, ptid_equal): New function declarations.
5345 * infrun.c (null_ptid, minus_one_ptid): New variables.
5346 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
5347 (ptid_get_tid, ptid_equal): New functions.
5348 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
5349 inferior_ptid, and target_last_wait_ptid.
5350
5351 * defs.h (ptid_t): Redefine to be a struct rather than an int.
5352 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
5353 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
5354 new ptid accessors and constructor.
5355
5356 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
5357 MKLID, MKTID, ISTID): Provide new definitions for these macros.
5358 The old macros are retained, but disabled via #if 0 in order
5359 to aid in future restructuring. See FIXME.
5360
5361 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
5362 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
5363 * infptrace.c (PIDGET, TIDGET): Likewise.
5364 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5365 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5366 * proc-service.c (MERGEPID): Likewise.
5367 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
5368 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5369 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
5370 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
5371 Likewise.
5372 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
5373 Likewise.
5374
5375 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
5376 (GET_LWP): Redefine in terms of ptid_get_lwp().
5377 (GET_PID): Redefine in terms of ptid_get_pid().
5378 (is_lwp): Redefine without the need for THREAD_FLAG.
5379 (BUILD_LWP): Redefine in terms of ptid_build().
5380 * lin-thread.c (THREAD_FLAG): Delete macro definition.
5381 (GET_LWP): Redefine in terms of ptid_get_lwp().
5382 (GET_PID): Redefine in terms of ptid_get_pid().
5383 (GET_THREAD): Redefine in terms of ptid_get_tid().
5384 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5385 (is_lwp, is_thread): Redefine.
5386 (linux_child_wait, check_all_signal_numbers)
5387 (linuxthreads_discard_global_state, attach_thread): Declare these
5388 functions to squash warnings about missing declarations.
5389 * sol-thread.c (THREAD_FLAG): Delete macro definition.
5390 (GET_PID): Redefine in terms of ptid_get_pid().
5391 (GET_LWP): Redefine in terms of ptid_get_lwp().
5392 (GET_THREAD): Redefine in terms of ptid_get_tid().
5393 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5394 (is_lwp, is_thread): Redefine.
5395 * thread-db.c (THREAD_FLAG): Delete macro definition.
5396 (GET_PID): Redefine in terms of ptid_get_pid().
5397 (GET_LWP): Redefine in terms of ptid_get_lwp().
5398 (GET_THREAD): Redefine in terms of ptid_get_tid().
5399 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
5400 (is_lwp, is_thread): Redefine.
5401
5402 * corelow.c (add_to_thread_list, get_core_register_section):
5403 Eliminate hacks needed to prevent regressions when inferior_ptid
5404 wasn't wide enough to hold the core file thread id in the pid
5405 component of inferior_ptid.
5406
5407 2001-05-14 Michael Snyder <msnyder@redhat.com>
5408
5409 * remote.c (hex2bin): Make first argument const.
5410 Require explicit count, don't accept null-terminated str.
5411 (remote_resume, remote_async_resume): White space fix-up.
5412 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
5413
5414 2001-05-13 Mark Kettenis <kettenis@gnu.org>
5415
5416 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
5417 basename (NAME). The FreeBSD basename returns a pointer to a
5418 static buffer, even if it's simply returning a string identical to
5419 its argument.
5420 (lookup_partial_symtab): Likewise.
5421
5422 2001-05-14 Michael Snyder <msnyder@redhat.com>
5423
5424 * solib.c, solib.h: Add comment for function no_shared_libraries.
5425
5426 2001-05-14 Kevin Buettner <kevinb@redhat.com>
5427
5428 * solib.h (no_shared_libraries): Make declaration match definition
5429 in solib.c.
5430
5431 2001-05-14 Andrew Cagney <ac131313@redhat.com>
5432
5433 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
5434 * solib.h (no_shared_libraries): Declare.
5435
5436 2001-05-12 Andrew Cagney <ac131313@redhat.com>
5437
5438 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
5439 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
5440 user specified values when available.
5441 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
5442 architecture from info.bfd_arch_info.
5443 * gdbarch.c, gdbarch.h: Regenerate.
5444
5445 2001-05-12 Fernando Nasser <fnasser@redhat.com>
5446
5447 * remote-e7000.c (e7000_open): Check for bad baud rate.
5448 * remote-st.c (st2000_open): Ditto.
5449
5450 2001-05-11 Jim Blandy <jimb@redhat.com>
5451
5452 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
5453 and ui_out_tuple_end instead of ui_out_list_begin and
5454 ui_out_list_end.
5455
5456 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
5457 dependencies. Reorder dependencies to match #includes in file,
5458 for easier verification.
5459
5460 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
5461
5462 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
5463 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
5464 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
5465 * cli/cli-setshow.c: Ditto.
5466 * printcmd.c: Ditto.
5467 * stack.c: Ditto.
5468
5469 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
5470 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
5471 (ui_out_tuple_begin): New function.
5472 (ui_out_tuple_end): New function.
5473 (ui_out_tuple_begin_end): New function.
5474 (make_cleanup_ui_out_list_begin_end): Replace
5475 make_cleanup_ui_out_list_end function.
5476 * ui-out.h (ui_out_list_begin): Update declaration.
5477 (make_cleanup_ui_out_list_begin_end): Replace
5478 make_cleanup_ui_out_list_end declaration.
5479 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
5480 (ui_out_tuple_begin_end): Declare.
5481
5482 2001-05-11 Jim Blandy <jimb@redhat.com>
5483
5484 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
5485
5486 2001-05-11 Andrew Cagney <ac131313@redhat.com>
5487
5488 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
5489 * config/pa/tm-hppa.h: Remove trigraph.
5490 * hp-symtab-read.c (hpread_type_translate): Provide return value.
5491 (hpread_read_struct_type): Remove trigraph. Add parameter in
5492 `warning'.
5493 (hpread_read_array_type): Provide return value.
5494 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
5495 value.
5496 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
5497 trigraph.
5498
5499 2001-05-11 Jim Blandy <jimb@redhat.com>
5500
5501 * mips-tdep.c (mips_store_return_value,
5502 mips_extract_return_value): Pass arguments to
5503 return_value_location in the proper order.
5504
5505 2001-05-11 Andrew Cagney <ac131313@redhat.com>
5506
5507 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
5508 (version.c): Depends on file ``version.in''. Extract version
5509 number from ``version.in'' file.
5510 (clean mostlyclean): Update.
5511 * version.in: New file.
5512 * NEWS: Update.
5513
5514 2001-05-11 Kevin Buettner <kevinb@redhat.com>
5515
5516 * breakpoint.c (set_raw_breakpoint): Add new parameter
5517 representing the breakpoint's type. Adjust all callers.
5518 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
5519 (create_thread_event_breakpoint): Don't test for zero return
5520 value from set_raw_breakpoint(). It can never be zero.
5521 (create_exception_catchpoint, watch_command_1): Move logic
5522 which calculates the breakpoint type prior to the call to
5523 set_raw_breakpoint().
5524
5525 2001-05-11 Fernando Nasser <fnasser@redhat.com>
5526
5527 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
5528 (hardwire_setbaudrate): Set errno to EINVAL and return with error
5529 if the conversion of the baud rate to code fails.
5530
5531 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5532
5533 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
5534 * ui-out.c (struct ui_out_end_cleanup_data): Define.
5535 (do_cleanup_end): New function. Replace do_list_end.
5536 (make_cleanup_ui_out_end): New function.
5537 (make_cleanup_ui_out_begin_end): New function.
5538 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
5539
5540 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
5541
5542 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
5543 and make Kevin Buettner (kevinb@redhat.com) the reference person.
5544
5545 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
5546
5547 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
5548
5549 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5550
5551 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
5552
5553 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
5554
5555 * Makefile.in (mi-main.o): Compile with -Werror.
5556
5557 2001-05-10 Michael Snyder <msnyder@redhat.com>
5558
5559 * remote.c (remote_open_1): Call no_shared_libraries, so that
5560 symbols for shared libraries can be reloaded per session.
5561 (remote_async_open_1): Ditto.
5562 * remote.c (bin2hex, hex2bin): New functions. Factor out these
5563 two conversions which are coded for repeatedly in this module.
5564 (remote_threads_extra_info, remote_wait, remote_async_wait,
5565 store_register_using_P, remote_store_registers, remote_write_bytes,
5566 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
5567 of coding the conversions inline.
5568 (fromhex): Not exported, change from extern to static.
5569
5570 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5571
5572 * arch-utils.c (initialize_current_architecture): Delete obsolete
5573 ``info architecture'' command.
5574 (info_architecture): Delete function.
5575
5576 2001-05-10 Andrew Cagney <ac131313@redhat.com>
5577
5578 * TODO (5.1, 5.2): Update.
5579
5580 2001-05-09 Andrew Cagney <ac131313@redhat.com>
5581
5582 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
5583 stuff.
5584
5585 2001-05-10 Keith Seitz <keiths@cygnus.com>
5586
5587 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
5588 and gdbtk-stack.o.
5589 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
5590 (gdbtk-bp.o): New rule.
5591 (gdbtk-register.o): New rule.
5592 (gdbtk-stack.o): New rule.
5593 (gdbtk-cmds.o): Update dependencies.
5594 (gdbtk.o): Ditto.
5595 (gdbtk-hooks.o): Ditto.
5596 (gdbtk-varobj.o): Ditto.
5597
5598 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5599
5600 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
5601 variables, not just unregister them.
5602
5603 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5604
5605 * varobj.c (c_number_of_children): Check for target type of void*,
5606 not the target type name. Allow dereferencing char*.
5607
5608 2001-05-10 Fernando Nasser <fnasser@redhat.com>
5609
5610 * symfile.c (symbol_file_add_main_1): New static function.
5611 Passes the flags arguments to symbol_file_add() and takes care
5612 of any necessary reinitializations.
5613 (symbol_file_command): Call symbol_file_add_main_1() instead of
5614 symbol_file_add().
5615 (symbol_file_add_main): Ditto.
5616
5617 2001-05-09 Kevin Buettner <kevinb@redhat.com>
5618
5619 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
5620 string change in 2001-05-03 changes.
5621 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
5622 changes.
5623
5624 2001-05-09 Kevin Buettner <kevinb@redhat.com>
5625
5626 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
5627 component from inferior_ptid.
5628 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
5629 ptid.
5630
5631 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
5632
5633 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
5634 conditional for help with connections through parallel ports,
5635 given that the actual code for downloading through a parallel port
5636 is not conditionalized.
5637
5638 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
5639 unmaintaned, and probably on its way to obsolescence.
5640
5641 2001-05-09 Mark Kettenis <kettenis@gnu.org>
5642
5643 * i386-tdep.c (i386_frame_saved_pc): New function.
5644 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
5645 i386_frame_saved_pc.
5646 (i386_frame_saved_pc): New prototype.
5647
5648 * i386-tdep.c (i386_register_virtual_type): New function.
5649 (i386_register_convertible): New function.
5650 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
5651 of i386_register_virtual_type.
5652 (REGISTER_CONVERTIBLE): Redefine in terms of
5653 i386_register_convertible.
5654 (i386_register_virtual_type, i386_register_convertible): New
5655 prototypes.
5656
5657 2001-05-08 Jim Blandy <jimb@redhat.com>
5658
5659 * Makefile.in (mn10300-tdep.o): New rule.
5660
5661 * Makefile.in (gdb_string_h): Define. Use it throughout.
5662 Some rules were already using this, even though it isn't defined.
5663
5664 * Makefile.in (obstack_h, target_h): Define; these are already
5665 used elsewhere, but have been expanding to the empty string.
5666 (memattr_h): Define; needed by target_h.
5667
5668 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
5669 static. (This was accidentally omitted from the earlier patch.)
5670
5671 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
5672 (mn10300_gdbarch_init): Register it as the architecture's
5673 dwarf2_reg_to_regnum method.
5674
5675 Correct and expand handling of `movm' instruction, and register
5676 saves in general.
5677 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
5678 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
5679 (enum movm_register_bits): New enum.
5680 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
5681 bits, not hex literals. Handle the `other', `exreg0', and
5682 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
5683 r6, and r7, not r2, r3, r4, and r5.
5684 (saved_regs_size): New function.
5685 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
5686 of computing the same thing inline, incorrectly.
5687
5688 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
5689 dummy_breakpoint_offset; it's zero.
5690
5691 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
5692 stuff out into mn10300_pop_frame_regular, and use
5693 generic_pop_current_frame. This lets us share code, and also
5694 makes this function's prototype match that expected by gdbarch.
5695 Make this function static.
5696 (mn10300_pop_frame_regular): New function.
5697 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
5698 gdbarch's pop_frame method.
5699 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
5700 (mn10300_pop_frame): Delete declaration.
5701
5702 * mn10300-tdep.c (mn10300_saved_pc_after_call,
5703 mn10300_extract_return_value,
5704 mn10300_extract_struct_value_address, mn10300_store_return_value,
5705 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
5706 mn10300_frame_chain, mn10300_skip_prologue,
5707 mn10300_push_arguments, mn10300_push_return_address,
5708 mn10300_store_struct_return, mn10300_frame_saved_pc,
5709 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
5710 Make these functions static; they should only be visible to the
5711 outside world as gdbarch methods.
5712
5713 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
5714 unused declaration.
5715
5716 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
5717 in some rational order.
5718
5719 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
5720 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
5721
5722 Use gdbarch for most target parameters for the MN10300, rather
5723 than the tm-*.h file.
5724 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
5725 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
5726 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
5727 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
5728 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
5729 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
5730 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
5731 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5732 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
5733 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5734 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
5735 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5736 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
5737 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
5738 Delete definitions. We register gdbarch methods for these now.
5739 (struct frame_info, struct type, struct value): Delete forward
5740 declarations of these types; they're no longer necessary, since we
5741 don't have function declarations here any more.
5742 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
5743 some default gdbarch methods.
5744 (mn10300_store_struct_return): Return void, as expected by
5745 gdbarch.
5746 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
5747 as expected by gdbarch.
5748 (mn10300_frame_init_saved_regs): Provide dummy definition for
5749 this, as required by gdbarch.
5750 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
5751 by gdbarch. Register gdbarch methods or values for all the stuff
5752 removed from tm-10300.h, listed above.
5753
5754 2001-05-08 Andrew Cagney <ac131313@redhat.com>
5755
5756 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
5757 cli_list_end.
5758 (cli_ui_out_impl): Update.
5759
5760 * ui-out.c (default_begin, default_end): Replace
5761 default_list_begin and default_list_end.
5762 (default_ui_out_impl): Update.
5763 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
5764 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
5765 ui_out_list_end.
5766 (ui_out_list_begin, ui_out_list_end): New. Compatibility
5767 functions.
5768 (struct ui_out_level): Add field type.
5769 (push_level, pop_level): Update. Add type parameter.
5770
5771 * ui-out.h (enum ui_out_type): Declare.
5772 (ui_out_begin, ui_out_end): Declare.
5773 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
5774 and list_end_ftype.
5775 (struct ui_out_impl): Update.
5776
5777 2001-05-07 Andrew Cagney <ac131313@redhat.com>
5778
5779 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
5780 ``list_flag'' to ``depth''.
5781 * ui-out.c (default_list_begin, default_list_end): Update.
5782 (uo_list_begin, uo_list_end): Update.
5783 (MAX_UI_OUT_LEVELS): Define.
5784 (struct ui_out_level): Define.
5785 (top-level): Include "gdb_assert.h".
5786 (struct ui_out): Add fields ``level'' and ``levels''. Delete
5787 fields ``list_flag'' and ``field_count''.
5788 (ui_out_new): Update.
5789 (verify_field_proper_position): Update.
5790 (current_level, push_level, pop_level): New functions.
5791 (ui_out_list_begin): Use push_level.
5792 (ui_out_list_end): Use pop_level.
5793 (ui_out_field_int): Use current_level.
5794 (ui_out_field_skip): Ditto.
5795 (ui_out_field_fmt): Ditto.
5796
5797 2001-05-08 Michael Snyder <msnyder@redhat.com>
5798
5799 * language.c (longest_local_hex_string_custom): Strlen test is
5800 inverted -- reverse the sense of the test.
5801
5802 2001-05-08 Mark Kettenis <kettenis@gnu.org>
5803
5804 * config/i386/tm-i386v.h (struct frame_info, struct
5805 frame_saved_regs): Remove declarations.
5806 (i386_frame_num_args): Remove prototype.
5807
5808 2001-05-07 Andrew Cagney <ac131313@redhat.com>
5809
5810 * MAINTAINERS: I'm no longer actively maintaining the mn10300
5811 target.
5812
5813 2001-05-04 Andrew Cagney <ac131313@redhat.com>
5814
5815 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
5816 WinGDB.
5817
5818 2001-05-06 Kevin Buettner <kevinb@redhat.com>
5819
5820 * inferior.h (save_inferior_ptid): Declare.
5821 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
5822
5823 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5824 Delete these functions.
5825 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5826 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5827 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
5828 Likewise.
5829 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
5830 Likewise.
5831 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5832 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
5833
5834 * somsolib.c (reset_inferior_ptid): Delete.
5835 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
5836 build the cleanup struct.
5837
5838 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5839 a cleanup to save/restore inferior_ptid.
5840
5841 2001-05-06 Mark Kettenis <kettenis@gnu.org>
5842
5843 Implement attach/detach for multi-threaded programs on Linux.
5844 * thread-db.c (keep_thread_db): Adjust comment.
5845 (deactivate_target): Removed.
5846 (thread_db_new_objfile): Don't call deactivate_target. Implement
5847 guts of deactivate_target inline instead.
5848 (attach_thread): Call ATTACH_LWP unconditionally if defined.
5849 (thread_db_attach): New function.
5850 (thread_db_detach): Don't call deactivate_target. Do necessary
5851 cleanup inline instead. Set inferior_ptid to LWP corresponding to
5852 the current user-level thread.
5853 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
5854 current user-level thread.
5855 (thread_db_create_inferior): Deactivate target vector if
5856 KEEP_THREAD_DB is zero.
5857 (thread_db_mourn_inferior): Don't call deactivate_target. Do
5858 necessary cleanup inline instead.
5859 (init_thread_db_ops): Initialize to_attach field to
5860 thread_db_attach.
5861 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
5862 (stop_wait_callback): Add prototype.
5863 (init_lwp_list): Add comment about when to re-initialize the LWP
5864 list.
5865 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
5866 Avoid adding publicates to the LWP list. Only mark an LWP as
5867 signalled if it doesn't correspond to a cloned process.
5868 (lin_lwp_attach): Add initial process to the LWP list. Make sure
5869 it's stopped and fake a SIGSTOP.
5870 (detach_callback): New function.
5871 (lin_lwp_detach): Implement.
5872 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
5873 Call child_ops.to_create_inferior directly instead of via
5874 target_beneath local.
5875 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
5876 directly instead of via target_beneath local.
5877
5878 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
5879
5880 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
5881 instead of non-portable search for `/'. Use FILENAME_CMP instead
5882 of STREQ, to account for case-insensitive filesystems.
5883 (top-level): #include "filenames.h".
5884
5885 2001-05-05 Jim Blandy <jimb@redhat.com>
5886
5887 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
5888 its address, to decide whether it's a watchpoint or not. Zero
5889 is a valid code address.
5890 (update_breakpoints_after_exec): Admonishing comments.
5891 * breakpoint.h (struct breakpoint): Doc fixes.
5892
5893 * breakpoint.c (check_duplicates): Take a breakpoint object as an
5894 argument, rather than an address and section. All callers changed.
5895
5896 2001-05-03 Kevin Buettner <kevinb@redhat.com>
5897
5898 * defs.h (ptid_t): New typedef.
5899 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
5900
5901 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
5902 blockframe.c, breakpoint.c, breakpoint.h,
5903 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
5904 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
5905 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
5906 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
5907 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
5908 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
5909 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
5910 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
5911 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
5912 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
5913 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
5914 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
5915 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
5916 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
5917 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
5918 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
5919 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
5920 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
5921 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5922 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5923 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
5924 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
5925 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
5926 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
5927 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
5928 (inferior_pid): Rename to inferior_ptid everywhere - even in
5929 comments and obsolete ports. In cases where this variable
5930 really is supposed to be used as a process id, use PIDGET() to
5931 extract the process id component from inferior_ptid. The
5932 other cases, either involving other variables whose types had
5933 to be changed or functions whose signatures had to changed
5934 are listed separately below.
5935
5936 * arm-linux-nat.c (get_thread_id): Change type of argument
5937 representing a combined process/thread id from ``int'' to
5938 ``ptid_t''. Also change parameter name to ptid.
5939 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
5940 * corelow.c (core_file_thread_alive): Likewise.
5941 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
5942 * defs.h (*target_wait_hook): Likewise.
5943 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
5944 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
5945 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
5946 (gnu_resume): Likewise.
5947 * go32-nat.c (go32_wait, go32_resume): Likewise.
5948 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
5949 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
5950 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
5951 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
5952 (child_thread_alive): Likewise.
5953 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
5954 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
5955 * i386-linux-nat.c (child_resume): Likewise.
5956 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
5957 (store_debug_register, fetch_debug_register_pair)
5958 (store_debug_register_pair, ia64_linux_insert_watchpoint)
5959 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
5960 Likewise.
5961 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
5962 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
5963 (generic_target_write_pc, ptrace_wait, child_resume)
5964 (get_last_target_status): Likewise.
5965 * infptrace.c (ptrace_wait, child_resume): Likewise.
5966 * inftarg.c (child_wait, child_post_wait, child_thread_live)
5967 (child_pid_to_str): Likewise.
5968 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
5969 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
5970 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
5971 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
5972 (lin_lwp_pid_to_str): Likewise.
5973 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
5974 (thread_db_resume, thread_db_wait): Likewise.
5975 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
5976 (linuxthreads_resume, linuxthreads_wait): Likewise.
5977 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
5978 (child_pid_to_str): Likewise.
5979 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
5980 * mac-nat.c (child_wait, child_resume): Likewise.
5981 * mips-tdep.c (mips_read_pc): Likewise.
5982 * monitor.c (monitor_wait, monitor_resume): Likewise.
5983 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
5984 * ppc-bdm.c (bdm_ppc_wait): Likewise.
5985 * procfs.c (do_attach, procfs_wait, procfs_resume)
5986 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
5987 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
5988 (procfs_find_LDT_entry): Likewise.
5989 * regcache.c (read_register_pid, read_signed_register_pid)
5990 (write_register_pid, generic_target_read_pc, read_pc_pid)
5991 (generic_target_write_pc, write_pc_pid): Likewise.
5992 * regcache.h (read_register_pid, read_signed_register_pid)
5993 (write_register_pid): Likewise.
5994 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
5995 * remote-array.c (array_wait, array_resume): Likewise.
5996 * remote-bug.c (bug_wait, bug_resume): Likewise.
5997 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
5998 * remote-eb.c (eb_wait, eb_resume): Likewise.
5999 * remote-es.c (es1800_wait, es1800_resume): Likewise.
6000 * remote-mips.c (mips_wait, mips_resume): Likewise.
6001 * remote-mm.c (mm_wait, mm_resume): Likewise.
6002 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
6003 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
6004 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
6005 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
6006 * remote-sds.c (sds_wait, sds_resume): Likewise.
6007 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
6008 * remote-st.c (st2000_wait, st2000_resume): Likewise.
6009 * remote-udi.c (udi_wait, udi_resume): Likewise.
6010 * remote-vx.c (vx_wait, vx_resume): Likewise.
6011 * remote.c (remote_current_thread, remote_resume, remote_wait)
6012 (remote_async_resume, remote_async_wait, remote_cisco_wait)
6013 (remote_thread_alive): Likewise.
6014 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
6015 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
6016 (solaris_pid_to_str): Likewise.
6017 * symm-nat.c (child_wait, child_resume): Likewise.
6018 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
6019 (debug_to_notice_signals, debug_to_thread_alive)
6020 (normal_target_post_startup_inferior, normal_pid_to_str)
6021 (debug_to_post_startup_inferior): Likewise.
6022 * target.h (to_resume, to_wait, to_post_wait)
6023 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
6024 (to_pid_to_str [all in struct target_ops]): Likewise.
6025 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
6026 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
6027 (attach_thread, detach_thread, thread_db_resume, check_event)
6028 (thread_db_post_startup_inferior, thread_db_thread_alive)
6029 (thread_db_pid_to_str): Likewise.
6030 * thread.c (add_thread, delete_thread, find_thread_pid)
6031 (pid_to_thread_id, in_thread_list, load_infrun_state)
6032 (save_infrun_state, switch_to_thread, restore_current_thread)
6033 (make_cleanup_restore_current_thread): Likewise.
6034 * top.c (target_wait_hook): Likewise.
6035 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
6036 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
6037 (uw_thread_pid_to_str): Likewise.
6038 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
6039 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
6040 (cywin_pid_to_str): Likewise.
6041 * wince.c (child_wait, child_resume, win32_child_thread_alive):
6042 Likewise.
6043 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
6044 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
6045 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6046 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6047 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
6048 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
6049 (procfs_set_watchpoint): Likewise.
6050 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6051 * config/i386/nm-ptx4.h (child_wait): Likewise.
6052 * config/i386/nm-symmetry.h (child_wait): Likewise.
6053 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
6054 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
6055 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
6056 (lin_lwp_attach_lwp): Likewise.
6057 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
6058 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
6059 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
6060 (hppa_pid_or_tid_to_str): Likewise.
6061 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
6062 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
6063 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
6064 (procfs_set_watchpoint): Likewise.
6065
6066 * gdbthread.h (thread_id_to_pid): Change return type which
6067 represents a combined process/thread id from ``int'' to
6068 ``ptid_t''.
6069 * gnu-nat.c (gnu_wait): Likewise.
6070 * go32-nat.c (go32_wait): Likewise.
6071 * hpux-thread.c (hpux_thread_wait): Likewise.
6072 * inferior.h (procfs_first_available): Likewise.
6073 * inftarg.c (child_wait): Likewise.
6074 * infttrace.c (ptrace_wait): Likewise.
6075 * lin-lwp.c (lin_lwp_wait): Likewise.
6076 * lin-thread.c (thread_db_wait): Likewise.
6077 * linux-thread.c (linuxthreads_wait): Likewise.
6078 * lynx-nat.c (child_wait): Likewise.
6079 * m3-nat.c (mach_really_wait): Likewise.
6080 * mac-nat.c (child_wait): Likewise.
6081 * monitor.c (monitor_wait): Likewise.
6082 * ppc-bdm.c (bdm_ppc_wait): Likewise.
6083 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
6084 * remote-adapt.c (adapt_wait): Likewise.
6085 * remote-array.c (array_wait): Likewise.
6086 * remote-bug.c (bug_wait): Likewise.
6087 * remote-e7000.c (e7000_wait): Likewise.
6088 * remote-eb.c (eb_wait): Likewise.
6089 * remote-es.c (es1800_wait): Likewise.
6090 * remote-mips.c (mips_wait): Likewise.
6091 * remote-mm.c (mm_wait): Likewise.
6092 * remote-nindy.c (nindy_wait): Likewise.
6093 * remote-os9k (rombug_wait): Likewise.
6094 * remote-rdi.c (arm_rdi_wait): Likewise.
6095 * remote-rdp.c (remote_rdp_wait): Likewise.
6096 * remote-sds.c (sds_wait): Likewise.
6097 * remote-sim.c (gdbsim_wait): Likewise.
6098 * remote-st.c (st2000_wait): Likewise.
6099 * remote-udi.c (udi_wait): Likewise.
6100 * remote-vx.c (vx_wait): Likewise.
6101 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
6102 (remote_cisco_wait): Likewise.
6103 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
6104 Likewise.
6105 * symm-nat.c (child_wait): Likewise.
6106 * target.c (debug_to_wait): Likewise.
6107 * target.h (to_wait [in struct target_ops]): Likewise.
6108 * thread.c (thread_id_to_pid): Likewise.
6109 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
6110 Likewise.
6111 * top.c (*target_wait_hook): Likewise.
6112 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
6113 * v850ice.c (v850ice_wait): Likewise.
6114 * win32-nat.c (child_wait): Likewise.
6115 * wince.c (child_wait): Likewise.
6116 * config/nm-lynx.h (child_wait): Likewise.
6117 * config/i386/nm-ptx4.h (child_wait): Likewise.
6118 * config/i386/nm-symmetry.h (child_wait): Likewise.
6119
6120 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
6121 to wait_ptid and change its type from ``int'' to ``ptid_t''.
6122 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
6123 but rename saved_inferior_pid to saved_inferior_ptid.
6124 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
6125 save_pid to save_ptid.
6126 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
6127 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
6128 saved_inferior_pid to saved_inferior_ptid.
6129 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
6130 * infrun.c (previous_inferior_pid [static global]): Likewise,
6131 but rename to previous_inferior_ptid.
6132 (resume): Likewise, but rename resume_pid to resume_ptid.
6133 (struct execution_control_state): Likewise, but rename
6134 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
6135 and waiton_pid to waiton_ptid.
6136 (target_last_wait_pid): Likewise, but rename to
6137 target_last_wait_ptid.
6138 * infttrace.c (saved_real_pid): Likewise, but rename to
6139 saved_real_ptid.
6140 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
6141 to saved_inferior_ptid.
6142 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
6143 (trap_ptid): Likewise, but renamed from trap_pid.
6144 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
6145 to gdb_ptid.
6146 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
6147 (thread_db_wait): Likewise, but rename ret_pid to retptid.
6148 * procfs.c (procfs_wait): Likewise, for retval whose name
6149 doesn't change. Also, ``temp'' becomes two separate variables,
6150 one named temp_tid (an int) and the other temp_ptid.
6151 (procfs_notice_thread): Likewise (type change) for gdb_threadid
6152 whose name does not change.
6153 * regcache.c (registers_ptid): Likewise, but renamed from
6154 registers_pid.
6155 (read_register_pid, read_signed_register_pid, write_register_pid):
6156 Likewise, but rename save_pid to save_ptid.
6157 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
6158 to saved_inferior_ptid.
6159 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
6160 * sol-thread.c (struct ps_prochandle): Likewise.
6161 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
6162 (sol_thread_wait): Likewise, for rtnval whose name does not
6163 change, and for save_pid which becomes save_ptid.
6164 (solaris_pid_to_str): Likewise for lwp whose name does not change.
6165 (sol_find_new_threads_callback): Likewise, for pid which becomes
6166 ptid.
6167 * target.h (target_resume, target_wait, target_post_wait)
6168 (target_post_startup_inferior, target_notice_signals)
6169 (target_thread_alive): Likewise.
6170 * thread.c (info_threads_command): Likewise, but rename
6171 current_pid to current_ptid.
6172 (struct current_thread_cleanup): Likewise, but rename field
6173 inferior_pid to inferior_ptid.
6174 * thread-db.c (find_new_threads_callback): Likewise, but rename
6175 pid to ptid.
6176 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
6177 change.
6178 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
6179 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
6180 but rename pid to ptid.
6181 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
6182 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
6183 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
6184 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
6185 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
6186 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
6187
6188 * arch-utils.c (generic_prepare_to_proceed): Test for the
6189 "zero" ptid by using ptid_equal() to test to see if variable
6190 in question is the same as null_ptid. This replaces a direct
6191 test against zero.
6192 * cxux-nat.c (add_shared_symbol_files): Likewise.
6193 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
6194 * infcmd.c (run_command): Likewise.
6195 * inflow.c (kill_command): Likewise.
6196 * infttrace.c (call_ttrace): Likewise.
6197 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
6198 * lin-thread.c (thread_db_kill): Likewise.
6199 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
6200 * remote-es.c (es1800_kill): Likewise.
6201 * sol-thread.c (sol_thread_create_inferior): Likewise.
6202 * solib.c (locate_base): Likewise.
6203 * target.c (nosupport_runtime): Likewise.
6204 * thread-db.c (thread_db_wait): Likewise.
6205 * top.c (quit_confirm, quit_force): Likewise.
6206 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
6207
6208 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
6209 Use ptid_equal to compare value of process/thread ids instead of
6210 ``=='' and ``!='' operators.
6211 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
6212 (stop_wait_callback, lin_lwp_wait): Likewise.
6213 * procfs.c (procfs_wait): Likewise.
6214 * regcache.c (read_register_bytes, read_register_gen)
6215 (write_register_gen, read_register, read_register_pid)
6216 (read_signed_register, read_signed_register_pid, write_register)
6217 (write_register_pid, supply_register): Likewise.
6218 * remote-vx.c (vx_resume): Likewise.
6219 * sol-thread.c (sol_thread_wait): Likewise.
6220 * symm-nat.c (kill_inferior): Likewise.
6221 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
6222 (in_thread_list, info_threads_command, switch_to_thread)
6223 (restore_current_thread): Likewise.
6224 * uw-thread (libtread_stub): Likewise.
6225
6226 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
6227
6228 * corelow.c (add_to_thread_list): Convert argument in add_thread()
6229 call to a ptid_t.
6230 * gnu-nat.c (inf_validate_procs): Likewise.
6231 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
6232 * remote.c (record_currthread, remote_threads_info): Likewise.
6233 * win32-nat.c (child_add_thread): Likewise.
6234
6235 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
6236 respectively, to save_inferior_ptid() and restore_inferior_ptid().
6237 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
6238 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
6239 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6240 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6241 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
6242 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
6243 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
6244
6245 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
6246 to be passed to target_resume() when all threads should resume.
6247 (resume): Set resume_ptid to RESUME_ALL rather than -1.
6248 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
6249 instead of -1.
6250 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
6251 a ptid_t in target_resume() call.
6252 * osfsolib.c (solib_create_inferior_hook): Likewise.
6253 * solib-svr4.c (solib_create_inferior_hook): Likewise.
6254
6255 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
6256 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
6257 difference being that the 0xffff pattern will be interpreted
6258 as -1.
6259 * lin-thread.c (PIDGET, PIDGET0): Likewise.
6260 * thread-db.c (PIDGET, PIDGET0): Likewise.
6261 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
6262 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
6263 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
6264 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
6265
6266 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
6267 mach_really_wait rather than mach_really__wait.
6268 * lin-thread.c (check_for_thread_event): Fix warning; make function
6269 actually return a value.
6270
6271 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
6272 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
6273 pid to ptid.
6274 * gdbarch.h, gdbarch.c: Regenerated.
6275
6276 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
6277
6278 * rdi-share/devsw.c: Include <time.h> for struct tm
6279
6280 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
6281
6282 * config/djgpp/fnchange.lst: Add mappings for the new
6283 opcodes/openrisc-* files.
6284
6285 2001-05-01 Michael Snyder <msnyder@redhat.com>
6286
6287 * lin-lwp.c: Change printf to fprintf_unfiltered.
6288 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
6289
6290 2001-05-01 Nicholas Duffek <nsd@redhat.com>
6291
6292 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
6293 (rs6000_in_solib_return_trampoline): Declare.
6294 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
6295 function.
6296 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
6297 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
6298 check after the CSECT check rather than before it. Allocate
6299 separate symtabs for CSECTs whose names begin with '@'.
6300 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
6301 Activate the misc_func_recorded mechanism for whose names begin
6302 with '@'.
6303
6304 2001-04-30 J.T. Conklin <jtc@redback.com>
6305
6306 * ppcnbsd-nat.c (fetch_inferior_registers)
6307 (store_inferior_registers, fetch_core_registers): Changed to use
6308 fpreg[] instead of r_regs[] to access floating point registers.
6309
6310 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
6311
6312 * sh-tdep.c: Get rid of the function prototypes.
6313 (sh_sh4_build_float_register_type): Move earlier in file.
6314 (fv_reg_base_num): Ditto.
6315 (dr_reg_base_num): Ditto.
6316
6317 2001-04-30 Michael Snyder <msnyder@redhat.com>
6318
6319 * thread-db.c: Revert 2001-04-26 change for debugging output.
6320 * lin-lwp.c: Ditto.
6321 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
6322 command to turn extra debugging output on / off.
6323
6324 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
6325
6326 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
6327 (top-level): #include filenames.h.
6328
6329 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
6330 FILENAME_CMP, to DTRT on non-Posix platforms.
6331 (top-level): #include filenames.h.
6332
6333
6334 2001-04-27 Andrew Cagney <ac131313@redhat.com>
6335
6336 * gdbtypes.c (check_stub_method): Always initialize ``p''.
6337
6338 2001-04-27 Andrew Cagney <ac131313@redhat.com>
6339
6340 * configure.host: Delete romp host.
6341 * TODO: Update.
6342
6343 2001-04-27 Andrew Cagney <ac131313@redhat.com>
6344
6345 * TODO: Updates to 5.1. No more targets to obsolete.
6346
6347 2001-04-27 Don Howard <dhoward@redhat.com>
6348
6349 (Changes from Kevin Buettner, with minor update by Don Howard.)
6350
6351 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
6352 typos in which hexadecimal constants were really intended to be
6353 binary constants.
6354 (i387_tag): Swap logic regarding zero vs non-zero exponents.
6355 * MAINTAINERS (Misc): Added myself to the write-after-approval
6356 list.
6357
6358 2001-04-26 Jim Blandy <jimb@redhat.com>
6359
6360 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
6361
6362 Abstract out operations specific to particular C++ ABI's, and
6363 invoke them through a function table. This removes the C++ ABI
6364 dependencies scattered throughout the code, and allows us to
6365 cleanly add support for new C++ ABI's.
6366 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
6367 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
6368 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
6369 #include "cp-abi.h". These files all use functions now declared
6370 there.
6371 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
6372 Deleted. These services are now provided by functions declared in
6373 cp-abi.h.
6374 * value.h (value_rtti_type, value_virtual_fn_field): Same.
6375 * values.c (value_virtual_fn_field): Same, for this definition.
6376 * valops.c (value_rtti_type): Same.
6377 * c-typeprint.c (c_type_print_base): Use the functions from
6378 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
6379 tests.
6380 * dbxread.c (record_minimal_symbol): Same.
6381 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
6382 virtual_base_index_skip_primaries): Same.
6383 * jv-typeprint.c (java_type_print_base): Same.
6384 * linespec.c (find_methods, decode_line_1): Same.
6385 * symtab.c (gdb_mangle_name): Same.
6386 * Makefile.in (SFILES): Add the new .c files mentioned above.
6387 (cp_abi_h): New variable.
6388 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
6389 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
6390 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
6391 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
6392 dependency on $(cp_abi_h).
6393
6394 2001-04-26 Michael Snyder <msnyder@redhat.com>
6395
6396 * thread-db.c (_initialize_thread_db): Add set/show command
6397 "debug-linux-threads" for debugging output.
6398 * lin-lwp.c (various): Use global "debug_linux_threads to
6399 turn on extra debugging output.
6400 * lin-lwp.c: Minor cleanups in comments.
6401 * target.c (normal_pid_to_str): Get rid of an ancient hack.
6402 * remote.c (remote_pid_to_str): New function for remote target.
6403
6404 2001-04-24 Jim Blandy <jimb@redhat.com>
6405
6406 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
6407 qualifier on C++ references; all references are innately const.
6408
6409 2001-04-20 Mark Kettenis <kettenis@gnu.org>
6410
6411 * event-top.h: Fix formatting.
6412
6413 2001-04-17 Andrew Cagney <ac131313@redhat.com>
6414
6415 * source.c (openp): Obsolete #ifdef MPW code.
6416 (open_source_file): Ditto.
6417 * event-top.c (display_gdb_prompt): Ditto.
6418 * utils.c (query): Ditto.
6419 (init_page_info): Ditto.
6420 (init_page_info): Delete #ifndef MPW.
6421 * top.c (gdb_readline): Ditto.
6422 * mac-xdep.c: Obsolete.
6423 * mac-gdb.r: Obsolete.
6424 * config/powerpc/xm-mpw.h: Obsolete.
6425 * config/xm-mpw.h: Obsolete.
6426 * mpw-make.sed: Obsolete.
6427 * mpw-config.in: Obsolete.
6428 * TODO: Update
6429 * NEWS: Update
6430
6431 2001-04-19 Mark Kettenis <kettenis@gnu.org>
6432
6433 * i386-tdep.c (i386_frameless_function_invocation): New function.
6434 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
6435 in terms of i386_frameless_function_invocation. Adjust comment.
6436 (i386_frameless_function_invocation): New prototype.
6437
6438 2001-04-18 Martin M. Hunt <hunt@redhat.com>
6439
6440 * top.c (gdb_init): Don't call cli_out_new() to
6441 create global uiout if init_ui_hook is set. uiout will
6442 have to be initialized there.
6443
6444 2001-04-18 Andrew Cagney <ac131313@redhat.com>
6445
6446 * arch-utils.c: Include "regcache.h".
6447
6448 2001-04-18 Mark Kettenis <kettenis@gnu.org>
6449
6450 * i386-tdep.c (i386_saved_pc_after_call): New function.
6451 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
6452 of i386_saved_pc_after_call.
6453 (i386_saved_pc_after_call): New prototype.
6454
6455 2001-04-17 Michael Snyder <msnyder@redhat.com>
6456
6457 * i386-nat.c: Fix typo in comment.
6458 * solib.c (no_shared_libraries): New function. Discard all symbols
6459 from shared libraries.
6460 (_initialize_solib): Add command "nosharedlibrary" as complement
6461 to the command "sharedlibrary". Unloads symbols for all solibs.
6462
6463 2001-04-16 Andrew Cagney <ac131313@redhat.com>
6464
6465 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
6466 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
6467 (m68*-est-*, m68*-sony-*, m68*-isi-*):
6468 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
6469 * config/m68k/xm-news.h: Obsolete.
6470 * config/m68k/tm-news.h:
6471 * config/m68k/xm-news1000.h: Obsolete.
6472 * config/m68k/news.mh: Obsolete.
6473 * config/m68k/news.mt: Obsolete.
6474 * config/m68k/nm-news.h: Obsolete.
6475 * config/m68k/news1000.mh: Obsolete.
6476 * news-xdep.c: Obsolete.
6477 * Makefile.in (isi-xdep.o): Obsolete.
6478 (ALLDEPFILES): Delete isi-xdep.c.
6479 (tm-isi.h): Obsolete.
6480 * m68k-tdep.c (altos_skip_prologue): Update comments.
6481 (isi_skip_prologue): Obsolete.
6482 * isi-xdep.c: Obsolete.
6483 * config/m68k/xm-isi.h: Obsolete.
6484 * config/m68k/isi.mh: Obsolete.
6485 * config/m68k/tm-isi.h: Obsolete.
6486 * config/m68k/isi.mt: Obsolete.
6487
6488 * TODO: Update.
6489 * NEWS: Update.
6490
6491 2001-04-17 Michael Snyder <msnyder@redhat.com>
6492
6493 * remote.c (remote_open_1): On opening the remote target, activate
6494 the solib_create_inferior_hook, so that it can detect when the
6495 target loads shared libraries.
6496 (remote_async_open_1): Ditto.
6497
6498 2001-04-17 Michael Snyder <msnyder@redhat.com>
6499
6500 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
6501 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
6502 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
6503 * testsuite/gdb.trace/infotrace.exp: Ditto.
6504 * testsuite/gdb.trace/passcount.exp: Ditto.
6505 * testsuite/gdb.trace/while-stepping.exp: Ditto.
6506
6507 2001-04-17 Michael Snyder <msnyder@redhat.com>
6508
6509 * thread-db.c (check_thread_signals): When looping over all
6510 signals, ignore signal zero.
6511 (disable_thread_signals): Ditto.
6512
6513 2001-04-17 Eirik Fuller <eirik@netapp.com>
6514
6515 * thread.c (do_captured_thread_select): Allow the argument to the
6516 thread command to be an expression rather than a literal integer.
6517
6518 2001-04-17 Mark Kettenis <kettenis@gnu.org>
6519
6520 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
6521 read_memory_unsigned_integer instead of read_memory_integer.
6522
6523 2001-04-16 Kevin Buettner <kevinb@redhat.com>
6524
6525 * solib-aix5.c (map_index_vs_section_name_okay): New function.
6526 (aix5_relocate_main_executable): Don't use file offsets for
6527 determining corresponding sections and map file entries. Call
6528 map_index_vs_section_name_okay() to do this instead.
6529
6530 2001-04-16 Kevin Buettner <kevinb@redhat.com>
6531
6532 * procfs.c (open_with_retry): New function.
6533 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
6534 (proc_get_LDT_entry): Call open_with_retry() instead of open().
6535
6536 2001-04-16 Kevin Buettner <kevinb@redhat.com>
6537
6538 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
6539 comparison against TRAP_HWBKPT constant yet again to account
6540 for the various values used by different kernel versions.
6541
6542 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
6543
6544 * demangle.c (_initialize_demangler): Use xcalloc on the
6545 demangling_style_names, and make it a null terminated array of
6546 names, to avoid a crash.
6547
6548 2001-04-16 Mark Kettenis <kettenis@gnu.org>
6549
6550 * i386-tdep.c (i386_frame_chain): New function.
6551 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
6552 i386_frame_chain.
6553 (i386_frame_chain): New prototype.
6554
6555 2001-04-14 J.T. Conklin <jtc@redback.com>
6556
6557 * target.h (target_ops): Removed to_core_file_to_sym_file vector
6558 function.
6559 * corelow.c (core_ops): Updated for above change.
6560 * gnu-nat.c (core_ops): Likewise.
6561 * inftarg.c (child_ops): Likewise.
6562 * monitor.c (monitor_ops): Likewise.
6563 * ppc-bdm.c (bdm_ppc_ops): Likewise.
6564 * remote-adapt.c (adapt_ops): Likewise.
6565 * remote-bug.c (bug_ops): Likewise.
6566 * remote-e7000.c (e7000_ops): Likewise.
6567 * remote-eb.c (eb_ops): Likewise.
6568 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
6569 * remote-mm.c (mm_ops): Likewise.
6570 * remote-nindy.c (nindy_ops): Likewise.
6571 * remote-nrom.c (nrom_ops): Likewise.
6572 * remote-os9k.c (rombug_ops): Likewise.
6573 * remote-rdp.c (remote_rdp_ops): Likewise.
6574 * remote-sim.c (gdbsim_ops): Likewise.
6575 * remote-st.c (st2000_ops): Likewise.
6576 * v850ice.c (v850ice_ops): Likewise.
6577 * target.c (cleanup_target): Likewise
6578 (update_current_target): Likewise.
6579 (setup_target_debug): Likewise
6580 (debug_to_core_file_to_sym_file): Removed.
6581
6582 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
6583 sets symbol file from information obtained from the core file.
6584 * corelow.c (core_file_to_sym_file): Removed.
6585
6586 2001-04-13 Fernando Nasser <fnasser@redhat.com>
6587
6588 From Adam Mirowski <Adam.Mirowski@Sun.COM>
6589 Fixed Insight on Solaris. It was not possible to debug a process
6590 because of EINTR "errors".
6591 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
6592 with EINTR, retry the call.
6593
6594 2001-04-12 Kevin Buettner <kevinb@redhat.com>
6595
6596 * solib-aix5.c (enum maptype): Delete.
6597 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
6598 member a pointer instead of a statically sized array.
6599 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
6600 array.
6601 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
6602 aix5_find_global_pointer): Search for correct mapping to use
6603 based on file offset instead of knowledge of whether the section
6604 is read-only or read/write.
6605 (aix5_find_gate_addresses): Use the first mapping instead of
6606 the (now defunct) MT_READONLY mapping.
6607
6608 2001-04-12 Nicholas Duffek <nsd@redhat.com>
6609
6610 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
6611 "@".
6612
6613 2001-04-12 Kevin Buettner <kevinb@redhat.com>
6614
6615 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
6616
6617 2001-04-09 Andrew Cagney <ac131313@redhat.com>
6618
6619 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
6620 * config/i386/sun386.mh: Obsolete.
6621 * config/i386/sun386.mt: Obsolete.
6622 * config/i386/xm-sun386.h: Obsolete.
6623 * config/i386/tm-sun386.h: Obsolete.
6624 * config/i386/nm-sun386.h: Obsolete.
6625 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
6626 (sun386-nat.o): Target is obsolete.
6627 * sun386-nat.c: Obsolete.
6628 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
6629 * configure.host (i[3456]86-*-sunos*): Obsolete.
6630 * NEWS: Update.
6631 * TODO: Update.
6632
6633 2001-04-10 J.T. Conklin <jtc@redback.com>
6634
6635 * maint.c: Fix typo in comment.
6636
6637 2001-04-09 Keith Seitz <keiths@cygnus.com>
6638
6639 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
6640
6641 2001-04-08 Kevin Buettner <kevinb@redhat.com>
6642
6643 * fork-child.c (fork_inferior, clone_and_follow_inferior):
6644 Document fact that apparent call to vfork() might actually be
6645 a call to fork() instead.
6646 * ser-pipe.c (pipe_open): Likewise.
6647
6648 2001-04-08 Kevin Buettner <kevinb@redhat.com>
6649
6650 * printcmd.c (print_frame_args): Use a cleanup to invoke
6651 ui_out_list_end() so that the list count nesting flag will
6652 be decremented properly when an error occurs.
6653 * stack.c (print_frame): Likewise.
6654
6655 2001-04-06 J.T. Conklin <jtc@redback.com>
6656
6657 * dcache.c (dcache_write_line): Fixed bugs where cache line was
6658 not written to target correctly.
6659
6660 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
6661 void return value;
6662 * gdbserver/low-nbsd.c: Likewise.
6663 * gdbserver/low-sparc.c: Likewise.
6664 * gdbserver/low-sun3.c: Likewise.
6665
6666 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
6667
6668 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
6669 (PTRACE_DETACH): Don't define.
6670
6671 2001-04-06 David Smith <dsmith@redhat.com>
6672
6673 * arch-utils.c (default_prepare_to_proceed)
6674 (generic_prepare_to_proceed): Added new functions.
6675 * arch-utils.h: New function declarations for
6676 default_prepare_to_proceed() and generic_prepare_to_proceed().
6677 * gdbarch.sh: Added PREPARE_TO_PROCEED.
6678 * gdbarch.c: Regenerated.
6679 * gdbarch.h: Regenerated.
6680 * inferior.h: Added get_last_target_status() declaration.
6681 * infrun.c (get_last_target_status): Added new function.
6682 (handle_inferior_event): Saves last pid and waitstatus, which will
6683 get returned by get_last_target_status().
6684
6685 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
6686 prepare_to_proceed() is potentially redundant since
6687 default_prepare_to_proceed() has been added.
6688 * linux-thread.c (prepare_to_proceed): Ditto.
6689 * lin-lwp.c (prepare_to_proceed): Ditto.
6690 * m3-nat.c (prepare_to_proceed): Ditto.
6691
6692 2001-04-05 Andrew Cagney <ac131313@redhat.com>
6693
6694 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
6695 and powerpc-*-netware* target.
6696 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
6697 Obsolete.
6698 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
6699 (powerpcle-*-solaris*): Obsolete.
6700 * config/powerpc/tm-cygwin.h: Obsolete.
6701 * config/powerpc/cygwin.mt: Obsolete.
6702 * config/powerpc/xm-cygwin.h: Obsolete.
6703 * config/powerpc/cygwin.mh: Obsolete.
6704 * config/powerpc/nm-solaris.h: Obsolete.
6705 * config/powerpc/xm-solaris.h: Obsolete.
6706 * config/powerpc/tm-solaris.h: Obsolete.
6707 * config/powerpc/solaris.mt: Obsolete.
6708 * config/powerpc/tm-ppc-nw.h: Obsolete.
6709 * config/powerpc/ppc-nw.mt: Obsolete.
6710 * TODO: Update.
6711 * NEWS: Update.
6712
6713 2001-04-06 Fernando Nasser <fnasser@redhat.com>
6714
6715 * buildsym.c (record_line): Turn off unused addr bits.
6716
6717 2001-04-06 Fernando Nasser <fnasser@redhat.com>
6718
6719 From David Deephanphongs <deephan@telocity.com>
6720 * inferior.h: Fix declarations of get_inferior_args and
6721 set_inferior_args, which were missing the trailing 's'.
6722
6723 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
6724
6725 * monitor.c (monitor_supply_register): Only report an error if we
6726 don't get a valid value.
6727
6728 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
6729
6730 * README: Don't mention gdba.el.
6731
6732 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6733
6734 From Jimmy Guo <guo@cup.hp.com>
6735 * top.c (init_main): set prompt if annotation_level>1,
6736 this is necessary when annotation_level is set to 2 via
6737 --annotate=2 command line option.
6738
6739 2001-04-04 Andrew Cagney <ac131313@redhat.com>
6740
6741 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
6742 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
6743 * configure.host (a29k-*-*): Obsolete.
6744 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
6745 ultra3-xdep.c.
6746 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
6747 * config/a29k/tm-ultra3.h: Obsolete.
6748 * config/a29k/ultra3.mt: Obsolete.
6749 * config/a29k/ultra3.mh: Obsolete.
6750 * config/a29k/nm-ultra3.h: Obsolete.
6751 * config/a29k/xm-ultra3.h: Obsolete.
6752 * ultra3-xdep.c: Obsolete.
6753 * ultra3-nat.c: Obsolete.
6754 * config/a29k/a29k-kern.mt: Obsolete.
6755 * NEWS: Update.
6756 * TODO: Update.
6757
6758 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
6759
6760 * main.c: Remove windows.h use.
6761 (gdbtk_test): Use PATH_MAX for home var calculation.
6762 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
6763 Win32 in colon test.
6764 * ser-tcp.c: Use modern __CYGWIN__ conditional.
6765 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
6766 (openp): Ditto.
6767 * symfile.c (symfile_bfd_open): Ditto.
6768
6769 2001-04-04 Martin M. Hunt <hunt@redhat.com>
6770
6771 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
6772 Handle all stream setup in gdbtk_init
6773
6774 2001-04-04 Mark Kettenis <kettenis@gnu.org>
6775
6776 * i386-tdep.c (i386_extract_return_value): Don't return the return
6777 value of a void function.
6778 (i386_store_return_value): Likewise.
6779
6780 2001-04-03 Andrew Cagney <ac131313@redhat.com>
6781
6782 Obsolete w65-*-* target.
6783 * configure.tgt (w65-*-*): Obsolete.
6784 * config/w65/w65.mt: Obsolete.
6785 * config/w65/tm-w65.h: Obsolete.
6786 * w65-tdep.c: Obsolete.
6787 * NEWS: Update. Fix TiC80 description.
6788 * TODO: Update.
6789
6790 2001-04-03 Andrew Cagney <ac131313@redhat.com>
6791
6792 Obsolete tic80-*-* target.
6793 * configure.tgt (tic80-*-*): Obsolete.
6794 * config/tic80/tic80.mt: Obsolete.
6795 * config/tic80/tm-tic80.h: Obsolete.
6796 * tic80-tdep.c: Obsolete.
6797 * TODO: Update
6798 * NEWS: Update.
6799
6800 2001-04-02 J.T. Conklin <jtc@redback.com>
6801
6802 * remote-mips.c (S_IROTH): Moved definition from here.
6803 * gdb_stat.h (S_IROTH): to here.
6804
6805 * remote.c (remote_protocol_e, remote_protocol_E): Define.
6806 (set_remote_protocol_e_packet_cmd)
6807 (set_remote_protocol_E_packet_cmd)
6808 (show_remote_protocol_e_packet_command)
6809 (show_remote_protocol_E_packet_command): New functions.
6810 (init_all_packet_configs): Initialize remote_protocol_e and
6811 remote_protocol_E.
6812 (remote_resume, remote_async_resume): Support e/E command
6813 packets.
6814 (show_remote_cmd): Show state of remote_protocol_e and
6815 remote_protocol_E.
6816 (_initialize_remote): Add "set remote step-over-range-packet"
6817 and "set remote step-over-range-w-signal-packet" to CLI.
6818
6819 2001-04-01 Andrew Cagney <ac131313@redhat.com>
6820
6821 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
6822 ns32k-utek-*.
6823 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
6824 (umax-xdep.o, ns32km3-nat.o): Obsolete.
6825 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
6826 Obsolete.
6827 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
6828 Obsolete.
6829 * config/ns32k/merlin.mh: Obsolete.
6830 * config/ns32k/merlin.mt: Obsolete.
6831 * config/ns32k/xm-merlin.h: Obsolete.
6832 * config/ns32k/tm-merlin.h: Obsolete.
6833 * config/ns32k/nm-umax.h: Obsolete.
6834 * config/ns32k/umax.mh: Obsolete.
6835 * config/ns32k/umax.mt: Obsolete.
6836 * config/ns32k/xm-umax.h: Obsolete.
6837 * umax-xdep.c: Obsolete.
6838 * config/ns32k/ns32km3.mh: Obsolete.
6839 * config/ns32k/ns32km3.mt: Obsolete.
6840 * config/ns32k/tm-ns32km3.h: Obsolete.
6841 * config/ns32k/xm-ns32km3.h: Obsolete.
6842 * ns32km3-nat.c: Obsolete.
6843 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
6844 (merlin_frame_num_args): Ditto.
6845 * NEWS: Update.
6846 * TODO: Update.
6847
6848 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
6849
6850 * config/djgpp/fnchange.lst: Tweak due to
6851 expect/example/chesslib.c.
6852
6853 2001-04-02 Kevin Buettner <kevinb@redhat.com>
6854
6855 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
6856 unsigned int to unsigned long. Also, fix format string.
6857 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
6858 use an undeclared variable. Also, delete declaration and
6859 initialization of ``fp'' because it is otherwise unused.
6860 * remote-bug.c (sleep): Delete declaration.
6861 (bug_store_register, bug_write_memory, bug_read_memory)
6862 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
6863 format statements and cast certain sprintf() arguments to
6864 eliminate warnings.
6865 (bug_load): Likewise for call to printf_filtered().
6866 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
6867 assignment to ``pc''. The necessary assignment is done in
6868 hand_function_call() after the invocation of FIX_CALL_DUMMY().
6869
6870 2001-03-20 Daniel Berlin <dberlin@redhat.com>
6871
6872 * symtab.c (completion_list_add_name): Remove duplicate string checks,
6873 readline already does this, and it's much faster at it, too.
6874
6875 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
6876
6877 * go32-nat.c: Minor tweaks, to pacify the ari script.
6878
6879 2001-04-01 Mark Kettenis <kettenis@gnu.org>
6880
6881 * i386-tdep.c (i386_extract_struct_value_address): New function.
6882 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
6883 in terms of i386_extract_struct_value_address.
6884 (i386_extract_struct_value_address): New prototype.
6885
6886 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
6887 value to `unsigned long'. Change type of `value' to `unsigned
6888 long'.
6889 (i386_linux_dr_set): Change type of second argument to `unsigned
6890 long'.
6891 (i386_linux_dr_set_control): Change type of first argument to
6892 `unsigned long'.
6893 (i386_linux_dr_get_status): Change type of return value to
6894 unsigned long.
6895 * config/i386/nm-linux.h (i386_linux_dr_set_control,
6896 i386_linux_dr_get_status): Adjust prototypes accordingly.
6897
6898 2001-03-31 Kevin Buettner <kevinb@redhat.com>
6899
6900 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
6901 TRAP_HWBKPT constant to match that in the kernel headers for
6902 Linux/IA-64.
6903
6904 2001-03-31 Mark Kettenis <kettenis@gnu.org>
6905
6906 * i386bsd-nat.c: Include "gdb_assert.h".
6907 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
6908 already defined.
6909 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
6910 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
6911 i386bsd_dr_get_status): New functions.
6912 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
6913 (I386_USE_GENERIC_WATCHPOINTS): Define.
6914 Include "i386/nm-i386.h".
6915 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
6916 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
6917 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
6918 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
6919 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
6920 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
6921 ptrace request.
6922 * config.in, configure: Regenerate.
6923
6924 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
6925 register before enabling it by setting the control register.
6926 (i386_remove_aligned_watchpoint): Reset address register after
6927 disabling it by setting the control register.
6928
6929 * i386-tdep.c (i386_extract_return_value): If the type of the
6930 return value is TYPE_STRUCT and the number of fields is one, call
6931 ourselves with TYPE set tp the type of the first field.
6932 (i386_store_return_value): Likewise.
6933 This fixes a problem with returning structs consisting of a single
6934 `float' or `double' on *BSD.
6935
6936 2001-03-30 Mark Kettenis <kettenis@gnu.org>
6937
6938 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
6939 we're absolutely sure we're going to resume it.
6940
6941 * thread-db.c (check_event): Don't report an error if we encounter
6942 a thread creation event for a thread that's already in the thread
6943 list, since that may legitemately happen. Instead only call
6944 attach_thread if it's not already in the thread list.
6945
6946 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6947
6948 * config/pa/xm-hppah.h (malloc): Really delete declaration
6949 (MALLOC_INCOMPATIBLE): Really delete macro.
6950 * cli/cli-cmds.c (apropos_command): Use xcalloc.
6951
6952 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6953
6954 * configure.in (build_warnings): Add -Wuninitialized.
6955 * configure: Regenerate.
6956
6957 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
6958 * sparc-tdep.c (sparc64_push_arguments): Add default case to
6959 switch.
6960 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
6961 expression with if statement.
6962 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
6963 ``stack_size''.
6964 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
6965 (mips_dump_tdep): Fix setting of ef_mips_arch.
6966 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
6967 * dsrec.c (make_srec): Always initialize ``binbuf''.
6968 * monitor.c (monitor_read_memory_single): Do not pass an
6969 uninitialized buffer to monitor_error. Make ``i'' more local.
6970
6971 2001-03-28 Andrew Cagney <ac131313@redhat.com>
6972
6973 * MAINTAINERS: Change ns32k target to ,-Werror.
6974
6975 * ns32k-tdep.c: Include "gdbcore.h"
6976 (flip_bytes): Change first argument to void*. Add forward
6977 declaration.
6978 (sign_extend): Add declaration.
6979 (merlin_frame_num_args): Add final else clause to if-else chain.
6980 (umax_frame_num_args): Ditto.
6981 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
6982 (flip_bytes): Ditto.
6983
6984 2001-03-28 Mark Kettenis <kettenis@gnu.org>
6985
6986 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
6987 config/i386/nm-linux.h (including comment).
6988 (i386_linux_frame_chain): New function implementing guts of the
6989 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
6990 instead of read_memory_integer.
6991 (i386_linux_frame_saved_pc): Removed doc pointing to
6992 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
6993 now lives in this file.
6994 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
6995 i386-linux-tdep.c (including comment).
6996 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
6997 (i386_linux_frame_chain): New prototype.
6998
6999 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
7000 make it work again.
7001 (NUM_FREGS): Redefine to 0.
7002 (NUM_REGS): Redefine as NUM_GREGS.
7003 (i386_register_byte, i386_register_raw_size): Update from
7004 i386-tdep.c. Add comment about their origin.
7005 (regmap, register_u_addr): Take these from i386-linux-nat.c.
7006 (i386_register_u_addr): Removed.
7007
7008 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
7009 fails instead of calling perror_with_name. This should fix
7010 debugging remote i386 targets with a native Linux/x86 GDB. Add
7011 FIXME for this hack.
7012
7013 2001-03-19 J.T. Conklin <jtc@redback.com>
7014
7015 * arch-utils.c (#include "gdbthread.h"): Removed.
7016 (#include "symfile.h"): Removed.
7017 (XMALLOC): Removed unused macro.
7018 * breakpoint.c (tbreak_command): Removed local declaration.
7019 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
7020 Remove duplicate declarations.
7021 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
7022 (remove_solib_event_breakpoints): Fix indentation botch.
7023 * c-typeprint.c (#include "command.h"): Removed.
7024 (#include "gdbcmd.h"): Removed.
7025 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
7026 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
7027 Removed duplicate declarations.
7028 * ch-typeprint.c (#include "command.h"): Removed.
7029 (#include "gdbcmd.h"): Removed.
7030 * corefile.c (#include "frame.h"): Removed
7031 (#include "symfile.h"): Removed.
7032 (#include "language.h"): Removed.
7033 * dbxread.c (#include "command.h"): Removed.
7034 * environ.c (#include "gdbcore.h"): Removed.
7035 * event-loop.c (#include "top.h"): Removed.
7036 * f-typeprint.c (#include "command.h"): Removed.
7037 (#include "gdbcmd.h"): Removed.
7038 (#include "language.h"): Removed.
7039 (#include "typeprint.h"): Removed.
7040 (#include "frame.h"): Removed.
7041 * gdbtypes.h (print_type_scalar): Removed declaration.
7042 * infcmd.c (#include "completer.h"): Removed.
7043 * language.c (#include "frame.h"): Removed.
7044 * m2-typeprint.c (#include "command.h"): Removed.
7045 (#include "gdbcmd.h"): Removed.
7046 (#include "language.h"): Removed.
7047 * m2-valprint.c (#include "valprint.h"): Removed.
7048 * p-typeprint.c (#include "command.h"): Removed.
7049 (#include "gdbcmd.h"): Removed.
7050 * p-valprint.c (#include "typeprint.h"): Removed.
7051 * parse.c (#include "linespec.h"): Removed.
7052 * regcache.c (#include "frame.h"): Removed.
7053 * remote.c (#include "frame.h"): Removed.
7054 (getpkt_sane): Make static.
7055 * source.c (#include "completer.h"): Removed.
7056 * stack.c (#include "symfile.h"): Removed.
7057 (#include "objfiles.h"): Removed.
7058 * symfile.c (#include "completer.h"): Removed.
7059 * tracepoint.c (#include "completer.h"): Removed.
7060 * values.c (#include "frame.h"): Removed.
7061 * varobj.c (#include "valprint.h"): Removed.
7062 * wrapper.c (#include "frame.h"): Removed.
7063
7064 * memattr.c (create_mem_region): Removed unused variable.
7065 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
7066
7067 2001-03-27 Nick Clifton <nickc@redhat.com>
7068
7069 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
7070
7071 2001-03-27 Kevin Buettner <kevinb@redhat.com>
7072
7073 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
7074 of free().
7075
7076 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
7077
7078 * TODO (Cleanups): Remove the item about converting docs to GFDL.
7079
7080 2001-03-26 Kevin Buettner <kevinb@redhat.com>
7081
7082 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
7083 type of ``bundle'' from unsigned char * to char *.
7084 (ia64_get_saved_register): Use alloca() to allocate register
7085 buffers.
7086
7087 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
7088
7089 2001-03-26 Kevin Buettner <kevinb@redhat.com>
7090
7091 * proc-utils.h (procfs_ctl_t): New typedef.
7092 * proc-api.c (write_with_trace): Change type of ``opcode'' from
7093 long to procfs_ctl_t. Don't assume that the target has defined
7094 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
7095 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
7096 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
7097 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
7098 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
7099 Conditionally define as appropriate for AIX/non-AIX systems. Use
7100 these defines/typedefs as appropriate elsewhere in file.
7101 (struct procinfo): Change type of saved_sigset and saved_sighold
7102 from sigset_t to gdb_sigset_t. Make saved_exitset and
7103 saved_entryset pointer variables. Add two new fields, num_syscalls
7104 and syscall_names.
7105 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
7106 (sysset_t_size, sysset_t_alloc): New functions.
7107 (load_syscalls, free_syscalls, find_syscall): New functions for
7108 platforms which define DYNAMIC_SYSCALLS.
7109 (create_procinfo): Call load_syscalls.
7110 (destroy_one_procinfo): Call free_syscalls.
7111 (GDBRESET): Don't define twice.
7112 (proc_modify_flag): Change type of operation code array `arg'
7113 from long to procfs_ctl_t.
7114 (proc_stop_process, proc_wait_for_stop, proc_run_process)
7115 (proc_set_traced_signals, proc_set_traced_faults)
7116 (proc_set_traced_sysentry, proc_set_traced_sysexit)
7117 (proc_set_held_signals, proc_clear_current_fault)
7118 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
7119 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
7120 (proc_set_traced_sysentry): Dynamically allocate variable sized
7121 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
7122 (proc_set_traced_sysexit): Dynamically allocate variable
7123 sized struct gdb_proc_ctl_pcsexit. Also, free it at
7124 function exit.
7125 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
7126 for reading the sysset_t struct on AIX5.
7127 (procfs_debug_inferior): Don't assume that SYS_exit will be
7128 defined. Add new code for finding certain syscalls on AIX5.
7129 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
7130 (syscall_is_lwp_create): New functions.
7131 (procfs_wait): Restructured code which checks for certain
7132 system calls to use the new syscall_is_... functions.
7133 (procfs_notice_signals): Account for the fact that saved_entryset
7134 and saved_exitset in struct procinfo are now pointers.
7135
7136 2001-03-26 Kevin Buettner <kevinb@redhat.com>
7137
7138 * symtab.c (find_pc_sect_line): Revise method used for finding
7139 the ending pc.
7140
7141 2001-03-26 Mark Kettenis <kettenis@gnu.org>
7142
7143 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
7144 i386_linux_sigtramp_saved_sp): Make static.
7145 (i386_linux_frame_saved_pc): New function based on the old
7146 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
7147 of read_memory_integer.
7148 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
7149 (i386_linux_sigtramp_saved_pc): Remove prototype.
7150 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
7151 (i386_linux_frame_saved_pc): New prototype.
7152
7153 2001-03-26 Andrew Cagney <ac131313@redhat.com>
7154
7155 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
7156 * TODO (GDB 5.1 - Cleanups): Update.
7157
7158 2001-03-26 Andrew Cagney <ac131313@redhat.com>
7159
7160 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
7161 HAVE_VFORK.
7162
7163 2001-03-26 Mark Kettenis <kettenis@gnu.org>
7164
7165 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
7166
7167 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
7168 functions.
7169 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
7170 (STORE_STRUCT_RETURN): Redefine in terms of
7171 i386_store_struct_return.
7172 (i386_push_arguments, i386_store_struct_return): New prototypes.
7173 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
7174 definition was identical to the definition in "i386/tm-i386.h" so
7175 the new definition should suffice too.
7176
7177 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
7178
7179 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
7180 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
7181
7182 * config/djgpp/djconfig.sh: Add copyright notice.
7183
7184 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
7185 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
7186 (top level) <string.h>: Include gdb_string.h instead.
7187 (dos_noop, dos_raw, dos_noflush_set_tty_state)
7188 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
7189
7190 * go32-nat.c (go32_create_inferior): Move the declaration of
7191 `environ' to here from the top level.
7192 (top level) <_initialize_go32_nat>: Remove redundant prototype.
7193 <gdb_string.h>: Include it instead of string.h.
7194 (store_register): Call register_buffer instead of accessing
7195 registers[] directly.
7196 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
7197 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
7198 the function names at the start of the line.
7199 (go32_set_dr): Throw internal_error if the argument is not a valid
7200 debug register number.
7201 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
7202 (go32_wait, go32_xfer_memory, go32_files_info)
7203 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
7204
7205 2001-03-25 Jim Blandy <jimb@redhat.com>
7206
7207 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
7208
7209 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7210
7211 From Andrew Cagney <ac131313@redhat.com>
7212
7213 * coffread.c: Include "gdb_assert.h".
7214 (coff_symtab_read): Cast the integer s_sclass to a long before
7215 casting it to a pointer.
7216
7217 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7218
7219 From Andrew Cagney <ac131313@redhat.com>
7220
7221 * coffread.c (coff_symtab_read): Initialize
7222 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
7223 the ``.ef'' info.
7224 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
7225
7226 2001-03-23 Andrew Cagney <ac131313@redhat.com>
7227
7228 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
7229 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
7230 multi-arch.
7231
7232 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
7233 * gdbarch.h, gdbarch.c: Re-generate.
7234
7235 * target.h (SOFTWARE_SINGLE_STEP_P)
7236 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
7237
7238 2001-03-23 Andrew Cagney <ac131313@redhat.com>
7239
7240 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
7241 * gdbarch.h, gdbarch.c: Regenerate.
7242
7243 * regcache.h (regcache_read, regcache_write): Declare.
7244 (registers, register_valid, register_buffer): Add note that these
7245 interfaces are deprecated.
7246
7247 * regcache.c: Include "gdb_assert.h".
7248 (legacy_write_register_gen): Rename write_register_gen.
7249 (legacy_read_register_gen): Rename read_register_gen.
7250 (regcache_read, regcache_write): New function.
7251 (read_register_gen, write_register_gen): New function.
7252 (write_register): Simplify. Use write_register_gen.
7253 (read_register): Ditto using read_register_gen.
7254 (read_signed_register): Ditto.
7255 (read_register_bytes): Ditto!!!!
7256 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
7257 replaced by gdbarch_register_read.
7258
7259 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
7260 deprecate.
7261
7262 2001-03-23 Jim Blandy <jimb@redhat.com>
7263
7264 Fix from Dan Berlin:
7265
7266 * stabsread.c (read_cpp_abbrev): Properly construct the names of
7267 virtual function table pointer fields.
7268
7269 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7270
7271 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
7272 xmrealloc): Move existing declarations to the one place and
7273 re-order to be consistent.
7274 (xmcalloc, xmfree): Declare.
7275 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
7276 declaration.
7277
7278 * utils.c (size_t): Delete #ifdef defining size_t.
7279 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
7280 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
7281 corresponding malloc, realloc, calloc.
7282 (mfree): Call free directly.
7283 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
7284 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
7285 function bodies to here.
7286 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
7287
7288 2001-03-23 Andrew Cagney <ac131313@redhat.com>
7289
7290 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
7291 ``shell_file'' static locals.
7292
7293 * jv-lang.c (java_link_class_type): Initialize ``field'' and
7294 ``method''.
7295
7296 * jv-valprint.c (java_value_print): Initialize ``next_element''.
7297
7298 2001-03-23 Mark Kettenis <kettenis@gnu.org>
7299
7300 * config/i386/nm-i386.h: Fix formatting and change reference to
7301 i386-tdep.c to i386-nat.c.
7302
7303 2001-03-23 David Smith <dsmith@redhat.com>
7304
7305 * configure.in: Corrected spelling errors.
7306 * configure: Regenerated.
7307
7308 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7309
7310 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
7311
7312 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7313
7314 * Makefile.in (NTSSTART): Delete.
7315 (NTSOBS): Delete.
7316 (kdb): Delete target.
7317 * kdb-start.c, stuff.c: Mark as obsolete.
7318 * NEWS: Update.
7319
7320 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7321
7322 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
7323 compiles using an ISO-C compiler.
7324 (MALLOC_INCOMPATIBLE): Ditto.
7325 * linespec.c (decode_line_1): Delete hack to work around
7326 HPPA_COMPILER_BUG.
7327
7328 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7329
7330 * exec.c (xfer_memory): Always initialize section.
7331 * infrun.c (normal_stop): Always initialize source_flag.
7332
7333 2001-03-22 Andrew Cagney <ac131313@redhat.com>
7334
7335 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
7336 non-use of a continue address and typical use of ``q'' packet.
7337
7338 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
7339
7340 Make DJGPP use the new unified support for hardware
7341 breakpoints and watchpoints on x86 targets:
7342
7343 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
7344 include nm-i386.h instead.
7345 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
7346 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
7347 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
7348 (target_stopped_data_address, target_insert_watchpoint)
7349 (target_remove_watchpoint, target_insert_hw_breakpoint)
7350 (target_remove_hw_breakpoint): Don't define.
7351 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
7352 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
7353 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
7354 functions from go32-nat.c.
7355
7356 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
7357
7358 * go32-nat.c <top level>: Remove prototypes for watchpoint-
7359 related functions. Remove definitions of watchpoint-related
7360 macros.
7361 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
7362 private cleanup_dregs function.
7363 (cleanup_dregs, go32_insert_watchpoint)
7364 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
7365 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
7366 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
7367 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
7368 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
7369
7370 2001-03-21 Kevin Buettner <kevinb@redhat.com>
7371
7372 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
7373 than two instead of generating an error.
7374
7375 2001-03-21 Jim Blandy <jimb@redhat.com>
7376
7377 * cp-valprint.c: Reformat to bring into line with GNU coding
7378 standards.
7379
7380 2001-03-21 Mark Kettenis <kettenis@gnu.org>
7381
7382 Make Linux use the new unified support for hardware breakpoints
7383 and watchpoints on x86 targets.
7384 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
7385 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
7386 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
7387 appropriate value if not already defined.
7388 (register_u_addr): New function.
7389 (kernel_u_size): New function.
7390 (i386_linux_dr_get, i386_linux_dr_set): New functions.
7391 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
7392 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
7393 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
7394 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
7395 (TARGET_HAS_HARDWARE_WATCHPOINTS,
7396 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
7397 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
7398 target_remove_watchpoint): Remove macros.
7399 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
7400 i386_remove_watchpoint): Remove prototypes.
7401 (register_u_addr): New prototype.
7402 (REGISTER_U_ADDR): Define in terms of register_u_addr.
7403 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
7404 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
7405 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
7406 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
7407 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
7408 i386-nat.o.
7409
7410 2001-03-21 Jim Blandy <jimb@redhat.com>
7411
7412 Fix from Dan Berlin:
7413
7414 * linespec.c (find_methods): Whitespace differences aren't
7415 significant in *un*mangled method names. Use strcmp_iw to compare
7416 them, not STREQ.
7417
7418 2001-03-21 Andrew Cagney <ac131313@redhat.com>
7419
7420 * gdbarch.sh: Allow a non- multi-arch target to override a
7421 predicate.
7422 * gdbarch.h: Regenerate.
7423
7424 2001-03-21 Andrew Cagney <ac131313@redhat.com>
7425
7426 * gdbarch.sh: Avoid use of ``!''.
7427
7428 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7429
7430 * target.h (enum target_signal): Move definition from here.
7431 * defs.h (enum target_signal): To here.
7432
7433 * config/arc/tm-arc.h (arc_software_single_step): Change type of
7434 first parameter to enum target_signal.
7435 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
7436 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
7437 * rs6000-tdep.c (rs6000_software_single_step): Update.
7438
7439 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7440
7441 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
7442 already defined.
7443
7444 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
7445 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
7446 or a reference ('a') can be in a pseudo register.
7447 * infcmd.c (do_registers_info): Must take into account the pseudo
7448 registers to print their value.
7449 (registers_info): Likewise.
7450 * stack.c (frame_info): Likewise.
7451 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
7452
7453 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
7454
7455 Unified support for hardware breakpoints and watchpoints on
7456 x86 targets:
7457
7458 * config/i386/nm-i386.h: New file.
7459
7460 * config/i386/nm-i386.h: (i386_cleanup_dregs)
7461 (i386_insert_watchpoint, i386_remove_watchpoint)
7462 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
7463 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7464 (i386_remove_hw_breakpoint): Declare prototypes.
7465 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
7466 Define if not already defined.
7467 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
7468 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
7469 (target_insert_watchpoint, target_remove_watchpoint)
7470 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
7471 to call the appropriate i386_* functions.
7472
7473 * i386-nat.c: New file.
7474
7475 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
7476 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
7477 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
7478 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
7479 (maint_show_dr): New variables.
7480 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
7481 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
7482 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
7483 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7484 (i386_stopped_data_address, i386_stopped_by_hwbp)
7485 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
7486 functions.
7487 (_initialize_i386_nat): New function.
7488 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
7489 `show-debug-regs', sets maint_show_dr to non-zero value and
7490 activates debugging print-outs in functions which insert, remove,
7491 and test watchpoints and hardware breakpoints.
7492
7493 * Makefile.in (i386-nat.o): New target.
7494 (ALLDEPFILES): Add i386-nat.o.
7495
7496 2001-03-21 Mark Kettenis <kettenis@gnu.org>
7497
7498 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
7499 appropriate comment.
7500
7501 2001-03-20 Kevin Buettner <kevinb@redhat.com>
7502
7503 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
7504 thread-db.o, and lin-lwp.o for thread support instead of
7505 linux-thread.o and lin-thread.o.
7506 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
7507 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
7508 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
7509 (lin_lwp_attach_lwp): Declare.
7510
7511 2001-03-20 Jim Blandy <jimb@redhat.com>
7512
7513 Fix from Dan Berlin:
7514
7515 * Makefile.in: Clean up dependencies on ../include/demangle.h.
7516 (demangle_h): New variable.
7517 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
7518
7519 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7520
7521 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
7522 * breakpoint.c (bpstat_stop_status): Update.
7523 * infrun.c (handle_inferior_event): Ditto.
7524 * mips-tdep.c (mips_dump_tdep): Ditto.
7525 * infrun.c (resume): Ditto.
7526 * infptrace.c (child_resume): Ditto.
7527 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7528 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7529 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7530 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7531 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7532 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7533 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7534
7535 2001-03-20 Andrew Cagney <ac131313@redhat.com>
7536
7537 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
7538 with internal_error.
7539
7540 2001-03-20 Jim Blandy <jimb@redhat.com>
7541
7542 Fix from Dan Berlin:
7543
7544 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
7545 than asking for sym_class's type; that's circuitous. Remove
7546 sym_class, since the last use of it is gone.
7547
7548 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
7549
7550 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
7551 Correct the order of calls to ui_out_field_string and
7552 ui_out_list_begin when bs->old_val is NULL.
7553
7554 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7555
7556 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
7557 * configure: Regenerate.
7558 * config.in: Regenerate.
7559 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
7560
7561 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7562
7563 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
7564 same line to avoid problems with Unixware 7's make when building
7565 a cross debugger.
7566
7567 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7568
7569 * defs.h (malloc): Move declaration from here.
7570 * utils.c (malloc): To here.
7571 * config/pa/xm-hppah.h (malloc): Delete declaration.
7572
7573 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
7574 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
7575 (hpread_quick_traverse): Ditto.
7576 * infttrace.c (create_thread_info): Ditto.
7577 (kill_inferior): Ditto.
7578 * gnu-nat.c (make_inf): Ditto, and don't check return value.
7579 * procfs.c (proc_update_threads): Ditto.
7580 * valprint.c (print_decimal_chars): Ditto.
7581 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
7582 malloc and sprintf.
7583 * remote-rdp.c (rdp_set_command_line): Ditto.
7584
7585 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7586
7587 * defs.h (realloc): Move declaration from here.
7588 * utils.c (realloc): To here.
7589 * config/pa/xm-hppah.h (realloc): Delete declaration.
7590 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
7591 * symfile.c (add_filename_language): Ditto.
7592 * event-loop.c (create_file_handler): Ditto.
7593
7594 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7595
7596 * defs.h (free): Move declaration from here.
7597 * utils.c (free): To here.
7598 (xfree): Document as the only call to free().
7599 * config/pa/xm-hppah.h (free): Delete declaration.
7600
7601 2001-03-19 Kevin Buettner <kevinb@redhat.com>
7602
7603 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
7604 this list.
7605
7606 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7607
7608 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
7609 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
7610 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
7611
7612 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7613
7614 * TODO: List known problems with TUI.
7615
7616 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7617
7618 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
7619 gdb.hp).
7620
7621 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7622
7623 * remote.c (remote_cisco_section_offsets): Do not cast result from
7624 bfd_get_section_name.
7625 (compare_sections_command): Ditto.
7626 (remote_cisco_section_offsets): Make ``p'' a const pointer.
7627 (compare_sections_command): Ditto for ``sectname''.
7628
7629 2001-03-19 Andrew Cagney <ac131313@redhat.com>
7630
7631 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
7632 * valops.c (hand_function_call): Simplify computation of the
7633 address of the pushed argument.
7634
7635 2001-03-17 Andrew Cagney <ac131313@redhat.com>
7636
7637 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
7638 Code copied from c-exp.y.
7639
7640 2001-03-18 Kevin Buettner <kevinb@redhat.com>
7641
7642 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7643 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7644 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
7645 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
7646 of the Solaris procfs testing section. Instead, group with...
7647 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
7648 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
7649 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
7650 * configure: Regenerate.
7651 * config.in: Regenerate.
7652
7653 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
7654 new configure macros to choose which (if any) code to
7655 compile in. Added code to explicitly handle *BSD systems;
7656 these systems were previously handled only through macro
7657 redefinition. Also, due to the way the autoconf tests are set
7658 up, this function will no longer return a non-zero value when
7659 GDB is configured as a cross debugger. I.e, cross debuggers
7660 will no longer be able to "accidentally" get the host system's
7661 link map offsets.
7662
7663 2001-03-18 Kevin Buettner <kevinb@redhat.com>
7664
7665 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
7666 line to avoid build problem on NetBSD 1.4.
7667
7668 2001-03-17 Michael Chastain <chastain@redhat.com>
7669
7670 * win32-nat.c (child_attach): check args for NULL before passing
7671 to strtoul. This fixes PR gdb/43.
7672
7673 2001-03-17 Mark Kettenis <kettenis@gnu.org>
7674
7675 * i387-nat.h: Doc Fix.
7676
7677 * i386-tdep.c: Fix formatting.
7678 (i386_get_frame_setup, i386_follow_jump, codestream_read,
7679 codestream_seek, codestream_fill, skip_trampoline_code,
7680 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
7681 prototypoes.
7682
7683 2001-03-17 Mark Kettenis <kettenis@gnu.org>
7684
7685 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
7686 no longer used. Also remove associated FIXME.
7687
7688 2001-03-16 Andrew Cagney <ac131313@redhat.com>
7689
7690 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
7691 not generate macro wrappers for multi-arch functions or
7692 predicates.
7693 (class_is_info_p, class_is_predicate_p): Update.
7694 (class_is_function_p, class_is_variable_p): Ditto.
7695 (class_is_multiarch_p): New class function.
7696
7697 2001-03-16 J.T. Conklin <jtc@redback.com>
7698
7699 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
7700 h8300_frame_args_address from frame_args_address.
7701 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
7702 from frame_locals_address.
7703 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
7704 from print_register_hook.
7705 (h8300_frame_args_address): Declare.
7706 (h8300_frame_find_saved_regs): Declare.
7707 (h8300_frame_locals_address): Declare.
7708 (h8300_frame_saved_pc): Declare.
7709 (h8300_pop_frame): Declare.
7710 (h8300_print_register_hook): Declare.
7711 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
7712 (h8300_frame_args_address): Renamed from frame_args_address.
7713 (h8300_frame_locals_address): Renamed from frame_locals_address.
7714 (h8300_pop_frame): Renamed from pop_frame.
7715 (h8300_print_register_hook): Renamed from print_register_hook.
7716
7717 2001-03-16 Kevin Buettner <kevinb@redhat.com>
7718
7719 * solib-svr4.c (bfd_lookup_symbol): Change type of
7720 ``storage_needed'' from unsigned int to long in order to
7721 match return type of bfd_get_symtab_upper_bound() and
7722 bfd_get_dynamic_symtab_upper_bound().
7723 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
7724 REASONABLE_LIMIT hack which had been added to work around this
7725 problem.
7726
7727 2001-03-15 Kevin Buettner <kevinb@redhat.com>
7728
7729 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
7730 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
7731 to free() with calls to xfree().
7732 (bfd_lookup_symbol): Eliminate use of PTR.
7733 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
7734
7735 2001-03-15 Martin Hunt <hunt@redhat.com>
7736
7737 * linespec.c (decode_line_1): Remove trailing quote
7738 when parsing double quotes.
7739
7740 2001-03-15 Kevin Buettner <kevinb@redhat.com>
7741
7742 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
7743 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
7744 argument in the to_xfer_memory calls.
7745
7746 2001-03-15 Andrew Cagney <ac131313@redhat.com>
7747
7748 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
7749 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
7750
7751 2001-03-15 Andrew Cagney <ac131313@redhat.com>
7752
7753 * wince.c (child_xfer_memory): Add attrib parameter.
7754 * symm-nat.c (child_xfer_memory): Ditto.
7755 * mac-nat.c (child_xfer_memory): Ditto.
7756 * infttrace.c (child_xfer_memory): Ditto.
7757 * procfs.c (procfs_xfer_memory): Ditto.
7758 * lin-thread.c (thread_db_xfer_memory): Ditto.
7759 * gnu-nat.c (gnu_xfer_memory): Ditto.
7760
7761 2001-03-14 Andrew Cagney <ac131313@redhat.com>
7762
7763 * NEWS: Mention that Harris/CXUX m88k is obsolete.
7764
7765 2001-03-13 Andrew Cagney <ac131313@redhat.com>
7766
7767 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
7768 to regcache functions.
7769 * config/m68k/tm-m68k.h: Ditto.
7770 * config/i386/tm-i386v.h: Ditto.
7771 * config/mcore/tm-mcore.h: Ditto.
7772 * config/m88k/tm-m88k.h: Ditto.
7773 * config/m68k/tm-news.h: Ditto.
7774 * config/m68k/tm-linux.h: Ditto.
7775 * config/m68k/tm-delta68.h: Ditto.
7776 * config/m68k/nm-sun3.h: Ditto.
7777 * config/m32r/tm-m32r.h: Ditto.
7778 * config/i386/tm-symmetry.h: Ditto.
7779 * config/i386/tm-sun386.h: Ditto.
7780 * config/i386/tm-i386.h: Ditto.
7781 * config/i386/nm-symmetry.h: Ditto.
7782 * config/i386/nm-sun386.h: Ditto.
7783 * config/i386/nm-ptx4.h: Ditto.
7784 * config/i386/nm-i386mach.h: Ditto.
7785 * config/h8500/tm-h8500.h: Ditto.
7786 * config/h8300/tm-h8300.h: Ditto.
7787 * config/fr30/tm-fr30.h: Ditto.
7788 * config/d30v/tm-d30v.h: Ditto.
7789 * config/arm/tm-arm.h: Ditto.
7790 * config/arc/tm-arc.h: Ditto.
7791 * config/alpha/tm-alpha.h: Ditto.
7792 * config/a29k/tm-vx29k.h: Ditto.
7793 * config/a29k/tm-a29k.h: Ditto.
7794 * config/w65/tm-w65.h: Ditto.
7795 * config/vax/tm-vax.h: Ditto.
7796 * config/v850/tm-v850.h: Ditto.
7797 * config/tic80/tm-tic80.h: Ditto.
7798 * config/sparc/tm-sparclite.h: Ditto.
7799 * config/sparc/tm-sparclet.h: Ditto.
7800 * config/sparc/tm-sparc.h: Ditto.
7801 * config/sparc/nm-sun4sol2.h: Ditto.
7802 * config/sparc/nm-sun4os4.h: Ditto.
7803 * config/sparc/nm-nbsd.h: Ditto.
7804 * config/powerpc/nm-solaris.h: Ditto.
7805 * config/pa/tm-hppao.h: Ditto.
7806 * config/pa/tm-hppa.h: Ditto.
7807 * config/pa/nm-hppab.h: Ditto.
7808 * config/ns32k/tm-umax.h: Ditto.
7809 * config/ns32k/tm-merlin.h: Ditto.
7810 * config/nm-m3.h: Ditto.
7811 * config/nm-gnu.h: Ditto.
7812
7813 2001-03-14 Andrew Cagney <ac131313@redhat.com>
7814
7815 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
7816 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
7817 Specify an m88k target. Include sample GAWK script to generate
7818 target list. Delete non-existant romp target.
7819 * TODO (GDB 5.1 - Cleanups): Update.
7820
7821 2001-03-14 Keith Seitz <keiths@cygnus.com>
7822
7823 * linespec.c (decode_line_1): Skip argptr over a leading
7824 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
7825
7826 2001-03-14 Kevin Buettner <kevinb@redhat.com>
7827
7828 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
7829
7830 2001-03-13 Andrew Cagney <ac131313@redhat.com>
7831
7832 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
7833 * m3-nat.c: Ditto.
7834 * p-lang.h: Ditto.
7835 * printcmd.c (printf_command): Ditto.
7836 * ch-exp.c (match_integer_literal): Ditto.
7837 * scm-tags.h: Ditto.
7838 * ser-go32.c: Ditto.
7839 * hppa-tdep.c (unwind_command): Ditto.
7840 * defs.h (volatile): Delete macro definition. Assume __STDC__.
7841 * remote-adapt.c (volatile): Ditto.
7842 * remote-eb.c (volatile): Ditto.
7843 * remote-mm.c (volatile): Ditto.
7844 * defs.h (alloca): Assume __STDC__, declare returning void *.
7845
7846 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7847
7848 * inferior.h (ARCH_NUM_REGS): Delete definition.
7849 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
7850 * regcache.c (registers_changed): Ditto.
7851 (registers_fetched): Ditto.
7852 * infptrace.c (fetch_inferior_registers): Ditto.
7853 (store_inferior_registers): Ditto.
7854 * infcmd.c (do_registers_info): Ditto.
7855 (registers_info): Ditto.
7856 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
7857 (old_store_inferior_registers): Ditto.
7858 * gdbserver/low-linux.c (register_addr): Ditto.
7859 * gdbserver/low-hppabsd.c (register_addr): Ditto.
7860 * core-aout.c: Don't include "inferior.h".
7861 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
7862 (register_addr): Ditto.
7863
7864 2001-03-13 Fernando Nasser <fnasser@redhat.com>
7865
7866 From Steven Johnson <sjohnson@neurizon.net>
7867 * cli/cli-script.c (define_command): Fix setting of post hooks.
7868
7869 2001-03-13 Mark Kettenis <kettenis@gnu.org>
7870
7871 * i386-linux-tdep.c: Fix formatting and clarify comments.
7872 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
7873 where appropriate.
7874
7875 2001-03-12 Andrew Cagney <ac131313@redhat.com>
7876
7877 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
7878 (proc_update_sc): Use gdb_assert instead of assert.
7879 (proc_abort): Ditto.
7880 (inf_set_step_thread): Ditto.
7881 (gnu_wait): Ditto.
7882 (S_exception_raise_request): Ditto.
7883 (gnu_terminal_init_inferior): Ditto.
7884
7885 2001-03-09 Kevin Buettner <kevinb@redhat.com>
7886
7887 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
7888 (solib-legacy.o): New makefile target.
7889 * solib-legacy.c: New file.
7890 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
7891 (default_svr4_fetch_link_map_offsets): Delete.
7892 (set_solib_svr4_fetch_link_map_offsets): Declare.
7893 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
7894 * solib-svr4.c (elf/common.h): Include.
7895 (link.h): Only include for SunOS shared library support.
7896 (_SYSCALL32): Don't define.
7897 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
7898 (default_svr4_fetch_link_map_offsets): Made static; added forward
7899 declaration.
7900 (fetch_link_map_offsets): New static global.
7901 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
7902 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
7903 of what used to be in this function now reside in
7904 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
7905 (open_symbol_file_object): Fix declaration in SunOS section
7906 of the code.
7907 (set_solib_svr4_fetch_link_map_offsets): New extern function.
7908 (init_fetch_link_map_offsets): New static function.
7909 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
7910 under multiarch control.
7911
7912 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
7913 list.
7914 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
7915 * config/arm/linux.mt (TDEPFILES): Likewise.
7916 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7917 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
7918 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7919 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
7920 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
7921 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
7922 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7923 * config/i386/linux.mt (TDEPFILES): Likewise.
7924 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7925 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7926 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
7927 * config/i386/ptx4.mh (XDEPFILES): Likewise.
7928 * config/i386/sun386.mt (TDEPFILES): Likewise.
7929 * config/ia64/linux.mt (TDEPFILES): Likewise.
7930 * config/m68k/linux.mt (TDEPFILES): Likewise.
7931 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
7932 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7933 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
7934 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
7935 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
7936 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
7937 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7938 * config/powerpc/linux.mt (TDEPFILES): Likewise.
7939 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7940 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
7941 * config/sh/linux.mt (TDEPFILES): Likewise.
7942 * config/sparc/linux.mt (TDEPFILES): Likewise.
7943 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7944 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7945 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
7946 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
7947 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
7948
7949 2001-03-09 Kevin Buettner <kevinb@redhat.com>
7950
7951 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
7952
7953 2001-03-09 Andrew Cagney <ac131313@redhat.com>
7954
7955 * MAINTAINERS (Write After Approval): Update Philip Blundell.
7956
7957 2001-03-09 Keith Seitz <keiths@cygnus.com>
7958
7959 * MAINTAINERS: Add myself to write after approval list.
7960
7961 2001-03-09 Mark Kettenis <kettenis@gnu.org>
7962
7963 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
7964 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
7965
7966 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7967
7968 * configure.host (m88*-harris-cxux*): Mark as obsolete.
7969 * configure.tgt: Ditto.
7970 * config/m88k/xm-cxux.h: Ditto.
7971 * config/m88k/tm-cxux.h: Ditto.
7972 * config/m88k/nm-cxux.h: Ditto.
7973 * config/m88k/cxux.mt: Ditto.
7974 * config/m88k/cxux.mh: Ditto.
7975
7976 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7977
7978 * Makefile.in: Delete rules for obsolete files.
7979
7980 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
7981
7982 * stack.c (parse_frame_specification): For one argument case,
7983 handle the situation where the argument is an integer, not an
7984 address -- arguably the most common case. This matters on
7985 targets where pointers and addresses are different.
7986
7987 2001-03-08 Andrew Cagney <ac131313@redhat.com>
7988
7989 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
7990 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
7991 general.
7992
7993 2001-03-07 Andrew Cagney <ac131313@redhat.com>
7994
7995 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
7996 with SID on Solaris 8.
7997
7998 2001-03-07 Mark Kettenis <kettenis@gnu.org>
7999
8000 * defs.h: Provide prototypes for floatformat_is_negative,
8001 floatformat_is_nan and floatformat_mantissa.
8002 * utils.c: Include "gdb_assert.h".
8003 (floatformat_is_negative): New function.
8004 (floatformat_is_nan): New function.
8005 (floatformat_mantissa): New function.
8006 * valprint.c: Include "floatformat.h".
8007 (print_floating): Get rid of the Linux-specific
8008 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
8009 help these new functions. Print NaN's in a format conforming to
8010 ISO C99.
8011
8012 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
8013
8014 * top.c (init_main): Make `set history file name' complete on file
8015 names.
8016
8017 2001-03-06 J.T. Conklin <jtc@redback.com>
8018
8019 * Makefile.in (LINTFLAGS): Update to contain all of the macros
8020 which define include paths used when compiling.
8021
8022 * util.c (savestring, msavestring): Change type of length argument.
8023 * defs.h (savestring, msavestring): Update to match.
8024
8025 * symtab.h (decode_line_1): Removed declaration.
8026
8027 * symfile.c (#include <assert.h>): Removed.
8028
8029 * arch-utils.c (#include <ctype.h>): Removed.
8030 * c-typeprint.c: Likewise.
8031 * dbxread.c: Likewise.
8032 * gdbtypes.c: Likewise.
8033 * target.c: Likewise.
8034 * os9kread.c: Likewise.
8035
8036 * c-valprint.c (#include "demangle.h"): Removed.
8037 * ch-typeprint.c: Likewise.
8038 * eval.c: Likewise.
8039 * f-typeprint.c: Likewise.
8040 * f-valprint.c: Likewise.
8041 * m2-typeprint.c: Likewise.
8042 * typeprint.c: Likewise.
8043 * p-typeprint.c: Likewise.
8044 * valarith.c: Likewise.
8045 * valprint.c: Likewise.
8046
8047 * m2-typeprint.c (#include "gdb_string.h"): Removed.
8048 * nlmread.c: Likewise.
8049
8050 * mdebugread.c (#include "gdb-stabs.h"): Removed.
8051 * minsyms.c: Likewise.
8052 * mipsread.c: Likewise.
8053 * nlmread.c: Likewise.
8054
8055 * m2-typeprint.c (#include "obstack.h"): Removed.
8056 * m2-valprint.c: Likewise.
8057
8058 * event-loop.c (#include <setjmp.h>): Removed.
8059
8060 2001-03-06 Stan Shebs <shebs@apple.com>
8061
8062 * MAINTAINERS: Remove self from specific maintenance domains
8063 (macos, gdbserver, documentation, testsuite).
8064
8065 2001-03-06 Kevin Buettner <kevinb@redhat.com>
8066
8067 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
8068 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
8069 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
8070 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
8071 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
8072 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
8073 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
8074 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
8075 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
8076 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
8077 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
8078 coff-solib.h, coffread.c, command.h, complaints.c,
8079 complaints.h, completer.c, completer.h,
8080 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
8081 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
8082 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
8083 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
8084 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
8085 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
8086 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
8087 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
8088 config/arm/nm-linux.h, config/arm/tm-arm.h,
8089 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
8090 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
8091 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
8092 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
8093 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
8094 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
8095 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
8096 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
8097 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
8098 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
8099 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
8100 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
8101 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
8102 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
8103 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
8104 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
8105 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
8106 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
8107 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
8108 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
8109 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
8110 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
8111 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
8112 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
8113 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
8114 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
8115 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
8116 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
8117 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
8118 config/i960/tm-i960.h, config/i960/tm-mon960.h,
8119 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
8120 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
8121 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
8122 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
8123 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
8124 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
8125 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
8126 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
8127 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
8128 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
8129 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
8130 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
8131 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
8132 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
8133 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
8134 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
8135 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
8136 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
8137 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
8138 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
8139 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
8140 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
8141 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
8142 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
8143 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
8144 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
8145 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
8146 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
8147 config/mips/nm-irix5.h, config/mips/nm-mips.h,
8148 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
8149 config/mips/tm-embed.h, config/mips/tm-embed64.h,
8150 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
8151 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
8152 config/mips/tm-mips.h, config/mips/tm-mips64.h,
8153 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
8154 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
8155 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
8156 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
8157 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
8158 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
8159 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
8160 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
8161 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
8162 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
8163 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
8164 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
8165 config/nm-sysv4.h, config/none/nm-none.h,
8166 config/none/tm-none.h, config/none/xm-none.h,
8167 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
8168 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
8169 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
8170 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
8171 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
8172 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
8173 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
8174 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
8175 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
8176 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
8177 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
8178 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
8179 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
8180 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
8181 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
8182 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
8183 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
8184 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
8185 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
8186 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
8187 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
8188 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
8189 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
8190 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
8191 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
8192 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8193 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8194 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
8195 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
8196 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
8197 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
8198 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
8199 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
8200 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
8201 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
8202 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
8203 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
8204 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
8205 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
8206 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
8207 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
8208 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
8209 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
8210 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
8211 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
8212 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
8213 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
8214 gdbserver/low-sim.c, gdbserver/low-sparc.c,
8215 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
8216 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
8217 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
8218 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
8219 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
8220 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
8221 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
8222 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
8223 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
8224 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
8225 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
8226 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
8227 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
8228 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
8229 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
8230 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
8231 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
8232 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
8233 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
8234 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
8235 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
8236 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
8237 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
8238 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
8239 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
8240 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
8241 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
8242 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
8243 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
8244 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
8245 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
8246 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
8247 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
8248 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
8249 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
8250 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
8251 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
8252 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
8253 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
8254 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
8255 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
8256 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
8257 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
8258 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
8259 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
8260 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
8261 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
8262 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
8263 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
8264 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
8265 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
8266 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
8267 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
8268 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
8269 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
8270 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
8271 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
8272 notices.
8273
8274 2001-03-05 Kevin Buettner <kevinb@redhat.com>
8275
8276 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
8277 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
8278 macros.
8279 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
8280 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
8281 (sys/fault.h, sys/select.h): Test for presence of these
8282 header files.
8283 (ia64-*-aix*): Define NEW_PROC_API for this host.
8284 * configure: Regenerate.
8285 * config.in: Regenerate.
8286
8287 * configure.host (ia64-*-aix*): New host.
8288 * configure.tgt (ia64-*-aix*): New target.
8289
8290 2001-03-05 Andrew Cagney <ac131313@redhat.com>
8291
8292 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
8293
8294 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
8295
8296 * wince.c: Change realloc to xrealloc throughout.
8297 (handle_load_dll): Use void * rather than PTR in argument.
8298
8299 2001-03-04 Andrew Cagney <ac131313@redhat.com>
8300
8301 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
8302 * ocd.c (ocd_xfer_memory): Ditto.
8303 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
8304 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
8305 buildable with ,-Werror.
8306
8307 * Makefile.in (symfile_h): Define.
8308 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
8309 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
8310 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
8311 ,-Werror.
8312
8313 * dsrec.c (make_srec): Fix internal_error fmt arg.
8314 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
8315
8316 2001-03-03 Kevin Buettner <kevinb@redhat.com>
8317
8318 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
8319 as an lvalue.
8320
8321 2001-03-02 Andrew Cagney <ac131313@redhat.com>
8322
8323 * MAINTAINERS (paper trail): Update.
8324
8325 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
8326
8327 2001-03-02 Andrew Cagney <ac131313@redhat.com>
8328
8329 From 2001-03-01 Tom Rix <trix@redhat.com>:
8330 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
8331 parameter to mn10200_analyze_prologue.
8332
8333 * config/mn10200/tm-mn10200.h: Include "regcache.h".
8334 * MAINTAINERS: Document that mn10200-elf target is buildable.
8335
8336 2001-03-02 Kevin Buettner <kevinb@redhat.com>
8337
8338 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
8339 from here...
8340 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
8341 (MONTEREY): Don't define.
8342 (AIX5): Define.
8343
8344 2001-03-02 Matt Hiller <hiller@redhat.com>
8345
8346 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
8347
8348 2001-03-02 Kevin Buettner <kevinb@redhat.com>
8349
8350 * sparc-nat.c (sparc-nat.c): Don't include self.
8351
8352 2001-03-01 J.T. Conklin <jtc@redback.com>
8353
8354 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
8355 if __CYGWIN32__ is set from here.
8356 * config/i386/xm-cygwin.h: To here.
8357 * config/powerpc/xm-cygwin.h: To here.
8358
8359 * i386-stub.c (handle_exception): Use 'T' response packet.
8360
8361 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8362
8363 * m32r-tdep.c: Fix cut and paste error in comment.
8364
8365 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8366
8367 * symtab.c (print_msymbol_info): Print addresses by portable method
8368 longest_local_hex_string_custom. Allow for 64-bit addresses.
8369
8370 2001-03-01 J.T. Conklin <jtc@redback.com>
8371
8372 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
8373 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
8374 (MIN_OF_TYPE): Likewise.
8375
8376 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
8377
8378 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8379
8380 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
8381 * os9kread.c (os9k_process_one_symbol): Add assert to detect
8382 ``loses if sizeof (char *) > sizeof (int)''.
8383
8384 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8385
8386 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
8387
8388 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8389
8390 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
8391 lists.
8392 (mi-main.o): Ditto.
8393
8394 2001-03-01 Andrew Cagney <ac131313@redhat.com>
8395
8396 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
8397 dependency lists.
8398
8399 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8400
8401 * printcmd.c (print_address_numeric): Update comments to refer
8402 to sizeof addr, not sizeof pointer.
8403 (x_command): Remove needless whitespace (shorten long line).
8404
8405 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
8406 (read_memory_nobpt): Ditto.
8407 (ep_is_catchpoint): Ditto.
8408 (ep_is_shlib_catchpoint): Ditto.
8409 (ep_is_exception_catchpoint): Ditto.
8410 (describe_other_breakpoints): Ditto.
8411
8412 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
8413
8414 * regcache.h (register_valid): Fix comment documenting valid
8415 states.
8416
8417 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
8418
8419 From Steven Johnson:
8420 * regcache.h: New file.
8421
8422 * value.h (read_register_bytes, read_register_gen)
8423 (write_register_gen, write_register_bytes)
8424 (read_register, read_register_pid)
8425 (read_signed_register, read_signed_register_pid)
8426 (write_register, write_register_pid)
8427 (register_cached, set_register_cached)
8428 (register_changed, register_buffer)
8429 (registers_changed, supply_register): Move declaration from here.
8430 * regcache.h: To here.
8431 * gdbcore.h (registers_fetched): Ditto.
8432 * inferior.h (registers, registers_valid): Ditto.
8433
8434 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
8435 generic_target_write_pc, write_pc_pid, write_pc,
8436 generic_target_read_sp, read_sp, generic_target_write_sp,
8437 write_sp, generic_target_read_fp, read_fp,
8438 generic_target_write_fp, write_fp): Add note that these functions
8439 will be moved from this file.
8440
8441 * a29k-tdep.c: Include "regcache.h".
8442 * a68v-nat.c: Ditto.
8443 * abug-rom.c: Ditto.
8444 * alpha-nat.c: Ditto.
8445 * alpha-tdep.c: Ditto.
8446 * alphabsd-nat.c: Ditto.
8447 * arc-tdep.c: Ditto.
8448 * arm-linux-nat.c: Ditto.
8449 * arm-linux-tdep.c: Ditto.
8450 * arm-tdep.c: Ditto.
8451 * blockframe.c: Ditto.
8452 * core-aout.c: Ditto.
8453 * core-sol2.c: Ditto.
8454 * corelow.c: Ditto.
8455 * cpu32bug-rom.c: Ditto.
8456 * cxux-nat.c: Ditto.
8457 * d10v-tdep.c: Ditto.
8458 * d30v-tdep.c: Ditto.
8459 * dbug-rom.c: Ditto.
8460 * dink32-rom.c: Ditto.
8461 * dve3900-rom.c: Ditto.
8462 * findvar.c: Ditto.
8463 * fr30-tdep.c: Ditto.
8464 * frame.c: Ditto.
8465 * go32-nat.c: Ditto.
8466 * h8300-tdep.c: Ditto.
8467 * h8500-tdep.c: Ditto.
8468 * hp300ux-nat.c: Ditto.
8469 * hppa-tdep.c: Ditto.
8470 * hppab-nat.c: Ditto.
8471 * hppah-nat.c: Ditto.
8472 * hppam3-nat.c: Ditto.
8473 * hpux-thread.c: Ditto.
8474 * i386-linux-nat.c: Ditto.
8475 * i386-linux-tdep.c: Ditto.
8476 * i386-tdep.c: Ditto.
8477 * i386aix-nat.c: Ditto.
8478 * i386b-nat.c: Ditto.
8479 * i386bsd-nat.c: Ditto.
8480 * i386gnu-nat.c: Ditto.
8481 * i386ly-tdep.c: Ditto.
8482 * i386m3-nat.c: Ditto.
8483 * i386mach-nat.c: Ditto.
8484 * i386nbsd-nat.c: Ditto.
8485 * i386v4-nat.c: Ditto.
8486 * i387-nat.c: Ditto.
8487 * i387-tdep.c: Ditto.
8488 * i960-tdep.c: Ditto.
8489 * ia64-aix-nat.c: Ditto.
8490 * ia64-linux-nat.c: Ditto.
8491 * ia64-tdep.c: Ditto.
8492 * infptrace.c: Ditto.
8493 * infrun.c: Ditto.
8494 * irix4-nat.c: Ditto.
8495 * irix5-nat.c: Ditto.
8496 * lin-lwp.c: Ditto.
8497 * lin-thread.c: Ditto.
8498 * lynx-nat.c: Ditto.
8499 * m3-nat.c: Ditto.
8500 * m32r-rom.c: Ditto.
8501 * m32r-tdep.c: Ditto.
8502 * m68hc11-tdep.c: Ditto.
8503 * m68k-tdep.c: Ditto.
8504 * m68klinux-nat.c: Ditto.
8505 * m68knbsd-nat.c: Ditto.
8506 * m68knbsd-tdep.c: Ditto.
8507 * m88k-nat.c: Ditto.
8508 * m88k-tdep.c: Ditto.
8509 * mac-nat.c: Ditto.
8510 * mcore-rom.c: Ditto.
8511 * mcore-tdep.c: Ditto.
8512 * mi/mi-main.c: Ditto.
8513 * mips-nat.c: Ditto.
8514 * mips-tdep.c: Ditto.
8515 * mipsm3-nat.c: Ditto.
8516 * mipsv4-nat.c: Ditto.
8517 * mn10200-tdep.c: Ditto.
8518 * mn10300-tdep.c: Ditto.
8519 * monitor.c: Ditto.
8520 * ns32km3-nat.c: Ditto.
8521 * ns32knbsd-nat.c: Ditto.
8522 * ocd.c: Ditto.
8523 * pa64solib.c: Ditto.
8524 * ppc-bdm.c: Ditto.
8525 * ppc-linux-nat.c: Ditto.
8526 * ppc-linux-tdep.c: Ditto.
8527 * ppcbug-rom.c: Ditto.
8528 * ppcnbsd-nat.c: Ditto.
8529 * ptx4-nat.c: Ditto.
8530 * regcache.c: Ditto.
8531 * remote-adapt.c: Ditto.
8532 * remote-array.c: Ditto.
8533 * remote-bug.c: Ditto.
8534 * remote-e7000.c: Ditto.
8535 * remote-eb.c: Ditto.
8536 * remote-es.c: Ditto.
8537 * remote-est.c: Ditto.
8538 * remote-hms.c: Ditto.
8539 * remote-mips.c: Ditto.
8540 * remote-mm.c: Ditto.
8541 * remote-nindy.c: Ditto.
8542 * remote-os9k.c: Ditto.
8543 * remote-rdi.c: Ditto.
8544 * remote-rdp.c: Ditto.
8545 * remote-sds.c: Ditto.
8546 * remote-sim.c: Ditto.
8547 * remote-st.c: Ditto.
8548 * remote-udi.c: Ditto.
8549 * remote-utils.c: Ditto.
8550 * remote-vx.c: Ditto.
8551 * remote-vx29k.c: Ditto.
8552 * remote-vx68.c: Ditto.
8553 * remote-vx960.c: Ditto.
8554 * remote-vxmips.c: Ditto.
8555 * remote-vxsparc.c: Ditto.
8556 * remote.c: Ditto.
8557 * rom68k-rom.c: Ditto.
8558 * rs6000-nat.c: Ditto.
8559 * rs6000-tdep.c: Ditto.
8560 * sh-tdep.c: Ditto.
8561 * sh3-rom.c: Ditto.
8562 * sol-thread.c: Ditto.
8563 * solib-svr4.c: Ditto.
8564 * somsolib.c: Ditto.
8565 * sparc-nat.c: Ditto.
8566 * sparc-tdep.c: Ditto.
8567 * sparcl-tdep.c: Ditto.
8568 * sparclet-rom.c: Ditto.
8569 * sun3-nat.c: Ditto.
8570 * sun386-nat.c: Ditto.
8571 * symm-nat.c: Ditto.
8572 * target.c: Ditto.
8573 * thread-db.c: Ditto.
8574 * thread.c: Ditto.
8575 * tic80-tdep.c: Ditto.
8576 * tracepoint.c: Ditto.
8577 * ultra3-nat.c: Ditto.
8578 * umax-xdep.c: Ditto.
8579 * uw-thread.c: Ditto.
8580 * v850-tdep.c: Ditto.
8581 * v850ice.c: Ditto.
8582 * valops.c: Ditto.
8583 * w65-tdep.c: Ditto.
8584 * w89k-rom.c: Ditto.
8585 * win32-nat.c: Ditto.
8586 * wince.c: Ditto.
8587 * z8k-tdep.c: Ditto.
8588
8589 2001-02-28 Matt Hiller <hiller@redhat.com>
8590
8591 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
8592
8593 2001-02-27 Matt Hiller <hiller@redhat.com>
8594
8595 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
8596 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
8597 mn10300_stab_reg_to_regnum.
8598
8599 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
8600
8601 * symtab.c (search_symbols): Fix off by one error in test for
8602 error.
8603
8604 2001-02-23 Andrew Cagney <ac131313@redhat.com>
8605
8606 * config/sparc/sp64linux.mt: New file.
8607 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
8608 * configure.host: Recognize sparc64-*-linux* as a linux host.
8609
8610 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
8611 * config/sparc/tm-sp64linux.h: New file.
8612
8613 2001-02-24 Kevin Buettner <kevinb@redhat.com>
8614
8615 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
8616 with call to internal_error().
8617 * dbxread.c (process_one_symbol): Likewise.
8618 * exec.c (build_section_table, xfer_memory): Likewise.
8619 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
8620 Likewise.
8621 * hpread.c (hpread_type_translate, hpread_read_array_type)
8622 (hpread_type_lookup): Likewise.
8623 * i386-tdep.c (gdb_print_insn_i386): Likewise.
8624 * i960-tdep.c (mem): Likewise
8625 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
8626 * infptrace.c (child_resume): Likewise.
8627 * infttrace.c (_initialize_infttrace): Likewise.
8628 * language.c (binop_result_type, add_language): Likewise.
8629 * lynx-nat.c (store_inferior_registers): Likewise.
8630 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
8631 * mdebugread.c (parse_partial_symbols): Likewise.
8632 * monitor.c (monitor_printf_noecho, monitor_printf)
8633 (monitor_dump_regs): Likewise.
8634 * ocd.c (stu_put_packet): Likewise.
8635 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
8636 * remote-bug.c (bug_open): Likewise.
8637 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
8638 * remote-es.c (es1800_read_bytes): Likewise.
8639 * remote-mips.c (common_breakpoint): Likewise.
8640 * remote-rdp.c (send_rdp): Likewise.
8641 * remote-sds.c (putmessage): Likewise.
8642 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
8643 Likewise.
8644 * sparcl-tdep.c (sparclite_download): Likewise.
8645 * symtab.c (lookup_partial_symbol): Likewise.
8646 * target.c (push_target, pop_target, initialize_targets): Likewise.
8647 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
8648 Likewise.
8649 * valprint.c (print_decimal, print_longest, print_longest)
8650 (strcat_longest): Likewise.
8651 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
8652 * xmodem.c (xmodem_send_packet): Likewise.
8653 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
8654 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
8655 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
8656 (STORE_RETURN_VALUE): Likewise.
8657 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
8658 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
8659 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
8660 Likewise.
8661
8662 2001-02-23 Andrew Cagney <ac131313@redhat.com>
8663
8664 * CONTRIBUTE: Document how to cite a problem report.
8665 * TODO: Note need to replace CONTRIBUTE with generated file.
8666
8667 * CONTRIBUTE: Mention that patches do not need to include the
8668 generated files gdbarch.h and gdbarch.c.
8669
8670 2001-02-21 Andrew Cagney <ac131313@redhat.com>
8671
8672 * value.h (get_saved_register): Move from here.
8673 * frame.h: To here.
8674
8675 2001-02-21 Kevin Buettner <kevinb@redhat.com>
8676
8677 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
8678 (in_solib_dynsym_resolve_code): Add declaration.
8679 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
8680 in_solib_dynsym_resolve_code() rather than
8681 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
8682 which caused this macro to only be defined when
8683 SVR4_SHARED_LIBS is defined.
8684 * solib.c (in_solib_dynsym_resolve_code): New function.
8685 * solist.h (struct target_so_ops): Add new member
8686 in_dynsym_resolve_code.
8687 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
8688 in_svr4_dynsym_resolve_code. Also, made static.
8689 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
8690 member in aix5_so_ops.
8691 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
8692 in_svr4_dynsym_resolve_code. Also, added second version
8693 of this function which will be used when SVR4_SHARED_LIBS
8694 is not defined.
8695 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
8696 member in svr4_so_ops.
8697
8698 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
8699 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
8700 config/ia64/xm-aix.h: New files.
8701 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
8702 (ia64_aix_sigcontext_register_address): New declaration.
8703 (ia64_gdbarch_init): Provide for initialization of
8704 sigcontext_register_address member of struct tdep when
8705 on target is detected to be running AIX.
8706 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
8707 this list.
8708
8709 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8710
8711 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
8712 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
8713 for thread support instead of linux-thread.o and lin-thread.o.
8714 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
8715 ATTACH_LWP): Define to use the following lin-lwp.c functions...
8716 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
8717 lin_lwp_attach_lwp): Declare.
8718
8719 2001-02-20 Andrew Cagney <ac131313@redhat.com>
8720
8721 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
8722 formatting.
8723
8724 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8725
8726 * solib-aix5.c (solib-svr4.h): Remove include.
8727 (solib_break_names): Delete names which aren't actually
8728 used by AIX5.
8729 (bkpt_names): Remove.
8730 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
8731 to STREQ() with equivalent calls to strcmp().
8732 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
8733 aix5_solib_create_inferior_hook): Revise comments.
8734 (enable_break): Remove old ``bkpt_names'' code.
8735
8736 2001-02-19 Andrew Cagney <ac131313@redhat.com>
8737
8738 * Makefile.in (SFILES): Add frame.c .
8739 (COMMON_OBS): Add frame.o .
8740 (frame.o): New target.
8741
8742 * frame.c (find_saved_register):
8743 (default_get_saved_register):
8744 (get_saved_register):
8745 (read_relative_register_raw_bytes_for_frame):
8746 (read_relative_register_raw_bytes): Moved to here.
8747 * regcache.c: From here.
8748
8749 2001-02-20 Kevin Buettner <kevinb@redhat.com>
8750
8751 * solib-aix5.c: New file.
8752
8753 2001-02-20 Martin M. Hunt <hunt@redhat.com>
8754
8755 * solib.c (info_sharedlibrary_command): Don't assume pointers
8756 are the same size of long, call longest_local_hex_string_custom().
8757
8758 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
8759 extract_signed_integer() should be called instead of
8760 extract_address().
8761
8762 2001-02-20 Martin M. Hunt <hunt@redhat.com>
8763
8764 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
8765
8766 2001-02-19 Andrew Cagney <ac131313@redhat.com>
8767
8768 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
8769 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
8770 then floating point registers are 8 bytes.
8771
8772 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8773
8774 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
8775 accomodate 64-bit addresses.
8776
8777 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8778
8779 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
8780 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
8781 lookup_symbol, when trying to find a symbol with a mangled name,
8782 to avoid infinite recursion.
8783
8784 2001-02-18 Andrew Cagney <ac131313@redhat.com>
8785
8786 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
8787
8788 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
8789
8790 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
8791 (save_prologue_cache): Ditto.
8792
8793 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8794
8795 From: innadadadavida@yahoo.com:
8796 * partial-stab.h (switch): Check that pst is not null
8797 before dereferencing it.
8798
8799 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8800
8801 From Andrew Cagney <cagney@b1.cygnus.com>:
8802 * symfile.c (add_symbol_file_command): Always initialize
8803 my_cleanup using a NULL cleanup.
8804
8805 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
8806
8807 * demangle.c (demangling_style_names): New variable.
8808 (_initialize_demangler): Fill demangling_style_names with the
8809 names of known demangling styles from libiberty_demanglers[]. Use
8810 add_set_enum_cmd instead of add_set_cmd, to get completion on
8811 demangling style names.
8812
8813 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
8814 file-name completion.
8815
8816 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
8817
8818 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
8819 `solib-absolute-prefix'.
8820
8821 * tracepoint.c (_initialize_tracepoint): Ditto for
8822 `save-tracepoints'.
8823
8824 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
8825
8826 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
8827 file-name completion.
8828
8829 * infcmd.c (_initialize_infcmd): Make the following commands use
8830 the file-name completer: `tty', `args', `path', `paths', and
8831 `run'.
8832
8833 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
8834
8835 * go32-nat.c: Include i387-nat.h.
8836 (fetch_register): New function, uses some of the guts of
8837 go32_fetch_registers and calls i387_supply_register.
8838 (go32_fetch_registers): Most of the code moved into
8839 fetch_register. Use i387_supply_fsave.
8840 (store_register): Use i387_fill_fsave instead of custom code.
8841 (go32_store_registers): Use i387_fill_fsave.
8842
8843 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
8844
8845 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
8846
8847 * completer.c (gdb_completer_file_name_break_characters): Remove
8848 slash from file-name break characters.
8849 [__MSDOS__]: Special definition for DOS/Windows file names.
8850 (line_completion_function): When completing on file names, bump
8851 `p' to the first file-name constituent character of `word', before
8852 invoking the completer.
8853
8854 2001-02-17 Mark Kettenis <kettenis@gnu.org>
8855
8856 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
8857 consistently for parameter names. Fix comments accordingly.
8858 (i387_supply_register): New function.
8859 (i387_supply_fsave): Implement using i387_supply_register.
8860 * i387-nat.h: Use regnum instead of regno consistently for
8861 parameter names. Fix comments accordingly.
8862 (i387_supply_register): New prototype.
8863
8864 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
8865
8866 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
8867 instead of TARGET_PTR_BIT (to support Harvard architectures).
8868
8869 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8870
8871 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
8872 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
8873 argument to parameter list and to call in order to conform to
8874 to_xfer_memory field of struct target_ops.
8875
8876 2001-02-12 Michael Chastain <chastain@redhat.com>
8877
8878 * somsolib.c (som_solib_add_solib_objfile): Do not use
8879 section relocation feature of syms_from_objfile. Do my own
8880 section relocation, offsetting each section of the som by
8881 either text_addr - text_link_addr or data_start.
8882
8883 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8884
8885 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
8886
8887 2001-02-16 Andrew Cagney <ac131313@redhat.com>
8888
8889 * MAINTAINERS (paper trail): Update.
8890
8891 2001-02-16 Mark Kettenis <kettenis@gnu.org>
8892
8893 * target.h (target_fetch_registers): Fix comment.
8894
8895 2001-02-15 Andrew Cagney <ac131313@redhat.com>
8896
8897 * f-exp.y: Include <ctype.h>.
8898 (parse_number): Ensure that ``i'' is always initialized.
8899
8900 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
8901
8902 * MAINTAINERS: Add myself to paper trail section.
8903
8904 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
8905
8906 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
8907 * configure, config.in: Regenerate.
8908 * corelow.c: Include <sys/file.h> if present.
8909
8910 2001-02-14 Andrew Cagney <ac131313@redhat.com>
8911
8912 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
8913 declare when have SIGTTOU.
8914
8915 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
8916
8917 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
8918
8919 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
8920
8921 * MAINTAINERS: Update my email address.
8922
8923 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
8924
8925 * NEWS: Document that "info symbol" works with COFF debug info and
8926 its variants.
8927
8928 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
8929 symbols whose SYMBOL_BFD_SECTION is NULL.
8930
8931 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8932
8933 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
8934 * xcoffsolib.c (xcoff_solib_address): Renamed from
8935 pc_load_segment_name. Return NULL if address is not in a shared
8936 library. Cleanup shared library name construction, using xasprintf.
8937 Format shared library member names consistent with format in exec.c.
8938 (solib_info): Format shared library member names consistent with
8939 format in exec.c.
8940 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
8941 using xcoff_solib_address for PC_SOLIB definition.
8942 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
8943 needed.
8944
8945 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8946
8947 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
8948 with xmalloc calls and cleanups.
8949
8950 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8951
8952 * rs6000-nat.c (child_xfer_memory): Add missing parameter
8953 'struct mem_attrib *' required by 2001-01-23 change.
8954
8955 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
8956
8957 Updates to "make TAGS":
8958 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
8959 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
8960 tahoe-tdep.c.
8961 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
8962
8963 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
8964
8965 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
8966
8967 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
8968
8969 From Dean Luick <luick@cray.com>:
8970 * defs.h (continuation): Remove unused global variable.
8971
8972 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
8973
8974 * configure.tgt: Remove references to convex, pyramid, altos and
8975 tahoe.
8976 * configure.host: Ditto.
8977 * MAINTAINERS: Ditto.
8978 * NEWS: Update.
8979
8980 * tahoe-tdep.c: Delete obsolete file.
8981 * pyr-xdep.c: Ditto.
8982 * pyr-tdep.c: Ditto.
8983 * convex-tdep.c: Ditto.
8984 * convex-xdep.c: Ditto.
8985 * config/tahoe/xm-tahoe.h: Ditto.
8986 * config/tahoe/tm-tahoe.h: Ditto.
8987 * config/tahoe/tahoe.mt: Ditto.
8988 * config/tahoe/tahoe.mh: Ditto.
8989 * config/pyr/xm-pyr.h: Ditto.
8990 * config/pyr/tm-pyr.h: Ditto.
8991 * config/pyr/pyramid.mt: Ditto.
8992 * config/pyr/pyramid.mh: Ditto.
8993 * config/m68k/xm-altos.h: Ditto.
8994 * config/m68k/tm-altos.h: Ditto.
8995 * config/m68k/altos.mt: Ditto.
8996 * config/m68k/altos.mh: Ditto.
8997 * config/convex/xm-convex.h: Ditto.
8998 * config/convex/tm-convex.h: Ditto.
8999 * config/convex/convex.mt: Ditto.
9000 * config/convex/convex.mh: Ditto.
9001 * config/convex/Convex.notes: Ditto.
9002 * config/arm/xm-arm.h: Ditto.
9003 * config/arm/nm-arm.h: Ditto.
9004 * config/arm/arm.mt: Ditto.
9005 * config/arm/arm.mh: Ditto.
9006 * arm-convert.s: Ditto.
9007 * arm-xdep.c: Ditto.
9008 * altos-xdep.c: Ditto.
9009
9010 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
9011
9012 * defs.h (internal_error, internal_verror): Add __FILE__ and
9013 __LINE__ parameter.
9014 * utils.c (internal_error, internal_verror): Update.
9015
9016 * v850-tdep.c: Update calls to internal_error.
9017 * utils.c: Ditto.
9018 * ui-out.c: Ditto.
9019 * ui-file.c: Ditto.
9020 * target.h: Ditto.
9021 * symtab.h: Ditto.
9022 * symm-nat.c: Ditto.
9023 * sparc-tdep.c: Ditto.
9024 * source.c: Ditto.
9025 * serial.c: Ditto.
9026 * rs6000-tdep.c: Ditto.
9027 * rs6000-nat.c: Ditto.
9028 * remote.c: Ditto.
9029 * remote-vx.c: Ditto.
9030 * remote-sim.c: Ditto.
9031 * remote-mips.c: Ditto.
9032 * regcache.c: Ditto.
9033 * objfiles.h: Ditto.
9034 * objfiles.c: Ditto.
9035 * mn10300-tdep.c: Ditto.
9036 * mips-tdep.c: Ditto.
9037 * maint.c: Ditto.
9038 * m68k-tdep.c: Ditto.
9039 * m3-nat.c: Ditto.
9040 * language.c: Ditto.
9041 * infptrace.c: Ditto.
9042 * inferior.h: Ditto.
9043 * infcmd.c: Ditto.
9044 * ia64-tdep.c: Ditto.
9045 * i386-tdep.c: Ditto.
9046 * i386-linux-nat.c: Ditto.
9047 * hppah-nat.c: Ditto.
9048 * go32-nat.c: Ditto.
9049 * findvar.c: Ditto.
9050 * f-lang.c: Ditto.
9051 * elfread.c: Ditto.
9052 * event-loop.c: Ditto.
9053 * dwarf2read.c: Ditto.
9054 * dsrec.c: Ditto.
9055 * d30v-tdep.c: Ditto.
9056 * d10v-tdep.c: Ditto.
9057 * cli/cli-setshow.c: Ditto.
9058 * cli/cli-script.c: Ditto.
9059 * ch-exp.c: Ditto.
9060 * breakpoint.c: Ditto.
9061 * ax-gdb.c: Ditto.
9062 * arch-utils.c: Ditto.
9063 * a29k-tdep.c: Ditto.
9064 * gdb_assert.h: Ditto.
9065 * gdbarch.sh: Ditto.
9066 * gdbarch.h, gdbarch.c: Re-generate.
9067
9068 2001-02-07 Andrew Cagney <ac131313@redhat.com>
9069
9070 From Mark Kettenis <kettenis@gnu.org>:
9071 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
9072
9073 2001-02-07 Andrew Cagney <ac131313@redhat.com>
9074
9075 * remote-sim.c (dump_mem): Cleanup printf format argument.
9076 * MAINTAINERS: Update, mn10300-elf now builds.
9077
9078 2001-02-07 Mark Kettenis <kettenis@gnu.org>
9079
9080 * event-top.c: Remove duplicate #include <signal.h>.
9081
9082 2001-02-06 Andrew Cagney <ac131313@redhat.com>
9083
9084 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
9085 allocated buffer.
9086 (save_inferior_pid): Restore the PID from that tempoary
9087 buffer. Delete the buffer.
9088 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
9089
9090 2001-02-06 Andrew Cagney <ac131313@redhat.com>
9091
9092 * MAINTAINERS: Add ``The Obvious Fix Rule''.
9093
9094 2001-02-06 Andrew Cagney <ac131313@redhat.com>
9095
9096 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
9097
9098 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
9099
9100 * gdbarch.sh: Include "gdb_assert.h".
9101 (struct gdbarch): Change ``nr_data'' to unsigned.
9102 (alloc_gdbarch_data, free_gdbarch_data): New functions.
9103 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
9104 architecture vector.
9105 (struct gdbarch_data, struct gdbarch_data_registration): Move init
9106 method to gdbarch_data. Add free method, make index unsigned.
9107 (struct gdbarch_data_registry): Make nr unsigned.
9108 (register_gdbarch_data): Add free parameter. Store in
9109 gdbarch_data.
9110 (init_gdbarch_data): Use set_gdbarch_data.
9111 (set_gdbarch_data): New function.
9112
9113 * gdbarch.h, gdbarch.c: Re-generate.
9114
9115 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
9116
9117 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
9118 fprintf_filtered with correct arguments.
9119
9120 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
9121 Submitted by Paul Hilfinger (hilfingr@gnat.com)
9122 and Andrei Petrov (and@genesyslab.com).
9123 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
9124 must be allocated dynamically, since these are no longer constants.
9125 * infcmd.c: Ditto.
9126 * regcache.c: Ditto.
9127 * remote.c: Ditto.
9128 * sol-thread.c: Ditto.
9129 * valops.c: Ditto.
9130 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
9131 work-around for a missing Sun header file in solaris for sparc64.
9132
9133 2001-02-04 Philip Blundell <philb@gnu.org>
9134
9135 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
9136 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
9137 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
9138 GET_THREAD_SIGNALS): Define.
9139 * arm-linux-nat.c (fill_gregset): Correct type of argument.
9140 (supply_gregset): Likewise.
9141 (fill_fpregset): Likewise.
9142 (supply_fpregset): Likewise.
9143
9144 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
9145
9146 * valops.c (value_cast): If casting a scalar to a pointer, do not
9147 issue a message about truncation unless it exceeds the length of
9148 an address, not the length of a pointer. This is because what the
9149 user gives us is an address, not a pointer, and we will ultimately
9150 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
9151 to a pointer. This allows things like "print *(int *)0x01000234"
9152 to work without generating a misleading message on a target having
9153 two byte pointers and four byte addresses.
9154
9155 2001-02-05 Christopher Faylor <cgf@cygnus.com>
9156
9157 * win32-nat.c: Change PTR to void * throughout.
9158
9159 2001-02-05 J.T. Conklin <jtc@redback.com>
9160
9161 * signals.h: Removed.
9162 * event-top.c (#include <signal.h>): Changed from signals.h.
9163 * inflow.c: Likewise.
9164 * mac-xdep.c: Likewise.
9165 * ser-pipe.c: Likewise.
9166 * ser-tcp.c: Likewise.
9167 * standalone.c: Likewise.
9168 * top.c: Likewise.
9169 * utils.c: Likewise.
9170 * Makefile.in: Removed signals.h from dependencies.
9171
9172 2001-02-05 Christopher Faylor <cgf@cygnus.com>
9173
9174 Change suggested by Dean Luick <luick@cray.com>
9175 * inferior.h (step_over_calls_kind): Remove trailing comma from
9176 last enum element.
9177 (step_over_calls): Declare as extern rather than global.
9178
9179 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
9180
9181 * sh-tdep.c: Update copyright.
9182 (sh_extract_return_value): Rewrite.
9183 (sh3e_sh4_extract_return_value): New function.
9184 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
9185 version of the function for sh3e and sh4 CPUs.
9186
9187 2001-02-05 Michael Chastain <chastain@redhat.com>
9188
9189 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
9190 to conform with interface change.
9191
9192 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
9193
9194 * config/djgpp/fnchange.lst: Tweak to make consistent with the
9195 new files.
9196
9197 * config/djgpp/djconfig.sh: Use explicit absolute file name when
9198 invoking `find'.
9199
9200 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
9201 UART_FIFO_WORKS is defined. Otherwise use outportb.
9202 From Francisco Pastor <fpastor.etra-id@etra.es>
9203
9204 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
9205 with target.h's `to_xfer_memory' member.
9206
9207 2001-02-02 J.T. Conklin <jtc@redback.com>
9208
9209 * ppc-bdm.c (#include <signal.h>): Removed.
9210 * remote-array.c: Likewise.
9211 * remote-bug.c: Likewise.
9212 * remote-e7000.c: Likewise.
9213 * remote-mips.c: Likewise.
9214 * remote-os9k.c: Likewise.
9215 * remote-st.c: Likewise.
9216 * remote-udi.c: Likewise.
9217 * remote-vx29k.c: Likewise.
9218 * remote-vx68.c: Likewise.
9219 * remote-vx960.c: Likewise.
9220 * remote-vxmips.c: Likewise.
9221 * remote-vxsparc.c: Likewise.
9222
9223 2001-02-02 John Moore <jmoore@redhat.com>
9224
9225 * remote-utils.h (sr_set_device): Changed free() to xfree() where
9226 appropriate. Also changed Copyright to include 2001.
9227 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
9228 * value.h (value_free): Likewise.
9229 * gdbarch.sh (gdbarch_free): Likewise.
9230 * gdbarch.c, gdbarch.h: Regenerated.
9231
9232 2001-02-02 John Moore <jmoore@redhat.com>
9233
9234 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
9235 xfree(). Also changed Copyright to include 2001.
9236
9237 2001-02-02 J.T. Conklin <jtc@redback.com>
9238
9239 * monitor.c (#include "gdb_wait.h"): Removed.
9240 * ocd.c: Likewise.
9241 * ppc-bdm.c: Likewise.
9242 * remote-adapt.c: Likewise.
9243 * remote-array.c: Likewise.
9244 * remote-bug.c: Likewise.
9245 * remote-e7000.c: Likewise.
9246 * remote-eb.c: Likewise.
9247 * remote-es.c: Likewise.
9248 * remote-mips.c: Likewise.
9249 * remote-mm.c: Likewise.
9250 * remote-nindy.c: Likewise.
9251 * remote-os9k.c: Likewise.
9252 * remote-rdi.c: Likewise.
9253 * remote-rdp.c: Likewise.
9254 * remote-sds.c: Likewise.
9255 * remote-sim.c: Likewise.
9256 * remote-st.c: Likewise.
9257 * remote-udi.c: Likewise.
9258 * remote-vx.c: Likewise.
9259 * remote-vx29k.c: Likewise.
9260 * remote-vx68.c: Likewise.
9261 * remote-vx960.c: Likewise.
9262 * remote-vxmips.c: Likewise.
9263 * remote-vxsparc.c: Likewise.
9264 * remote.c: Likewise.
9265 * ser-pipe.c: Likewise.
9266 * ser-unix.c: Likewise.
9267 * Makefile.in: Updated dependencies.
9268
9269 2001-01-31 David Smith <dsmith@redhat.com>
9270
9271 * event-loop.c: Change inclusion of string.h to gdb_string.h and
9272 updated the copyright notice.
9273 * ser-pipe.c: Ditto.
9274 * mi/mi-cmds.c: Ditto.
9275 * mi/mi-console.c: Ditto.
9276 * mi/mi-getopt.c: Ditto.
9277 * mi/mi-parse.c: Ditto.
9278
9279 2001-01-31 David Smith <dsmith@redhat.com>
9280
9281 * MAINTAINERS: Add David Smith to Write After Approval list.
9282
9283 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
9284
9285 * cli/cli-utils.c (putchar_filtered): Move function from here.
9286 * utils.c (putchar_filtered): To here.
9287 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
9288 * defs.h (putchar_filtered): To here.
9289
9290 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
9291
9292 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
9293 AC_FUNC_VFORK macro.
9294 * config.in, configure: Re-generate.
9295
9296 * gdb_vfork.h: New file.
9297 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
9298 * fork-child.c (fork_inferior): Ditto.
9299
9300 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
9301
9302 * defs.h (strsave): Delete declaration.
9303 * utils.c (strsave): Delete definition.
9304 * TODO (strsave): Update
9305
9306 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
9307 * sparcl-tdep.c (sparclite_open): Ditto.
9308 * mips-tdep.c (mips_set_processor_type_command): Ditto.
9309 (_initialize_mips_tdep): Ditto.
9310 * solib.c (solib_open): Ditto.
9311 * symfile.c (add_filename_language): Ditto.
9312 (set_ext_lang_command): Ditto.
9313 * source.c (init_source_path): Ditto.
9314 (mod_path): Ditto.
9315 * sh3-rom.c (sh3_open): Ditto.
9316 (sh3e_open): Ditto.
9317 * serial.c (serial_open): Ditto.
9318 * remote-mips.c (common_open): Ditto.
9319 * monitor.c (monitor_open): Ditto.
9320 * m32r-rom.c (m32r_upload_command): Ditto.
9321 * infcmd.c (path_command): Ditto.
9322 * f-exp.y (parse_number): Ditto.
9323 * breakpoint.c (create_longjmp_breakpoint): Ditto.
9324 (create_thread_event_breakpoint): Ditto.
9325 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
9326 (_initialize_arc_tdep): Ditto.
9327
9328 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
9329
9330 * cli/cli-script.c (define_command): Check for a bad hook value in
9331 switch statement.
9332
9333 2001-01-30 J.T. Conklin <jtc@redback.com>
9334
9335 * configure/sh/embed.mt: New file.
9336 * configure/sh/linux.mt: New file.
9337 * configure/sh/sh.mt: Removed.
9338 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
9339 (sh-*-*): Removed.
9340
9341 2001-01-29 Michael Chastain <chastain@redhat.com>
9342
9343 * symtab.c (lookup_block_symbol): Use 'namespace' parameter in
9344 symbol comparisons in binary search.
9345
9346 2001-01-27 Christopher Faylor <cgf@cygnus.com>
9347
9348 * win32-nat.c (child_xfer_memory): Add missing argument required by
9349 2001-01-23 change.
9350
9351 2001-01-27 Mark Kettenis <kettenis@gnu.org>
9352
9353 * ui-out.c (do_list_end): New function.
9354 (make_cleanup_ui_out_list_end): New function.
9355 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
9356 * stack.c (print_frame) [UI_OUT]: Call
9357 make_cleanup_ui_out_list_end to make sure we mark the end of the
9358 list if we do a non-local exit. At the end of the function,
9359 instead of calling ui_out_list_end directly, let do_cleanups
9360 handle it.
9361
9362 2001-01-26 Fernando Nasser <fnasser@redhat.com>
9363
9364 Fix double parsing of filenames passed as command line arguments
9365 to GDB (causes weird handling of escape characters).
9366 Also, remove dependencies on the CLI from libgdb.
9367 * call-cmds.h: Remove declaration of exec_file_command().
9368 * gdbcore.h: Remove declaration of exec_file_command().
9369 Add declarations for exec_open() and exec_file_clear().
9370 * symfile.h: Add declarations for symbol_file_add_main() and
9371 symbol_file_clear().
9372 * exec.c (exec_open): New function. Implements to_open for exec
9373 targets.
9374 (exec_file_clear): New function. Makes GDB forget about a previously
9375 specified executable file.
9376 (exec_file_attach): Move parsing of arguments from here ...
9377 (exec_file_command): ... to here.
9378 (init_exec_ops): Use exec_open(), not exec_file_command() to
9379 implement to_open for exec targets.
9380 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
9381 with default values. Used when the file name has already been parsed.
9382 (symbol_file_clear): New function. Makes GDB forget about previously
9383 read symbols.
9384 (symbol_file_command): Call the above function instead of inline code.
9385 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
9386 "call-cmds.h".
9387 (captured_main): Call exec_file_attach() and symbol_file_add_main()
9388 instead of exec_file_command() and symbol_file_command().
9389 (captured_main): Add comment.
9390 * corefile.c: Include "symfile.h".
9391 (core_file_command): Call symbol_file_add_main() instead of
9392 symbol_file_command().
9393 (reopen_exec_file): Call exec_open() instead of exec_file_command().
9394 * infcmd.c: Include "symfile.h".
9395 (attach_command): Call symbol_file_add_main() instead of
9396 symbol_file_command().
9397 * infrun.c: Remove comment about the inclusion of "symfile.h",
9398 not any longer appropriate.
9399 (follow_exec): Call symbol_file_add_main() instead of
9400 symbol_file_command().
9401 * remote-es.c: Include "symfile.h".
9402 (es1800_load): Call symbol_file_add_main() instead of
9403 symbol_file_command().
9404 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
9405 not any longer appropriate.
9406 (vx-wait): Call symbol_file_add_main() instead of
9407 symbol_file_command().
9408 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
9409 instead of symbol_file_command().
9410 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
9411 symbol_file_add_main() instead of exec_file_command() and
9412 symbol_file_command().
9413 * Makefile.in: Update dependencies.
9414
9415 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
9416
9417 * remote-udi.c (udi_open): Change strdup to xstrdup.
9418 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
9419 Update copyright message.
9420 * varobj.c (delete_variable_1): Likewise.
9421
9422 * gdb_string.h: Remove declaration of strdup. Update copyright
9423 message.
9424 * config/xm-mpw.h: Likewise.
9425 * config/i386/xm-i386mach.h: Likewise.
9426 * config/m68k/xm-apollo68b.h: Likewise.
9427 * config/m68k/xm-hp300bsd.h: Likewise.
9428 * config/rs6000/xm-rs6000.h: Likewise.
9429 * config/vax/xm-vaxult.h: Remove declaration of strdup.
9430 * config/vax/xm-vaxult2.h: Likewise.
9431
9432 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
9433
9434 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
9435
9436 2001-01-25 J.T. Conklin <jtc@redback.com>
9437
9438 * target.c (target_xfer_memory_partial): Return -1 on failure due
9439 to invalid access mode attribute.
9440
9441 2001-01-25 Christopher Faylor <cgf@cygnus.com>
9442
9443 * win32-nat.c (_initialize_core_win32): Prototype correctly.
9444
9445 2001-01-25 Mark Kettenis <kettenis@gnu.org>
9446
9447 * config/alpha/tm-fbsd.h: Update copyright.
9448 (USE_STRUCT_CONVENTION): Define in terms of
9449 alphabsd_use_struct_convention.
9450 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
9451 * alphafbsd-tdep.c: New file.
9452
9453 2001-01-24 Fernando Nasser <fnasser@redhat.com>
9454
9455 * top.c (print_gdb_version): Update Copyright year.
9456
9457 2001-01-24 J.T. Conklin <jtc@redback.com>
9458
9459 * dcache.c (dcache_write_line): Fix typo.
9460
9461 * memattr.c (delete_mem_region): Replace free() with xfree().
9462 (mem_number): Add explicit type.
9463
9464 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
9465 (rw_common): Likewise.
9466
9467 2001-01-24 Fernando Nasser <fnasser@redhat.com>
9468
9469 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
9470 for the inferior program arguments.
9471 (run_command, run_no_args_command, init_infcmd)): Use accessor
9472 functions to set the inferior program arguments.
9473 * inferior.h: Add definitions to the accessor functions above.
9474
9475 2001-01-23 Jim Blandy <jimb@redhat.com>
9476
9477 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
9478 Implement these correctly, using make_cv_type.
9479
9480 2001-01-23 J.T. Conklin <jtc@redback.com>
9481
9482 * exec.c (xfer_memory): Add attrib argument.
9483 * infptrace.c (child_xfer_memory): Likewise.
9484 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
9485 * monitor.c (monitor_xfer_memory): Likewise.
9486 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
9487 * remote-array.c (array_xfer_memory): Likewise.
9488 * remote-bug.c (bug_xfer_memory): Likewise.
9489 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
9490 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
9491 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
9492 * remote-mips.c (mips_xfer_memory): Likewise.
9493 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
9494 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
9495 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
9496 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
9497 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
9498 * remote-sds.c (sds_xfer_memory): Likewise.
9499 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
9500 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
9501 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
9502 * remote-vx.c (vx_xfer_memory): Likewise.
9503 * remote.c (remote_xfer_memory): Likewise.
9504 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
9505 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
9506 * thread-db.c (thread_db_xfer_memory): Likewise.
9507
9508 * target.h (#include "memattr.h"): Added.
9509 (target_ops.to_xfer_memory): Add attrib argument.
9510
9511 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
9512 * dcache.h (set_dcache_state): Removed declaration.
9513 * dcache.c (set_dcache_state): Removed definition
9514
9515 * dcache.c: Update module comment, as dcache is now enabled and
9516 disabled with memory region attributes instead of by the global
9517 variable "remotecache". Add comment describing the interaction
9518 between dcache and memory region attributes.
9519 (dcache_xfer_memory): Add comment describing benefits of moving
9520 cache writeback to a higher level.
9521 (dcache_struct): Removed cache_has_stuff field. This was used to
9522 record whether the cache had been accessed in order to invalidate
9523 it when it was disabled. However, this is not needed because the
9524 cache is write through and the code that enables, disables, and
9525 deletes memory regions invalidate the cache. Add comment which
9526 suggests that we could be more selective and only invalidate those
9527 cache lines containing data from those memory regions.
9528 (dcache_invalidate): Updated.
9529 (dcache_xfer_memory): Updated.
9530
9531 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
9532 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
9533 perform a uncached transfer if dcache_enabled_p was clear. This
9534 function is now only called if caching is enabled for the memory
9535 region.
9536 (dcache_info): Always print cache info.
9537
9538 * target.c (do_xfer_memory): Add attrib argument.
9539 (target_xfer_memory, target_xfer_memory_partial): Break transfer
9540 into chunks defined by memory regions, pass region attributes to
9541 do_xfer_memory().
9542 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
9543
9544 * Makefile.in (SFILES): Add memattr.c.
9545 (COMMON_OBS): Add memattr.o.
9546 (dcache.o): Add target.h to dependencies.
9547 * memattr.c: New file.
9548 * memattr.h: Likewise.
9549
9550 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
9551 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
9552 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
9553 * gdbserver/low-sim.c (#include "defs.h"): Removed.
9554 (mygeneric_load): Rename from generic_load.
9555
9556 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
9557 (#include "defs.h"): Removed.
9558 (inferior_pid, perror_with_name): Remove declarations.
9559 * gdbserver/low-linux.c: Likewise.
9560 * gdbserver/low-nbsd.c: Likewise.
9561 * gdbserver/low-sparc.c: Likewise.
9562 * gdbserver/low-sun3.c: Likewise.
9563
9564 * i386-stub.c: Re-indent.
9565 * m68k-stub.c: Re-indent.
9566
9567 2001-01-22 Nicholas Duffek <nsd@redhat.com>
9568
9569 * gdbarch.sh (PARM_BOUNDARY): Define.
9570 * gdbarch.c: Regenerate.
9571 * gdbarch.h: Regenerate.
9572
9573 2001-01-22 J.T. Conklin <jtc@redback.com>
9574
9575 * ns32k-tdep.c: #include "frame.h"
9576 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
9577 appears to have been inadvertantly removed sometime in May 1999.
9578
9579 * Revert 2000-11-09 changes where shared library objects were
9580 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
9581 we'd like to be able to debug dynamically linked executables,
9582 this makes it impossible to build a cross debugger on a many
9583 hosts.
9584
9585 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
9586 * config/i386/nbsdelf.mt: Likewise.
9587 * config/m68k/nbsd.mt: Likewise.
9588 * config/ns32k/nbsd.mt: Likewise.
9589 * config/powerpc/nbsd.mt: Likewise.
9590 * config/sparc/nbsd.mt: Likewise.
9591 * config/sparc/nbsdelf.mt: Likewise.
9592 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
9593 * config/i386/nbsdelf.mh: Likewise.
9594 * config/m68k/nbsd.mh: Likewise.
9595 * config/ns32k/nbsd.mh: Likewise.
9596 * config/powerpc/nbsd.mh: Likewise.
9597 * config/sparc/nbsd.mh: Likewise.
9598
9599 2001-01-19 Jason Merrill <jason@redhat.com>
9600
9601 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
9602 (process_one_symbol): Likewise.
9603 * dwarfread.c (handle_producer): Likewise.
9604
9605 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
9606
9607 * configure.in (build_warnings): Disable -Wuninitialized until GDB
9608 compiles with -Wuninitialized,-Werror.
9609 * configure: Regenerate.
9610
9611 * MAINTAINERS: Add list of buildable targets.
9612
9613 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
9614
9615 * defs.h (STRCMP): Delete macro.
9616
9617 * objfiles.c (objfile_relocate): Replace STRCMP with call to
9618 strcmp.
9619 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9620 * symfile.c (compare_symbols): Ditto.
9621 * standalone.c (open): Ditto.
9622 * remote-es.c (verify_break): Ditto.
9623 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
9624
9625 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
9626
9627 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
9628
9629 * varobj.c (FREEIF): Delete macro.
9630 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
9631 call.
9632
9633 2001-01-18 Nick Clifton <nickc@redhat.com>
9634
9635 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
9636 (arc_print_insn): No bfd available, so pass NULL to
9637 arc_get_disassembler.
9638
9639 2001-01-09 James Ingham <jingham@inghji.apple.com>
9640
9641 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
9642 a mangled symbol rather than recursing into lookup_symbol, since
9643 this will just re-unmangle the name & call lookup_symbol_aux -
9644 leading to an infinite recursion.
9645
9646 2001-01-18 Mark Kettenis <kettenis@gnu.org>
9647
9648 * infcmd.c (print_return_value): Restore another space lost by
9649 switch to UIOUT. ``$NN='' should be ``$NN =''.
9650
9651 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9652
9653 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
9654 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
9655 definition in parenthesis.
9656
9657 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
9658
9659 From 2000-10-27 Mark Salter <msalter@redhat.com>:
9660 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
9661 packet.
9662 (remote_insert_hw_breakpoint): Ditto.
9663
9664 2001-01-17 J.T. Conklin <jtc@redback.com>
9665
9666 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
9667 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
9668 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
9669 * m68knbsd-tdep.c: New file.
9670
9671 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
9672
9673 * m68knbsd-nat.c: #include gdbcore.h.
9674
9675 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
9676
9677 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
9678
9679 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
9680
9681 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
9682 goes away -- just return false (ie. not stopped by watchpoint).
9683 * source.c (openp): Fix typo in comment.
9684
9685 2001-01-12 Nicholas Duffek <nsd@redhat.com>
9686
9687 * blockframe.c (generic_get_saved_register): Spelling fix.
9688 * frame.h (FRAME_FP): Spelling fix.
9689
9690 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
9691
9692 * infcmd.c (print_return_value): Restore space lost by switch to
9693 UIOUT. ``$NN='' should be ``$NN =''.
9694
9695 2001-01-08 Nicholas Duffek <nsd@redhat.com>
9696
9697 * regcache.c (set_register_cached, register_buffer,
9698 real_register, pseudo_register fetch_register, store_register):
9699 New functions.
9700 (register_changed, read_relative_register_raw_bytes_for_frame,
9701 registers_changed, registers_fetched, read_register_bytes,
9702 read_register_gen, write_register_gen, read_register,
9703 read_signed_register, write_register, supply_register): Replace
9704 register_valid[] with register_cached() and
9705 set_register_cached().
9706 (read_register_bytes, read_register_gen, write_register_gen,
9707 read_register, read_signed_register, write_register,
9708 supply_register): Replace registers[] with register_buffer().
9709 (read_register_bytes, read_register_gen, read_register,
9710 read_signed_register): Call fetch_register().
9711 (write_register_gen, write_register): Call real_register() and
9712 store_register().
9713 (write_register_bytes): Call store_register().
9714 * value.h (set_register_cached, register_buffer): Prototype.
9715 * remote.c (remote_fetch_registers): Allocate regs[] with a
9716 run-time size. Replace register_valid[] with
9717 set_register_cached().
9718 (store_register_using_P, remote_store_registers): Replace
9719 registers[] with register_buffer().
9720
9721 2001-01-08 Nicholas Duffek <nsd@redhat.com>
9722
9723 * regcache.c: Change "write-back" comment to "write-through".
9724 Change "regno" to "regnum".
9725 (read_register, read_signed_register): Remove "raw" from return
9726 value description.
9727 (supply_register): Spelling fix.
9728 * value.h: Change "regno" to "regnum".
9729
9730 2001-01-08 Fernando Nasser <fnasser@redhat.com>
9731
9732 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
9733 to be installed.
9734
9735 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
9736
9737 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
9738
9739 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9740
9741 * valops.c (VALUE_SUBSTRING_START): Delete.
9742
9743 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9744
9745 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
9746 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
9747 (cli_utils_h): New variable.
9748 (cli/cli-utils.o): New rule.
9749 * cli/cli-utils.c: New file.
9750 * cli/cli-utils.h: New file.
9751
9752 2001-01-04 Nicholas Duffek <nsd@redhat.com>
9753
9754 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
9755 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
9756
9757 2001-01-03 J.T. Conklin <jtc@redback.com>
9758
9759 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
9760 comment.
9761
9762 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
9763
9764 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
9765 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
9766 non-float types.
9767 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
9768 Update copyright notice.
9769
9770 For older changes see ChangeLog-2000
9771 \f
9772 Local Variables:
9773 mode: change-log
9774 left-margin: 8
9775 fill-column: 74
9776 version-control: never
9777 End: