* elfread.c (elf_symtab_read): Skip symbols which BFD considers
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
74763737
DJ
12006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
4 special.
5
13d35ae5
AS
62006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
7
8 * defs.h (directory_switch): Add prototype.
9 * main.c (captured_main): Use directory_switch() instead of
10 directory_command() to add directories from the -d switch.
11 * source.c (directory_switch): New function.
12 (add_path): Use buildargv() to parse spaces in filenames properly.
13 Strip multiple trailing '/' rather than just one.
14
5b96932b
AS
152006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
16
17 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
18 hand decoding the command line, to allow use of quotes and spaces.
19 (_initialize_symfile): Reorganize the help message for add-symbol-file
20 such that 'help files' shows a better message.
21
a6b0a3f3
AS
222006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
23
24 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
25 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
26 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
27 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
28
17fbb0bd
DJ
292006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
30
31 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
32 and __SIGRTMIN + 1.
33
444abaca
DJ
342006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
35
36 * remote.c: Add an enumeration for configurable remote
37 packets.
38 (remote_protocol_packets, set_remote_protocol_packet_cmd)
39 (show_remote_protocol_packet_cmd): New.
40 (remote_protocol_vcont)
41 (set_remote_protocol_vcont_packet_cmd)
42 (show_remote_protocol_vcont_packet_cmd)
43 (remote_protocol_qSymbol)
44 (set_remote_protocol_qSymbol_packet_cmd)
45 (show_remote_protocol_qSymbol_packet_cmd)
46 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
47 (show_remote_protocol_P_packet_cmd)
48 (remote_protocol_Z)
49 (set_remote_protocol_Z_software_bp_packet_cmd)
50 (show_remote_protocol_Z_software_bp_packet_cmd)
51 (set_remote_protocol_Z_hardware_bp_packet_cmd)
52 (show_remote_protocol_Z_hardware_bp_packet_cmd)
53 (set_remote_protocol_Z_write_wp_packet_cmd)
54 (show_remote_protocol_Z_write_wp_packet_cmd)
55 (set_remote_protocol_Z_read_wp_packet_cmd)
56 (show_remote_protocol_Z_read_wp_packet_cmd)
57 (set_remote_protocol_Z_access_wp_packet_cmd)
58 (show_remote_protocol_Z_access_wp_packet_cmd)
59 (remote_protocol_binary_download)
60 (set_remote_protocol_binary_download_cmd)
61 (show_remote_protocol_binary_download_cmd)
62 (remote_protocol_qPart_auxv)
63 (set_remote_protocol_qPart_auxv_packet_cmd)
64 (show_remote_protocol_qPart_auxv_packet_cmd)
65 (remote_protocol_qGetTLSAddr)
66 (set_remote_protocol_qGetTLSAddr_packet_cmd)
67 (show_remote_protocol_qGetTLSAddr_packet_cmd)
68 (remote_protocol_p)
69 (set_remote_protocol_p_packet_cmd)
70 (show_remote_protocol_p_packet_cmd): Delete.
71
72 (init_all_packet_configs): Simplify.
73 (set_remote_protocol_Z_packet_cmd)
74 (show_remote_protocol_Z_packet_cmd)
75 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
76 (remote_fetch_registers, remote_prepare_to_store)
77 (remote_store_registers, check_binary_download)
78 (remote_write_bytes, remote_insert_breakpoint)
79 (remote_remove_breakpoint, remote_insert_watchpoint)
80 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
81 (remote_remove_hw_breakpoint, remote_xfer_partial)
82 (remote_get_thread_local_address): Update for packet array.
83 (_initialize_remote): Likewise; also update for common
84 set/show commands.
85
3bd72c6f
DJ
862006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
87
88 * symfile.c (place_section): Correct retry logic.
89
a244bdca
CF
902006-02-19 Christopher Faylor <cgf@timesys.com>
91
92 * win32_nat.c (cygwin_load_start): New variable.
93 (cygwin_load_end): Ditto.
94 (have_saved_context): Ditto.
95 (saved_context): Ditto.
96 (max_dll_name_len): Delete obsolete variable.
97 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
98 if we are in a cygwin signal rather than a windows signal.
99 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
100 if dll being loaded is the cygwin DLL.
101 (register_loaded_dll): Remove calculation of max_dll_name_len.
102 (win32_clear_solib): Ditto.
103 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
104 solib_add.
105 (handle_output_debug_string): Detect and store signal information sent
106 by Cygwin here.
107 (handle_exception): Silently pass on errors in the cygwin DLL. Return
108 -1 on first pass exception.
109 (win32_continue): Remove spurious clearing of continue_status.
110 (get_win32_debug_event): Deal differently first chance exception.
111
806e23c0
RC
1122006-02-19 Randolph Chung <tausq@debian.org>
113
114 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
115 unwind entry.
116
d843c49c
FF
1172006-02-16 Fred Fish <fnf@specifix.com>
118
119 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
120 a non lval value zero, of the appropriate type, when avoiding
121 side effects.
122 * typeprint.c (ptype_eval): Remove function and declaration.
123 (ptype_command): Simplify to just a call to whatis_exp.
124
1c5bada0
PB
1252006-02-15 Paul Brook <paul@codesourcery.com>
126
127 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
128 Load insn opcodes as unsigned values.
129
96c1eda2
AO
1302006-02-14 Alexandre Oliva <aoliva@redhat.com>
131
132 * doublest.h (DOUBLEST): Use long double only if we can scan
133 it in. Undefine HAVE_LONG_DOUBLE otherwise.
134 (DOUBLEST_FORMAT): New.
135 * c-exp.y (parse_number): Use it.
136 * jv-exp.y (parse_number): Likewise.
137 * objc-exp.y (parse_number): Likewise.
138 * p-exp.y (parse_number): Likewise.
139 * varobj.c (free_variable): Silence type-punning warnings.
140 * tui/tui-data.h (struct tui_list): Change type of list member.
141 * tui/tui-data.c: Remove no-longer-needed type casts.
142 (source_windows): Silence type-punning warnings.
143 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
144
92dd43fa
MK
1452006-02-13 Mark Kettenis <kettenis@gnu.org>
146
147 Fix PR breakpoints/2080.
148 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
149 (i386_analyze_stack_align): New function.
150 (i386_analyze_prologue): Use i386_analyze_stack_align.
151 (i386_frame_cache): Deal with stack realignment.
152
7314787a
NR
1532006-02-14 Nick Roberts <nickrob@snap.net.nz>
154
155 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
156 (gdb-break-list-regexp): Match "what" field if present.
157 (gdb-stack-list-frames-regexp): Match "from" if present field.
158 (gdb-stack-list-frames-handler): Present output like "info
159 breakpoints" so regexps can be shared with gdb-ui
160
0ea3f30e
DJ
1612006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
162
163 * NEWS: Mention native Windows support.
164 * Makefile.in (gdb_select_h, ser_tcp_h): New.
165 (ALLDEPFILES): Add ser-mingw.c.
166 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
167 (ser-tcp.o, ser-unix.o): Update.
168 (ser-mingw.o): New rule.
169 * configure: Regenerated.
170 * configure.ac: Add ser-mingw.o for mingw32.
171 * ser-mingw.c: New file.
172 * event-loop.c: Include "gdb_select.h".
173 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
174 * ser-base.c: Include "gdb_select.h".
175 (ser_base_wait_for): Use gdb_select.
176 * serial.c (serial_for_fd): New function.
177 (serial_fdopen): Try "terminal" before "hardwire". Initialize
178 the allocated struct serial.
179 (serial_wait_handle): New function.
180 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
181 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
182 * gdb_select.h: New file.
183 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
184 (net_close, net_read_prim, net_write_prim): Make global.
185 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
186 Document why we can not use gdb_select.
187 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
188 * ser-tcp.h: New file.
189 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
190 (handle_sigio): Use gdb_select.
191 (initialize_stdin_serial): New function.
192 * terminal.h (initialize_stdin_serial): New prototype.
193 * top.c (gdb_init): Call initialize_stdin_serial.
194 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
195 event-loop.c. Add exception condition support. Use serial_for_fd
196 and serial_wait_handle. Fix timeout handling.
197 * posix-hdep.c: Include "gdb_select.h".
198 (gdb_select): New function.
199 * remote-st.c (connect_command): Use gdb_select.
200 * ser-unix.c: Include "gdb_select.h".
201 (hardwire_send_break, wait_for): Use gdb_select.
202
121ce6e5
DJ
2032006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
204
205 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
206 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
207 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
208 to posix-hdep.o by default.
209 * configure: Regenerated.
210 * configure.host: Document gdb_host_obs. Add an entry for
211 i[34567]86-*-mingw32*.
212 * mingw-hdep.c, posix-hdep.c: New files.
213 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
214
1f82754b
JB
2152006-02-10 Joel Brobecker <brobecker@adacore.com>
216
217 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
218 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
219 * rs6000-tdep.h: New file.
220 * rs6000-tdep.c: Include "rs6000-tdep.h".
221 (rs6000_gdbarch_init): Remove enabling of software single step.
222 Will be done in the AIX-specific initialization routine.
223 * rs6000-aix-tdep.c: New file.
224 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
225 * Makefile.in (rs6000_tdep_h): New variable.
226 (rs6000-tdep.o): Update dependencies.
227 (rs6000-aix-tdep.o): New rule.
228
577b7047
JB
2292006-02-10 Joel Brobecker <brobecker@adacore.com>
230
231 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
232 instead of add_setshow_zinteger_cmd to defined the aix-thread
233 boolean setting.
234
ff800d76
NR
2352006-02-10 Nick Roberts <nickrob@snap.net.nz>
236
237 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
238
5afb4e99
DJ
2392006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
240
241 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
242 30 bits. Add load_all_dies flag.
243 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
244 Load DW_TAG_member by default. Remove internal_error call.
245 (find_partial_die): Reload the compilation unit if we can not find
246 a DIE in the cache. Call internal_error here if we still can not
247 find the DIE.
248
a832795c
NR
2492006-02-10 Nick Roberts <nickrob@snap.net.nz>
250
251 * breakpoint.c (print_one_breakpoint): Add break to case
252 bp_catch_vfork in switch statement.
253
c9dd6fef
WZ
2542006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
255
256 * config/i386/nm-i386sol2.h: Update copyright year.
257 * config/mips/nm-irix5.h: Ditto.
258 * config/sparc/nm-sol2.h: Ditto.
259 * s390-nat.c: Ditto.
260 * ppc-linux-nat.c: Ditto.
261
2a3cdf79
WZ
2622006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
263
264 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
265 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
266 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
267 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
268 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
269 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
270 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
271 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
272 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
273 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
274 add to_region_ok_for_hw_watchpoint.
275 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
276 (s390_region_ok_for_hw_watchpoint): New.
277 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
278 and add to_region_ok_for_hw_watchpoint.
279 * target.c (default_region_size_ok_for_hw_watchpoint,
280 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
281 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
282 inheritance and default_region_size_ok_for_hw_watchpoint.
283 (default_region_ok_for_hw_watchpoint): If len is less than or equal
284 the length of void pointer, return ok.
285 (default_region_size_ok_for_hw_watchpoint): Delete.
286 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
287 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
288 * target.h (struct target_ops): Delete
289 to_region_size_ok_for_hw_watchpoint.
290 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
291
e0d24f8d
WZ
2922006-02-08 Ben Elliston <bje@au1.ibm.com>
293 Wu Zhou <woodzltc@cn.ibm.com>
294
295 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
296 PTRACE_GETSIGINFO): Define.
297 (last_stopped_data_address): New.
298 (ppc_linux_check_watch_resources): New function.
299 (ppc_linux_region_ok_for_hw_watchpoint): New function.
300 (ppc_linux_insert_watchpoint): New function.
301 (ppc_linux_remove_watchpoint): New function.
302 (ppc_linux_stopped_data_address): New function.
303 (ppc_linux_stopped_by_watchpoint): New function.
304 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
305 related target vectors.
306 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
307 to have nonsteppable watchpoint.
308 * target.c (default_region_ok_for_hw_watchpoint,
309 debug_to_region_ok_for_hw_watchpoint): New prototypes.
310 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
311 and set default to_region_ok_for_hw_watchpoint.
312 (default_region_ok_for_hw_watchpoint): New function.
313 (debug_to_region_ok_for_hw_watchpoint): New function.
314 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
315 debug_target.
316 * target.h (struct target_ops): Add a new target vector
317 to_region_ok_for_hw_watchpoint.
318 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
319 defined anyplace else.
927890d0 320
e0d24f8d 3212005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
322 * symfile.c (add_symbol_file_command): Abort if the user forgot
323 to provide the address when the file has been loaded.
324
f4d408c6
DJ
3252006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
326
327 * MAINTAINERS: Update file based on maintainers survey. Add
328 a note to Past Maintainers. Move unresponsive or inactive
329 maintainers to Authorized Committers or Past Maintainers as
330 appropriate. Correct Jim Kingdon's email address. Remove
331 vacant areas of responsibility.
332
38fcd64c
DJ
3332006-02-06 Vladimir Prus <ghost@cs.msu.su>
334
335 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
336 fullname field.
337
7b871fab
DJ
3382006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
339
340 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
341 * exceptions.c (exception_none, exceptions_state_mc_init)
342 (throw_vfatal): Use GDB_NO_ERROR.
343
e4cd0d6a
MK
3442006-02-02 Mark Kettenis <kettenis@gnu.org>
345
346 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
347 r_map_size members. Add r_version_offset, r_version_size and
348 r_ldsomap_offset members.
349 * solib-svr4.c (solib_svr4_r_map): Renamed from
350 fetch_link_map_member. Simplify using read_memory_typed_address.
351 (solib_svr4_r_ldsomap): New function.
352 (open_symbol_file_object): Use solib_svr_r_map.
353 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
354 linker by using solib_svr4_r_ldsomap.
355 (svr4_ilp32_fetch_link_map_offsets)
356 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
357 link_map_offsets'.
358 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
359 changes to `struct link_map_offsets'.
360 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
361 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
362 `struct link_map_offsets'.
363
e26af52f
DJ
3642006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
365
366 * linux-nat.c (struct saved_ptids, threads_to_delete)
367 (record_dead_thread, prune_lwps, find_thread_from_lwp)
368 (exit_lwp): New.
369 (linux_nat_resume): Call prune_lwps.
370 (wait_lwp, linux_nat_wait): Call exit_lwp.
371
46e9880c
DJ
3722006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
373
374 * printcmd.c (printf_command): Make format string checking
375 stricter. Add separate cases for long_arg, ptr_arg, and
376 long_double_arg.
377 * utils.c (xstrvprintf): Improve the error message issued
378 for a bad format string.
379 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
380 New variables.
381 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
382 $(NO_WERROR_CFLAGS).
383 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
384 enable -Werror.
385
37a105a1
DJ
3862006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
387
388 * Makefile.in (remote.o): Update.
389 * remote.c (show_packet_config_cmd): Shorten messages.
390 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
391 (show_remote_cmd): Iterate.
392 (_initialize_remote): Remove remote_set_cmdlist,
393 remote_show_cmdlist.
394
ae5a43e0
DJ
3952006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
396
397 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
398 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
399 prototypes.
400 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
401 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
402 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
403 ...here.
404 * gdbtypes.c: Include "hashtab.h".
405 (build_gdbtypes): Remove extra prototype.
406 (struct type_pair, type_pair_hash, type_pair_eq)
407 (create_copied_types_hash, copy_type_recursive): New.
408 * gdbtypes.h: Include "hashtab.h".
409 (TYPE_ZALLOC): New.
410 (create_copied_types_hash, copy_type_recursive): New prototypes.
411 * objfiles.c (free_objfile): Call preserve_values.
412 * symfile.c (reread_symbols): Likewise.
413 (clear_symtab_users): Remove calls to clear_value_history and
414 clear_internalvars.
415 * value.c (clear_value_history, clear_internalvars): Removed.
416 (preserve_one_value, preserve_values): New functions.
417 * value.h (clear_value_history, clear_internalvars): Removed.
418 (preserve_values): New prototype.
419
420 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
421 variables here.
422
b929c77f
MK
4232006-01-29 Mark Kettenis <kettenis@gnu.org>
424
425 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
426 Fixes PR tdep/2075.
427
1581f359
JB
4282006-01-27 Joel Brobecker <brobecker@adacore.com>
429
430 * MAINTAINERS: Use a consistent email address for brobecker.
431
37706b70
JB
4322006-01-27 Joel Brobecker <brobecker@adacore.com>
433
434 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
435 in the previous change.
436
9353355f
DJ
4372006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
438
439 PR gdb/1914
440 * fork-child.c (fork_inferior): Don't call
441 solib_create_inferior_hook.
442 * infcmd.c (post_create_inferior): Call solib_add,
443 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
444 (attach_command): Don't call solib_add or
445 re_enable_breakpoints_in_shlibs. Call post_create_inferior
446 instead.
447 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
448 or observer_notify_inferior_created. Call post_create_inferior
449 instead.
450 * corelow.c: Don't include "observer.h".
451 (solib_add_stub): Deleted.
452 (core_open): Don't call observer_notify_inferior_created or
453 solib_add_stub. Call post_create_inferior instead.
454 * inf-ptrace.c: Don't include "observer.h".
455 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
456 * inf-ttrace.c: Don't include "observer.h".
457 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
458 * inferior.h (solib_create_inferior_hook): Remove redundant
459 prototype.
460 * inftarg.c: Don't include "observer.h".
461 (child_attach): Don't call observer_notify_inferior_created.
462 * Makefile.in: Update dependencies.
463
281b533b
DJ
4642006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
465
466 * infcmd.c: Include "observer.h".
467 (post_create_inferior): New function.
468 (run_command_1): Call it. Also call proceed.
469 * inferior.h (post_create_inferior): New prototype.
470 * Makefile.in (infcmd.o): Update.
471
472 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
473 * go32-nat.c (go32_create_inferior): Likewise.
474 * nto-procfs.c (procfs_create_inferior): Likewise.
475 * procfs.c (procfs_create_inferior): Likewise.
476 * remote-sim.c (gdbsim_create_inferior): Likewise.
477 * remote.c (extended_remote_create_inferior)
478 (extended_remote_async_create_inferior): Likewise.
479 * win32-nat.c (win32_create_inferior): Likewise.
480 * wince.c (child_create_inferior): Likewise.
481
482 * monitor.c (monitor_create_inferior): Don't call proceed.
483 Set the PC manually.
484 * ocd.c (ocd_create_inferior): Likewise.
485 * remote-e7000.c (e7000_create_inferior): Likewise.
486 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
487 * remote-mips.c (mips_create_inferior): Likewise.
488 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
489 * remote-sds.c (sds_create_inferior): Likewise.
490 * remote-st.c (st2000_create_inferior): Likewise.
491
492 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
493 proceed or observer_notify_inferior_created.
494 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
495 * inftarg.c (child_create_inferior): Likewise.
496
e23fc6de
DJ
4972006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
498
499 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
500 after mourning the inferior.
501
13d6656b
JB
5022006-01-24 Jim Blandy <jimb@redhat.com>
503
504 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
505
59f92a09
FF
5062006-01-24 Fred Fish <fnf@specifix.com>
507
508 * parse.c (source.h): Include.
509 (parse_exp_in_context): Use static source context if no
510 other context found.
511
dda63807
AS
5122006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
513
514 * sh-tdep.c: Include reggroups.h.
515 (sh_register_reggroup_p): New function.
516 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
517 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
518
4b505b12
AS
5192006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
520
521 * cli/cli-cmds.c: Include fcntl.h.
522 (source_command): Use the GDB search path to find script files.
523
721d14ba
DJ
5242006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
525
526 PR tdep/2029
527 Suggested by Till Straumann <strauman@slac.stanford.edu>:
528 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
529 instructions. Handle PIC bcl.
530
3d64d617
DJ
5312006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
532
533 * config/djgpp/README: Typo fix.
534 * config/djgpp/fnchange.lst: Update.
535
0a8f48b9
MK
5362006-01-22 Mark Kettenis <kettenis@gnu.org>
537
c893be75
MK
538 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
539 (sparc_address_from_register): New prototype.
540 (sparcnbsd_step_trap): New prototype.
541 * sparc-tdep.c (sparc_address_from_register): Make globally
542 visible.
543 (sparc_analyze_control_transfer): Change prototype to accept
544 `struct gdbarch *' as first argument. Allow for optional hnadling
545 for trap instructions.
546 (sparc_step_trap): New function.
547 (sparc_software_single_step): Adjust call to
548 sparc_analyze_control_trabsfer.
549 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
550 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
551 (sparc32nbsd_init_abi): Set TDEP->step_trap.
552 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
553 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
554
0a8f48b9
MK
555 * sparc-tdep.c (sparc32_return_value): Convert to use
556 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
557 RETURN_VALUE_STRUCT_CONVENTION.
558 (sparc32_extract_struct_value_address): Remove.
559
1f3a99d5
DJ
5602006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
561
562 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
563 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
564
84eb3c4f
DJ
5652006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
566
567 * solib.c (info_sharedlibrary_command): Avoid internal_error.
568
878d9193
MK
5692006-01-21 Mark Kettenis <kettenis@gnu.org>
570
571 * i386-tdep.c (i386_mxcsr_type): New variable.
572 (i386_init_types): Initialize i386_mxcsr_type.
573 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
574 * i386-tdep.c (i386_mxcsr_type): New extern.
575 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
576 %mxcsr.
577
acab6ab2
MM
5782006-01-20 Mark Mitchell <mark@codesourcery.com>
579
580 * Makefile.in (remote-rdi.o): Remove.
581 (rdi-share/libangsd.a): Likewise.
582 * README: Don't mention remote-rdi.c.
583 * NEWS: Mention removal of rdi-share.
584 * configure.ac: Don't configure rdi-share subdirectory.
585 * remote-rdi.c: Remove.
586 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
587 (TDEPLIBS): Remove rdi-share/libangsd.a.
588 * rdi-share/Makefile.am: Remove.
589 * rdi-share/Makefile.in: Likewise.
590 * rdi-share/README.CYGNUS: Likewise.
591 * rdi-share/aclocal.m4: Likewise.
592 * rdi-share/adp.h: Likewise.
593 * rdi-share/adperr.h: Likewise.
594 * rdi-share/angel.h: Likewise.
595 * rdi-share/angel_bytesex.c: Likewise.
596 * rdi-share/angel_bytesex.h: Likewise.
597 * rdi-share/angel_endian.h: Likewise.
598 * rdi-share/ardi.c: Likewise.
599 * rdi-share/ardi.h: Likewise.
600 * rdi-share/armdbg.h: Likewise.
601 * rdi-share/buffers.h: Likewise.
602 * rdi-share/chandefs.h: Likewise.
603 * rdi-share/channels.h: Likewise.
604 * rdi-share/chanpriv.h: Likewise.
605 * rdi-share/configure: Likewise.
606 * rdi-share/configure.in: Likewise.
607 * rdi-share/crc.c: Likewise.
608 * rdi-share/crc.h: Likewise.
609 * rdi-share/dbg_conf.h: Likewise.
610 * rdi-share/dbg_cp.h: Likewise.
611 * rdi-share/dbg_hif.h: Likewise.
612 * rdi-share/dbg_rdi.h: Likewise.
613 * rdi-share/devclnt.h: Likewise.
614 * rdi-share/devices.h: Likewise.
615 * rdi-share/devsw.c: Likewise.
616 * rdi-share/devsw.h: Likewise.
617 * rdi-share/drivers.c: Likewise.
618 * rdi-share/drivers.h: Likewise.
619 * rdi-share/etherdrv.c: Likewise.
620 * rdi-share/ethernet.h: Likewise.
621 * rdi-share/host.h: Likewise.
622 * rdi-share/hostchan.c: Likewise.
623 * rdi-share/hostchan.h: Likewise.
624 * rdi-share/hsys.c: Likewise.
625 * rdi-share/hsys.h: Likewise.
626 * rdi-share/logging.c: Likewise.
627 * rdi-share/logging.h: Likewise.
628 * rdi-share/msgbuild.c: Likewise.
629 * rdi-share/msgbuild.h: Likewise.
630 * rdi-share/params.c: Likewise.
631 * rdi-share/params.h: Likewise.
632 * rdi-share/rx.c: Likewise.
633 * rdi-share/rxtx.h: Likewise.
634 * rdi-share/serdrv.c: Likewise.
635 * rdi-share/serpardr.c: Likewise.
636 * rdi-share/sys.h: Likewise.
637 * rdi-share/tx.c: Likewise.
638 * rdi-share/unixcomm.c: Likewise.
639 * rdi-share/unixcomm.h: Likewise.
640
4577207e
MK
6412006-01-21 Mark Kettenis <kettenis@gnu.org>
642
643 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
644 Change type of last argument to `gdb_byte *'.
645
34f55018
MK
6462006-01-20 Mark Kettenis <kettenis@gnu.org>
647
648 * hppa-tdep.h (hppa_in_solib_call_trampoline)
649 (hppa_skip_trampoline_code): New prototypes.
650 * hppa-tdep.c (struct insn_pattern): New.
651 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
652 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
653 here from hppa-linux-tdep.c
654 (HPPA_MAX_INSN_PATTERN_LEN): New define.
655 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
656 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
657 functions based on functions removed from hppa-linux-tdep.c.
658 * hppa-linux-tdep.c (hppa_long_branch_stub)
659 (hppa_long_branch_pic_stub, hppa_import_stub)
660 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
661 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
662 (hppa_linux_in_solib_call_trampoline)
663 (hppa_linux_skip_trampoline_code): Removed.
664 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
665 hppa_in_solib_call_trampoline and skip_trampoline_code to
666 hppa_skip_trampoline_code.
667 * hppabsd-tdep.c (hppabsd_init_abi): Set
668 TDEP->in_solib_call_trampoline and skip_trampoline_code.
669
7be93b9e
JB
6702006-01-20 Jim Blandy <jimb@redhat.com>
671
f408839d
JB
672 * MAINTAINERS: Change my E-mail address.
673
7be93b9e
JB
674 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
675 * configure: Regenerated.
676
b2a74f99
DJ
6772006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
678
679 * MAINTAINERS: Overhaul.
680
4f2aea11
MK
6812006-01-18 Mark Kettenis <kettenis@gnu.org>
682
5ae96ec1
MK
683 Based on a previous patch form Michal Ludvig:
684 * amd64-tdep.c (amd64_sse_type): Remove.
685 (amd64_register_info): Use i386_eflags_type and i386_sse_type
686 where appropriate.
687 (AMD64_NUM_REGS): Use ARRAY_SIZE.
688 (amd64_register_type): Remove code to build amd_sse_type.
689 * i386-tdep.c (i386_eflag_type): New variable.
690 (i386_mmx_type, i386_sse_type): Make global.
691 (i386_init_types): New function.
692 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
693 (i386_register_type): Return i386_eflag_type, i386_sse_type and
694 i386_mmx_type when appropriate.
695 (_initialize_i386_tdep): Call i386_init_types.
696 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
697 Declare extern.
698
4f2aea11
MK
699 Based on a previous patch form Michal Ludvig:
700 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
701 functions.
702 (is_integral_type, rank_one_type, recursive_dump_type): Add
703 support for TYPE_CODE_FLAGS.
704 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
705 (append_flags_type_field, init_flags_type): New prototypes.
706 * ada-valprint.c (ada_val_print_1): Add support for
707 TYPE_CODE_FLAGS.
708 * c-valprint.c (c_val_print): Likewise.
709 * f-valprint.c (f_val_print): Likewise.
710 * p-valprint.c (pascal_val_print): Likewise.
711 * valprint.c (val_print_type_code_flags): New function.
712 * valprint.h (val_print_type_code_flags): New prototype.
713 * value.c (unpack_long, value_from_longest): Add support for
714 TYPE_CODE_FLAGS.
715
4cdb5adf
CF
7162006-01-17 Christopher Faylor <cgf@timesys.com>
717
718 * MAINTAINERS: Very belatedly remove myself from from the list of
719 people caught up in the paper trail.
720
1193688d
JB
7212006-01-17 Jim Blandy <jimb@redhat.com>
722
4e38b386
JB
723 * symtab.h (struct general_symbol_info): Use gdb_byte for
724 value.bytes.
725 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
726 a floating-point constant's value.
727 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
728 to char *.
729 * findvar.c (read_var_value): Eliminate needless temporary.
730
1193688d
JB
731 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
732 to match prior change to dwarf2_read_section's type.
733
0d1243d9
PG
7342006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
735
736 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
737 * rs6000-tdep.c (insn_changes_sp_or_jumps)
738 (rs6000_in_function_epilogue_p): New functions.
739 (rs6000_gdbarch_init): Set in_function_epilogue_p.
740
fe1b8b76
JB
7412006-01-17 Jim Blandy <jimb@redhat.com>
742
743 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
744 (struct line_header, struct partial_die_info, struct dwarf_block):
745 Use gdb_byte for members that refer to Dwarf section contents.
746 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
747 dwarf_decode_macros, load_comp_unit, load_partial_dies,
748 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
749 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
750 read_8_bytes, read_address, read_attribute, read_attribute_value,
751 read_comp_unit, read_comp_unit_head, read_die_and_children,
752 read_die_and_siblings, read_full_die, read_indirect_string,
753 read_initial_length, read_n_bytes, read_offset, read_partial_die,
754 read_signed_leb128, read_string, read_unsigned_leb128,
755 skip_children, skip_leb128, skip_one_die): Same.
756
a0841d7a
DJ
7572006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
758
759 * complaints.c (stop_whining): Make signed.
760 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
761
939b2b42
DJ
7622006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
763
764 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
765 notices.
766
891d2f0b
DJ
7672006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
768
769 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
770 (read_offset): Change BYTES_READ argument to unsigned int.
771 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
772 (create_all_comp_units, dwarf2_get_pc_bounds)
773 (dwarf_decode_line_header, var_decode_location)
774 (dwarf_decode_macros): Change local BYTES_READ variables to
775 unsigned int.
776 (read_indirect_string): Remove obsolete cast.
777
cfd77fa1
DJ
7782006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
779
780 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
781 argument.
782 (remote_fileio_func_open, remote_fileio_func_rename)
783 (remote_fileio_func_unlink, remote_fileio_func_stat)
784 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
785 (remote_fileio_func_system): Cast the arguments to
786 remote_read_bytes and remote_write_bytes.
787 (remote_fileio_func_read, remote_fileio_func_write): Use a
788 gdb_byte buffer.
789 * remote.h (remote_read_bytes, remote_write_bytes): Update
790 prototypes.
791 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
792 (threadref_to_int): Replace bogus char * cast.
793 (remote_unpack_thread_info_response): Use int for tag.
794 (remote_threads_extra_info, remote_check_symbols): Cast string
795 arguments to hex2bin.
796 (remote_wait): Use a char buffer for packets and a gdb_byte
797 buffer for registers.
798 (remote_async_wait): Likewise.
799 (remote_prepare_to_store, store_register_using_P)
800 (remote_store_registers): Use gdb_byte buffers.
801 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
802 for MYADDR and char buffers for strings.
803 (remote_xfer_partial): Add casts for string operations on READBUF.
804 (remote_rcmd): Cast strings passed to bin2hex.
805
60bf0650
MM
8062006-01-16 Mark Mitchell <mark@codesourcery.com>
807
808 * aclocal.m4: Regenerate.
809
60e81fcc
NS
8102006-01-16 Nathan Sidwell <nathan@codesourcery.com>
811
812 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
813 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
814 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
815 (mt_register_name): Lazily synthesize name for coprocessor pseudo
816 array registers.
817 (mt_copro_register_type): New. Broken out of ...
818 (mt_register_type): ... here. Use it. Deal with coprocessor
819 pseudo array.
820 (mt_select_coprocessor): New.
821 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
822 coprocessor pseudo array.
823
f365de73
AS
8242006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
825
826 * breakpoint.c (insert_breakpoints): Check that a thread exists
827 before inserting thread specific breakpoints.
828
9d519230
MK
8292006-01-15 Mark Kettenis <kettenis@gnu.org>
830
6062517a
MK
831 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
832 commit.
833
9d519230
MK
834 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
835 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
836 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
837 * config/alpha/nm-nbsd.h: Remove file.
838 * config/alpha/nm-fbsd.h: Remove file
839 * config/alpha/nbsd.mh (NAT_FILE): Remove.
840 * config/alpha/fbsd.mh (NAT_FILE): Remove.
841
0a029df5
DJ
8422006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
843
844 * macroexp.c (expand): Initialize argc.
845 * stabsread.c (read_type): Handle errors from read_args.
846 (read_args): Return NULL for errors.
847
1731e543
MK
8482006-01-15 Mark Kettenis <kettenis@gnu.org>
849
850 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
851 strcmp to compare string to a byte buffer.
852
777ea8f1
DJ
8532006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
854
855 * printcmd.c (output_command): Always initialize fmt.size.
856 (printf_command): Use gdb_byte.
857 * symfile.c (separate_debug_file_exists): Use gdb_byte.
858 (load_section_callback, read_target_long_array): Likewise.
859 (simple_read_overlay_table, simple_read_overlay_region_table)
860 (simple_overlay_update_1): Correct calls to read_target_long_array.
861 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
862 Also change local pointers.
863 (val_print_string): Use gdb_byte.
864
4b17b389
MK
8652006-01-15 Mark Kettenis <kettenis@gnu.org>
866
867 * alphafbsd-tdep.c: Include "solib-svr4.h".
868 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
869 svr4_lp64_fetch_link_map_offsets.
870 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
871 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
872 solib-svr4.o.
873 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
874 and solib-legacy.o.
875 * config/alpha/nm-fbsd.h: Don't include "solib.h".
876
bd4109fb
DJ
8772006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
878
879 * source.c (_initialize_source): Use add_setshow_integer_cmd.
880
1dce6535
DJ
8812006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
882
883 * linux-fork.c (delete_fork_command, detach_fork_command): Use
884 PIDGET.
885
76a9d10f
MK
8862006-01-15 Mark Kettenis <kettenis@gnu.org>
887
888 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
889 Remove.
890 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
891 svr4_ilp32_fetch_link_map_offsets.
892 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
893 function.
894 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
895 svr4_ilp32_fetch_link_map_offsets.
896 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
897 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
898 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
899 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
900 where appropriate.
901 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
902 Simply call svr4_ilp32_fetch_link_map_offsets.
903 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
904 svr4_lp64_fetch_link_map_offsets.
905 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
906 function.
907 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
908 svr4_ilp32_fetch_link_map_offsets.
909 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
910 (s390x_svr4_fetch_link_map_offsets): Remove functions.
911 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
912 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
913 where appropriate.
914
469db033
MK
9152006-01-15 Mark Kettenis <kettenis@gnu.org>
916
25224166
MK
917 * arm-tdep.c (arm_return_value): Change type of readbuf and
918 writebuf arguments to `gdb_byte *'.
919
469db033
MK
920 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
921 * Makefile.in (s390-tdep.o): Update dependencies.
922
4dd7c9f6
MK
9232006-01-14 Mark Kettenis <kettenis@gnu.org>
924
081bf9da
MK
925 * sol2-tdep.h. sol2-tdep.c: New files.
926 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
927 (amd64_sol2_init_abi): Set skip_solib_resolver.
928 * i386-sol2-tdep.c: Include "sol2-tdep.h".
929 (i386_sol2_init_abi): Set skip_solib_resolver.
930 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
931 (sparc32_sol2_init_abi): Set skip_solib_resolver.
932 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
933 (sparc64_sol2_init_abi): Set skip_solib_resolver.
934 * Makefile.in (sol2_tdep_h): New variable.
935 (ALLDEPFILES): Add sol2-tdep.c.
936 (sol2-tdep.o): New target.
937 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
938 (sparc64-sol2-tdep.o): Update dependencies
939 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
940 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
941 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
942 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
943
c0f96416
MK
944 * hppa-linux-tdep.c: Fix copyright indentation.
945
4dd7c9f6
MK
946 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
947 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
948 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
949 functions.
950 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
951 floating-point registers.
952
6da86618
MM
9532006-01-13 Mark Mitchell <mark@codesourcery.com>
954
955 * event-loop.c (gdb_select): Detect file descriptors that have
956 been closed.
957
ed944ce7
MK
9582006-01-13 Mark Kettenis <kettenis@gnu.org>
959
960 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
961 and long_double_format accordingly.
962
03ee6b2e
PH
9632006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
964
965 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
966 translation problems.
967 * ada-lang.c (ada_value_struct_elt): Change interface and handling
968 of errors to avoid translation problem (and less than optimal error
969 messages).
970 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
971 Use new interface to ada_value_struct_elt.
972 * ada_lang.h (ada_value_struct_elt): Update declaration to new
973 interface.
974
975 * ChangeLog: remove reference to ada-tasks.c from entry of
976 2006-01-07.
977
24b06219
MK
9782006-01-11 Mark Kettenis <kettenis@gnu.org>
979
980 * remote.c (get_memory_packet_size, set_thread)
981 (remote_unpack_thread_info_response, remote_get_threadinfo)
982 (parse_threadlist_response, remote_get_threadlist)
983 (remote_current_thread, remote_threads_info)
984 (remote_threads_extra_info, extended_remote_restart, get_offsets)
985 (remote_check_symbols, remote_open_1, remote_detach)
986 (remote_async_wait, remote_fetch_registers)
987 (remote_store_registers, check_binary_download, putpkt_binary)
988 (remote_insert_breakpoint, remote_insert_watchpoint)
989 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
990 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
991 (packet_command): Remove redundant parenthesis.
992
15550d6b
MK
9932006-01-10 Mark Kettenis <kettenis@gnu.org>
994
dfb65433
MK
995 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
996 (read_memory_typed_address, write_memory)
997 (write_memory_unsigned_integer, write_memory_signed_integer): Use
998 gdb_byte where appropriate.
999
508416a1
MK
1000 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
1001 'gdb_byte *'.
1002
f6519ebc
MK
1003 * target.h (target_read_memory_partial, target_write_memory_partial):
1004 Change second argument to 'gdb_byte *'.
1005 * target.c (target_xfer_memory_partial): Change third argument to
1006 'gdb_byte *'.
1007 (target_read_memory_partial, target_write_memory_partial): Change
1008 second argument to 'gdb_byte *'.
1009
15550d6b
MK
1010 * linespec.c (decode_objc): Make i1 and i2 unsigned.
1011 (find_method): Set values.sals to NULL.
1012
d7a30af7
MK
10132006-01-09 Mark Kettenis <kettenis@gnu.org>
1014
1015 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
1016 of 'char *' in cast.
1017
e1d5a0d2
PH
10182006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
1019
1020 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 1021 * ada-lang.c: I18n markup.
e1d5a0d2
PH
1022 Editorial: change "can not" => "cannot" throughout.
1023
790124be
MK
10242006-01-07 Mark Kettenis <kettenis@gnu.org>
1025
1026 * Makefile.in: Sort dependencies.
1027
3c481fdc
EZ
10282006-01-07 Eli Zaretskii <eliz@gnu.org>
1029
1030 * top.c (control_level): Remove unused variable.
1031
cb5d864f
FF
10322006-01-06 Fred Fish <fnf@specifix.com>
1033
1034 * objfiles.c (source.h): Include.
1035 (free_objfile): Update comment about clear_symtab_users().
1036 (free_objfile): Check all symtabs of objfile being freed and if
1037 one of them is the current source symtab, call
1038 clear_current_source_symtab_and_line().
1039
ac264b3b
MS
10402006-01-04 Michael Snyder <msnyder@redhat.com>
1041
1042 Checkpoint/Restart for Linux.
1043 * linux-nat.c: Add support for debugging multiple forks.
1044 Add #include for linux-fork.h (interface spec).
1045 (super_mourn_inferior): New function pointer.
1046 (child_mourn_inferior): New function / target method.
1047 (linux_target): Claim to_mourn_inferior method pointer.
1048 (child_follow_fork): Call interface to linux-fork, conditionally
1049 add new fork processes to list of debugged processes.
1050 (kill_inferior): Use interface to linux-fork to kill
1051 multiple processes.
1052
1053 * linux-fork.h: New file.
1054 * linux-fork.c: New file. Support for debugging multiple forks
1055 of the same program. Support for checkpoint and restart commands.
1056
1057 * infrun.c (nullify_last_target_wait_ptid): New function.
1058
1059 * Makefile.in: Add linux-fork.
1060 * config/*/linux.mh: Add linux-fork.
1061 * NEWS: Mention new functionality.
1062
f98ce7c2
PH
10632006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
1064
1065 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
1066 Change uses of "illegal" to "invalid".
1067
52ce6436
PH
10682006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
1069
1070 * ada-exp.y: Considerable reorganization to move functionality
1071 from ada-lex.l to here, where it is logically more appropriate.
1072 The original reason, however, was to prevent premature name
1073 lookups for selector names in record aggregates.
1074 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
1075 NAME for all of these.
1076 (VAR): New artificial token to clarify precedence rules.
1077 (OTHERS): New lexeme.
1078 (empty_stoken): New symbol.
1079 (%union): Remove ssym, voidval.
1080 (%type): Remove <voidval> type declarations.
1081 (syntax definitions): Add aggregates.
1082 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
1083 Rename some non-terminals to be closer to reference manual usage.
1084 Tighten up expression syntax to disallow certain non-Ada
1085 constructions such as X and then Y or else Z.
1086 (ada_parse): Remove initialization of left_block_context.
1087 (write_var_from_name): Remove.
1088 (write_var_or_type): New function, containing previous code from
1089 defunct write_var_from_name and name_lookup.
1090 (block_lookup): New function, moved from ada-lex.l
1091 (select_possible_type_sym): New function, factored out of
1092 name_lookup, which used to be in ada-lex.l.
1093 (find_primitive_type): Ditto.
1094 (chop_selector): Ditto.
1095 (write_ambiguous_var): New function, factored out of defunct
1096 write_var_from_name.
1097 (write_selectors): New function.
1098 (write_name_assoc): New function.
1099 (write_exp_op_with_string): New function.
1100
1101 * ada-lex.l (processId): Change interface to return stoken.
1102 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
1103 (block_lookup, name_lookup): Remove. Functionality moved to
1104 ada-exp.y.
1105 (state IN_STRING): Remove.
1106 (rules): Handle string escapes in processString.
1107 Add 'others' token.
1108 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
1109 yylval.sval (as simple strings).
1110 All name look-ups now handled in ada-exp.y.
1111 Introduce "::" (COLONCOLON) token and return as separate token.
1112 (processId): Change return convention. Comment.
1113 Leave leading "'" in place.
1114 (processString): New function.
1115 (find_dot_all): Add note to comment.
1116 Fix problem that allowed match only at the end.
1117
1118 * ada-lang.c: Introduce aggregates.
1119 (find_struct_field): Add new parameter to count fields skipped, and
1120 allow other output parameters to be NULL.
1121 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
1122 new find_struct_field.
1123 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
1124 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
1125 (num_component_specs, assign_component, assign_aggregate):
1126 (aggregate_assign_from_choices,aggregate_assign_positional)
1127 (aggregate_assign_others,add_component_interval):
1128 New functions.
1129 (ada_evaluate_subexp): Declare.
1130 Add aggregate-related operators.
1131 (ada_forward_operator_length): Declare.
1132 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
1133 Consolidate Ada operators, using ada_forward_operator_length.
1134 (ada_search_struct_field): Search in forward order.
1135 (ADA_OPERATORS): Add new aggregate operators.
1136 (ada_operator_length, ada_op_name, ada_forward_operator_length)
1137 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
1138 operators and OP_NAME.
1139 (ada_type_of_array): Use longest_to_int.
1140 (value_assign_to_component): New function.
1141 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
1142 Add OP_NAME case.
1143 (ada_forward_operator_length, ada_dump_subexp_body):
1144 Add OP_STRING case.
1145
1146 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
1147 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
1148
529cad9c
PH
11492006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
1150
1151 * ada-lang.c (process_raise_exception_name): Remove extraneous
1152 definition from unsubmitted code.
1153
1154 (is_lower_alphanum): New function.
1155 (ada_decode): Add support for decoding protected object subprograms
1156 and entries, and of entities declared inside protected object
1157 subprograms.
1158 Also add missing handling for__{DIGITS}+ suffixes.
1159 Allow '$<digits>' as valid overloading suffix.
1160 (is_name_suffix): Add handling for protected type entriy suffixes.
1161 Also add support for protected type subprogram suffixes, but keep
1162 it commented out for now, as there is an ambiguity between these
1163 entities and other internally generated entities.
1164 Allow '$<digits>' as valid overloading suffix.
1165 (is_valid_name_for_wild_match): New function.
1166 (wild_match): Add an exra level of verification of the entity name
1167 before declaring it a match for the given pattern.
1168
1169 (ada_type_of_array, ada_evaluate_subexp): Use more proper
1170 longest_to_int rather than cast.
1171
1172 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
1173
1174 (ada_coerce_to_simple_array): Call check_size to make sure
1175 that the object size is reasonable.
1176
1177 (ada_value_primitive_packed_val): Use correct location in target
1178 buffer for extracting packed record fields that are themselves records.
1179
1180 (add_defn_to_vec): Do not try to replace a stub type by its full
1181 type. Avoids a potential infinite loop.
1182
1183 (ada_lookup_symbol): Move return incorrectly placed return statement,
1184 causing a loop that should be scanning all object files to only
1185 scan the first one.
1186
1187 (ada_tag_name_2): New function.
1188 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
1189 use alternative representation.
1190
1191 (ada_find_renaming_symbol): Strip the function name suffix when
1192 computing the XR type name.
1193
1194 (ada_to_fixed_type): Try determining the tag only if we have the
1195 object's address.
1196 (to_fixed_array_type): Add comments.
1197
1198 (ada_check_typedef): Replace expression checking whether the given
1199 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
1200 consistent.
1201
1202 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
1203 '$' in addition to '.' for runtime auxiliary function name suffixes.
1204 See changes to ada_decode above.
1205
1206 (struct task_control_block): Add field called_task. (This change is
1207 to keep synchronized with our local sources; it does not affect the
1208 public version yet.)
1209
1210 * ada-typeprint.c (ada_print_type): Use int_string for printing
1211 modulus of modular type.
1212
1213 (print_range): Trivial editorial comment fix.
1214
1215 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
1216 double quote in string.
1217
9b799fe6
JB
12182006-01-01 Joel Brobecker <brobecker@adacore.com>
1219
1220 * top.c: Add 2006 to list of copyright years in file header.
1221
0bee0712
JB
12222006-01-01 Joel Brobecker <brobecker@adacore.com>
1223
1224 * top.c (print_gdb_version): Update copyright year to 2006.
1225
13c763f4
JB
12262006-01-01 Roger Sayle <roger@eyesopen.com>
1227 Elena Zannoni <ezannoni@redhat.com>
1228
1229 PR symtab/1651
1230 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
1231 for NULL before assigning this_symtab_psymtab->objfile to objfile.
1232 (scan_xcoff_symtab): Initialize next_symbol_text_func.
1233 (Committed by Jim Blandy)
1234
e50f0da1 1235For older changes see ChangeLog-2005.
c906108c
SS
1236\f
1237Local Variables:
1238mode: change-log
1239left-margin: 8
1240fill-column: 74
1241version-control: never
1242End:
This page took 1.052526 seconds and 4 git commands to generate.