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