3 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4 white space which prevented compilation. Reported by DSK
9 * symfile.c (build_section_addr_info_from_section_tab):
10 Use bfd access method instead of manipulating bfd directly.
11 (syms_from_objfile): Ditto.
12 (simple_overlay_update_1): Ditto.
13 (simple_overlay_update): Ditto.
14 (generic_load): Ditto.
15 (overlay_unmapped_address): FIXME comment, bfd access methods.
16 (sections_overlap): FIXME comment, bfd access methods.
17 (pc_in_mapped_range): FIXME comment, bfd access methods.
18 (pc_in_unmapped_range): FIXME comment, bfd access methods.
19 (section_is_mapped): FIXME comment, bfd access methods.
20 (section_is_overlay): FIXME comment, bfd access methods.
22 * symfile.c (generic_load): Whitespace and long line cleanups.
23 Remove duplicate variable, change several local variables to
24 more appropriate data types.
25 (print_transfer_performance): Use %lu instead of %ld for ulongs.
30 * language.c (longest_local_hex_string_custom): Use phex_nz to
31 convert NUM to a hex string.
35 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
37 Update Copyright year.
41 * language.c (longest_raw_hex_string): Delete unused function.
45 * MAINTAINERS (write-after-approval): Add myself.
46 * dwarf2read.c (read_tag_string_type): Handling of
48 (read_tag_string_type): FORTRAN fix to prevent propagation of
50 (set_cu_language): Handling of DW_LANG_Fortran95
54 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
55 GETPID(inferior_ptid).
56 (store_inferior_registers): Likewise.
60 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
65 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
66 and bfd/elf32-sh-nbsd.c.
70 * NEWS: Mention --pid and corefile/proc-id behavior change.
72 * Makefile.in: Add rules for gcore.o and linux-proc.o.
73 * gcore.c: Include cli/cli-decode.h instead of command.h.
75 * main.c (captured_main): Add new command line option "--pid".
76 If the second command line argument (following the symbol-file)
77 begins with a digit, try to attach to it before trying to open
79 (print_gdb_help): Document the "--pid" argument.
83 * completer.c (command_completer): New function.
85 * completer.h <command_completer>: Add prototype.
87 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
88 completer for the "help" command.
92 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
96 * i386-linux-nat.c (fill_fpxregset): Make global.
97 (store_fpxregset): Ditto.
99 * gregset.h (gdb_fpxregset_t): Define.
100 (supply_fpxregset): Prototype.
101 (fill_fpxregset): Prototype.
103 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
107 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
108 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
109 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
113 * MAINTAINERS: Update target maintainer rules so that any
114 Maintainer can approve a tested patch for a maintenance-only
119 * MAINTAINERS (write-after-approval): Add myself.
121 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
126 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
127 real name of the executable, rather than the /proc name.
131 Implement a "generate-core-file" command in gdb, save target state.
132 * gcore.c: New file. Implement new command 'generate-core-file'.
133 Save a corefile image of the current state of the inferior.
134 * linux-proc.c: Add linux-specific code for saving corefiles.
135 * target.h (struct target_ops): Add new target vectors for saving
136 corefiles; to_find_memory_regions and to_make_corefile_notes.
137 (target_find_memory_regions): New macro.
138 (target_make_corefile_notes): New macro.
139 * target.c (update_current_target): Inherit new target methods.
140 (dummy_find_memory_regions): New place-holder method.
141 (dummy_make_corefile_notes): New place-holder method.
142 (init_dummy_target): Initialize new dummy target vectors.
143 * exec.c (exec_set_find_memory_regions): New function.
144 Allow the exec_ops vector for memory regions to be taken over.
145 (exec_make_note_section): New function, target vector method.
146 * defs.h (exec_set_find_memory_regions): Export prototype.
147 * procfs.c (proc_find_memory_regions): New function, corefile method.
148 (procfs_make_note_section): New function, corefile method.
149 (init_procfs_ops): Set new target vector pointers.
150 (find_memory_regions_callback): New function.
151 (procfs_do_thread_registers): New function.
152 (procfs_corefile_thread_callback): New function.
153 * sol-thread.c (sol_find_memory_regions): New function.
154 (sol_make_note_section): New function.
155 (init_sol_thread_ops): Initialize new target vectors.
156 * inftarg.c (inftarg_set_find_memory_regions): New function.
157 Allow to_find_memory_regions vector to be taken over.
158 (inftarg_set_make_corefile_notes): New function.
159 Allow to_make_corefile_notes vector to be taken over.
160 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
161 interface layer if not target_has_execution (may be a corefile).
162 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
163 * config/sparc/sun4sol2.mh: Ditto.
164 * config/alpha/alpha-linux.mh: Ditto.
165 * config/arm/linux.mh: Ditto.
166 * config/i386/x86-64linux.mh: Ditto.
167 * config/ia64/linux.mh: Ditto.
168 * config/m68k/linux.mh: Ditto.
169 * config/mips/linux.mh: Ditto.
170 * config/powerpc/linux.mh: Ditto.
171 * config/sparc/linux.mh: Ditto.
175 * arm-linux-nat.c: Remove references to regcache.c internal data
176 (registers[] and register_valid[]).
180 * linux-proc.c: New file. Implement child_pid_to_exec_file,
181 so that attaching to a pid will automatically read the process's
182 symbol file and shlibs.
183 * Makefile.in: Add rule for linux-proc.o.
184 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
185 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
186 * config/arm/linux.mh: Ditto.
187 * config/i386/linux.mh: Ditto.
188 * config/i386/x86-64linux.mh: Ditto.
189 * config/ia64/linux.mh: Ditto.
190 * config/m68k/linux.mh: Ditto.
191 * config/mips/linux.mh: Ditto.
192 * config/powerpc/linux.mh: Ditto.
193 * config/sparc/linux.mh: Ditto.
197 * win32-nat.c: Add i386-tdep.h dependency.
201 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
202 instead of bfd_get_arch_size. Don't bail out just because
205 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
206 * p-valprint.c (pascal_object_print_value): Ditto.
207 * somread.c (som_symtab_read): Ditto.
208 * symfile.c (simple_free_overlay_region_table): Ditto.
209 * valops.c (value_assign): Ditto.
211 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
212 use tilde_expand and strerror for opening save-tracepoints file.
214 * thread-db.c (thread_db_new_objfile): Indendation fix.
216 * infptrace.c (GDB_MAX_ALLOCA): New define.
217 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
218 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
219 can be overridden with whatever value is appropriate to the host).
220 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
221 alloca to allocate potentially large buffer.
222 * rs6000-nat.c (child_xfer_memory): Ditto.
223 * symm-nat.c (child_xfer_memory): Ditto.
224 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
229 * d10v-tdep.c: Set STACK_START to 0x200bffe.
233 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
234 Don't use exec_bfd if it's NULL.
238 * valops.c (value_arg_coerce): Fix formatting.
242 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
247 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
248 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
249 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
250 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
251 z8k-coff have not been multi-arched. Update z8k-coff build
256 * MAINTAINERS: Mark a29k target as obsolete.
257 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
258 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
260 * NEWS: Note that a29k targets are obsolete.
261 * a29k-tdep.c: Mark as obsolete.
262 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
263 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
264 a29k-*-vxworks* targets as obsolete.
265 * remote-adapt.c: Obsolete.
266 * remote-eb.c: Obsolete.
267 * remote-mm.c: Obsolete.
268 * remote-udi.c: Obsolete.
269 * config/a29k/a29k-udi.mt: Obsolete.
270 * config/a29k/a29k.mt: Obsolete.
271 * config/a29k/tm-a29k.h: Obsolete.
272 * config/a29k/tm-vx29k.h: Obsolete.
273 * config/a29k/vx29k.mt: Obsolete.
277 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
282 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
283 * configure, config.in: Re-generate.
284 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
285 * defs.h: Do not include <endian.h>.
289 * acconfig.h (HAVE_PT_GETXMMREGS): New.
290 * config.in: Regenerate.
291 * configure.in: Update copyright years.
292 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
293 * configure: Regenerate.
294 * i386bsd-nat.c: Update copyright years.
295 (fill_gregset): Use regcache_collect.
296 (fetch_inferior_registers): Only fetch integer registers
297 if requested to do so. Add support for XMM registers
299 (store_inferior_registers): Only store integer registers
300 if requested to do so. Add support for XMM registers
302 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
303 (store_inferior_registers): Remove.
304 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
305 (fetch_elfcore_registers): New function.
306 (i386nbsd_elfcore_fns): New.
307 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
308 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
310 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
311 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
312 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
313 * config/i386/tm-nbsd.h: Update copyright years.
314 (HAVE_SSE_REGS): Define.
315 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
316 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
317 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
318 (SIGCONTEXT_PC_OFFSET): Remove.
319 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
323 * configure.tgt: Remove powerpc-*-macos* target.
324 * config/m68k/xm-mpw.h: Delete file.
325 * config/xm-mpw.h: Delete file.
326 * ser-mac.c: Delete file.
327 * mpw-make.sed: Delete file.
328 * mpw-config.in: Delete file.
329 * mac-xdep.c: Delete file.
330 * mac-gdb.r: Delete file.
331 * mac-defs.h: Delete file.
332 * mac-nat.c: Delete file.
333 * config/powerpc/macos.mh: Delete file.
334 * config/powerpc/macos.mt: Delete file.
335 * config/powerpc/nm-macos.h: Delete file.
336 * config/powerpc/tm-macos.h: Delete file.
337 * source.c (openp, open_source_file): Remove obsolete code.
338 * top.c (gdb_readline): Ditto.
339 * utils.c (query): Ditto.
340 * event-top.c (display_gdb_prompt): Ditto.
341 * Makefile.in (ser-mac.o): Delete obsolete target.
346 * defs.h (BIG_ENDIAN): Delete macro definition.
347 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
348 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
349 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
350 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
351 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
352 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
353 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
354 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
355 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
356 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
357 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
358 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
359 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
360 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
361 * gdbarch.c: Re-generate.
365 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
370 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
374 * value.h (value_ptr): Delete typedef.
378 * i386nbsd-nat.c: Update copyright years.
383 * stabsread.c: Update copyright years.
386 (read_struct_fields): Deal with Sun C compiler erroneous stab
387 output for structs and unions.
392 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
397 * cp-abi.c: Fix whitespace.
398 (baseclass_offset): New wrapper function.
399 * cp-abi.h (baseclass_offset): Add prototype.
400 (struct cp_abi_ops): Add baseclass_offset pointer.
402 * valops.c (vb_match): Move to...
403 * gnu-v2-abi.c (vb_match): here.
404 * valops.c (baseclass_offset): Move to...
405 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
407 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
409 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
410 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
411 * hpacc-abi.c (init_hpacc_ops): Likewise.
415 * valops.c (find_overload_match): Accept obj as a
416 reference parameter. Update it before returning.
417 * value.h (find_overload_match): Update prototype.
418 * eval.c (evaluate_subexp_standard): Pass object to
419 find_overload_match by reference.
423 * valarith.c: Replace value_ptr with struct value pointer. Remove
424 register attribute from value declarations.
427 * scm-lang.c (scm_lookup_name): Ditto.
431 Abstract the functionality of iterating over mapped memory
432 regions into a general purpose iterator function.
433 * procfs.c (iterate_over_mappings): New function, general purpose
434 iterator for memory sections.
435 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
436 (solib_mappings_callback): New function, callback for above.
437 (info_proc_mappings): Reimpliment using iterate_over_mappings.
438 (info_mappings_callback): New function, callback for above.
440 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
444 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
445 * i386-tdep.c: Include "elf-bfd.h".
446 (process_note_abi_tag_sections): New function.
447 (i386_gdbarch_init): Add code to recognize various OS/ABI
450 * maint.c (_initialize_maint_cmds): Add missing \ in
453 For older changes see ChangeLog-2001
459 version-control: never