PR binutils/2584
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bc0c849e
MK
12006-04-25 Mark Kettenis <kettenis@gnu.org>
2
3 From Masaki MURANAKA <monaka@monami-software.com>:
4 * mips-mdebug-tdep.c (mips_mdebug_frame_prev_register): Change
5 type of last argument to `gdb_byte *'
6
5f1fb6dc
JB
72006-04-25 Jim Blandy <jimb@codesourcery.com>
8
9 Add support for 'target remote |' on MinGW.
10 * ser-mingw.c (struct pipe_state): New structure.
11 (make_pipe_state, free_pipe_state, cleanup_pipe_state)
12 (pipe_windows_open, pipe_windows_close, pipe_windows_read)
13 (pipe_windows_write, pipe_wait_handle): New functions.
14 (_initialize_ser_windows): Register a "pipe" interface based on
15 them.
16
c3e2b812
DJ
172006-04-24 Daniel Jacobowitz <dan@codesourcery.com>
18
19 * ser-mingw.c: Include <conio.h>.
20 (struct ser_console_state, struct net_windows_state): Add exit_select,
21 have_stopped, thread.
22 (pipe_select_thread, console_select_thread)
23 (net_windows_select_thread): Don't create a local state copy or
24 close stop_select. Exit on exit_select instead of stop_select. Set
25 have_stopped.
26 (console_select_thread): Don't report control keypresses as pending
27 input.
28 (pipe_select_thread): Allow stop_select to interrupt sleeping.
29 (set_console_wait_handle): Create exit_select and have_stopped.
30 Save the thread handle. Check _kbhit before starting a thread.
31 (ser_console_done_wait_handle): New.
32 (ser_console_close): Close new handles. Wait for the thread to
33 exit.
34 (new_windows_select_thread): Assert that an event occurred.
35 (net_windows_wait_handle): Check for pending input before starting
36 a thread.
37 (net_windows_done_wait_handle): New.
38 (net_windows_open): Create exit_select and have_stopped.
39 Save the thread handle.
40 (net_windows_close): Close new handles. Wait for the thread to
41 exit.
42 (_intiialize_ser_windows): Register done_wait_handle methods.
43
44 * serial.c [USE_WIN32API] (serial_done_wait_handle): New.
45 * serial.h [USE_WIN32API] (struct serial_ops): Add done_wait_handle.
46 [USE_WIN32API] (serial_done_wait_handle): New prototype.
47 * mingw-hdep.c (gdb_select): Use serial_done_wait_handle.
48
b8eb021a
AS
492006-04-23 Andreas Schwab <schwab@suse.de>
50
51 * rs6000-tdep.c: Include "reggroups.h" only once.
52 * Makefile.in (rs6000-tdep.o): Update dependencies.
53
4f1520fb
FR
542006-04-21 Frederic Riss <frederic.riss@st.com>
55
56 * dwarf2read.c (dwarf2_start_subfile): Change prototype to accept
57 compilation directory as last argument.
58 Always pass comp_dir as second argument to start_subfile and prepend
59 dirname to the filename when necessary.
60 Remove now superfluous search for pre-existing subfile.
61 (dwarf_decode_lines): Pass the compilation directory to
62 dwarf2_start_subfile.
63
0271fba4
MS
642006-04-20 Michael Snyder <msnyder@redhat.com>
65
66 * 2006-03-22 Jim Blandy <jimb@redhat.com>
67 Add support for the Renesas M32C and M16C.
68
69 * configure.tgt (m32c-*-*): New entry.
70 * config/m32c/m32c.mt: New file.
71 * m32c-tdep.c: New file.
72 * Makefile.in (elf_m32c_h): New variable.
73 (m32c-tdep.o): New rule.
74 * NEWS: Mention new target.
75 * MAINTAINERS: Designate Jim Blandy as responsible maintainer.
76
cfde0993
MS
772006-04-20 Michael Snyder <msnyder@redhat.com>
78
79 * remote.c: Fix spelling error in comment.
80
cba5fab9
DJ
812006-04-20 Daniel Jacobowitz <dan@codesourcery.com>
82
83 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_prev_register):
84 Correct type of VALUEP. Reported by Jean-Rene Peulve
85 <jr.peulve@wanadoo.fr>.
86
cbba9205
KI
872006-04-19 Masaki Muranaka <monaka@monami-software.com>
88
89 * m32r-rom.c: On MinGW, include winsock.h instead of sys/types.h,
90 netdb.h, netinet/in.h.
91 (m32r_upload_command); Add calls WSAStartup().
92 * remote-m32r-sdi.c: On MinGW, include winsock.h instead of
93 netinet/in.h.
94
8181d85f
DJ
952006-04-18 Daniel Jacobowitz <dan@codesourcery.com>
96
97 * breakpoint.c (deprecated_read_memory_nobpt): Update to use
98 shadow_len.
99 (insert_bp_location, reattach_breakpoints, remove_breakpoint)
100 (delete_breakpoint): Update calls to changed methods.
101 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
102 (single_step_breakpoints, insert_single_step_breakpoint)
103 (remove_single_step_breakpoints): New.
104 * breakpoint.h (struct bp_target_info): New.
105 (struct bp_location): Replace shadow_contents with
106 target_info and overlay_target_info.
107 (deprecated_insert_raw_breakpoint, deprecated_remove_raw_breakpoint)
108 (insert_single_step_breakpoint, remove_single_step_breakpoints): New
109 prototypes.
110 * gdbarch.sh: Forward declare struct bp_target_info in gdbarch.h.
111 (memory_insert_breakpoint, memory_remove_breakpoint): Update second
112 argument.
113 * mem-break.c (default_memory_insert_breakpoint): Update. Set
114 placed_address, placed_size, and shadow_len.
115 (default_memory_remove_breakpoint): Update. Don't use
116 BREAKPOINT_FROM_PC.
117 (memory_insert_breakpoint, memory_remove_breakpoint): Update.
118 * target.c (update_current_target): Update prototypes for changed
119 functions.
120 (debug_to_insert_breakpoint, debug_to_remove_breakpoint)
121 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint):
122 Update.
123 * target.h: Forward declare struct bp_target_info.
124 (struct target_ops): Use a bp_target_info argument for
125 to_insert_breakpoint, to_remove_breakpoint,
126 to_insert_hw_breakpoint, and to_remove_hw_breakpoint.
127 (target_insert_breakpoint, target_remove_breakpoint)
128 (target_insert_hw_breakpoint, target_remove_hw_breakpoint)
129 (memory_insert_breakpoint, memory_remove_breakpoint)
130 (default_memory_insert_breakpoint, default_memory_remove_breakpoint):
131 Update.
132 * config/i386/nm-i386.h: Forward declare struct bp_target_info.
133 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): Update.
134 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Likewise.
135
136 * gdbarch.c, gdbarch.h: Regenerated.
137
138 * alpha-tdep.c (alpha_software_single_step): Use
139 insert_single_step_breakpoint and remove_single_step_breakpoints.
140 Remove unused statics.
141 * arm-tdep.c (arm_software_single_step): Likewise. Add a note.
142 * cris-tdep.c (cris_software_single_step): Likewise.
143 * mips-tdep.c (mips_software_single_step): Likewise.
144 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
145 * sparc-tdep.c (sparc_software_single_step): Likewise.
146 * wince.c (struct thread_info_struct): Remove step_prev.
147 (undoSStep): Use remove_single_step_breakpoints.
148 (wince_software_single_step): Use insert_single_step_breakpoint.
149
150 * corelow.c (ignore): Remove unneeded prototype. Update arguments.
151 * exec.c (ignore): Likewise.
152 * sol-thread.c (ignore): Likewise.
153
154 * procfs.c (dbx_link_shadow_contents): Delete.
155 (dbx_link_bpt): New.
156 (procfs_mourn_inferior): Remove it if necessary.
157 (remove_dbx_link_breakpoint): Use it.
158 (insert_dbx_link_bpt_in_file): Set it.
159 (procfs_init_inferior): Don't update dbx_link_bpt_addr.
160 * rs6000-nat.c (exec_one_dummy_insn): Use
161 deprecated_insert_raw_breakpoint and
162 deprecated_remove_raw_breakpoint.
163 * solib-irix.c (shadow_contents, breakpoint_addr): Delete.
164 (base_breakpoint): New.
165 (disable_break): Use it.
166 (enable_break): Set it.
167
168 * i386-nat.c (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint):
169 Update.
170 * ia64-tdep.c (ia64_memory_insert_breakpoint)
171 (ia64_memory_remove_breakpoint): Likewise.
172 * m32r-tdep.c (m32r_memory_insert_breakpoint)
173 (m32r_memory_remove_breakpoint): Likewise.
174 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
175 Likewise. Remove unnecessary prototypes. Use placed_address
176 and placed_size. Removed useless read from memory.
177 * nto-procfs.c (procfs_insert_breakpoint)
178 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
179 (procfs_remove_hw_breakpoint): Update.
180 * ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
181 * ocd.h (ocd_insert_breakpoint, ocd_remove_breakpoint): Likewise.
182 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
183 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Likewise.
184 * remote-e7000.c (e7000_insert_breakpoint)
185 (e7000_remove_breakpoint): Likewise.
186 * remote-m32r-sdi.c (m32r_insert_breakpoint)
187 (m32r_remove_breakpoint): Likewise.
188 * remote-mips.c (mips_insert_breakpoint)
189 (mips_remove_breakpoint): Likewise.
190 * remote-rdp.c (remote_rdp_insert_breakpoint)
191 (remote_rdp_remove_breakpoint): Likewise.
192 (rdp_step): Use deprecated_insert_raw_breakpoint and
193 deprecated_remove_raw_breakpoint.
194 * remote-sds.c (sds_insert_breakpoint, sds_remove_breakpoint):
195 Update.
196 * remote-sim.c (gdbsim_insert_breakpoint, gdbsim_remove_breakpoint):
197 Delete.
198 (init_gdbsim_ops): Use memory_insert_breakpoint and
199 memory_remove_breakpoint.
200 * remote-st.c (st2000_insert_breakpoint)
201 (st2000_remove_breakpoint): Update. Remove unused
202 BREAKPOINT_FROM_PC.
203 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
204 Update. Use placed_address and placed_size.
205 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Likewise.
206
01d3a6ce
DJ
2072006-04-12 Daniel Jacobowitz <dan@codesourcery.com>
208
209 * remote.c (extended_remote_restart): Pass the correct length
210 to getpkt.
211
2821caf1
JB
2122006-04-11 Jim Blandy <jimb@codesourcery.com>
213
214 * serial.c (serial_open): Check for special cases at the front of
215 the "device" name before scanning for the ':' that would indicate
216 an IP-based connection.
217
02c5aecd
CF
2182006-04-10 Christopher Faylor <cgf@timesys.com>
219
220 * win32-nat.c (open_symbol_file_object): New function.
221 (in_dynsym_resolve_code): Ditto.
222 (init_win32_ops): Fill in fields which ought not to be NULL.
223
cb832706
CF
2242006-04-10 Christopher Faylor <cgf@timesys.com>
225
226 * win32-nat.c (do_win32_fetch_inferior_registers): Don't do anything
227 with saved context if __COPY_CONTEXT_SIZE is not defined.
228 (handle_output_debug_string): Ditto.
229
03926e1f
DJ
2302006-04-10 Daniel Jacobowitz <dan@codesourcery.com>
231
232 * arm-linux-tdep.c (arm_linux_extract_return_value): Use gdb_byte.
233
b2a0b9b2
DM
2342006-04-09 David S. Miller <davem@sunset.davemloft.net>
235
236 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Append dwarf2
237 frame sniffer.
238 * sparc-tdep.c (sparc32_gdbarch_init): Make sure to call
239 dwarf2_frame_set_init_reg() before gdbarch_init_osabi() so
240 that the latter can override.
241 * Makefile.in (sparc64-linux-tdep.o): Update dependencies.
242
ee1b3323
UW
2432006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
244
245 * s390-tdep.c (struct s390_prologue_data): New field 'stack'.
246 (s390_store): Call pv_area_store to track stack slots.
247 (s390_load): Call pv_area_fetch to track stack slots.
248 (s390_check_for_saved): New function.
249 (s390_analyze_prologue): Call pv_area_scan. Allocate and free stack.
250
3fc46200
UW
2512006-04-09 Ulrich Weigand <uweigand@de.ibm.com>
252
253 * Makefile.in (s390-tdep.o): Add dependency on $(prologue_value_h).
254 * s390-tdep.c: Include "prologue-value.h".
255 (struct prologue_value): Remove.
256 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
257 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
258 pv_logical_and, pv_is_identical, pv_is_register): Remove.
259 (compute_x_addr): Remove, replace by ...
260 (s390_addr): ... this new function.
261 (struct s390_prologue_data): Use pv_t instead of prologue_value.
262 (s390_store, s390_load): Likewise.
263 (s390_prologue_frame_unwind_cache): Likewise.
264 (s390_analyze_prologue): Likewise. Also, simplify and combine
265 several conditional statements.
266
d750b939
JB
2672006-04-08 Jim Blandy <jimb@codesourcery.com>
268
269 * Makefile.in (COMMON_OBS): List prologue-value.o. (Omitted from
270 last patch.)
271
0b4294d3
DM
2722006-04-08 David S. Miller <davem@sunset.davemloft.net>
273
274 * sparc-linux-tdep.c (sparc32_linux_step_trap): New.
275 (sparc32_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
276 (sparc32_linux_core_gregset,
277 sparc32_linux_supply_core_gregset,
278 sparc32_linux_collect_core_gregset,
279 sparc32_linux_supply_core_fpregset,
280 sparc32_linux_collect_core_fpregset): New.
281 (sparc32_linux_init_abi): Register them with generic sparc
282 core regset infrastructure.
0b4294d3
DM
283 * sparc64-linux-tdep.c (sparc64_linux_step_trap): New.
284 (sparc64_linux_init_abi): Hook it into tdep->step_trap.
07c5f590
DM
285 (sparc64_linux_core_gregset,
286 sparc64_linux_supply_core_gregset,
287 sparc64_linux_collect_core_gregset,
288 sparc64_linux_supply_core_fpregset,
289 sparc64_linux_collect_core_fpregset): New.
290 (sparc64_linux_init_abi): Register them with generic sparc
291 core regset infrastructure.
0b4294d3
DM
292 * Makefile.in: Update dependencies.
293
9c0dd46b
DM
2942006-04-07 David S. Miller <davem@sunset.davemloft.net>
295
296 * linux-nat.c (linux_nat_thread_alive): Handle targets that
297 do not implement PTRACE_PEEKUSER.
298
670aa98f
DJ
2992006-04-07 Daniel Jacobowitz <dan@codesourcery.com>
300
301 * remote.c (remote_wait): Convert warning to error before
302 parsing corrupt packets.
303
e28493f2
AS
3042006-04-07 Andrew Stubbs <andrew.stubbs@st.com>
305
306 * cli/cli-script.c (struct user_args): Add command field.
307 (arg_cleanup): Free command string.
308 (setup_user_args): Copy the command line before relying on it.
309
7f198e01
JB
3102006-04-06 Joel Brobecker <brobecker@adacore.com>
311
312 * breakpoint.c (_initialize_breakpoint): Add "del" as an alias
313 of the "delete" command.
314
c9f7217e
RC
3152006-04-06 Randolph Chung <tausq@debian.org>
316
317 * MAINTAINERS (Patch champions): Add myself.
318
d993720d
AS
3192006-04-05 Andreas Schwab <schwab@suse.de>
320
321 * Makefile.in: Update dependencies.
322
f5a9b87d
DM
3232006-04-05 David S. Miller <davem@sunset.davemloft.net>
324
325 * sparc-tdep.c (sparc32_dwarf2_frame_init_reg): New.
326 (sparc32_gdbarch_init): Pass it to dwarf2_frame_set_init_reg.
327 * Makefile.in (sparc-tdep.o): Update dependencies.
80f9e3aa
DM
328 * sparc-linux-tdep.c (sparc32_linux_sigframe_init): Pull register
329 window out of the correct stack frame.
330 * sparc64-linux-tdep.c (sparc64_linux_sigframe_init): Likewise.
aff37fc1
DM
331 * dwarf2-frame.c (dwarf2_frame_ops init_reg): Add "next_frame"
332 argument.
333 (dwarf2_frame_default_init_reg): Likewise.
334 (dwarf2_frame_set_init_reg): Update init_reg arg.
335 (dwarf2_frame_init_reg): Take "next_frame" and pass it to
336 ops->init_reg().
337 (dwarf2_frame_cache): Pass next_frame to dwarf2_frame_init_reg.
338 * dwarf2-frame.h (dwarf2-frame_set_init_reg): Update declaration.
339 * cris-tdep.c (cris_dwarf2_frame_init_reg): Add next_frame arg.
340 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
341 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
342 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
343 * sparc-tdep.c (sparc32_struct_return_from_sym): New function.
344 (sparc32_frame_cache): Call it.
345 (sparc32_dwarf2_struct_return_p): New function.
346 (sparc_dwarf2_frame_init_reg): Use it to determine if the function
347 returns a structure and thus we have to indicate the return PC and
348 NPC are 4 bytes later than usual.
faea95b1
DM
349 * sparc-linux-tdep.c (sparc32_linux_init_abi): Append
350 dwarf2 frame sniffer.
351 * Makefile.in (sparc-linux-tdep.o): Update dependencies.
f5a9b87d 352
75e192e6
DM
3532006-04-04 David S. Miller <davem@davemloft.net>
354
355 * config/linux.mh (NATDEPFILES): Remove sparc-sol2-nat.o
356 * config/linux64.h (NATDEPFILES): Likewise
357 * sparc-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
358 fill_fpregset): New.
359 * sparc64-linux-nat.c (supply_gregset, supply_fpregset, fill_gregset,
360 fill_fpregset): New.
0a59b3af
DM
361 * Makefile.in (sparc-linux-nat.o, sparc64-linux-nat.o): Update for
362 new includes.
363
dbcd679b
AS
3642006-04-04 Andreas Schwab <schwab@suse.de>
365
366 * Makefile.in (elf_common_h): Define.
367
357d3800
AS
3682006-04-03 Andrew Stubbs <andrew.stubbs@st.com>
369
370 * sh-tdep.c (sh_dwarf2_frame_init_reg): New function.
371 (sh_gdbarch_init): Call dwarf2_frame_set_init_reg().
372
d3c139e9
AS
3732006-03-31 Andrew Stubbs <andrew.stubbs@st.com>
374
375 * value.h (struct internalvar): Add field 'endian'.
376 * value.c (lookup_internalvar): Initialise endian.
377 (value_of_internalvar): Flip the endian of built-in types if required.
378 (set_internalvar): Set the endian.
379 (show_convenience): Access the value through value_of_internalvar().
380
bb858e6a
DJ
3812006-03-30 Vladimir Prus <ghost@cs.msu.su>
382
383 * remote.c (watchpoint_to_Z_packet): Use values of Z_packet_type enum
384 instead of hardcoded integer literals.
385
61d9b92f
DJ
3862006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
387
388 * cli/cli-script.c (insert_args): Handle NULL user_args.
389
f7060f85
DJ
3902006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
391
392 * arm-tdep.c (thumb_scan_prologue): Don't try to analyze
393 the function at zero if we have no symbols.
394
295bf0ff
DJ
3952006-03-30 Adrien Kunysz <a_kunysz@yahoo.com>
396
397 * i386-stub.c (getpacket): Fix array overflow.
398 * m32r-stub.c (getpacket): Likewise.
399 * m68k-stub.c (getpacket): Likewise.
400 * sh-stub.c (getpacket): Likewise.
401 * sparc-stub.c (getpacket): Likewise.
402
7abfe014
DJ
4032006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
404
405 * frame.h (set_current_sal_from_frame): New prototype.
406 * stack.c (set_current_sal_from_frame): Make global.
407 * infrun.c (normal_stop): Call set_current_sal_from_frame.
408
0ec9a092
DJ
4092006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
410
411 * linux-thread-db.c: Include "linux-nat.h".
412 (check_for_thread_db): New function, split out from
413 thread_db_new_objfile. Remove dead check for active
414 thread_db on inapplicable targets.
415 (thread_db_new_objfile): Call check_for_thread_db.
416 * Makefile.in (linux-thread-db.o): Update.
417 * linux-nat.c (child_post_attach): Call check_for_thread_db.
418 (linux_child_post_startup_inferior): Likewise.
419 (lin_lwp_attach_lwp): Call target_post_attach instead of
420 child_post_attach.
421 * linux-nat.h (check_for_thread_db): New prototype.
422
6d820c5c
DJ
4232006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
424
425 * remote.c (struct remote_state): Add BUF and BUF_SIZE.
426 (init_remote_state): Initialize the new fields.
427 (get_memory_packet_size): Update BUF and BUF_SIZE if necessary.
428 (set_thread, remote_thread_alive, remote_unpack_thread_info_response)
429 (remote_get_threadinfo, parse_threadlist_response)
430 (remote_get_threadlist, remote_current_thread, remote_threads_info)
431 (remote_threads_extra_info, extended_remote_restart, get_offsets)
432 (remote_check_symbols, remote_open_1, remote_detach)
433 (remove_vcont_probe, remote_vcont_resume, remote_resume)
434 (remote_wait, remote_async_wait, fetch_register_using_p)
435 (remote_fetch_registers, store_register_using_P)
436 (remote_store_registers, check_binary_download, remote_write_bytes)
437 (remote_read_bytes, remote_insert_breakpoint)
438 (remote_remove_breakpoint, remote_insert_watchpoint)
439 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
440 (remote_remove_hw_breakpoint, compare_sections_command)
441 (remote_xfer_partial, remote_rcmd, packet_command)
442 (remote_get_thread_local_address): Use the global incoming buffer
443 instead of alloca or xmalloc. Limit outgoing packets to
444 rs->remote_packet_size and incoming packets to rs->buf_size.
445 Update calls to getpkt and remote_send.
446 (remote_send): Take arguments by reference.
447 (putpkt_binary): Eliminate junkbuf. Use skip_frame.
448 (skip_frame): New function.
449 (read_frame): Take arguments by reference. Expand the packet
450 buffer instead of issuing an error.
451 (getpkt, getpkt_sane): Take arguments by reference.
452 * remote.h (getpkt): Update prototype and doc.
453 * tracepoint.c (remote_get_noisy_reply): Take arguments by
454 reference.
455 (target_buf): Change from array to pointer.
456 (target_buf_size): New variable.
457 (remote_set_transparent_ranges): Update call to getpkt.
458 (trace_start_command, trace_stop_command, trace_status_command):
459 Update calls to remote_get_noisy_reply.
460 (finish_tfind_command): Take arguments by reference.
461 (trace_find_command, trace_find_pc_command)
462 (trace_find_tracepoint_command, trace_find_line_command):
463 (trace_find_range_command, trace_find_outside_command): Update
464 calls to finish_tfind_command.
465 (_initialize_tracepoint): Initialize target_buf_size and target_buf.
466
3d8dcac6
RC
4672005-03-30 Randolph Chung <tausq@debian.org>
468
469 * hppa-linux-tdep.c: Include regset.h.
470 (GR_REGNUM, TR_REGNUM, greg_map): New.
471 (hppa_linux_supply_regset, hppa_linux_supply_fpregset): New.
472 (hppa_linux_regset, hppa_linux_fpregset): New.
473 (hppa_linux_regset_from_core_section): New.
474 (hppa_linux_init_abi): Set regset_from_core_section.
475 (_initialize_hppa_linux_tdep): Register osabi handler for
476 64-bit Linux.
477 * Makefile.in (hppa-linux-tdep.o): Update dependencies.
478 * config/pa/linux.mh: Stop using core-regset.o
479
29d375ac
RC
4802006-03-30 Randolph Chung <tausq@debian.org>
481
482 * hppa-tdep.c (hppa_find_unwind_entry_in_block): New.
483 (hppa_frame_cache): Use new function to find unwind entry.
484 (hppa_frame_this_id): Likewise.
485 (hppa_frame_unwind_sniffer): Likewise.
486
f4267320
DJ
4872006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
488
489 * NEWS: Mention the removal of NLM.
490
4912006-03-29 Steve Ellcey <sje@cup.hp.com>
492
493 * Makefile.in (nlm): Remove target.
494 * configure.tgt (i[34567]86-*-netware*): Do not set build_nlm.
495 * configure.ac: Remove AC_CONFIG_SUBDIRS of nlm.
496 * configure: Regenerate.
497 * doc/gdb.texinfo: Remove gdbserve.nlm documentation.
498 * nlm: Remove directory.
499
698ba934
DJ
5002006-03-29 Daniel Jacobowitz <dan@codesourcery.com>
501
502 * Makefile.in (utils.o): Update.
503 * top.c (in_user_command): New.
504 (command_line_input): Use input_from_terminal_p.
505 (input_from_terminal_p): Don't check caution. Handle
506 stdin == NULL for Insight.
507 * top.h (in_user_command, caution): New declarations.
508 * utils.c: Include "top.h".
509 (query, defaulted_query): Check caution here. Move the call
510 to input_from_terminal_p higher.
511 * cli/cli-script.c (do_restore_user_call_depth): Only decrement
512 the depth. Update in_user_command if necessary.
513 (execute_user_command): Don't clobber old_chain. Set
514 in_user_command. Let do_restore_user_call_depth handle
515 user_call_depth.
516 (read_command_lines): Check whether to prompt before calling
517 Insight hooks.
518 * tui/tui-hooks.c (tui_query_hook): Remove newly unnecessary
519 input_from_terminal_p check.
520
2f00de94
UW
5212006-03-29 Ulrich Weigand <uweigand@de.ibm.com>
522
523 * s390-nat.c (s390_insert_watchpoint): Add missing argument.
524 (s390_remove_watchpoint): Likewise.
525
7d30c22d
JB
5262006-03-28 Jim Blandy <jimb@codesourcery.com>
527
528 * prologue-value.c, prologue-value.h: New files.
529 * Makefile.in (prologue_value_h): New variable.
530 (HFILES_NO_SRCDIR): List prologue-value.h.
531 (SFILES): List prologue-value.c.
532 (COMMON_OBS): List prologue-value.o.
533 (prologue-value.o): New rule.
534
05c6a9a1
MS
5352006-03-27 Michael Snyder <msnyder@redhat.com>
536
537 * xstormy16-tdep.c (xstormy16_return_value, xstormy16_push_dummy_call,
538 xstormy16_pointer_to_address, xstormy16_address_to_pointer,
539 xstormy16_frame_prev_register): Change void* to gdb_byte*.
540 (xstormy16_push_dummy_call): Add block-local char* val,
541 to avoid type conflict with outer scope variable.
542
4e6cbc38
AS
5432006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
544
545 * sh-tdep.c (sh_gdbarch_init): Add missing architectures.
546
75483fbe
NR
5472006-03-27 Nick Roberts <nickrob@snap.net.nz>
548
549 * varobj.c (c_name_of_child, c_value_of_child): Allow non-zero
550 offsets for languages like Fortran.
551
97ce3a05
RC
5522006-03-26 Randolph Chung <tausq@debian.org>
553
554 * config/pa/hppa64.mt: Use HPUX version of the tm file.
555
be85b69f
NR
5562006-03-25 Nick Roberts <nickrob@snap.net.nz>
557
558 * mi/gdb-mi.el (gdbmi-send): Improve regexp to repeat commands.
559 Try to deal with continuation line.
560 (gdbmi, gdbmi-prompt1, gud-gdbmi-marker-filter): Update to new
561 variable names.
562 (gdb-break-list-regexp, gdb-stack-list-frames-regexp):
563 Future proof against new fields being added to MI output.
564 (gdbmi-prompt2, gdb-break-list-handler,gdb-get-source-file)
565 (gdbmi-frame-handler): Update to new variable name
566 gdb-get-buffer-create.
567 (gdbmi-frame-handler): Use hollow-right-triangle for all selected
568 frames which except the innermost (where execution has stopped).
569
7fc4b1a1
RC
5702006-03-24 Randolph Chung <tausq@debian.org>
571
572 * solib-som.c (link_map_start): Don't error out if there is
573 not yet a link map.
574
f973ed9c
DJ
5752006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
576
577 * linux-nat.c (linux_ops_saved): New.
578 (super_mourn_inferior, kill_inferior, threaded, linux_nat_ops)
579 (child_mourn_inferior, child_wait, linux_nat_create_inferior)
580 (linux_nat_fetch_registers, linux_nat_store_registers)
581 (linux_nat_child_post_startup_inferior, init_linux_nat_ops): Delete.
582 (init_lwp_list): Don't set threaded.
583 (add_lwp): Don't modify threaded.
584 (delete_lwp): Don't mention non-threaded mode.
585 (linux_nat_switch_fork): New.
586 (linux_nat_attach): Update inferior_ptid.
587 (linux_nat_wait): Handle num_lwps == 0 at entry. Don't check
588 threaded flag.
589 (linux_nat_kill): Handle pending forks and saved forks.
590 (linux_nat_mourn_inferior): Handle saved forks.
591 (linux_nat_pid_to_str): Don't use the LWP form when there is
592 only one thread.
593 (linux_target): Don't set to_wait, to_kill, or to_mourn_inferior.
594 (linux_nat_add_target): New.
595 (_initialize_linux_nat): Don't initialize the linux native target
596 here.
597 * linux-nat.h (linux_nat_add_target, linux_nat_switch_fork): New
598 prototypes.
599 * linux-fork.c: Include "linux-nat.h".
600 (add_fork): Update initial PID.
601 (fork_load_infrun_state): Call linux_nat_switch_fork.
602 * Makefile.in (linux-fork.o): Update.
603
604 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
605 linux_nat_add_target instead of add_target.
606 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Likewise.
607 * arm-linux-nat.c (_initialize_arm_linux_nat): Likewise.
608 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Likewise.
609 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Likewise.
610 * i386-linux-nat.c (_initialize_i386_linux_nat): Likewise.
611 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Likewise.
612 * m68klinux-nat.c (_initialize_m68k_linux_nat): Likewise.
613 * mips-linux-nat.c (_initialize_mips_linux_nat): Likewise.
614 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Likewise.
615 * s390-nat.c (_initialize_s390_nat): Likewise.
616 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Likewise.
617 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Likewise.
618
791b663b
DJ
6192006-03-24 Daniel Jacobowitz <dan@codesourcery.com>
620
621 * linux-fork.c: Include "gdb_assert.h".
622 (fork_load_infrun_state): Set inferior_ptid and stop_pc here.
623 Update the register cache and selected frame also.
624 (linux_fork_mourn_inferior): Use fork_load_infrun_state. Return
625 to single fork mode if necessary.
626 (linux_fork_context): Remove bits handled by fork_load_infrun_state.
627 * Makefile.in (linux_fork_h): New.
628 (linux-fork.o, linux-nat.o): Update.
629
d311d956
AS
6302006-03-23 Andreas Schwab <schwab@suse.de>
631
632 * config/s390/s390.mh (NATDEPFILES): Add linux-fork.o.
633
a849c9ab
JB
6342006-03-18 Jim Blandy <jimb@codesourcery.com>
635
636 * symtab.h (enum address_class): Doc fix.
637
cf913f37
MS
6382006-03-16 Michael Snyder <msnyder@redhat.com>
639
712e3020 640 * tracepoint.c (tracepoint_save_command): Fix typo in error msg.
88c231eb 641 * target.c (push_target): Fix typo in comment.
94e08568 642 * remote.c (remote_watch_data_address): Fix typo in comment.
cf913f37
MS
643 * i386-tdep.c (i386_push_dummy_call): Fix typo in comment.
644
7c699b81
KB
6452006-03-15 Kevin Buettner <kevinb@redhat.com>
646
647 * frv-linux-tdep.c (gdbcore.h, regcache.h, regset.h, gdb_string.h):
648 Include.
649 (FRV_ELF_NGREG, FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR, FRV_PT_CCCR)
650 (FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0, FRV_PT_GNER1)
651 (FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR, FRV_PT_TBR)
652 (FRV_PT_EXEC_FDPIC_LOADMAP, FRV_PT_INTERP_FDPIC_LOADMAP): Define.
653 (frv_elf_greg_t, frv_elf_gregset_t, frv_elf_fpreg_t)
654 (frv_elf_fpregset_t): Define types.
655 (frv_linux_supply_gregset, frv_linux_supply_fpregset)
656 (frv_linux_regset_from_core_section: New functions.
657 (frv_linux_gregset, frv_linux_fpregset): New static globals.
658 (frv_linux_init_abi): Register the `regset_from_core_section' method.
659 * Makefile.in (frv-linux-tdep.o): Update dependencies.
660 * solib-frv.c (frv_current_sos): Relocate main executable after
661 loading core file.
662 (frv_clear_solib): Clean up space associated with
663 `main_executable_lm_info'.
664 * config/frv/frv.mt (TDEPFILES): Add corelow.o to this list.
665
d37eb719
DJ
6662006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
667
668 * Makefile.in (mips_linux_tdep_h): New.
669 (mpis-linux-nat.o, mips-linux-tdep.o): Update.
670 * mips-linux-nat.c: Include "inferior.h", "mips-linux-tdep.h", and
671 <sys/ptrace.h>.
672 (have_ptrace_regsets, super_fetch_registers, super_store_registers)
673 (mips64_linux_regsets_fetch_registers)
674 (mips64_linux_regsets_store_registers, mips64_linux_fetch_registers)
675 (mips64_linux_store_registers): New.
676 (_initialize_mips_linux_nat): Override to_fetch_registers and
677 to_store_registers.
678 * mips-linux-tdep.h: New file.
679 * mips-linux-tdep.c: Include "mips-linux-tdep.c".
680 (ELF_NGREG, ELF_NFPREG, elf_greg_t, elf_gregset_t, elf_fpreg_t)
681 (elf_fpregset_t, FPR_BASE, PC, CAUSE, BADVADDR, MMHI, MMLO)
682 (FPC_CSR, FPC_EIR, EF_REG0, EF_REG31, EF_LO, EF_HI, EF_CP0_EPC)
683 (EF_CP0_BADVADDR, EF_CP0_STATUS, EF_CP0_CAUSE, EF_SIZE)
684 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, mips64_elf_greg_t)
685 (mips64_elf_gregset_t, mips64_elf_fpreg_t, mips64_elf_fpregset_t)
686 (MIPS64_FPR_BASE, MIPS64_PC, MIPS64_CAUSE, MIPS64_BADVADDR)
687 (MIPS64_MMHI, MIPS64_MMLO, MIPS64_FPC_CSR, MIPS64_FPC_EIR)
688 (MIPS64_EF_REG0, MIPS64_EF_REG31, MIPS64_EF_LO, MIPS64_EF_HI)
689 (MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_STATUS)
690 (MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE): Delete.
691 (supply_32bit_reg): Use gdb_byte.
692 (supply_64bit_reg): New.
693 (mips_supply_gregset, mips_fill_gregset, mips_supply_fpregset)
694 (mips_fill_fpregset, fetch_core_registers, supply_gregset)
695 (fill_gregset, supply_fpregset): Update for renamed types.
696 (mips64_supply_gregset): Use gdb_byte and supply_64bit_reg.
697 (mips64_fill_gregset): Make global. Handle 32-bit register
698 sizes.
699 (mips64_fill_fpregset): Make global. Use gdb_byte. Handle
700 FP regsets properly.
701
9f62d0e2
DJ
7022006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
703
704 * mips-linux-tdep.c (mips_supply_gregset): Renamed from supply_gregset.
705 (mips_fill_gregset): Renamed from fill_gregset.
706 (mips_supply_fpregset): Renamed from supply_fpregset.
707 (mips_fill_fpregset): Renamed from fill_fpregset.
708 (fetch_core_registers): Update calls.
709 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): New
710 functions.
711
26c53e50
DJ
7122006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
713
714 * mips-tdep.c (mips_gdbarch_init): Default 64-bit ELF files to N64.
715
5b652102
DJ
7162006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
717
718 * mips-tdep.c (is_mips16_addr, mips32_next_pc, add_offset_16):
719 Correct arithmetic for 64-bit CORE_ADDR.
720
d05f6826
DJ
7212006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
722
723 * mips-linux-tdep.c: Include "floatformat.h".
724 (mips_linux_init_abi): Use 128-bit long double for N32 and N64.
0a407ead
DJ
725 * mips-tdep.c (mips_n32n64_return_value): Support 128-bit long
726 double.
d05f6826
DJ
727 (print_gp_register_row): Don't print spaces before ignored
728 or floating point registers.
6367c6b1 729 * Makefile.in (mips-linux-tdep.o): Update.
d05f6826 730
3e5af19e
DJ
7312006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
732
733 * mips-mdebug-tdep.c (compare_pdr_entries): Use bfd_get_signed_32
734 for code addresses.
735 (non_heuristic_proc_desc): Likewise.
736
dc60ece8
DJ
7372006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
738
739 * mips-linux-nat.c: Include "gdb_proc_service.h".
740 (PTRACE_GET_THREAD_AREA): Define.
741 (ps_get_thread_area): New.
742 * Makefile.in (mips-linux-nat.o): Update.
743
2f83030f
JB
7442006-03-13 Jim Blandy <jimb@codesourcery.com>
745
746 * MAINTAINERS: Use my work address.
747
56aac7e8 7482006-03-09 Michael Snyder <msnyder@redhat.com>
a9877905 749
56aac7e8
MS
750 * linux-nat.c (kill_inferior): Just call target_mourn_inferior
751 instead of getting tricky for the multi-fork case.
752 * linux-fork.c (linux_fork_killall): Call PT_KILL and waitpid
753 for each fork, and then use init_fork_list to delete them.
a9877905 754
831004b7
AO
7552006-03-08 Alexandre Oliva <aoliva@redhat.com>
756
757 * solib-svr4.c (svr4_current_sos): Move up initialization of
758 l_addr, such that it clearly covers all cases.
759
f1b4b38e
AS
7602006-03-08 Andreas Schwab <schwab@suse.de>
761
762 * ia64-tdep.c (ia64_libunwind_frame_this_id): Adapt use of
763 libunwind_frame_prev_register to use a gdb_byte buffer and
764 extract_unsigned_integer.
765 (ia64_libunwind_sigtramp_frame_prev_register): Likewise.
766
767 * libunwind-frame.c (libunwind_frame_prev_register): Change type
768 of last argument to `gdb_byte *'
769 * libunwind-frame.h: Adjust declaration.
770
f53f0d0b
PB
7712006-03-08 Paul Brook <paul@codesourcery.com>
772
773 * arm-tdep.c (arm_push_dummy_call): Remove stack alignment.
774 (arm_frame_align): New function.
775 (arm_gdbarch_init): Use it.
776
b67fd56f
AC
7772006-03-03 Khem Raj <khem@mvista.com>
778
779 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Use gdb_byte.
780 Committed by Andrew Cagney.
781
a64ae7e0
CV
7822006-03-02 Corinna Vinschen <vinschen@redhat.com>
783
784 * mn10300-tdep.c (mn10300_push_dummy_call): Write breakpoint
785 address to MDR register.
786
9733fc94
DJ
7872006-03-01 Daniel Jacobowitz <dan@codesourcery.com>
788
789 * gdbtypes.c (lookup_struct_elt_type): Correct noerr for recursive
790 calls.
791
4897bfb9
RC
7922006-03-01 Randolph Chung <tausq@debian.org>
793
794 * somread.c (som_symfile_read): Update comment and remove unneeded
795 use of a deprecated variable.
796
6fcecea0
RC
7972006-03-01 Randolph Chung <tausq@debian.org>
798
799 * hppa-tdep.h (unwind_table_entry): Update field names to match HP
800 runtime specification.
801 * hppa-tdep.c (internalize_unwinds, hppa_frame_cache): Likewise.
802 (unwind_command): Likewise.
803
46acf081
RC
8042006-03-01 Randolph Chung <tausq@debian.org>
805
806 * hppa-tdep.c (hppa_frame_cache): Handle Region_Description and
807 Pseudo_SP_Set in unwind record.
808
477e69e8
RC
8092006-03-01 Randolph Chung <tausq@debian.org>
810
811 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support): Use
812 TDEP->is_elf to determine if we are working with a SOM binary.
813 (null_symtab_and_line): Remove unused variable.
814 * config/pa/hppa64.mt: Use tm-hppa.h.
815 * config/pa/tm-hppa64.h: Remove file.
816
848359ac
WZ
8172006-03-01 Wu Zhou <woodzltc@cn.ibm.com>
818
819 * f-typeprint.c (f_type_print_base): Delete the redundant space.
820
f9ec92b6
KB
8212006-02-28 Kevin Buettner <kevinb@redhat.com>
822
823 * Makefile.in (mn10300-linux-tdep.o): Update dependencies.
824 * mn10300-linux-tdep.c (frame.h, trad-frame.h, tramp-frame.h):
825 Include.
826 (am33_linux_sigframe_cache_init): New function.
827 (am33_linux_sigframe, am33_linux_rt_sigframe): New signal frame
828 descriptions.
829 (AM33_SIGCONTEXT_D0, AM33_SIGCONTEXT_D1, AM33_SIGCONTEXT_D2)
830 (AM33_SIGCONTEXT_D3, AM33_SIGCONTEXT_A0, AM33_SIGCONTEXT_A1)
831 (AM33_SIGCONTEXT_A2, AM33_SIGCONTEXT_A3, AM33_SIGCONTEXT_E0)
832 (AM33_SIGCONTEXT_E1, AM33_SIGCONTEXT_E2, AM33_SIGCONTEXT_E3)
833 (AM33_SIGCONTEXT_E4, AM33_SIGCONTEXT_E5, AM33_SIGCONTEXT_E6)
834 (AM33_SIGCONTEXT_E7, AM33_SIGCONTEXT_LAR, AM33_SIGCONTEXT_LIR)
835 (AM33_SIGCONTEXT_MDR, AM33_SIGCONTEXT_MCVF, AM33_SIGCONTEXT_MCRL)
836 (AM33_SIGCONTEXT_MCRH, AM33_SIGCONTEXT_MDRQ, AM33_SIGCONTEXT_SP)
837 (AM33_SIGCONTEXT_EPSW, AM33_SIGCONTEXT_PC, AM33_SIGCONTEXT_FPUCONTEXT):
838 New constants.
839 (am33_linux_init_osabi): Register signal frame unwinders.
840
e92e42f5
KB
8412006-02-28 Kevin Buettner <kevinb@redhat.com>
842
843 * mn10300-tdep.c (mn10300_analyze_prologue): Implement backtrack
844 out of pattern match by saving relevant state. Fix stack size
845 adjustment bug.
846
cc10cae3
AO
8472006-02-28 Alexandre Oliva <aoliva@redhat.com>
848
849 * solib-svr4.h (struct link_map_offsets): Add l_ld_offset and
850 l_ld_size fields.
851 * solib-svr4.c (struct lm_info): Add l_addr field.
852 (LM_ADDR_FROM_LINK_MAP): Renamed from LM_ADDR.
853 (HAS_LM_DYNAMIC_FROM_LINK_MAP): New.
854 (LM_DYNAMIC_FROM_LINK_MAP): New.
855 (LM_ADDR_CHECK): New. Use it instead of LM_ADDR.
856 (svr4_current_sos): Initialize l_addr. Adjust.
857 (svr4_relocate_section_addresses): Adjust.
858 (svr4_ilp32_fetch_link_map_offsets): Define new members.
859 (svr4_lp64_fetch_link_map_offsets): Likewise.
860 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
861 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Likewise.
862 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
863 * Makefile.in (solib-svr4.o): Depend on $(elf_bfd_h).
864
691342f9
DM
8652006-02-26 David S. Miller <davem@sunset.davemloft.net>
866
867 * config/sparc/linux.mt (TDEPFILES): Add sol2-tdep.o.
868 * config/sparc/linux64.mt (TDEPFILES): Likewise.
869
2c387241
AM
8702006-02-27 Alan Modra <amodra@bigpond.net.au>
871
872 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
873 (ppc_linux_remove_watchpoint): Likewise, and args.
874
3597fb82
MK
8752006-02-26 Mark Kettenis <kettenis@gnu.org>
876
877 * i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
878 "soft" interrupts.
879
637d6690
CW
8802006-02-24 Charles Wilson <cygwin@cwilson.fastmail.fm>
881
882 * gdb/defs.h: unconditionally include <fcntl.h>, and
883 ensure that O_BINARY is defined.
884 * gdb/solib.c(solib_open): ensure solib files are opened in
885 binary mode.
886 * gdb/corelow.c: Remove O_BINARY macro definition.
887 * gdb/exec.c: Remove O_BINARY macro definition
888 * gdb/remote-rdp.c: Remove O_BINARY macro definition
889 * gdb/source.c: Remove O_BINARY macro definition
890 * gdb/symfile.c: Remove O_BINARY macro definition
891
9846e541
RC
8922006-02-24 Randolph Chung <tausq@debian.org>
893
894 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Initialize
895 argreg.
896 * solib-som.c (som_solib_remove_inferior_hook): Remove unused
897 function.
898
2a5e440c
WZ
8992006-02-24 Wu Zhou <woodzltc@cn.ibm.com>
900
901 * f-exp.y: Symbol '%' is not used as the modulus operator in
902 Fortran. Delete this from Fortran expression.
903 It is now used by Fortran 90 and later to access the member
904 of derived type. Add this into Fortran expression.
905 * f-valprint.c (f_val_print): Add code to handle TYPE_CODE_STRUCT.
906 Print each elements in the derived type.
907 * f-typeprint.c (print_equivalent_f77_float_type): Add a parameter
908 level into the function definition to do indented printing. And
909 call fprintfi_filtered instead to do indented printing.
910 (f_type_print_base): Replace fprintf_filtered with the indented
911 version (fprintfi_filtered).
912 (f_type_print_base): Call indented print_equivalent_f77_float_type.
913 (f_type_print_base): Add code to handle TYPE_CODE_STRUCT. Print
914 the definition of the derived type.
915
92128691
DJ
9162006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
917
918 * gdb_curses.h: Provide a fallback prototype for tgetnum.
919
a6205f53
DJ
9202006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
921
922 * doublest.h: Conditionalize DOUBLEST on PRINTF_HAS_LONG_DOUBLE
923 also.
924 (DOUBLEST_FORMAT): Rename to DOUBLEST_PRINT_FORMAT.
925 (DOUBLEST_SCAN_FORMAT): New.
926 * ada-lex.l (PRINTF_HAS_LONG_DOUBLE): Remove redefinitions.
927 (processReal): Use DOUBLEST_SCAN_FORMAT.
928 * c-exp.y (parse_number): Likewise.
929 * jv-exp.y (parse_number): Likewise.
930 * objc-exp.y (parse_number): Likewise.
931 * p-exp.y (parse_number): Likewise.
932
0f0b8dcd
DJ
9332006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
934
935 * event-top.c (async_do_nothing, async_disconnect)
936 (async_stop_sig, async_float_handler): Remove duplicated
937 prototypes.
938 (handle_sighup): Guard prototype with SIGHUP.
939 (async_do_nothing): Guard function and prototype with
940 SIGQUIT || SIGHUP.
941 (async_disconnect): Guard prototype with SIGHUP.
942 (async_stop_sig): Guard prototype with STOP_SIGNAL.
943
4e91d01c
DJ
9442006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
945
946 * maint.c (maintenance_dump_me): Remove unnecessary prototype.
947
1e0600be
DJ
9482006-02-23 Daniel Jacobowitz <dan@codesourcery.com>
949
950 * win32-termcap.c (tputs): Return 0.
951
094a342e
MK
9522006-02-21 Mark Kettenis <kettenis@gnu.org>
953
954 * configure.ac: Introduce ---enable-werror, which adds -Werror to
955 the compiler command line. Enabled by default. Disable with
956 --disable-werror.
957 * configure regenerate.
958
74763737
DJ
9592006-02-21 Daniel Jacobowitz <dan@codesourcery.com>
960
961 * elfread.c (elf_symtab_read): Skip symbols which BFD considers
962 special.
963
13d35ae5
AS
9642006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
965
966 * defs.h (directory_switch): Add prototype.
967 * main.c (captured_main): Use directory_switch() instead of
968 directory_command() to add directories from the -d switch.
969 * source.c (directory_switch): New function.
970 (add_path): Use buildargv() to parse spaces in filenames properly.
971 Strip multiple trailing '/' rather than just one.
972
5b96932b
AS
9732006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
974
975 * symfile.c (add_symbol_file_command): Use buildargv(), instead of
976 hand decoding the command line, to allow use of quotes and spaces.
977 (_initialize_symfile): Reorganize the help message for add-symbol-file
978 such that 'help files' shows a better message.
979
a6b0a3f3
AS
9802006-02-21 Andrew Stubbs <andrew.stubbs@st.com>
981
982 * sh-tdep.c (sh_generic_show_regs): Reformat both code and output.
983 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs): Likewise.
984 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs): Likewise.
985 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs): Likewise.
986
17fbb0bd
DJ
9872006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
988
989 * linux-nat.c (lin_thread_get_thread_signals): Default to __SIGRTMIN
990 and __SIGRTMIN + 1.
991
444abaca
DJ
9922006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
993
994 * remote.c: Add an enumeration for configurable remote
995 packets.
996 (remote_protocol_packets, set_remote_protocol_packet_cmd)
997 (show_remote_protocol_packet_cmd): New.
998 (remote_protocol_vcont)
999 (set_remote_protocol_vcont_packet_cmd)
1000 (show_remote_protocol_vcont_packet_cmd)
1001 (remote_protocol_qSymbol)
1002 (set_remote_protocol_qSymbol_packet_cmd)
1003 (show_remote_protocol_qSymbol_packet_cmd)
1004 (remote_protocol_P, set_remote_protocol_P_packet_cmd)
1005 (show_remote_protocol_P_packet_cmd)
1006 (remote_protocol_Z)
1007 (set_remote_protocol_Z_software_bp_packet_cmd)
1008 (show_remote_protocol_Z_software_bp_packet_cmd)
1009 (set_remote_protocol_Z_hardware_bp_packet_cmd)
1010 (show_remote_protocol_Z_hardware_bp_packet_cmd)
1011 (set_remote_protocol_Z_write_wp_packet_cmd)
1012 (show_remote_protocol_Z_write_wp_packet_cmd)
1013 (set_remote_protocol_Z_read_wp_packet_cmd)
1014 (show_remote_protocol_Z_read_wp_packet_cmd)
1015 (set_remote_protocol_Z_access_wp_packet_cmd)
1016 (show_remote_protocol_Z_access_wp_packet_cmd)
1017 (remote_protocol_binary_download)
1018 (set_remote_protocol_binary_download_cmd)
1019 (show_remote_protocol_binary_download_cmd)
1020 (remote_protocol_qPart_auxv)
1021 (set_remote_protocol_qPart_auxv_packet_cmd)
1022 (show_remote_protocol_qPart_auxv_packet_cmd)
1023 (remote_protocol_qGetTLSAddr)
1024 (set_remote_protocol_qGetTLSAddr_packet_cmd)
1025 (show_remote_protocol_qGetTLSAddr_packet_cmd)
1026 (remote_protocol_p)
1027 (set_remote_protocol_p_packet_cmd)
1028 (show_remote_protocol_p_packet_cmd): Delete.
1029
1030 (init_all_packet_configs): Simplify.
1031 (set_remote_protocol_Z_packet_cmd)
1032 (show_remote_protocol_Z_packet_cmd)
1033 (remote_check_symbols, remote_vcont_probe, remote_vcont_resume)
1034 (remote_fetch_registers, remote_prepare_to_store)
1035 (remote_store_registers, check_binary_download)
1036 (remote_write_bytes, remote_insert_breakpoint)
1037 (remote_remove_breakpoint, remote_insert_watchpoint)
1038 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1039 (remote_remove_hw_breakpoint, remote_xfer_partial)
1040 (remote_get_thread_local_address): Update for packet array.
1041 (_initialize_remote): Likewise; also update for common
1042 set/show commands.
1043
3bd72c6f
DJ
10442006-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1045
1046 * symfile.c (place_section): Correct retry logic.
1047
a244bdca
CF
10482006-02-19 Christopher Faylor <cgf@timesys.com>
1049
1050 * win32_nat.c (cygwin_load_start): New variable.
1051 (cygwin_load_end): Ditto.
1052 (have_saved_context): Ditto.
1053 (saved_context): Ditto.
1054 (max_dll_name_len): Delete obsolete variable.
1055 (do_win32_fetch_inferior_registers): Use context saved from cygwin1.dll
1056 if we are in a cygwin signal rather than a windows signal.
1057 (solib_symbols_add): Detect and store beginning and end of cygwin DLL
1058 if dll being loaded is the cygwin DLL.
1059 (register_loaded_dll): Remove calculation of max_dll_name_len.
1060 (win32_clear_solib): Ditto.
1061 (handle_load_dll): Delete obsolete variable. Remove unneeded call to
1062 solib_add.
1063 (handle_output_debug_string): Detect and store signal information sent
1064 by Cygwin here.
1065 (handle_exception): Silently pass on errors in the cygwin DLL. Return
1066 -1 on first pass exception.
1067 (win32_continue): Remove spurious clearing of continue_status.
1068 (get_win32_debug_event): Deal differently first chance exception.
1069
806e23c0
RC
10702006-02-19 Randolph Chung <tausq@debian.org>
1071
1072 * hppa-tdep.c (hppa_in_solib_call_trampoline): Only use if no
1073 unwind entry.
1074
d843c49c
FF
10752006-02-16 Fred Fish <fnf@specifix.com>
1076
1077 * eval.c (evaluate_subexp_standard): For OP_TYPE, return
1078 a non lval value zero, of the appropriate type, when avoiding
1079 side effects.
1080 * typeprint.c (ptype_eval): Remove function and declaration.
1081 (ptype_command): Simplify to just a call to whatis_exp.
1082
1c5bada0
PB
10832006-02-15 Paul Brook <paul@codesourcery.com>
1084
1085 * arm-tdep.c (arm_skip_prologue, thumb_get_next_pc, arm_get_next_pc):
1086 Load insn opcodes as unsigned values.
1087
96c1eda2
AO
10882006-02-14 Alexandre Oliva <aoliva@redhat.com>
1089
1090 * doublest.h (DOUBLEST): Use long double only if we can scan
1091 it in. Undefine HAVE_LONG_DOUBLE otherwise.
1092 (DOUBLEST_FORMAT): New.
1093 * c-exp.y (parse_number): Use it.
1094 * jv-exp.y (parse_number): Likewise.
1095 * objc-exp.y (parse_number): Likewise.
1096 * p-exp.y (parse_number): Likewise.
1097 * varobj.c (free_variable): Silence type-punning warnings.
1098 * tui/tui-data.h (struct tui_list): Change type of list member.
1099 * tui/tui-data.c: Remove no-longer-needed type casts.
1100 (source_windows): Silence type-punning warnings.
1101 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Likewise.
1102
92dd43fa
MK
11032006-02-13 Mark Kettenis <kettenis@gnu.org>
1104
1105 Fix PR breakpoints/2080.
1106 * i386-tdep.c (struct i386_frame_cache): Add stack_align member.
1107 (i386_analyze_stack_align): New function.
1108 (i386_analyze_prologue): Use i386_analyze_stack_align.
1109 (i386_frame_cache): Deal with stack realignment.
1110
7314787a
NR
11112006-02-14 Nick Roberts <nickrob@snap.net.nz>
1112
1113 * mi/gdb-mi.el: Use more functions from gdb-ui.el.
1114 (gdb-break-list-regexp): Match "what" field if present.
be85b69f 1115 (gdb-stack-list-frames-regexp): Match "from" field if present.
7314787a
NR
1116 (gdb-stack-list-frames-handler): Present output like "info
1117 breakpoints" so regexps can be shared with gdb-ui
1118
0ea3f30e
DJ
11192006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1120
1121 * NEWS: Mention native Windows support.
1122 * Makefile.in (gdb_select_h, ser_tcp_h): New.
1123 (ALLDEPFILES): Add ser-mingw.c.
1124 (event-loop.o, inflow.o, mingw-hdep.o, posix-hdep.o, ser-base.o)
1125 (ser-tcp.o, ser-unix.o): Update.
1126 (ser-mingw.o): New rule.
1127 * configure: Regenerated.
1128 * configure.ac: Add ser-mingw.o for mingw32.
1129 * ser-mingw.c: New file.
1130 * event-loop.c: Include "gdb_select.h".
1131 (gdb_select): Remove, moved to mingw-hdep.c and posix-hdep.c.
1132 * ser-base.c: Include "gdb_select.h".
1133 (ser_base_wait_for): Use gdb_select.
1134 * serial.c (serial_for_fd): New function.
1135 (serial_fdopen): Try "terminal" before "hardwire". Initialize
1136 the allocated struct serial.
1137 (serial_wait_handle): New function.
1138 * serial.h (serial_for_fd, serial_wait_handle): New prototypes.
1139 (struct serial_ops) [USE_WIN32API]: Add wait_handle.
1140 * gdb_select.h: New file.
1141 * ser-tcp.c: Include "ser-tcp.h". Remove unused "ser-unix.h" include.
1142 (net_close, net_read_prim, net_write_prim): Make global.
1143 (net_open): Likewise. Pass an exception set to select. Whitespace fix.
1144 Document why we can not use gdb_select.
1145 (_initialize_ser_tcp) [USE_WIN32API]: Do not register TCP support here.
1146 * ser-tcp.h: New file.
1147 * inflow.c (gdb_has_a_terminal): Don't initialize stdin_serial here.
1148 (handle_sigio): Use gdb_select.
1149 (initialize_stdin_serial): New function.
1150 * terminal.h (initialize_stdin_serial): New prototype.
1151 * top.c (gdb_init): Call initialize_stdin_serial.
1152 * mingw-hdep.c (gdb_select): New function, moved from gdb_select in
1153 event-loop.c. Add exception condition support. Use serial_for_fd
1154 and serial_wait_handle. Fix timeout handling.
1155 * posix-hdep.c: Include "gdb_select.h".
1156 (gdb_select): New function.
1157 * remote-st.c (connect_command): Use gdb_select.
1158 * ser-unix.c: Include "gdb_select.h".
1159 (hardwire_send_break, wait_for): Use gdb_select.
1160
121ce6e5
DJ
11612006-02-10 Daniel Jacobowitz <dan@codesourcery.com>
1162
1163 * Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
1164 (ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c.
1165 * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs
1166 to posix-hdep.o by default.
1167 * configure: Regenerated.
1168 * configure.host: Document gdb_host_obs. Add an entry for
1169 i[34567]86-*-mingw32*.
1170 * mingw-hdep.c, posix-hdep.c: New files.
1171 * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
1172
1f82754b
JB
11732006-02-10 Joel Brobecker <brobecker@adacore.com>
1174
1175 * defs.h (gdb_osabi): New enum value GDB_OSABI_AIX.
1176 * osabi.c (gdb_osabi_name): Add name of new value GDB_OSABI_AIX.
1177 * rs6000-tdep.h: New file.
1178 * rs6000-tdep.c: Include "rs6000-tdep.h".
1179 (rs6000_gdbarch_init): Remove enabling of software single step.
1180 Will be done in the AIX-specific initialization routine.
1181 * rs6000-aix-tdep.c: New file.
1182 * config/powerpc/aix.mt (TDEPFILES): Add rs6000-aix-tdep.o.
1183 * Makefile.in (rs6000_tdep_h): New variable.
1184 (rs6000-tdep.o): Update dependencies.
1185 (rs6000-aix-tdep.o): New rule.
1186
577b7047
JB
11872006-02-10 Joel Brobecker <brobecker@adacore.com>
1188
1189 * aix-thread.c (_initialize_aix_thread): Use add_setshow_boolean_cmd
1190 instead of add_setshow_zinteger_cmd to defined the aix-thread
1191 boolean setting.
1192
ff800d76
NR
11932006-02-10 Nick Roberts <nickrob@snap.net.nz>
1194
1195 * mi/gdb-mi.el: Update to reflect changes in Emacs 22.0.50.
1196
5afb4e99
DJ
11972006-02-09 Daniel Jacobowitz <dan@codesourcery.com>
1198
1199 * dwarf2read.c (struct dwarf2_per_cu_data): Reduce length to
1200 30 bits. Add load_all_dies flag.
1201 (load_partial_dies): Load all DIEs if per_cu->load_all_dies is set.
1202 Load DW_TAG_member by default. Remove internal_error call.
1203 (find_partial_die): Reload the compilation unit if we can not find
1204 a DIE in the cache. Call internal_error here if we still can not
1205 find the DIE.
1206
a832795c
NR
12072006-02-10 Nick Roberts <nickrob@snap.net.nz>
1208
1209 * breakpoint.c (print_one_breakpoint): Add break to case
1210 bp_catch_vfork in switch statement.
1211
c9dd6fef
WZ
12122006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1213
1214 * config/i386/nm-i386sol2.h: Update copyright year.
1215 * config/mips/nm-irix5.h: Ditto.
1216 * config/sparc/nm-sol2.h: Ditto.
1217 * s390-nat.c: Ditto.
1218 * ppc-linux-nat.c: Ditto.
1219
2a3cdf79
WZ
12202006-02-08 Wu Zhou <woodzltc@cn.ibm.com>
1221
1222 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Delete.
1223 * config/i386/nm-i386sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1224 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1225 * config/mips/nm-irix5.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1226 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1227 * config/sparc/nm-sol2.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New.
1228 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1229 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): New.
1230 (inf_ttrace_region_size_ok_for_hw_watchpoint): Delete.
1231 (inf_ttrace_target): Delete to_region_size_ok_for_hw_watchpoint and
1232 add to_region_ok_for_hw_watchpoint.
1233 * s390-nat.c (s390_region_size_ok_for_hw_watchpoint): Delete.
1234 (s390_region_ok_for_hw_watchpoint): New.
1235 (_initialize_s390_nat): Delete to_region_size_ok_for_hw_watchpoint
1236 and add to_region_ok_for_hw_watchpoint.
1237 * target.c (default_region_size_ok_for_hw_watchpoint,
1238 debug_to_region_size_ok_for_hw_watchpoint): Delete prototype.
1239 (update_current_target): Delete to_region_size_ok_for_hw_watchpoint
1240 inheritance and default_region_size_ok_for_hw_watchpoint.
1241 (default_region_ok_for_hw_watchpoint): If len is less than or equal
1242 the length of void pointer, return ok.
1243 (default_region_size_ok_for_hw_watchpoint): Delete.
1244 (debug_to_region_size_ok_for_hw_watchpoint): Delete.
1245 (setup_target_debug): Delete to_region_size_ok_for_hw_watchpoint.
1246 * target.h (struct target_ops): Delete
1247 to_region_size_ok_for_hw_watchpoint.
1248 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete.
1249
e0d24f8d
WZ
12502006-02-08 Ben Elliston <bje@au1.ibm.com>
1251 Wu Zhou <woodzltc@cn.ibm.com>
1252
1253 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG,
1254 PTRACE_GETSIGINFO): Define.
1255 (last_stopped_data_address): New.
1256 (ppc_linux_check_watch_resources): New function.
1257 (ppc_linux_region_ok_for_hw_watchpoint): New function.
1258 (ppc_linux_insert_watchpoint): New function.
1259 (ppc_linux_remove_watchpoint): New function.
1260 (ppc_linux_stopped_data_address): New function.
1261 (ppc_linux_stopped_by_watchpoint): New function.
1262 (_initialize_ppc_linux_nat): Set the above hardware watchpoint
1263 related target vectors.
1264 * rs6000-tdep.c (rs6000_gdbarch_init): Set PPC architectures
1265 to have nonsteppable watchpoint.
1266 * target.c (default_region_ok_for_hw_watchpoint,
1267 debug_to_region_ok_for_hw_watchpoint): New prototypes.
1268 (update_current_target): Inherit to_region_ok_for_hw_watchpoint
1269 and set default to_region_ok_for_hw_watchpoint.
1270 (default_region_ok_for_hw_watchpoint): New function.
1271 (debug_to_region_ok_for_hw_watchpoint): New function.
1272 (setup_target_debug): Set to_region_ok_for_hw_watchpoint of
1273 debug_target.
1274 * target.h (struct target_ops): Add a new target vector
1275 to_region_ok_for_hw_watchpoint.
1276 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Define this if it is not
1277 defined anyplace else.
927890d0 1278
e0d24f8d 12792005-02-07 Joel Brobecker <brobecker@adacore.com>
927890d0
JB
1280 * symfile.c (add_symbol_file_command): Abort if the user forgot
1281 to provide the address when the file has been loaded.
1282
f4d408c6
DJ
12832006-02-07 Daniel Jacobowitz <dan@codesourcery.com>
1284
1285 * MAINTAINERS: Update file based on maintainers survey. Add
1286 a note to Past Maintainers. Move unresponsive or inactive
1287 maintainers to Authorized Committers or Past Maintainers as
1288 appropriate. Correct Jim Kingdon's email address. Remove
1289 vacant areas of responsibility.
1290
38fcd64c
DJ
12912006-02-06 Vladimir Prus <ghost@cs.msu.su>
1292
1293 * breakpoint.c (print_one_breakpoint): For MI-like UI, output
1294 fullname field.
1295
7b871fab
DJ
12962006-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1297
1298 * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
1299 * exceptions.c (exception_none, exceptions_state_mc_init)
1300 (throw_vfatal): Use GDB_NO_ERROR.
1301
e4cd0d6a
MK
13022006-02-02 Mark Kettenis <kettenis@gnu.org>
1303
1304 * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and
1305 r_map_size members. Add r_version_offset, r_version_size and
1306 r_ldsomap_offset members.
1307 * solib-svr4.c (solib_svr4_r_map): Renamed from
1308 fetch_link_map_member. Simplify using read_memory_typed_address.
1309 (solib_svr4_r_ldsomap): New function.
1310 (open_symbol_file_object): Use solib_svr_r_map.
1311 (svr4_current_sos): Use solib_svr4_r_map and look for the dynamic
1312 linker by using solib_svr4_r_ldsomap.
1313 (svr4_ilp32_fetch_link_map_offsets)
1314 (svr4_lp64_fetch_link_map_offsets): Adjust for changes to `struct
1315 link_map_offsets'.
1316 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Adjust for
1317 changes to `struct link_map_offsets'.
1318 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets)
1319 (mipsnbsd_lp64_fetch_link_map_offsets): Adjust for changes to
1320 `struct link_map_offsets'.
1321
e26af52f
DJ
13222006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1323
1324 * linux-nat.c (struct saved_ptids, threads_to_delete)
1325 (record_dead_thread, prune_lwps, find_thread_from_lwp)
1326 (exit_lwp): New.
1327 (linux_nat_resume): Call prune_lwps.
1328 (wait_lwp, linux_nat_wait): Call exit_lwp.
1329
46e9880c
DJ
13302006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1331
1332 * printcmd.c (printf_command): Make format string checking
1333 stricter. Add separate cases for long_arg, ptr_arg, and
1334 long_double_arg.
1335 * utils.c (xstrvprintf): Improve the error message issued
1336 for a bad format string.
1337 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT, INTERNAL_CFLAGS_BASE):
1338 New variables.
1339 (gnu-v3-abi.o, monitor.o, procfs.o, linux-thread-db.o): Remove
1340 $(NO_WERROR_CFLAGS).
1341 (printcmd.o): Likewise. Use $(GDB_WARN_CFLAGS_NO_FORMAT) and
1342 enable -Werror.
1343
37a105a1
DJ
13442006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1345
1346 * Makefile.in (remote.o): Update.
1347 * remote.c (show_packet_config_cmd): Shorten messages.
1348 (remote_set_cmdlist, remote_show_cmdlist): Make file-static.
1349 (show_remote_cmd): Iterate.
1350 (_initialize_remote): Remove remote_set_cmdlist,
1351 remote_show_cmdlist.
1352
ae5a43e0
DJ
13532006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1354
1355 * Makefile.in (gdbtypes_h, gdbtypes.o, utils.o): Update.
1356 * defs.h (hashtab_obstack_allocate, dummy_obstack_deallocate): Add
1357 prototypes.
1358 * dwarf2read.c (read_subroutine_type): Use TYPE_ZALLOC.
1359 (hashtab_obstack_allocate, dummy_obstack_deallocate): Moved to...
1360 * utils.c (hashtab_obstack_allocate, dummy_obstack_deallocate):
1361 ...here.
1362 * gdbtypes.c: Include "hashtab.h".
1363 (build_gdbtypes): Remove extra prototype.
1364 (struct type_pair, type_pair_hash, type_pair_eq)
1365 (create_copied_types_hash, copy_type_recursive): New.
1366 * gdbtypes.h: Include "hashtab.h".
1367 (TYPE_ZALLOC): New.
1368 (create_copied_types_hash, copy_type_recursive): New prototypes.
1369 * objfiles.c (free_objfile): Call preserve_values.
1370 * symfile.c (reread_symbols): Likewise.
1371 (clear_symtab_users): Remove calls to clear_value_history and
1372 clear_internalvars.
1373 * value.c (clear_value_history, clear_internalvars): Removed.
1374 (preserve_one_value, preserve_values): New functions.
1375 * value.h (clear_value_history, clear_internalvars): Removed.
1376 (preserve_values): New prototype.
1377
1378 * tracepoint.c (_initialize_tracepoint): Do not initialize convenience
1379 variables here.
1380
b929c77f
MK
13812006-01-29 Mark Kettenis <kettenis@gnu.org>
1382
1383 * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL.
1384 Fixes PR tdep/2075.
1385
1581f359
JB
13862006-01-27 Joel Brobecker <brobecker@adacore.com>
1387
1388 * MAINTAINERS: Use a consistent email address for brobecker.
1389
37706b70
JB
13902006-01-27 Joel Brobecker <brobecker@adacore.com>
1391
1392 * infcmd.c (post_create_inferior): Fix copy/paste error introduced
1393 in the previous change.
1394
9353355f
DJ
13952006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1396
1397 PR gdb/1914
1398 * fork-child.c (fork_inferior): Don't call
1399 solib_create_inferior_hook.
1400 * infcmd.c (post_create_inferior): Call solib_add,
1401 solib_create_inferior_hook, and re_enable_breakpoints_in_shlibs.
1402 (attach_command): Don't call solib_add or
1403 re_enable_breakpoints_in_shlibs. Call post_create_inferior
1404 instead.
1405 * remote.c (remote_open_1): Don't call solib_create_inferior_hook
1406 or observer_notify_inferior_created. Call post_create_inferior
1407 instead.
1408 * corelow.c: Don't include "observer.h".
1409 (solib_add_stub): Deleted.
1410 (core_open): Don't call observer_notify_inferior_created or
1411 solib_add_stub. Call post_create_inferior instead.
1412 * inf-ptrace.c: Don't include "observer.h".
1413 (inf_ptrace_attach): Don't call observer_notify_inferior_created.
1414 * inf-ttrace.c: Don't include "observer.h".
1415 (inf_ttrace_attach): Don't call observer_notify_inferior_created.
1416 * inferior.h (solib_create_inferior_hook): Remove redundant
1417 prototype.
1418 * inftarg.c: Don't include "observer.h".
1419 (child_attach): Don't call observer_notify_inferior_created.
1420 * Makefile.in: Update dependencies.
1421
281b533b
DJ
14222006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1423
1424 * infcmd.c: Include "observer.h".
1425 (post_create_inferior): New function.
1426 (run_command_1): Call it. Also call proceed.
1427 * inferior.h (post_create_inferior): New prototype.
1428 * Makefile.in (infcmd.o): Update.
1429
1430 * gnu-nat.c (gnu_create_inferior): Don't call proceed.
1431 * go32-nat.c (go32_create_inferior): Likewise.
1432 * nto-procfs.c (procfs_create_inferior): Likewise.
1433 * procfs.c (procfs_create_inferior): Likewise.
1434 * remote-sim.c (gdbsim_create_inferior): Likewise.
1435 * remote.c (extended_remote_create_inferior)
1436 (extended_remote_async_create_inferior): Likewise.
1437 * win32-nat.c (win32_create_inferior): Likewise.
1438 * wince.c (child_create_inferior): Likewise.
1439
1440 * monitor.c (monitor_create_inferior): Don't call proceed.
1441 Set the PC manually.
1442 * ocd.c (ocd_create_inferior): Likewise.
1443 * remote-e7000.c (e7000_create_inferior): Likewise.
1444 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1445 * remote-mips.c (mips_create_inferior): Likewise.
1446 * remote-rdp.c (remote_rdp_create_inferior): Likewise.
1447 * remote-sds.c (sds_create_inferior): Likewise.
1448 * remote-st.c (st2000_create_inferior): Likewise.
1449
1450 * inf-ptrace.c (inf_ptrace_create_inferior): Don't call
1451 proceed or observer_notify_inferior_created.
1452 * inf-ttrace.c (inf_ttrace_create_inferior): Likewise.
1453 * inftarg.c (child_create_inferior): Likewise.
1454
e23fc6de
DJ
14552006-01-24 Daniel Jacobowitz <dan@codesourcery.com>
1456
1457 * linux-thread-db.c (thread_db_mourn_inferior): Remove breakpoints
1458 after mourning the inferior.
1459
13d6656b
JB
14602006-01-24 Jim Blandy <jimb@redhat.com>
1461
1462 * valarith.c (binop_user_defined_p): Handle refs to typedefs.
1463
59f92a09
FF
14642006-01-24 Fred Fish <fnf@specifix.com>
1465
1466 * parse.c (source.h): Include.
1467 (parse_exp_in_context): Use static source context if no
1468 other context found.
1469
dda63807
AS
14702006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
1471
1472 * sh-tdep.c: Include reggroups.h.
1473 (sh_register_reggroup_p): New function.
1474 (sh_gdbarch_init): Add call to set_gdbarch_register_reggroup_p.
1475 * Makefile.in (sh-tdep.o): Add dependency on reggroups.h.
1476
4b505b12
AS
14772006-01-23 Andrew Stubbs <andrew.stubbs@st.com>
1478
1479 * cli/cli-cmds.c: Include fcntl.h.
1480 (source_command): Use the GDB search path to find script files.
1481
721d14ba
DJ
14822006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
1483
1484 PR tdep/2029
1485 Suggested by Till Straumann <strauman@slac.stanford.edu>:
1486 * rs6000-tdep.c (skip_prologue): Update check for later mtlr
1487 instructions. Handle PIC bcl.
1488
3d64d617
DJ
14892006-01-22 Daniel Jacobowitz <dan@codesourcery.com>
1490
1491 * config/djgpp/README: Typo fix.
1492 * config/djgpp/fnchange.lst: Update.
1493
0a8f48b9
MK
14942006-01-22 Mark Kettenis <kettenis@gnu.org>
1495
c893be75
MK
1496 * sparc-tdep.h (struct gdbarch_tdep): Add step_trap member.
1497 (sparc_address_from_register): New prototype.
1498 (sparcnbsd_step_trap): New prototype.
1499 * sparc-tdep.c (sparc_address_from_register): Make globally
1500 visible.
1501 (sparc_analyze_control_transfer): Change prototype to accept
1502 `struct gdbarch *' as first argument. Allow for optional hnadling
1503 for trap instructions.
1504 (sparc_step_trap): New function.
1505 (sparc_software_single_step): Adjust call to
1506 sparc_analyze_control_trabsfer.
1507 (sparc32_gdbarch_init): Initialize TDEP->step_trap.
1508 * sparcnbsd-tdep.c (sparcnbsd_step_trap): New function.
1509 (sparc32nbsd_init_abi): Set TDEP->step_trap.
1510 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Set TDEP->step_trap.
1511 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Set TDEP->step_trap.
1512
0a8f48b9
MK
1513 * sparc-tdep.c (sparc32_return_value): Convert to use
1514 RETURN_VALUE_ABI_PRESERVES_ADDRESS instead of
1515 RETURN_VALUE_STRUCT_CONVENTION.
1516 (sparc32_extract_struct_value_address): Remove.
1517
1f3a99d5
DJ
15182006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1519
1520 * avr-tdep.c (avr_address_to_pointer, avr_pointer_to_address)
1521 (avr_extract_return_value, avr_frame_prev_register): Use gdb_byte.
1522
84eb3c4f
DJ
15232006-01-21 Daniel Jacobowitz <dan@codesourcery.com>
1524
1525 * solib.c (info_sharedlibrary_command): Avoid internal_error.
1526
878d9193
MK
15272006-01-21 Mark Kettenis <kettenis@gnu.org>
1528
1529 * i386-tdep.c (i386_mxcsr_type): New variable.
1530 (i386_init_types): Initialize i386_mxcsr_type.
1531 (i386_register_type): Return i386_mxcsr_type for %mxcsr.
1532 * i386-tdep.c (i386_mxcsr_type): New extern.
1533 * amd64-tdep.c (amd64_register_info): Return i386_mxcsr_type for
1534 %mxcsr.
1535
acab6ab2
MM
15362006-01-20 Mark Mitchell <mark@codesourcery.com>
1537
1538 * Makefile.in (remote-rdi.o): Remove.
1539 (rdi-share/libangsd.a): Likewise.
1540 * README: Don't mention remote-rdi.c.
1541 * NEWS: Mention removal of rdi-share.
1542 * configure.ac: Don't configure rdi-share subdirectory.
1543 * remote-rdi.c: Remove.
1544 * config/arm/embed.mt (TDEPFILES): Remove remote-rdi.o.
1545 (TDEPLIBS): Remove rdi-share/libangsd.a.
1546 * rdi-share/Makefile.am: Remove.
1547 * rdi-share/Makefile.in: Likewise.
1548 * rdi-share/README.CYGNUS: Likewise.
1549 * rdi-share/aclocal.m4: Likewise.
1550 * rdi-share/adp.h: Likewise.
1551 * rdi-share/adperr.h: Likewise.
1552 * rdi-share/angel.h: Likewise.
1553 * rdi-share/angel_bytesex.c: Likewise.
1554 * rdi-share/angel_bytesex.h: Likewise.
1555 * rdi-share/angel_endian.h: Likewise.
1556 * rdi-share/ardi.c: Likewise.
1557 * rdi-share/ardi.h: Likewise.
1558 * rdi-share/armdbg.h: Likewise.
1559 * rdi-share/buffers.h: Likewise.
1560 * rdi-share/chandefs.h: Likewise.
1561 * rdi-share/channels.h: Likewise.
1562 * rdi-share/chanpriv.h: Likewise.
1563 * rdi-share/configure: Likewise.
1564 * rdi-share/configure.in: Likewise.
1565 * rdi-share/crc.c: Likewise.
1566 * rdi-share/crc.h: Likewise.
1567 * rdi-share/dbg_conf.h: Likewise.
1568 * rdi-share/dbg_cp.h: Likewise.
1569 * rdi-share/dbg_hif.h: Likewise.
1570 * rdi-share/dbg_rdi.h: Likewise.
1571 * rdi-share/devclnt.h: Likewise.
1572 * rdi-share/devices.h: Likewise.
1573 * rdi-share/devsw.c: Likewise.
1574 * rdi-share/devsw.h: Likewise.
1575 * rdi-share/drivers.c: Likewise.
1576 * rdi-share/drivers.h: Likewise.
1577 * rdi-share/etherdrv.c: Likewise.
1578 * rdi-share/ethernet.h: Likewise.
1579 * rdi-share/host.h: Likewise.
1580 * rdi-share/hostchan.c: Likewise.
1581 * rdi-share/hostchan.h: Likewise.
1582 * rdi-share/hsys.c: Likewise.
1583 * rdi-share/hsys.h: Likewise.
1584 * rdi-share/logging.c: Likewise.
1585 * rdi-share/logging.h: Likewise.
1586 * rdi-share/msgbuild.c: Likewise.
1587 * rdi-share/msgbuild.h: Likewise.
1588 * rdi-share/params.c: Likewise.
1589 * rdi-share/params.h: Likewise.
1590 * rdi-share/rx.c: Likewise.
1591 * rdi-share/rxtx.h: Likewise.
1592 * rdi-share/serdrv.c: Likewise.
1593 * rdi-share/serpardr.c: Likewise.
1594 * rdi-share/sys.h: Likewise.
1595 * rdi-share/tx.c: Likewise.
1596 * rdi-share/unixcomm.c: Likewise.
1597 * rdi-share/unixcomm.h: Likewise.
1598
4577207e
MK
15992006-01-21 Mark Kettenis <kettenis@gnu.org>
1600
1601 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register):
1602 Change type of last argument to `gdb_byte *'.
1603
34f55018
MK
16042006-01-20 Mark Kettenis <kettenis@gnu.org>
1605
1606 * hppa-tdep.h (hppa_in_solib_call_trampoline)
1607 (hppa_skip_trampoline_code): New prototypes.
1608 * hppa-tdep.c (struct insn_pattern): New.
1609 (hppa_long_branch_stub, hppa_long_branch_pic_stub)
1610 (hppa_import_stub, hppa_import_pic_stub, hppa_plt_stub): Moved
1611 here from hppa-linux-tdep.c
1612 (HPPA_MAX_INSN_PATTERN_LEN): New define.
1613 (hppa_match_insns, hppa_match_insns_relaxed, hppa_in_dyncall)
1614 (hppa_in_solib_call_trampoline, hppa_skip_trampoline_code): New
1615 functions based on functions removed from hppa-linux-tdep.c.
1616 * hppa-linux-tdep.c (hppa_long_branch_stub)
1617 (hppa_long_branch_pic_stub, hppa_import_stub)
1618 (hppa_import_pic_stub, hppa_plt_stub): Moved to hppa-tdep.c.
1619 (insns_match_pattern_relaxed, hppa_linux_in_dyncall)
1620 (hppa_linux_in_solib_call_trampoline)
1621 (hppa_linux_skip_trampoline_code): Removed.
1622 (hppa_linux_init_abi): Set TDEP->in_solib_call_tranpoline to
1623 hppa_in_solib_call_trampoline and skip_trampoline_code to
1624 hppa_skip_trampoline_code.
1625 * hppabsd-tdep.c (hppabsd_init_abi): Set
1626 TDEP->in_solib_call_trampoline and skip_trampoline_code.
1627
7be93b9e
JB
16282006-01-20 Jim Blandy <jimb@redhat.com>
1629
f408839d
JB
1630 * MAINTAINERS: Change my E-mail address.
1631
7be93b9e
JB
1632 * configure.ac: Add -Wno-pointer-sign to list of build warnings.
1633 * configure: Regenerated.
1634
b2a74f99
DJ
16352006-01-20 Daniel Jacobowitz <dan@codesourcery.com>
1636
1637 * MAINTAINERS: Overhaul.
1638
4f2aea11
MK
16392006-01-18 Mark Kettenis <kettenis@gnu.org>
1640
5ae96ec1
MK
1641 Based on a previous patch form Michal Ludvig:
1642 * amd64-tdep.c (amd64_sse_type): Remove.
1643 (amd64_register_info): Use i386_eflags_type and i386_sse_type
1644 where appropriate.
1645 (AMD64_NUM_REGS): Use ARRAY_SIZE.
1646 (amd64_register_type): Remove code to build amd_sse_type.
1647 * i386-tdep.c (i386_eflag_type): New variable.
1648 (i386_mmx_type, i386_sse_type): Make global.
1649 (i386_init_types): New function.
1650 (i386_build_mmx_type, i386_build_sse_type): Remove functions.
1651 (i386_register_type): Return i386_eflag_type, i386_sse_type and
1652 i386_mmx_type when appropriate.
1653 (_initialize_i386_tdep): Call i386_init_types.
1654 * i386-tdep.h (i386_eflags_type, i386_mmx_type, i386_sse_type):
1655 Declare extern.
1656
4f2aea11
MK
1657 Based on a previous patch form Michal Ludvig:
1658 * gdbtypes.c (append_flags_type_flag, init_flags_type): New
1659 functions.
1660 (is_integral_type, rank_one_type, recursive_dump_type): Add
1661 support for TYPE_CODE_FLAGS.
1662 * gdbtypes.h (enum type_code): Add TYPE_CODE_FLAGS.
1663 (append_flags_type_field, init_flags_type): New prototypes.
1664 * ada-valprint.c (ada_val_print_1): Add support for
1665 TYPE_CODE_FLAGS.
1666 * c-valprint.c (c_val_print): Likewise.
1667 * f-valprint.c (f_val_print): Likewise.
1668 * p-valprint.c (pascal_val_print): Likewise.
1669 * valprint.c (val_print_type_code_flags): New function.
1670 * valprint.h (val_print_type_code_flags): New prototype.
1671 * value.c (unpack_long, value_from_longest): Add support for
1672 TYPE_CODE_FLAGS.
1673
4cdb5adf
CF
16742006-01-17 Christopher Faylor <cgf@timesys.com>
1675
1676 * MAINTAINERS: Very belatedly remove myself from from the list of
1677 people caught up in the paper trail.
1678
1193688d
JB
16792006-01-17 Jim Blandy <jimb@redhat.com>
1680
4e38b386
JB
1681 * symtab.h (struct general_symbol_info): Use gdb_byte for
1682 value.bytes.
1683 * stabsread.c (define_symbol): Use gdb_byte for the buffer holding
1684 a floating-point constant's value.
1685 * dwarf2read.c (dwarf2_const_value): Remove casts of value buffer
1686 to char *.
1687 * findvar.c (read_var_value): Eliminate needless temporary.
1688
1193688d
JB
1689 * dwarf2-frame.c (dwarf2_read_section): Update forward declaration
1690 to match prior change to dwarf2_read_section's type.
1691
0d1243d9
PG
16922006-01-16 Paul Gilliam <pgilliam@us.ibm.com>
1693
1694 * ppc-tdep.h (PPC_MAX_EPILOGUE_INSTRUCTIONS): New define.
1695 * rs6000-tdep.c (insn_changes_sp_or_jumps)
1696 (rs6000_in_function_epilogue_p): New functions.
1697 (rs6000_gdbarch_init): Set in_function_epilogue_p.
1698
fe1b8b76
JB
16992006-01-17 Jim Blandy <jimb@redhat.com>
1700
1701 * dwarf2read.c (struct dwarf2_per_objfile, struct comp_unit_head)
1702 (struct line_header, struct partial_die_info, struct dwarf_block):
1703 Use gdb_byte for members that refer to Dwarf section contents.
1704 (dwarf2_read_abbrevs, dwarf2_read_section, dwarf_decode_lines,
1705 dwarf_decode_macros, load_comp_unit, load_partial_dies,
1706 locate_pdi_sibling, partial_read_comp_unit_head, peek_die_abbrev,
1707 read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes,
1708 read_8_bytes, read_address, read_attribute, read_attribute_value,
1709 read_comp_unit, read_comp_unit_head, read_die_and_children,
1710 read_die_and_siblings, read_full_die, read_indirect_string,
1711 read_initial_length, read_n_bytes, read_offset, read_partial_die,
1712 read_signed_leb128, read_string, read_unsigned_leb128,
1713 skip_children, skip_leb128, skip_one_die): Same.
1714
a0841d7a
DJ
17152006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1716
1717 * complaints.c (stop_whining): Make signed.
1718 * linux-thread-db.c (thread_db_store_registers): Use gdb_byte.
1719
939b2b42
DJ
17202006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1721
1722 * dwarf2read.c, remote-fileio.c, remote.h: Update copyright
1723 notices.
1724
891d2f0b
DJ
17252006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1726
1727 * dwarf2read.c (peek_die_abbrev, read_address, read_initial_length)
1728 (read_offset): Change BYTES_READ argument to unsigned int.
1729 (dwarf2_build_psymtabs_easy, read_comp_unit_head)
1730 (create_all_comp_units, dwarf2_get_pc_bounds)
1731 (dwarf_decode_line_header, var_decode_location)
1732 (dwarf_decode_macros): Change local BYTES_READ variables to
1733 unsigned int.
1734 (read_indirect_string): Remove obsolete cast.
1735
cfd77fa1
DJ
17362006-01-17 Daniel Jacobowitz <dan@codesourcery.com>
1737
1738 * remote-fileio.c (remote_fileio_return_success): Take a gdb_byte
1739 argument.
1740 (remote_fileio_func_open, remote_fileio_func_rename)
1741 (remote_fileio_func_unlink, remote_fileio_func_stat)
1742 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
1743 (remote_fileio_func_system): Cast the arguments to
1744 remote_read_bytes and remote_write_bytes.
1745 (remote_fileio_func_read, remote_fileio_func_write): Use a
1746 gdb_byte buffer.
1747 * remote.h (remote_read_bytes, remote_write_bytes): Update
1748 prototypes.
1749 * remote.c (hex2bin, bin2hex): Use gdb_byte for the BIN argument.
1750 (threadref_to_int): Replace bogus char * cast.
1751 (remote_unpack_thread_info_response): Use int for tag.
1752 (remote_threads_extra_info, remote_check_symbols): Cast string
1753 arguments to hex2bin.
1754 (remote_wait): Use a char buffer for packets and a gdb_byte
1755 buffer for registers.
1756 (remote_async_wait): Likewise.
1757 (remote_prepare_to_store, store_register_using_P)
1758 (remote_store_registers): Use gdb_byte buffers.
1759 (remote_write_bytes, remote_read_bytes): Use a gdb_byte pointer
1760 for MYADDR and char buffers for strings.
1761 (remote_xfer_partial): Add casts for string operations on READBUF.
1762 (remote_rcmd): Cast strings passed to bin2hex.
1763
60bf0650
MM
17642006-01-16 Mark Mitchell <mark@codesourcery.com>
1765
1766 * aclocal.m4: Regenerate.
1767
60e81fcc
NS
17682006-01-16 Nathan Sidwell <nathan@codesourcery.com>
1769
1770 * mt-tdep.c (enum mt_gdb_regnums): Add MT_COPRO_PSEUDOREG_ARRAY,
1771 MT_COPRO_PSEUDOREG_DIM_1, MT_COPRO_PSEUDOREG_DIM_2,
1772 MT_COPRO_PSEUDOREG_REGS members. Adjust MT_NUM_PSEUDO_REGS.
1773 (mt_register_name): Lazily synthesize name for coprocessor pseudo
1774 array registers.
1775 (mt_copro_register_type): New. Broken out of ...
1776 (mt_register_type): ... here. Use it. Deal with coprocessor
1777 pseudo array.
1778 (mt_select_coprocessor): New.
1779 (mt_pseudo_register_read, mt_pseudo_register_write): Deal with
1780 coprocessor pseudo array.
1781
f365de73
AS
17822006-01-16 Andrew Stubbs <andrew.stubbs@st.com>
1783
1784 * breakpoint.c (insert_breakpoints): Check that a thread exists
1785 before inserting thread specific breakpoints.
1786
9d519230
MK
17872006-01-15 Mark Kettenis <kettenis@gnu.org>
1788
6062517a
MK
1789 * osabi.c (generic_elf_osabi_sniffer): Fix typo in previous
1790 commit.
1791
9d519230
MK
1792 * alpha-tdep.c (alpha_gdbarch_init): Set cannot_step_breakpoint.
1793 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Remove.
1794 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Remove.
1795 * config/alpha/nm-nbsd.h: Remove file.
1796 * config/alpha/nm-fbsd.h: Remove file
1797 * config/alpha/nbsd.mh (NAT_FILE): Remove.
1798 * config/alpha/fbsd.mh (NAT_FILE): Remove.
1799
0a029df5
DJ
18002006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1801
1802 * macroexp.c (expand): Initialize argc.
1803 * stabsread.c (read_type): Handle errors from read_args.
1804 (read_args): Return NULL for errors.
1805
1731e543
MK
18062006-01-15 Mark Kettenis <kettenis@gnu.org>
1807
1808 * osabi.c (generic_elf_osabi_sniffer): Use memcmp instead of
1809 strcmp to compare string to a byte buffer.
1810
777ea8f1
DJ
18112006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1812
1813 * printcmd.c (output_command): Always initialize fmt.size.
1814 (printf_command): Use gdb_byte.
1815 * symfile.c (separate_debug_file_exists): Use gdb_byte.
1816 (load_section_callback, read_target_long_array): Likewise.
1817 (simple_read_overlay_table, simple_read_overlay_region_table)
1818 (simple_overlay_update_1): Correct calls to read_target_long_array.
1819 * valprint.c (partial_memory_read): Change MYADDR to a gdb_byte *.
1820 Also change local pointers.
1821 (val_print_string): Use gdb_byte.
1822
4b17b389
MK
18232006-01-15 Mark Kettenis <kettenis@gnu.org>
1824
1825 * alphafbsd-tdep.c: Include "solib-svr4.h".
1826 (alphafbsd_init_abi): Set solib_svr4_fetch_link_map_offsets to
1827 svr4_lp64_fetch_link_map_offsets.
1828 * Makefile.in (alphafbsd-tdep.o): Update dependencies.
1829 * config/alpha/fbsd.mt (TDEPFILES): Add corelow.o, solib.o and
1830 solib-svr4.o.
1831 * config/alpha/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
1832 and solib-legacy.o.
1833 * config/alpha/nm-fbsd.h: Don't include "solib.h".
1834
bd4109fb
DJ
18352006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1836
1837 * source.c (_initialize_source): Use add_setshow_integer_cmd.
1838
1dce6535
DJ
18392006-01-15 Daniel Jacobowitz <dan@codesourcery.com>
1840
1841 * linux-fork.c (delete_fork_command, detach_fork_command): Use
1842 PIDGET.
1843
76a9d10f
MK
18442006-01-15 Mark Kettenis <kettenis@gnu.org>
1845
1846 * arm-linux-tdep.c (arm_linux_svr4_fetch_link_map_offsets):
1847 Remove.
1848 (arm_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1849 svr4_ilp32_fetch_link_map_offsets.
1850 * cris-tdep.c (cris_linux_svr4_fetch_link_map_offsets): Remove
1851 function.
1852 (cris_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1853 svr4_ilp32_fetch_link_map_offsets.
1854 * mips-linux-tdep.c (mips_linux_svr4_fetch_link_map_offsets)
1855 (mips64_linux_svr4_fetch_link_map_offsets): Remove functions.
1856 (mips_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1857 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1858 where appropriate.
1859 * nbsd-tdep.c (nbsd_ilp32_solib_svr4_fetch_link_map_offsets):
1860 Simply call svr4_ilp32_fetch_link_map_offsets.
1861 (nbsd_lp64_solib_svr4_fetch_link_map_offsets): Simply call
1862 svr4_lp64_fetch_link_map_offsets.
1863 * ppc-linux-tdep.c (ppc_linux_svr4_fetch_link_map_offsets): Remove
1864 function.
1865 (ppc_linux_init_abi): Set solib_svr4_fetch_link_map_offsets to
1866 svr4_ilp32_fetch_link_map_offsets.
1867 * s390-tdep.c (s390_svr4_fetch_link_map_offsets)
1868 (s390x_svr4_fetch_link_map_offsets): Remove functions.
1869 (s390_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1870 svr4_ilp32_fetch_link_map_offsets or svr4_lp64_fetch_link_map_offsets
1871 where appropriate.
1872
469db033
MK
18732006-01-15 Mark Kettenis <kettenis@gnu.org>
1874
25224166
MK
1875 * arm-tdep.c (arm_return_value): Change type of readbuf and
1876 writebuf arguments to `gdb_byte *'.
1877
469db033
MK
1878 * s390-tdep.c: Do not include "tm.h" and "../bfd/bfd.h".
1879 * Makefile.in (s390-tdep.o): Update dependencies.
1880
4dd7c9f6
MK
18812006-01-14 Mark Kettenis <kettenis@gnu.org>
1882
081bf9da
MK
1883 * sol2-tdep.h. sol2-tdep.c: New files.
1884 * amd64-sol2-tdep.c: Include "sol2-tdep.h".
1885 (amd64_sol2_init_abi): Set skip_solib_resolver.
1886 * i386-sol2-tdep.c: Include "sol2-tdep.h".
1887 (i386_sol2_init_abi): Set skip_solib_resolver.
1888 * sparc-sol2-tdep.c: Include "sol2-tdep.h".
1889 (sparc32_sol2_init_abi): Set skip_solib_resolver.
1890 * sparc64-sol2-tdep.c: Include "sol2-tdep.h".
1891 (sparc64_sol2_init_abi): Set skip_solib_resolver.
1892 * Makefile.in (sol2_tdep_h): New variable.
1893 (ALLDEPFILES): Add sol2-tdep.c.
1894 (sol2-tdep.o): New target.
1895 (amd64-sol2-tdep.o, i386-sol2-tdep.o, sparc-sol2-tdep.o)
1896 (sparc64-sol2-tdep.o): Update dependencies
1897 * config/i386/i386sol2.mt (TDEPFILES): Add sol2-tdep.o.
1898 * config/i386/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1899 * config/sparc/sol2.mt (TDEPFILES): Add sol2-tdep.o.
1900 * config/sparc/sol2-64.mt (TDEPFILES): Add sol2-tdep.o.
1901
c0f96416
MK
1902 * hppa-linux-tdep.c: Fix copyright indentation.
1903
4dd7c9f6
MK
1904 * hppa-tdep.h (enum hppa_regnum): Add HPPA_FP31R_REGNUM.
1905 * hppabsd-nat.c (hppabsd_fpregset_supplies_p)
1906 (hppabsd_supply_fpregset, hppabsd_collect_fpregset): New
1907 functions.
1908 (hppabsd_fetch_registers, hppabsd_store_registers): Handle
1909 floating-point registers.
1910
6da86618
MM
19112006-01-13 Mark Mitchell <mark@codesourcery.com>
1912
1913 * event-loop.c (gdb_select): Detect file descriptors that have
1914 been closed.
1915
ed944ce7
MK
19162006-01-13 Mark Kettenis <kettenis@gnu.org>
1917
1918 * hppabsd-tdep.c (hppabsd_init_abi): Set long_double_bit to 64,
1919 and long_double_format accordingly.
1920
03ee6b2e
PH
19212006-01-12 Paul N. Hilfinger <hilfinger@adacore.com>
1922
1923 * ada-exp.y (yyerror): Change message to ignore the argument, avoiding
1924 translation problems.
1925 * ada-lang.c (ada_value_struct_elt): Change interface and handling
1926 of errors to avoid translation problem (and less than optimal error
1927 messages).
1928 (ada_value_tag, ada_tag_name_1, ada_tag_name_2, ada_evaluate_subexp):
1929 Use new interface to ada_value_struct_elt.
1930 * ada_lang.h (ada_value_struct_elt): Update declaration to new
1931 interface.
1932
1933 * ChangeLog: remove reference to ada-tasks.c from entry of
1934 2006-01-07.
1935
24b06219
MK
19362006-01-11 Mark Kettenis <kettenis@gnu.org>
1937
1938 * remote.c (get_memory_packet_size, set_thread)
1939 (remote_unpack_thread_info_response, remote_get_threadinfo)
1940 (parse_threadlist_response, remote_get_threadlist)
1941 (remote_current_thread, remote_threads_info)
1942 (remote_threads_extra_info, extended_remote_restart, get_offsets)
1943 (remote_check_symbols, remote_open_1, remote_detach)
1944 (remote_async_wait, remote_fetch_registers)
1945 (remote_store_registers, check_binary_download, putpkt_binary)
1946 (remote_insert_breakpoint, remote_insert_watchpoint)
1947 (remote_remove_watchpoint, remote_insert_hw_breakpoint)
1948 (remote_remove_hw_breakpoint, remote_xfer_partial, remote_rcmd)
1949 (packet_command): Remove redundant parenthesis.
1950
15550d6b
MK
19512006-01-10 Mark Kettenis <kettenis@gnu.org>
1952
dfb65433
MK
1953 * corefile.c (read_memory_integer, read_memory_unsigned_integer)
1954 (read_memory_typed_address, write_memory)
1955 (write_memory_unsigned_integer, write_memory_signed_integer): Use
1956 gdb_byte where appropriate.
1957
508416a1
MK
1958 * mi/mi-main.c (mi_cmd_data_read_memory): Change type of mbus into
1959 'gdb_byte *'.
1960
f6519ebc
MK
1961 * target.h (target_read_memory_partial, target_write_memory_partial):
1962 Change second argument to 'gdb_byte *'.
1963 * target.c (target_xfer_memory_partial): Change third argument to
1964 'gdb_byte *'.
1965 (target_read_memory_partial, target_write_memory_partial): Change
1966 second argument to 'gdb_byte *'.
1967
15550d6b
MK
1968 * linespec.c (decode_objc): Make i1 and i2 unsigned.
1969 (find_method): Set values.sals to NULL.
1970
d7a30af7
MK
19712006-01-09 Mark Kettenis <kettenis@gnu.org>
1972
1973 * amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
1974 of 'char *' in cast.
1975
e1d5a0d2
PH
19762006-01-07 Paul N. Hilfinger <hilfinger@adacore.com>
1977
1978 * ada-exp.y, ada-lex.l, ada-typeprint.c: I18n markup.
03ee6b2e 1979 * ada-lang.c: I18n markup.
e1d5a0d2
PH
1980 Editorial: change "can not" => "cannot" throughout.
1981
790124be
MK
19822006-01-07 Mark Kettenis <kettenis@gnu.org>
1983
1984 * Makefile.in: Sort dependencies.
1985
3c481fdc
EZ
19862006-01-07 Eli Zaretskii <eliz@gnu.org>
1987
1988 * top.c (control_level): Remove unused variable.
1989
cb5d864f
FF
19902006-01-06 Fred Fish <fnf@specifix.com>
1991
1992 * objfiles.c (source.h): Include.
1993 (free_objfile): Update comment about clear_symtab_users().
1994 (free_objfile): Check all symtabs of objfile being freed and if
1995 one of them is the current source symtab, call
1996 clear_current_source_symtab_and_line().
1997
ac264b3b
MS
19982006-01-04 Michael Snyder <msnyder@redhat.com>
1999
2000 Checkpoint/Restart for Linux.
2001 * linux-nat.c: Add support for debugging multiple forks.
2002 Add #include for linux-fork.h (interface spec).
2003 (super_mourn_inferior): New function pointer.
2004 (child_mourn_inferior): New function / target method.
2005 (linux_target): Claim to_mourn_inferior method pointer.
2006 (child_follow_fork): Call interface to linux-fork, conditionally
2007 add new fork processes to list of debugged processes.
2008 (kill_inferior): Use interface to linux-fork to kill
2009 multiple processes.
2010
2011 * linux-fork.h: New file.
2012 * linux-fork.c: New file. Support for debugging multiple forks
2013 of the same program. Support for checkpoint and restart commands.
2014
2015 * infrun.c (nullify_last_target_wait_ptid): New function.
2016
2017 * Makefile.in: Add linux-fork.
2018 * config/*/linux.mh: Add linux-fork.
2019 * NEWS: Mention new functionality.
2020
f98ce7c2
PH
20212006-01-02 Paul Hilfinger <hilfingr@nile.gnat.com>
2022
2023 * ada-exp.y (syntax definitions,write_var_or_type,write_name_assoc):
2024 Change uses of "illegal" to "invalid".
2025
52ce6436
PH
20262006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2027
2028 * ada-exp.y: Considerable reorganization to move functionality
2029 from ada-lex.l to here, where it is logically more appropriate.
2030 The original reason, however, was to prevent premature name
2031 lookups for selector names in record aggregates.
2032 (BLOCKNAME, TYPENAME, OBJECT_RENAMING): Remove; lexer now returns
2033 NAME for all of these.
2034 (VAR): New artificial token to clarify precedence rules.
2035 (OTHERS): New lexeme.
2036 (empty_stoken): New symbol.
2037 (%union): Remove ssym, voidval.
2038 (%type): Remove <voidval> type declarations.
2039 (syntax definitions): Add aggregates.
2040 Remove distinction between NAME, TYPENAME, BLOCKNAME, OBJECT_RENAMING.
2041 Rename some non-terminals to be closer to reference manual usage.
2042 Tighten up expression syntax to disallow certain non-Ada
2043 constructions such as X and then Y or else Z.
2044 (ada_parse): Remove initialization of left_block_context.
2045 (write_var_from_name): Remove.
2046 (write_var_or_type): New function, containing previous code from
2047 defunct write_var_from_name and name_lookup.
2048 (block_lookup): New function, moved from ada-lex.l
2049 (select_possible_type_sym): New function, factored out of
2050 name_lookup, which used to be in ada-lex.l.
2051 (find_primitive_type): Ditto.
2052 (chop_selector): Ditto.
2053 (write_ambiguous_var): New function, factored out of defunct
2054 write_var_from_name.
2055 (write_selectors): New function.
2056 (write_name_assoc): New function.
2057 (write_exp_op_with_string): New function.
2058
2059 * ada-lex.l (processId): Change interface to return stoken.
2060 (tempbuf, resize_tempbuf, tempbuf_size, tempbuf_len): Remove.
2061 (block_lookup, name_lookup): Remove. Functionality moved to
2062 ada-exp.y.
2063 (state IN_STRING): Remove.
2064 (rules): Handle string escapes in processString.
2065 Add 'others' token.
2066 Return all NAMEs, BLOCKNAMEs, OBJECT_RENAMINGs, TYPENAMEs in
2067 yylval.sval (as simple strings).
2068 All name look-ups now handled in ada-exp.y.
2069 Introduce "::" (COLONCOLON) token and return as separate token.
2070 (processId): Change return convention. Comment.
2071 Leave leading "'" in place.
2072 (processString): New function.
2073 (find_dot_all): Add note to comment.
2074 Fix problem that allowed match only at the end.
2075
2076 * ada-lang.c: Introduce aggregates.
2077 (find_struct_field): Add new parameter to count fields skipped, and
2078 allow other output parameters to be NULL.
2079 (value_tag_from_contents_and_address, ada_value_struct_elt): Use
2080 new find_struct_field.
2081 (ada_index_struct_field, assign_aggregate, ada_is_array_type)
2082 (num_visible_fields, ada_index_struct_field_1, ada_index_struct_field)
2083 (num_component_specs, assign_component, assign_aggregate):
2084 (aggregate_assign_from_choices,aggregate_assign_positional)
2085 (aggregate_assign_others,add_component_interval):
2086 New functions.
2087 (ada_evaluate_subexp): Declare.
2088 Add aggregate-related operators.
2089 (ada_forward_operator_length): Declare.
2090 (resolve_subexp): Add cases for new aggregate operators and OP_NAME.
2091 Consolidate Ada operators, using ada_forward_operator_length.
2092 (ada_search_struct_field): Search in forward order.
2093 (ADA_OPERATORS): Add new aggregate operators.
2094 (ada_operator_length, ada_op_name, ada_forward_operator_length)
2095 (ada_dump_subexp_body, ada_print_subexp): Handle new aggregate
2096 operators and OP_NAME.
2097 (ada_type_of_array): Use longest_to_int.
2098 (value_assign_to_component): New function.
2099 (ada_forward_operator_length, ada_op_name, ada_dump_subexp_body):
2100 Add OP_NAME case.
2101 (ada_forward_operator_length, ada_dump_subexp_body):
2102 Add OP_STRING case.
2103
2104 * ada-lang.h (enum ada_operator): Add OP_AGGREGATE, OP_OTHERS,
2105 OP_CHOICES, OP_DISCRETE_RANGE, OP_POSITIONAL.
2106
529cad9c
PH
21072006-01-02 Paul N. Hilfinger <hilfinger@adacore.com>
2108
2109 * ada-lang.c (process_raise_exception_name): Remove extraneous
2110 definition from unsubmitted code.
2111
2112 (is_lower_alphanum): New function.
2113 (ada_decode): Add support for decoding protected object subprograms
2114 and entries, and of entities declared inside protected object
2115 subprograms.
2116 Also add missing handling for__{DIGITS}+ suffixes.
2117 Allow '$<digits>' as valid overloading suffix.
2118 (is_name_suffix): Add handling for protected type entriy suffixes.
2119 Also add support for protected type subprogram suffixes, but keep
2120 it commented out for now, as there is an ambiguity between these
2121 entities and other internally generated entities.
2122 Allow '$<digits>' as valid overloading suffix.
2123 (is_valid_name_for_wild_match): New function.
2124 (wild_match): Add an exra level of verification of the entity name
2125 before declaring it a match for the given pattern.
2126
2127 (ada_type_of_array, ada_evaluate_subexp): Use more proper
2128 longest_to_int rather than cast.
2129
2130 (ada_evaluate_subexp): Use "invalid" rather than "illegal" in comment.
2131
2132 (ada_coerce_to_simple_array): Call check_size to make sure
2133 that the object size is reasonable.
2134
2135 (ada_value_primitive_packed_val): Use correct location in target
2136 buffer for extracting packed record fields that are themselves records.
2137
2138 (add_defn_to_vec): Do not try to replace a stub type by its full
2139 type. Avoids a potential infinite loop.
2140
2141 (ada_lookup_symbol): Move return incorrectly placed return statement,
2142 causing a loop that should be scanning all object files to only
2143 scan the first one.
2144
2145 (ada_tag_name_2): New function.
2146 (ada_tag_name_1): If no 'tsd' field found in the dispatching table,
2147 use alternative representation.
2148
2149 (ada_find_renaming_symbol): Strip the function name suffix when
2150 computing the XR type name.
2151
2152 (ada_to_fixed_type): Try determining the tag only if we have the
2153 object's address.
2154 (to_fixed_array_type): Add comments.
2155
2156 (ada_check_typedef): Replace expression checking whether the given
2157 type is a stub or not by a "call" to TYPE_STUB. Clearer and more
2158 consistent.
2159
2160 * ada-lang.h (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Allow
2161 '$' in addition to '.' for runtime auxiliary function name suffixes.
2162 See changes to ada_decode above.
2163
2164 (struct task_control_block): Add field called_task. (This change is
2165 to keep synchronized with our local sources; it does not affect the
2166 public version yet.)
2167
2168 * ada-typeprint.c (ada_print_type): Use int_string for printing
2169 modulus of modular type.
2170
2171 (print_range): Trivial editorial comment fix.
2172
2173 * ada-valprint.c (ada_emit_char): Use normal Ada syntax for
2174 double quote in string.
2175
9b799fe6
JB
21762006-01-01 Joel Brobecker <brobecker@adacore.com>
2177
2178 * top.c: Add 2006 to list of copyright years in file header.
2179
0bee0712
JB
21802006-01-01 Joel Brobecker <brobecker@adacore.com>
2181
2182 * top.c (print_gdb_version): Update copyright year to 2006.
2183
13c763f4
JB
21842006-01-01 Roger Sayle <roger@eyesopen.com>
2185 Elena Zannoni <ezannoni@redhat.com>
2186
2187 PR symtab/1651
2188 * xcoffread.c (xcoff_next_symbol_text): Check this_symtab_psymtab
2189 for NULL before assigning this_symtab_psymtab->objfile to objfile.
2190 (scan_xcoff_symtab): Initialize next_symbol_text_func.
2191 (Committed by Jim Blandy)
2192
e50f0da1 2193For older changes see ChangeLog-2005.
c906108c
SS
2194\f
2195Local Variables:
2196mode: change-log
2197left-margin: 8
2198fill-column: 74
2199version-control: never
2200End:
This page took 0.899319 seconds and 4 git commands to generate.