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