2008-08-12 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
11fa8e43
MS
12008-08-12 Michael Snyder <msnyder@vmware.com>
2
3 * MAINTAINERS: Update my email address.
4
fcb09a75
UW
52008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
6
7 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
8
a6f3e723
SL
92008-08-12 Pedro Alves <pedro@codesourcery.com>
10
11 Add no-ack mode to the remote protocol --- optionally stop ACKing
12 packets and responses when we have a reliable communication
13 medium.
14
15 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
16
17 * remote.c (struct remote_state): Add noack_mode field.
18 (PACKET_QStartNoAckMode): New.
19 (remote_start_remote): Don't any outstanding packet here.
20 (remote_open_1): Clear noack_mode. Ack any outstanding packet
21 here. Activate noack mode if requested.
22 (remote_protocol_features): Add QStartNoAckMode.
23 (remote_open_1):
24 (putpkt_binary): Don't send ack in noack mode.
25 (read_frame): Don't recompute the checksum in noack mode.
26 (getpkt_sane): Skip sending ack if in noack mode.
27 (_initialize_remote): Add set/show remote noack mode.
28 * NEWS: Note the new features.
29
8ab3d180
KB
302008-08-11 Kevin Buettner <kevinb@redhat.com>
31
32 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
33 New macros.
34 (rs6000_skip_main_prologue): New function.
35 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
36
63a61bf6
SL
372008-08-11 Sandra Loosemore <sandra@codesourcery.com>
38
39 * MAINTAINERS (Write After Approval): Add self.
40
9d4fde75
SS
412008-08-11 Stan Shebs <stan@codesourcery.com>
42
43 ARM BE8 support.
44 * disasm.c (gdb_disassemble_info): Set endian_code.
45 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
46 * gdbarch.h, gdbarch.c: Regenerate.
47 * arch-utils.c (initialize_current_architecture): Set the
48 default byte_order_for_code.
49 (gdbarch_info_init): Ditto.
50 (gdbarch_info_fill): Ditto.
51 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
52 (thumb_analyze_prologue): Swap halfword if code endianness is
53 different from general endianness.
54 (arm_skip_prologue): Similarly.
55 (arm_scan_prologue): Ditto.
56 (thumb_get_next_pc): Ditto.
57 (arm_get_next_pc): Ditto.
58 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
59 choose correct endianness for breakpoints.
60
6c613132
PA
612008-08-10 Pedro Alves <pedro@codesourcery.com>
62
63 * bsd-kvm.c: Include "gdbthread.h".
64 (bsd_kvm_ptid): New.
65 (bsd_kvm_open): Add a main thread.
66 (bsd_kvm_close): Delete it.
67 (bsd_kvm_thread_alive): New.
68 (bsd_kvm_pid_to_str): New.
69 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
70 bsd_kvm_pid_to_str.
71 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
72
6eb7ee03
PA
732008-08-09 Pedro Alves <pedro@codesourcery.com>
74
75 * buildsym.c (start_subfile): Properly cast sentinel in concat
76 call.
77 * cp-name-parser.y: Include "config.h".
78 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
79 concat call.
80 * gdb_select.h: Include sys/time.h if sys/select.h is not
81 available.
82
444c3224
PA
832008-08-09 Pedro Alves <pedro@codesourcery.com>
84
85 * go32-nat.c: Include "gdbthread.h".
86 (go32_stop, go32_kill_inferior): Delete the main thread.
87 (go32_create_inferior): Add it.
88 (go32_thread_alive, go32_pid_to_str): New.
89 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
90
9d0b3624
PA
912008-08-09 Pedro Alves <pedro@codesourcery.com>
92
93 * go32-nat.c (fetch_register, store_register): Pass the regcache
94 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
95 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
96 (struct seg_descr, struct seg_descr): pack the whole struct
97 instead of each member individually.
98
509238d6
AS
992008-08-09 Andreas Schwab <schwab@suse.de>
100
101 * python/python.c (_initialize_python): Use unabbreviated commands
102 in prefix name.
103
c068b4e8
DJ
1042008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
105
106 * Makefile.in (stamp-h): Also create .deps.
107
21374e5f
TT
1082008-08-09 Tom Tromey <tromey@redhat.com>
109
110 * Makefile.in (generated_files): Add GNULIB_H.
111
7be67755
DA
1122008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
113
114 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
115 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
116 Revise comment.
117 (pa64_current_sos): Remove map private warning warning.
118 * solib-som.c: Include string.h and sys/utsname.h.
119 (get_hpux_major_release): New function.
120 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
121 about shared library private mapping on HP-UX 11 and later. Only force
122 private mapping of shared libraries on HP-UX 10 and earlier.
123 (link_map_start): Delete warning.
124
e0c62198
L
1252008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
126 H.J. Lu <hongjiu.lu@intel.com>
127 Mark Kettenis <kettenis@gnu.org>
128
129 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
130 (amd64_init_frame_cache): Initialize saved_sp_reg.
131 (amd64_analyze_stack_align): New.
132 (amd64_analyze_prologue): Call it.
133 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
134 %rip to 8 when halfway aligning the stack.
135
136 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
137 AMD64_R14_REGNUM.
138
139 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
140 saved_sp_reg.
141 (i386_alloc_frame_cache): Remove stack_align. Initialize
142 saved_sp_reg to -1.
143 (i386_analyze_stack_align): Rewrite.
144 (i386_frame_cache): Use saved_sp_reg if it is valid.
145
b9db4ced
UW
1462008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
147
148 * target.c: Include "solib.h".
149 (target_pre_inferior): Call no_shared_libraries.
150 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
151 or clear_solib.
152 (attach_command): Do not call clear_solib.
153
3979a37f
MK
1542008-08-09 Mark Kettenis <kettenis@gnu.org>
155
156 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
157 the %eip register.
158
2b26d9fa
TT
1592008-08-08 Tom Tromey <tromey@redhat.com>
160
161 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
162 POSTCOMPILE.
163 (python-utils.o): Likewise.
164
f1648876
AS
1652008-08-08 Andreas Schwab <schwab@suse.de>
166
167 * corefile.c (_initialize_core): Remove spurious paren from set
168 gnutarget doc string.
169
b7622095
LM
1702008-08-08 Luis Machado <luisgpm@br.ibm.com>
171
172 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 173 Define PPC_FEATURE_BOOKE.
b7622095
LM
174 (ppc_linux_get_hwcap): New function.
175 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
176 4-bytes alignment restrictions.
177 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
178 positioning of the read/write flags.
179 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
180 4-bytes alignment.
181
2dc38344
PA
1822008-08-08 Pedro Alves <pedro@codesourcery.com>
183
184 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
185
186 * win32-nat.c (win32_add_thread): Change thread argument type to
187 ptid_t. Adjust.
188 (win32_add_thread): Adjust.
189 (win32_delete_thread): Change thread argument type to ptid_t.
190 Adjust.
191 (win32_fetch_inferior_registers, win32_store_inferior_registers)
192 (win32_resume, get_win32_debug_event, get_win32_debug_event)
193 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
194 (init_win32_ops): Put to_magic last.
195 (win32_win32_thread_alive): Adjust.
196
4d6c6261
PA
1972008-08-08 Pedro Alves <pedro@codesourcery.com>
198
199 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
200 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
201
e5ef4d75
PA
2022008-08-08 Pedro Alves <pedro@codesourcery.com>
203
204 * remote-m32r-sdi.c: Include "gdbthread.h".
205 (remote_m32r_ptid): New.
206 (m32r_close): Delete the main thread.
207 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
208 main thread.
209 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
210 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
211
a417dc56
RW
2122008-08-07 Tom Tromey <tromey@redhat.com>
213 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
214
215 * aclocal.m4, configure: Rebuild.
216 * configure.in: Call ZW_CREATE_DEPDIR,
217 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
218 (MAKE, GMAKE): New substs.
219 * acinclude.m4: Include depstand.m4.
220 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
221 COMPILE, POSTCOMPILE, depcomp): New variables.
222 Remove all _h variables.
223 Remove many .o targets.
224 ($(srcdir)/copying.c): avoid backslash-newline after comment
225 sign (@maintainer_mode_true@).
226 (HFILES_NO_SRCDIR): Regenerate.
227 (generated_files): New variable.
228 (all_gdbtk_cflags): Likewise.
229 (.c.o): Rewrote.
230 (init.o, version.o, copying.o): Remove.
231 (distclean): Remove DEPDIR.
232 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
233 printcmd.o, procfs.o, v850ice.o): Rewrite.
234 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
235 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
236 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
237 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
238 gdbtk-wrapper.o): Likewise.
239 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
240 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
241 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
242 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
243 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
244 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
245 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
246 tui-wingeneral.o, tui-winsource.o): Likewise.
247 (all_object_files): New variable.
248 ($(all_object_files)): New target.
249 Include dependency files, when using GNU Make.
250
12ab8a60
UW
2512008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
252
253 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
254 the valid bit set. Ensure display order respects partial
255 order defined by dependency bits.
256
6536cc32
DA
2572008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
258
259 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
260 setup.
261
f73a15e4
MK
2622008-08-06 Mark Kettenis <kettenis@gnu.org>
263
264 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
265 OpenBSD 4.3.
266
d57a3c85
TJB
2672008-08-06 Vladimir Prus <vladimir@codesourcery.com>
268 Tom Tromey <tromey@redhat.com>
269 Thiago Jung Bauermann <bauerman@br.ibm.com>
270 Doug Evans <dje@google.com>
271
272 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
273 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
274 PYTHON_CFLAGS): New.
275 (python_h, python_internal_h): New.
276 (cli-script.o): Depend on python.h
277 (python.o, python-utils.o): New.
278 * cli/cli-script.c (print_command_lines): Handle python_control.
279 (execute_control_command): Handle python_control.
280 (execute_control_command_untraced): New function.
281 (while_command): Call execute_control_command_untraced.
282 (if_command): Likewise.
283 (get_command_line): Remove static attribute.
284 (read_next_line): Handle "python".
285 (recurse_read_control_structure): Handle python_control.
286 (read_command_lines): Handle python_control.
287 Include python.h.
288 * cli/cli-script.h (get_command_line): Add prototype.
289 (execute_control_command_untraced): Likewise.
290 * configure.ac: Add --with-python.
291 * defs.h (enum command_control_type) <python_control>: New
292 constant.
293 * python/python-internal.h: New file.
294 * python/python.c: New file.
295 * python/python.h: New file.
296 * python/python-utils.c: New file.
297 * NEWS: Mention Python scripting support and its new commands.
298
5141027d
UW
2992008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
300
301 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
302
353cfe88
PM
3032008-08-06 Phil Muldoon <pmuldoon@redhat.com>
304
f1648876 305 * MAINTAINERS (Write After Approval): Add self.
353cfe88 306
d6b74ac4
PM
3072008-08-06 Phil Muldoon <pmuldoon@redhat.com>
308
309 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
310 (insert_breakpoint_locations): Likewise.
311
ef0d312a
MS
3122008-08-05 Phil Muldoon <pmuldoon@redhat.com>
313
314 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
315 breakpoint.
316 (set_longjmp_breakpoint): Likewise.
317
fb6d93b2
UW
3182008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
319
320 PR build/2490
321 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
322 defined.
323
e6ad058a
TT
3242008-08-05 Tom Tromey <tromey@redhat.com>
325
326 * bcache.c (deprecated_bcache_added): Initialize obstack.
327 (bcache_xmalloc): Don't initialize obstack.
328 (bcache_xfree): Conditionally free obstack.
329 (bcache_memory_used): Update.
330
11d31d94
TT
3312008-08-05 Tom Tromey <tromey@redhat.com>
332
333 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
334 bcache_full.
335 (append_psymbol_to_list): Accept a const pointer.
336 (add_psymbol_to_list): Fix const correctness.
337 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
338 (bcache_full): Declare.
339 * bcache.c (bcache_data, deprecated_bcache): Remove.
340 (bcache): Use bcache_full.
341 (bcache_full): Rename from deprecated_bcache_added. Change return
342 type.
343
5be973eb
SS
3442008-08-04 Stan Shebs <stan@codesourcery.com>
345
346 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
347 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
348 (enable_break): Remove test of BKPT_AT_SYMBOL.
349
5062cc19
KS
3502008-08-02 Keith Seitz <keiths@redhat.com>
351
352 * acinclude.m4: Include ../config/tcl.m4 to pick up
353 standard Tcl configury bits.
354 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
355 * configure.ac: Don't check if ../itcl exists when building
356 gdbtk. It could be installed.
357 Rewrite gdbtk configury to allow for using system-supplied
f1648876 358 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
359 itcl and itk.
360 * Makefile.in: Remove everything related to itcl and itk.
361 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
362 configure.ac.
363 Remove v850ice.o build rule.
364 (ALL_TCL_CFLAGS): New convenience defintion. Change all
365 gdbtk sources to use it.
366 * configure: Regenerate.
f1648876 367
6d76a53d
SS
3682008-07-31 Stan Shebs <stan@codesourcery.com>
369
370 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
371
ed7c5e43
SS
3722008-07-30 Stan Shebs <stan@codesourcery.com>
373
374 * objfiles.c (TARGET_KEEP_SECTION): Remove.
375 (add_to_objfile_sections): Remove use.
376
22ad7fee
TT
3772008-07-29 Tom Tromey <tromey@redhat.com>
378
379 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
380 (lookup_cmd_composition): Likewise.
381
d5529a84
TT
3822008-07-29 Tom Tromey <tromey@redhat.com>
383
384 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
385 dead code. Fix indentation.
386
938f4ca8
SS
3872008-07-29 Stan Shebs <stan@codesourcery.com>
388
389 * main.c (captured_main): Remove long-unused #if 0 blocks.
390
7f4b89d1
TT
3912008-07-28 Tom Tromey <tromey@redhat.com>
392
393 * annotate.h (deprecated_annotate_starting_hook): Remove.
394 (deprecated_annotate_stopped_hook): Remove.
395 (deprecated_annotate_exited_hook): Remove.
396 * Makefile.in (annotate.o): Depend on observer_h.
397 * top.c (deprecated_delete_breakpoint_hook): Remove.
398 (deprecated_create_breakpoint_hook): Likewise.
399 (deprecated_modify_breakpoint_hook): Likewise.
400 * interps.c (clear_interpreter_hooks): Update for removed hooks.
401 * breakpoint.c (mention): Don't call removed hook.
402 (delete_breakpoint): Likewise.
403 (disable_breakpoint): Likewise.
404 (do_enable_breakpoint): Likewise.
405 * annotate.c: Include observer.h.
406 (breakpoint_changed): Change type of argument.
407 (_initialize_annotate): Register observers.
408 (deprecated_annotate_starting_hook): Remove.
409 (deprecated_annotate_stopped_hook): Remove.
410 (deprecated_annotate_exited_hook): Remove.
411 (annotate_starting): Update for hook removal.
412 (annotate_stopped): Likewise.
413 (annotate_exited): Likewise.
414 * defs.h (deprecated_delete_breakpoint_hook): Remove.
415 (deprecated_create_breakpoint_hook): Likewise.
416 (deprecated_modify_breakpoint_hook): Likewise.
417
8641e682
TT
4182008-07-28 Tom Tromey <tromey@redhat.com>
419
420 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
421
064ef605
DJ
4222008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
423
424 * configure.ac: Check for the GNU/Linux ptrace signature.
425 * configure: Regenerated.
426
57380f4e
DJ
4272008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
428
429 * linux-nat.c (resume_callback): Add more debugging output.
430 (linux_nat_has_pending_sigint): New function, based on
431 linux_nat_has_pending.
432 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
433 (stop_wait_callback): Remove flush_mask handling. Honor
434 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
435 to recursive calls.
436 (linux_nat_has_pending, flush_callback): Remove.
437 (linux_nat_filter_event): Check for ignore_sigint.
438 (linux_nat_wait): Remove flush_mask support and call to
439 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
440 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
441
e09490f1
DJ
4422008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
443
444 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
445 report events from resumed threads.
446
e38d4e1a
DJ
4472008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
448
449 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
450 (mips_linux_init_abi): Set tdep->syscall_next_pc.
451 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
452 mips-tdep.h.
453 (mips32_next_pc): Handle the syscall instruction.
454 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
455 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
456
fa8de41e
TT
4572008-07-26 Tom Tromey <tromey@redhat.com>
458
459 PR gdb/1158:
460 * valops.c (value_struct_elt): Treat function-valued field as a
461 static method.
462
ccb3ac8a
TT
4632008-07-26 Tom Tromey <tromey@redhat.com>
464
465 PR gdb/1136:
466 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
467 longer tokens first.
468
d72314c6
VP
4692008-07-26 Vladimir Prus <vladimir@codesourcery.com>
470
471 Kill cmd_async_ok.
f1648876
AS
472 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
473 (get_cmd_async_ok): Remove.
474 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
475 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
476 * infcmd.c (_initialize_infcmd): Likewise.
477 * thread.c (_initialize_thread): Likewise.
d72314c6 478
5b68030f
JM
4792008-07-25 Joseph Myers <joseph@codesourcery.com>
480
481 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
482 128-bit long doubles in even-odd pairs of FPRs. Do not
483 right-align float arguments for big-endian.
484 (mips_n32n64_return_value): Apply return value convention for
485 structs containing one or two floating-point values to soft-float
486 as well as hard-float. Handle 128-bit long doubles in such
487 structs.
488 (mips_o32_push_dummy_call): Only skip one integer register for a
489 float argument passed in an FPR.
490
383f836e
TT
4912008-07-25 Tom Tromey <tromey@redhat.com>
492
493 * tui/tui-hooks.c: Include observer.h.
494 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
495 Remove.
496 (tui_bp_created_observer, tui_bp_deleted_observer,
497 tui_bp_modified_observer): New globals.
498 (tui_install_hooks): Use observers, not events.
499 (tui_remove_hooks): Likewise.
500 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
501 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
502 globals.
503 (breakpoint_notify): Check mi_can_breakpoint_notify.
504 (breakpoint_hooks): Remove.
505 (mi_cmd_break_insert): Attach observers. Don't use events.
506 * tracepoint.c: Include observer.h, not gdb-events.h.
507 (tracepoint_operation, trace_pass_command): Notify observer.
508 * interps.c: Don't include gdb-events.h.
509 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
510 * gdbarch.c: Rebuild.
511 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
512 (deprecated_current_gdbarch_select_hack): Notify observer.
513 * breakpoint.h: Don't include gdb-events.h.
514 * breakpoint.c: Don't include gdb-events.h.
515 (condition_command): Notify observer.
516 (commands_command): Likewise.
517 (commands_from_control_command): Likewise.
518 (mention, delete_breakpoint, set_ignore_count): Likewise.
519 (disable_breakpoint, do_enable_breakpoint): Likewise.
520 * Makefile.in (gdb_events_h): Remove.
521 (breakpoint_h): Update.
522 (COMMON_OBS): Remove gdb-events.o.
523 (gdb-events.o): Remove.
524 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
525 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
526 * gdb-events.c: Remove.
527 * gdb-events.h: Remove.
528 * gdb-events.sh: Remove.
529
60e569b9
PA
5302008-07-24 Pedro Alves <pedro@codesourcery.com>
531
532 * remote.c (remote_threads_extra_info): Don't query the remote
533 server about info on the internally added main thread.
534
a6a7f2a5
AR
5352008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
536
537 * nto-procfs.c (procfs_attach): Populate initial thread list.
538 (procfs_wait): Return new pid, built from the inferior status.
539
e63e4db2
TJB
5402008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
541
542 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
543 * configure: Regenerate.
544
14ef7606
AR
5452008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
546
547 * nto-procfs.c (procfs_xfer_memory): Changed signature.
548 (procfs_resume): Workaround for dereferencing type-punned pointer
549 warning.
f1648876 550 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
551 correct.
552 * nto-tdep.h (nto_parse_redirection): Likewise.
553
cfd8ab24
SS
5542008-07-21 Stan Shebs <stan@codesourcery.com>
555
556 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
557 * gdbarch.sh: Adjust comment to refer to
558 in_solib_dynsym_resolve_code().
559 * gdbarch.h, gdbarch.c: Update.
560 * solib-osf.c: Ditto.
561 * infrun.c: Ditto.
562 (handle_inferior_event): Use in_solib_dynsym_resolve_code
563 unconditionally.
564 * config/mips/nm-irix5.h: Remove undef of
565 IN_SOLIB_DYNSYM_RESOLVE_CODE.
566
781b42b0
TT
5672008-07-21 Tom Tromey <tromey@redhat.com>
568
569 * symfile.c (reread_symbols): Don't pass argument to observer.
570 * exec.c (exec_file_attach): Don't pass argument to observer.
571 * ada-lang.c (ada_executable_changed_observer): Remove argument.
572 * symtab.c (symtab_observer_executable_changed): Remove argument.
573 * observer.sh: Handle functions with no arguments.
574
a366c65a 5752008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 576 Chris Demetriou <cgd@google.com>
a366c65a
CD
577
578 * elfread.c (elf_symfile_segments): Fix the check that each loadable
579 section fits within an ELF segment to handle ELF segments that hit
580 the end of the address space.
581
073d253f
CD
5822008-07-20 Chris Demetriou <cgd@google.com>
583
584 * MAINTAINERS (Write After Approval): Add self.
585
d7d9f01e
TT
5862008-07-18 Tom Tromey <tromey@redhat.com>
587
588 PR gdb/855:
589 * NEWS: Add entry for macro commands.
590 * Makefile.in (macrocmd.o): Add gdb_string.h.
591 * macroscope.h (user_macro_scope): Declare.
592 (default_macro_scope): Update documentation.
593 (macro_user_macros): Declare.
594 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
595 Use user_macro_scope.
596 (null_macro_lookup): Remove.
597 * macrotab.h (macro_callback_fn): Declare.
598 (macro_for_each): Likewise.
599 (macro_allow_redefinitions): Likewise.
600 * macrotab.c (foreach_macro): New function
601 (macro_for_each): Likewise.
602 (struct macro_table) <redef_ok>: New field.
603 (macro_allow_redefinitions): New function.
604 (new_macro_table): Update.
605 (macro_define_function): Likewise.
606 (macro_define_object): Likewise.
607 * macroscope.c (user_macro_scope): New function.
608 (default_macro_scope): Use it.
609 (macro_user_macros): New global.
610 (standard_macro_lookup): Look in macro_user_macros.
611 (_initialize_macroscope): New function.
612 * macroexp.h (macro_is_whitespace, macro_is_digit,
613 macro_is_identifier_nondigit): Declare.
614 * macroexp.c (macro_is_whitespace): Rename. No longer static.
615 (macro_is_digit): Likewise.
616 (macro_is_identifier_nondigit): Likewise.
617 (get_identifier): Update.
618 (get_pp_number): Likewise.
619 (get_token): Likewise.
620 * macrocmd.c (skip_ws): New function.
621 (extract_identifier): Likewise.
622 (free_macro_definition_ptr): Likewise.
623 (user_macros): Remove.
624 (macro_define_command): Implement.
625 (_initialize_macrocmd): Update.
626 (macro_undef_command): Implement.
627 (print_one_macro): New function.
628 (macro_list_command): Implement.
629
0f72fb1c
JM
6302008-07-18 Joseph Myers <joseph@codesourcery.com>
631
632 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
633 in BFD ELF check.
634 * configure: Regenerate.
635
7c6467a4
PP
6362008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
637
638 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
639
680b56ce
AS
6402008-07-15 Andreas Schwab <schwab@suse.de>
641
642 * valops.c (value_cast_pointers): Follow typedefs when checking
643 result of coercion.
644
7f0df278
DJ
6452008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
646
647 * block.c (block_function): Renamed to ...
648 (block_linkage_function): ... this. All callers changed.
649 * block.h (block_function): Renamed to ...
650 (block_linkage_function): ... this.
651
ba2c6aec
DJ
6522008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
653
654 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
655
d56907c1
DJ
6562008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
657
658 * frame.c (frame_sp_unwind): Delete.
659 (get_frame_sp): Do not use it.
660 * frame.h (frame_sp_unwind): Delete prototype.
661
f92aeb88
DJ
6622008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
663
664 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
665
ad1193e7
DJ
6662008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
667
668 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
669 * frame.c (frame_unwind_address_in_block): Delete.
670 (get_frame_address_in_block): Do not use it. Check the type
671 of the next frame first.
672 (frame_cleanup_after_sniffer): Update comment.
673 * frame.h (frame_unwind_address_in_block): Delete prototype.
674 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
675
ef02daa9
DJ
6762008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
677
678 * frame.c (frame_func_unwind): Delete.
679 (get_frame_func): Do not use it.
680 * frame.h (frame_func_unwind): Delete prototype.
681 * hppa-tdep.c (hppa_frame_cache): Update comment.
682 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
683
96e32df8
SS
6842008-07-14 Stan Shebs <stan@codesourcery.com>
685
686 * remote-sim.c (init_gdbsim_ops): Remove
687 TARGET_REDEFINE_DEFAULT_OPS.
688
ab8650a3
DJ
6892008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
690
691 * findvar.c (read_var_value): Remove unused variable.
692
8c90c137
LM
6932008-07-15 Luis Machado <luisgpm@br.ibm.com>
694
695 * infrun.c (handle_inferior_event): Tag threads as stopped
696 before inserting breakpoints.
697
4098af0f
HZ
6982008-07-15 Hui Zhu <teawater@gmail.com>
699
700 * MAINTAINERS: Added myself to section Write After Approval.
701
7093c834
PP
7022008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
703
704 PR gdb/2477
705 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 706
56514771
PA
7072008-07-14 Pedro Alves <pedro@codesourcery.com>
708
709 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
710 (i386_dicos_push_dummy_code): New.
711 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
712 Register i386_dicos_push_dummy_code.
713
74ed0bb4
MD
7142008-07-14 Markus Deuling <deuling@de.ibm.com>
715
716 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
717 (mips_n32n64_push_dummy_call, mips_o64_return_value)
718 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
719
720 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
721 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
722 (mips_n32n64_fp_arg_chunk_p): Update caller.
723
724 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
725 (mips_n32n64_push_dummy_call): Update caller.
726
727 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
728 current_gdbarch.
729 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
730 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
731
732
733 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
734 current_gdbarch.
735 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
736 (mips_o64_push_dummy_call): Update caller.
737
738 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
739 (fp_register_arg_p, mips_dump_tdep): Update caller.
740
741 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
742 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
743
744 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
745 current_gdbarch.
746 (mips32_scan_prologue): Update caller.
747
748 (heuristic_proc_start): Add gdbarch as parameter. Replace
749 current_gdbarch.
750 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
751
752 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
753 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
754 the current architecture. Update call to getregs_supplies.
755 (getregs_supplies): Add gdbarch as parameter and replace
756 current_gdbarch.
757
758 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
759 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
760 NBSD_MIPS_JB_ELEMENT_SIZE.
761 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
762 replace current_gdbarch.
763
764 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
765 current_gdbarch.
766 (mips_fetch_registers, mips_store_registers): Update call
767 to mips_map_regno.
768 (mips_load): Use get_regcache_arch to get at the current_architecture
769 and replace current_gdbarch.
770
0c501536
PA
7712008-07-13 Pedro Alves <pedro@codesourcery.com>
772
773 * thread.c (restore_selected_frame): On fail to restore, select
774 the innermost frame, and don't crash when warning the user.
775
db009c8a
JB
7762008-07-13 Hui Zhu <teawater@gmail.com>
777
778 * symtab.c (expand_line_sal): Fix a memory leak.
779
0ffe5012
PA
7802008-07-13 Pedro Alves <pedro@codesourcery.com>
781
782 * utils.c (struct continuation): Define as inheriting struct
783 cleanup.
784 (add_continuation, do_all_continuations)
785 (discard_all_continuations, add_intermediate_continuation)
786 (do_all_intermediate_continuations)
787 (discard_all_intermediate_continuations): Adjust.
788
dbba8251
VP
7892008-07-13 Vladimir Prus <vladimir@codesourcery.com>
790
791 Skip varobj in running threads.
680b56ce
AS
792 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
793 thread is not stopped, skip the varobj.
794 * Makefile.in: Update dependencies.
dbba8251 795
e3d6cd5f
VP
7962008-07-13 Vladimir Prus <vladimir@codesourcery.com>
797
798 Enable all commands while inferiour is running
680b56ce
AS
799 * mi/mi-main.c (mi_cmd_execute): Don't check if
800 inferiour is executing.
e3d6cd5f 801
b10a37b1
VP
8022008-07-13 Vladimir Prus <vladimir@codesourcery.com>
803
804 Allow all CLI command even if target is executing.
680b56ce
AS
805 * gdb/top.c (execute_command_1): Don't check if the inferiour
806 is running.
b10a37b1 807
ea069267
VP
8082008-07-13 Vladimir Prus <vladimir@codesourcery.com>
809
810 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
811 Fix printing of frame, when frame is wrong.
812
cdc9523a
UW
8132008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
814
815 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
816 backchain is unreadable.
817
d5b25491
UW
8182008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
819
820 * spu-linux-nat.c: Include "gdbthread.h".
821 (spu_child_post_startup_inferior): Register main thread.
822 (spu_child_post_attach): Likewise.
823 * Makefile.in (spu-linux-nat.o): Update dependencies.
824
604ead4a
PA
8252008-07-12 Pedro Alves <pedro@codesourcery.com>
826
827 Rewrite continuations internals on top of cleanups and plug
828 continuation arguments leaks.
829
830 * defs.h (struct continuation): Make it opaque.
831 (add_continuation, add_intermediate_continuation): Drop the int
832 argument of the continuation hook argument. Add
833 continuation_free_args argument.
834 (do_all_continuations, do_all_intermediate_continuations): Drop
835 the error_p argument.
836
837 * utils.c (add_continuation): Drop the int argument of the
838 continuation hook argument. Add continuation_free_args argument.
839 Reimplement on top of cleanups.
840 (do_all_continuations): Drop error argument. Reimplement on top
841 of cleanups.
842 (discard_all_continuations): Reimplement on top of cleanups.
843 (add_intermediate_continuation): Drop the int argument of the
844 continuation hook argument. Add continuation_free_args argument.
845 Reimplement on top of cleanups.
846 (do_all_intermediate_continuations): Drop error argument.
847 Reimplement on top of cleanups.
848 (discard_all_intermediate_continuations): Reimplement on top of
849 cleanups.
850
851 * breakpoint.c (until_break_command_continuation): Drop error
852 argument. Add xfree as continuation argument deleter.
853
854 * inf-loop.c (inferior_event_handler): On error, discard all
855 continuations. Adjust to new do_all_intermediate_continuations
856 and do_all_continuations interfaces.
857
858 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
859 Pass xfree as continuation argument deleter.
860 (finish_command_continuation): Drop error_p argument. Adjust.
861 (finish_command_continuation_free_arg): New.
862 (finish_command): Pass finish_command_continuation_free_arg as
863 continuation argument deleter. Adjust to new do_all_continuations
864 interfaces.
865 (attach_command_continuation): Drop error_p argument.
866 (attach_command_continuation_free_args): New.
867 (attach_command): Pass attach_command_continuation_free_args as
868 continuation argument deleter.
869
870 * interps.c (interp_set): Adjust to new do_all_continuations
871 interfaces.
872
873 * event-top.c (stdin_event_handler): In error, also discard the
874 intermediate continuations.
875
bfec99b2
PA
8762008-07-12 Pedro Alves <pedro@codesourcery.com>
877
878 Replace struct continuation_args by void* and per command structs.
879
880 * top.c (execute_command): Remove unused arg1 and arg2 locals.
881
882 * breakpoint.c (struct until_break_command_continuation_args):
883 New.
884 (until_break_command_continuation): Take a void* instead of a
885 continuations_arg. Adjust.
886 (until_break_command): Adjust to use struct
887 until_break_command_continuation_args instead of struct
888 continuation_arg.
889
890 * infcmd.c (struct step_1_continuation_args): New.
891 (step_1_continuation): Take a void* instead of a
892 continuations_arg. Adjust to use struct step_1_continuation_args.
893 (step_once): Adjust to use struct step_1_continuation_args.
894
895 (struct finish_command_continuation_args): New.
896 (finish_command_continuation): Take a void* instead of a
897 continuations_arg. Adjust to use struct
898 finish_command_continuation_args.
899 (finish_command): Adjust to use struct
900 finish_command_continuation_args.
901 (struct attach_command_continuation_args): New.
902 (attach_command_continuation): Take a void* instead of a
903 continuations_arg. Adjust to use struct
904 attach_command_continuation_args.
905 (attach_command): Adjust to use struct
906 attach_command_continuation_args.
907
908 * defs.h (struct continuation_arg): Delete.
909 (struct continuation): Replace the struct continuation_arg*
910 parameter of continuation_hook by a void*. Replace "arg_list"
911 member by a new "args" member with void* type.
912 (add_continuation, add_intermediate_continuation): Replace struct
913 continuation_arg type usages by void* usages.
914
915 * utils.c (add_continuation, do_all_continuations)
916 (add_intermediate_continuation)
917 (do_all_intermediate_continuations): Replace struct
918 continuation_arg type usages by void* usages. Pass "args" instead
919 of "arg_list".
920
2afb61aa
PA
9212008-07-12 Pedro Alves <pedro@codesourcery.com>
922
923 * infrun.c (struct thread_stepping_state): Delete sal member.
924 (init_thread_stepping_state): Add local sal. Use it instead of
925 tss->sal.
926 (handle_inferior_event): New local stop_pc_sal. Use it instead of
927 tss->sal.
928 (step_into_function): Add local stop_func_sal. Use it instead of
929 tss->sal.
930
77ebaa5a
VP
9312008-07-12 Vladimir Prus <vladimir@codesourcery.com>
932
933 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
934 * infcmd.c (continue_1): New, extracted from
935 (continue_command): ...here.
936 (interrupt_target_1): New, extracted from
937 (interrupt_target_command): ...here.
938 * inferior.h (continue_1, interrupt_target_1): New.
939 * mi/mi-main.c (mi_cmd_exec_continue)
940 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 941
1e92afda
VP
9422008-07-12 Vladimir Prus <vladimir@codesourcery.com>
943
944 Implement --thread and --frame.
945 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
946 * thread.c (find_thread_id): Make non-static.
947 * mi/mi-main.c (mi_cmd_execute): Switch to the right
948 thread and frame, if necessary.
949 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
950 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 951
d56b7306
VP
9522008-07-12 Vladimir Prus <vladimir@codesourcery.com>
953
954 * infrun.c (resume): Discard cleanups on early exit path.
955
b1a268e5
VP
9562008-07-12 Vladimir Prus <vladimir@codesourcery.com>
957
680b56ce 958 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
959 were stopped.
960
90139f7d
VP
9612008-07-12 Vladimir Prus <vladimir@codesourcery.com>
962
963 Report thread state in -thread-info output.
680b56ce 964 * thread.c (print_thread_info): Add new field "state".
90139f7d 965
a0d21d28
PA
9662008-07-11 Pedro Alves <pedro@codesourcery.com>
967
968 * infrun.c (handle_inferior_event): Also ignore a
969 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
970
14032a66
TT
9712008-07-11 Tom Tromey <tromey@redhat.com>
972
973 * completer.c (complete_line_internal): New function, from
974 complete_line. Add 'for_help' parameter.
975 (complete_line): Use it.
976 (command_completer): Move later. Rewrite.
977
65fc9b77
PA
9782008-07-11 Pedro Alves <pedro@codesourcery.com>
979
980 * thread.c (thread_apply_command): Move making the cleanup out of
981 the loop.
982
4f8d22e3
PA
9832008-07-11 Pedro Alves <pedro@codesourcery.com>
984
985 Exited threads.
986
987 * thread.c (enum thread_state): New.
988 (thread_state main_thread_running): Delete, in favor of...
989 (thread_state main_thread_state): ... this. Update throughout.
990 (clear_thread_inferior_resources): New, split from free_thread.
991 (free_thread): Call clear_thread_inferior_resources.
992 (init_thread_list): Set main thread to stopped state.
993 (add_thread_silent): Take care of PTID reuses.
994 (delete_thread): If deleting inferior_ptid or a thread with
995 refcount > 0, mark it as exited, but still keep it in the list.
996 Only notify of thread exits, if we haven't done so yet.
997 (iterate_over_threads): Make it safe to delete threads while
998 iterating over them.
999 (do_captured_list_thread_ids): Don't account for exited threads.
1000 (thread_alive): Check for the THREAD_EXITED state, and don't set
1001 ptid to -1 on exited threads.
1002 (set_running): Update to account for extra possible states.
1003 (is_thread_state): New.
1004 (is_stopped, is_exited): New.
1005 (is_running): Implement in terms of is_thread_state.
1006 (any_running): Update.
1007 (print_thread_info): Update. Account for exited threads. Don't
1008 warn about missed frame restoring here, its done in the cleanup.
1009 (switch_to_thread): Don't read from a thread that has gone.
1010 (restore_current_thread): In non-stop mode, do a full context
1011 switch.
1012 (restore_selected_frame): Add a frame_level argument. Rewrite.
1013 (struct current_thread_cleanup): Add selected_frame_level and
1014 was_stopped members.
1015 (do_restore_current_thread_cleanup): Check if thread was stopped
1016 and still is, and if the target has registers, stack and memory
1017 before restoring the selected frame. Don't delete the cleanup
1018 argument here.
1019 (restore_current_thread_cleanup_dtor): New.
1020 (make_cleanup_restore_current_thread): Remove all arguments.
1021 Rewrite.
1022 (thread_apply_all_command): Update. Prune threads.
1023 (thread_apply_command): Update.
1024 (thread_command): Account for currently selected exited thread.
1025 (do_captured_thread_select): Check for a running thread. Prune
1026 threads.
1027 (_initialize_thread): Make "info threads", "thread", "thread
1028 apply", and "thread apply all" appliable without a selected thread.
1029 * gdbthread.h (struct thread_info): Replace running_ by state_.
1030 Add refcount.
1031 (is_exited, is_stopped): Declare.
1032 (make_cleanup_restore_current_thread): Remove all arguments.
1033 * infrun.c: Include "event-top.h".
1034 (fetch_inferior_event): In non-stop mode, restore selected thread
1035 and frame after handling the event and running breakpoint
1036 commands. Display GDB prompt if needed.
1037 (normal_stop): In non-stop mode, don't print thread switching
1038 notice.
1039 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
1040 (get_cmd_no_selected_thread_ok): New.
1041 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
1042 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
1043 Declare.
1044 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
1045 no-selected-thread ok.
1046 * top.c (execute_command): Check for non no-selected-thread-ok
1047 commands.
1048 * linux-nat.c (struct saved_ptids, threads_to_delete)
1049 (record_dead_thread, prune_lwps): Delete.
1050 (exit_lwp): Unconditionally delete thread.
1051 (linux_nat_resume): Remove prune_lwps call.
1052 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
1053 of is_running. Adjust to make_cleanup_restore_current_thread
1054 interface change.
1055 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
1056 selected thread has exited.
1057 * inf-loop.c (inferior_event_handler): Don't display the prompt
1058 here.
1059 * varobj.c (c_value_of_root): Update.
1060 * defs.h (make_cleanup_dtor): Declare.
1061 * utils.c (make_cleanup_dtor): New.
1062
1063 * Makefile.in (infrun.o): Depend on $(event_top_h).
1064
8cae4b3f
PA
10652008-07-11 Pedro Alves <pedro@codesourcery.com>
1066
1067 Add "continue -a" and "interrupt -a" options for non-stop mode.
1068
1069 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
1070 (continue_command): Add "-a" option.
1071 (interrupt_target_command): Add "-a" option.
1072 (_initialize_infcmd): Add extend help of continue and interrupt
1073 command to mention the new "-a" option. Mark "continue" async ok.
1074
bf250677
DE
10752008-07-10 Doug Evans <dje@google.com>
1076
1077 Add "set print symbol-loading on|off".
1078 * NEWS: Document new option.
1079 * symfile.h (print_symbol_loading): Declare.
1080 * symfile.c (print_symbol_loading): New global.
1081 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
1082 from ..." if print_symbol_loading.
1083 (_initialize_symfile): Add set/show print symbol-loading.
1084 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
1085 if print_symbol_loading.
1086
4c28f408
PA
10872008-07-10 Pedro Alves <pedro@codesourcery.com>
1088
1089 Non-stop linux native.
1090
1091 * linux-nat.c (linux_test_for_tracefork): Block events while we're
1092 here.
1093 (get_pending_status): Implement non-stop mode.
1094 (linux_nat_detach): Stop threads before detaching.
1095 (linux_nat_resume): In non-stop mode, always resume only a single
1096 PTID.
1097 (linux_handle_extended_wait): On a clone event, in non-stop mode,
1098 add new lwp to GDB's thread table, and mark as running, executing
1099 and stopped appropriately.
1100 (linux_nat_filter_event): Don't assume there are other running
1101 threads when a thread exits.
1102 (linux_nat_wait): Mark the main thread as running and executing.
1103 In non-stop mode, don't stop all lwps.
1104 (linux_nat_kill): Stop lwps before killing them.
1105 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
1106 alive.
1107 (send_sigint_callback): New.
1108 (linux_nat_stop): New.
1109 (linux_nat_add_target): Set to_stop to linux_nat_stop.
1110
1111 * linux-nat.h (thread_db_attach_lwp): Declare.
1112
1113 * linux-thread-db.c (thread_get_info_callback): Check for new
1114 threads if we have none.
1115 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
1116 stopped lwp. Check for new threads if we have none.
1117 (thread_db_attach_lwp): New.
1118 (thread_db_init): Set proc_handle.pid to inferior_ptid.
1119 (check_event): Set proc_handle.pid to the stopped lwp.
1120 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
1121 lwp available, bail out if there is none.
1122
1123 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
1124 PTRACE_KILL.
1125
0aef6ba2
KB
11262008-07-10 Kevin Buettner <kevinb@redhat.com>
1127
a4fafde3
KB
1128 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
1129 `current_pc' from CORE_ADDR to ULONGEST.
1130
0aef6ba2
KB
1131 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
1132 gdbsim_stop().
1133
10568435
JK
11342008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1135
1136 * NEWS (New commands): Mention "set disable-randomization".
1137 * configure.ac: Add check for HAVE_PERSONALITY and
1138 HAVE_DECL_ADDR_NO_RANDOMIZE.
1139 * configure, config.in: Regenerate.
1140 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
1141 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
1142 ADDR_NO_RANDOMIZE.
1143 (disable_randomization, show_disable_randomization)
1144 (set_disable_randomization): New.
1145 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
1146 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
1147 variable DISABLE_RANDOMIZATION.
1148 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
1149 DISABLE_RANDOMIZATION.
1150
f9c72d52
PA
11512008-07-09 Pedro Alves <pedro@codesourcery.com>
1152
1153 Adjust all targets to new target_stop interface.
1154
1155 * gnu-nat.c (gnu_stop): Add ptid argument.
1156 * go32-nat.c (go32_stop): Add ptid argument.
1157 (go32_create_inferior): Pass inferior_ptid to go32_stop.
1158 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
1159 * monitor.c (monitor_stop): Add ptid argument.
1160 (monitor_open): Pass inferior_ptid to monitor_stop.
1161 (monitor_interrupt): Pass inferior_ptid to target_stop.
1162 (monitor_stop): Add ptid argument.
1163 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
1164 (procfs_create_inferior): Add ptid argument.
1165 * procfs.c (procfs_stop): Add ptid argument.
1166 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
1167 * remote-sim.c (gdbsim_stop): Add ptid argument.
1168 * sol-thread.c (sol_thread_stop): Add ptid argument.
1169 * win32-nat.c (win32_stop): Add ptid argument.
1170
94cc34af
PA
11712008-07-09 Pedro Alves <pedro@codesourcery.com>
1172
1173 Non-stop inferior control.
1174
1175 * infrun.c (resume): In non-stop mode, always resume just one
1176 thread.
1177 (proceed): Don't call prepare_to_proceed in non-stop mode.
1178 (fetch_inferior_event): In non-stop mode, switch context before
1179 handling the event.
1180 (error_is_running, ensure_not_running): New.
1181 (handle_inferior_event): In non-stop mode: Mark only the event
1182 thread as stopped. Require that the target module manages adding
1183 threads to the thread list. Assert that there isn't a
1184 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
1185 (normal_stop): Only mark not-running if inferior hasn't exited.
1186 In non-stop mode, only mark the event thread.
1187
1188 * thread.c:Include "cli/cli-decode.h".
1189 (print_thread_info): Don't read from a running thread.
1190 Output "(running)" if thread is running.
1191 (switch_to_thread): Don't read stop_pc if thread is executing.
1192 (do_restore_current_thread_cleanup): Don't write to a running
1193 thread.
1194 (thread_apply_all_command): Don't read from a running thread. In
1195 non-stop mode, do a full context-switch instead of just switching
1196 threads.
1197 (thread_apply_command): In non-stop mode, do a full context-switch
1198 instead of just switching threads.
1199 (do_captured_thread_select): Likewise. Inform user if selected
1200 thread is running.
1201 (_initialize_thread): Mark "info threads" and "thread" and
1202 async_ok.
1203
1204 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
1205 unregister the target from the event loop.
1206
1207 * infcmd.c (continue_command, step_1, jump_command)
1208 (signal_command): Ensure the selected thread isn't running.
1209 (interrupt_target_command): In non-stop mode, interrupt only the
1210 selected thread.
1211
1212 * inferior.h (error_is_running, ensure_not_running): Declare.
1213
1214 * target.h (struct target_ops): Add ptid argument to the to_stop
1215 member.
1216 (target_stop): Add ptid_t argument.
1217
1218 * target.c (update_current_target): Add ptid argument to to_stop's
1219 type.
1220 (debug_to_stop): Add ptid_t argument.
1221 (debug_to_rcmd): Set to_stop_ptid.
1222
1223 * remote.c (remote_stop): Add ptid_t argument.
1224 (async_remote_interrupt): Add inferior_ptid to target_stop.
1225 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
1226
1227 * Makefile.in (thread.o): Depend on $(cli_decode_h).
1228
59f0d5d9
PA
12292008-07-09 Pedro Alves <pedro@codesourcery.com>
1230
1231 Don't rely on ecs->wait_for_more.
1232
1233 * infrun.c (proceed): Clear the stepping state, set
1234 previous_inferior_ptid and clear infwait state.
1235 (wait_for_inferior): Don't clear the stepping state, set
1236 previous_inferior_ptid, or clear the infwait state here.
1237 (fetch_inferior_event): Don't clear the stepping state, set
1238 previous_inferior_ptid, or clear the infwait state here. Don't
1239 condition on wait_for_more.
1240
0d1e5fa7
PA
12412008-07-09 Pedro Alves <pedro@codesourcery.com>
1242
1243 Refactor infrun a bit.
1244
1245 * infrun.c (currently_stepping): Take a struct
1246 thread_stepping_state instead of an execution_control_state.
1247 (struct thread_stepping_state): New, split from
1248 execution_control_state.
1249 (gtss, tss): New globals.
1250 (proceed): Clear the stepping state, set previous_inferior_ptid
1251 and clear infwait state.
1252 (init_wait_for_inferior): Clear the stepping state,
1253 previous_inferior_ptid and infwait state.
1254 (waiton_ptid, infwait_state): New, split from
1255 execution_control_state.
1256 (struct execution_control_state): Members that persist through
1257 events moved out to either struct thred_stepping_state or made
1258 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
1259 (wait_for_inferior, fetch_inferior_event): Use local
1260 execution_control_state. Update to execution_control_state split.
1261 (init_execution_control_state): Adjust.
1262 (init_thread_stepping_state): New, extracted from
1263 init_execution_control_state.
1264 (context_switch): Take a ptid instead of an
1265 execution_control_state.
1266 (context_switch_to): Adjust.
1267 (adjust_pc_after_break): Adjust.
1268 (init_infwait_state): New.
1269 (handle_inferior_event): Adjust.
1270
a474d7c2
PA
12712008-07-09 Pedro Alves <pedro@codesourcery.com>
1272 Vladimir Prus <vladimir@codesourcery.com>
1273
1274 Per-thread commands.
1275
1276 * gdbthread.h: Remove unneeded forward declarations.
1277 Include "inferior.h".
1278 (struct thread_info): Add continuations,
1279 intermediate_continuations, proceed_to_finish, step_over_calls,
1280 stop_step, step_multi and stop_signal members.
1281 (save_infrun_state): Add continuations,
1282 intermediate_continuations, proceed_to_finish, step_over_calls,
1283 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1284 (load_infrun_state): Add continuations,
1285 intermediate_continuations, proceed_to_finish, step_over_calls,
1286 stop_step, step_multi, stop_signal and stop_bpstat parameters.
1287
1288 * thread.c (load_infrun_state): In non-stop mode, load
1289 continuations, intermediate_continuations, proceed_to_finish,
1290 step_over_calls, stop_step, step_multi and stop_signal.
1291 (save_infrun_state): Store continuations,
1292 intermediate_continuations, proceed_to_finish, step_over_calls,
1293 stop_step, step_multi, stop_signal and stop_bpstat.
1294 (save_infrun_state): Store continuations,
1295 intermediate_continuations, proceed_to_finish, step_over_calls,
1296 stop_step, step_multi, stop_signal and stop_bpstat.
1297 (free_thread): Clear The thread's stop_bpstat.
1298
1299 * inferior.h (context_switch_to): Declare.
1300
1301 * infrun.c (ecss): New global.
1302 (context_switch): Context switch continuations,
1303 intermediate_continuations, proceed_to_finish, step_over_calls,
1304 stop_step, step_multi, stop_signal and stop_bpstat.
1305 (wait_for_inferior): Use global ecss.
1306 (async_ecss, async_ecs): Delete.
1307 (fetch_inferior_event): Use global ecss.
1308 (context_switch_to): New.
1309
1310 * top.c (execute_command): In non-stop, only check if the current
1311 thread is running, in all-stop, check if there's any thread
1312 running.
1313
1314 * breakpoint.c (bpstat_remove_breakpoint): New.
1315 (bpstat_remove_breakpoint_callback): New.
1316 (delete_breakpoint): Clear the stop_bpstats of all threads.
1317
1318 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
1319 current thread is running, in all-stop, check if there's any
1320 thread running.
1321
1322 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
1323
ad52ddc6
PA
13242008-07-09 Pedro Alves <pedro@codesourcery.com>
1325
1326 Add non_stop global.
1327
1328 * inferior.h (non_stop): Declare.
1329 * infrun.c (non_stop, non_stop_1): New.
1330 (set_non_stop, show_non_stop): New.
1331 (_initialize_infrun): Add "set/show non-stop" command.
1332
3a3e9ee3
PA
13332008-07-09 Pedro Alves <pedro@codesourcery.com>
1334
1335 Adjust fork/vfork/exec to pass ptids around.
1336
1337 * target.h (struct target_waitstatus): Store related_pid as a ptid.
1338 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
1339 Take a ptid_t.
1340 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
1341 type to ptid.
1342 * breakpoint.c (print_it_typical, bpstat_check_location)
1343 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
1344 (create_fork_vfork_event_catchpoint): Adjust.
1345 * infrun.c (fork_event): Change parent_pid and child_pid types to
1346 ptid.
1347 (follow_exec, inferior_has_forked, inferior_has_vforked)
1348 (inferior_has_execd): Take a ptid_t and don't trim it.
1349 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
1350 * linux-nat.c (linux_child_follow_fork): Adjust.
1351 * inf-ptrace.c (inf_ptrace_wait): Adjust.
1352 * inf-ttrace.c (inf_ttrace_wait): Adjust.
1353 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
1354
8ea051c5
PA
13552008-07-09 Pedro Alves <pedro@codesourcery.com>
1356
1357 Add "executing" property to threads.
1358
1359 * inferior.h (target_executing): Delete.
1360 * gdbthread.h (struct thread_info): Add executing_ field.
1361 (set_executing, is_executing): New.
1362 * thread.c (main_thread_executing): New.
1363 (init_thread_list): Clear it and also main_thread_running.
1364 (is_running): Return false if target has no execution.
1365 (any_running, is_executing, set_executing): New.
1366
1367 * top.c: Include "gdbthread.h".
1368 (target_executing): Delete.
1369 (execute_command): Replace target_executing check by any_running.
1370 * event-top.c: Include "gdbthread.h".
1371 (display_gdb_prompt, command_handler): Replace target_executing by
1372 is_running.
1373 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
1374 here. Replace target_executing by is_running.
1375 * infrun.c (handle_inferior_event): Mark all threads as
1376 not-executing.
1377 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
1378 here.
1379 * stack.c (get_selected_block): Return null if inferior is
1380 executing.
1381 * target.c (target_resume): Mark resumed ptid as executing.
1382 * breakpoint.c (until_break_command): Replace target_executing
1383 check by is_executing.
1384 * remote.c (remote_async_resume): Don't mark inferior as executing
1385 here.
1386 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
1387 by any_running.
680b56ce 1388
8ea051c5
PA
1389 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
1390 (mi_execute_async_cli_command): Replace target_executing by
1391 is_running.
1392
1393 * frame.c (get_current_frame): Error out if the current thread is
1394 executing.
1395 (has_stack_frames): New.
1396 (get_selected_frame, deprecated_safe_get_selected_frame): Check
1397 has_stack_frames.
680b56ce 1398
8ea051c5
PA
1399 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
1400 $(gdbthread_h).
1401
4487aabf
PA
14022008-07-09 Pedro Alves <pedro@codesourcery.com>
1403
1404 * symfile.c (load_command): Reopen the exec file and reread
1405 symbols before anything else.
1406
9de2bdd7
PA
14072008-07-09 Pedro Alves <pedro@codesourcery.com>
1408
1409 * remote-sim.c: Include gdbthread.h.
1410 (remote_sim_ptid): New global.
1411 (gdbsim_create_inferior): Silently add the main task to GDB's
1412 thread list.
1413 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
1414 task from GDB's thread list.
1415 (gdbsim_resume): Adjust to use remote_sim_ptid.
1416 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
1417 (init_gdbsim_ops): Register gdbsim_thread_alive and
1418 gdbsim_pid_to_str.
1419 (_initialize_remote_sim): Initialize remote_sim_ptid.
1420 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
1421
5e0b29c1
PA
14222008-07-09 Pedro Alves <pedro@codesourcery.com>
1423
1424 * monitor (monitor_ptid): New global.
1425 (monitor_open): Silently add the main task to GDB's thread list.
1426 (monitor_close, monitor_mourn_inferior): Silently delete the main
1427 task from GDB's thread list.
1428 (monitor_thread_alive, monitor_pid_to_str): New.
1429 (init_base_monitor_ops): Register monitor_thread_alive and
1430 monitor_pid_to_str.
1431 (_initialize_remote_monitors): Initialize monitor_ptid.
1432
1433 * gdbthread.h (delete_thread_silent): Declare.
1434 * thread.c (delete_thread): Rename to ...
1435 (delete_thread_1): ... this. Add "silent" parameter. If silent,
1436 don't do exit notifications.
1437 (delete_thread, delete_thread_silent): New, as wrappers to
1438 delete_thread_1.
1439
b60e7edf
PA
14402008-07-08 Pedro Alves <pedro@codesourcery.com>
1441
1442 * breakpoint.c (update_global_location_list): Add boolean
1443 "should_insert" argument. Only insert locations if caller told it
1444 too.
1445 (update_global_location_list_nothrow): Add boolean "should_insert"
1446 argument. Pass it to update_global_location_list.
1447 (insert_breakpoints, create_longjmp_breakpoint)
1448 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
1449 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1450 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
1451 (enable_watchpoints_after_interactive_call_stop)
1452 (set_momentary_breakpoint, create_breakpoints)
1453 (break_command_really, watch_command_1)
1454 (create_ada_exception_breakpoint, update_breakpoint_locations)
1455 (do_enable_breakpoint, enable_command): Pass true to
1456 update_global_location_list.
1457 (bpstat_stop_status, disable_overlay_breakpoints)
1458 (disable_watchpoints_before_interactive_call_start)
1459 (delete_breakpoint, disable_breakpoint, disable_command): Pass
1460 false to update_global_location_list.
1461 (update_breakpoints_after_exec): Don't temporarily disable
1462 always-inserted mode.
1463
25b22b0a
PA
14642008-07-08 Pedro Alves <pedro@codesourcery.com>
1465
1466 * breakpoint.c (mark_breakpoints_out): Make public.
1467 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
1468 here. Update comment.
1469 * breakpoint.h (mark_breakpoints_out): Declare.
1470
1471 * linux-nat.c (linux_handle_extended_wait): On
1472 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
1473 * inf-ttrace.c (inf_ttrace_wait): Likewise.
1474
cce9b6bf
PA
14752008-07-08 Pedro Alves <pedro@codesourcery.com>
1476
1477 * infrun.c (follow_exec): Reset shared libraries before adding the
1478 main exec file.
1479
3c3185ac
JK
14802008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
1483
42f0bc8e
PA
14842008-07-07 Pedro Alves <pedro@codesourcery.com>
1485
1486 * i386-dicos-tdep.c: Include "inferior.h".
1487 (i386_dicos_frame_align): New.
1488 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
1489 dummy location ON_STACK.
1490 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
1491
b7292df3
JB
14922008-07-07 Joel Brobecker <brobecker@adacore.com>
1493
1494 * gstdint.h: New file.
1495
bb599c81
VP
14962008-07-05 Vladimir Prus <vladimir@codesourcery.com>
1497
1498 * mi/mi-interp.c (mi_on_resume): Don't try to report
1499 resumed thread it the thread list is empty.
1500
7f6a6314
PM
15012008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
1502
1503 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
1504 completer for set to filename_completer.
680b56ce 1505
7f6a6314
PM
1506 NEWS: Mention it.
1507
711eabed
VP
15082008-07-04 Vladimir Prus <vladimir@codesourcery.com>
1509
1510 Implement -target-attach.
680b56ce 1511 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 1512
db3b9a10
MS
15132008-06-21 Hui Zhu <teawater@gmail.com>
1514
1515 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
1516
dc177b7a
PA
15172008-07-03 Pedro Alves <pedro@codesourcery.com>
1518
1519 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
1520 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
1521
1522 * target.h (struct target_ops): Add to_attach_no_wait member.
1523 (target_attach_no_wait): New.
1524 * target.c (update_current_target): Inherit to_attach_no_wait.
1525
1526 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
1527 target_attach_no_wait runtime check.
1528
1529 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
1530 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
1531 win32_ops.
1532
caac8896
PA
15332008-07-03 Pedro Alves <pedro@codesourcery.com>
1534
1535 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
1536 on debug_displaced being set.
1537
0d254d6f
DJ
15382008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1539
1540 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
1541 directly instead of get_frame_id.
1542
f74c6cad
LM
15432008-06-30 Luis Machado <luisgpm@br.ibm.com>
1544
1545 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
1546 (deal_with_atomic_sequence): Update BC masks.
1547 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
1548 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
1549
395f2fc2
DJ
15502008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
1551
1552 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
1553 register, not the previous frame's.
1554
8340a3fb
LM
15552008-06-30 Luis Machado <luisgpm@br.ibm.com>
1556
1557 * source.c (select_source_symtab): Make sure we skip namespace
1558 symtabs when showing cpp source code.
1559
cfefc99a
HPN
15602008-06-30 Hans-Peter Nilsson <hp@axis.com>
1561
1562 * MAINTAINERS (Authorized committers): Fix my email address.
1563
1b98914a
VP
15642008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1565
1566 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
1567 -target-download and -target-select via CLI, so that
1568 the quoting rules are the same as they were (unfortunately)
1569 in all prior gdb releases.
1570 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
1571 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1572 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
1573 (mi_cmd_target_download, mi_cmd_target_select): Remove.
1574 (mi_cmd_execute): Set current_token even for commands
1575 routed via CLI.
1576
94afd7a6
UW
15772008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
1578
1579 * alphafbsd-tdep.c: Update for unwinder changes.
1580 * alpha-linux-tdep.c: Likewise.
1581 * alphanbsd-tdep.c: Likewise.
1582 * alphaobsd-tdep.c: Likewise.
1583 * avr-tdep.c: Likewise.
1584 * cris-tdep.c: Likewise.
1585 * frv-linux-tdep.c: Likewise.
1586 * frv-tdep.c: Likewise.
1587 * h8300-tdep.c: Likewise.
1588 * hppa-linux-tdep.c: Likewise.
1589 * iq2000-tdep.c: Likewise.
1590 * m32c-tdep.c: Likewise.
1591 * m32r-linux-tdep.c: Likewise.
1592 * m32r-tdep.c: Likewise.
1593 * m68hc11-tdep.c: Likewise.
1594 * mep-tdep.c: Likewise.
1595 * mn10300-tdep.c: Likewise.
1596 * mt-tdep.c: Likewise.
1597 * score-tdep.c: Likewise.
1598 * sh64-tdep.c: Likewise.
1599 * sh-tdep.c: Likewise.
1600 * sparc64fbsd-tdep.c: Likewise.
1601 * sparc64nbsd-tdep.c: Likewise.
1602 * sparc64obsd-tdep.c: Likewise.
1603 * v850-tdep.c: Likewise.
1604 * vaxobsd-tdep.c: Likewise.
1605 * vax-tdep.c: Likewise.
1606 * xstormy16-tdep.c: Likewise.
1607
e111d6c9
VP
16082008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1609
1610 * mi/mi-main.c (enum captured_mi_execute_command_actions)
1611 (captured_mi_execute_command_args): Remove.
1612 (captured_mi_execute_command): Cast the closure to mi_parse
1613 pointer, not to captured_mi_execute_command_args, and don't
1614 set the action field thereof.
1615 (mi_execute_command): Pass struct mi_parse, not
1616 captured_mi_execute_command_args to captured_mi_execute_command.
1617 (mi_execute_command): Remove (dead) code for suppressing
1618 printing prompt.
1619
84e46146
PA
16202008-06-28 Pedro Alves <pedro@codesourcery.com>
1621
1622 * linux-nat.c (enum sigchld_state): New.
1623 (linux_nat_async_events_state): Renamed from
1624 linux_nat_async_events_enabled.
1625 (linux_nat_event_pipe_push, my_waitpid): Adjust.
1626 (sigchld_default_action): New.
1627 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
1628 unconditionally.
1629 (linux_nat_create_inferior): Set events state to sigchld_default
1630 state.
1631 (linux_nat_resume): Adjust.
1632 (linux_nat_wait): Call linux_nat_async_events unconditionally.
1633 (sigchld_handler): Adjust.
1634 (linux_nat_async_mask): Don't set SIGCHLD actions here.
1635 (get_pending_events): Adjust.
1636 (linux_nat_async_events): Rewrite to handle enum sigchld_state
1637 instead of a boolean.
1638 (linux_nat_async): Adjust.
1639 (_initialize_linux_nat): Capture default SIGCHLD action into
1640 sigchld_default_action.
1641
20874c92
VP
16422008-06-28 Vladimir Prus <vladimir@codesourcery.com>
1643
680b56ce
AS
1644 * breakpoint.c (moribund_locations): New.
1645 (bpstat_stop_status): Process moribund locations.
1646 (update_global_location_list): Add removed
1647 locations to moribund_locations.
1648 (breakpoint_retire_moribund): New.
1649 * breakpoint.h (struct bp_location): New field
1650 events_till_retirement.
1651 (breakpoint_retire_moribund): Declare.
1652 * thread.c (thread_count): New.
1653 * infrun.c (handle_inferior_event): Call
1654 breakpoint_retire_moribund.
1655 * gdbthread.h (thread_count): Declare.
20874c92 1656
cd0b43b1
JM
16572008-06-27 Joseph Myers <joseph@codesourcery.com>
1658
1659 * dfp.c (decimal_convert): Call match_endianness before and after
1660 conversion.
1661
7c0f6dcc
JL
16622008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
1663
1664 * remote.c (remote_insert_breakpoint): Ensure that if Z0
1665 unsupported and we fall back to memory_insert_breakpoint, we
1666 use the unmodified requested address.
1667
01c66ae6
JB
16682008-06-27 Joel Brobecker <brobecker@adacore.com>
1669
1670 * dwarf2read.c (read_attribute_value): Issue a complaint when
1671 adjusting size attribute values of 0xffffffff as zero.
1672
7ccc1c74
JM
16732008-06-27 Joseph Myers <joseph@codesourcery.com>
1674
1675 * i386-tdep.c (i386_16_byte_align_p): New.
1676 (i386_push_dummy_call): Determine stack space required for
1677 arguments going forwards allowing for 16-byte alignment, then push
1678 arguments going forwards.
1679
c0a2216e
PA
16802008-06-27 Pedro Alves <pedro@codesourcery.com>
1681
1682 * infrun.c (start_remote): Don't clear thread list here.
1683 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
1684 list here.
1685 * remote.c (record_currthread): Upgrade the main thread and its
1686 entry in the thread list if this is the first time we hear about
1687 threads.
1688 (remote_thread_alive): Consider magic_null_ptid or a ptid without
1689 a tid member always alive.
1690 (remote_find_new_threads): Don't update the main thread here.
1691 (remote_start_remote): Clear thread list here. Always add the
1692 main thread.
1693 (extended_remote_attach_1): Add the main thread here.
1694 (extended_remote_mourn_1): Re-add the main thread here.
1695 (extended_remote_create_inferior_1): Add a main thread.
1696
1697 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
1698
87b0e16e 16992008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
1700
1701 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
1702
1703 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
1704 globals.
1705 (general_thread, continue_thread): Change type to ptid_t.
1706 (record_currthread): Take a ptid_t parameter instead of an
1707 integer.
1708 (MAGIC_NULL_PID): Delete.
1709 (set_thread): Take a ptid_t parameter and adjust.
1710 (set_general_thread, set_continue_thread): New.
1711 (remote_thread_alive, remote_newthread_step)
1712 (remote_current_thread, remote_find_new_threads)
1713 (remote_threads_info, remote_start_remote, remote_vcont_resume)
1714 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
1715 (threadalive_test, remote_pid_to_str)
1716 (remote_get_thread_local_address): Adjust.
1717 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
1718 and any_thread_ptid.
1719
3ca64bd3
JK
17202008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1721
1722 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
1723 * configure: Regenerated.
1724
28e94949
JB
17252008-06-26 Joel Brobecker <brobecker@adacore.com>
1726
1727 * dwarf2read.c (read_attribute_value): Treat size attribute
1728 values of 0xffffffff as if the attribute value was zero.
1729
8a77dff3
VP
17302008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1731
1732 * linux-nat.c: Add description of overall logic.
1733
d5af19ba
DJ
17342008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
1735
1736 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
1737 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
1738 all dependencies on $(gdb_stdint_h).
1739 (distclean): Do not delete gdb_stdint.h.
1740 * acinclude.m4: Do not use stdint.m4.
1741 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
1742 uintptr_t, and gdb_stdint.h.
1743 * defs.h: Include <stdint.h>.
1744 * gdb_thread_db.h: Assume stdint.h is already included.
1745 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
1746 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
1747 include gdb_stdint.h.
1748 * configure, config.in: Regenerate.
1749
00fbcec4
JM
17502008-06-26 Joseph Myers <joseph@codesourcery.com>
1751
1752 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
1753 decimal floating-point values in GPRs for soft-float.
1754 (do_ppc_sysv_return_value): Handle returning decimal
1755 floating-point values in GPRs for soft-float.
1756
d5086790
VP
17572008-06-26 Vladimir Prus <vladimir@codesourcery.com>
1758
1759 * target.c (target_read_until_error): New.
680b56ce
AS
1760 * target.h (target_read_until_error): Declare.
1761 * mi/mi-main.c (mi_cmd_data_read_memory): Use
1762 target_read_until_error.
d5086790 1763
fe9441f6
JK
17642008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
1767 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
1768 after the DECFLOAT detection to fix a memory leak. Remove the
1769 redundant NUM initialization. Protect the DECFLOAT detection memory
1770 access before the P block. Restore the P memory content for the
1771 DECFLOAT detection.
1772
ce8f13f8
VP
17732008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1774
1775 Kill the return value for all MI command functions.
1776 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
1777 (mi_cmd_argv_ftype): Change return type to void.
1778
1779 * mi/mi-main.c: Adjust all function that implement
1780 MI commands to return nothing.
1781 (struct captured_mi_execute_command_actions):
1782 Remove the rc field.
1783 (mi_cmd_execute): Return nothing.
1784 (mi_execute_async_cli_command): Return nothing.
1785 (mi_cmd_exec_interrupt): Don't print ^done here.
1786 (mi_cmd_target_select): Don't print ^connected here.
1787 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
1788 Special-case -target-select and output ^connected, not ^done.
1789
1790 * mi/mi-cmd-break.c: Adjust.
1791 * mi/mi-cmd-disas.c: Adjust.
1792 * mi/mi-cmd-env.c: Adjust.
1793 * mi/mi-cmd-file.c: Adjust.
1794 * mi/mi-cmd-stack.c: Adjust.
1795 * mi/mi-cmd-target.c: Adjust.
1796 * mi/mi-cmd-var.c: Adjust.
1797 * mi/mi-interp.c: Adjust.
1798 * mi/mi-symbol-cmds.c: Adjust.
1799
a2840c35
VP
18002008-06-25 Vladimir Prus <vladimir@codesourcery.com>
1801
1802 Emit ^running via observer.
1803 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
1804 ^running here.
1805 (mi_on_resume): Print ^running if not previously output.
1806 * mi/mi-main.c (running_result_record_printed): New.
1807 (captured_mi_execute_command): Reset
1808 running_result_record_printed. Use running_result_record_printed
1809 to decide if we should skip ^done.
1810 (mi_execute_async_cli_command): Don't print ^running here.
1811 * mi/mi-main.h (current_token, running_result_record_printed):
1812 Declare.
a2840c35 1813
1f41b062
MS
18142008-06-24 Michael Snyder <msnyder@specifix.com>
1815
1816 * infrun.c (_initialize_infrun): White space and typo fix.
1817
eff8332b
CF
18182008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
1819
1820 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
1821 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
1822 when first loading DLL with "dll" command.
1823
e50ce6de 18242008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
1825
1826 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 1827
e50ce6de 18282008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
1829
1830 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 1831
59ddf1e7
JB
18322008-06-18 Joel Brobecker <brobecker@adacore.com>
1833
680b56ce
AS
1834 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1835 the target cannot run.
59ddf1e7
JB
1836
18372008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
1838
1839 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
1840 we're attaching to a running process.
1841
e50ce6de 18422008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
1843
1844 * win32-nat.c (handle_load_dll): Give dll name and load address
1845 if debug_events is on.
1846 (handle_unload_dll): Likewise.
1847
8f6a8e84
VP
18482008-06-14 Vladimir Prus <vladimir@codesourcery.com>
1849
1850 Don't suppress *running when doing finish.
680b56ce
AS
1851 * infcall.c (call_function_by_hand): Set both
1852 suppress_resume_observer and suppress_stop_observer.
1853 * infcmd.c (suppress_run_stop_observers): Split into...
1854 (suppress_resume_observer, suppress_stop_observer): ...those.
1855 (finish_command_continuation): Clear suppress_stop_observer.
1856 (finish_command): Set suppress_stop_observer.
1857 * inferior.h (suppress_run_stop_observers): Split into...
1858 (suppress_resume_observer, suppress_stop_observer): ...those.
1859 * infrun.c (normal_stop): Check for suppress_stop_observer.
1860 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 1861
4309257c
PM
18622008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
1863 Pierre Muller <muller@ics.u-strasbg.fr>
1864
1865 * gdbarch.sh (gdbarch_skip_main_prologue): New.
1866 * gdbarch.h, gdbarch.c: Regenerate.
1867 * i386-tdep.h (i386_skip_main_prologue): Declare.
1868 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 1869 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
1870 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
1871 * symtab.c (find_function_start_sal): When pc points at the "main"
1872 function, call gdbarch_skip_main_prologue.
1873
a4e2ee12
DJ
18742008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
1875
1876 * value.c (value_primitive_field): Fetch lazy register values.
1877
060871df
PA
18782008-06-11 Pedro Alves <pedro@codesourcery.com>
1879
1880 * NEWS: Mention support removal of undocumented S AA p PID stop
1881 reply packet.
1882
1883 * remote.c (remote_wait): Remove undocumented S AA p PID support.
1884
336de56d
SS
18852008-06-10 Stan Shebs <stan@codesourcery.com>
1886
1887 * MAINTAINERS: Update my affiliation and address.
1888
7949220d
AS
18892008-06-10 Andreas Schwab <schwab@suse.de>
1890
1891 * top.c (print_gdb_version): Don't print final newline.
1892
e1ac3328
VP
18932008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1894
1895 Implement *running.
680b56ce
AS
1896 * Makefile.in: Update dependencies.
1897 * gdbthread.h (struct thread_info): New field
1898 running_.
1899 (set_running, is_running): New.
1900 * thread.c (set_running, is_running): New.
1901 * inferior.h (suppress_normal_stop_observer): Rename to...
1902 (suppress_run_stop_observers): ..this.
1903 * infcmd.c (suppress_normal_stop_observer): Rename to...
1904 (suppress_run_stop_observers): ..this.
1905 (finish_command_continuation, finish_command): Adjust.
1906 * infcall.c (call_function_by_hand): Adjust.
1907 * infrun.c (normal_stop): Call set_running.
1908 * target.c (target_resume): New. Call set_running.
1909 * target.h (target_resume): Convert from macro to
1910 a function.
1911
1912 * mi/mi-interp.c (mi_on_resume): New.
1913 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 1914
f7f9a841
VP
19152008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1916
1917 Use observers to report stop events in MI.
680b56ce
AS
1918 * mi/mi-interp.c (mi_on_normal_stop): New.
1919 (mi_interpreter_init): Register mi_on_normal_stop.
1920 (mi_interpreter_exec_continuation): Remove.
1921 (mi_cmd_interpreter_exec): Don't register the above.
1922 * mi/mi-main.c (captured_mi_execute_command): Don't care
1923 about sync_execution.
1924 (mi_execute_async_cli_command): Don't install continuation. Don't
1925 print *stopped.
1926 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 1927
f5871ec0
VP
19282008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1929
1930 Suppress normal stop observer when it's problematic.
680b56ce
AS
1931 * inferior.h (suppress_normal_stop_observer): New.
1932 * infcall.c (call_function_by_hand): Disable stop events when
1933 doing function calls.
1934 * infmcd.c (suppress_normal_stop_observer): New.
1935 (finish_command_continuation): Call normal_stop observer
1936 explicitly.
1937 (finish_command): Disable stop events inside proceed.
1938 * infrun.c (normal_stop): Don't call normal stop observer if
1939 suppressed of if multi-step is in progress.
f5871ec0 1940
3d3191a6
VP
19412008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1942
1943 Remove stale code.
680b56ce
AS
1944 * infrun.c (finish_command): Don't pass cleanup
1945 to continuation.
1946 (finish_command_continuation): Don't grab cleanup from
1947 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 1948
0b080f59
VP
19492008-06-10 Vladimir Prus <vladimir@codesourcery.com>
1950
1951 Introduce common cleanup for restoring integers.
680b56ce
AS
1952 * defs.h (make_cleanup_restore_integer): New declaration.
1953 (struct cleanup): New field free_arg.
1954 (make_my_cleanup_2): New.
1955 * utils.c (restore_integer_closure, restore_integer)
1956 (make_cleanup_restore_integer): New.
1957 (make_my_cleanup): Initialize the free_arg field and
1958 renamed to make_my_cleanup_2.
1959 (do_my_cleanups): Call free_arg.
1960 (discard_cleanups): Call free_arg.
1961 * breakpoint.c (restore_always_inserted_mode): Remove.
1962 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 1963
b4f62b57
DE
19642008-06-09 Doug Evans <dje@google.com>
1965
1966 * remote.c (remote_wait): Include beginning of malformed packet
1967 in error output.
1968
37cd5d19
TT
19692008-06-09 Tom Tromey <tromey@redhat.com>
1970
1971 * completer.c (complete_line): Don't special-case
1972 expression_completer.
1973 (expression_completer): Only pass last word to
1974 location_completer.
1975 * c-exp.y (yylex): Check 'token', not 'operator'.
1976
3526781e
DJ
19772008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
1978
1979 * configure.ac (build_warnings): Add -Wno-format for mingw.
1980 * configure: Regenerated.
1981
d001be7a
DJ
19822008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1983
1984 * NEWS: Make indentation consistent. Move exec tracing entry out
1985 of remote packet list.
1986
65d12d83
TT
19872008-06-06 Tom Tromey <tromey@redhat.com>
1988
1989 * value.h (evaluate_subexpression_type, extract_field_op):
1990 Declare.
1991 * printcmd.c (_initialize_printcmd): Use expression_completer for
1992 'p', 'inspect', 'call'.
1993 * parser-defs.h (parse_field_expression): Declare.
1994 * parse.c: Include exceptions.h.
1995 (in_parse_field, expout_last_struct): New globals.
1996 (mark_struct_expression): New function.
1997 (prefixify_expression): Return int.
1998 (prefixify_subexp): Return int. Use expout_last_struct.
1999 (parse_exp_1): Update.
2000 (parse_exp_in_context): Add 'out_subexp' argument. Handle
2001 in_parse_field.
2002 (parse_field_expression): New function.
2003 * expression.h (parse_field_expression): Declare.
2004 (in_parse_field): Likewise.
2005 * eval.c (evaluate_subexpression_type): New function.
2006 (extract_field_op): Likewise.
2007 * completer.h (expression_completer): Declare.
2008 * completer.c (expression_completer): New function.
2009 (count_struct_fields, add_struct_fields): New functions.
2010 * c-exp.y (yyparse): Redefine.
2011 (COMPLETE): New token.
2012 (exp): New productions.
2013 (saw_name_at_eof, last_was_structop): New globals.
2014 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
2015 (c_parse): New function.
2016 * breakpoint.c (_initialize_breakpoint): Use expression_completer
2017 for watch, awatch, and rwatch.
2018 * Makefile.in (parse.o): Depend on exceptions_h.
2019
fed27633
PP
20202008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2021
2022 PR gdb/1147
2023 * gdb/valopts.c (find_overload_match): Handle references
2024 to pointers.
2025
aced2898
PH
20262008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
2027
2028 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
2029 account the bitsize of the 'from' operand.
2030
a2b87ed1
PA
20312008-06-06 Pedro Alves <pedro@codesourcery.com>
2032
2033 * annotate.h (annotate_thread_changed): Declare.
2034
3d6d0b9d
NR
20352008-06-06 Nick Roberts <nickrob@snap.net.nz>
2036
2037 * annotate.c (annotate_thread_changed): New function.
2038 * thread.c (thread_command) : Use it.
2039 * infrun.c (normal_stop): Use it.
2040
c16158bc 20412008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
2042 Nathan Sidwell <nathan@codesourcery.com>
2043 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
2044
2045 * acinclude.m4: Include ../config/acx.m4.
2046 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
2047 * configure, config.in: Regenerate.
2048 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
2049 address.
2050 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
2051
75c99385
PA
20522008-06-05 Pedro Alves <pedro@codesourcery.com>
2053
2054 Replace 'target async' by 'maintenance set remote-async' and
2055 'target remote' combination.
2056
2057 * remote.c (remote_async_wait): Merge into remote_wait, and
2058 remove.
2059 (remote_async_permitted, remote_async_permitted_set): New
2060 variables.
2061 (set_maintenance_remote_async_permitted)
2062 (show_maintenance_remote_async_permitted): New functions.
2063 (remote_async_ops, extended_async_remote_ops): Delete.
2064 (remote_async_open, extended_remote_async_open): Delete.
2065 (remote_open_1): Drop async_p parameter. Update callers. Replace
2066 async_p with remote_async_permitted checks.
2067 (extended_async_remote_attach): Delete.
2068 (remote_resume, remote_async_resume): Merge and leave remote_resume.
2069 (remote_async_terminal_inferior): Rename to...
2070 (remote_terminal_inferior): ... this, and add
2071 remote_async_termitted check.
2072 (remote_async_terminal_ours): Rename to...
2073 (remote_terminal_ours): ... this, and add remote_async_termitted
2074 check.
2075 (remote_wait, remote_async_wait): Merge and leave remote_wait
2076 only.
2077 (remote_kill, remote_async_kill): Merge and leave remote_kill
2078 only.
2079 (remote_async_mourn, extended_async_remote_mourn): Delete.
2080 (extended_remote_create_inferior_1): Drop async_p parameter.
2081 Update callers. Always use extended_remote_ops.
2082 (extended_remote_async_create_inferior): Delete.
2083 (remote_return_zero): Delete.
2084 (init_remote_ops): Register remote_can_async_p, remote_async,
2085 remote_async_mask, remote_terminal_inferior and
2086 remote_terminal_ours.
2087 (remote_can_async_p, remote_is_async_p): Check for
2088 remote_async_permitted.
2089 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
2090 (set_remote_cmd): Don't add async and extended-async targets.
2091 (_initialize_remote): Add set/show remote-async maintenance
2092 commands.
2093
cf30943b
PA
20942008-06-05 Pedro Alves <pedro@codesourcery.com>
2095
2096 * remote.c (kill_kludge): Delete.
2097 (remote_wait, remote_async_wait): Don't set it.
2098 (remote_kill, remote_async_kill): Don't do anything with it.
2099
49fd4a42
PA
21002008-06-05 Pedro Alves <pedro@codesourcery.com>
2101
2102 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
2103
2e618c13
AR
21042008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2105
2106 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
2107 (deprecated_bcache_added): New function name. Body of function
2108 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
2109 * bcache.h (deprecated_bcache_added): New function.
2110 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
2111 work from add_psymbol_to_list - initialises partial symbol and stashes
2112 it in objfile's cache.
680b56ce 2113 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 2114 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 2115 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
2116 here. If adding to global list, do not duplicate partial symbols in the
2117 partial symtab.
2118
c0b37c48
AR
21192008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
2120
2121 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
2122 'exception caught|thrown' message.
2123
1e3a102a
JK
21242008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 * Makefile.in: Update dependencies.
2127 * dwarf2expr.c: New include "gdb_assert.h".
2128 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
2129 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
2130 (execute_stack_op): Error out on too large RECURSION_DEPTH.
2131 Increase/decrease RECURSION_DEPTH around the function.
2132
8d385431
DJ
21332008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
2134
2135 * remote.c (get_offsets): Handle a single segment.
2136 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
2137 than segments.
2138
93a57060
DJ
21392008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
2140
2141 * solib-svr4.c (struct lm_info): Add lm_addr.
2142 (main_lm_addr): New.
2143 (svr4_default_sos): Set lm_addr.
2144 (svr4_current_sos): Set lm_addr and main_lm_addr.
2145 (svr4_fetch_objfile_link_map): Rewrite.
2146 (svr4_clear_solib): Clear main_lm_addr.
2147
609ba780 21482008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 2149 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
2150
2151 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
2152 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
2153
c95f5026
JB
21542008-06-02 Roman Zippel <zippel@linux-m68k.org>
2155
2156 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
2157
e4d8bc08
JB
21582008-06-02 Roman Zippel <zippel@linux-m68k.org>
2159
2160 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
2161
40adab56
JB
21622008-06-01 Joel Brobecker <brobecker@adacore.com>
2163
2164 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
2165 treat pointers in data space as function descriptors if the
2166 target address is also in the data space.
2167
bfd66dd9
JB
21682008-05-30 Joel Brobecker <brobecker@adacore.com>
2169
2170 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
2171 the trad-frame register value for the SP register.
2172
7ea566be
MK
21732008-05-29 Mark Kettenis <kettenis@gnu.org>
2174
2175 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
2176
fcac911a
JB
21772008-05-28 Joel Brobecker <brobecker@adacore.com>
2178
2179 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
2180 that identifies function descriptors outside of the .opd section.
2181
ade92717
AR
21822008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
2183
2184 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 2185 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
2186 'bkptno'.
2187 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
2188 catchpoints.
2189 (handle_gnu_v3_exceptions): Use tempflag.
2190
f7f9ae2c
VP
21912008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2192
2193 Refactor varobj_update interface.
680b56ce
AS
2194 * varobj.c (varobj_update): Report changes as vector. Also
2195 return not just a list of varobj, but a list of special structures
2196 that tell what exactly has changed.
2197 * varobj.h (enum varobj_update_error): Rename to
2198 varobj_scope_status.
2199 (struct varobj_update_result_t): New.
2200 (varobj_update): Adjust prototype.
2201 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 2202
ea56f9c2
VP
22032008-05-28 Vladimir Prus <vladimir@codesourcery.com>
2204
2205 * varobj.c (varobj_update): Fix comment typo.
2206 Fix indentation.
2207
c7efd0b9
JB
22082008-05-26 Joel Brobecker <brobecker@adacore.com>
2209
2210 Set the symtab field of symbols read from ECOFF debugging entries.
2211 * mdebugread.c (add_symbol): Add new parameter symtab.
2212 (parse_symbol): Update calls to add_symbol throughout.
2213
2a2d4dc3
AS
22142008-05-27 Andreas Schwab <schwab@suse.de>
2215
2216 * symtab.h (enum address_class): Remove LOC_REGPARM and
2217 LOC_COMPUTED_ARG.
2218 (struct symbol): Add is_argument.
2219 (SYMBOL_IS_ARGUMENT): Define.
2220
2221 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
2222 * buildsym.c (finish_block): Likewise.
2223 * stack.c (print_frame_args, print_block_frame_locals)
2224 (print_frame_arg_vars): Likewise.
2225 * symtab.c (lookup_block_symbol): Likewise.
2226 * tracepoint.c (add_local_symbols): Likewise.
2227 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2228
2229 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
2230 * dwarf2read.c (new_symbol): Likewise.
2231 * mdebugread.c (parse_symbol): Likewise.
2232 * stabsread.c (define_symbol): Likewise.
2233
2234 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
2235 and LOC_COMPUTED_ARG.
2236 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2237 * ax-gdb.c (gen_var_ref): Likewise.
2238 * eval.c (evaluate_subexp_for_address): Likewise.
2239 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2240 * m2-exp.y (yylex): Likewise.
2241 * printcmd.c (address_info): Likewise.
2242 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2243 * tracepoint.c (collect_symbol, scope_info): Likewise.
2244
17ea7499
CES
22452008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2246
2247 * gdbarch.sh: Added new gdbarch struct
2248 core_regset_sections.
2249 * gdbarch.c: Refreshed.
2250 * gdbarch.h: Refreshed.
2251 * regset.h (core_regset_section): Declared.
2252 * linux-nat.c (linux_nat_do_thread_registers): Added
2253 support for the new gdbarch struct core_regset_sections.
2254 * utils.c (host_address_to_string): New function.
2255 * defs.h (host_address_to_string): New prototype.
2256 * i386-linux-tdep.c (i386_regset_rections): New register
2257 sections list for i386.
2258 (i386_linux_init_abi): Initialized new gdbarch struct
2259 core_regset_sections.
2260 * Makefile.in: Updated to reflect dependency changes.
2261 * ppc-linux-tdep.c (ppc_regset_sections): Register
2262 sections list for ppc.
2263 (ppc_linux_init_abi): Initialized new gdbarch struct
2264 core_regset_sections
2265
c4fc331b
AS
22662008-05-24 Andreas Schwab <schwab@suse.de>
2267
2268 * linespec.c (decode_objc): Save current language around call to
2269 get_selected_block.
2270
e936309c
JB
22712008-05-23 Joel Brobecker <brobecker@adacore.com>
2272
2273 * valprint.h (get_array_bounds): Renames get_array_low_bound.
2274 * valprint.c (get_array_bounds): Renames get_array_low_bound.
2275 Return the proper bound value if the array index type is an
2276 enumerated type. Compute the high bound if requested.
2277 (val_print_array_elements): Handle the case when the array
2278 element has a null size.
2279 * ada-valprint.c (print_optional_low_bound): Add handling
2280 for empty arrays or arrays of zero-size elements.
2281 (ada_val_print_array): New function, extracted out from
2282 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
2283 handle empty arrays and arrays of zero-size elements.
2284 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
2285 code by call to ada_val_print_array.
2286 (ada_value_print): Remove handling of null array. The handling
2287 was incomplete and is now better handled by ada_val_print_array.
2288
50ee7535
MD
22892008-05-23 Markus Deuling <deuling@de.ibm.com>
2290
2291 * annotate.c (annotate_source, annotate_frame_begin): Replace
2292 deprecated_print_address_numeric with paddress.
2293 * cli/cli-cmds.c (list_command, edit_command): Likewise.
2294 * tui/tui-stack.c (tui_make_status_line): Likewise.
2295
2296 * defs.h (deprecated_print_address_numeric): Remove.
2297 * printcmd.c (deprecated_print_address_numeric): Remove.
2298 * maint.c (maint_print_section_info): Fix comment.
2299
d44e8473
MD
23002008-05-23 Markus Deuling <deuling@de.ibm.com>
2301
2302 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
2303 print_binary_chars, print_char_chars): Add byte_order parameter and
2304 replace gdbarch_byte_order.
2305 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
2306 expressions and remove them. Remove unused TWO_TO_FOURTH.
2307 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
2308 endianness. Update call to print_hex_chars.
2309 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
2310 print_binary_chars, print_char_chars): Add byte_order parameter.
2311 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
2312 get at the endianness. Update print_*_char calls to use byte_order.
2313
10f4ecb8
UW
23142008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2315
2316 * symtab.h (struct symbol): Make "aux_value" member a void pointer
2317 instead of a union.
2318 (SYMBOL_LOCATION_BATON): Update.
2319
c3b22bd0
UW
23202008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2321
2322 * symtab.h (enum address_class): Remove LOC_BASEREG and
2323 LOC_BASEREG_ARG.
2324 (struct symbol): Remove "basereg" member of "aux_value" union.
2325 (SYMBOL_BASEREG): Remove.
2326
2327 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
2328 or LOC_BASEREG_ARG.
2329 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2330 (ada_add_block_symbols): Likewise.
2331 * ax-gdb.c (gen_var_ref): Likewise.
2332 * buildsym.c (finish_block): Likewise.
2333 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2334 * m2-exp.y (yylex): Likewise.
2335 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2336 * printcmd.c (address_info): Likewise.
2337 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
2338 (print_frame_arg_vars): Likewise.
2339 * symmisc.c (print_symbol): Likewise.
2340 * symtab.c (lookup_block_symbol): Likewise.
2341 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2342 (scope_info): Likewise.
2343
aa59ba6b
UW
23442008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2345
2346 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
2347
2348 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
2349 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
2350 (ada_add_block_symbols): Likewise.
2351 * ax-gdb.c (gen_var_ref): Likewise.
2352 * buildsyms.c (finish_block): Likewise.
2353 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
2354 * m2-exp.y (yylex): Likewise.
2355 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2356 * printcmd.c (address_info): Likewise.
2357 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
2358 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2359 * symtab.c (lookup_block_symbol): Likewise.
2360 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
2361 (scope_info): Likewise.
2362
0bb4e8c4
UW
23632008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
2364
2365 * symtab.h (enum address_class): Remove LOC_INDIRECT and
2366 LOC_HP_THREAD_LOCAL_STATIC.
2367
2368 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
2369 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
2370 (read_var_value): Likewise.
2371 * buildsym.c (finish_block): Likewise.
2372 * objfiles.c (objfile_relocate): Likewise.
2373 * printcmd.c (address_info): Likewise.
2374 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
2375 * tracepoint.c (scope_info): Likewise.
2376
9f61f19b
MG
23772008-05-21 Markus Deuling <deuling@de.ibm.com>
2378 Maxim Grigoriev <maxim2405@gmail.com>
2379
2380 * xtensa-tdep.c (xtensa_read_register): Remove.
2381 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
2382 argument litbase to call0_frame_cache().
2383 (call0_track_op, call0_analyze_prologue)
2384 (call0_frame_cache): Use extra argument litbase.
2385
0e479716
JB
23862008-05-21 Joel Brobecker <brobecker@adacore.com>
2387
2388 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
2389
214be669
UW
23902008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2391
2392 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
2393
0cd9ab92
UW
23942008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2395
2396 * alpha-mdebug-tdep.c: Include "trad-frame.h".
2397 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
2398 struct trad_frame_saved_reg *.
2399 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
2400 trad_frame_alloc_saved_regs. Update accesses. Record previous
2401 value of SP as being vfp.
2402 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
2403 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2404
f52cb1b8
MD
24052008-05-21 Markus Deuling <deuling@de.ibm.com>
2406
2407 * score-tdep.c (score_print_insn): Get the current endianess from
2408 disassemble_info instead of gdbarch_byte_order.
2409
8fa75a5d
PA
24102008-05-21 Pedro Alves <pedro@codesourcery.com>
2411
2412 * frame.c (get_prev_frame_1): Build frame id before setting
2413 this_frame->prev_p, not after.
2414
e8e48118
NR
24152008-05-21 Nick Roberts <nickrob@snap.net.nz>
2416
2417 * annotate.c (annotate_new_thread): New function for new-thread
2418 annotation.
2419 * annotate.h: (annotate_new_thread): New extern.
2420 * thread.c (add_thread_with_info): Use it.
2421 * Makefile.in (thread.o): Add dependency on annotate.h.
2422
c57918b2
JB
24232008-05-20 Joel Brobecker <brobecker@adacore.com>
2424
2425 * win32-nat.c (win32_wait): Block the control-c event while
2426 waiting for a debug event.
2427
6c9353d3
PA
24282008-05-19 Pedro Alves <pedro@codesourcery.com>
2429
2430 * symtab.h (lookup_symbol_in_language): Update comment.
2431 * symtab.c (lookup_symbol_aux_block): Update comment.
2432 * ada-lang.c (ada_lookup_symbol_list): Update comment.
2433
2570f2b7
UW
24342008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2435
2436 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
2437 (lookup_symbol): Likewise.
2438 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
2439 (lookup_symbol): Likewise.
2440 (search_symbols): Update.
2441
2442 * linespec.c (find_methods, collect_methods): Update.
2443 (add_matching_methods, add_constructors): Update.
2444 (decode_compound, decode_dollar, decode_variable): Update.
2445 (lookup_prefix_sym): Update.
2446
2447 (symbol_found): Remove SYM_SYMTAB parameter.
2448 Use SYMBOL_SYMTAB (sym) instead.
2449
2450 * gdbtypes.c (lookup_typename): Update.
2451 (lookup_struct, lookup_union, lookup_enum): Update.
2452 (lookup_template_type): Update.
2453 (check_typedef): Update.
2454 * language.c (lang_bool_type): Update.
2455 * mdebugread.c (parse_procedure): Update.
2456 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2457 * parse.c (write_dollar_variable): Update.
2458 * printcmd.c (address_info): Update.
2459 * source.c (select_source_symtab): Update.
2460 * stack.c (print_frame_args, print_frame_arg_vars): Update.
2461 * valops.c (find_function_in_inferior): Update.
2462 (value_struct_elt_for_reference): Update.
2463 * value.c (value_static_field, value_fn_field): Update.
2464
2465 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2466 * arm-tdep.c (arm_skip_prologue): Update.
2467 * mt-tdep.c (mt_skip_prologue): Update.
2468 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
2469
2470 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
2471 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
2472 (add_defn_to_vec): Likewise.
2473 (ada_add_block_symbols): Likewise.
2474 (lookup_cached_symbol, cache_symbol): Likewise.
2475 (standard_lookup): Update.
2476 (ada_lookup_symbol_list): Update.
2477
2478 * c-valprint.c (c_val_print): Update.
2479 * cp-support.c (cp_lookup_rtti_type): Update.
2480 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
2481 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
2482 * p-valprint.c (pascal_val_print): Update.
2483 * scm-lang.c (scm_lookup_name): Update.
2484
2485 * c-exp.y: Update.
2486 * f-exp.y: Update.
2487 * jv-exp.y: Update.
2488 * m2-exp.y: Update.
2489 * objc-exp.y: Update.
2490 * p-exp.y: Update.
2491
21b556f4
UW
24922008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
2493
2494 * language.h (struct language_defn): Remove SYMTAB parameter from
2495 la_lookup_symbol_nonlocal callback function pointer.
2496
2497 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2498 (ada_lookup_encoded_symbol): Likewise.
2499 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
2500 Always call fixup_symbol_section.
2501 (ada_lookup_symbol): Remove SYMTAB parameter.
2502 (ada_lookup_symbol_nonlocal): Likewise.
2503 * ada-exp.y (write_object_renaming): Update.
2504 (find_primitive_type): Likewise.
2505
2506 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2507 (cp_lookup_symbol_namespace): Likewise.
2508 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
2509 (lookup_symbol_file): Likewise.
2510 (lookup_possible_namespace_symbol): Likewise.
2511 (cp_lookup_symbol_nonlocal): Likewise.
2512 (cp_lookup_symbol_namespace): Likewise.
2513 (cp_lookup_nested_type): Update.
2514
2515 * scm-valprint.c (scm_inferior_print): Update.
2516 * valops.c (value_maybe_namespace_elt): Update.
2517
2518 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
2519 lookup_lib_global_symbol callback function pointer.
2520 (solib_global_lookup): Remove SYMTAB parameter.
2521 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
2522 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2523
2524 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
2525 (lookup_symbol_static): Likewise.
2526 (lookup_symbol_global): Likewise.
2527 (lookup_symbol_aux_block): Likewise.
2528 (lookup_global_symbol_from_objfile): Likewise.
2529 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
2530 (lookup_symbol_aux_local): Likewise.
2531 (lookup_symbol_aux_block): Likewise.
2532 (lookup_symbol_aux_symtabs): Likewise.
2533 (lookup_symbol_aux_psymtabs): Likewise.
2534 (lookup_global_symbol_from_objfile): Likewise.
2535 (basic_lookup_symbol_nonlocal): Likewise.
2536 (lookup_symbol_static): Likewise.
2537 (lookup_symbol_global): Likewise.
2538
2539 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
2540
39237dd1
PA
25412008-05-17 Pedro Alves <pedro@codesourcery.com>
2542
2543 * remote.c (init_extended_remote_ops): Fix typo.
2544
7c0d47a5
PA
25452008-05-16 Pedro Alves <pedro@codesourcery.com>
2546
2547 * NEWS: Mention new DICOS x86 target configuration.
2548
907fc202
UW
25492008-05-16 Pedro Alves <pedro@codesourcery.com>
2550 Ulrich Weigand <uweigand@de.ibm.com>
2551
2552 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
2553 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
2554
2555 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
2556 use it instead of ginfo->value.address. Look up minimal symbol by
2557 address and name. Assume OBJFILE is non-NULL.
2558 (fixup_symbol_section): Ensure we always have an objfile to look
2559 into. Extract and pass to fixup_section the symbol's address that
2560 will match the minimal symbol's address.
2561 (fixup_psymbol_section): Likewise.
2562
2563 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
2564 overlays and the addrmap returned the wrong section.
2565
2566 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
2567 calling fixup_symbol_section.
2568
42848c96
UW
25692008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2570
2571 * minsyms.c: Include "target.h".
2572 (find_solib_trampoline_target): Handle minimal symbols pointing
2573 to function descriptors as well.
2574 * Makefile.in (minsyms.o): Update dependencies.
2575
2576 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
2577 (ppc64_standard_linkage1): ... this. Fix optional instructions.
2578 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
2579 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
2580 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
2581 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
2582 (ppc64_standard_linkage_target): Rename to ...
2583 (ppc64_standard_linkage1_target): ... this.
2584 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
2585 (ppc64_skip_trampoline_code): Support three variants of standard
2586 linkage stubs. Call find_solib_trampoline_target to handle
2587 glink stubs.
2588
74d1f063
UW
25892008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2590
2591 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
2592 ppc64_sysv_abi_adjust_breakpoint_address.
2593 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2594 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
2595
8526f328
UW
25962008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2597
2598 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
2599 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
2600 of ppc_linux_skip_trampoline_code.
2601
ba2b1c56
DJ
26022008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
2603
2604 * gdbarch.sh: Delete dwarf_reg_to_regnum.
2605 * gdbarch.c, gdbarch.h: Regenerated.
2606 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
2607 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
2608 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
2609
4fdebdd0
PA
26102008-05-15 Pedro Alves <pedro@codesourcery.com>
2611
2612 * linux-nat.c (trap_ptid): Delete.
2613 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
2614 Adjust.
2615 * linux-thread-db.c (thread_db_wait): Adjust.
2616
bc882aa9
JB
26172008-05-15 Joel Brobecker <brobecker@adacore.com>
2618
2619 * linespec.c (decode_line_1): Fix a couple of comments.
2620
83b94be5
AM
26212008-05-15 Alan Modra <amodra@bigpond.net.au>
2622
2623 * dbxread.c: Formatting.
2624 (INTERNALIZE_SYMBOL): Init n_other.
2625 (set_namestring): Take pointer to nlist arg rather than struct
2626 copy. Update all callers.
2627
87669130
AS
26282008-05-15 Andreas Schwab <schwab@suse.de>
2629
2630 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
2631 (dwarf2read.o): Add $(addrmap_h).
2632
00d5f93a
UW
26332008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2634
2635 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
2636 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
2637 to handle ppc32 PLT entries.
2638 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
2639 only on ppc64.
2640
2eaf8d2a
DJ
26412008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2642
2643 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
2644 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
2645 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
2646 (lookup_minimal_symbol_by_pc_section): Use
2647 lookup_minimal_symbol_by_pc_section_1.
2648 (lookup_solib_trampoline_symbol_by_pc): Likewise.
2649
20c62566
JB
26502008-05-13 Joel Brobecker <brobecker@adacore.com>
2651
2652 * findcmd.c: Add #include "gdb_stdint.h".
2653 * Makefile.in (findcmd.o): Update dependencies.
2654
87a7da84
DM
26552008-05-11 David S. Miller <davem@davemloft.net>
2656
de0c3d9d
DM
2657 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
2658 long double size override, Linux does use 128-bit now.
2659
e8467b5a
DM
2660 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
2661 (sparc_linux_write_pc): New function.
2662 (sparc32_linux_init_abi): Register it.
2663 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
2664 (sparc64_linux_write_pc): New function.
2665 (sparc64_linux_init_abi): Register it.
2666
87a7da84
DM
2667 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
2668 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
2669
8a4c2d24
UW
26702008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2671
2672 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
2673 and info.tdep_info before calling gdbarch_init_osabi.
2674
003f3813
JB
26752008-05-09 Joel Brobecker <brobecker@adacore.com>
2676
2677 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
2678 the type of the right hand side of the assignment to the type
2679 of the left hand side if the left hand side is a convenience
2680 variable.
2681
7ae0e2a2
UW
26822008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
2683
2684 * NEWS: Mention gdbserver bi-arch capability.
2685
08388c79
DE
26862008-05-09 Doug Evans <dje@google.com>
2687
2688 New "find" command.
2689 * NEWS: Document find command and qSearch:memory packet.
2690 * Makefile.in (SFILES): Add findcmd.c.
2691 (COMMON_OBJS): Add findcmd.o.
2692 (findcmd.o): New rule.
2693 * findcmd.c: New file.
2694 * target.h (target_ops): New member to_search_memory.
2695 (simple_search_memory): Declare.
2696 (target_search_memory): Declare.
2697 * target.c (simple_search_memory): New fn.
2698 (target_search_memory): New fn.
2699 * remote.c (PACKET_qSearch_memory): New packet kind.
2700 (remote_search_memory): New fn.
2701 (init_remote_ops): Init to_search_memory.
2702 (init_extended_remote_ops): Ditto.
2703 (_initialize_remote): Add qSearch:memory packet config command.
2704
11c68c47
EZ
27052008-05-09 Eli Zaretskii <eliz@gnu.org>
2706
2707 * thread.c (_initialize_thread): Don't use commas and periods in
2708 first line of doc string of "set/show print thread-events".
2709
6834c9bb
JB
27102008-05-08 Joel Brobecker <brobecker@adacore.com>
2711
2712 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
2713 Update for unwinder changes.
2714
86c31399
JB
27152008-05-08 Joel Brobecker <brobecker@adacore.com>
2716
2717 * frame.c (get_frame_base_address, get_frame_locals_address)
2718 (get_frame_args_address): Pass the correct frame when calling
2719 frame_base_find_by_frame.
2720
96ef3384
UW
27212008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2722
2723 * remote.c (extended_remote_attach_1): Call target_find_description.
2724
45280a52
DJ
27252008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
2726
2727 * remote.c (extended_remote_create_inferior_1): Clean up
2728 before marking the target running.
2729
227e86ad
JB
27302008-05-08 Joel Brobecker <brobecker@adacore.com>
2731
2732 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
2733 changes.
2734
236369e7
JB
27352008-05-07 Joel Brobecker <brobecker@adacore.com>
2736
2737 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
2738 sparc64-sol2-tdep.c: Update for unwinder changes.
2739
de237128
DJ
27402008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2741
2742 * cp-support.c (mangled_name_to_comp): Initialize storage.
2743 (unqualified_name_from_comp): Likewise.
2744
4fff2411
JZ
27452008-05-07 Jie Zhang <jie.zhang@analog.com>
2746
2747 * remote.c (remote_insert_breakpoint): Call get_remote_state
2748 after gdbarch_breakpoint_from_pc is called.
2749 (remote_insert_hw_breakpoint): Likewise.
2750
d8ca156b
JB
27512008-05-06 Joel Brobecker <brobecker@adacore.com>
2752
2753 * valprint.c (val_print): Add new language parameter and use it
2754 instead of using the current_language. Update calls to val_print
2755 throughout.
2756 (common_val_print): Add new langauge parameter and pass it to
2757 val_print.
2758 * value.h (struct language_defn): Add opaque declaration.
2759 (val_print, common_val_print): Update declarations.
2760 * stack.c (print_frame_args): Update call to common_val_print
2761 using the appropriate language.
2762 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2763 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
2764 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
2765 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
2766 #include "language.h" if necessary.
2767 Update calls to val_print and common_val_print.
2768 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
2769 Update dependencies.
2770
b1e6fd19
JB
27712008-05-06 Joel Brobecker <brobecker@adacore.com>
2772
2773 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
2774 pointing inside a non-executable section as function descriptors.
2775
02b19d84
PA
27762008-05-06 Pedro Alves <pedro@codesourcery.com>
2777
2778 * inf-loop.c (inferior_event_handler): Run all continuations and
2779 print any language change before running the breakpoint commands.
2780
15c1e57f
JB
27812008-05-06 Joel Brobecker <brobecker@adacore.com>
2782
2783 * frame-unwind.c (frame_unwind_got_bytes): New function.
2784 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
2785 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
2786 for unwinder changes.
2787
d14508fe
DE
27882008-05-05 Doug Evans <dje@google.com>
2789
2790 * NEWS: Mention new /m modifier for disassemble command.
2791 * cli/cli-cmds.c (print_disassembly): New function.
2792 (disassemble_current_function): New function
2793 (disassemble_command): Recognize /m modifier, print mixed
2794 source+assembly.
2795 (init_cli_cmds): Update disassemble help text.
2796
5142f611
MG
27972008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
2798
2799 * xtensa-tdep.c: Update for unwinder changes.
2800
f36bf22c
AS
28012008-05-05 Andreas Schwab <schwab@suse.de>
2802
2803 Update m68k port for unwinder changes.
2804 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
2805 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
2806 (m68k_frame_unwind): Use default_frame_sniffer.
2807 (m68k_frame_sniffer): Remove.
2808 (m68k_frame_base_address): Expect this_frame.
2809 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
2810 this_frame.
2811 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
2812 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
2813 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
2814 parameter instead of pc value.
2815 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
2816 Expect this_frame.
2817 (m68k_linux_sigtramp_frame_this_id)
2818 (m68k_linux_sigtramp_frame_prev_register)
2819 (m68k_linux_sigtramp_frame_sniffer): Update signature.
2820 (m68k_linux_sigtramp_frame_unwind): Use
2821 m68k_linux_sigtramp_frame_sniffer.
2822 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
2823
2824 * m68klinux-nat.c (store_register): Fix typo.
2825
b3dc826b
PA
28262008-05-05 Pedro Alves <pedro@codesourcery.com>
2827
2828 * infcmd.c (step_1): Put thread id on the stack to avoid possible
2829 NULL dereferencing.
2830
6528a9ea
LM
28312008-05-05 Luis Machado <luisgpm@br.ibm.com>
2832
2833 * symfile.c (reread_symbols): Update objfile's entry point.
2834
5eeb2539
AR
28352008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
2836 Joel Brobecker <brobecker@adacore.com>
1f906a60 2837
5eeb2539
AR
2838 * ada-lang.c: Update throughout to use symbol_matches_domain
2839 instead of matching the symbol domain explictly.
2840 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 2841 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 2842 class as typedefs. See lookup_partial_symbol function.
f36bf22c 2843 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
2844 symbol for the typedef. See lookup_block_symbol.
2845 * symtab.c (symbol_matches_domain): New function, takes care
2846 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
2847 (lookup_partial_symbol): Use symbol_matches_domain to see if the
2848 found psym domain matches the given domain.
2849 (lookup_block_symbol): Likewise.
2850
e2b7ddea
VP
28512008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2852
680b56ce
AS
2853 * top.c (command_line_handler_continuation): Remove.
2854 (execute_command): Do not install the above.
e2b7ddea 2855
fcfb8b02
VP
28562008-05-05 Vladimir Prus <vladimir@codesourcery.com>
2857
2858 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
2859 and catch all exceptions from it.
2860 * top.c (command_line_handler_continuation): Don't
2861 call bpstat_do_action here.
2862
f792889a
DJ
28632008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2864
2865 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
2866 (struct die_info): Remove type.
2867 (read_type_die, read_typedef, read_base_type, read_subrange_type)
2868 (read_structure_type, read_enumeration_type, read_array_type)
2869 (read_tag_pointer_type, read_tag_ptr_to_member_type)
2870 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
2871 (read_tag_string_type, read_subroutine_type, read_set_type)
2872 (read_unspecified_type): Delete prototypes. Remove check for
2873 already-loaded type. Return the new type.
2874 (set_die_type): Return the new type.
2875 (reset_die_and_siblings_types): Delete.
2876 (load_comp_unit, load_full_comp_unit): Set type_hash.
2877 (process_queue): Remove call to reset_die_and_siblings_types.
2878 (process_die): Do not read most types here. Use read_type_die
2879 for others.
2880 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
2881 (quirk_gcc_member_function_pointer): Return the new type.
2882 (process_structure_scope, process_enumeration_scope): Use
2883 get_die_type and read the DIE's type.
2884 (read_full_die): Do not initialize die->type.
2885 (tag_type_to_type): Use read_type_die.
2886 (read_type_die): Check for already defined types. Return the
2887 type.
2888 (determine_prefix): Use get_die_type.
2889 (set_die_type): Return the type.
2890 (get_die_type): Take a CU argument. Check for no type_hash.
2891
e7030f15
DJ
28922008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
2893
2894 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
2895 locals.
2896
611c83ae
PA
28972008-05-04 Pedro Alves <pedro@codesourcery.com>
2898
2899 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
2900 and bp_longjmp_resume breakpoints.
2901 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
2902 meaningful.
2903 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
2904 breakpoints. Create bp_longjmp breakpoints as momentary
2905 breakpoints.
2906 (enable_longjmp_breakpoint): Delete.
2907 (set_longjmp_breakpoint): New.
2908 (disable_longjmp_breakpoint): Delete.
2909 (delete_longjmp_breakpoint): New.
2910 (set_longjmp_resume_breakpoint): Delete.
2911 (set_momentary_breakpoint_at_pc): New.
2912 (breakpoint_re_set_one): Don't delete bp_longjmp and
2913 bp_longjmp_resume breakpoints.
2914 (breakpoint_re_set): Don't create longjmp and longjmp-resume
2915 breakpoints.
2916
2917 * infrun.c (step_resume_breakpoint): Add comment.
2918 (struct execution_control_state): Delete handling_longjmp member.
2919 (init_execution_control_state). Don't clear handling_longjmp.
2920 (context_switch): Don't context switch handling_longjmp.
2921 (handle_inferior_event): If handling a bp_longjmp breakpoint,
2922 create a bp_longjmp_resume breakpoint, and set it as current
2923 step_resume_breakpoint, then step over the longjmp breakpoint. If
2924 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
2925 breakpoint, delete the longjmp-resume breakpoint, and stop
2926 stepping.
2927 (currently_stepping): Remove handling_longjmp from expression.
2928 (insert_step_resume_breakpoint_at_sal): Update comment.
2929 (insert_longjmp_resume_breakpoint): New.
2930
2931 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
2932 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
2933 declarations.
2934 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
2935 (set_longjmp_resume_breakpoint): Delete declaration.
2936
2937 * gdbthread.h (save_infrun_state): Remove handling_longjmp
2938 parameter.
2939 (load_infrun_state): Delete *handling_longjmp parameter.
2940 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
2941 Update body.
2942 (load_infrun_state): Delete *handling_longjmp parameter. Update
2943 body.
2944
2945 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
2946 (delete_longjmp_breakpoint_cleanup): New.
2947 (step_1): Call set_longjmp_breakpoint instead of
2948 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
2949 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
2950 (step_1_continuation): Pass thread id in the continuation args to
2951 step_once.
2952 (step_once): Add thread parameter. Pass thread id the the
2953 continuation.
2954
85cbf3d3
JK
29552008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 Set CU BASE_ADDRESS already from partial DIEs.
2958 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
2959 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
2960 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
2961 from these variables if it was still unset.
2962
ff013f42
JK
2963 * Makefile.in: Update dependencies.
2964 * dwarf2read.c: Include "addrmap.h"
2965 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
2966 (dwarf2_ranges_read): New prototype.
2967 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
2968 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
2969 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
2970 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
2971 comment for it. Add the found ranges to RANGES_PST. New variable
2972 BASEADDR, initialize it the common way.
2973 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
2974 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
2975 HAS_RANGES_OFFSET for the later processing.
2976 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
2977 * symtab.c: Include "addrmap.h"
2978 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
2979 Move the psymtab locator into ...
2980 (find_pc_sect_psymtab_closer): ... a new function.
2981
a7f1256d
UW
29822008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2983
2984 * arch-utils.c (gdbarch_update_p): Use default values for
2985 info.abfd and info.target_desc if they are NULL.
2986 (gdbarch_from_bfd): Remove assertion.
2987 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
2988 using the current target description.
2989 (gdbarch_info_fill): Do not use default values for info->abfd
2990 and info->target_desc.
2991
b2de52bb
JK
29922008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2993
2994 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
2995
515630c5
UW
29962008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
2997
2998 * inferior.h (read_pc_pid, write_pc_pid): Remove.
2999 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
3000
3001 * regcache.c (read_pc_pid): Remove, replace by ...
3002 (regcache_read_pc): ... this function.
3003 (write_pc_pid): Remove, replace by ...
3004 (regcache_write_pc): ... this function.
3005 (read_pc, write_pc): Update.
3006
3007 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
3008 write_pc_pid by regcache_read_pc and regcache_write_pc.
3009 (displaced_step_fixup): Likewise.
3010 (resume): Likewise. Use regcache arch instead of current_gdbarch.
3011 (prepare_to_proceed): Likewise.
3012 (proceed): Likewise.
3013 (adjust_pc_after_break): Likewise.
3014 (handle_inferior_event): Likewise.
3015
3016 * linux-nat.c (cancel_breakpoint): Likewise.
3017 * linux-thread-db.c (check_event): Likewise.
3018 * aix-thread.c (aix_thread_wait): Likewise.
3019 * tracepoint.c (trace_dump_command): Likewise.
3020
ebd3bcc1
JK
30212008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3022
3023 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
3024 SYMBOL_LOCATION_BATON.
3025
c47ffbe3
VP
30262008-05-04 Vladimir Prus <vladimir@codesourcery.com>
3027
f78bff48
VP
3028 * target.h (struct target_ops): New field to_auxv_parse.
3029 * auxv.c (default_auxv_parse): New, renamed from previous
3030 target_auxv_parse.
3031 (target_auxv_parse): Try to call target method. Fallback to
3032 default_auxv_parse if not found.
3033 * procfs.c (procfs_auxv_parse): New.
3034 (init_procfs_ops): On Solaris, in 64-bit mode, install
3035 procfs_auxv_parse.
c47ffbe3 3036
35076fa0
AN
30372008-05-03 Adam Nemet <anemet@caviumnetworks.com>
3038
3039 * symfile.c (add_symbol_file_command): Use paddress rather than
3040 hex_string to print the address.
3041
5b197912
UW
30422008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3043
3044 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
3045 return the null frame ID to terminate the backtrace.
3046
4a7622d1
UW
30472008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3048
3049 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
3050 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
3051 (SIG_FRAME_PC_OFFSET): Likewise.
3052 (SIG_FRAME_LR_OFFSET): Likewise.
3053 (SIG_FRAME_FP_OFFSET): Likewise.
3054 (rs6000_push_dummy_call): Likewise.
3055 (rs6000_return_value): Likewise.
3056 (rs6000_convert_from_func_ptr_addr): Likewise.
3057 (branch_dest, rs6000_software_single_step): Likewise.
3058 (deal_with_atomic_sequence): Rename to ...
3059 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
3060 Do not call branch_dest; inline required parts of that function.
3061 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
3062 with SYMBOL_LINKAGE_NAME.
3063 (struct reg, regsize): Delete.
3064 (read_memory_addr): Delete; inline into callers.
3065 (rs6000_skip_prologue): Move after skip_prologue.
3066 (skip_prologue): Remove prototype.
3067 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
3068 initialization as if this variable were true. Do not install
3069 ppc64_sysv_abi_adjust_breakpoint_address.
3070
3071 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
3072 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
3073 and "breakpoint.h".
3074 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
3075 (SIG_FRAME_PC_OFFSET): Likewise.
3076 (SIG_FRAME_LR_OFFSET): Likewise.
3077 (SIG_FRAME_FP_OFFSET): Likewise.
3078 (rs6000_push_dummy_call): Likewise.
3079 (rs6000_return_value): Likewise.
3080 (rs6000_convert_from_func_ptr_addr): Likewise.
3081 (branch_dest, rs6000_software_single_step): Likewise. Replace
3082 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
3083 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
3084 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
3085 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
3086 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
3087
3088 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
3089 (AIX_TEXT_SEGMENT_BASE): New macro.
3090 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
3091 by AIX_TEXT_SEGMENT_BASE.
3092
3093 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
3094 (struct gdbarch_tdep): Remove text_segment_base member.
3095 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
3096 ppc64_sysv_abi_adjust_breakpoint_address.
3097
3098 * Makefile.in (rs6000-tdep.o): Update dependencies.
3099 (rs6000-aix-tdep.o): Likewise.
3100
938f5214
TJB
31012008-05-03 Luis Machado <luisgpm@br.ibm.com>
3102 Thiago Jung Bauermann <bauerman@br.ibm.com>
3103
3104 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
3105 * doublest.c (convert_typed_floating): Fix typo in comment.
3106 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3107 * frame-unwind.h (frame_sniffer_ftype): Likewise.
3108 * frame.c (frame_unwind_address_in_block): Likewise.
3109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
3110 * symtab.h (struct symbol): Likewise.
3111 * tramp-frame.h (struct trad_frame_cache): Likewise.
3112 * value.c (allocate_repeat_value): Likewise.
3113
0b02b92d
UW
31142008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3115
3116 * infrun.c (handle_inferior_event): Do not insert breakpoints at
3117 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
3118
d705c43c
PA
31192008-05-03 Pedro Alves <pedro@codesourcery.com>
3120
3121 * parse.c (parse_exp_in_context): Don't override
3122 expression_context_pc if get_selected_block returned a valid
3123 block.
3124
d6350901
DJ
31252008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3126
3127 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
3128 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
3129 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
3130 Delete.
3131 * c-typeprint.c (c_type_print_base): Delete handling of template
3132 instantiations.
3133 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
3134 (METHOD_PTR_TO_VOFFSET): Delete.
3135 * defs.h (QUIT_FIXME): Delete.
3136 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
3137 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
3138 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
3139 ninstantiations, and instantiations.
3140 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
3141 (TYPE_FN_FIELD_INLINED): Delete.
3142 * srec.h (SREC_BINARY): Delete.
3143 * symtab.c (symbol_init_demangled_name): Delete.
3144 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
3145 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
3146 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
3147 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
3148 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
3149 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
3150 * target.h (enum thread_control_capabilities): Delete tc_switch.
3151 (target_can_switch_threads): Delete.
3152
30510692
DJ
31532008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
3154
3155 * Makefile.in (objfiles.o): Update.
3156 * exec.c (exec_set_section_address): Support p->addr != 0.
3157 * objfiles.c (objfile_relocate): Update exec_ops section
3158 addresses.
3159 * symfile.c (place_section): Move exec_set_section_address call...
3160 (default_symfile_offsets): ...to here.
3161
7284e1be
UW
31622008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
3163
3164 * Makefile.in (ppc_linux_tdep_h): New macro.
3165 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
3166 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
3167 (powerpc_e500l_c): Likewise.
3168 (ppc-linux-nat.o): Update dependencies.
3169 (ppc-linux-tdep.o): Update dependencies.
3170 (rs6000-tdep.o): Update dependencies.
3171
3172 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
3173 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
3174 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
3175 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
3176 (tdesc_powerpc_e500): Remove.
3177
3178 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
3179 and "features/rs6000/powerpc-altivec64.c".
3180 (ppc_supply_reg, ppc_collect_reg): Make global.
3181 (variants): Use tdesc_powerpc_32 for "powerpc" and
3182 tdesc_powerpc_altivec64 for "powerpc64".
3183 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
3184
3185 * ppc-linux-tdep.h: New file.
3186
3187 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
3188 Include "features/rs6000/powerpc-32l.c".
3189 Include "features/rs6000/powerpc-altivec32l.c".
3190 Include "features/rs6000/powerpc-64l.c".
3191 Include "features/rs6000/powerpc-altivec64l.c".
3192 Include "features/rs6000/powerpc-e500l.c".
3193 (ppc_linux_supply_gregset): New function.
3194 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
3195 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
3196 (ppc64_linux_gregset): Likewise.
3197 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
3198 (ppc_linux_trap_reg_p): New function.
3199 (ppc_linux_write_pc): New function.
3200 (ppc_linux_core_read_description): New function.
3201 (ppc_linux_init_abi): Install ppc_linux_write_pc and
3202 ppc_linux_core_read_description. Install orig_r3 and trap
3203 registers if present in the target description.
3204 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
3205
3206 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
3207 (PT_ORIG_R3, PT_TRAP): Define if necessary.
3208 (ppc_register_u_addr): Handle orig_r3 and trap registers.
3209 (fetch_ppc_registers): Likewise.
3210 (store_ppc_registers): Likewise.
3211 (store_register): Likewise.
3212 (ppc_linux_read_description): Check whether AltiVec is supported.
3213 Check whether inferior is 32-bit or 64-bit. Return the appropriate
3214 Linux target description.
3215
3216 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
3217 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
3218 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
3219 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
3220 rs6000/powerpc-e500. Update -expedite variables accordingly.
3221
3222 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
3223 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
3224 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
3225 * features/rs6000/powerpc-e500.c: Regenerate.
3226 * features/rs6000/powerpc-32.c: Regenerate.
3227 * features/rs6000/powerpc-64.c: Regenerate.
3228
3229 * features/rs6000/power-linux.xml: New file.
3230 * features/rs6000/power64-linux.xml: New file.
3231 * features/rs6000/powerpc-32l.xml: New file.
3232 * features/rs6000/powerpc-altivec32l.xml: New file.
3233 * features/rs6000/powerpc-64l.xml: New file.
3234 * features/rs6000/powerpc-altivec64l.xml: New file.
3235 * features/rs6000/powerpc-e500l.xml: New file.
3236 * features/rs6000/powerpc-32l.c: New (generated) file.
3237 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
3238 * features/rs6000/powerpc-64l.c: New (generated) file.
3239 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
3240 * features/rs6000/powerpc-e500l.xml: New (generated) file.
3241
3242 * regformats/reg-ppc.dat: Remove.
3243 * regformats/reg-ppc64.dat: Remove.
3244 * regformats/rs6000/powerpc-32.dat: Remove.
3245 * regformats/rs6000/powerpc-64.dat: Remove.
3246 * regformats/rs6000/powerpc-e500.dat: Remove.
3247 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
3248 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
3249 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
3250 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
3251 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
3252
063bfe2e
VP
32532008-05-03 Pedro Alves <pedro@codesourcery.com>
3254
3255 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
3256 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
3257 thread_exit observer.
3258 (mi_thread_exit): New.
063bfe2e 3259
f132ba9d
TJB
32602008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3261
3262 * breakpoint.c (create_exception_catchpoint): Remove prototype
3263 for already deleted function.
3264 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
3265 * frame.h (show_stack_frame): Remove prototype.
3266 * stack.c (show_stack_frame): Remove empty, unused function.
3267 * source.c (symtab_to_fullname, print_source_lines): Small fix
3268 in comment.
3269 * value.c (show_values): Update comments to mention "show values"
3270 command instead of "info history".
3271
bccdca4a
UW
32722008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3273
3274 * linespec.c: Include "target.h".
3275 (minsym_found): Handle minimal symbols pointing to function
3276 descriptors. Use find_function_start_pc.
3277 * minsyms.c (msymbol_objfile): New function.
3278 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
3279 to function descriptors.
3280 * symtab.c (fixup_section): Only use minimal symbol at the same
3281 address to determine section of a symbol.
3282 (find_function_start_pc): New function.
3283 (find_function_start_sal): Use it.
3284 * symtab.h (msymbol_objfile): Add prototype.
3285 (find_function_start_pc): Likewise.
3286 * value.c: Include "objfiles.h".
3287 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 3288 descriptors.
bccdca4a
UW
3289 * Makefile.in (linespec.o): Update dependencies.
3290 (value.o): Likewise.
3291
de4d072f
JB
32922008-05-02 Joel Brobecker <brobecker@adacore.com>
3293
3294 * ada-lang.c (unwrap_value): Handle the case where the "F" field
3295 inside a PAD type is a bitfield.
3296
93d4208d
UW
32972008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
3298
3299 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
3300 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3301 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3302 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
3303 Allow typedefs when checking for function pointer arguments.
3304 Right-align small structs passed on the stack.
3305 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
3306 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
3307 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
3308
60c5725c
DJ
33092008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3310
3311 * Makefile.in (arm-tdep.o): Update.
3312 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
3313 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
3314 (arm_pc_is_thumb): Use mapping symbols.
3315 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
3316 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
3317 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
3318 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
3319 * gdbarch.sh: Add record_special_symbol.
3320 * gdbarch.c, gdbarch.h: Regenerated.
3321 * objfiles.c (struct objfile_data): Add cleanup member.
3322 (register_objfile_data_with_cleanup): New function, from
3323 register_objfile_data.
3324 (register_objfile_data): Use it.
3325 (objfile_free_data): Call clear_objfile_data.
3326 (clear_objfile_data): Call cleanup functions.
3327 * objfiles.h (register_objfile_data_with_cleanup): Declare.
3328
574dffa2
DJ
33292008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3330
3331 * objfiles.c (init_entry_point_info): Handle shared libraries.
3332
2c404490
DJ
33332008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3334
3335 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
3336 lowest_pc.
3337
237fc4c9
PA
33382008-05-02 Jim Blandy <jimb@codesourcery.com>
3339 Pedro Alves <pedro@codesourcery.com>
3340
3341 Implement displaced stepping.
3342
3343 * gdbarch.sh (max_insn_length): New 'variable'.
3344 (displaced_step_copy, displaced_step_fixup)
3345 (displaced_step_free_closure, displaced_step_location): New
3346 functions.
3347 (struct displaced_step_closure): Add forward declaration.
3348 * gdbarch.c, gdbarch.h: Regenerated.
3349
3350 * arch-utils.c: #include "objfiles.h".
3351 (simple_displaced_step_copy_insn)
3352 (simple_displaced_step_free_closure)
3353 (displaced_step_at_entry_point): New functions.
3354 * arch-utils.h (simple_displaced_step_copy_insn)
3355 (simple_displaced_step_free_closure)
3356 (displaced_step_at_entry_point): New prototypes.
3357
3358 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
3359 (I386_MAX_MATCHED_INSN_LEN): ... this.
3360 (i386_absolute_jmp_p, i386_absolute_call_p)
3361 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
3362 (i386_displaced_step_fixup): New functions.
3363 (struct i386_insn, i386_match_insn): Update.
3364 (i386_gdbarch_init): Set gdbarch_max_insn_length.
3365 * i386-tdep.h (I386_MAX_INSN_LEN): New.
3366 (i386_displaced_step_fixup): New prototype.
3367 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
3368 Register gdbarch_displaced_step_copy,
3369 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
3370 and gdbarch_displaced_step_location functions.
3371
3372 * infrun.c (debug_displaced): New variable.
3373 (show_debug_displaced): New function.
3374 (struct displaced_step_request): New struct.
3375 (displaced_step_request_queue, displaced_step_ptid)
3376 (displaced_step_gdbarch, displaced_step_closure)
3377 (displaced_step_original, displaced_step_copy)
3378 (displaced_step_saved_copy, can_use_displaced_stepping): New
3379 variables.
3380 (show_can_use_displaced_stepping, use_displaced_stepping)
3381 (displaced_step_clear, cleanup_displaced_step_closure)
3382 (displaced_step_dump_bytes, displaced_step_prepare)
3383 (displaced_step_clear_cleanup, write_memory_ptid)
3384 (displaced_step_fixup): New functions.
3385 (resume): Call displaced_step_prepare.
3386 (proceed): Call read_pc once, and remember the value. If using
3387 displaced stepping, don't remove breakpoints.
3388 (handle_inferior_event): Call displaced_step_fixup. Add some
3389 debugging output. When we try to step over a breakpoint, but get
3390 a signal to deliver to the thread instead, ensure the step-resume
3391 breakpoint is actually inserted. If a thread hop is needed, and
3392 displaced stepping is enabled, don't remove breakpoints.
3393 (init_wait_for_inferior): Call displaced_step_clear.
3394 (_initialize_infrun): Add "set debug displaced" command. Add
3395 "maint set can-use-displaced-stepping" command. Clear
3396 displaced_step_ptid.
3397 * inferior.h (debug_displaced): Declare variable.
3398 (displaced_step_dump_bytes): Declare function.
3399
3400 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
3401 dependencies.
3402
0428b8f5
DJ
34032008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
3404
3405 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
3406 (arm_force_mode_string, arm_show_fallback_mode)
3407 (arm_show_force_mode): New.
3408 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
3409 arm_frame_is_thumb.
3410 (_initialize_arm_tdep): Add "set arm fallback-mode"
3411 and "set arm force-mode".
3412 * NEWS: Document new commands.
3413
d01a8610
AS
34142008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
3415
3416 * main.h (batch_silent): Declare.
3417 * event-top.c: Include main.h.
3418 (gdb_setup_readline): Remove extern batch_silent declaration.
3419 * infrun.c (normal_stop): Don't print source location when running in
3420 --batch-silent mode.
3421 * Makefile.in (event-top.o): Add main.h dependency.
3422
5009afc5
AS
34232008-05-02 Andreas Schwab <schwab@suse.de>
3424
3425 * target.h (struct target_ops): Add
3426 to_watchpoint_addr_within_range.
3427 (target_watchpoint_addr_within_range): New function.
3428 * target.c (update_current_target): Inherit
3429 to_watchpoint_addr_within_range, defaulting to
3430 default_watchpoint_addr_within_range.
3431 (default_watchpoint_addr_within_range): New function.
3432 (debug_to_watchpoint_addr_within_range): New function.
3433 (setup_target_debug): Set to_watchpoint_addr_within_range.
3434 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
3435 New function.
3436 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
3437 * breakpoint.c (watchpoints_triggered): Use
3438 target_watchpoint_addr_within_range.
3439
a15c5c83
PA
34402008-05-01 Pedro Alves <pedro@codesourcery.com>
3441
3442 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
3443 (i[34567]86-*-dicos*, x86_64-*-dicos*):
3444 Set gdb_osabi to GDB_OSABI_DICOS.
3445
3446 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
3447 * osabi.c (gdb_osabi_name): Add "DICOS".
3448
3449 * i386-dicos-tdep.c: New file.
3450
3451 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
3452 (ALLDEPFILES): Add i386-dicos-tdep.c.
3453 (i386-dicos-tdep.o): New rule.
3454
728c8f58
PA
34552008-05-01 Pedro Alves <pedro@codesourcery.com>
3456
3457 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
3458 and register the fork's PTID as a thread.
3459
604133b5
AR
34602008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
3461
3462 PR gdb/1665
3463 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
3464 assign its value to the breakpoint created.
3465 (create_breakpoints): Add breakpoint_ops argument and pass it
3466 to create_breakpoint call.
3467 (break_command_really): Add breakpoint_ops argument and pass/assign
3468 appropriately.
3469 (break_command_1): Pass NULL as ops argument.
3470 (set_breakpoint): Pass NULL as ops argument.
3471 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
3472 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
3473 catch and throw catchpoints.
5009afc5 3474
1f906a60 34752008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
3476
3477 PR gdb/2343
3478 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
3479 translate signal numeric value from the target to GDB's enum
3480 target_signal.
3481 * gdbarch.c, gdbarch.h: Regenerated.
3482 * gdbarch.sh: Added two new functions target_signal_from_host and
3483 target_signal_to_host.
680b56ce 3484 * target.h (default_target_signal_from_host,
1cded358
AR
3485 default_target_signal_to_host): New functions - declarations.
3486 * signals/signals.c (struct gdbarch): New declaration.
3487 (default_target_signal_to_host, default_target_signal_from_host): New
3488 functions.
3489
ed5e9466
DJ
34902008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3491 Pedro Alves <pedro@codesourcery.com>
3492
3493 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
3494 Johnston <jjohnstn@redhat.com>.
3495
3496 * NEWS: Mention attach to stopped process fix.
3497 * infcmd.c (detach_command, disconnect_command): Discard the thread
3498 list.
3499 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
3500 attaching. Use signal_stop_state.
3501 (signal_stop_state): Check stop_soon.
3502 * linux-nat.c (kill_lwp): Declare earlier.
3503 (pid_is_stopped, linux_nat_post_attach_wait): New.
3504 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
3505 comments.
3506 (linux_nat_attach): Use linux_nat_post_attach_wait.
3507 (detach_callback, linux_nat_detach): Improve handling for signalled
3508 processes.
3509 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
3510 from the process ID.
3511 * Makefile.in (infcmd.o): Update.
3512
b39cc962
DJ
35132008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
3514
3515 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
3516 * arm-tdep.c (arm_frame_is_thumb): New.
3517 (arm_pc_is_thumb): Clarify comment.
3518 (thumb_analyze_prologue): Remove PC special case.
3519 (thumb_scan_prologue): Take a block_addr argument. Use it for
3520 find_pc_partial_function. Remove unused variables.
3521 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
3522 for find_pc_partial_function. Remove PC special case.
3523 (arm_prologue_prev_register): Add special handling for PC and CPSR.
3524 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
3525 (arm_get_next_pc): Use arm_frame_is_thumb.
3526 (arm_write_pc): Use CPSR_T instead of 0x20.
3527 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
3528 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
3529 (CPSR_T): Define.
3530 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
3531 DWARF2_FRAME_REG_FN.
3532 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
3533 DWARF2_FRAME_REG_FN.
3534 (struct dwarf2_frame_state_reg): Add FN to loc union.
3535
944f08ab
JB
35362008-05-01 Nick Roberts <nickrob@snap.net.nz>
3537
3538 * exec.c (print_section_info): Add missing '\n'.
3539
cfc01461
VP
35402008-05-01 Vladimir Prus <vladimir@codesourcery.com>
3541
3542 * thread.c (add_thread): Move observer call to ...
680b56ce 3543 (add_thread_silent): ... here.
cfc01461 3544
1af5d7ce
UW
35452008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3546
3547 * rs6000-tdep.c: Update for unwinder changes.
3548 * ppcobsd-tdep.c: Likewise.
3549
f089c433
UW
35502008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3551
3552 * s390-tdep.c: Update for unwinder changes.
3553
8d998b8f
UW
35542008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
3555
3556 * spu-tdep.c: Update for unwinder changes.
3557
5366653e
DJ
35582008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3559
3560 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
3561 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
3562 sparc64-linux-tdep.c: Update for unwinder changes.
3563
b8a22b94
DJ
35642008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3565
3566 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
3567 for unwinder changes.
3568 * mips-tdep.c: Likewise.
3569 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
3570 raw one.
3571
a262aec2
DJ
35722008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3573
3574 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
3575 unwinder changes.
3576
10458914
DJ
35772008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3578
3579 Update i386 and amd64 ports for unwinder changes.
3580
3581 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
3582 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
3583 (amd64_frame_unwind): Use default_frame_sniffer.
3584 (amd64_frame_sniffer): Delete.
3585 (amd64_sigtramp_frame_cache): Expect this_frame.
3586 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
3587 (amd64_sigtramp_frame_sniffer): Update signature.
3588 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
3589 (amd64_frame_base_address): Expect this_frame.
3590 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
3591 this_frame.
3592 (amd64_init_abi): Use set_gdbarch_dummy_id and
3593 frame_unwind_append_unwinder.
3594 * i386-tdep.c (i386_frame_cache): Expect this_frame.
3595 (i386_frame_this_id, i386_frame_prev_register): Update signature.
3596 (i386_frame_unwind): Use default_frame_sniffer.
3597 (i386_frame_sniffer): Delete.
3598 (i386_sigtramp_frame_cache): Expect this_frame.
3599 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
3600 (i386_sigtramp_frame_sniffer): Update signature.
3601 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
3602 (i386_frame_base_address): Update signature.
3603 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
3604 (i386_push_dummy_call): Update comment.
3605 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
3606 Expect this_frame.
3607 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
3608 and frame_unwind_append_unwinder.
3609 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
3610 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
3611 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
3612 i386nbsd-tdep.c: Update for unwinder changes.
3613
25492ce3
DJ
36142008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3615
3616 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
3617 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
3618 this_frame.
3619 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
3620 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
3621 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
3622 signature.
3623 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
3624 this_frame.
3625 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
3626 Update signature.
3627 * tramp-frame.h (struct tramp_frame): Update signature of init.
3628 * Makefile.in (trad-frame.o): Update.
3629
4a4e5149
DJ
36302008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3631
3632 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
3633 (execute_stack_op): Put this_frame in the baton.
3634 (execute_cfa_program): Take this_frame.
3635 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
3636 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
3637 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
3638 (dwarf2_frame_this_id): Adjust to work on this_frame.
3639 (dwarf2_signal_frame_this_id): Delete.
3640 (dwarf2_frame_prev_register): Update signature. Use new frame
3641 unwind methods.
3642 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
3643 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
3644 dwarf2_frame_sniffer.
3645 (dwarf2_append_unwinders): New.
3646 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
3647 this_frame.
3648 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
3649 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
3650 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
3651 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
3652 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
3653 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
3654 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
3655 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
3656 (dwarf2_append_unwinders): Declare.
3657 (dwarf2_frame_base_sniffer): Update declaration.
3658 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
3659 this_frame.
3660
669fac23
DJ
36612008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3662
3663 Convert frame unwinders to use the current frame and
3664 "struct value".
3665
3666 * frame.c (frame_debug): Make global.
3667 (get_frame_id): Pass this frame to unwinder routines.
3668 (frame_pc_unwind): Remove unused unwind->prev_pc support.
3669 (do_frame_register_read): Do not discard the return value of
3670 frame_register_read.
3671 (frame_register_unwind): Remove debug messages. Use
3672 frame_unwind_register_value.
3673 (frame_unwind_register_value, get_frame_register_value): New
3674 functions.
3675 (create_new_frame, get_frame_base_address, get_frame_locals_address)
3676 (get_frame_args_address, get_frame_type): Pass this frame to
3677 unwinder routines.
3678 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
3679 functions.
3680 * frame.h: Update comments.
3681 (frame_debug, frame_unwind_register_value, get_frame_register_value)
3682 (frame_prepare_for_sniffer): Declare.
3683 * frame-unwind.h: Update comments and parameter names.
3684 (default_frame_sniffer): Declare.
3685 (frame_prev_register_ftype): Return a struct value *.
3686 (struct frame_unwind): Remove prev_pc member.
3687 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
3688 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
3689 (frame_unwind_got_register, frame_unwind_got_memory)
3690 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
3691 * frame-base.h: Update comments and parameter names.
3692 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
3693 if necessary. Add debugging output.
3694 * sentinel-frame.c (sentinel_frame_prev_register)
3695 (sentinel_frame_this_id): Update for new signature.
3696 (sentinel_frame_prev_pc): Delete.
3697 (sentinel_frame_unwinder): Remove prev_pc.
3698 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
3699 prev_pc.
3700 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
3701 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
3702 (frame_unwind_append_sniffer): Delete.
3703 (frame_unwind_append_unwinder): New function.
3704 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
3705 from unwinders. Use frame_prepare_for_sniffer.
3706 (default_frame_sniffer, frame_unwind_got_optimized)
3707 (frame_unwind_got_register, frame_unwind_got_memory)
3708 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
3709 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
3710 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
3711 signature.
3712 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
3713 * gdbarch.c, gdbarch.c: Regenerated.
3714 * frame-base.c (default_frame_base_address)
3715 (default_frame_locals_address, default_frame_args_address): Update
3716 for new signature.
3717 (frame_base_find_by_frame): Pass this frame to unwinder routines.
3718 * infcall.c (call_function_by_hand): Update comments.
3719 * Makefile.in (frame-unwind.o): Update dependencies.
3720
9214ee5f
DJ
37212008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3722
3723 * ada-lang.c (ada_value_primitive_packed_val): Only check
3724 value_lazy for memory lvals.
3725 * findvar.c (value_of_register_lazy): New function.
3726 (locate_var_value): Only check value_lazy for memory lvals.
3727 * valarith.c (value_subscripted_rvalue): Likewise.
3728 * valops.c (value_fetch_lazy): Handle both memory and register
3729 lvals.
3730 (search_struct_field, value_slice): Only check value_lazy for memory
3731 lvals.
3732 * value.c (struct value): Update comment for lazy.
3733 (value_primitive_field): Only check value_lazy for memory lvals.
3734 * value.h (value_lazy): Update comment.
3735 (value_of_register_lazy): Declare.
3736
939643d7
DJ
37372008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
3738
3739 * corefile.c (reopen_exec_file): Close any open files.
3740
1de34ab7
JB
37412008-04-29 Joel Brobecker <brobecker@adacore.com>
3742
3743 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
3744 show_memory_breakpoints to 1 while reading the instruction bundle.
3745
ea42b34a
JB
37462008-04-29 Joel Brobecker <brobecker@adacore.com>
3747
3748 * gdbarch.sh: Document the return_value method. Explain that
3749 the FUNCTYPE parameter might be NULL.
3750 * gdbarch.h: Regenerated.
3751 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
3752 type when calling using_struct_return, as this is unnecessary
3753 on this target.
3754
a0fe373c
JB
37552008-04-28 Joel Brobecker <brobecker@adacore.com>
3756
3757 * terminal.h (create_tty_session): Fix return type.
3758
c6446539
VP
37592008-04-26 Vladimir Prus <vladimir@codesourcery.com>
3760
3761 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
3762
2f069f6f
JB
37632008-04-26 Joel Brobecker <brobecker@adacore.com>
3764
3765 * breakpoint.c (condition_command, commands_from_control_command)
3766 (break_command_really): Minor reformatting.
3767
93b5768b
PA
37682008-04-25 Pedro Alves <pedro@codesourcery.com>
3769
3770 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
3771
436675d3
PA
37722008-04-25 Pedro Alves <pedro@codesourcery.com>
3773
3774 * amd64-tdep.c (amd64_get_longjmp_target): New.
3775 (amd64_init_abi): Register amd64_get_longjmp_target as
3776 gdbarch_get_longjmp_target callback.
3777 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
3778
78b6a731
PA
37792008-04-25 Pedro Alves <pedro@codesourcery.com>
3780
3781 * breakpoint.h (enum bpstat_what_main_action): Delete
3782 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
3783
3784 * breakpoint.c (clrs): Delete.
3785 (bpstat_what): Update table.
3786
3787 * infrun.c (handle_inferior_event): Remove
3788 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
3789
9e22b03a
VP
37902008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3791
3792 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
3793 Adjust all prototypes using mi_cmd_args_ftype to use
3794 mi_cmd_argv_ftype.
3795 (struct mi_cmd): Remove the args_func field.
3796 * mi/mi-cmds.c: Don't provide value for the args_func field.
3797 * mi/mi-main.c (mi_execute_async_cli_command)
3798 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3799 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3800 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
3801 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
3802 (mi_cmd_target_download): Adjust.
3803 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
3804 (mi_cmd_execute): Do not check for args_func.
3805 (mi_execute_async_cli_command): Adjust.
3806 * mi/mi-parse.c: Don't check for args_func.
3807
721c02de 38082008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 3809
680b56ce
AS
3810 * breakpoint.c (bpstat_check_location)
3811 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
3812 New, extracted from bpstat_stop_status.
3813 (bpstat_stop_status): Use the above.
18a18393
VP
3814
38152008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3816
680b56ce
AS
3817 * mi/mi-main.c (last_async_command): Rename to current_token.
3818 (previous_async_command): Remove.
3819 (mi_cmd_gdb_exit): Adjust.
3820 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
3821 (mi_cmd_target_select): Adjust.
3822 (mi_cmd_execute): Don't set previous_async_command. Free token
3823 here even in async mode.
3824 (mi_execute_async_cli_command): Adjust.
3825 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
3826 token.
3827 (mi_load_progress): Adjust.
721c02de 3828
f13468d9
VP
38292008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3830
680b56ce
AS
3831 * infcmd.c (step_1_continuation): Always disable longjmp
3832 breakpoint if we're not going to do another step.
f13468d9 3833
f107f563
VP
38342008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3835
3836 exec_cleanup murder.
3837 * breakpoint.c (until_break_command_continuation): Add
3838 the 'error' parameter. Directly delete the breakoint as
3839 opposed to running cleanups.
3840 (until_break_command): Install continuation only
3841 after starting the target. Don't use exec cleanups,
3842 use ordinary cleanups. Discard cleanups is successfully
3843 started the target in async mode.
3844 (make_cleanup_delete_breakpoint): Remove.
3845 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
3846 declaration.
3847 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
3848 declarations.
3849 (struct continations): Add the 'error' parameter to the
3850 continuation_hook field.
3851 (add_continuation, do_all_continuations)
3852 (add_intermediate_continuation)
3853 (do_all_intermediate_continuations): Add the 'error' parameter.
3854 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
3855 * inf-loop.c (inferior_event_handler): Instead of calling
3856 discard_all_continuations, use do_all_continuations with 1 as
3857 'error' parameter. Pass 0 as 'error' parameter in existing uses
3858 of discard_all_continuations.
3859 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
3860 cleanups.
3861 (step_once): Install continuation only after resuming the target.
3862 (step_1_continuation): Disable longjmp breakpoint on error.
3863 (finish_command_continuation): Add the error parameter. Delete
3864 the finish breakpoint directly, do not use cleanups.
3865 (finish_command): Do not use exec_cleanups. Always setup
3866 continuation. For sync case, immediately run them.
3867 (attach_command_continuation): Add the error parameter.
3868 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
3869 remove step_resume_breakpoint -- adjust delete it directly.
3870 * interps.c (interp_set): Adjust call to do_all_continations.
3871 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
3872 do exec cleanups.
3873 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
3874 cleanups.
3875 (mi_cmd_execute): Do not use exec_cleanup.
3876 (mi_execute_async_cli_command): Simplify the string concatenation
3877 logic. Do no use exec cleanup.
3878 (mi_exec_async_cli_cmd_continuation): New parameter error.
3879 Free last_async_command.
3880 * top.c (command_line_handler_continuation): New parameter error.
3881 * utils.c (exec_cleanup_chain, make_exec_cleanup)
3882 (do_exec_cleanups): Remove.
3883 (add_continuation, do_all_continations)
3884 (add_intermediate_continuation)
3885 (do_all_intermediate_continuations): New parameter error.
3886
74960c60
VP
38872008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3888
3889 * breakpoint.h (bp_location_p): New typedef.
3890 Register a vector of bp_location_p.
3891 * breakpoint.c (always_inserted_mode)
3892 (show_always_inserted_mode): New.
3893 (unlink_locations_from_global_list): Remove.
3894 (update_global_location_list)
3895 (update_global_location_list_nothrow): New.
3896 (update_watchpoint): Don't free locations.
3897 (should_insert_location): New.
3898 (insert_bp_location): Use should_insert_location.
3899 (insert_breakpoint_locations): Copied from
3900 insert_breakpoints.
3901 (insert_breakpoint): Use insert_breakpoint_locations.
3902 (bpstat_stop_status): Call update_global_location_list
3903 when disabling breakpoint.
3904 (allocate_bp_location): Don't add to bp_location_chain.
3905 (set_raw_breakpoint)
3906 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
3907 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
3908 (enable_overlay_breakpoints, disable_overlay_breakpoints)
3909 (set_longjmp_resume_breakpoint)
3910 (enable_watchpoints_after_interactive_call_stop)
3911 (disable_watchpoints_before_interactive_call_start)
3912 (create_internal_breakpoint)
3913 (create_fork_vfork_event_catchpoint)
3914 (create_exec_event_catchpoint, set_momentary_breakpoint)
3915 (create_breakpoints, break_command_1, watch_command_1)
3916 (create_exception_catchpoint)
3917 (handle_gnu_v3_exceptions)
3918 (disable_breakpoint, breakpoint_re_set_one)
3919 (create_thread_event_breakpoint, create_solib_event_breakpoint)
3920 (create_ada_exception_breakpoint): : Don't call check_duplicates.
3921 Call update_global_location_list.
3922 (delete_breakpoint): Don't remove locations and don't
3923 try to reinsert them. Call update_global_location_list.
3924 (update_breakpoint_locations): Likewise.
3925 (restore_always_inserted_mode): New.
3926 (update_breakpoints_after_exec): Temporary disable
3927 always inserted mode.
3928 * Makefile.in: Update dependencies.
3929
3930 * infrun.c (proceed): Remove breakpoints while stepping
3931 over breakpoint.
3932 (handle_inferior_event): Don't remove or insert
3933 breakpoints.
3934 * linux-fork.c (checkpoint_command): Remove breakpoints
3935 before fork and insert after.
3936 (linux_fork_context): Remove breakpoints before switch
3937 and insert after.
3938 * target.c (target_disconnect, target_detach): Remove
3939 breakpoints from target.
3940
680b56ce 3941
d24317b4
VP
39422008-04-24 Vladimir Prus <vladimir@codesourcery.com>
3943
3944 * breakpoint.c (print_one_breakpoint_location): In MI
3945 mode, report the location string the breakpoint was
3946 originally created with.
3947
ee967b5f
MG
39482008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
3949
3950 * Makefile.in (xtensa-tdep.o): Update dependencies.
3951 * configure.tgt (xtensa*): Update dependencies.
3952 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
3953 Local variable areg renamed to arreg.
3954 (areg_number): New function.
3955 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
3956 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
3957 replaced by arreg_number.
3958 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
3959 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
3960 (xtensa_scan_prologue): New function.
3961 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
3962 when ENTRY instraction hasn't been executed yet. Get the frame pointer
3963 value based on prologue analysis. Fix the bugs preventing WS and
3964 AR4-AR7/A11 registers from getting right values for intermediate frames,
3965 whose registers have been already spilled.
3966 (xtensa_frame_prev_register): Fix WS register value. Use are_number
3967 and arreg_number appropriately.
3968 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
3969 svr4_ilp32_fetch_link_map_offsets.
3970
09d71d23
AS
39712008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
3972
3973 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
3974 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
3975
fdc59709
PB
39762008-04-23 Paolo Bonzini <bonzini@gnu.org>
3977
680b56ce
AS
3978 * acinclude.m4: Add override.m4.
3979 * configure: Regenerate.
fdc59709 3980
0bcd0149
JK
39812008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3982
3983 * ada-lang.c (get_selections): Variable PROMPT made non-const and
3984 initialized with a trailing space now. Use PROMPT_ARG of
3985 COMMAND_LINE_INPUT instead of printing it ourselves.
3986
88d8a8e0
JB
39872008-04-22 Joel Brobecker <brobecker@adacore.com>
3988
3989 * NEWS: Document support for 64-bit core file.
3990
c055b101
CV
39912008-04-22 Corinna Vinschen <vinschen@redhat.com>
3992
3993 * NEWS: Add information on calling convention and new SH CLI options.
3994
3995 * sh-tdep.c (sh_cc_gcc): New static string.
3996 (sh_cc_renesas): Ditto.
3997 (sh_cc_enum): New static string array.
3998 (sh_active_calling_convention): New static string pointer denoting
3999 active user chosen ABI.
4000 (sh_is_renesas_calling_convention): New function to return function
4001 specific ABI, or user choice if necessary.
4002 (sh_use_struct_convention): Rename first argument and turn around its
4003 meaning. Check for renesas ABI and return accordingly.
4004 (sh_use_struct_convention_nofpu): New function.
4005 (sh_next_flt_argreg): Get function type as third parameter. Check
4006 for renesas ABI and choose floating registers accordingly.
4007 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
4008 struct return slot accordingly.
4009 (sh_push_dummy_call_nofpu): Ditto.
4010 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
4011 Evaluate ABI and give to sh_use_struct_convention_nofpu.
4012 (sh_return_value_fpu): Evaluate ABI and give to
4013 sh_use_struct_convention.
4014 (show_sh_command): New function.
4015 (set_sh_command): Ditto.
4016 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
4017 CLI command.
4018
4019 * gdbarch.sh (return_value): Add func_type argument.
4020 * gdbarch.c: Regenerate.
4021 * gdbarch.h: Ditto.
4022 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
4023 val_type so as not to collide with value_type function. Call
4024 using_struct_return with additional function type argument.
4025 * infcall.c (call_function_by_hand): Call using_struct_return and
4026 gdbarch_return_value with additional function type argument.
4027 * infcmd.c (print_return_value): Take addition func_type argument.
4028 Call gdbarch_return_value with additional function type argument.
4029 (finish_command_continuation): Call print_return_value with additional
4030 function type argument.
4031 (finish_command): Ditto.
4032 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
4033 additional function type argument.
4034 * stack.c (return_command): Call using_struct_return and
4035 gdbarch_return_value with additional function type argument.
4036 * value.c (using_struct_return): Take additional function type argument.
4037 * value.h (using_struct_return): Accommodate declaration.
4038 * alpha-tdep.c (alpha_return_value): Add func_type argument.
4039 * amd64-tdep.c (amd64_return_value): Ditto.
4040 * arm-tdep.c (arm_return_value): Ditto.
4041 * avr-tdep.c (avr_return_value): Ditto.
4042 * cris-tdep.c (cris_return_value): Ditto.
4043 * frv-tdep.c (frv_return_value): Ditto.
4044 * h8300-tdep.c (h8300_return_value): Ditto.
4045 (h8300h_return_value): Ditto.
4046 * hppa-tdep.c (hppa32_return_value): Ditto.
4047 (hppa64_return_value): Ditto.
4048 * i386-tdep.c (i386_return_value): Ditto.
4049 * ia64-tdep.c (ia64_return_value): Ditto.
4050 * iq2000-tdep.c (iq2000_return_value): Ditto.
4051 * m32c-tdep.c (m32c_return_value): Ditto.
4052 * m32r-tdep.c (m32r_return_value): Ditto.
4053 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
4054 * m68k-tdep.c (m68k_return_value): Ditto.
4055 (m68k_svr4_return_value): Ditto.
4056 * m88k-tdep.c (m88k_return_value): Ditto.
4057 * mep-tdep.c (mep_return_value): Ditto.
4058 * mips-tdep.c (mips_eabi_return_value): Ditto.
4059 (mips_n32n64_return_value): Ditto.
4060 (mips_o32_return_value): Ditto.
4061 (mips_o64_return_value): Ditto.
4062 * mn10300-tdep.c (mn10300_return_value): Ditto.
4063 * mt-tdep.c (mt_return_value): Ditto.
4064 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
4065 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
4066 (ppc_sysv_abi_broken_return_value): Ditto.
4067 (ppc64_sysv_abi_return_value): Ditto.
4068 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
4069 (ppc_sysv_abi_broken_return_value): Ditto.
4070 (ppc64_sysv_abi_return_value): Ditto.
4071 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
4072 * rs6000-tdep.c (rs6000_return_value): Ditto.
4073 * s390-tdep.c (s390_return_value): Ditto.
4074 * score-tdep.c (score_return_value): Ditto.
4075 * sh-tdep.c (sh_return_value_nofpu): Ditto.
4076 (sh_return_value_fpu): Ditto.
4077 * sh64-tdep.c (sh64_return_value): Ditto.
4078 * sparc-tdep.c (sparc32_return_value): Ditto.
4079 * sparc64-tdep.c (sparc64_return_value): Ditto.
4080 * spu-tdep.c (spu_return_value): Ditto.
4081 * v850-tdep.c (v850_return_value): Ditto.
4082 * vax-tdep.c (vax_return_value): Ditto.
4083 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
4084 * xtensa-tdep.c (xtensa_return_value): Ditto.
4085
4086 * gdbtypes.h (struct type): Add calling_convention member.
4087 * dwarf2read.c (read_subroutine_type): Add calling convention read
4088 from DW_AT_calling_convention attribute to function type.
4089
9eec4d1e
MD
40902008-04-22 Markus Deuling <deuling@de.ibm.com>
4091
4092 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
4093 multi_f77_subscript to support values from registers.
4094 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
4095 * value.h (value_subscripted_rvalue): Add prototype.
4096
4097 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
4098 Fix output.
4099 * f-valprint.c (f_val_print): Likewise.
4100
ef72380d
CS
41012008-04-21 Craig Silverstein <csilvers@google.com>
4102
4103 * dwarf2read.c (zlib_decompress_section): Define abfd in the
4104 !HAVE_ZLIB_H case.
4105
ff8e85c3
PA
41062008-04-21 Pedro Alves <pedro@codesourcery.com>
4107
4108 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
4109 section is not a code section.
4110
31fffb02
CS
41112008-04-19 Craig Silverstein <csilvers@google.com>
4112
4113 * NEWS: Add information on compressed debug sections.
4114
8e91f023
VP
41152008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4116
4117 * mi/mi-cmd-var.c (varobj_update_one): Print new
4118 value for variable objects that changed type.
4119
603ba1de
VP
41202008-04-19 Vladimir Prus <vladimir@codesourcery.com>
4121
4122 * varobj.c (varobj_invalidate): Don't touch floating
4123 varobjs.
4124
7fc830e2
MK
41252008-04-19 Mark Kettenis <kettenis@gnu.org>
4126
4127 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
4128 (multiple_symbols_cancel): Remove extra const.
4129 * symtab.h: Likewise.
4130
bcbf8b68
NR
41312008-04-19 Nick Roberts <nickrob@snap.net.nz>
4132
4133 * interps.c (top_level_interpreter): Rename static variable...
4134 (top_level_interpreter_ptr): ...to this.
4135 (top_level_interpreter): New function.
4136
4137 * interps.h: New extern for top_level_interpreter.
4138
4139 * linespec.c: Include interps.h and mi/mi-cmds.h.
4140 (decode_line_2): When using MI, always set all breakpoints in menu.
4141
4142 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
4143
31fffb02 41442008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
4145
4146 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
4147 * config.in, configure: Regenerate.
4148 * dwarf2read.c: Include zlib.h if present.
4149 Modified *_SECTION macros.
4150 (section_is_p): New.
4151 (dwarf2_locate_sections): Use section_is_p instead of strcmp
4152 (dwarf2_resize_section): New.
4153 to determine whether a given section has a given name.
4154 (zlib_decompress_section): New.
4155 (dwarf2_read_section): Read the compressed section if present
4156 in the binary.
4157 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 4158
a03b3a97
TJB
41592008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
4160
4161 * defs.h (exec_set_section_offsets): Remove prototype.
4162 * exec.c (exec_set_section_offsets): Remove function.
4163
9e386756
JB
41642008-04-18 Joel Brobecker <brobecker@adacore.com>
4165
4166 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
4167 in the search for the matching symbol.
4168
2ec93238
MK
41692008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
4170
4171 * breakpoint.c (update_watchpoint): Always reparse
4172 condition.
4173
e9bbd7c5
JB
41742008-04-17 Joel Brobecker <brobecker@adacore.com>
4175
4176 * breakpoint.c (print_one_breakpoint_location): Make sure to print
4177 the breakpoint address only once.
4178
475bbd17
JB
41792008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
4180
4181 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
4182 rather than a hard-coded architecture, for xcoff executables.
4183
86991504
DE
41842008-04-17 Doug Evans <dje@google.com>
4185
4584e32e
DE
4186 * buildsym.c (watch_main_source_file_lossage): New fn.
4187 (end_symtab): Call it.
4188
86991504
DE
4189 * source.c (find_and_open_source): Add some comments clarifying
4190 handling of FULLNAME argument. Make static. Remove pointless
4191 xstrdup/xfree.
4192
0a320680
PA
41932008-04-17 Pedro Alves <pedro@codesourcery.com>
4194
4195 * inf-loop.c (inferior_event_handler): Also run the intermediate
4196 continuations in the INF_EXEC_COMPLETE case.
4197
700b53b1
TT
41982008-04-16 Tom Tromey <tromey@redhat.com>
4199
4200 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
4201 (set_cmd_async_ok, get_cmd_async_ok): Declare.
4202 * cli/cli-decode.c (set_cmd_async_ok): New function.
4203 (get_cmd_async_ok): New function.
4204 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
4205 "show" as async-ok.
4206 * top.c (execute_command): Use get_cmd_async_ok.
4207 * infcmd.c: Include cli/cli-decode.h.
4208 (_initialize_infcmd): Mark "interrupt" as async-ok.
4209 * Makefile.in (infcmd.o): Depend on cli_decode_h.
4210
dacec2a8
DJ
42112008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
4212
4213 PR gdb/2445
4214 * exec.c: Correct "arch-utils.h" include.
4215
1f906a60 42162008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
4217
4218 PR gdb/2424
4219 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
4220 to allow printing to 'see' real reason of stop. This fixes PR 2424.
4221 * breakpoint.c (bpdisp_texst): New function. The function takes over
4222 the role of bpstats static array in print_one_breakpoint_location.
4223 (print_it_typical): Print "Temporary breakpoint" instead
4224 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
4225 protocols, print disp field.
4226 (print_one_breakpoint_location): Removed bpdisps static definition.
4227 Call new bpstat_text function to get value for 'disp' field.
4228 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
4229
4d7b71aa
DJ
42302008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
4231
4232 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
4233 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
4234 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
4235 * gnulib/Makefile.in: Regenerate.
4236
aa11fd3f
DJ
42372008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4238
4239 * Makefile.in (GNULIB_H): New. Trigger all-lib.
4240 (defs_h): Use $(GNULIB_H).
4241 (all-lib): Depend on gnulib/Makefile.
4242 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
4243 * config.in, gnulib/Makefile.in: Regenerated.
4244
e28b3332
DJ
42452008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4246
4247 * Makefile.in (LIBGNU, INCGNU): Define.
4248 (INTERNAL_CFLAGS_BASE): Add INCGNU.
4249 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
4250 (CLEANDIRS): New.
4251 ($(LIBGNU), all-lib): New rules.
4252 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
4253 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
4254 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
4255 * gnulib: New directory, from gnulib-tool.
4256 * configure, aclocal.m4: Regenerated.
4257
e3bc4218
DJ
42582008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4259
4260 * linux-thread-db.c (have_threads_callback): Check thread->private.
4261
fcacd99f
VP
42622008-04-13 Nick Roberts <nickrob@snap.net.nz>
4263 Vladimir Prus <vladimir@codesourcery.com>
4264
4265 Fix @-varobjs.
680b56ce
AS
4266 * varobj.c (value_of_root): Update the expression for
4267 floating varobjs.
4268 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
4269 report that.
fcacd99f 4270
de051565
MK
42712008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
4272
4273 * mi/mi-cmd-var.c: Include "mi-getopt.h".
4274 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
4275 (mi_cmd_var_set_format): Use new mi_parse_format.
4276 (mi_cmd_var_evaluate_expression): Support for -f option to specify
4277 format.
4278 * Makefile.in (mi-cmd-var.o): Update dependencies.
4279
4280 * varobj.h (varobj_get_formatted_value): Declare.
4281 * varobj.c (my_value_of_variable): Added format parameter.
4282 (cplus_value_of_variable): Likewise.
4283 (java_value_of_variable): Likewise.
4284 (c_value_of_variable): Likewise. Evaluate expression based
4285 on format parameter.
4286 (struct language_specific): Add format parameter to function member
4287 *value_of_variable.
4288 (varobj_get_formatted_value): New.
4289 (varobj_get_value): Added format parameter to method call.
680b56ce 4290
56953f80
JB
42912008-04-08 Joel Brobecker <brobecker@adacore.com>
4292
4293 * stabsread.c (cleanup_undefined_types_noname): Manually set the
4294 instance flags of the undefined type before calling replace_type.
4295
e4e33b9e
VP
42962008-04-08 Vladimir Prus <vladimir@codesourcery.com>
4297
4298 * target.h (enum strata): Remove the download_stratum.
680b56ce 4299
92b5c263
DE
43002008-04-07 Doug Evans <dje@google.com>
4301
4302 * buildsym.h (last_source_file): Add dwarf info to comment.
4303 (last_source_start_addr): Ditto.
4304
effa26a9
PA
43052008-04-07 Pedro Alves <pedro@codesourcery.com>
4306
4307 * alphanbsd-tdep.c: Include "target.h".
4308 * mn10300-tdep.c: Include "target.h".
4309 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
4310
2b2d9e11
VP
43112008-04-06 Vladimir Prus <vladimir@codesourcery.com>
4312
4313 Fix breakpoint condition that use member variables.
680b56ce
AS
4314 * valops.c (check_field): Remove.
4315 (check_field_in): Rename to check_field.
4316 (value_of_this): Use la_name_of_this.
4317 * value.h (check_field): Adjust prototype.
4318
4319 * language.h (la_value_of_this): Rename to la_name_of_this.
4320 * language.c (unknown_language_defn): Specify "this" for
4321 name_of_this.
4322 (auto_language_defn): Likewise.
4323 (local_language_defn): Likewise.
4324 * ada-lang.c (ada_language_defn): Adjust comment.
4325 * c-lang.c (c_language_defn): Adjust comment.
4326 (cplus_language_defn): Specify "this" for name_of_this.
4327 (asm_language_defn): Adjust comment.
4328 (minimal_language_defn): Adjust comment.
4329 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
4330 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
4331 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
4332 * objc-lang.c (objc_language_defn): Specify "self" for
4333 name_of_this.
4334 * p-lang.c (pascal_language_defn): Specify "this" for
4335 name_of_this.
4336 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
4337
4338 * symtab.c (lookup_symbol_aux): Lookup "this" in the
4339 proper scope, and check for field in type of "this", without
4340 trying to create a value.
2b2d9e11 4341
a13e061a
PA
43422008-04-04 Pedro Alves <pedro@codesourcery.com>
4343
4344 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
4345 (mi_error_message): Delete declaration.
4346 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
4347 returning MI_CMD_ERROR.
4348 * mi/mi-main.c (mi_error_message): Delete.
4349 (mi_cmd_exec_interrupt):
4350 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
4351 (mi_cmd_thread_info): Call error instead of returning
4352 MI_CMD_ERROR.
4353 (mi_cmd_data_list_register_values): Call error instead of
4354 returning MI_CMD_ERROR. Adapt to new get_register interface.
4355 (get_register): Change return typo to void. Call error instead of
4356 returning MI_CMD_ERROR.
4357 (mi_cmd_data_write_register_values): Call error instead of
4358 returning MI_CMD_ERROR.
4359 (mi_cmd_list_features): Return MI_CMD_DONE.
4360 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
4361 (mi_execute_command): Always print exceptions with -error.
4362
aad4b048
JB
43632008-04-04 Joel Brobecker <brobecker@adacore.com>
4364
4365 * NEWS: Mention new commands set/show multiple-symbols.
4366
717d2f5a
JB
43672008-04-03 Joel Brobecker <brobecker@adacore.com>
4368
4369 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
4370 (multiple_symbols_cancel): New constants.
4371 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
4372 (multiple_symbols_select_mode): New function.
4373 (_initialize_symtab): Add new set/show multiple-symbols commands.
4374 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
4375 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
4376 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
4377 setting.
4378 * linespec.c (decode_line_2): Likewise.
4379
f73634e5
DE
43802008-04-03 Doug Evans <dje@sebabeach.org>
4381
4382 * symtab.h (enum free_code): Delete free_contents, unused.
4383 * symmisc.c (free_symtab_block): Delete.
4384 (free_symtab, case free_code): Delete.
4385
1f906a60 43862008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
4387
4388 * valops.c (value_cast_structs): New function. Cast related
680b56ce 4389 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
4390 function comes mostly from value_cast_pointers.
4391 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
4392 to value_cast_structs. Now value_cast_pointers needs only create
4393 appropriate reference after using value_cast_structs for actual
4394 casting.
4395 (value_cast): Handle references.
4396
61ad90e1
MK
43972008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
4398
4399 * MAINTAINERS: Added myself to section Write After Approval.
4400
b7d038ae
DJ
44012008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4402
4403 * ia64-tdep.c (examine_prologue): Correct array access.
4404
1f906a60 44052008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
4406
4407 * cp-support.c (first_component_command): Return if no arguments.
4408
df3ac606
CD
44092008-03-28 Carlos O'Donell <carlos@codesourcery.com>
4410
4411 * ser-mingw.c (ser_windows_open): Open requested name.
4412
ca933485
AR
44132008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
4414
4415 * MAINTAINERS: Added myself.
4416
5f667f2d
PA
44172008-03-28 Pedro Alves <pedro@codesourcery.com>
4418
4419 * target.c (find_default_run_target): Allow a NULL `do_mesg'
4420 parameter. If it is NULL, don't call error.
4421 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
4422 `do_mesg' parameter to find_default_run_target. If no target was
4423 found, return 0.
4424
e741f4d4
DJ
44252008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
4426
4427 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
4428 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
4429 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
4430 Delete.
4431 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
4432
f66d8205 44332008-03-27 Joel Brobecker <brobecker@adacore.com>
4434
4435 GDB 6.8 released.
4436
221c031f
UW
44372008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4438
4439 * features/Makefile (%.dat): Set xmltarget to the base filename
4440 of the XML source, without subdirectory.
4441 * regformats/rs6000/powerpc-32.dat: Regenerate.
4442 * regformats/rs6000/powerpc-64.dat: Regenerate.
4443 * regformats/rs6000/powerpc-e500.dat: Regenerate.
4444
40c58d95
MD
44452008-03-27 Markus Deuling <deuling@de.ibm.com>
4446
4447 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
4448 objfile arch.
4449
bb1ec7d2
NR
44502008-03-27 Nick Roberts <nickrob@snap.net.nz>
4451
4452 * mi/mi-main.c (enum captured_mi_execute_command_actions):
4453 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
4454
5e2b427d
UW
44552008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
4456
4457 * objfiles.h (struct objfile): New GDBARCH member.
4458 (get_objfile_arch): Add prototype.
4459 * objfiles.c: Include "arch-utils.h".
4460 (allocate_objfile): Look up gdbarch associated with bfd.
4461 (get_objfile_arch): New function.
4462 * Makefile (objfiles.o): Update dependencies.
4463
4464 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
4465 by objfile arch.
4466 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
4467 by frame arch.
4468 (locexpr_describe_location): Replace current_gdbarch by
4469 objfile arch.
4470 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
4471 (dwarf2_add_field): Likewise.
4472 (read_tag_pointer_type): Likewise.
4473 (read_base_type): Likewise.
4474 (new_symbol): Likewise.
4475
4476 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
4477 (decode_base_type, decode_function_type): Likewise.
4478 (coff_read_struct_type, coff_read_enum_type): Likewise.
4479 (coff_symtab_read): Replace current_gdbarch by objfile arch.
4480 (decode_base_type): Likewise.
4481 (coff_read_enum_type): Likewise.
4482 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
4483 (coff_read_enum_type): Likewise.
4484
4485 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
4486 (end_psymtab): Likewise.
4487 (process_one_symbol): Likewise.
4488
4489 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
4490 (parse_procedure): Likewise.
4491 (parse_partial_symbols): Likewise.
4492
4493 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
4494
4495 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
4496 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
4497 built-in types.
4498 (read_range_type): Replace current_gdbarch by objfile arch. Replace
4499 static range_index_type by built-in type.
4500 (read_one_struct_field): Replace current_gdbarch by objfile arch.
4501 (read_enum_type): Likewise.
4502
4503 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
4504 objfile arch.
4505
5a413362
VP
45062008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4507
4508 * varobj.h (varobj_floating_p): Declare.
4509 * varobj.c (varobj_floating_p): New.
4510 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
4511 '@' as the name, update all floating varobjs.
4512
a5defcdc
VP
45132008-03-26 Vladimir Prus <vladimir@codesourcery.com>
4514
4515 * varobj.c (struct varobj_root): Rename use_selected_frame to
4516 floating, and clarify the meaning.
4517 (varobj_create, varobj_update, new_root_variable): Adjust.
4518 (value_of_root): Don't use type_changed as in variable,
4519 adjust comment.
4520 (c_value_of_root): Adjust.
5a413362 4521
403fe197
PA
45222008-03-25 Pedro Alves <pedro@codesourcery.com>
4523
4524 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
4525 gdb's thread list.
4526 (linux_nat_wait): Add main lwp to gdb's thread list.
4527 * linux-thread-db.c (find_new_threads_callback): Also attach to
4528 already listed threads which thread_db didn't know about yet.
4529
710151dd
PA
45302008-03-25 Pedro Alves <pedro@codesourcery.com>
4531
4532 * linux-nat.c (drain_queued_events): Fix comment typo.
4533 (linux_nat_attach): In async mode, don't rely on storing a pending
4534 status. Instead place the wait status on the pipe.
4535 (linux_nat_resume): Remove unreacheable shortcut code in async
4536 mode.
4537 (stop_wait_callback): In async mode, don't store pending status.
4538 Instead, cancel breakpoints or resend the signal appropriatelly.
4539 (cancel_breakpoint): New, refactored from
4540 cancel_breakpoints_callback.
4541 (cancel_breakpoints_callback): Call cancel_breakpoint.
4542 (pipe_to_local_event_queue): Remove special token processing.
4543 (linux_nat_wait): Issue an internal error if a pending status is
4544 found in async mode.
4545
807bddf3
DJ
45462008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
4547
4548 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
4549
c5b48eac
VP
45502008-03-24 Nick Roberts <nickrob@snap.net.nz>
4551 Vladimir Prus <vladimir@codesourcery.com>
4552
680b56ce
AS
4553 * varobj.c (struct varobj_root): New component thread_id.
4554 (varobj_get_thread_id, check_scope): New functions.
4555 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
4556 proper thread if necessary.
4557
680b56ce 4558 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 4559
680b56ce 4560 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 4561
12f4afab
DJ
45622008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
4563
4564 PR gdb/544
4565 * top.c: Revert 2008-03-21 changes.
4566
6208b47d
VP
45672008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4568
4569 * thread.c (make_cleanup_restore_current_thread): Make it
4570 globally visible.
4571 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4572 * varobj.c (varobj_update): Don't save/restore frame.
4573 (c_value_of_root): Save/restore thread and frame here,
4574 using make_cleanup_restore_current_thread.
4575 * Makefile.in: Update dependecies.
4576
44a67aa7
VP
45772008-03-23 Vladimir Prus <vladimir@codesourcery.com>
4578
680b56ce
AS
4579 * varobj.c (struct varobj_root): Clarify
4580 comment on the frame field.
4581 (varobj_create): Don't set frame if we have no
4582 block.
44a67aa7 4583
b562a0cb
DJ
45842008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4585
4586 PR gdb/544
4587 Suggested by Jan Kratochvil:
4588 * top.c (gdb_rl_operate_and_get_next_completion): Call
4589 rl_redisplay_function.
4590 (gdb_rl_redisplay): New.
4591 (init_main): Set rl_redisplay_function.
4592
ed1bd5f5
JB
45932008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
4594
4595 * aix-thread.c (pdc_read_regs): Fix compiler warning.
4596 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
4597 (store_regs_kernel_thread): Likewise.
4598
b84876c2
PA
45992008-03-21 Pedro Alves <pedro@codesourcery.com>
4600
4601 Linux native async support.
4602
4603 * target.h (struct target_ops): Delete to_async_mask_value and add
4604 to_async_mask.
4605 (target_is_async_p, target_async): Formatting.
4606 (target_async_mask_value): Delete.
4607 (target_async_mask): Delete function declaration, and add new
4608 target macro with the same name.
4609
4610 * target.c (update_current_target): Replace to_async_mask_value by
4611 to_async_mask. Default to_async_mask to return_one.
4612 (target_async_mask): Delete.
4613 (find_default_can_async_p, find_default_is_async_p): New.
4614 (init_dummy_target): register find_default_can_async_p and
4615 find_default_is_async_p on the dummy target.
4616
4617 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
4618 (debug_linux_nat_async): New global.
4619 (show_debug_linux_nat_async): New function.
4620 (linux_nat_async_enabled, linux_nat_async_mask_value)
4621 (linux_nat_event_pipe, linux_nat_num_queued_events)
4622 (linux_nat_async_events_enabled): New globals.
4623 (struct waitpid_result): New struct.
4624 (waitpid_queue): New global.
4625 (queued_waitpid, push_waitpid, drain_queued_events): New.
4626 (my_waitpid): Call queued_waitpid.
4627 (linux_child_follow_fork): Disable async events during the call.
4628 (blocked_mask): Delete.
4629 (sync_sigchld_action, async_sigchld_action): New globals.
4630 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
4631 async mode, block events during the call.
4632 (linux_nat_create_inferior): New.
4633 (linux_nat_attach): In sync mode, restore the mask states. In
4634 async mode, wake the event loop immediatelly.
4635 (detach_callback): Drain all queued events of the lwp we're
4636 detaching from.
4637 (linux_nat_detach): Block async mode, and drain events of the main
4638 process.
4639 (linux_nat_resume): If in async mode, mask async events during the
4640 call. If short circuiting, force event loop to wake up. If
4641 resuming, set target_executing, and register target events in the
4642 event loop.
4643 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
4644 (linux_nat_wait): In async mode, block events during the call.
4645 Only enable/disable passing SIGINT to the inferior in sync mode.
4646 Get events from local waitpid queue. If no interesting events was
4647 found, return to events loop. Reregister target events in the
4648 event loop on exit. In sync mode, no need to reblock SIGCHLD.
4649 (linux_nat_kill): Disable events on entry.
4650 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
4651 here. Detach async mode from the event loop if there are no more
4652 forks available, otherwise leave it on.
4653 (sigchld_handler): Assure this is called only in sync mode.
4654 (linux_async_permitted, linux_async_permitted_1): New globals.
4655 (set_maintenance_linux_async_permitted)
4656 (show_maintenance_linux_async_permitted): New functions.
4657 (linux_nat_is_async_p, linux_nat_can_async_p)
4658 (linux_nat_async_mask): New.
4659 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
4660 (get_pending_events, async_sigchld_handler): New.
4661 (linux_nat_async_events): New.
4662 (async_terminal_is_ours): New global.
4663 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
4664 (async_client_callback, async_client_context): New.
4665 (linux_nat_async_file_handler, linux_nat_async)
4666 (linux_nat_disable_async, linux_nat_enable_async): New.
4667 (linux_nat_add_target): Register linux_nat_create_inferior,
4668 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
4669 linux_nat_async_mask, linux_nat_terminal_inferior and
4670 linux_nat_terminal_ours.
4671 (_initialize_linux_nat): Remove local action variable, and update
4672 code that used it to use sync_sigchld_action. Add new
4673 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
4674 set/show command in the maintenance class. Add new "linux-async"
4675 maintenance set/show command. Block SIGCHLD by default. Setup
4676 async_sichld_action, and sync_sigchld_action. Install the default
4677 async mode.
4678 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
4679 the cancel signals.
4680
4681 * linux-thread-db.c (re_check_for_thread_db): New.
4682 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
4683 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
4684 (thread_db_async_mask): New.
4685 (init_thread_db_ops): Register thread_db_can_async_p,
4686 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
4687
4688 * remote.c (remote_async_mask_value): New.
4689 (remote_return_zero): New.
4690 (init_remote_ops): Register remote_return_zero as callbacks of
4691 to_can_async_p and to_is_async_p.
4692 (remote_can_async_p, remote_is_async_p, remote_async): Update to
4693 use remote_async_mask_value.
4694 (remote_async_mask): New.
4695 (init_remote_async_ops): Remove to_async_mask_value setting and
4696 register remote_async_mask as to_async_mask callback in
4697 remote_async_ops.
4698
4699 * Makefile.in (linux-nat.o): Update.
4700
17faa917
DJ
47012008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4702
4703 * gdbthread.h (add_thread_with_info): New.
4704 * linux-thread-db.c: Add some documentation.
4705 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
4706 (struct private_thread_info): Remove th_valid and ti_valid.
4707 Replace ti with tid.
4708 (thread_get_info_callback): Do not add TID to the new ptid. Do
4709 not cache th or ti.
4710 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
4711 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
4712 new PTID.
4713 (attach_thread): Handle an already-existing thread. Use
4714 add_thread_with_info. Cache the th and tid.
4715 (detach_thread): Verify that private was set. Remove verbose
4716 argument and printing. Update caller.
4717 (thread_db_detach): Do not adjust inferior_ptid.
4718 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
4719 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
4720 (thread_db_wait): Do not use lwp_from_thread.
4721 (thread_db_pid_to_str): Use the cached TID.
4722 (thread_db_extra_thread_info): Check that private is set.
4723 (same_ptid_callback): Delete.
4724 (thread_db_get_thread_local_address): Do not use it or check
4725 is_thread. Check that private is set. Assume that the thread
4726 handle is already cached.
4727 (init_thread_db_ops): Remove to_resume and to_kill.
4728 * thread.c (add_thread_with_info): New.
4729 (add_thread): Use it.
4730 * linux-nat.c (find_thread_from_lwp): Delete.
4731 (exit_lwp): Do not use it. Check print_thread_events. Print before
4732 deleting the thread.
4733 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
4734 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
4735 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
4736 printf_unfiltered for thread exits.
4737 * procfs.c (procfs_wait): Likewise.
4738
6214f497
DJ
47392008-03-21 Chris Demetriou <cgd@google.com>
4740
4741 * symtab.c (rbreak_command): Quote symbol name before passing
4742 it to break_command.
4743
63092375
DJ
47442008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4745
4746 * eval.c (evaluate_subexp_for_address): Clarify error message.
4747 Use value_must_coerce_to_target.
4748 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
4749 * valops.c (value_assign): Call value_coerce_to_target when
4750 assigning to anything but internalvars. Leave GDB-side arrays
4751 as arrays when assigning to internalvars.
4752 (value_must_coerce_to_target, value_coerce_to_target): New.
4753 (value_coerce_array, value_addr): Call value_coerce_to_target.
4754 (value_array): Create the array in GDB's memory instead of
4755 the inferior's.
4756 * value.h (value_must_coerce_to_target, value_coerce_to_target):
4757 Declare.
4758
b21991b0
DJ
47592008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
4760
4761 * top.c (quit_confirm): Warn that we will kill the program.
4762
49a834f9
PA
47632008-03-19 Pedro Alves <pedro@codesourcery.com>
4764
4765 * inflow.c (terminal_ours_1): Guard access to
4766 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
4767
ae0d2f24
UW
47682008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
4769 Jim Blandy <jimb@codesourcery.com>
4770 Daniel Jacobowitz <drow@false.org>
4771
4772 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
4773 (dwarf2_read_address): Update prototype.
4774
4775 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
4776 (signed_address_type): Likewise.
4777 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
4778 (execute_stack_op): Update calls to unsigned_address_type,
4779 signed_address_type and dwarf2_read_address. Fix implementation
4780 of DW_OP_deref_size.
4781
4782 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
4783 (dwarf2_per_cu_addr_size): Likewise.
4784 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
4785 (struct dwarf2_loclist_baton): Likewise.
4786
4787 * dwarf2loc.c (find_location_expression): Update calls to
4788 dwarf2_read_address. Use dwarf2_per_cu_objfile and
4789 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
4790 (locexpr_describe_location): Likewise.
4791 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
4792 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
4793 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
4794 to dwarf2_per_cu_addr_size (per_cu).
4795 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
4796 (loclist_read_variable): Likewise.
4797 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
4798
4799 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
4800 instead of baton->objfile.
4801 (dwarf2_per_cu_obfile): New function.
4802 (dwarf2_per_cu_addr_size): Likewise.
4803
4804 * dwarf2-frame.c (struct comp_unit): Move higher.
4805 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
4806 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
4807 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
4808 parameter by using fde->eh_frame_p. Use read_encoded_value
4809 to implement DW_CFA_set_loc.
4810 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
4811 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
4812 execute_stack_op and execute_cfa_program.
4813 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
4814 (size_of_encoded_value): Remove.
4815 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
4816 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
4817 (add_cie): Set cie->unit backlink.
4818 (decode_frame_entry_1): Set cie->addr_size. Update calls to
4819 read_encoded_value.
4820 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
4821
1c8201d1
MD
48222008-03-17 Markus Deuling <deuling@de.ibm.com>
4823
4824 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
4825 gdbarch_bfd_arch_info.
4826
46bba1ef
JB
48272008-03-17 Joel Brobecker <brobecker@adacore.com>
4828
4829 * aix-thread.c (pdc_read_regs): Minor reformatting.
4830
0bcd3e20
VP
48312008-03-17 Vladimir Prus <vladimir@codesourcery.com>
4832
4833 * thread.c (print_thread_info): Don't insist
4834 on having current thread if there are no
4835 threads at all.
4836
9356cf8d
PA
48372008-03-17 Pedro Alves <pedro@codesourcery.com>
4838
4839 * infcmd.c (attach_command_post_wait)
4840 (attach_command_continuation): New.
4841 (attach_command): Support background async execution, and async
4842 execution in synchronous mode.
4843
5c3ce3f7
DJ
48442008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
4845
4846 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
4847 * symmisc.c (dump_symtab_1): Likewise.
4848 * wrapper.c (gdb_value_struct_elt): Likewise.
4849
fa2c6a57
PA
48502008-03-17 Pedro Alves <pedro@codesourcery.com>
4851
4852 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
4853
02f3fc28
PA
48542008-03-17 Pedro Alves <pedro@codesourcery.com>
4855
4856 * linux-nat.c (linux_nat_filter_event): New, refactored from
4857 linux_nat_wait.
4858 (linux_nat_wait): Call linux_nat_filter_event.
4859
2f77b315
UW
48602008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
4861
4862 * top.c (execute_command): Fix uninitialized variable error.
4863
f01be29b
NH
48642008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
4865
680b56ce
AS
4866 * Makefile.in (amd64nbsd-nat.o): New dependency.
4867 * amd64nbsd-nat.c: Include "nbsd-nat.h".
4868 (_initialize_amd64nbsd_nat): Update target vector to use
4869 nbsd_pid_to_exec_file.
4870 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 4871
6cf32704
VP
48722008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4873
4874 Remove ignoring leading exec events code.
680b56ce
AS
4875 * fork-child.c (startup_inferior): Do not set
4876 inferior_ignoring_leading_exec_events.
4877 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
4878 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
4879 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
4880 (handle_inferior_event): Remove code for ignoring leading exec
4881 events.
4882 * target.c (update_current_target): Do not inherit, or default,
4883 to_reported_exec_events_per_exec_call.
4884 (debug_to_reported_exec_events_per_exec_call): Remove.
4885 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
4886 * target.h (target_reported_exec_events_per_exec_call): Remove.
4887 (struct target): Remove the to_reported_exec_events_per_exec_call
4888 field.
6cf32704 4889
8e8901c5
VP
48902008-03-15 Vladimir Prus <vladimir@codesourcery.com>
4891
4892 Implement -thread-info.
680b56ce 4893 * gdbthread.h (print_thread_info): Declare.
8e8901c5 4894
680b56ce
AS
4895 * thread.c (print_thread_info): New, extracted
4896 from info_threads_command and adjusted to
4897 work for CLI and MI.
4898 (info_threads_command): Use print_thread_info.
8e8901c5
VP
4899 * Makefile.in: Update dependencies.
4900
680b56ce
AS
4901 * mi/mi-cmds.c (mi_cmds): Specify a handler
4902 for -thread-info.
4903 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
4904 * mi/mi-main.c (mi_cmd_thread_info): New.
4905 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 4906
7d1e6fb8
KB
49072008-03-14 Kevin Buettner <kevinb@redhat.com>
4908
4909 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
4910 to decide whether to match instruction patterns using "sw" and "sd".
4911
89113898
PA
49122008-03-14 Pedro Alves <pedro@codesourcery.com>
4913
4914 * infcmd.c (jump_command): Postpone disabling stdin until after
4915 the possible query.
4916
64a0ac84
PA
49172008-03-14 Pedro Alves <pedro@codesourcery.com>
4918
4919 * inflow.c (gdb_getpgrp): New.
4920 (gdb_has_a_terminal): Use get_getpgrp.
4921 (terminal_ours_1): If attach_flag is set, don't refetch
4922 inferior_process_group.
4923
1fddbabb
PA
49242008-03-14 Pedro Alves <pedro@codesourcery.com>
4925
4926 * features/library-list.dtd: Allow "section" elements as children
4927 of "library". Add "section" element and describe its attributes.
4928
4929 * solib-target.c (struct lm_info): Add section_bases member.
4930 (library_list_start_segment): Error out if seen a section element.
4931 (library_list_start_section): New.
4932 (library_list_end_library): New.
4933 (solib_target_free_library_list): Free section_bases.
4934 (section_attributes): New.
4935 (library_children): Make "segment" optional. Add "section" child.
4936 (library_list_children): Register library_list_end_library.
4937 (solib_target_relocate_section_addresses): Handle section bases.
4938
4939 * NEWS: Mention new qXfer:libraries:read section offsets support.
4940
712af3be
VP
49412008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4942
4943 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
4944 (make_exec_error_cleanup): Remove declarations.
4945 * utils.c (exec_error_cleanup_chain): Remove.
4946 (do_exec_error_cleanups, discard_exec_error_cleanups)
4947 (make_exec_error_cleanup): Remove.
4948 * event-loop.c (start_event_loop): Adjust call to
4949 async_enable_stdin.
4950 * event-top.c (async_enable_stdin): Remove the paramater dummy.
4951 (async_disable_stdin): Don't register async_enable_stdin via
4952 cleanup.
4953 * inf-loop.c (inferior_event_handler): Don't
4954 call do_exec_error_cleanups. Call async_enable_stdin instead.
4955 * event-loop.c (start_event_loop): Adjust call to
4956 async_enable_stdin.
4957 * tui/tui-interp.c (tui_command_loop): Adjust call to
4958 async_enable_stdin.
4959
32c1e744
VP
49602008-03-14 Vladimir Prus <vladimir@codesourcery.com>
4961
4962 Async mode fixes.
680b56ce
AS
4963 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
4964 * breakpoint.c (bpstat_do_actions): In async mode,
4965 don't jump to top expecting stop_bpstat to be already
4966 updated.
4967 * event-loop.c (start_event_loop): Call async_enable_stdin
4968 on exception.
4969 * event-top.c (async_enable_stdin): Do nothing if sync_execution
4970 is not set.
4971 (command_handler): Do not setup continuation here.
4972 (command_line_handler_continuation): Move to...
4973 * top.c (command_line_handler_continuation): ... here.
4974 (execute_command): In async mode, register continuation.
4975 Don't check frame's language in running in async mode.
4976 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
4977 * inf-loop.c (complete_execution): Inline into...
4978 (inferior_event_handler): ... here. Clear target_executing before
4979 doing any cleanups. Don't try to show prompt if the target was
4980 resumed.
4981 * infcmd.c (signal_command): Add support for async mode.
4982 (finish_command): Only add continuation if the target was
4983 successfully resumed.
4984 * remote.c (init_async_opts): Register to_get_thread_local_address
4985 handler.
4986 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
4987 with sync_execution.
4988 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
4989 on exception.
32c1e744 4990
c04ea773
DJ
49912008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
4992
4993 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
4994 * exec.c (exec_bfd_mtime): Define.
4995 (exec_close): Clear it.
4996 (exec_file_attach): Set it.
4997 * gdbcore.h (exec_bfd_mtime): Declare.
4998 * source.c (find_source_lines): Do not use bfd_get_mtime.
4999
952dc227
VP
50002008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5001
5002 * top.c (simplified_command_loop): Remove.
5003
4cf46804
VP
50042008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5005
5006 Remove unused remote.c hooks.
680b56ce
AS
5007 * remote.c (deprecated_target_resume_hook)
5008 (deprecated_target_wait_loop_hook): Remove.
5009 (remote_resume): Do not call deprecated_target_resume_hook.
5010 (remote_wait): Do not call deprecated_target_wait_loop_hook.
5011 (remote_async_wait): Likewise.
4cf46804 5012
683f2885
VP
50132008-03-14 Vladimir Prus <vladimir@codesourcery.com>
5014
5015 Implement MI notification for new threads.
680b56ce
AS
5016 * doc/observer.texi (new_thread): Document.
5017 * observer.sh: Forward declare struct thread_info.
5018 * thread.c (add_thread): Notify observer.
5019
5020 * interps.h (interp_init_ftype): New parameter
5021 top_level.
5022 (interp_set): Likewise.
5023 (top_level_interpreter_data): Declare.
5024 * interps.c (interp_set): New parameter top_level.
5025 Pass it to interpreter's init function. Remember
5026 top level interpreter.
5027 (interpreter_exec_cmd): Adjust.
5028 (top_level_interpreter_data): New.
5029 * main.c (captured_main): Pass 1 for top_level
5030 parameter of interp_set.
683f2885 5031 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
5032 parameter top_level.
5033 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 5034
680b56ce
AS
5035 * mi/mi-interp.c (mi_new_thread): New.
5036 (mi_interpreter_init): If top level, register
5037 observer for new threads.
683f2885 5038
680b56ce 5039 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 5040
ff9b3928
PA
50412008-03-14 Pedro Alves <pedro@codesourcery.com>
5042
5043 * top.c (execute_command): Disable break and stop
5044 commands in async mode.
5045
b18392ef
PA
50462008-03-14 Pedro Alves <pedro@codesourcery.com>
5047
5048 revert:
5049 2008-03-14 Pedro Alves <pedro@codesourcery.com>
5050 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5051 Call target_stop in the INF_QUIT_REQ case.
5052 * Makefile.in (inf-loop.o): Update.
5053
0aca9f07
PA
50542008-03-14 Pedro Alves <pedro@codesourcery.com>
5055
5056 * inf-loop.c (inferior_event_handler): Don't include remote.h.
5057 Call target_stop in the INF_QUIT_REQ case.
5058 * Makefile.in (inf-loop.o): Update.
5059
0b4e556c
PA
50602008-03-14 Pedro Alves <pedro@codesourcery.com>
5061
5062 * top.c (execute_command): Enable break, info and interrupt
5063 commands in async mode.
5064
8defab1a
DJ
50652008-03-13 Vladimir Prus <vladimir@codesourcery.com>
5066 Daniel Jacobowitz <dan@codesourcery.com>
5067
5068 * breakpoint.h (breakpoint_restore_shadows): New
5069 declaration.
5070 * breakpoint.c (breakpoint_restore_shadows): New.
5071 (read_memory_nobpt): Delete.
5072 * gdbcore.h (read_memory_nobpt): Delete declaration.
5073 * target.c (memory_xfer_partial): Call
5074 breakpoint_restore_shadows.
5075 (restore_show_memory_breakpoints)
5076 (make_show_memory_beakpoints_cleanup): New.
5077 (show_memory_breakpoints): New.
5078 * target.h (make_show_memory_beakpoints_cleanup): Declare.
5079 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
5080 Make sure we see memory breakpoints when checking if
5081 breakpoint is still there.
5082 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
5083 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
5084 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
5085 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
5086
fd532e2e
PA
50872008-03-12 Pedro Alves <pedro@codesourcery.com>
5088
5089 * thread.c (add_thread): Use printf_unfiltered to print.
5090
f749779f 50912008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
5092
5093 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
5094 that is true only on x86-solaris and x86_64-solaris.
5095 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
5096 with proc_get_LDT_entry.
5097
50982008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
5099
5100 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
5101 * config.in, configure: Regenerate.
5102 * fork-child.c (fork_inferior): Call create_tty_session.
5103 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
5104 (create_tty_session): New function.
5105 * terminal.h: Declare create_tty_session.
5106
4fbb74a6
AM
51072008-03-12 Alan Modra <amodra@bigpond.net.au>
5108
5109 PR 5900
5110 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
5111 * mipsread.c: Include elf/internal.h.
5112 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
5113 to internal range.
5114
20a6ec49
MD
51152008-03-11 Markus Deuling <deuling@de.ibm.com>
5116
5117 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
5118 to get at the current architecture and at the target specific vector.
5119 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
5120 remove define of I387_ST0_REGNUM.
5121
5122 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
5123
5124 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
5125 get at the current architecture
5126 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
5127 parameter.
5128
5129 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
5130 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
5131
5132 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
5133 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
5134 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
5135
5136 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
5137 at the target specific vector.
5138
5139 (i386_get_longjmp_target): Use get_frame_arch to get at the current
5140 architecture. Use gdbarch_tdep to get at the target specific vector.
5141
5142 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
5143 update caller. Use gdbarch_tdep to get at the target specific vector.
5144
5145 (i386_register_to_value: Use get_frame_arch to get at the current
5146 architecture.
5147
5148 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
5149 parameter.
5150
5151 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5152 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
5153 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
5154 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
5155
5156 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
5157 undef's.
5158
5159 (i387_convert_register_p, i387_register_to_value,
5160 i387_value_to_register): Update call for i386_fp_regnum_p.
5161
5162 * i387-tdep.h: Remove comment.
5163 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
5164 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
5165 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
5166 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
5167 I387_MXCSR_REGNUM): Add target specific vector as parameter.
5168
ccd213ac
DJ
51692008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
5170
5171 * Makefile.in (fork-child.o): Update.
5172 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
5173 argument. Gather all gdbserver features together.
5174 * fork-child.c (exec_wrapper): New variable.
5175 (fork_inferior): Use it.
5176 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
5177 (unset_exec_wrapper_command, _initialize_fork_child): New.
5178
51792008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
5180
5181 * source.c (directory_command): Modify the determination of
5182 condition of terminal "from_tty".
5183
22566fbd
DJ
51842008-03-10 Matt Rice <ratmice@gmail.com>
5185
5186 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
5187
9971ac47
UW
51882008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
5189
5190 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
5191 of the data passing to strtoulst function.
5192 (info_spu_signal_command): Likewise.
5193
835670cf
VP
51942008-03-08 Vladimir Prus <vladimir@codesourcery.com>
5195
5196 * mi/mi-interp.c (mi_command_loop): Remove
5197 commented-out code.
680b56ce 5198
be86555c
JB
51992008-03-07 Joel Brobecker <brobecker@adacore.com>
5200
5201 * remote.c (extended_remote_attach_1): Make local variable pid an int
5202 instead of a pid_t.
5203
4d7b2d5b
JB
52042008-03-07 Joel Brobecker <brobecker@adacore.com>
5205
5206 * solib-svr4.c (svr4_same_1): New function, originally extracted
5207 from svr4_same and expanded to handle the sparc64 case.
5208 (svr4_same): Move up and reimplement using svr4_same_1.
5209 (enable_break): Use svr4_same_1 to do shared library name comparisons.
5210
61fed90e
RR
52112008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
5212
5213 * MAINTAINERS: Move self to Paper trail.
5214
b803fb0f
DJ
52152008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
5216
5217 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
5218 * event-loop.c (call_async_signal_handler): New.
5219 * event-loop.h (call_async_signal_handler)
5220 (gdb_call_async_signal_handler): Declare.
5221 (mark_async_signal_handler): Add comments.
5222 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
5223 * mingw-hdep.c (sigint_event, sigint_handler): New.
5224 (gdb_select): Use them. Wait for the readline signal handler
5225 to finish.
5226 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
5227 * posix-hdep.c (gdb_call_async_signal_handler): New function.
5228 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
5229 New.
5230 (remote_fileio_ctrl_c_signal_handler): Use
5231 gdb_call_async_signal_handler.
5232 (initialize_remote_fileio): Initialize sigint_fileio_token.
5233 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
5234 not initialize tokens here.
5235 (handle_remote_sigint_twice): Likewise. Reinstall
5236 handle_remote_sigint.
5237 (async_remote_interrupt_twice): Just call interrupt_query.
5238 (cleanup_sigint_signal_handler): Do not delete tokens.
5239 (remote_interrupt, remote_interrupt_twice): Use
5240 gdb_call_async_signal_handler.
5241 (interrupt_query): Reinstall the default signal handler.
5242 (_initialize_remote): Initialize tokens here.
5243
8f4d54ed
JB
52442008-03-04 Joel Brobecker <brobecker@adacore.com>
5245
5246 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
5247 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5248 Change the type of the lr register to code_ptr.
5249 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5250 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5251 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5252 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5253 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5254 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5255 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
5256
95ece428
JW
52572008-03-03 James E. Wilson <wilson@tuliptree.org>
5258
5259 * MAINTAINERS: Update my email address.
5260
686a5eed
KS
52612008-03-03 Keith Seitz <keiths@redhat.com>
5262
5263 From Dave Murphy <davem@devkitpro.org>:
5264 * configure.ac: Set tcl configdir to win under mingw.
5265 * configure: Regenerate.
5266
fa4727a6
DJ
52672008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
5268
5269 * breakpoint.c (fetch_watchpoint_value): New function.
5270 (update_watchpoint): Set and clear val_valid. Use
5271 fetch_watchpoint_value. Handle unreadable values on the
5272 value chain. Correct check for user-requested array watchpoints.
5273 (breakpoint_init_inferior): Clear val_valid.
5274 (watchpoint_value_print): New function.
5275 (print_it_typical): Use it. Do not free or clear old_val. Print
5276 watchpoints even if old_val == NULL.
5277 (watchpoint_check): Use fetch_watchpoint_value. Check for values
5278 becoming readable or unreadable.
5279 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
5280 (do_enable_watchpoint): Likewise.
5281 * breakpoint.h (struct breakpoint): Update comment for val. Add
5282 val_valid.
5283 * NEWS: Mention watchpoints on inaccessible memory.
5284
c03374d5
DJ
52852007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
5286
5287 * Makefile.in (i386-nat.o): Update.
5288 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
5289 i386_use_watchpoints.
5290 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
5291 i386_use_watchpoints.
5292 * i386-nat.c (i386_stopped_data_address): Take two arguments.
5293 (i386_stopped_by_watchpoint): Update call.
5294 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
5295 * config/i386/nm-i386.h: Conditionalize definitions on
5296 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
5297 (i386_use_watchpoints): Declare.
5298 (i386_stopped_data_address): Update.
5299 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5300 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
5301
c24d7425 53022008-02-29 Joel Brobecker <brobecker@adacore.com>
5303
5304 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
5305 * version.in: Bump version to 6.8.50.20080229-cvs.
5306
a7dfd010
MD
53072008-02-28 Markus Deuling <deuling@de.ibm.com>
5308
5309 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
5310 properly.
5311
258c00cc
TT
53122008-02-28 Tom Tromey <tromey@redhat.com>
5313
5314 * infcmd.c (notice_args_read): Print result of get_inferior_args.
5315
8edfe269
DJ
53162008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5317
5318 * infcmd.c (kill_if_already_running): Make static. Use
5319 target_require_runnable.
5320 * target.c (target_require_runnable): New.
5321 * target.h (target_require_runnable): Declare.
5322
0d6ba1b1
DJ
53232008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
5324
5325 * frame.c (reinit_frame_cache): Only annotate if frames were
5326 previously valid.
5327
6fe305f7
UW
53282008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5329
5330 * regformats/reg-ppc.dat: Rename "ps" to "msr".
5331 * regformats/reg-ppc64.dat: Likewise.
5332
9b4b61c8
UW
53332008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
5334
5335 * features/Makefile (%.dat): Emit xmltarget statement.
5336
5337 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
5338 Generate code to set gdbserver_xmltarget in init_registers_${name}.
5339
5340 * regformats/arm-with-iwmmxt.dat: Regenerate.
5341 * regformats/mips64-linux.dat: Regenerate.
5342 * regformats/mips-linux.dat: Regenerate.
5343 * regformats/rs6000/powerpc-32.dat: Regenerate.
5344 * regformats/rs6000/powerpc-64.dat: Regenerate.
5345 * regformats/rs6000/powerpc-e500.dat: Regenerate.
5346
5347 * regformats/reg-arm.dat: Add xmlarch statement.
5348 * regformats/reg-i386.dat: Likewise.
5349 * regformats/reg-i386-linux.dat: Likewise.
5350 * regformats/reg-x86-64-linux.dat: Likewise.
5351 * regformats/reg-spu.dat: Likewise.
5352
20b4711e
DJ
53532008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5354
5355 * remote.c (remote_wait, remote_async_wait): Stop if we receive
5356 an error.
5357
1843f87b
DJ
53582008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
5359
5360 * utils.c (debug_timestamp): New.
5361 (vfprintf_unfiltered): Print timestamps if requested.
5362 (show_debug_timestamp): New.
5363 (initialize_utils): Register "set debug timestamp".
5364 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
5365
6a048695
JB
53662008-02-27 Joel Brobecker <brobecker@adacore.com>
5367
5368 * breakpoint.c (skip_prologue_sal): New function.
5369 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
5370 computed from a line number.
5371
0b998f49
JB
53722008-02-27 Joel Brobecker <brobecker@adacore.com>
5373
5374 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
5375 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
5376 Set PC register type to "code_ptr".
5377 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
5378 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
5379 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
5380 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
5381 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
5382 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
5383 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
5384 Regenerate.
5385
d05b4ac3
UW
53862008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
5387
5388 * regformats/regdat.sh: Rename init_registers function in
5389 generated file to init_registers_${name}.
5390
5391 * regformats/reg-crisv32.dat: Set "name" to crisv32.
5392 * regformats/reg-ppc64.dat: Set "name" to ppc64.
5393 * regformats/reg-s390x.dat: Set "name" to s390x.
5394
a5d9d57d
DJ
53952008-02-26 Greg Law <glaw@undo-software.com>
5396
5397 * regcache.c (registers_changed): Call reinit_frame_cache.
5398
e25c958c
DJ
53992008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
5400
5401 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
5402 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
5403 and svr4_fetch_objfile_link_map.
5404 * Makefile.in (sh-linux-tdep.o): Update.
5405
5daa78cc
TJB
54062008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
5407
5408 * amd64-tdep.c (amd64_classify): Add support for decimal float
5409 types.
5410 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
5411 use the struct return convention.
5412
54e52265
VP
54132008-02-26 Nick Roberts <nickrob@snap.net.nz>
5414
5415 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
5416 to old format. Discard breakpoint address if shared library is
5417 unloaded.
5418 (breakpoint_1): Adjust formatting of table header accordingly.
5419
d8f2712d
VP
54202008-02-25 Vladimir Prus <vladimir@codesourcery.com>
5421
5422 * remote.c (remote_get_threadlist): If the response
5423 is empty, don't try to parse it.
5424
05ce04a4
VP
54252008-02-23 Vladimir Prus <vladimir@codesourcery.com>
5426
5427 Unbreak 'target async'.
680b56ce
AS
5428 * serial.c (serial_async): Set the
5429 handler function before enabling async
5430 mode.
05ce04a4 5431
b36ec657
DJ
54322008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
5433
5434 * solib-svr4.c (enable_break): Convert r_brk to a code address.
5435
df7df359
PA
54362008-02-21 Pedro Alves <pedro@codesourcery.com>
5437
5438 * remote.c (extended_remote_attach_1): Set attach_flag.
5439 (extended_remote_create_inferior_1): Clear attach_flag.
5440
7cd25cfc
DJ
54412008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
5442
5443 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
5444 r_brk_offset.
5445 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
5446 * solib-svr4.c (solib_svr4_r_brk): New.
5447 (open_symbol_file_object, svr4_current_sos): Always check the
5448 debug base.
5449 (svr4_fetch_objfile_link_map): Do not set debug_base.
5450 (enable_break): Use r_brk if it is set.
5451 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
5452 (svr4_lp64_fetch_link_map_offsets): Likewise.
5453 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
5454
07ea644b
MD
54552008-02-20 Markus Deuling <deuling@de.ibm.com>
5456 Mark Kettenis <kettenis@gnu.org>
5457
5458 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
5459 trad_frame_saved_reg.
680b56ce 5460 (trad-frame.h): New include.
07ea644b
MD
5461
5462 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 5463 instead of frame_obstack_zalloc.
07ea644b
MD
5464 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
5465
680b56ce 5466 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 5467
40887e1a
MD
54682008-02-20 Markus Deuling <deuling@de.ibm.com>
5469
5470 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
5471 from disassemble_info instead of gdbarch_byte_order.
5472
5473 * mips-tdep.c (gdb_print_insn_mips): Likewise.
5474 * arm-tdep.c (gdb_print_insn_arm): Likewise.
5475
ae4b2284
MD
54762008-02-20 Markus Deuling <deuling@de.ibm.com>
5477
5478 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
5479 gdbarch as parameter.
5480
5481 * gdbarch.{c,h}: Regenerate.
5482
5483 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5484 parameter.
5485 * mem-break.c (default_memory_insert_breakpoint)
5486 (default_memory_remove_breakpoint): Likewise.
5487 * target.h (default_memory_remove_breakpoint)
5488 (default_memory_insert_breakpoint): Likewise.
5489
5490 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
5491 parameter. Replace current_gdbarch by gdbarch.
5492 * m32r-tdep.c (m32r_memory_insert_breakpoint)
5493 (m32r_memory_remove_breakpoint): Likewise.
5494
d9bf65d5
DJ
54952008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
5496
5497 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
5498
b93b6ca7
JB
54992008-02-19 Joel Brobecker <brobecker@adacore.com>
5500
5501 * NEWS: Add entry describing Add support improvements.
5502
4ed226fe
MD
55032008-02-18 Markus Deuling <deuling@de.ibm.com>
5504
5505 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
5506 M68K_FP0_REGNUM.
5507
caaa79ad
MD
55082008-02-18 Markus Deuling <deuling@de.ibm.com>
5509
5510 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
5511 register_offset_hack anymore.
5512
5513 * regcache.{c,h} (register_offset_hack): Remove.
5514
e38c262f
MD
55152008-02-18 Markus Deuling <deuling@de.ibm.com>
5516
5517 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
5518
5519 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
5520 current_gdbarch by gdbarch.
5521 (hppa64_hpux_find_global_pointer): Likewise.
5522 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
5523 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
5524 find_global_pointer.
5525
5526 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
5527 parameter.
5528 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
5529
5530 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
5531 of gdbarch_num_regs.
5532
5533 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 5534 replace current_gdbarch by gdbarch.
e38c262f
MD
5535 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
5536
206988c4
MD
55372008-02-18 Markus Deuling <deuling@de.ibm.com>
5538
5539 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
5540 and replace current_gdbarch by gdbarch.
5541
5542 (store_register): Update call for exec_one_dummy_insn.
5543 (fetch_register, store_register): Update call of regmap.
5544
5545 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
5546 parameter and replace current_gdbarch by gdbarch.
680b56ce 5547
206988c4
MD
5548 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
5549 the current architecture. Update call for getregs_supplies and
5550 getfpregs_supplies.
5551 (ppcnbsd_fetch_inferior_registers): Likewise.
5552
680b56ce 5553 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
5554 replace current_gdbarch by gdbarch.
5555 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
5556 get_regcache_arch to get at the current architecture. Update call for
5557 getfpregs_supplies.
5558
f642be6b
MD
55592008-02-18 Markus Deuling <deuling@de.ibm.com>
5560
5561 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 5562 variables.
f642be6b 5563
b1f2bf01
MD
55642008-02-15 Markus Deuling <deuling@de.ibm.com>
5565
5566 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
5567
ee163bf5
VP
55682008-02-14 Vladimir Prus <vladimir@codesourcery.com>
5569
5570 * NEWS: Mention pending breakpints in MI.
680b56ce 5571
f6fbcbf9
MD
55722008-02-14 Markus Deuling <deuling@de.ibm.com>
5573
5574 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
5575
36af4ef6
MD
55762008-02-13 Markus Deuling <deuling@de.ibm.com>
5577
5578 Add script to build and test GDB using enable-targets=all.
5579
5580 * gdb_buildall.sh: New file.
5581
94a0e877
MG
55822008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
5583
5584 * NEWS (New native configurations): Xtensa GNU/Linux.
5585 (New targets): Xtensa GNU/Linux.
5586 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
5587 xtensa-linux-tdep.o
5588 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
5589 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
5590 * configure.tgt (xtensa*-*-linux*): New entry.
5591 * xtensa-config.c (xtensa_tdep): New variable.
5592 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
5593 (rmap): Change format based on new macro XTREG.
5594 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
5595 * xtensa-linux-nat.c: New.
5596 * xtensa-linux-tdep.c: New.
5597 * xtensa-xtregs.c: New.
5598 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
5599 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
5600 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
5601 (xtensa_register_t): New field coprocessor.
5602 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
5603 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
5604 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
5605 Update to handle privileged registers.
5606 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
5607 (xtensa_push_dummy_call): Set windowstart register correctly.
5608 (call0_analyze_prologue): Initialize xtensa_default_isa.
5609 (xtensa_derive_tdep): New.
5610 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
5611 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
5612 Call xtensa_derive_tdep().
5613 * config/xtensa/linux.mh: New.
5614 * regformats/reg-xtensa.dat: New.
5615
b7ee1b0a 56162008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
5617
5618 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
5619 (filenames.h): New include.
5620 * Makefile.in (corelow.o): Add dependency for filenames.h.
5621
8da2a1df
DJ
56222008-02-08 Doug Evans <dje@google.com>
5623
5624 * source.c (find_and_open_source): Always rewrite absolute filenames.
5625
776592bf
DE
56262008-02-07 Doug Evans <dje@google.com>
5627
5628 * breakpoint.c: #include "hashtab.h".
5629 (ambiguous_names_p): New fn.
5630 (update_breakpoint_locations): When restoring bp enable status, don't
5631 compare function names if any functions have same name.
5632 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
5633
d6565258
JB
56342008-02-07 Joel Brobecker <brobecker@adacore.com>
5635
5636 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
5637 instead of just a VEC*. Update use of SV.
5638 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
5639
6d53d0af
JB
56402007-02-07 Joel Brobecker <brobecker@adacore.com>
5641
5642 * NEWS: Put all new commands since gdb-6.7 together.
5643
2ba95b9b
JB
56442007-02-07 Joel Brobecker <brobecker@adacore.com>
5645
5646 * ada-lang.c: #include "vec.h".
5647 (struct string_vector, new_string_vector, string_vector_append):
5648 Delete.
5649 (char_ptr): New typedef.
5650 (DEF_VEC_P (char_ptr)): New VEC type.
5651 (symbol_completion_add): Update profile to take the new VEC type
5652 instead of the old string_vector structure. Update code accordingly.
5653 (ada_make_symbol_completion_list): Use the new VEC type instead of
5654 the old string_vector structure, and update the code accordingly.
5655 * Makefile.in (ada-lang.o): Add dependency on vec.h.
5656
4ae0885a
PM
56572008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
5658
5659 * p-exp.y: Set current_type in missing places.
5660 (leftdiv_is_integer): New static variable.
5661 Typecast right operand of BINOP_DIV to long_double if both operands
5662 are integers.
5663
06b1d59c
MR
56642008-02-06 Maciej W. Rozycki <macro@mips.com>
5665
5666 * remote-mips.c (set_breakpoint): Rename to...
5667 (mips_set_breakpoint): ... this.
5668 (clear_breakpoint): Rename to...
5669 (mips_clear_breakpoint): ... this.
5670 (common_breakpoint): Rename to...
5671 (mips_common_breakpoint): ... this.
5672 (check_lsi_error): Rename to...
5673 (mips_check_lsi_error): ... this.
5674
41d27058
JB
56752007-02-05 Joel Brobecker <brobecker@adacore.com>
5676
5677 * language.h (struct language_defn): Add new field
5678 la_make_symbol_completion_list.
5679 * symtab.c (default_make_symbol_completion_list): Renames
5680 make_symbol_completion_list.
5681 (make_symbol_completion_list): New function.
5682 * symtab.h (default_make_symbol_completion_list): Add declaration.
5683 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
5684 (auto_language, local_language): Likewise.
5685 * objc-lang.c (objc_language_defn): Likewise.
5686 * scm-lang.c (scm_language_defn): Likewise.
5687 * m2-lang.c (m2_language_defn): Likewise.
5688 * f-lang.c (f_language_defn): Likewise.
5689 * jv-lang.c (java_language_defn): Likewise.
5690 * p-lang.c (pascal_language_defn): Likewise.
5691 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
5692 (minimal_language_defn): Likewise.
5693 * ada-lang.c (struct string_vector): New structure.
5694 (new_string_vector, string_vector_append, ada_unqualified_name)
5695 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
5696 (ada_make_symbol_completion_list): New functions.
5697 (ada_language_defn): Set la_make_symbol_completion_list.
5698 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
5699 this function is static.
5700
ee3a2f01
KB
57012008-02-05 Kevin Buettner <kevinb@redhat.com>
5702
5703 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
5704 to account for call site optimizations.
5705
d844e34b
JB
57062008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
5707
5708 * tracepoint.c (read_actions): Handle end-of-text indicator
5709 in action list properly. (Committed by Jim Blandy)
5710
02e4669d
JB
57112008-02-05 Jim Blandy <jimb@red-bean.com>
5712
5713 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
5714 pseudoregister, not an internal error.
85ecb32b 5715 Reported by: Andrzej Zaborowski
02e4669d 5716
c39c8256
VP
57172008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5718
5719 * varobj.c (c_value_of_variable): Use xstrdup.
5720
ae7d22a6
VP
57212008-02-04 Vladimir Prus <vladimir@codesourcery.com>
5722
5723 Update stored rendition of varobj value when format changes.
5724 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
5725 print_value.
5726 (c_value_of_variable): Return print_value.
ae7d22a6 5727
81fe8080
DE
57282008-02-03 Doug Evans <dje@google.com>
5729
301f0ecf
DE
5730 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
5731 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
5732 * valops.c (value_one): New function.
5733 * value.h (value_one): Declare.
5734
5735 Fix argument promotion for binary arithmetic ops for C.
5736 * valarith.c (unop_result_type): New fn.
5737 (binop_result_type): New fn.
5738 (value_binop): Move result type computation to binop_result_type.
5739 (value_pos, value_neg, value_complement): Move result type
5740 computation to unop_result_type.
5741
81fe8080
DE
5742 PR 2384
5743 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5744 Return basetype, fieldno if found. All callers updated.
5745 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
5746 objfile.
5747 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
5748 * symfile.h (fill_in_vptr_fieldno): Delete.
5749
41808ebe
DE
57502008-02-02 Doug Evans <dje@google.com>
5751
f8597ac3
DE
5752 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
5753
41808ebe
DE
5754 * typeprint.c (*): Whitespace cleanup.
5755
f964a756
MK
57562008-02-02 Mark Kettenis <kettenis@gnu.org>
5757 Luis Machado <luisgpm@br.ibm.com>
680b56ce 5758 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
5759
5760 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
5761 don't fit into registerson the stack the way GCC does.
5762
b06ead72
JB
57632008-02-01 Joel Brobecker <brobecker@adacore.com>
5764
5765 * symtab.c (symbol_set_names): Do not add an entry in the demangling
5766 hash table for Ada symbols. Just store the linkage name as is,
5767 and leave the demangled_name as NULL.
5768
2cfa0c8d
JB
57692007-02-01 Joel Brobecker <brobecker@adacore.com>
5770
5771 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
5772 in the global scope.
5773 (new_symbol): Likewise.
5774
98deb0da 57752008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
5776
5777 * breakpoint.c (break_command_1): Return void.
5778 (break_command_really): Return void. Rethrow
5779 exceptions instead of returning.
5780 (gdb_breakpoint): Remove the error_message parameter.
5781 Return void. Rename to set_breakpoint.
5782 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 5783 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
5784 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
5785 event hooks even if exception is thrown. Adjust to
5786 gdb_breakpoint interface changes.
5787
98deb0da 5788
ce0451ad
TJB
57892008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
5790
5791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
5792 float in both first and second word in the doubleword, to support
5793 old and new ABIs.
5794
723a2275
VP
57952008-02-01 Vladimir Prus <vladimir@codesourcery.com>
5796
5797 Properly rethrow exception. This fixes errors
5798 about non-existent functions for -break-insert.
680b56ce
AS
5799 * breakpoint.c (break_command_really): Use throw_exception
5800 for rethrowing. If rethrowing, don't print the exception.
723a2275 5801
d64a946d
TJB
58022008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5803
5804 * NEWS: Mention Decimal Floating Point support.
5805
02b156f5
JB
58062008-01-31 Joel Brobecker <brobecker@adacore.com>
5807
5808 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
5809 value type to builtin_type_void_func_ptr.
5810
a16b8bcd
UW
58112008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
5812
5813 * s390-tdep.c (is_float_singleton, is_float_like,
5814 alignment_of, s390_return_value): Make checks for
5815 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
5816
f949c649
TJB
58172008-01-31 Luis Machado <luisgpm@br.ibm.com>
5818 Thiago Jung Bauermann <bauerman@br.ibm.com>
5819
5820 * infcmd.c (default_print_registers_info): Also print hex
5821 raw contents for TYPE_CODE_DECFLOAT registers.
5822 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
5823 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
5824 (rs6000_register_name): Add support for DFP pseudo-registers.
5825 (rs6000_pseudo_register_type): Likewise.
5826 rs6000_pseudo_register_reggroup_p): Likewise.
5827 (ppc_pseudo_register_read): New function.
5828 (ppc_pseudo_register_write): Likewise.
5829 (rs6000_pseudo_register_read): Likewise.
5830 (rs6000_pseudo_register_write): Likewise.
5831 (e500_pseudo_register_read): Move checks to
5832 rs6000_pseudo_register_read.
5833 (e500_pseudo_register_write): Move checks to
5834 rs6000_pseudo_register_write.
5835 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
5836 rs6000_pseudo_register_read and rs6000_pseudo_register_write
5837 in gdbarch if SPE or DFP is available. Adjust gdbarch's
5838 num_pseudo_regs to account for DFP pseudo regs.
5839
5a9e69ba
TJB
58402008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
5841
5842 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
5843 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
5844 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
5845 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
5846 e500_pseudo_register_read, e500_pseudo_register_write): Use
5847 IS_SPE_PSEUDOREG macro.
5848 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
5849 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
5850 Remove initialization of tdep->ppc_ev31_regnum.
5851
4e885b20
JB
58522008-01-08 Paul Hilfinger <hilfinger@adacore.com>
5853
5854 * printcmd.c (print_formatted): Handle references as for unformatted
5855 prints.
5856
80f064a2
JB
58572008-01-30 Joel Brobecker <brobecker@adacore.com>
5858
5859 * eval.c (evaluate_subexp_standard): Add handling of user
5860 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
5861
9b3442ee
PM
58622008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
5863
5864 * eval.c (evaluate_subexp_standard): Support
5865 BINOP_INTDIV opcode.
5866
d118ef87
PH
58672008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
5868
5869 * valarith.c (value_binop): Add floating-point BINOP_MIN and
5870 BINOP_MAX cases.
5871 For BINOP_EXP, use length and signedness of left operand only for
5872 result, as for shifts.
5873 For integral operands to BINOP_EXP, use new integer_pow and
5874 uinteger_pow functions so as to get full range of results.
5875 (integer_pow): New function.
5876 (uinteger_pow): New function.
5877
d56d46f5
VP
58782008-01-30 Vladimir Prus <vladimir@codesourcery.com>
5879
5880 Use vector for varobj_list_children interface.
680b56ce
AS
5881 * gdb/varobj.c (varobj_list_children): Return vector
5882 of varobjs.
5883 * gdb/varobj.h (varobj_list_children): Adjust
5884 prototype.
5885 (varobj_p): Declare. Declare vector thereof.
5886 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
5887 for varobj_list_children change.
d56d46f5
VP
5888 * Makefile.in (varobj_h): Update dependencies.
5889
1300a2f4
TJB
58902008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
5891
5892 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
5893 TYPE_CODE_DECFLOAT arguments.
5894 (ppc64_sysv_abi_push_dummy_call) Likewise.
5895 (get_decimal_float_return_value): New function.
5896 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
5897 values by calling get_decimal_float_return_value.
5898 (ppc64_sysv_abi_return_value): Likewise.
5899
95ef687d
NR
59002008-01-30 Nick Roberts <nickrob@snap.net.nz>
5901
5902 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
5903 for preprocessor macro information. Formatting changes.
5904
2d717e4f
DJ
59052008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5906
5907 * remote.c (struct remote_state): Add cached_wait_status.
5908 (remote_exec_file): New variable.
5909 (PACKET_vAttach, PACKET_vRun): New constants.
5910 (extended_remote_restart): Do not query for status.
5911 (struct start_remote_args): New.
5912 (remote_start_remote): Take it as a second argument. Check
5913 whether the target is running. Issue an error for non-running
5914 non-extended targets. Cache the wait status. Set inferior_ptid
5915 here.
5916 (remote_open_1): Prompt to disconnect non-running targets. Make
5917 sure the target is marked running. Do not set inferior_ptid here.
5918 Update call to remote_start_remote. Do not call remote_check_symbols
5919 if the target is not running.
5920 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
5921 argument. Handle a non-running target.
5922 (remote_detach): Use it.
5923 (extended_remote_detach): New.
5924 (remote_disconnect): Fix typo. Use remoute_mourn_1.
5925 (extended_remote_attach_1, extended_remote_attach)
5926 (extended_async_remote_attach): New.
5927 (remote_vcont_resume): Remove unused variable.
5928 (remote_wait, remote_async_wait): Use any cached wait status.
5929 (putpkt_binary, getpkt): Clear any cached wait status.
5930 (extended_remoute_mourn_1): New.
5931 (extended_remote_mourn): Use it.
5932 (extended_async_remote_mourn, extended_remote_run): New.
5933 (extended_remote_create_inferior_1): New.
5934 (extended_remote_create_inferior): Use it.
5935 (extended_remote_async_create_inferior): Likewise.
5936 (remote_xfer_partial): Skip for non-executing targets.
5937 (init_extended_remote_ops): Set to_detach and to_attach.
5938 (init_extended_async_remote_ops): Likewise. Use
5939 extended_async_remote_mourn.
5940 (_initialize_remote): Register vAttach, vRun, and
5941 set remote exec-file.
5942 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
5943
e85a822c
DJ
59442008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5945
5946 * Makefile.in (symfile.o): Update.
5947 * NEWS: Mention exec tracing support.
5948 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
5949 exec events.
5950 * infcmd.c (kill_if_already_running, detach_command)
5951 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
5952 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
5953 (follow_exec): Do not check may_follow_exec. Do not mourn and push
5954 targets. Apply the sysroot path to the loaded executable. Use
5955 no_shared_libraries.
5956 * linux-nat.c (linux_child_follow_fork): Print fork following
5957 messages if verbose.
5958 (kill_wait_callback): Kill again before waiting a second time.
5959 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
5960 no_shared_libraries.
5961
9db13498
JB
59622008-01-29 Joel Brobecker <brobecker@adacore.com>
5963
5964 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
5965
b4d5ed91
JB
59662008-01-29 Joel Brobecker <brobecker@adacore.com>
5967
5968 * nto-tdep.h: Remove #include "defs.h".
5969 * nto-tdep.c: Add #include "defs.h".
5970 * Makefile.in (nto_tdep_h): Update dependencies.
5971 (nto-tdep.o): Likewise.
5972
107313f7 59732008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
5974
5975 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
5976 and use it.
5977 (proceed, start_remote): Update call to wait_for_inferior.
5978 * inferior.h (wait_for_inferior): Update declaration.
5979 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
5980 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
5981 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
5982 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
5983
3f4178d6
DJ
59842008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
5985
680b56ce 5986 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
5987 returned value from gdb_value_ind.
5988 (c_describe_child): Likewise.
5989 (cplus_describe_child): Fixed a typo.
5990
5eeba8d4
JB
59912008-01-29 Jim Blandy <jimb@red-bean.com>
5992
5993 * MAINTAINERS: Update my info.
5994
a5606eee
VP
59952008-01-29 Vladimir Prus <vladimir@codesourcery.com>
5996
5997 Use multiple locations for hardware watchpoints.
5998 This eliminates the need to traverse value chain, doing
5999 various checks, in three different places.
6000
680b56ce
AS
6001 * breakpoint.h (struct bp_location): New fields
6002 lengths and watchpoint_type.
6003 (struct breakpoint): Remove the val_chain field.
6004 * breakpoint.c (is_hardware_watchpoint): New.
6005 (free_valchain): Remove.
6006 (update_watchpoint): New.
6007 (insert_bp_location): For hardware watchpoint, just
6008 directly insert it.
6009 (insert_breakpoints): Call update_watchpoint_locations
6010 on all watchpoints. If we have failed to insert
6011 any location of a hardware watchpoint, remove all inserted
6012 locations.
6013 (remove_breakpoint): For hardware watchpoints, directly
6014 remove location.
6015 (watchpoints_triggered): Iterate over locations.
6016 (bpstat_stop_status): Use only first location of
6017 a resource watchpoint.
6018 (delete_breakpoint): Don't call free_valchain.
6019 (print_one_breakpoint): Don't print all
6020 locations for watchpoints.
6021 (breakpoint_re_set_one): Use update_watchpoint for
6022 watchpoints.
a5606eee 6023
0b3de036
VP
60242008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6025
6026 Don't reset watchpoint block on solib load.
6027
680b56ce
AS
6028 * breakpoint.c (insert_bp_location): For watchpoints,
6029 recompute condition.
6030 (breakpoint_re_set_one): Instead of recomputing value
6031 and condition for watchpoints, just reset value and
6032 let insert_breakpoints/insert_bp_location recompute it.
6033 Don't do anything about disabled watchpoint.
0b3de036 6034
c3940723
PM
60352008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
6036
6037 * valarith.c (value_binop): Handle unsigned integer
6038 division by zero.
6039
83845630
KB
60402008-01-28 Kevin Buettner <kevinb@redhat.com>
6041
6042 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
6043 instruction pattern that appears frequently in position
6044 independent code. Fix bug in code which looks for "fmov" and
6045 backtracks if no "fmov" is found.
6046
9ce5d3bb
DE
60472008-01-28 Doug Evans <dje@google.com>
6048
6049 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
6050 Reformat comments to 80 columns.
6051 Move local var def closer to only use.
9ce5d3bb 6052
c78d192c
DJ
60532008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
6054
6055 * fork-child.c (SHELL_FILE): Remove #ifndef.
6056 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
6057
e11481da
PM
60582008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
6059
6060 * i386-tdep.c (i386_skip_noop): New function.
6061 (i386_analyze_prologue): Call i386_skip_noop function.
6062
244e85c8
MS
60632008-01-24 Michael Snyder <msnyder@specifix.com>
6064
6065 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
6066 * win32-nat.c (win32_xfer_partial): Ditto.
6067 * target.c (default_xfer_partial): Minor whitespace adjustment.
6068
dd6be234
PA
60692008-01-24 Pedro Alves <pedro@codesourcery.com>
6070
6071 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
6072 strip bit 1 even if pc doesn't point to thumb code.
6073
9fa2223d
DJ
60742008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
6075
6076 * remote.c (remote_wait): Handle SIGINT between packets.
6077 (remote_async_wait): Likewise.
6078
93815fbf
VP
60792008-01-23 Vladimir Prus <vladimir@codesourcery.com>
6080 Chris Demetriou <cgd@google.com>
6081
680b56ce
AS
6082 * thread.c (add_thread_silent): Renamed
6083 from add_thread.
6084 (print_thread_events): New variable definition.
6085 (show_print_thread_events): New function.
6086 (_initialize_thread): Add "set print thread-events" and
6087 "show print thread-events" commands.
6088 (add_thread): Announce new thread.
6089 * gdbthread.h (add_thread_silent): Declare.
6090 (print_thread_events): New variable declaration.
6091 * inf-ttrace.c (inf_ttrace_wait): Don't
6092 inform about new thread, as add_thread is always
6093 called too, and will take care of that.
6094 * infrun.c (handle_inferior_event): Likewise.
6095 * procfs.c (procfs_wait): Likewise.
6096 * remote.c (remote_currthread): Likewise.
6097 * sol-thread.c (sol_thread_wait): Likewise.
6098 * win32-nat.c (get_win32_debug_event): Likewise.
6099 * linux-thread-db.c (attach_thread): Likewise.
6100 Remove the verbose parameter.
6101 (check_event): Make detach_thread be verbose
6102 only if print_thread_events is set.
6103 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
6104 about new thread. This is called only from
6105 linux-thread-db.c:attach_thread, which will take care.
6106 Remove the verbose parameter.
6107 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 6108
b4d7c9a6
NR
61092008-01-23 Nick Roberts <nickrob@snap.net.nz>
6110
6111 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
6112
60c46647
VP
61132008-01-22 Vladimir Prus <vladimir@codesourcery.com>
6114
6115 * breakpoint.c (break_command_really): New parameter
6116 ignore_count.
6117 (break_command_1): Pass 0 as
6118 ignore_count to break_command_really.
6119 (gdb_breakpoint): Pass ignore_count to
6120 break_command_really.
6121
e84605cd
KB
61222008-01-21 Kevin Buettner <kevinb@redhat.com>
6123
6124 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
6125 sigcontext struct via pointer.
6126 (struct sigframe comment): Update to show new field `psc'.
6127
9d9cd7ac
VP
61282008-01-21 Vladimir Prus <vladimir@codesourcery.com>
6129
6130 * infrun.c (handle_inferior_event): If
6131 we failed to remove breakpoints, error,
6132 don't try to increment PC by hand.
6133
af5ca30d
NH
61342008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
6135
6136 Add NetBSD/hppa target and host support.
6137
6138 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
6139 (hppabsd_gregset): Move to ...
6140 (hppabsd_regset_from_core_section): Rename
6141 hppaobsd_regset_from_core_section and move to ...
6142 (hppabsd_find_global_pointer): Update comment.
6143 (hppabsd_init_abi): Make global. Do not register
6144 hppabsd_regset_from_core_section.
6145 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
6146 move to ...
6147 (_initialize_hppabsd_tdep): Move to ...
6148 * hppaobsd-tdep.c: ... here. New file.
6149 * hppnbsd-tdep.c: New file.
6150 * hppnbsd-nat.c: New file.
680b56ce 6151 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 6152 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
6153 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
6154 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
6155 * configure.host (hppa*-*-netbsd*): New entry.
6156 * configure.tgt (hppa*-*-netbsd*): New entry.
6157 (hppa*-*-openbsd*): Update.
6158 * NEWS (New native configuration): Mention NetBSD/hppa.
6159 (New targets): Mention NetBSD/hppa.
6160
32c9a795
MD
61612008-01-18 Markus Deuling <deuling@de.ibm.com>
6162
6163 * gdbarch.sh (function_list): Add new property bits_big_endian to
6164 gdbarch structure.
6165 * gdbarch.{c,h}: Regenerate.
6166
6167 * value.c (struct value): Replace BITS_BIG_ENDIAN by
6168 gdbarch_bits_big_endian (comment).
6169 (unpack_field_as_long, modify_field): Likewise.
6170 * value.h: Likewise (comment).
6171 * valops.c (value_slice): Likewise.
6172 * valarith.c (value_subscript, value_bit_index): Likewise.
6173 * gdbtypes.h (field): Likewise (comment).
6174 * eval.c (evaluate_subexp_standard): Likewise.
6175 * dwarf2read.c (dwarf2_add_field): Likewise.
6176 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
6177 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 6178
32c9a795
MD
6179 * defs.h (BITS_BIG_ENDIAN): Remove.
6180
1e5e79d0
MD
61812008-01-18 Markus Deuling <deuling@de.ibm.com>
6182
6183 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
6184 function calls.
6185 * m2-exp.y (yylex): Likewise.
6186 * objc-exp.y (yylex): Likewise.
6187
6188 * defs.h (DEPRECATED_STREQN): Remove.
6189
fabda5a7
L
61902008-01-17 H.J. Lu <hjl.tools@gmail.com>
6191
6192 * MAINTAINERS: Update my email address.
6193
92726479
JB
61942008-01-17 Jim Blandy <jimb@codesourcery.com>
6195
6196 * README: Mention gdbserver/README.
6197
ef80d18e
PM
61982008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
6199
6200 * valarith.c (value_binop): Handle BINOP_INTDIV
6201 for unsigned and signed integers.
6202
1de90795
UW
62032008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6204
6205 * s390-tdep.c (s390_gdbarch_init): Set default long double
6206 type to 128-bit IEEE quad.
6207
c70bd6f3
JB
62082008-01-17 Joel Brobecker <brobecker@adacore.com>
6209
6210 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
6211
ba759613
MK
62122008-01-16 Mark Kettenis <kettenis@gnu.org>
6213
77d49ac6
MK
6214 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
6215
ba759613
MK
6216 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
6217 * value.c: All callers changed.
6218
7ecb6532
MD
62192008-01-16 Markus Deuling <deuling@de.ibm.com>
6220
6221 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
6222 DEPRECATED_STREQ by its expression.
6223 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
6224 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
6225 (scan_xcoff_symtab): Likewise.
6226 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
6227 * f-lang.c (find_common_for_function): Likewise.
6228 * objc-exp.y (parse_number): Likewise.
6229
6230 * defs.h (DEPRECATED_STREQ): Remove.
6231
d15cf01c
MD
62322008-01-16 Markus Deuling <deuling@de.ibm.com>
6233
6234 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
6235 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
6236 get_frame_arch to get at the current_architecture. Update AM33_MODE
6237 call.
6238 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
6239 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
6240 architecture.
6241 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
6242
f8028488
MD
62432008-01-16 Markus Deuling <deuling@de.ibm.com>
6244
680b56ce 6245 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
6246 parameter.
6247 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
6248
6249 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
6250 current_gdbarch by gdbarch. Update caller.
6251
6252 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
6253 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
6254 the current architecture. Update calls of
6255 amd64_native_gregset_supplies_p.
6256 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
6257 (amd64bsd_store_inferior_registers): Likewise.
6258
e101270f
MD
62592008-01-16 Markus Deuling <deuling@de.ibm.com>
6260
6261 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
6262 Replace current_gdbarch by gdbarch. Update caller.
6263
063e58ba
MD
62642008-01-16 Markus Deuling <deuling@de.ibm.com>
6265
6266 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
6267 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
6268 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
6269 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
6270 (stabsect_build_psymtabs): Fix indentation.
6271
662fb31b
MS
62722008-01-15 Michael Snyder <msnyder@specifix.com>
6273
6274 * corelow.c (core_xfer_partial): Comment, cut/paste error.
6275
c1766e7d
PM
62762008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
6277
6278 * win32-nat.c (win32_create_inferior): Restore code calling
6279 CloseHandle on ProcessInformation structure.
6280
5ed10e6e
NH
62812008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
6282
6283 * configure.ac: Check for void * as 3 argument of ptrace.
6284 * configure: regenerate.
6285
be8626e0
MD
62862008-01-11 Markus Deuling <deuling@de.ibm.com>
6287
6288 * alpha-tdep.c (alpha_heuristic_proc_start)
6289 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
6290 current_gdbarch by gdbarch.
6291
6292 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 6293 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
6294 call.
6295
6296 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
6297 get_frame_arch to get at the current architecture by frame_info. Update
6298 alpha_sigtramp_register_address call.
6299
6300 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
6301 current_gdbarch by gdbarch. Update caller.
6302 (convert_to_extended, convert_from_extended): Add endianess parameter
6303 for comparison. Update caller.
6304 (arm_extract_return_value, arm_store_return_value): Use
6305 get_regcache_arch to get at the current architecture.
6306
6307 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
6308 current_gdbarch by gdbarch. Update caller.
6309 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
6310 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
6311
6312 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 6313 gdbarch as parameter. Update caller.
be8626e0
MD
6314 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
6315 current_gdbarch by gdbarch. Update caller.
6316
680b56ce 6317 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
6318 update caller. Replace current_gdbarch by gdbarch.
6319
6320 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
6321 the current architecture. Replace current_gdbarch by gdbarch.
6322 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6323 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
6324 expression. Add gdbarch as parameter and replace current_gdbarch with
6325 it. Update caller.
6326 (M6811_TDEP): Remove.
6327 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
6328 architecture.
680b56ce 6329 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
6330 current_gdbarch by gdbarch. Update caller.
6331
6332 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
6333 update caller.
6334 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
6335 by gdbarch.
6336
6337 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
6338 caller. Relace current_gdbarch by gdbarch.
6339 (altivec_register_p, spe_register_p): Likewise.
6340 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
6341 parameter.
6342 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
6343 altivec_register_p and spe_register_p.
6344
680b56ce 6345 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
6346 caller. Replace current_gdbarch by gdbarch.
6347 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 6348 architecture.
be8626e0
MD
6349
6350 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
6351 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
6352 current_gdbarch by gdbarch. Update caller.
6353 (sparc_frame_cache): Use get_frame_arch to get at the current
6354 architecture.
6355 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
6356 sparc_analyze_prologue.
6357
6358 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
6359 parameter.
6360
ed49a04f
MD
63612008-01-11 Markus Deuling <deuling@de.ibm.com>
6362
6363 * exec.c: #include "arch-utils.h"
6364 (print_section_info): Use gdbarch_from_bfd to get at the
6365 current architecture. Replace current_gdbarch. Fix indention. Replace
6366 deprecated_print_address_numeric by paddress.
6367 * Makefile.in (exec.o) Add dependency to arch-utils.h.
6368
680b56ce 6369 * valprint.c (val_print_string): Replace
ed49a04f
MD
6370 deprecated_print_address_numeric.
6371 * tracepoint.c (trace_mention, scope_info): Likewise.
6372 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
6373 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
6374 (maintenance_check_symtabs): Likewise.
6375 * symfile.c (list_overlays_command): Likewise.
6376 * stack.c (frame_info, print_block_frame_labels): Likewise.
6377 * printcmd.c (print_address, print_address_demangle)
6378 (address_info): Likewise.
6379 * corefile.c (memory_error): Likewise.
6380 * infcmd.c (jump_command): Likewise.
6381 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
6382 (mention, delete_breakpoint): Likewise.
6383 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
6384 * dwarf2read.c (dump_die): Likewise.
6385 * ada-valprint.c (ada_val_print_1): Likewise.
6386 * f-valprint.c (f_val_print): Likewise.
680b56ce 6387 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
6388 * m32r-com.c (m32r_load_section, m32r_load)
6389 (m32r_upload_command): Likewise.
6390
6391 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
6392
6093d2eb
MD
63932008-01-11 Markus Deuling <deuling@de.ibm.com>
6394
6395 * gdbarch.sh (skip_prologue): Add gdbarch
6396 as parameter.
6397 * gdbarch.{c,h}: Regenerate.
6398
6399 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
6400 * amd64-tdep.c (amd64_skip_prologue): Likewise.
6401 * avr-tdep.c (avr_skip_prologue): Likewise.
6402 * cris-tdep.c (cris_skip_prologue): Likewise.
6403 * frv-tdep.c (frv_skip_prologue): Likewise.
6404 * h8300-tdep.c (h8300_skip_prologue): Likewise.
6405 * hppa-tdep.c (hppa_skip_prologue): Likewise.
6406 * i386-tdep.c (i386_skip_prologue): Likewise.
6407 * ia64-tdep.c (ia64_skip_prologue): Likewise.
6408 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
6409 * m32r-tdep.c (m32r_skip_prologue): Likewise.
6410 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
6411 * m68k-tdep.c (m68k_skip_prologue): Likewise.
6412 * m88k-tdep.c (m88k_skip_prologue): Likewise.
6413 * mep-tdep.c (mep_skip_prologue): Likewise.
6414 * mips-tdep.c (mips_skip_prologue): Likewise.
6415 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
6416 * mt-tdep.c (mt_skip_prologue): Likewise.
6417 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
6418 * score-tdep.c (score_skip_prologue): Likewise.
6419 * sh64-tdep.c (sh64_skip_prologue): Likewise.
6420 * sh-tdep.c (sh_skip_prologue): Likewise.
6421 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
6422 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
6423 * spu-tdep.c (spu_skip_prologue): Likewise.
6424 * v850-tdep.c (v850_skip_prologue): Likewise.
6425 * vax-tdep.c (vax_skip_prologue): Likewise.
6426 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
6427 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
6428
6429 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
6430 current_gdbarch by gdbarch.
6431 * m32c-tdep.c (m32c_skip_prologue): Likewise.
6432 * s390-tdep.c (s390_skip_prologue): Likewise.
6433
72f5cf0e
DE
64342008-01-10 Doug Evans <dje@google.com>
6435
6436 * defs.h (struct continuation_arg): Fix typo in comment.
6437 * target.c (target_translate_tls_address): Fix comment spelling error.
6438
689e4e2d
TJB
64392008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
6440
6441 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
6442 (DOUBLEST_SCAN_FORMAT): Likewise.
6443 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
6444 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
6445 * c-exp.y (parse_number): Likewise.
6446 * jv-exp.y (parse_number): Likewise.
6447 * objc-exp.y (parse_number): Likewise.
6448 * p-exp.y (parse_number): Likewise.
6449
ab0d6e0d
JB
64502008-01-09 Joel Brobecker <brobecker@adacore.com>
6451
6452 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
6453 (check_typedef): Likewise.
6454
0aea4bf3
LM
64552008-01-09 Luis Machado <luisgpm@br.ibm.com>
6456
6457 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
6458 seen_double_big_d, treat the new H, D, and DD modifiers as length
6459 modifiers.
6460
137033e9
JB
64612008-01-08 Joel Brobecker <brobecker@adacore.com>
6462
6463 * dwarf2read.c (read_enumeration_type): Add comment.
6464
dda297ec
TJB
64652008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
6466
6467 * config.in: Regenerate.
6468
a93c0eb6
JB
64692008-01-08 Joel Brobecker <brobecker@adacore.com>
6470
6471 * ada-lang.c (ada_convert_actual): Renames convert_actual.
6472 Make non-static.
6473 (ada_convert_actuals): Delete.
6474 * ada-lang.h (ada_convert_actual): Add declaration.
6475 (ada_convert_actuals): Remove declaration.
6476 * infcall.c: #include "ada-lang.h".
6477 (value_arg_coerce): Add new parameter sp. Update function
6478 documetnation. Add handling of Ada function call parameters.
6479 * Makefile.in (infcall.o): Update dependencies.
6480
a84a8a0d
JB
64812008-01-08 Paul Hilfinger <hilfinger@adacore.com>
6482
6483 * ada-lang.c (ensure_lval): Fix value lval kind.
6484 (convert_actual): Add handling for arguments passed by reference.
6485
d7f98cce
DE
64862008-01-08 Doug Evans <dje@google.com>
6487
6488 * dbxread.c (read_dbx_symtab): Fix indentation.
6489
4ef30785
TJB
64902008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
6491
6492 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
6493 (valarith.o): Depend on dfp.h.
6494 (valops.o): Likewise.
6495 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
6496 (set_decnumber_context): New function.
6497 (decimal_check_errors): Likewise.
6498 (decimal_from_number): Likewise.
6499 (decimal_to_number): Likewise.
6500 (decimal_from_string): Use set_decnumber_context and
6501 decimal_check_errors.
6502 (decimal_from_integral): New function.
6503 (decimal_from_floating): Likewise.
6504 (decimal_to_double): Likewise.
6505 (promote_decimal): Likewise.
6506 (decimal_binop): Likewise.
6507 (decimal_is_zero): Likewise.
6508 (decimal_compare): Likewise.
6509 (decimal_convert): Likewise.
6510 * dfp.h (decimal_from_integral): New prototype.
6511 (decimal_from_floating): Likewise.
6512 (decimal_to_double): Likewise.
6513 (decimal_binop): Likewise.
6514 (decimal_is_zero): Likewise.
6515 (decimal_compare): Likewise.
6516 (decimal_convert): Likewise.
6517 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
6518 call to value_from_decfloat.
6519 * valarith.c: Include dfp.h.
6520 (value_args_as_decimal): New function.
6521 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
6522 (value_logical_not): Likewise.
6523 (value_equal): Likewise.
6524 (value_less): Likewise.
6525 (value_pos): Likewise.
6526 (value_neg): Formatting fix.
6527 * valops.c: Include dfp.h.
6528 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
6529 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
6530 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
6531 (value_from_decfloat): Remove expect_type argument.
6532 * value.h (value_from_decfloat): Update prototype.
6533
a7c02bc8
VP
65342008-01-07 Vladimir Prus <vladimir@codesourcery.com>
6535
6536 Ignore change in name of dynamic linker during
6537 execution on Solaris. This also unbreaks pending breakpoints.
6538
6539 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
6540 * solib-svr4.c (svr4_same): New.
6541 (_initialize_svr4_solib): Register svr4_same.
6542 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 6543
610dd7f9
CF
65442008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
6545
6546 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
6547 when using MS-DOS paths.
6548
7a404eba
PA
65492008-01-05 Pedro Alves <pedro@codesourcery.com>
6550
6551 * NEWS: Mention --pid and --core command line behaviour changes.
6552
a4d9b460
PA
65532008-01-05 Pedro Alves <pedro@codesourcery.com>
6554
6555 * main.c (captured_main): Remove 'count' varible and the
6556 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
6557 --pid options were issued simultaneously. If an explicit pid
6558 option was passed, don't fallback to core file. Detect extra
6559 arguments better in the presence of explicit pid or core
6560 arguments.
6561
0c281816
JB
65622008-01-05 Joel Brobecker <brobecker@adacore.com>
6563
6564 * ada-lang.c (ada_which_variant_applies): Correctly compute
6565 the value of the discriminant when the variant record is packed.
6566
babe1480
JB
65672008-01-04 Joel Brobecker <brobecker@adacore.com>
6568
6569 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
6570 that are used to differentiate homonyms.
6571
727e3d2e
JB
65722008-01-04 Jerome Guitton <guitton@adacore.com>
6573
6574 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
6575 when the type is an anonymous pointer type.
6576 (ada_check_typedef): Avoid a seg fault when the type is null.
6577 * ada-typeprint.c (print_array_type): Add support for pointer
6578 to packed arrays.
6579
bb28a9dc
JB
65802008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
6581
680b56ce 6582 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 6583
6799def4
JB
65842008-01-04 Joel Brobecker <brobecker@adacore.com>
6585
6586 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
6587 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
6588
d3353bbd
JB
65892008-01-04 Joel Brobecker <brobecker@adacore.com>
6590
6591 * ada-exp.y (chop_separator): New function.
6592 (write_selectors): Rewrite to re-use chop_separator.
6593 (ada_nget_field_index, get_symbol_field_type): New functions.
6594 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
6595 expressions.
6596
82cf6c60
TJB
65972008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6598
6599 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
6600 of SYMBOL_VALUE when working with function symbols.
6601
b3dbf008
JB
66022008-01-03 Joel Brobecker <brobecker@adacore.com>
6603
6604 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
6605 expressions. These expressions do not need to be rewriten.
6606
02eb380e
JB
66072008-01-03 Joel Brobecker <brobecker@adacore.com>
6608
6609 * dwarf2read.c (read_enumeration_type): Flag type as stub if
6610 the given die is a declaration.
6611
abb68b3e
JB
66122008-01-03 Joel Brobecker <brobecker@adacore.com>
6613
6614 * ada-lang.c (ada_array_bound_from_type): Make non-static.
6615 Handle properly the case when the index type is an enumerated type.
6616 Do not return the subtype of the bounds type, just return the
6617 bounds type directly - this is not needed and is more consistent
6618 with what we do for arrays when no XA parallel type exists.
6619
f192137b
JB
66202008-01-03 Joel Brobecker <brobecker@adacore.com>
6621
6622 * ada-lang.c (static_unwrap_type): Add forward declaration.
6623 (template_to_static_fixed_type): Fields of dynamic types sometimes
6624 also need to be unwrapped. Take this into account.
6625 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
6626 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
6627 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 6628 the original type, not the base type.
f192137b 6629
1ed6ede0
JB
66302008-01-03 Jerome Guitton <guitton@adacore.com>
6631
6632 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 6633 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
6634 Update calls to ada_to_fixed_type.
6635 (ada_template_to_fixed_record_type_1): Ditto, but without looking
6636 for the tag.
6637 (ada_to_fixed_type): Add check_tag parameter; do not look for
6638 tag if null. When looking for a tag, use a fixed record type.
6639 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
6640 * ada-valprint.c (printable_val_type, ada_value_print): Update
6641 calls to ada_to_fixed_type.
6642
542a88d0
LM
66432008-01-03 Luis Machado <luisgpm@br.ibm.com>
6644
680b56ce 6645 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
6646 floatformat_to_doublest instead of floatformat_to_double and use
6647 DOUBLEST variables.
6648 (convert_doublest_to_floatformat): Call floatformat_from_doublest
6649 instead of floatformat_from_double and use DOUBLEST variables.
6650
dc2bbab2
NH
66512008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
6652
6653 * MAINTAINERS (Write After Approval): Add self.
6654
8b60591b
JB
66552008-01-03 Joel Brobecker <brobecker@adacore.com>
6656
6657 * symfile.c (set_initial_language): Make non-static.
6658 * symfile.h (set_initial_language): Add declaration.
6659 * language.c: #include "symfile.h".
6660 (set_language): Call set_initial_language if the frame language
6661 could not be determined.
6662
ceef53c1
JB
66632008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
6664
6665 * eval.c (evaluate_subexp_for_address): Provide frame address to
6666 locate_var_value only if it will be needed.
6667
ef29ce1a
JK
66682008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6669
6670 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
6671
0a07e705
JB
66722008-01-02 Joel Brobecker <brobecker@adacore.com>
6673
6674 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
6675 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
6676 This is needed to make sure that any other treatment applied
6677 to the resulting value does not fail for spurious reason,
6678 such as trying to take the address of this value.
6679
f58b38bf
JB
66802008-01-02 Joel Brobecker <brobecker@adacore.com>
6681
6682 * ada-lang.c (ada_value_equal): Dereference reference types when
6683 comparing arrays.
680b56ce 6684
9b254dd1
DJ
66852008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
6686
6687 Updated copyright notices for most files.
6688
33605d39
CF
66892008-01-01 Christopher Faylor <me+gdb@cgf.cx>
6690
6691 * win32-nat.c (psapi_module_handle): Remove static.
6692 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
6693 return first module found if base_address is zero. Don't initialize
6694 psapi function pointers here. Convert to cygwin paths when
6695 appropriate.
6696 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
6697 executable name. Use get_module_name when that fails or when
6698 !__CYGWIN__.
6699 (_initialize_psapi): New function. Initialize psapi stuff before it is
6700 needed or issue a warning if it is not found. Move psapi_module_handle
6701 here.
6702
29480c32
JB
67032008-01-01 Joel Brobecker <brobecker@adacore.com>
6704
6705 * ada-lang.c (ada_remove_trailing_digits): New function.
6706 (ada_remove_po_subprogram_suffix): New function.
6707 (ada_decode): Improve. Move the description of the algorithm
6708 directly inside the code, instead of in the function global
6709 description.
6710
969a1360
JB
67112008-01-01 Joel Brobecker <brobecker@adacore.com>
6712
6713 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
6714 and always print the dereferenced value.
6715
b7789565
JB
67162008-01-01 Joel Brobecker <brobecker@adacore.com>
6717
6718 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
6719 of the case where the first argument is a reference.
6720 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
6721
73fb9985
JB
67222008-01-01 Joel Brobecker <brobecker@adacore.com>
6723
6724 Implement support for Ada interface types.
6725
6726 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
6727 (ada_is_ignored_field): Ignore fields that are a dispatch table
6728 of a tagged type.
6729
636265b6
JB
67302008-01-01 Joel Brobecker <brobecker@adacore.com>
6731
6732 * top.c (print_gdb_version): Update copyright year.
6733
9d200a2e 67342008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 6735
9d200a2e
JB
6736 * ChangeLog-2007: New ChangeLog rotation.
6737 * ChangeLog: Reset for 2008.
6738 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
6739 ChangeLog-2007.
b7589f7d 6740
9d200a2e 6741For older changes see ChangeLog-2007.
c906108c
SS
6742\f
6743Local Variables:
6744mode: change-log
6745left-margin: 8
6746fill-column: 74
6747version-control: never
57da7796 6748coding: utf-8
c906108c 6749End:
This page took 1.271554 seconds and 4 git commands to generate.