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