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