]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
69abc51c
TJB
12008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
2
3 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
4 offset for full 64-bit slot of FPSCR when in 32-bits.
5 (ppc_linux_read_description): Return target description with 64-bit
6 FPSCR when inferior is running on an ISA 2.05 or later processor.
7 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
8 initialize_tdec_powerpc_isa205_32l,
9 initialize_tdec_powerpc_isa205_altivec32l,
10 initialize_tdec_powerpc_isa205_vsx32l,
11 initialize_tdec_powerpc_isa205_64l,
12 initialize_tdec_powerpc_isa205_altivec64l and
13 initialize_tdec_powerpc_isa205_vsx64l.
14 * ppc-linux-tdep.h: Add external declaration for
15 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
16 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
17 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
18 * features/rs600/powerpc-fpu-isa205.xml: New file.
19 * features/rs600/powerpc-isa205-32l.xml: New file.
20 * features/rs600/powerpc-isa205-64l.xml: New file.
21 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
22 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
23 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
24 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
25 * features/rs600/powerpc-isa205-32l.c: Generate.
26 * features/rs600/powerpc-isa205-64l.c: Generate.
27 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
28 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
29 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
30 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
31
c14c28ba
PP
322008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
33
34 * objfiles.h: New MULTI_OBJFILE_P macro.
35 * printcmd.c (sym_info): Print object name.
36 * maint.c (maintenance_translate_address): Likewise.
37
d5cbbe6e
JB
382008-11-18 Joel Brobecker <brobecker@adacore.com>
39
40 * NEWS: Document the removal of "catch load" and "catch unload".
41
2e74121d
DE
422008-11-17 Doug Evans <dje@google.com>
43
44 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
45 on error messages.
46
a7212384
UW
472008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
48
49 PR gdb/2250
50 * infrun.c (clear_proceed_status_thread): New function.
51 (clear_proceed_status_callback): New function.
52 (clear_proceed_status): In all-stop mode, clear per-thread
53 proceed status of *all* threads, not only the current.
54 (handle_inferior_event): In all-stop mode, if we're stepping
55 one thread, but got some inferior event in another thread
56 that does not cause GDB to break to the user interface,
57 ensure the interrupted stepping operation continues in the
58 original thread.
59 (currently_stepping): Move thread-related tests to ...
60 (currently_stepping_thread): ... this new function.
61 (currently_stepping_callback): New function.
62
66bb093b
VP
632008-11-17 Vladimir Prus <vladimir@codesourcery.com>
64
65 Implement =thread-selected notification.
66
67 * mi/mi-common.h (struct mi_interp): New, moved from ...
68 * mi/mi-interp.c: ...here.
69 * mi/mi-main.c (mi_execute_command): If the thread changed
70 as result of command, report that.
71
8dd4f202
VP
722008-11-17 Vladimir Prus <vladimir@codesourcery.com>
73
74 Implement continue/interrupt of thread groups.
75
76 * mi/mi-main.c (proceed_thread_callback): New.
77 (mi_cmd_exec_continue): If --thread-group is specified, resume all
78 threads in that group.
79 (interrupt_thread_callback): New.
80 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
81 all threads in that group.
82
6418d433
VP
832008-11-17 Vladimir Prus <vladimir@codesourcery.com>
84
85 Implement '-target-detach pid'.
86
87 * infcmd.c (detach_command): Make nonstatic.
88 * inferior.h (detach_command): Declare.
89 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
90 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
91 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
92
3d043ef6
VP
932008-11-17 Vladimir Prus <vladimir@codesourcery.com>
94
95 Include group-id in thread-created notification.
96
97 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
98 group id in the output.
99
4a92f99b
VP
1002008-11-17 Vladimir Prus <vladimir@codesourcery.com>
101
102 Notification for attach/detach.
103
104 * inferior.c: Call the process observers.
105 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
106 (mi_interpreter_init): Register the above.
107
3ee1c036
VP
1082008-11-17 Vladimir Prus <vladimir@codesourcery.com>
109
110 Implement -list-thread-groups.
111
112 * thread.c (print_thread_info): New parameter pid, to print
113 threads of specific process.
114 * gdbthread.h (print_thread_info): New parameter pid.
115 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
116 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
117 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
118 (print_one_process, mi_cmd_list_thread_groups): New.
119
283de25f
JB
1202008-11-16 Joel Brobecker <brobecker@adacore.com>
121
122 Remove some unused macros related to the old load/unload catchpoints.
123
124 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
125 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
126 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
127
533be4dd
JB
1282008-11-16 Joel Brobecker <brobecker@adacore.com>
129
130 Remove support for catch load and catch unload commands.
131
132 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
133 (struct breakpoint): Remove fields dll_pathname and
134 triggered_dll_pathname.
135 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
136 * breakpoint.c (ep_is_catchpoint): Remove handling of
137 bp_catch_load and bp_catch_unload.
138 (print_it_typical, bpstat_check_location, bpstat_what)
139 (print_one_breakpoint_location, print_one_breakpoint_location)
140 (user_settable_breakpoint, allocate_bp_location)
141 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
142 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
143 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
144 (catch_load_command_1, catch_unload_command_1): Delete.
145 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
146 command creation.
147 * infrun.c (handle_inferior_event): Remove the handling of
148 load/unload catchpoint events.
149
59205f5a
JB
1502008-11-15 Joel Brobecker <brobecker@adacore.com>
151
152 From Jerome Guitton <guitton@adacore.com>
153 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
154 New function.
155 (dwarf_decode_lines): Detect null file numbers. Detect the end of
156 the line program sequence when no end sequence is emitted.
157
96967637
JB
1582008-11-15 Joel Brobecker <brobecker@adacore.com>
159
160 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
161 type dereferencing.
162
da8bd9a3
DJ
1632008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
164
165 * NEWS: Mention sparc64-linux-gnu gdbserver support.
166
dfb64f85
DJ
1672008-11-14 Daniel Gutson <dgutson@codesourcery.com>
168
169 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
170 * regformats/reg-sparc64.dat: New file.
171
59669435
TT
1722008-11-14 Tom Tromey <tromey@redhat.com>
173
174 PR mi/2549:
175 * mi/mi-main.c (get_register): Use get_formatted_print_options.
176
06be140c
JB
1772008-11-13 Joel Brobecker <brobecker@adacore.com>
178
179 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
180
759cc328
UW
1812008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
182
183 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
184 AT_EXECFN. Re-sort AT_SECURE.
185
73e113d4
JK
1862008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
187
188 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
189
c31ad2a1
JB
1902008-11-13 Joel Brobecker <brobecker@adacore.com>
191
192 * ia64-tdep.c: Remove commented out #define.
193
84290f2f
JB
1942008-11-12 Joel Brobecker <brobecker@adacore.com>
195
196 From Joel Sherrill <joel.sherrill@oarcorp.com>
197 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
198 instead of the "gdbsim_ops" global.
199
de04a248
DE
2002008-11-11 Doug Evans <dje@google.com>
201
202 * infcall.c (call_function_by_hand): Handle inferior exit.
203
3c8b2eda
TJB
2042008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
205
206 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
207 missing struct target_ops argument.
208
f5d9a292
JS
2092008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
210
211 * MAINTAINERS: Add myself for write after approval privileges.
212
de8ee0e2
TT
2132008-11-10 Tom Tromey <tromey@redhat.com>
214
215 * gdbtypes.c (copy_type_recursive): Clear new fields.
216
b03a6ea4
TT
2172008-11-10 Tom Tromey <tromey@redhat.com>
218
219 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
220 cleanups on early return.
221
136d6dae
VP
2222008-11-09 Vladimir Prus <vladimir@codesourcery.com>
223
224 Kill pthread_ops_hack
225
226 * target.h (struct target_ops): Make to_attach, to_detach,
227 to_create_inferior and to_mourn_inferior accept a pointer
228 to struct target_ops.
229 (target_attach, target_create_inferior, target_create_inferior):
230 Convert from macros to function. Find the right target to
231 invoke a method of.
232 (find_default_attach, find_default_create_inferior): New parameter
233 ops.
234 * corefile.c (core_file_command): Pass target to to_detach.
235 * corelow.c (core_detach): Add 'ops' parameter.
236 * fork-child.c (fork_inferior): Return the pid. Allow
237 init_trace_fun to be NULL.
238 * inf-ptrace (ptrace_ops_hack): Remove.
239 (inf_ptrace_him): Remove, moving all logic into....
240 (inf_ptrace_create_inferior): ... here. Push the target
241 passed as parameter.
242 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
243 Push/pop target passed as parameter, no ptrace_ops_hack.
244 (inf_ptrace_target): Don't remember result.
245 * inferior.h (fork_inferior): Adjust prototype.
246 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
247 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
248 Pass it to linux_ops target.
249 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
250 New parameter ops. Pass it to the target beneath.
251 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
252 (extended_remote_create_inferior): New parameter ops. Pass it
253 further.
254 * target.c (debug_to_attach, debug_to_detach)
255 (debug_to_mourn_inferior): New parameter ops.
256 (target_create_inferior): New.
257 (update_current_target): Do not inherit to_attach, to_detach,
258 to_create_inferiour, to_mourn_inferior. Do not default
259 to_detach and to_mourn_inferior.
260 (target_detach): Find the right target to use.
261 (target_mourn_inferior): New.
262 (find_default_attach, find_default_create_inferior): New parameter
263 ops. Pass the found target when calling its method.
264 (init_dummy_target): Provide fallback definition of to_detach.
265 (target_attach): New.
266 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
267 (debug_to_mourn_inferiour): New parameter ops.
268 * aix-thread.c: Adjust.
269 * bsd-uthread.c: Adjust.
270 * gnu-nat.c: Adjust.
271 * go32-nat.c: Adjust.
272 * hpux-thread.c: Adjust.
273 * inf-ttrace.c: Ajust.
274 * monitor.c: Adjust.
275 * nto-procfs.c: Adjust.
276 * procfs.c: Adjust.
277 * remote-m32r-sdi.c: Adjust.
278 * remote-mips.c: Adjust.
279 * remote-sim.c: Adjust.
280 * rs6000-nat.c: Adjust.
281 * sol-thread.c: Adjust.
282 * win32-nat.c: Adjust.
283 * dec-thread.c: Adjust.
284
ed406532
VP
2852008-11-09 Vladimir Prus <vladimir@codesourcery.com>
286
287 * thread.c (print_thread_info): Eliminate now useless checks
288 for exited threads.
289
48fb2d97
PA
2902008-11-06 Pedro Alves <pedro@codesourcery.com>
291
292 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
293 to 0.
294
29c87f7f
PA
2952008-11-05 Pedro Alves <pedro@codesourcery.com>
296
297 * remote.c (notice_new_inferiors): Add a new inferior only when
298 we're going to add a new thread.
299
e0ba6746
PA
3002008-11-05 Pedro Alves <pedro@codesourcery.com>
301
302 * defs.h (add_inferior_continuation)
303 (do_all_inferior_continuations)
304 (discard_all_inferior_continuations): Declare.
305 * utils.c (add_inferior_continuation)
306 (do_all_inferior_continuations)
307 (discard_all_inferior_continuations): New.
308 * inferior.h (struct inferior) <continuations>: New field.
309 * inferior.c (free_inferior): Discard all the inferior
310 continuations.
311 * inf-loop.c (inferior_event_handler): Do all current inferior
312 continuations.
313 * infcmd.c (attach_command): Register an inferior continuation
314 instead of a thread continuation.
315 * infrun.c (handle_inferior_event): If stop_soon is
316 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
317
d3fd5342
PA
3182008-11-04 Pedro Alves <pedro@codesourcery.com>
319
320 * inf-loop.c (inferior_event_handler): On INF_ERROR and
321 INF_REG_EVENT throwing, don't call target_async or pop_target.
322 Call pop_all_targets_above.
323 * remote.c (remote_close): Call remote_terminal_ours. Don't call
324 signal or target_async.
325
1c9f699c
DJ
3262008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
327
328 * eval.c (evaluate_subexp_standard): Assert that there is at
329 least one array dimension.
330
cb0362bb
VP
3312008-11-03 Vladimir Prus <vladimir@codesourcery.com>
332
333 Make attach_command exception-safe
334 * infcmd.c (attach_command): Call async_enable_stdin
335 if exception is thrown.
336
9bc9e927
PA
3372008-11-03 Pedro Alves <pedro@codesourcery.com>
338
339 * gdbarch.sh (has_global_solist): Mention global breakpoints.
340 * gdbarch.h: Regenerate.
341
50c71eaf
PA
3422008-11-03 Pedro Alves <pedro@codesourcery.com>
343
344 * remote.c (remote_start_remote): If the solib list is global,
345 fetch libraries and insert breakpoints after connecting.
346 * infcmd.c (post_create_inferior): If the solist is shared between
347 inferiors, no need to refetch it on every new inferior.
348 (detach_command): If the shared library list is shared between
349 inferiors, then don't clear it on every inferior detach.
350 * gdbarch.sh (has_global_solist): New.
351 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
352 gdbarch_has_global_solist.
353 * target.c (target_pre_inferior): If the shared library list is
354 shared between inferiors, then don't clear it here, neither
355 invalidate the memory regions or clear the target description.
356 (target_detach): If the shared library list is shared between
357 inferiors, then don't remove breakpoints from the target here.
358 (target_disconnect): Comment.
359 * solib.c (update_solib_list): Check for null_ptid.
360 * breakpoint.c (insert_breakpoints, update_global_location_list):
361 If the shared library list is shared between inferiors, insert
362 breakpoints even if there's no execution.
363 (breakpoint_init_inferior): If the shared library list is shared
364 between inferiors, don't delete breakpoints or mark them
365 uninserted here.
366
367 * gdbarch.c, gdbarch.h: Regenerate.
368
2fdf0e42
PA
3692008-10-31 Pedro Alves <pedro@codesourcery.com>
370
371 * inferior.h (inferior_ignoring_leading_exec_events): Delete
372 declaration.
373
3990c31b
PA
3742008-10-31 Pedro Alves <pedro@codesourcery.com>
375
376 * inferior.h (write_inferior_status_register): Delete.
377 * infrun.c (write_inferior_status_register): Delete.
378
2a2546f0 3792008-10-30 Tom Tromey <tromey@redhat.com>
f3134b88
TT
380
381 * value.c (coerce_array): Use check_typedef.
382
2a2546f0 3832008-10-30 Tom Tromey <tromey@redhat.com>
724b958c
TT
384
385 * cli/cli-logging.c (handle_redirections): Make a cleanup.
386 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
387 * regcache.c (regcache_print): Make a cleanup.
388 * maint.c (maintenance_print_architecture): Make a cleanup.
389 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
390
a05016c0
TT
3912008-10-30 Tom Tromey <tromey@redhat.com>
392
393 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
394 (do_close_cleanup): Don't free 'fd'.
395
2a2546f0 3962008-10-30 Tom Tromey <tromey@redhat.com>
9fe4a216
TT
397
398 * source.c (symtab_to_fullname): Test 'r >= 0'.
399 (psymtab_to_fullname): Likewise.
400 (get_filename_and_charpos): Make a cleanup.
401 (forward_search_command): Likewise.
402 (reverse_search_command): Likewise.
403 * exec.c (exec_file_attach): Close scratch_chan on failure.
404 * nto-procfs.c (procfs_open): Make a cleanup.
405 (procfs_pidlist): Likewise.
406 (do_closedir_cleanup): New function.
407
c2226152
AS
4082008-10-30 Andreas Schwab <schwab@suse.de>
409
410 * infcmd.c (construct_inferior_arguments): Handle newlines
411 specially.
412
fe798b75
JB
4132008-10-30 Joel Brobecker <brobecker@adacore.com>
414
415 * breakpoint.h (enum bptype): Delete bp_catch_exec.
416 * breakpoint.c (insert_catchpoint): Remove handling for
417 bp_catch_exec breakpoint kinds.
418 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
419 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
420 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
421 (print_one_breakpoint_location, user_settable_breakpoint)
422 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
423 (allocate_bp_location, mention, breakpoint_re_set_one)
424 (disable_command, enable_command): Likewise.
425 (create_exec_event_catchpoint): Delete.
426 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
427 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
428 New functions.
429 (catch_exec_breakpoint_ops): New static global.
430 (catch_exec_command_1): Use create_catchpoint instead of
431 create_exec_event_catchpoint to create the exec catchpoint.
432
f154cae1
TT
4332008-10-28 Tom Tromey <tromey@redhat.com>
434
435 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
436 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
437 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
438 (cli-utils.o): Remove.
439 * cli/cli-utils.c: Remove.
440 * cli/cli-utils.h: Remove.
441
79a45b7d
TT
4422008-10-28 Tom Tromey <tromey@redhat.com>
443
444 * varobj.c (value_get_print_value): Include valprint.h.
445 (value_get_print_value): Use get_formatted_print_options.
446 * value.h (struct value_print_options): Declare.
447 (value_print, val_print, common_val_print, val_print_string):
448 Update.
449 * value.c: Include valprint.h.
450 (show_values): Use get_user_print_options.
451 (show_convenience): Likewise.
452 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
453 declare.
454 (struct value_print_options): New type.
455 (vtblprint, unionprint, addressprint, objectprint, print_max,
456 inspect_it, repeat_count_threshold, output_format,
457 stop_print_at_null): Don't declare.
458 (user_print_options, get_user_print_options,
459 get_raw_print_options, get_formatted_print_options): Declare.
460 (print_array_indexes_p): Don't declare.
461 (maybe_print_array_index, val_print_array_elements): Update.
462 * valprint.c (print_max): Remove.
463 (user_print_options): New global.
464 (get_user_print_options, get_raw_print_options,
465 get_formatted_print_options): New functions.
466 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
467 prettyprint_structs, prettyprint_arrays, unionprint,
468 addressprint): Remove.
469 (val_print): Remove format, deref_ref, pretty arguments; add
470 options. Update.
471 (common_val_print): Likewise.
472 (print_array_indexes_p): Remove.
473 (maybe_print_array_index): Remove format, pretty arguments; add
474 options. Update.
475 (val_print_array_elements): Remove format, deref_ref, pretty
476 arguments; add options. Update.
477 (val_print_string): Add options argument. Update.
478 (_initialize_valprint): Use user_print_options.
479 (output_format): Remove.
480 (set_output_radix_1): Use user_print_options.
481 * typeprint.c: Include valprint.h.
482 (objectprint): Don't declare.
483 (whatis_exp): Use get_user_print_options.
484 * tui/tui-regs.c: Include valprint.h.
485 (tui_register_format): Use get_formatted_print_options.
486 * tracepoint.c: Include valprint.h.
487 (addressprint): Don't declare.
488 (trace_mention): Use get_user_print_options.
489 (tracepoints_info): Likewise.
490 * stack.c (print_frame_args): Use get_raw_print_options.
491 (print_frame_info): Use get_user_print_options.
492 (print_frame): Likewise.
493 * sh64-tdep.c: Include valprint.h
494 (sh64_do_register): Use get_formatted_print_options.
495 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
496 pretty arguments; add options.
497 (scm_scmlist_print): Likewise. Update.
498 (scm_scmval_print): Likewise.
499 (scm_val_print): Likewise.
500 (scm_value_print): Remove format, pretty arguments; add options.
501 Update.
502 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
503 Update.
504 * scm-lang.c (scm_printstr): Add options argument.
505 * python/python-value.c: Include valprint.h.
506 (valpy_str): Use get_user_print_options.
507 * printcmd.c: Include valprint.h.
508 (addressprint): Don't declare.
509 (inspect_it): Remove.
510 (print_formatted): Remove format option; add options. Update.
511 (print_scalar_formatted): Likewise.
512 (print_address_demangle): Use get_user_print_options.
513 (do_examine): Use get_formatted_print_options.
514 (print_command_1): Likewise.
515 (output_command): Use get_formatted_print_options.
516 (do_one_display): Likewise.
517 (print_variable_value): Use get_user_print_options.
518 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
519 pretty arguments; add options. Update.
520 (pascal_value_print): Remove format, pretty arguments; add
521 options. Update.
522 (vtblprint, objectprint): Don't declare.
523 (pascal_static_field_print): Remove.
524 (pascal_object_print_value_fields): Remove format, pretty
525 arguments; add options. Update.
526 (pascal_object_print_static_field): Likewise.
527 (_initialize_pascal_valprint): Use user_print_options. Update.
528 * p-lang.h (pascal_val_print, pascal_value_print,
529 pascal_printstr, pascal_object_print_value_fields): Update.
530 (vtblprint, static_field_print): Don't declare.
531 * p-lang.c (pascal_printstr): Add options argument. Update.
532 * objc-lang.c (objc_printstr): Add options argument. Update.
533 * mt-tdep.c: Include valprint.h.
534 (mt_registers_info): Use get_raw_print_options.
535 * mips-tdep.c: Include valprint.h.
536 (mips_print_fp_register): Use get_formatted_print_options.
537 (mips_print_register): Likewise.
538 * mi/mi-main.c: Include valprint.h.
539 (get_register): Use get_user_print_options.
540 (mi_cmd_data_evaluate_expression): Likewise.
541 (mi_cmd_data_read_memory): Use get_formatted_print_options.
542 * mi/mi-cmd-stack.c: Include valprint.h.
543 (list_args_or_locals): Use get_raw_print_options.
544 * m2-valprint.c (print_function_pointer_address): Add addressprint
545 argument.
546 (m2_print_long_set): Remove format, pretty arguments.
547 (m2_print_unbounded_array): Remove format, deref_ref, pretty
548 arguments; add options. Update.
549 (print_unpacked_pointer): Remove format argument; add options.
550 Now static. Update.
551 (print_variable_at_address): Remove format, deref_ref, pretty
552 arguments; add options. Update.
553 (m2_print_array_contents): Likewise.
554 (m2_val_print): Likewise.
555 * m2-lang.h (m2_val_print): Update.
556 * m2-lang.c (m2_printstr): Add options argument. Update.
557 * language.h (struct value_print_options): Declare.
558 (struct language_defn) <la_printstr>: Add options argument.
559 <la_val_print>: Remove format, deref_ref, pretty argument; add
560 options.
561 <la_value_print>: Remove format, pretty arguments; add options.
562 <la_print_array_index>: Likewise.
563 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
564 LA_PRINT_ARRAY_INDEX): Update.
565 (default_print_array_index): Update.
566 * language.c (default_print_array_index): Remove format, pretty
567 arguments; add options. Update.
568 (unk_lang_printstr): Add options argument.
569 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
570 add options.
571 (unk_lang_value_print): Remove format, pretty arguments; add
572 options.
573 * jv-valprint.c (java_value_print): Remove format, pretty
574 arguments; add options. Update.
575 (java_print_value_fields): Likewise.
576 (java_val_print): Remove format, deref_ref, pretty arguments; add
577 options. Update.
578 * jv-lang.h (java_val_print, java_value_print): Declare.
579 * infcmd.c: Include valprint.h.
580 (print_return_value): Use get_raw_print_options.
581 (default_print_registers_info): Use get_user_print_options,
582 get_formatted_print_options.
583 (registers_info): Use get_formatted_print_options.
584 * gdbtypes.h (struct value_print_options): Declare.
585 (print_scalar_formatted): Update.
586 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
587 pretty arguments; add options. Update.
588 (f77_print_array): Likewise.
589 (f_val_print): Likewise.
590 * f-lang.h (f_val_print): Update.
591 * f-lang.c (f_printstr): Add options argument. Update.
592 (c_value_print): Update declaration.
593 * expprint.c: Include valprint.h.
594 (print_subexp_standard): Use get_raw_print_options,
595 get_user_print_options.
596 * eval.c: Include valprint.h.
597 (objectprint): Don't declare.
598 (evaluate_subexp_standard): Use get_user_print_options.
599 * cp-valprint.c (vtblprint, objectprint, static_field_print):
600 Remove.
601 (cp_print_value_fields): Remove format, pretty arguments; add
602 options. Update.
603 (cp_print_value): Likewise.
604 (cp_print_static_field): Likewise.
605 (_initialize_cp_valprint): Use user_print_options. Update.
606 * c-valprint.c (print_function_pointer_address): Add addressprint
607 argument.
608 (c_val_print): Remove format, deref_ref, pretty arguments; add
609 options. Update.
610 (c_value_print): Add options argument. Update.
611 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
612 (vtblprint, static_field_print): Don't declare.
613 (cp_print_value_fields): Update.
614 * c-lang.c (c_printstr): Add options argument. Update.
615 * breakpoint.c: Include valprint.h.
616 (addressprint): Don't declare.
617 (watchpoint_value_print): Use get_user_print_options.
618 (print_one_breakpoint_location): Likewise.
619 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
620 print_exception_catchpoint): Likewise.
621 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
622 get_user_print_options.
623 * ada-valprint.c (struct ada_val_print_args): Remove format,
624 deref_ref, and pretty; add options.
625 (print_optional_low_bound): Add options argument.
626 (val_print_packed_array_elements): Remove format and pretty
627 arguments; add options. Update.
628 (printstr): Add options argument. Update.
629 (ada_printstr): Likewise.
630 (ada_val_print): Remove format, deref_ref, pretty arguments; add
631 options argument. Update.
632 (ada_val_print_stub): Update.
633 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
634 add options. Update.
635 (ada_val_print_1): Likewise.
636 (print_variant_part): Likewise.
637 (ada_value_print): Remove format, pretty arguments; add options.
638 Update.
639 (print_record): Likewise.
640 (print_field_values): Likewise.
641 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
642 Update.
643 * ada-lang.c (ada_print_array_index): Add options argument; remove
644 format and pretty arguments.
645 (print_one_exception): Use get_user_print_options.
646
7c8a8b04
TT
6472008-10-28 Tom Tromey <tromey@redhat.com>
648
649 * cli/cli-script.c (do_fclose_cleanup): Remove.
650 (script_from_file): Use make_cleanup_fclose.
651 * xml-tdesc.c (do_cleanup_fclose): Remove.
652 (fetch_xml_from_file): Use make_cleanup_fclose.
653 * tracepoint.c (tracepoint_save_command): Use
654 make_cleanup_fclose. Always free pathname.
655 * source.c (print_source_lines_base): Use make_cleanup_fclose.
656 * remote.c (fclose_cleanup): Remove.
657 (remote_file_put): Use make_cleanup_fclose.
658 (remote_file_get): Likewise.
659 * linux-nat.c (linux_nat_find_memory_regions): Use
660 make_cleanup_fclose.
661 (linux_nat_info_proc_cmd): Likewise.
662 (linux_proc_pending_signals): Likewise.
663 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
664 Free file name.
665 * cli/cli-dump.c (do_fclose_cleanup): Remove.
666 (make_cleanup_fclose): Remove.
667 * defs.h (make_cleanup_fclose): Declare.
668 * utils.c (do_fclose_cleanup): New function.
669 (make_cleanup_fclose): Likewise.
670
5a55c295
PA
6712008-10-27 Pedro Alves <pedro@codesourcery.com>
672
673 * inflow.c (kill_command): If the target claims there is still
674 execution, don't clear the thread list.
675
5256a53b
PA
6762008-10-27 Pedro Alves <pedro@codesourcery.com>
677
678 * cp-name-parser.y: Include defs.h instead of config.h.
679 (parse_escape): Rename to ...
680 (cp_parse_escape): ... this.
681 (yylex): Update.
682 (xfree) [TEST_CPNAMES]: New.
683
e8ecdb5c
PA
6842008-10-27 Pedro Alves <pedro@codesourcery.com>
685
686 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
687 2.13 and configure.in.
688
8a305172
PA
6892008-10-27 Pedro Alves <pedro@codesourcery.com>
690
691 * target.h (struct target_ops) <to_supports_multi_process>: New
692 field.
693 (target_supports_multi_process): New define.
694 * target.c (update_current_target): Inherit and de_fault
695 to_supports_multi_process.
696 * infcmd.c (attach_command): Allow attaching to multiple processes
697 if the target supports it.
698 (detach_command): If the target claims there is still execution,
699 don't clear the thread list.
700 * remote.c (remote_supports_multi_process): New.
701 (init_remote_ops): Register remote_supports_multi_process.
702
676e87b3
PA
7032008-10-27 Pedro Alves <pedro@codesourcery.com>
704
705 * Makefile.in (.y.c, .l.c): sed free to xfree.
706
f0323ca0
PA
7072008-10-27 Pedro Alves <pedro@codesourcery.com>
708
709 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
710 $(TM_CLIBS).
711 (CDEPS): Remove reference to $(TM_CDEPS).
712
3067f6e5
MS
7132008-10-26 Michael Snyder <msnyder@vmware.com>
714
715 * infrun.c (handle_inferior_event): Handle dynamic symbol
716 resolution in reverse.
717
6130d0b7
JB
7182008-10-25 Joel Brobecker <brobecker@adacore.com>
719
720 * infrun.c: Minor comment reformatting.
721
bbe2ba60
PA
7222008-10-25 Pedro Alves <pedro@codesourcery.com>
723
724 * ada-exp.y (write_object_renaming): Use malloc instead of
725 xmalloc.
726 * p-exp.y (pop_current_type): Use free instead of xfree.
727
2e979b94
PA
7282008-10-24 Pedro Alves <pedro@codesourcery.com>
729
730 * fork-child.c (startup_inferior): Only set threads not-executing
731 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
732 keep waiting, don't resume. On all other cases but
733 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
734 the event ptid.
735
74531fed
PA
7362008-10-24 Pedro Alves <pedro@codesourcery.com>
737
738 Remote non-stop mode support.
739
740 * remote.c (pending_stop_reply): New.
741 (struct remote_state) <non_stop_aware, support_vCont_t>: New
742 fields.
743 (remote_async_inferior_event_token)
744 (remote_async_get_pending_events_token): New.
745 (notice_new_inferiors): New, abstracted out from record_currthread.
746 (record_currthread): Call it.
747 (remote_threads_info): Default threads to running in non-stop
748 mode. In non-stop mode, only qfThreadInfo is supported.
749 (remote_close): Discard all pending stop_replies. Close the event
750 sources.
751 (set_stop_requested_callback): New.
752 (remote_start_remote): Implement non-stop mode startup. In
753 all-stop, don't clear the thread list here.
754 (remote_non_stop_feature): New.
755 (remote_protocol_features): Add a "QNonStop" feature.
756 (remote_open_1): Clear cached_wait_status and non_stop_aware.
757 Clear the thread list here.
758 (remote_detach_1): Discard pending stop replies of the process we
759 detached from.
760 (extended_remote_attach_1): Implement non-stop mode.
761 (remote_vcont_probe): Recognize `vCont;t'.
762 (remote_vcont_resume): Implement non-stop mode.
763 (remote_resume): Don't set waiting_for_stop_reply in non-stop
764 mode.
765 (remote_stop_ns): New.
766 (remote_stop): Rename to ...
767 (remote_stop_as): ... this. If we have a cached wait status,
768 don't bother interrupting the remote.
769 (remote_stop): Reimplement as wrapper around remote_stop_as and
770 remote_stop_ns.
771 (interrupt_query): Don't query in async mode.
772 (struct cached_reg, cahed_reg_t): New.
773 (struct stop_reply): New.
774 (stop_reply_queue): New.
775 (stop_reply_xmalloc, stop_reply_xfree)
776 (discard_pending_stop_replies, do_stop_reply_xfree)
777 (queued_stop_reply, push_stop_reply, peek_stop_reply)
778 (remote_parse_stop_reply, remote_get_pending_stop_replies)
779 (process_stop_reply): New.
780 (remote_wait_ns): New.
781 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
782 notion of current general thread is a process exit was reported.
783 (remote_wait): Call remote_wait_ns in non-stop mode.
784 (handle_notification): New.
785 (putpkt_binary): Handle notifications. Don't care for
786 waiting_for_stop_reply in non-stop mode.
787 (getpkt_sane): Rename to ...
788 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
789 argument. Handle it. Handle notifications.
790 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
791 (getpkt_or_notif_sane): New.
792 (select_new_thread_callback): Check for exited state instead of
793 comparing the ptid against minus_one_ptid.
794 (extended_remote_create_inferior_1): Query the remote about the
795 current thread.
796 (remote_supports_non_stop): New.
797 (init_remote_ops): Register it.
798 (remote_async_inferior_event_handler): New.
799 (remote_async_get_pending_events_handler): New.
800
801 * infcmd.c (proceed_thread_callback): Comment.
802 (proceed_after_attach_callback, proceed_after_attach): New.
803 (attach_command_post_wait): In background attach, resume all
804 threads, but only if they are unsignalled, and not explicitly
805 stopped. In foreground attach, in non-stop mode, make sure to
806 stop all threads of the just attached to process.
807 (attach_command): In non-stop mode: If doing a background attach,
808 stop at least one thread. If a foreground attach, stop all
809 threads.
810
50d01748
PA
8112008-10-24 Pedro Alves <pedro@codesourcery.com>
812
813 * event-loop.h: Mention async_event_handlers.
814 (async_event_handler): Forward declare.
815 (async_event_handler_func): New typedef.
816 (create_async_event_handler, delete_async_event_handler)
817 (mark_async_event_handler): Declare.
818 * event-loop.c (event_data): New.
819 (event_handler_func): Take an event_data instead of an integer.
820 (struct gdb_event): Replace the integer file descriptor by a
821 generic event_data.
822 (async_event_handler): New.
823 (async_handler_ready): Delete.
824 (async_event_handler_list): New.
825 (create_event): New.
826 (create_file_event): Use it.
827 (process_event): Adjust.
828 (gdb_do_one_event): Poll from the event sources in round-robin
829 fashion across calls. Be sure to consult all sources before
830 blocking.
831 (handle_file_event): Take an event_data instead of an integer.
832 Adjust.
833 (gdb_wait_for_event): Add `block' argument. Handle it.
834 (mark_async_signal_handler): Remove unneeded cast.
835 (invoke_async_signal_handler): Rename to ...
836 (invoke_async_signal_handlres): ... this. Return true if any was
837 handled.
838 (check_async_ready): Delete
839 (create_async_event_handler): New.
840 (mark_async_event_handler): New.
841 (struct async_event_handler_data): New.
842 (invoke_async_event_handler): New.
843 (check_async_event_handlers): New.
844 (delete_async_event_handler): New.
845 (handle_timer_event): Adjust.
846
6dd47d34
DE
8472008-10-24 Doug Evans <dje@google.com>
848
849 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
850 is NULL. Simplify obs == NULL case.
851
fff08868
HZ
8522008-10-24 Hui Zhu <teawater@gmail.com>
853 Pedro Alves <pedro@codesourcery.com>
854
855 * infrun.c (can_use_displaced_stepping): Change type to
856 const char pointer.
857 (can_use_displaced_stepping_auto): New string.
858 (can_use_displaced_stepping_on): New string.
859 (can_use_displaced_stepping_off): New string.
860 (can_use_displaced_stepping_enum): New array.
861 (show_can_use_displaced_stepping): In auto mode, also show
862 the current effect of the option.
863 (use_displaced_stepping): Return non-zero if displaced
864 stepping is auto, and can be used with GDBARCH, and in
865 non-stop mode. Return non-zero if displaced stepping is on,
866 and can be used with GDBARCH. Return zero otherwise.
867 (_initialize_infrun): Make the "set displaced-stepping"
868 command an enum command. Change its class to class_run.
869 Place it in the top level set list. Extend help to describe
870 the auto mode.
871
252fbfc8
PA
8722008-10-23 Pedro Alves <pedro@codesourcery.com>
873
874 * defs.h: Mention ptid_is_pid.
875 * inferior.h (ptid_is_pid): Declare.
876 * gdbthread.h (struct thread_info) <stop_requested>: New field.
877 (set_stop_requested): Declare.
878 * infcmd.c (interrupt_target_1): Call set_stop_requested.
879 * infrun.c (clear_proceed_status): Clear stop_requested.
880 (infrun_thread_stop_requested_callback,
881 infrun_thread_stop_requested): New.
882 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
883 thread that had an explicit stop request, pretend we got a
884 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
885 request.
886 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
887 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
888 instead of mentioning signal 0.
889 (ptid_is_pid): New.
890 * thread.c (set_stop_requested): New.
891
892 * linux-nat.c (queued_waitpid): Rename to ...
893 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
894 (queued_waitpid): New, as wrapper to queued_waitpid_1.
895 (push_waitpid): Push the SIGTRAP to the local event queue, to the
896 kernel's.
897 (send_sigint_callback): Delete.
898 (linux_nat_stop_lwp): New.
899 (linux_nat_stop): Use it.
900
3c0ed299
PP
9012008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
902
903 * python/python-value (valpy_getitem): Fix heap corruption.
904
103fd00d
AR
9052008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
906
907 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
908 (procfs_create_inferior): Fetch list of threads.
909
3fdfcbf1
AR
9102008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
911
912 * nto-procfs.c (procfs_files_info): Fix a typo.
913 (procfs_create_inferior): Make attach_flag per-inferior.
914
997339e8
PP
9152008-10-23 Tom Tromey <tromey@redhat.com>
916
917 * python/python-value.c (value_to_value_object): Initialize
918 owned_by_gdb field.
919 (valpy_new): Likewise.
920
d6b67a5e
JK
9212008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
922 Joel Brobecker <brobecker@adacore.com>
923
924 * ada-tasks.c (task_states, long_task_states): Use constant N_()
925 initializer. Define the strings as const.
926 (short_task_info, info_task): Translate the strings above.
927
aadc346a
JB
9282008-10-22 Joel Brobecker <brobecker@adacore.com>
929
930 * NEWS: Add entry for new feature (Ada tasking support).
931
9322008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
933
934 * configure.ac: On alpha-osf, error out if enable_tui is set to
935 "yes", and set enable_tui to "no" if previously set to "auto".
936 Check for waddstr only if TUI support was requested. Move the
937 part of the configure script that updates various Makefile
938 variables up, together with the check for waddstr.
939 * configure: Regenerate.
940
4af88198
JB
9412008-10-22 Joel brobecker <brobecker@adacore.com>
942
943 * gdbtypes.c (copy_type): New function.
944 * gdbtypes.h (copy_type): Add declaration.
945 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
946 variable, then use it.
947
0ef643c8
JB
9482008-10-22 Joel Brobecker <brobecker@adacore.com>
949
950 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
951 (target_get_ada_task_ptid): New macro.
952 * target.c (default_get_ada_task_ptid): New function.
953 (update_current_target): Inherit field default_get_ada_task_ptid.
954 (update_current_target): Make default_get_ada_task_ptid the default
955 value for field to_get_ada_task_ptid.
956 * ada-lang.h (struct task_control_block): Delete. Never used.
957 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
958 Likewise.
959 (struct ada_task_info): New.
960 (ada_task_is_alive, ada_find_printable_frame)
961 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
962 declarations.
963 (ada_build_task_list): Update prototype.
964 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
965 * ada-lang.c (ada_find_printable_frame): Make non-static.
966 * ada-tasks.c: New file.
967 * Makefile.in (SFILES): Add ada-tasks.c.
968 (COMMON_OBS): Add ada-tasks.o.
969 * linux-thread-db.c (thread_db_find_thread_from_tid)
970 (thread_db_get_ada_task_ptid): New functions.
971 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
972
c209f847
TT
9732008-10-22 Tom Tromey <tromey@redhat.com>
974
975 PR gdb/2506:
976 * c-exp.y (string_exp): New production.
977 (exp): Use it.
978
5bc60cfb
JK
9792008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
982 removed before.
983
7f99b190
JB
9842008-10-20 Joel Brobecker <brobecker@adacore.com>
985
986 * NEWS: Add entry mentioning thread-support on Tru64
987
7a052092
JB
9882008-10-19 Joel Brobecker <brobecker@adacore.com>
989
990 * dec-thread.c: New file.
991 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
992 (NAT_CLIBS): Define.
993
40e12b06
HZ
9942008-10-19 Hui Zhu <teawater@gmail.com>
995
996 * infrun.c (handle_inferior_event): Set "stop_pc" when
997 TARGET_WAITKIND_NO_HISTORY.
998
f9176c46
PA
9992008-10-19 Pedro Alves <pedro@codesourcery.com>
1000
1001 * python/python-value.c (value_object_methods)
1002 (value_object_as_number, value_object_as_mapping): Move to bottom
1003 of file.
1004 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1005 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1006 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1007 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1008 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1009 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1010
4058b839
PA
10112008-10-18 Pedro Alves <pedro@codesourcery.com>
1012
1013 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1014 reverse.
1015
f42429a6
PA
10162008-10-17 Pedro Alves <pedro@codesourcery.com>
1017
1018 * infcmd.c (GO_USAGE): Delete.
1019 (go_command): Adjust.
1020
b2175913
MS
10212008-10-17 Michael Snyder <msnyder@vmware.com>
1022 Target interface for reverse debugging.
1023 * target.h (enum target_waitkind):
1024 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1025 (struct target_ops): New method to_can_execute_reverse.
1026 (target_can_execute_reverse): New macro.
1027 * target.c (update_current_target): Inherit to_can_execute_reverse.
1028
1029 Remote interface for reverse debugging.
1030 * remote.c (remote_can_execute_reverse): New target method.
1031 (remote_resume): Check for reverse exec direction, and send
1032 appropriate command to target.
1033 (remote_wait_as): Check target response for NO_HISTORY status.
1034 Also check for empty reply (target doesn't understand "bs" or "bc).
1035 (remote_vcont_resume): Jump out if attempting reverse execution.
1036
1037 Event handling interface for reverse debugging.
1038 * infrun.c (execution_direction): New state variable.
1039 (enum inferior_stop_reason): Add NO_HISTORY reason.
1040 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1041 Handle stepping over a function call in reverse.
1042 Handle stepping thru a line range in reverse.
1043 Handle setting a step-resume breakpoint in reverse.
1044 Handle stepping into a function in reverse.
1045 Handle stepping between line ranges in reverse.
1046 (print_stop_reason): Print reason for NO_HISTORY.
1047 (step_into_function): Rename to handle_step_into_function.
1048 (handle_step_into_function_backward): New function.
1049 (set_exec_direction_func, show_exec_direction_func): New funcs.
1050 (proceed): No need to singlestep over a breakpoint
1051 when resuming in reverse.
1052
1053 * inferior.h (enum exec_direction_kind): New enum.
1054 (execution_direction): Export new execution state variable.
1055
1056 * breakpoint.c (make_breakpoint_silent): New function.
1057 * breakpoint.h (make_breakpoint_silent): Export.
1058 * infcmd.c (finish_command): Check for reverse exec direction.
1059 (finish_backward): New function, handle finish cmd in reverse.
1060
1061 User interface for reverse execution.
1062 * Makefile.in (reverse.c): New file.
1063 * reverse.c: New file. User interface for reverse execution.
1064
153ccabd
PA
10652008-10-17 Pedro Alves <pedro@codesourcery.com>
1066
1067 * remote.c (record_currthread): Add inferior before child threads.
1068 (remote_threads_info): Check for exited threads. Mention
1069 notification order.
1070
ce78b96d
JB
10712008-10-16 Joel Brobecker <brobecker@adacore.com>
1072
1073 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1074 Delete bp_catch_fork and bp_catch_vfork.
1075 (struct breakpoint_ops): Add new methods "insert", "remove"
1076 and "breakpoint_hit".
1077 * breakpoint.c (create_fork_vfork_event_catchpoint)
1078 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1079 (insert_catchpoint): Remove handling of bp_catch_fork and
1080 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1081 catchpoints instead.
1082 (insert_bp_location, update_breakpoints_after_exec)
1083 (remove_breakpoint, bpstat_check_location, bpstat_what)
1084 (allocate_bp_location): Likewise.
1085 (print_it_typical, print_one_breakpoint_location, mention): Remove
1086 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1087 (ep_is_catchpoint, user_settable_breakpoint)
1088 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1089 (breakpoint_re_set_one, disable_command, enable_command):
1090 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1091 bp_catchpoint breakpoints.
1092 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1093 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1094 New functions.
1095 (catch_fork_breakpoint_ops): New static constant.
1096 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1097 (print_it_catch_vfork, print_one_catch_vfork)
1098 (print_mention_catch_vfork): New functions.
1099 (catch_vfork_breakpoint_ops): New static constant.
1100 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1101 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1102 to create the fork and vfork catchpoints.
1103 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1104 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1105 fields.
1106 (catch_exception_unhandled_breakpoint_ops): Likewise.
1107 (catch_assert_breakpoint_ops): Likewise.
1108
3c9c4b83
PA
11092008-10-16 Pedro Alves <pedro@codesourcery.com>
1110
1111 * remote.c (set_general_process): New.
1112 (remote_check_symbols): Use it.
1113
5c952c9b
PA
11142008-10-16 Pedro Alves <pedro@codesourcery.com>
1115
1116 * remote.c (push_remote_target): Delete.
1117 * target.h (push_remote_target): Delete declaration.
1118
ce5ce7ed
PA
11192008-10-15 Pedro Alves <pedro@codesourcery.com>
1120
1121 * remote.c (remote_close): Unregister remote_desc from the event
1122 loop. Always restore the SIGINT handler. Discard all inferiors
1123 here.
1124 (remote_detach_1, remote_disconnect): Don't unregister the file
1125 descriptor from the event loop here.
1126 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1127 of morning the current inferior.
1128 (remote_kill): Don't unregister the file descriptor from the event
1129 loop here.
1130 (remote_mourn_1): Don't discard inferiors here.
1131
1c5cfe86
PA
11322008-10-15 Pedro Alves <pedro@codesourcery.com>
1133
1134 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1135 locations list.
1136 (moribund_breakpoint_here_p): Record the moribund
1137 location in the moribund_locations vector.
1138 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1139 (displaced_step_fixup): Check if the breakpoint the thread was
1140 trying to step over has been removed since having been placed in
1141 the displaced stepping queue.
1142 (adjust_pc_after_break): In non-stop mode, check for a moribund
1143 breakpoint at the stop pc.
1144 (handle_inferior_event): Don't retire moribund breakpoints on
1145 TARGET_WAITKIND_IGNORE.
1146
11472008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
1148
1149 * infrun.c (displaced_step_prepare): Switch thread temporarily
1150 while we're here.
1151 (displaced_step_fixup): Make sure target_resume sees ptid as
1152 inferior_ptid. Add debug output.
1153
63c715c6
PA
11542008-10-14 Pedro Alves <pedro@codesourcery.com>
1155
1156 Remove dead code.
1157
1158 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1159 (print_one_breakpoint_location): Adjust.
1160 (breakpoint_clear_ignore_counts): Delete.
1161 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1162 declaration.
1163 * target.c (generic_mourn_inferior): Don't clear ignore
1164 counts (never reached).
1165
c764a876
DE
11662008-10-10 Doug Evans <dje@google.com>
1167
1168 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1169 for dwarf section offsets and sizes.
1170 (dwarf2_cu): Ditto.
1171 (dwarf2_per_cu_data): Ditto.
1172 (create_all_comp_units): Change offset to unsigned int.
1173 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1174 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1175
1176 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1177 All callers updated.
1178 (read_checked_initial_length_and_offset): New function.
1179 (read_offset_1): New function.
1180 (read_offset): Call it.
1181 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1182 instead of read_initial_length. Call read_offset_1 instead of
1183 read_offset.
1184
1185 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1186 All callers updated.
1187
1188 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1189 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1190 DW_AT_HP_block_index.
1191
5fe04517
PA
11922008-10-10 Pedro Alves <pedro@codesourcery.com>
1193
1194 * remote.c (remote_start_remote): Always tell the stub if we're in
1195 extended-remote.
1196
c8e38a49
PA
11972008-10-09 Pedro Alves <pedro@codesourcery.com>
1198
1199 * remote.c (remote_wait): Rename to...
1200 (remote_wait_as): ... this. Don't loop here. If the remote
1201 didn't stop, return TARGET_WAITKIND_IGNORE.
1202 (remote_wait): New, reimplemented on top of remote_wait_as.
1203
9ca12bbf
TS
12042008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1205
d11d9deb
TS
1206 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1207 is fixed upstream.
1208
20249808
TS
1209 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1210
9ca12bbf
TS
1211 * MAINTAINERS (Write After Approval): Add myself.
1212
0b62613e
PA
12132008-10-09 Pedro Alves <pedro@codesourcery.com>
1214
1215 Make it compile without warnings.
1216
1217 * procfs.c (create_procinfo): Initialize `parent'.
1218 (dead_procinfo): Pass a constant string as format to error.
1219 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1220 (procfs_find_LDT_entry): Adjust format string to long int
1221 ptid.tid.
1222 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1223 (procfs_xfer_memory): Adjust prototype.
1224 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1225 variable as printf_filtered format.
1226 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1227 * Makefile.in: Remove special rule.
1228
c8d104ad
PA
12292008-10-09 Pedro Alves <pedro@codesourcery.com>
1230 Daniel Jacobowitz <dan@codesourcery.com>
1231
1232 * remote.c (remote_open_1): Move acknowledging any pending ack,
1233 querying supported features, activating noack mode, finding the
1234 target description, enabling extended remote, and checking remote
1235 symbols from here ...
1236 (remote_start_remote): ... to here.
1237 (remote_open_1): Don't pop the target if it is already gone.
1238 * target.c (unpush_target): Check for the dummy target.
1239
efdb2a86
PA
12402008-10-09 Pedro Alves <pedro@codesourcery.com>
1241
1242 * ser-mingw.c: Include "command.h".
1243 (pipe_windows_open): Declare locals at the beginning of the scope.
1244
e24a49d8
PA
12452008-10-08 Pedro Alves <pedro@codesourcery.com>
1246
1247 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1248 field.
1249 (remote_open_1): Clear waiting_for_stop_reply.
1250 (remote_resume): Set waiting_for_stop_reply.
1251 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1252 (putpkt_binary): If we're in async mode and waiting for a stop
1253 reply, bail out with an error.
1254 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1255
3084dd77
PA
12562008-10-08 Pedro Alves <pedro@codesourcery.com>
1257
1258 * remote.c (remote_get_thread_info): If the remote doesn't support
1259 the query, bail out.
1260
d6a843b5
JK
12612008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1262
1263 Convert static_kind into loc_kind enum.
1264 * gdbtypes.h (enum field_loc_kind): New.
1265 (union field_location): New field dwarf_block.
1266 (struct field): Rename static_kind as loc_kind.
1267 (FIELD_STATIC_KIND): Rename to ...
1268 (FIELD_LOC_KIND): ... here.
1269 (TYPE_FIELD_STATIC_KIND): Rename to ...
1270 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1271 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1272 (TYPE_FIELD_STATIC): Remove.
1273 (TYPE_FIELD_BITPOS): Reformat.
1274 (SET_FIELD_BITPOS): New.
1275 (FIELD_PHYSADDR): Rename to ...
1276 (FIELD_STATIC_PHYSADDR): ... here.
1277 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1278 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1279 (FIELD_PHYSNAME): Rename to ...
1280 (FIELD_STATIC_PHYSNAME): ... here.
1281 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1282 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1283 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1284 (field_is_static): New declaration.
1285 * gdbtypes.c (field_is_static): New function.
1286 (copy_type_recursive): Update throughout.
1287 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1288 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1289 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1290
c289427b
PA
12912008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1292 Pedro Alves <pedro@codesourcery.com>
1293
1294 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1295 avoid a name collision.
1296 * gnu-nat.c: Likewise.
1297 * i386gnu-nat.c: Likewise.
1298
8c1c099f
JB
12992008-10-07 Joel Brobecker <brobecker@adacore.com>
1300
1301 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1302 of arguments that are references.
1303
8a498d38
DE
13042008-10-06 Doug Evans <dje@google.com>
1305
d97bc12b
DE
1306 * dwarf2read.c (dwarf2_die_debug): New static global.
1307 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1308 Print to specified file, indented by the specified amount.
1309 (dump_die_for_error): New fn. Point all existing callers of
1310 dump_die here.
1311 (dump_die_die_1,dump_die): New fns, replaces ...
1312 (dump_die_list): ... deleted.
1313 (read_die_and_children_1): Old contents of read_die_and_children
1314 moved here.
1315 (read_die_and_children): Rewrite.
1316 (read_die_and_siblings): Call read_die_and_children_1 instead of
1317 read_die_and_children.
1318 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1319 * gdbinit.in (pdie): New macro.
1320
45452591
DE
1321 * dwarf2read.c (offset_in_cu_p): New function.
1322 (find_partial_die,follow_die_ref): Use it.
1323
8a498d38
DE
1324 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1325 (maintenance_info_psymtabs): Ditto.
1326
360551e4 13272008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
1328
1329 * infrun.c (handle_inferior_event): Fix typo in comment.
1330
c1828f25
VP
13312008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1332
1333 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1334
5ef73790
PP
13352008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1336
1337 PR gdb/2384:
1338 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1339 different lifetimes.
1340
352efb28 13412008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
1342
1343 * solib-osf.c: Include "solib.h".
1344
d1a41061
PP
13452008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1346
1347 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1348 and check for out-of-memory condition.
1349 * exec.c (exec_file_command): Call it.
1350 * infrun.c (handle_command, xdb_handle_command): Likewise.
1351 * interps.c (interpreter_exec_cmd): Likewise.
1352 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1353 * procfs.c (info_proc_cmd): Likewise.
1354 * remote-mips.c (common_open): Likewise.
1355 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1356 (gdbsim_open): Likewise.
1357 * remote.c (extended_remote_run, remote_put_command)
1358 (remote_get_command, remote_delete_command): Likewise.
1359 * ser-mingw.c (pipe_windows_open): Likesise.
1360 * source.c (add_path, show_substitute_path_command)
1361 (unset_substitute_path_command, set_substitute_path_command):
1362 Likewise.
1363 * stack.c (backtrace_command): Likewise.
1364 * symfile.c (symbol_file_command, generic_load)
1365 (add_symbol_file_command): Likesise.
1366 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1367 (maintenance_print_msymbols): Likewise.
1368
d78df370
JK
13692008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1370
1371 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1372 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1373 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1374 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1375 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1376 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1377 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1378 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1379 (f77_get_upperbound): ... this function handling now only
1380 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1381 (f77_get_dynamic_lowerbound): Replace with ...
1382 (f77_get_lowerbound): ... this function handling now only
1383 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1384 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1385 Update their callers.
1386 * eval.c (evaluate_subexp_standard): Update their callers.
1387 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1388 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1389 prototypes.
1390 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1391 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1392 the lower_bound_was_default variable. Update the
1393 f77_get_dynamic_upperbound, f77_get_upperbound and
1394 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1395 * gdbtypes.c (print_bound_type): Remove the function.
1396 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1397 LOWER_BOUND_TYPE.
1398 * gdbtypes.h (enum array_bound_type): Remove.
1399 (struct main_type): Remove the fields upper_bound_type and
1400 lower_bound_type. Comment the new overload of the field artificial.
1401 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1402 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1403 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1404 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1405
40debb5a
TT
14062008-10-02 Tom Tromey <tromey@redhat.com>
1407
1408 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1409
db5f024e
DJ
14102008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1411
1412 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1413 comments.
1414 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1415 (mips_linux_init_abi): Do not override skip_trampoline_code.
1416 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1417 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1418 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1419 (mips_skip_mips16_trampoline_code): Rename from
1420 mips_skip_trampoline_code.
1421 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1422 * infrun.c (handle_inferior_event): Do not pass zero to
1423 in_solib_dynsym_resolve_code.
1424
9f9d052e
PM
14252008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1426 Pedro Alves <pedro@codesourcery.com>
1427
1428 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1429
1430
bd2e94ce
TT
14312008-10-01 Tom Tromey <tromey@redhat.com>
1432
1433 * symtab.c (search_symbols): Update.
1434 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1435
8b41ec65
TT
14362008-10-01 Tom Tromey <tromey@redhat.com>
1437
1438 * symfile.c (syms_from_objfile): Update.
1439 (reread_symbols): Update.
1440 * objfiles.h (OBJF_SYMS): Remove.
1441 (OBJF_REORDERED): Renumber.
1442 (OBJF_SHARED): Likewise.
1443 (OBJF_READNOW): Likewise.
1444 (OBJF_USERLOADED): Likewise.
1445
712f90be
TT
14462008-10-01 Tom Tromey <tromey@redhat.com>
1447
1448 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1449 (find_pc_sect_symtab): Likewise.
1450 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1451 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1452 MSYMBOL_TYPE, not SYMBOL_TYPE.
1453 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1454 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1455 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1456 MSYMBOL_TYPE.
1457 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1458
b887350f
TT
14592008-10-01 Tom Tromey <tromey@redhat.com>
1460
1461 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1462 (scan_xcoff_symtab): Update.
1463 * mdebugread.c (record_minimal_symbol): Update.
1464 (parse_partial_symbols): Update.
1465 * elfread.c (record_minimal_symbol): Update.
1466 * dbxread.c (record_minimal_symbol): Update.
1467 * coffread.c (record_minimal_symbol): Update.
1468 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1469 (sh64_elf_make_msymbol_special): Update.
1470 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1471 MSYMBOL_TARGET_FLAG_1.
1472 (mips_elf_make_msymbol_special): Likewise.
1473 (msymbol_is_special): Likewise.
1474 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1475 (install_minimal_symbols): Likewise.
1476 (prim_record_minimal_symbol): Update.
1477 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1478 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1479 (MSYMBOL_SET_RTI): Redefine.
1480 (MSYMBOL_IS_RTC): Redefine.
1481 (MSYMBOL_IS_RTI): Redefine.
1482 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1483 (MSYMBOL_IS_SPECIAL): Redefine.
1484 * symtab.h (struct minimal_symbol) <info>: Remove.
1485 <target_flag_1, target_flag_2>: New fields.
1486 (MSYMBOL_INFO): Remove.
1487 (MSYMBOL_TARGET_FLAG_1): New macro.
1488 (MSYMBOL_TARGET_FLAG_2): Likewise.
1489 (prim_record_minimal_symbol_and_info): Update.
1490
d35e5795
JB
14912008-09-30 Joel Brobecker <brobecker@adacore.com>
1492
1493 * ada-lang.c (is_digits_suffix): Delete unused function.
1494
d37209fd
JB
14952008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1496
1497 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1498 moduli >= 2**31.
1499
15002008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
1501
1502 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1503 variant branch.
1504 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1505 supposed to be null. Fixes debugger segfaults.
1506 (is_unchecked_variant): New function.
1507 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1508 untouched.
1509 (ada_template_to_fixed_record_type_1): Fix comment.
1510
3d0b0fa3
JB
15112008-09-30 Joel Brobecker <brobecker@adacore.com>
1512
1513 * ada-lang.c (standard_exc): New static constant.
1514 (ada_exception_catchpoint_cond_string): Add special handling
1515 for the predefined exceptions.
1516
cdc7bb92
JB
15172008-09-30 Joel Brobecker <brobecker@adacore.com>
1518
1519 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1520 the code accordingly.
1521
6b0d7253
JB
15222008-09-30 Joel Brobecker <brobecker@adacore.com>
1523
1524 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1525 treatment of expect_type. Return the correct type when dereferencing
1526 an integer.
1527
9a044a89
TT
15282008-09-30 Tom Tromey <tromey@redhat.com>
1529
1530 PR gdb/2484:
1531 * symtab.c (struct add_macro_name_data): New struct.
1532 (add_macro_name): New function.
1533 (default_make_symbol_completion_list): Complete macro names.
1534 * scm-lang.c (scm_language_defn): Update.
1535 * p-lang.c (pascal_language_defn): Update.
1536 * objc-lang.c (objc_language_defn): Update.
1537 * macrotab.h (macro_callback_fn): Add user_data argument.
1538 (macro_for_each): Likewise.
1539 (macro_for_each_in_scope): Declare.
1540 * macrotab.c: (struct macro_for_each_data): New struct.
1541 (foreach_macro): Use it.
1542 (macro_for_each): Likewise.
1543 (foreach_macro_in_scope): New function.
1544 (macro_for_each_in_scope): Likewise.
1545 * macrocmd.c (print_one_macro): Add argument.
1546 (macro_list_command): Pass NULL to macro_for_each.
1547 * m2-lang.c (m2_language_defn): Update.
1548 * language.h (struct language_defn) <la_macro_expansion>: New
1549 field.
1550 (macro_expansion): New enum.
1551 * language.c (unknown_language_defn): Update. Fix order of
1552 initializers.
1553 (auto_language_defn): Likewise.
1554 (local_language_defn): Update.
1555 * jv-lang.c (java_language_defn): Update.
1556 * f-lang.c (f_language_defn): Update.
1557 * c-lang.c (c_language_defn): Update.
1558 (cplus_language_defn): Likewise.
1559 (asm_language_defn): Likewise.
1560 (minimal_language_defn): Likewise.
1561 * ada-lang.c (ada_language_defn): Update.
1562
b084d499
JB
15632008-09-30 Joel Brobecker <brobecker@adacore.com>
1564
1565 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1566 (get_scope_pc_bounds): Use it.
1567
2fae03e8
TT
15682008-09-27 Tom Tromey <tromey@redhat.com>
1569
1570 * NEWS: Update.
1571 * macrocmd.c (extract_identifier): Add is_parameter argument.
1572 (macro_define_command): Update.
1573 (macro_undef_command): Likewise.
1574 * macroexp.c (stringify): New function.
1575 (find_parameter): Likewise.
1576 (gather_arguments): Add nargs argument. Handle varargs.
1577 (substitute_args): Add is_varargs and va_arg_name arguments.
1578 Handle varargs, splicing, stringification. Use find_parameter.
1579 (expand): Handle varargs.
1580
5c6ce71d
TT
15812008-09-27 Tom Tromey <tromey@redhat.com>
1582
1583 * scm-lang.c (scm_language_defn): Update.
1584 * p-typeprint.c (pascal_print_typedef): New function.
1585 * p-lang.h: (pascal_print_typedef): Declare.
1586 * p-lang.c (pascal_language_defn): Update.
1587 * objc-lang.c (objc_language_defn): Update.
1588 * m2-typeprint.c (m2_print_typedef): New function.
1589 * m2-lang.h (m2_print_typedef): Declare.
1590 * m2-lang.c (m2_language_defn): Update.
1591 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1592 Remove.
1593 (struct language_defn) <la_print_typedef>: New field.
1594 (default_print_typedef): Declare.
1595 (LA_PRINT_TYPEDEF): New define.
1596 * language.c (unknown_language_defn): Update.
1597 (auto_language_defn): Update.
1598 (local_language_defn): Update.
1599 * jv-lang.c (java_language_defn): Update.
1600 * f-lang.c (f_language_defn): Update.
1601 * c-typeprint.c (c_print_typedef): New function.
1602 * c-lang.h (c_print_typedef): Declare.
1603 * c-lang.c (c_language_defn): Update.
1604 (cplus_language_defn): Update.
1605 (asm_language_defn): Update.
1606 (minimal_language_defn): Update.
1607 * ada-lang.c (ada_language_defn): Update.
1608 * typeprint.c (default_print_typedef): New function.
1609
09be204e
TT
16102008-09-27 Tom Tromey <tromey@redhat.com>
1611
1612 * jv-exp.y (insert_exp): Define using ISO syntax.
1613 (copy_exp): Likewise.
1614 (push_expression_name): Likewise.
1615 (push_fieldnames): Likewise.
1616 (java_type_from_name): Likewise.
1617 (yyerror): Likewise.
1618 (yylex): Likewise.
1619 (parse_number): Likewise.
1620
3cd9d164
JB
16212008-09-26 Joel Brobecker <brobecker@adacore.com>
1622
1623 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
1624
e3168615
JB
16252008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
1626
1627 * stack.c (print_frame_args): Fix typos in comments.
1628
8b8655b3
TJB
16292008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
1630
1631 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
1632
6fbd21a1
VP
16332008-09-24 Vladimir Prus <vladimir@codesourcery.com>
1634
1635 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
1636
45ef8ce0
AS
16372008-09-24 Andreas Schwab <schwab@suse.de>
1638
1639 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 1640 account. Avoid excessive function calls.
45ef8ce0 1641
9cbfa09e
DE
16422008-09-23 Doug Evans <dje@google.com>
1643
07128da0
DE
1644 * dcache.c (state_chars): New static global.
1645 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1646 All uses updated.
1647 (dcache_info): Print cache state as mnemonically useful letters instead
1648 of magic numbers.
1649
9cbfa09e
DE
1650 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1651
d4c0a7a0
TT
16522008-09-22 Tom Tromey <tromey@redhat.com>
1653
1654 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1655 printf_filtered.
1656
6ca15a4b
PA
16572008-09-22 Pedro Alves <pedro@codesourcery.com>
1658
1659 * infrun.c (follow_exec): Don't do a generic mourn. Instead
1660 inline the required bits.
1661 * breakpoint.h (enum inf_context): Add inf_execd.
1662
795e548f
PA
16632008-09-22 Pedro Alves <pedro@codesourcery.com>
1664
1665 * infrun.c (handle_inferior_event): In the follow exec case,
1666 context-switch before doing anything else.
1667
54a012c9
PA
16682008-09-22 Pedro Alves <pedro@codesourcery.com>
1669
1670 * top.c (any_thread_of, kill_or_detach): New functions.
1671 (quit_target): Iterate over all inferiors, killing or detaching
1672 accordingly.
1673
181e7f93
PA
16742008-09-22 Pedro Alves <pedro@codesourcery.com>
1675
1676 Remove the attach_flag global, and make it per-inferior.
1677
1678 * inferior.h (attach_flag): Delete.
1679 (inferior_process): Declare.
1680 * solib.c (update_solib_list): Adjust.
1681 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
1682 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1683 (inf_ptrace_files_info): Get it from the current inferior.
1684 * inf-ttrace.c (inf_ttrace_attach): Adjust.
1685 (inf_ttrace_files_info): Get it from the current
1686 inferior.
1687 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
1688 (clear_sigint_trap): Get it from the current process.
1689 * remote.c (extended_remote_attach_1)
1690 (extended_remote_create_inferior_1): Adjust.
1691 * top.c (quit_confirm, quit_target): Get it from the current inferior.
1692 * procfs.c (do_detach): Adjust.
1693 (procfs_wait): Get it from the event inferior.
1694 (procfs_files_info): Get it from the current inferior.
1695 * nto-procfs.c (procfs_files_info): Likewise.
1696 (procfs_attach): Adjust. Set the attach_flag here.
1697 (do_attach): Don't set it here.
1698 (procfs_detach): Don't clear it.
1699 (procfs_mourn_inferior): Don't clear it.
1700 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1701 * target.c (attach_flag): Delete.
1702 (generic_mourn_inferior): Don't clear it.
1703 * win32-nat.c (get_win32_debug_event): Get it from the event
1704 process.
1705 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
1706 in the inferior accordingly.
1707 (win32_attach): Don't set the attach_flag here. Pass 1 to
1708 do_intial_win32_stuff.
1709 (win32_files_info): Get it from the current inferior.
1710 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
1711 do_intial_win32_stuff.
1712
d6b48e9c
PA
17132008-09-22 Pedro Alves <pedro@codesourcery.com>
1714
1715 Make the stop_soon global be per-inferior instead.
1716
1717 * infcmd.c (attach_command_post_wait): Adjust.
1718 (attach_command): Likewise.
1719
1720 * inferior.h (stop_soon): Delete.
1721 (struct inferior): Add stop_soon member.
1722
1723 * infrun.c (stop_soon): Delete.
1724 (clear_proceed_status, start_remote)
1725 (fetch_inferior_event, handle_inferior_event): Adjust.
1726 (signal_stop_state): Don't check stop_soon here. Check in callers
1727 instead.
1728 (save_inferior_status, restore_inferior_status): Adjust.
1729
1730 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
1731 signals to common code if starting up the inferior.
1732
1733 * inferior.h (struct inferior_info): Added stop_soon member.
1734 * inferior.c (add_inferior) Clear stop_soon.
1735
1736 * mips-tdep.c (heuristic_proc_start): Adjust.
1737 * nto-procfs.c (procfs_create_inferior): Adjust.
1738 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1739 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1740 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1741 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1742
1743 * win32-nat.c (do_initial_win32_stuff): Adjust.
1744
1745 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
1746
82f73884
PA
17472008-09-22 Pedro Alves <pedro@codesourcery.com>
1748
1749 Implement remote multi-process extensions.
1750
1751 * remote.c (struct remote_state): Add extended and
1752 multi_process_aware fields.
1753 (remote_multi_process_p): New.
1754 (PACKET_vKill): New.
1755 (record_currthread): Use thread_change_ptid. Notice new
1756 inferiors.
1757 (set_thread, remote_thread_alive): Use write_ptid.
1758 (write_ptid, read_ptid): New.
1759 (remote_current_thread, remote_threads_extra_info): Use them.
1760 (remote_threads_info): Likewise. Detect new inferiors.
1761 (remote_start_remote): Add inferior to inferior list.
1762 (remote_multi_process_feature): New.
1763 (remote_protocol_features): Add "multiprocess" feature.
1764 (remote_query_supported): Pass "multiprocess+" as supported
1765 features.
1766 (remote_open_1): Clear multi_process_aware. Set extended
1767 accordingly.
1768 (remote_detach_1): Detach current process. Use extended packet
1769 format for extended-remote multi-process. Detach process from the
1770 inferior list. Only mourn after printing output.
1771 (extended_remote_attach_1): Add process to the inferior list.
1772 (remote_vcont_resume): Use write_ptid to pass the thread ids.
1773 (remote_wait): Use read_ptid. Implement the extended
1774 multi-process extension format of the 'W' and 'X' reply packets.
1775 Remove exited inferiors from inferior list.
1776 (remote_xfer_memory): Set general thread.
1777 (remote_vkill): New.
1778 (extended_remote_kill): New.
1779 (remote_mourn_1): Discard all inferiors.
1780 (select_new_thread_callback): New.
1781 (extended_remote_mourn_1): If there are more processes to debug,
1782 switch to a thread in another process, and don't pop the target.
1783 (extended_remote_create_inferior_1): Add the new process to the
1784 inferior list.
1785 (remote_stopped_by_watchpoint): Indenting.
1786 (remote_xfer_partial): Set the general thread.
1787 (remote_pid_to_str): If the remote is multi-process aware, print
1788 the process id as well as the thread id.
1789 (remote_get_thread_local_address): Use write_ptid.
1790 (init_extended_remote_ops): Register extended_remote_kill.
1791 (_initialize_remote): Register new packets. Change
1792 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
1793 member to 42000.
1794
1795 * thread.c (thread_change_ptid): Also account for the inferior pid
1796 changing.
1797
1798 * inferior.h (discard_all_inferiors): Declare.
1799 * inferior.c (discard_all_inferiors): New.
1800
7f9f62ba
PA
18012008-09-22 Pedro Alves <pedro@codesourcery.com>
1802
1803 * gnu-nat.c (gnu_attach): Add process to inferiors table.
1804 (gnu_detach): Remove it.
1805 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
1806 table.
1807 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
1808 to inferior table accordingly.
1809 (inf_ptrace_attach): Add new process to inferior table.
1810 (inf_ptrace_detach): Remove it.
1811 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
1812 to inferior table accordingly.
1813 (inf_ttrace_attach): Add process to inferior table.
1814 (inf_ttrace_detach): Remove it.
1815 * linux-fork.c (init_fork_list): Delete any left over inferior.
1816 (linux_fork_mourn_inferior, detach_fork_command): Also delete
1817 processes from inferior list.
1818 * monitor.c (monitor_open): Add process to inferior list.
1819 (monitor_close): Remove it.
1820 * nto-procfs.c (procfs_attach): Add process to inferior list.
1821 Find threads after pushing the target.
1822 (procfs_detach): Remove process from inferior list.
1823 (procfs_create_inferior): Add process to inferior list.
1824 * procfs.c (procfs_detach): Remove process from inferior list.
1825 (do_attach): Add process to inferior list.
1826 * remote-sim.c (sim_create_inferior): Add process to inferior list.
1827 (gdbsim_close): Remove it.
1828 * target.c (generic_mourn_inferior): If inferior_ptid is not
1829 null_ptid, remove the corresponding inferior from inferior list.
1830 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
1831 (win32_detach): Remove it.
1832 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
1833 to inferior list accordingly.
1834 * fork-child.c (fork_inferior): Add process to inferior list.
1835 * corelow.c (CORELOW_PID): Define.
1836 (core_close): Remove core from inferior list.
1837 (core_open): Add it.
1838
b77209e0
PA
18392008-09-22 Pedro Alves <pedro@codesourcery.com>
1840
1841 * inferior.h: Forward declare struct ui_out.
1842 Forward declare struct private_inferior.
1843 (struct inferior): New.
1844 (init_inferior_list, add_inferior, add_inferior_silent)
1845 (delete_inferior, delete_inferior_silent, detach_inferior)
1846 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1847 (valid_inferior_id, find_inferior_pid): New functions.
1848 (inferior_callback_func): New typedef.
1849 (iterate_over_inferiors, print_inferior, have_inferiors)
1850 (current_inferior): New functions.
1851 * inferior.c: New file.
1852
1853 * Makefile.in (SFILES): Add inferior.c.
1854 (COMMON_OBS): Add inferior.o.
1855
d8c3d48d
JL
18562008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1857
1858 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1859 instead of determining symbol and line info directly.
1860 * MAINTAINERS: Update my email address.
1861
d54be744
DJ
18622008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1863
1864 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1865 at the same address as a prologue marker. Do not skip an entire
1866 function.
1867
26fae1d6
AS
18682008-09-22 Andrew Stubbs <ams@codesourcery.com>
1869
1870 * frame.c (get_frame_register_bytes): Comment improvments.
1871
1ad15515
PA
18722008-09-22 Pedro Alves <pedro@codesourcery.com>
1873
1874 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1875 all-stop mode.
1876
14fc49fb
AS
18772008-09-19 Andrew Stubbs <ams@codesourcery.com>
1878
1879 * MAINTAINERS: Update my email address.
1880
3f27f2a4
AS
18812008-09-19 Andrew Stubbs <ams@codesourcery.com>
1882
1883 * frame.c (get_frame_register_bytes): Detect bad debug info.
1884
88ed393a
JK
18852008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
1888 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
1889 initialization ...
1890 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
1891 ...
1892 (handle_inferior_event): ... here after the add_thread call together
1893 with the local adjust_pc_after_break and reinit_frame_cache calls.
1894
d832cb68
DD
18952008-09-16 David Daney <ddaney@avtrex.com>
1896
1897 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
1898 all hardware bpstats.
1899
b1e40a6f
JB
19002008-09-16 Joel Brobecker <brobecker@adacore.com>
1901
1902 * gstdint.h: Delete.
1903
50a834af
MK
19042008-09-15 Mark Kettenis <kettenis@gnu.org>
1905
1906 * infcall.c (generic_push_dummy_code): Remove.
1907 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
1908
9d25dd43
DE
19092008-09-15 Doug Evans <dje@google.com>
1910
1911 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
1912 (struct attribute): Ditto.
1913
85c83e99
DA
19142008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1915
326e541f
DA
1916 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
1917 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
1918
85c83e99
DA
1919 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
1920 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
1921 Correct arguments and improve comments.
1922 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
1923 disabled code.
1924 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
1925 point DBX register, change error to warning, and improve comments.
1926
76815b17
DE
19272008-09-14 Doug Evans <dje@google.com>
1928
1929 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
1930
51e753cf
DA
19312008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1932
1933 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1934
06e476f5
JB
19352008-09-13 Joel Brobecker <brobecker@adacore.com>
1936
1937 * defs.h (GCC_GENERATED_STDINT_H): Define.
1938
6c761d9c
TT
19392008-09-13 Tom Tromey <tromey@redhat.com>
1940
1941 * varobj.c (varobj_set_display_format): Use xfree.
1942 * tracepoint.c (stringify_collection_list): Use xfree.
1943 * remote-fileio.c (remote_fileio_reset): Use xfree.
1944 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
1945 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
1946 asprintf.
1947 * cp-support.c (mangled_name_to_comp): Use xfree.
1948
339c13b6
JB
19492008-09-13 Joel Brobecker <brobecker@adacore.com>
1950
1951 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
1952 the associated complete symbol is also in the list.
1953 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
1954 extracted out from ada_lookup_symbol_list.
1955 (ada_lookup_symbol_list): Use them. Remove the search through
1956 the minimal symbols.
1957
bc30ff58
JB
19582008-09-13 Joel Brobecker <brobecker@adacore.com>
1959
1960 * dwarf2read.c (add_partial_subprogram): New procedure.
1961 (scan_partial_symbols): Use it.
1962 (load_partial_dies): Read in children of subprogram and lexical
1963 blocks for Ada compilation units.
1964
bb01da77
TT
19652008-09-13 Tom Tromey <tromey@redhat.com>
1966
1967 * symfile.c (build_id_verify): Free 'found'.
1968 (find_separate_debug_file): Use xfree, not free.
1969
d00adf39
DE
19702008-09-12 Doug Evans <dje@google.com>
1971
00630ca8
DE
1972 * corefile.c (write_memory): Remove unnecessary copying.
1973
5d6fa950
DE
1974 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
1975 order of _initialize_* fns.
1976
d00adf39
DE
1977 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
1978 first_die_offset. All uses updated.
1979 Delete unused members cu_head_ptr, next.
1980 Move members base_known, base_address to ...
1981 (dwarf2_cu) ... here. All uses updated.
1982
3d0bb823
PA
19832008-09-12 Pedro Alves <pedro@codesourcery.com>
1984
1985 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
1986 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
1987
3c35e65b
UW
19882008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1989
1990 * fork-child.c (startup_inferior): Use target_wait and target_resume
1991 directly instead of calling wait_for_inferior / resume.
1992
1993 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
1994 or init_wait_for_inferior.
1995 (run_command_1): Call init_wait_for_inferior.
1996
4cca3ac9
UW
19972008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
1998
1999 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2000 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2001 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2002 builtin_type_unsigned_char, builtin_type_unsigned_short,
2003 builtin_type_unsigned_int, builtin_type_unsigned_long,
2004 builtin_type_float, builtin_type_double, builtin_type_long_double,
2005 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2006 builtin_type_bool, builtin_type_long_long,
2007 builtin_type_unsigned_long_long): Remove macros.
2008
2009 (builtin_type_f_character, builtin_type_f_integer,
2010 builtin_type_f_integer_s2, builtin_type_f_logical,
2011 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2012 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2013 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2014 builtin_type_f_complex_s32): Likewise.
2015
2016 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2017 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2018
2019 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2020 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2021
2022 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2023 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2024
b6da22b0
UW
20252008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2026
2027 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2028 target_gdbarch instead of builtin_type_void_data_ptr.
2029 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2030 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2031 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2032 open_symbol_file_object): Likewise.
2033 * nto-tdep.c (LM_ADDR): Likewise.
2034
ff7da468
UW
20352008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2036
2037 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2038 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2039 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2040
4e906f53
UW
20412008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2042
2043 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2044 and its associated types to perform pointer conversion.
2045 (procfs_can_use_hw_breakpoint): Likewise.
2046 (procfs_auxv_parse): Remove unused variable.
2047
ffe5a37e
UW
20482008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2049
2050 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2051 instead of builtin_type_void_data_ptr.
2052 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2053
b806fb9a
UW
20542008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2055
2056 * expprint.c (print_subexp_standard): Compare against builtin type
2057 associated with exp->gdbarch instead of builtin_type_char.
2058
2059 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2060 extract values of arbitrary logical type. Handle arbitrary
2061 complex types.
2062
2063 * printcmd.c (float_type_from_length): New function.
2064 (print_scalar_formatted, printf_command): Use it.
2065
3e3b026f
UW
20662008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2067
2068 * valops.c: Include "objfiles.h" and "symtab.h".
2069 (find_function_in_inferior): New argument OBJF_P. Use it to return
2070 objfile where function is defined. Use per-objfile arch types
2071 instead of builtin_type_ to define default return type.
2072
2073 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2074 architecture to define inferior call argument types.
2075 * gcore.c (derive_heap_segment): Likewise.
2076 * objc-lang.c (value_nsstring): Likewise.
2077 * scm-lang.c (scm_lookup_name): Likewise.
2078 * scm-valprint.c (scm_inferior_print): Likewise.
2079 * valops.c (value_allocate_space_in_inferior): Likewise.
2080
2081 * eval.c (evaluate_subexp_standard): Update calls.
2082 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2083
2084 * linux-fork.c: Include "objfiles.h".
2085 * scm-lang.c: Include "objfiles.h".
2086 * scm-valprint.c: Include "objfiles.h".
2087
f8dcfc0a
UW
20882008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2089
2090 * gdbarch.sh (name_of_malloc): Remove.
2091 * gdbarch.c, gdbarch.h: Re-generate.
2092 * valops.c (value_allocate_space_in_inferior): Do not call
2093 gdbarch_name_of_malloc.
2094
c56324e0
UW
20952008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2096
2097 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2098 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2099 (value_bit_index): Use extract_unsigned_integer
2100 instead of unpack_long to read single byte.
2101
7788af6d
UW
21022008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2103
2104 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2105 associates types instead of builtin_type_ macros.
2106 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2107 (call_function_by_hand): Use per-architecture "int" type as
2108 fall-back if find_function_addr returns NULL VALUE_TYPE.
2109 Update call to value_arg_coerce.
2110
ad4820ab
UW
21112008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2112
2113 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2114 (cplus_make_method_ptr): Add TYPE parameter.
2115 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2116 on to current_cp_abi.method_ptr_size callback.
2117 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2118 current_cp_abi.make_method_ptr callback.
2119
2120 * gdbtypes.c (lookup_methodptr_type): Pass target type
2121 argument to cplus_method_ptr_size.
2122 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2123 (value_struct_elt_for_reference): Likewise.
2124
2125 * gnu-v3-abi.c (get_class_arch): New function.
2126 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2127 instead of current_gdbarch. Update all callers.
2128 (gnuv3_get_vtable): Likewise.
2129 (gnuv3_get_virtual_fn): Likewise.
2130 (gnuv3_decode_method_ptr): Likewise.
2131 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2132 Use it instead of current_gdbarch.
2133 (gnuv3_virtual_fn_field): Likewise.
2134 (gnuv3_baseclass_offset): Likewise.
2135 (gnuv3_print_method_ptr): Likewise.
2136 (gnuv3_method_ptr_to_value): Likewise.
2137 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2138 class architecture. Use architecture types instead of builtin types.
2139 (gnuv3_make_method_ptr): Likewise.
2140
2141 * cp-valprint.c (cp_print_class_member): Expect pointer type
2142 instead of class type. Use its length when extracting value.
2143 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2144
5ed92fa8
UW
21452008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2146
2147 * stack.c (return_command): Use frame architecture to determine
2148 default integer return type.
2149
2150 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2151 to determine pointer types.
2152 (f77_get_dynamic_upperbound): Likewise.
2153
2154 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2155 (resolve_msgsend): Use architecture of current frame to determine
2156 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2157 (resolve_msgsend_stret, resolve_msgsend_super,
2158 resolve_msgsend_super_stret): Likewise.
2159
0dfff4cb
UW
21602008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2161
2162 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2163 instead of builtin_type_ macros.
2164 * amd64-tdep.c (amd64_register_type): Likewise.
2165 (amd64_get_longjmp_target): Likewise.
2166 * arm-tdep.c (arm_register_type): Likewise.
2167 * avr-tdep.c (avr_register_type): Likewise.
2168 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2169 * frv-tdep.c (frv_register_type): Likewise.
2170 * h8300-tdep.c (h8300_register_type): Likewise.
2171 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2172 hppa_skip_trampoline_code): Likewise.
2173 * i386-tdep.c (i386_register_type): Likewise.
2174 (i386_unwind_pc, i386_sse_type): Likewise.
2175 * ia64-tdep.c (ia64_register_type): Likewise.
2176 * m32r-tdep.c (m32r_register_type): Likewise.
2177 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2178 * m88k-tdep.c (m88k_register_type): Likewise.
2179 * mep-tdep.c (mep_register_type): Likewise.
2180 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2181 * mn10300-tdep.c (mn10300_register_type): Likewise.
2182 * mt-tdep.c (mt_copro_register_type): Likewise.
2183 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2184 (rs6000_convert_register_p, rs6000_register_to_value,
2185 rs6000_value_to_register): Likewise.
2186 * s390-tdep.c (s390_register_type): Likewise.
2187 * sh64-tdep.c (sh64_register_type): Likewise.
2188 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2189 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2190 sh_sh4_build_float_register_type, sh_sh4_register_type,
2191 sh_default_register_type): Likewise.
2192 * sparc64-tdep.c (sparc64_register_type): Likewise.
2193 * sparc-tdep.c (sparc32_register_type): Likewise.
2194 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2195 * v850-tdep.c (v850_register_type): Likewise.
2196 * vax-tdep.c (vax_register_type): Likewise.
2197 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2198 xtensa_push_dummy_call): Likewise.
2199
2200 * std-regs.c (value_of_builtin_frame_fp_reg,
2201 value_of_builtin_frame_pc_reg): Likewise.
2202 * target-descriptions.c (tdesc_register_type): Likewise.
2203
6d84d3d8
UW
22042008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2205
2206 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2207 instead of builtin_type_int as default unspecified integral type.
2208 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2209 assign_component, to_fixed_range_type): Likewise.
2210 * ada-typeprint.c (print_range, print_range_bound,
2211 print_range_type_named): Likewise.
2212 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2213 * eval.c (evaluate_subexp_standard): Likewise.
2214 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2215 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2216 build_gdb_vtable_type): Likewise.
2217 * jv-lang.c (java_array_type): Likewise.
2218 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2219 * m2-valprint.c (m2_print_long_set): Likewise.
2220 * parse.c (follow_types): Likewise.
2221 * p-typeprint.c (pascal_type_print_base): Likewise.
2222 * valops.c (value_one, value_array, value_string,
2223 value_bitstring): Likewise.
2224 * value.c (allocate_repeat_value, value_from_string): Likewise.
2225 * varobj.c (c_describe_child): Likewise.
2226 * mt-tdep.c (mt_register_type): Likewise.
2227 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2228 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2229
180b9a0e
UW
22302008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2231
2232 * defs.h (struct gdbarch): Add forward declaration.
2233 (set_next_address): Add GDBARCH argument.
2234 * printcmd.c (set_next_address): Use it to find pointer type.
2235 * breakpoint.c (breakpoint_1): Update call.
2236 * source.c (line_info): Likewise.
2237 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2238
2239 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2240 types for internal variable values.
2241 * infrun.c (handle_inferior_event): Likewise.
2242 * source.c (forward_search_command, reverse_search_command): Likewise.
2243 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2244 set_tracepoint_num, set_traceframe_context): Likewise.
2245
b769d911
UW
22462008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2247
2248 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2249 and builtin_true_unsigned_char.
2250 (builtin_type_true_char): Remove macro, add extern declaration.
2251 (builtin_type_true_unsigned_char): Add extern declaration.
2252 * gdbtypes.c (builtin_type_true_char): New global variable.
2253 (builtin_type_true_unsigned_char): Likewise.
2254 (_initialize_gdbtypes): Initialize them.
2255 (gdbtypes_post_init): Do not initialize builtin_true_char
2256 and builtin_true_unsigned_char members of struct builtin_type.
2257
2258 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2259 use builtin_type_true_unsigned_char instead.
2260
2261 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2262 instead of builtin_type_char for internal string.
2263
fde6c819
UW
22642008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2265
2266 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2267 (builtin_type_f_void): Remove macro.
2268 * gdbtypes.c (builtin_type_void): New global variable.
2269 (_initialize_gdbtypes): Initialize it.
2270
2271 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2272 lookup_pointer_type or lookup_function_type on builtin_type_void.
2273 * printcmd.c (set_next_address): Likewise.
2274 * objc-lang.c (value_nsstring): Likewise.
2275 * mt-tdep.c (mt_copro_register_type): Likewise.
2276 * xtensa-tdep.c (xtensa_register_type): Likewise.
2277
2278 * symfile.c (syms_from_objfile): Remove special handling
2279 of builtin_type_void and builtin_type_char.
2280
d4dbb9c7
UW
22812008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2282
2283 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2284 of builtin_type_ macros when handling OP_OBJC_ operations.
2285 * objc-lang.c (print_object_command): Likewise.
2286
8ca1c40e
UW
22872008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2288
2289 * ada-valprint.c: Include "objfiles.h".
2290 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2291 a System.Address type is defined to retrieve the proper pointer type
2292 to use to print it.
2293
3cb382c9
UW
22942008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2295
2296 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2297 result type instead of builtin_type_int.
2298 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2299 (ada_value_subscript): Update call to value_pos_atr.
2300 (ada_value_ptr_subscript): Likewise.
2301 (ada_evaluate_subexp): Likewise.
2302
a53b7a21
UW
23032008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2304
2305 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2306 (cast_from_fixed_to_double): Rename to ...
2307 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2308 of builtin_type_double.
2309 (ada_value_cast): Use cast_from_fixed instead of casting result
2310 of cast_from_fixed_to_double.
2311 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2312
22fe0fbb
UW
23132008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2314
2315 * valops.c (value_ind): No longer allow dereferencing an
2316 integer type.
2317 * eval.c (evaluate_subexp_standard): Handle deferencing an
2318 integer type here.
2319 * ada-lang.c (ada_evaluate_subexp): Likewise.
2320
d8631d21
UW
23212008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2322
2323 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2324 a reference type, pass the reference type directly to unpack_pointer.
2325 * c-valprint.c (c_val_print): Likewise.
2326 * f-valprint.c (f_val_print): Likewise.
2327 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2328 * p-valprint.c (pascal_val_print): Likewise.
2329
cb18ec49
UW
23302008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2331
2332 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2333 to construct the EVAL_SKIP dummy return value.
2334 * ada-lang.c (ada_evaluate_subexp): Likewise.
2335 * jv-lang.c (evaluate_subexp_java): Likewise.
2336 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2337 * scm-lang.c (evaluate_exp): Likewise.
2338
0ab7ba45
UW
23392008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2340
2341 * value.h (coerce_enum, coerce_number): Remove prototypes.
2342 * value.c (coerce_enum, coerce_number): Remove.
2343 * valarith.c (value_x_binop): Do not call coerce_enum.
2344 (value_x_unop): Likewise.
2345 (value_logical_not): Call coerce_array instead of coerce_number.
2346
f7c79c41
UW
23472008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2348
2349 * ax-gdb.c: Include "language.h".
2350 (gen_frame_args_address): Add GDBARCH parameter; use it
2351 instead of current_gdbarch.
2352 (gen_frame_locals_address): Likewise.
2353 (gen_var_ref): Add GDBARCH parameter. Update calls to
2354 gen_frame_args_address and gen_frame_locals_address. Use
2355 pointer type from gdbarch.
2356 (gen_usual_unary): Add EXP parameter. Use integer type
2357 from exp->gdbarch.
2358 (gen_usual_arithmetic): Likewise.
2359 (gen_integral_promotions): Likewise.
2360 (gen_add, gen_sub): Remove.
2361 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2362 (gen_logical_not): Use passed-in boolean result type
2363 instead of builtin_type_int.
2364 (gen_complement): Do not call gen_usual_unary or
2365 gen_integral_promotions.
2366 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2367 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2368 Use builtin_type_int32 as internal range type.
2369 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2370 as result type. Update call to gen_expr.
2371 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2372 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2373 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2374 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2375 Use exp->gdbarch instead of current_gdbarch.
2376 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2377
f44316fa
UW
23782008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2379
2380 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2381 and unop_promote before calling value_binop et. al.
2382 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2383 and unop_promote before calling value_binop et. al.
2384
2385 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2386 (value_pos): Do not call unop_promote.
2387 (value_neg, value_complement): Likewise.
2388
4066e646
UW
23892008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2390
2391 * value.h (unop_promote, binop_promote): Add prototypes.
2392 * eval.c (unop_promote, binop_promote): New functions.
2393 * valarith.c (unop_result_type, binop_result_type): Remove.
2394 (value_binop): Call binop_promote or unop_promote.
2395 Inline remaining parts of binop_result_type. Remove special
2396 code to truncate integer values for unsigned operations.
2397 (value_pos): Call unop_promote. Inline remaining parts of
2398 unop_result_type.
2399 (value_neg, value_complement): Likewise.
2400
89eef114
UW
24012008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2402
2403 * value.h (value_add, value_sub): Remove.
2404 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2405 * valarith.c (value_add, value_sub): Remove.
2406 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2407 (find_size_for_pointer_math): Add assertion. Update comment.
2408 (value_binop): Update comment.
2409
2410 * eval.c (ptrmath_type_p): New function.
2411 (evaluate_subexp_standard): Replace value_add and value_sub
2412 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2413 Use builtin_type_uint8 instead of builtin_type_char to hold
2414 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2415 * valarith.c (value_subscript): Replace value_add by
2416 value_ptradd. Replace value_sub by value_binop.
2417 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2418 (ada_tag_name_2): Replace value_add by value_ptradd.
2419 (ada_evaluate_subexp): Replace value_add and value_sub by
2420 value_binop.
2421 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2422 by value_ptradd.
2423 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2424 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2425
98b90dd8
UW
24262008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2427
2428 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2429 the expression architecture instead of builtin_type_int as the
2430 sizeof return type.
2431
c806c55a
UW
24322008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2433
2434 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2435 a type parameter as expression element.
2436 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2437 type as expression element.
2438 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2439 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2440
fbb06eb1
UW
24412008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2442
2443 * language.h (struct language_arch_info): New members
2444 bool_type_default and bool_type_symbol.
2445 (lang_bool_type): Remove prototype.
2446 (LA_BOOL_TYPE): Remove macro.
2447 (language_bool_type): Add prototype.
2448 * language.c (lang_bool_type): Remove.
2449 (language_bool_type): New function.
2450
2451 * value.h (value_in): Change return value to int.
2452 * value.c (value_in): Return int instead of struct value *.
2453
2454 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2455 of using LA_BOOL_TYPE. Update call to value_in.
2456 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2457 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2458
2459 * language.c (unknown_language_arch_info): Set bool_type_default member
2460 of struct language_arch_info.
2461 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2462 bool_type_default members of struct language_arch_info.
2463 * c-lang.c (c_language_arch_info): Set bool_type_default member
2464 of struct language_arch_info.
2465 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2466 members of struct language_arch_info.
2467 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2468 bool_type_default members of struct language_arch_info.
2469 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2470 bool_type_default members of struct language_arch_info.
2471 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2472 bool_type_default members of struct language_arch_info.
2473 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2474 bool_type_default members of struct language_arch_info.
2475
de7b6b47
UW
24762008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2477
2478 * jv-lang.c (enum java_primitive_types): New type.
2479 (java_language_arch_info): New function.
2480 (java_language): Use it instead of c_language_arch_info.
2481
afc05acb
UW
24822008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2483
2484 * value.h (value_bitstring_subscript): New prototype.
2485 * valarith.h (value_bitstring_subscript): New function.
2486 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2487 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2488 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2489
3e79cecf
UW
24902008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2491
2492 * expression.h (struct expression): New member GDBARCH.
2493 * parse.c (parse_exp_in_context): Initialize it.
2494 * parser-def.h (parse_gdbarch, parse_language): New macros.
2495
2496 * ada-exp.y (parse_type): New macro.
2497 Replace builtin_type_ macros by using parse_type.
2498 Replace current_language by parse_language.
2499 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2500 Replace builtin_type_ macros.
2501
2502 * c-exp.y (parse_type): New macro.
2503 Replace builtin_type_ macros by using parse_type.
2504 (parse_number): Replace current_gdbarch by parse_gdbarch.
2505 (yylex): Replace current_language by parse_language.
2506
2507 * f-exp.y (parse_type, parse_f_type): New macros.
2508 Replace builtin_type_ macros by using parse_{f_,}type.
2509 (parse_number): Replace current_gdbarch by parse_gdbarch.
2510 (yylex): Replace current_language by parse_language.
2511
2512 * jv-exp.y (parse_type): New macro.
2513 (parse_number): Replace builtin_type_ macros by using parse_type.
2514
2515 * m2-exp.y (parse_type, parse_m2_type): New macros.
2516 Replace builtin_type_ macros by using parse_{m2_,}type.
2517
2518 * objc-exp.y (parse_type): New macro.
2519 Replace builtin_type_ macros by using parse_type.
2520 (parse_number): Replace current_gdbarch by parse_gdbarch.
2521 (yylex): Replace current_language by parse_language.
2522
2523 * p-exp.y (parse_type): New macro.
2524 Replace builtin_type_ macros by using parse_type.
2525 (parse_number): Replace current_gdbarch by parse_gdbarch.
2526 (yylex): Replace current_language by parse_language.
2527
c841afd5
UW
25282008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2529
2530 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2531 and DATA_SYMBOL_TYPE arguments.
2532 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2533 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2534 (write_dollar_variable): Update call.
2535
2536 * ada-exp.y (write_var_or_type): Update call.
2537 * c-exp.y: Likewise.
2538 * f-exp.y: Likewise.
2539 * jv-exp.y: Likewise.
2540 * m2-exp.y: Likewise.
2541 * objc-exp.y: Likewise.
2542 * p-exp.y: Likewise.
2543
0c1f74cf
JB
25442008-09-10 Joel Brobecker <brobecker@adacore.com>
2545
2546 * ada-lang.c (ada_parent_type): Add handling of the case where
2547 the _parent field is a pointer and/or has a parallel XVS type.
2548 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2549 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2550 the type of the tag instead of doing forcing an EVAL_NORMAL
2551 expression evaluation.
2552
5823c3ef
JB
25532008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2554 Joel Brobecker <brobecker@adacore.com>
2555
2556 * ada-lang.c (is_digits_suffix): New function.
2557 (is_dot_digits_suffix): Remove.
2558 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2559 before looking up in symbol table, and do not use wild matches on them.
2560 (wild_match): Reimplement for speed and to allow matching of operator
2561 symbols.
2562 (is_valid_name_for_wild_match): Return zero for names that do not
2563 follow the GNAT encoding.
2564
2565 (is_name_suffix): Fix typo in comment.
2566 (to_record_with_fixed_variant_part): Ditto.
2567
e5fa8013
PA
25682008-09-10 Pedro Alves <pedro@codesourcery.com>
2569
2570 * Makefile.in (gnu-nat.o): New rule.
2571
6d2e05aa
JB
25722008-09-10 Joel Brobecker <brobecker@adacore.com>
2573
2574 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2575 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2576
2ac8a782
JB
25772008-09-10 Joel Brobecker <brobecker@adacore.com>
2578
2579 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2580 Add special handling for pointer types.
2581
b861ac81
PA
25822008-09-10 Pedro Alves <pedro@codesourcery.com>
2583
2584 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2585 right scope level.
2586 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2587
030b4912
UW
25882008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2589
2590 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2591 of builtin_type_int.
2592 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2593 instead of builtin_type_int.
2594
d51fd4c8
PA
25952008-09-09 Pedro Alves <pedro@codesourcery.com>
2596
2597 * infrun.c (normal_stop): Run hook-stop last.
2598
11cb6f65
PA
25992008-09-09 Pedro Alves <pedro@codesourcery.com>
2600
2601 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2602 (init_gnu_ops): Don't register it.
2603
a9ab7422
PA
26042008-09-09 Pedro Alves <pedro@codesourcery.com>
2605
2606 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2607 threads.
2608
694182d2
DJ
26092008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2610
2611 * valops.c (value_cast_structs): Return NULL for failure.
2612 (value_cast): Handle NULL from value_cast_structs.
2613 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2614
dcf4fbde
PA
26152008-09-08 Pedro Alves <pedro@codesourcery.com>
2616
2617 * inferior.h (context_switch_to): Delete.
2618 * infrun.c (context_switch): Don't save and load infrun state.
2619 (context_switch_to): Delete.
2620
2621 * infcmd.c (proceed_thread_callback): Replace context_switch_to
2622 calls by switch_to_thread calls.
2623
2624 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
2625 * thread.c (main_thread_state, main_thread_executing): Delete.
2626 (inferior_thread): Delete references to them.
2627 (add_thread_silent): Fix case where we're adding a thread with the
2628 same ptid as an exited thread. Remove references to
2629 context-switching.
2630 (load_infrun_state, save_infrun_state): Delete.
2631 (thread_alive, is_thread_state, any_running, is_executing)
2632 (set_executing): Remove the special handling for targets that
2633 don't register any thread.
2634 (restore_current_thread, thread_apply_all_command)
2635 (do_captured_thread_select): Unconditionally call
2636 switch_to_thread.
2637
2638 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
2639 Call switch_to_thread instead of context_switch_to.
2640
95e54da7
PA
26412008-09-08 Pedro Alves <pedro@codesourcery.com>
2642
2643 Remove global continuations in favour of a per-thread
2644 continuations.
2645
2646 * gdbthread.h (struct thread_info): Add comments around
2647 continuations and intermediate_continuations.
2648 (save_infrun_state, load_infrun_state): Delete continuations and
2649 intermediate_continuations arguments.
fedae5ff 2650 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
2651 * thread.c (clear_thread_inferior_resources): Discard all
2652 continuations of the thread we're clearing.
2653 (save_infrun_state, load_infrun_state): Delete continuations and
2654 intermediate_continuations arguments, and the code referencing
2655 them.
2656 * utils.c: Include "gdbthread.h".
2657 (cmd_continuation, intermediate_continuation): Delete.
2658 (add_continuation): Add thread_info* argument. Install the
2659 continuation on it.
2660 (restore_thread_cleanup): New.
2661 (do_all_continuations_ptid, do_all_continuations_thread_callback):
2662 New.
2663 (do_all_continuations): Reimplement.
2664 (discard_all_continuations_thread_callback,
2665 discard_all_continuations_thread): New.
2666 (discard_all_continuations): Reimplement.
2667 (add_intermediate_continuation): Add thread_info* argument.
2668 Install the continuation on it.
2669 (do_all_intermediate_continuations_thread_callback)
2670 (do_all_intermediate_continuations_thread): New.
2671 (do_all_intermediate_continuations): Reimplement.
2672 (discard_all_intermediate_continuations_thread_callback): New.
2673 (discard_all_intermediate_continuations_thread): New.
2674 (discard_all_intermediate_continuations): Reimplement.
2675
2676 * breakpoint.c (until_break_command): Install the continuation on
2677 the current thread.
2678
2679 * defs.h (cmd_continuation, intermediate_continuation): Delete.
2680 (struct thread_info): Forward declare.
2681 (add_continuation, add_intermediate_continuation): Add
2682 thread_info* argument.
2683 (do_all_continuations_thread, discard_all_continuations_thread)
2684 (do_all_intermediate_continuations_thread)
2685 (discard_all_intermediate_continuations_thread): Declare.
2686 * inf-loop.c (inferior_event_handler): In non-stop only run
2687 continuations on the thread that stopped. In all-stop, run
2688 continuations on all threads.
2689 * infcmd.c (step_once, finish_command): Adjust.
2690
414c69f7
PA
26912008-09-08 Pedro Alves <pedro@codesourcery.com>
2692
2693 Remove the global stop_step in favour of a per-thread
2694 stop_step.
2695
2696 * inferior.h (stop_step): Delete.
2697
2698 * gdbthread.h (struct thread_info): Add comments to stop_step.
2699 (save_infrun_state, load_infrun_state): Remove stop_step argument.
2700 * thread.c (load_infrun_state, save_infrun_state): Remove
2701 stop_step argument, and references to it.
2702
2703 * infrun.c (clear_proceed_status): Clear stop_step.
2704 (fetch_inferior_event): Adjust.
2705 (context_switch): Don't context-switch stop_step.
2706 (handle_inferior_event): Adjust.
2707 (normal_stop): Adjust.
2708 (save_inferior_status, restore_inferior_status): Adjust.
2709
2710 * infcmd.c (stop_step): Delete.
2711 (step_1, step_1_continuation, step_once, until_next_command):
2712 Adjust.
2713
af679fd0
PA
27142008-09-08 Pedro Alves <pedro@codesourcery.com>
2715
2716 Remove the global step_multi in favour of a per-thread
2717 step_multi.
2718
2719 * inferior.h (step_multi): Delete.
2720 * gdbthread.h (struct thread_info): Add comments around
2721 step_multi.
2722 (save_infrun_state, load_infrun_state): Remove step_multi
2723 parameter.
2724 * thread.c (load_infrun_state, save_infrun_state): Remove
2725 step_multi argument, and references to it.
2726 * infcmd.c (step_multi): Delete.
2727 (step_1): Adjust.
2728 (step_1_continuation, until_next_command): Adjust.
2729 * infrun.c (fetch_inferior_event): Adjust.
2730 (context_switch): Don't context-switch step_multi.
2731 (print_stop_reason, normal_stop): Adjust.
2732
2020b7ab
PA
27332008-09-08 Pedro Alves <pedro@codesourcery.com>
2734
2735 Remove the global stop_signal in favour of a per-thread
2736 stop_signal.
2737
2738 * inferior.h (stop_signal): Delete.
2739 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2740 stop_signal argument.
2741 * thread.c (load_infrun_state, save_infrun_state): Remove
2742 stop_signal argument. Don't reference it.
2743
2744 * infcmd.c (stop_signal): Delete.
2745 (program_info): Adjust.
2746 * infrun.c (resume): Clear stop_signal.
2747 (proceed): Adjust. Pass the last stop_signal to the thread we're
2748 resuming.
2749 (context_switch): Don't context-switch stop_signal.
2750 (handle_inferior_event, keep_going): Adjust.
2751 (save_inferior_status, restore_inferior_status): Adjust.
2752
2753 * fbsd-nat.c: Include "gdbthread.h".
2754 (find_signalled_thread, find_stop_signal): New.
2755 (fbsd_make_corefile_notes): Use it.
2756 * fork-child.c (startup_inferior): Adjust.
2757
2758 * linux-nat.c (get_pending_status): Adjust.
2759 (linux_nat_do_thread_registers): Adjust.
2760 (find_signalled_thread, find_stop_signal): New.
2761 (linux_nat_do_thread_registers): Add stop_signal parameter.
2762 (struct linux_nat_corefile_thread_data): Add stop_signal member.
2763 (linux_nat_corefile_thread_callback): Pass stop_signal.
2764 (linux_nat_do_registers): Delete.
2765 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
2766 there's always a thread.
2767
2768 * procfs.c (find_signalled_thread, find_stop_signal): New.
2769 (find_stop_signal): New.
2770 (procfs_do_thread_registers): Add stop_signal parameter.
2771 (struct procfs_corefile_thread_data): Add stop_signal member.
2772 (procfs_corefile_thread_callback): Pass args->stop_signal.
2773 (procfs_make_note_section): Find the last stop_signal.
2774
2775 * solib-irix.c: Include gdbthread.h.
2776 (irix_solib_create_inferior_hook): Adjust.
2777 * solib-osf.c: Include gdbthread.h.
2778 (osf_solib_create_inferior_hook): Adjust.
2779 * solib-sunos.c: Include gdbthread.h.
2780 (sunos_solib_create_inferior_hook): Adjust.
2781 * solib-svr4.c: Include gdbthread.h.
2782 (svr4_solib_create_inferior_hook): Adjust.
2783
2784 * win32-nat.c (do_initial_win32_stuff): Adjust.
2785
32400beb
PA
27862008-09-08 Pedro Alves <pedro@codesourcery.com>
2787
2788 * gdbthread.h (struct thread_info): Add comments around
2789 proceed_to_finish.
2790 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
2791 argument.
2792 * thread.c (load_infrun_state, save_infrun_state): Delete
2793 proceed_to_finish argument and references to it.
2794
2795 * infcall.c (call_function_by_hand): Adjust.
2796 * infcmd.c (finish_command): Adjust.
2797 * infrun.c (proceed_to_finish): Delete.
2798 (clear_proceed_status): Adjust.
2799 (context_switch): Don't context-switch proceed_to_finish.
2800 (normal_stop, save_inferior_status, restore_inferior_status):
2801 Adjust.
2802
347bddb7
PA
28032008-09-08 Pedro Alves <pedro@codesourcery.com>
2804
2805 * inferior.h (stop_bpstat): Delete.
2806
2807 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
2808
2809 * breakpoint.c (bpstat_do_actions): Rename to ...
2810 (bpstat_do_actions_1): ... this. Make static. Change return type
2811 to int. Return true if a breakpoint proceeded.
2812 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
2813 (delete_breakpoint): Don't reference the global stop_bpstat; it's
2814 gone.
2815
2816 * gdbthread.h (struct thread_info): Add stop_bpstat.
2817 (save_infrun_state, load_infrun_state): Remove stop_bpstat
2818 argument.
2819 * thread.c (load_infrun_state, save_infrun_state): Remove
2820 stop_bpstat argument, and the code referencing it.
2821
2822 * infcall.c: Include "gdbthread.h".
2823 (call_function_by_hand): Adjust.
2824 * exceptions.c: Include "gdbthread.h".
2825 (throw_exception): Adjust.
2826 * infcmd.c (stop_bpstat): Delete.
2827 (continue_command): In all-stop, set the ignore count on the
2828 thread that reported the stop. In non-stop, set it on the current
2829 thread.
2830 (finish_command_continuation): Adjust.
2831 (program_info): Adjust.
2832 * infrun.c (clear_proceed_status): Adjust.
2833 (context_switch): Don't context-switch stop_bpstat.
2834 (handle_inferior_event): Adjust.
2835 (normal_stop): Adjust.
2836 (save_inferior_status, restore_inferior_status): Adjust.
2837
2838 * inf-loop.c (inferior_event_handler): Remove parameter to
2839 bpstat_do_actions call.
2840 * top.c (command_loop): Remove parameter to bpstat_do_actions
2841 call. Call it unconditionally.
2842 * event-top.c (command_handler): Ditto.
2843 * python/python.c (execute_gdb_command): Ditto.
2844
078130d0
PA
28452008-09-08 Pedro Alves <pedro@codesourcery.com>
2846
2847 * inferior.h (step_over_calls): Delete.
2848
2849 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2850 step_over_calls argument.
2851 * thread.c (save_infrun_state, load_infrun_state): Remove
2852 step_over_calls argument. Adjust.
2853
2854 * infcmd.c (step_over_calls): Delete.
2855 (step_1): Adjust.
2856 * infrun.c (clear_proceed_status): Adjust.
2857 (context_switch): Don't context-switch step_over_calls.
2858 (handle_inferior_event, save_inferior_status)
2859 (restore_inferior_status): Adjust.
2860
4e1c45ea
PA
28612008-09-08 Pedro Alves <pedro@codesourcery.com>
2862
2863 Remove context switching in favour of accessing thread_info fields
2864 directly.
2865
2866 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2867 Delete.
2868 (struct thread_stepping_state): Delete.
2869 (gtss, tss): Delete.
2870 (follow_inferior_reset_breakpoints, follow_exec)
2871 (resume, clear_proceed_status): Adjust.
2872 (prev_pc): Delete.
2873 (proceed, start_remote, init_wait_for_inferior): Adjust.
2874 (struct execution_control_state): Add event_thread member.
2875 (delete_step_resume_breakpoint_callback)
2876 (delete_step_thread_step_resume_breakpoint)
2877 (delete_step_thread_step_resume_breakpoint_cleanup)
2878 (delete_step_thread_step_resume_breakpoint): New.
2879 (wait_for_inferior, init_execution_control_state): Use
2880 delete_step_thread_step_resume_breakpoint_cleanup.
2881 (wait_for_inferior): Set the event_thread.
2882 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2883 with delete_step_thread_step_resume_breakpoint.
2884 (init_thread_stepping_state): Change parameter type to
2885 thread_info. Adjust.
2886 (context_switch): Don't context switch prev_pc,
2887 stepping_over_breakpoint, step_resume_breakpoint,
2888 step_range_start, step_range_end, step_frame_id,
2889 tss->stepping_over_breakpoint,
2890 tss->stepping_through_solib_after_catch,
2891 tss->stepping_through_solib_catchpoints, tss->current_line, or
2892 tss->current_symtab.
2893 (adjust_pc_after_break, handle_inferior_event)
2894 (currently_stepping, step_into_function)
2895 (insert_step_resume_breakpoint_at_sal)
2896 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
2897 (clear_stepping_state): New.
2898 (normal_stop): Adjust.
2899 (save_inferior_status, restore_inferior_status): Adjust.
2900
2901 * gdbthread.h (struct thread_info): Comments describing the
2902 members moved here. Add step_after_step_resume_breakpoint.
2903 (delete_step_resume_breakpoint): Add thread_info argument.
2904 (save_infrun_state, load_infrun_state): Remove prev_pc,
2905 trap_expected, step_resume_breakpoint, step_range_start,
2906 step_range_end, step_frame_id, another_trap,
2907 stepping_through_solib_after_catch,
2908 stepping_through_solib_catchpoints, current_line and
2909 current_symtab function arguments.
2910 (inferior_thread): Declare.
2911
2912 * thread.c (inferior_thread): New.
2913 (delete_step_resume_breakpoint): Add a thread_info parameter and
2914 rewrite.
2915 (load_infrun_state, save_infrun_state): Remove prev_pc,
2916 trap_expected, step_resume_breakpoint, step_range_start,
2917 step_range_end, step_frame_id, stepping_over_breakpoint,
2918 stepping_through_solib_after_catch,
2919 stepping_through_solib_catchpoints, current_line and
2920 current_symtab args. Remove code referencing them.
2921
2922 * infcmd.c (step_range_start, step_range_end, step_frame_id):
2923 Delete.
2924 (step_1, step_once, until_next_command): Adjust.
2925
2926 * inferior.h (step_range_start, step_range_end, step_frame_id):
2927 Delete.
2928
2929 * linux-nat.c (linux_child_follow_fork): If following the child,
2930 move the step state to it. Adjust.
2931 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2932 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2933
757f359d
PA
29342008-09-08 Pedro Alves <pedro@codesourcery.com>
2935
2936 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2937 thread.
2938
0de3b513
PA
29392008-09-08 Pedro Alves <pedro@codesourcery.com>
2940
2941 * corelow.c (add_to_thread_list): If this is the first time we
2942 hear about thread info, update inferior_ptid.
2943 (core_open): Clear the thread list and set inferior_ptid before
2944 acknowledging a new inferior. Find threads before fetching
2945 register info. Give an upper target layer a chance to find and
2946 claim new threads. Print core generation and stop signal info
2947 after finding new threads.
2948 (get_core_register_section): Look at the lwp member of
2949 inferior_ptid for detecting if we have threads info, instead of
2950 the pid member.
2951 (core_pid_to_str): New.
2952 (init_core_ops): Register core_pid_to_str.
2953
4189d2f8
PA
29542008-09-08 Pedro Alves <pedro@codesourcery.com>
2955
2956 * spu-linux-nat.c (spu_child_post_startup_inferior)
2957 (spu_child_post_attach): Don't add the main thread here.
2958
617fd3b5
PA
29592008-09-08 Pedro Alves <pedro@codesourcery.com>
2960
2961 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2962
2963 * gnu-nat.c (inf_validate_procs): If this is the first time we're
2964 seeing a thread id, extend the main thread's ptid. If we still
2965 have pending execs, don't be verbose about new threads.
2966 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
2967 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
2968 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
2969 Adjust.
2970
2689673f
PA
29712008-09-08 Pedro Alves <pedro@codesourcery.com>
2972
2973 * procfs.c (to_attach): Create a procinfo for the current lwp.
2974 Add it to gdb's thread list.
2975 (procfs_fetch_registers, procfs_store_registers): Assume there's
2976 always an lwp.
2977 (procfs_wait): Don't add the main thread here.
2978 (procfs_init_inferior): Create a procinfo for the main lwp here.
2979 Change main thread's ptid with thread_change_ptid.
2980 (procfs_notice_thread): Check for exited threads.
2981 (procfs_corefile_thread_callback): Remove check for the main
2982 process.
2983 (procfs_make_note_section): Assume there is always a thread.
2984
2985 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
2986 attaching. Change the main thread ptid with thread_change_ptid.
2987 (sol_thread_detach): Clear sol_thread_active.
2988 (sol_thread_wait): Check for exited threads.
2989 (sol_thread_create_inferior): Clear sol_thread_active before
2990 creating a new inferior. Change the main thread ptid with
2991 thread_change_ptid.
2992 (sol_thread_mourn_inferior): Clear sol_thread_active.
2993 (sol_find_new_threads_callback): Check for exited threads.
2994
62a93fa9
PA
29952008-09-08 Pedro Alves <pedro@codesourcery.com>
2996
2997 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
2998 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
2999 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3000 process, and return TARGET_WAITKIND_IGNORE.
3001
438ac09b
PA
30022008-09-08 Pedro Alves <pedro@codesourcery.com>
3003
3004 * inf-ttrace.c: Include <signal.h>
3005 (inf_ttrace_delete_dead_threads_callback): New.
3006 (inf_ttrace_resume_lwp): New.
3007 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3008 delete dying threads until they are really dead.
3009 (inf_ttrace_wait): After stopping the whole process, delete any
3010 dying thread that is really dead by now.
3011 (inf_ttrace_thread_alive): Return 1.
3012 (inf_ttrace_extra_thread_info): New.
3013 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3014
2935f27f
PA
30152008-09-08 Pedro Alves <pedro@codesourcery.com>
3016
3017 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3018 of the child fork.
3019 (inf_ttrace_attach): Add the main thread.
3020 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3021 for always a thread.
3022 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3023 using thread_change_ptid, and set its private data. Don't add the
3024 main thread here.
3025 (inf_ttrace_pid_to_str): Adjust.
3026
fb5e7258
PA
30272008-09-08 Pedro Alves <pedro@codesourcery.com>
3028
3029 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3030 thread_change_ptid. Check for exited threads.
3031 (bsd_uthread_find_new_threads): Check for exited threads.
3032
af990527
PA
30332008-09-08 Pedro Alves <pedro@codesourcery.com>
3034
3035 * inf-ptrace.c: Include "gdbthread.h".
3036 (inf_ptrace_attach): Add the main thread here.
3037 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3038 Decorate the main thread id with the lwp id.
3039
27c9d204
PA
30402008-09-08 Pedro Alves <pedro@codesourcery.com>
3041
3042 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3043 thread_change_ptid. Don't add or mark the main thread as running
3044 and executing here.
3045 * fork-child.c (fork_inferior): Add the main thread here.
3046
de9f48f0
JG
30472008-09-08 Jerome Guitton <guitton@adacore.com>
3048
3049 * rs6000-tdep.c (rs6000_fetch_instruction)
3050 (rs6000_skip_stack_check): New functions.
3051 (skip_prologue): Skip stack check sequence.
3052
52163a60
DD
30532008-09-08 David Daney <ddaney@avtrex.com>
3054
3055 * dummy-frame.h (frame.h): Include it.
3056 (struct frame_id): Remove declaration.
3057
87805e63
UW
30582008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3059
3060 * spu-tdep.c (spu_push_dummy_code): New function.
3061 (spu_gdbarch_init): Install it.
3062
0b1553bc
UW
30632008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3064
3065 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3066 instead of paddr_nz.
3067 * gdbarch.c: Regenerate.
3068
3069 * target.c (target_xfer_partial, debug_print_register): Use
3070 core_addr_to_string_nz instead of paddr_nz.
3071
2454a024
UW
30722008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3073
3074 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3075 *before* calling gdbarch_init_osabi.
3076 (rs6000_aix_init_osabi): Disable displaced stepping.
3077
b52323fa
UW
30782008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3079
3080 * target.c (update_current_target): Do not inherit to_open
3081 or to_close.
3082 (pop_target): Call target_close on target_stack instead
3083 of current_target.
3084 (pop_all_targets_above): Likewise.
3085
fead6908
UW
30862008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3087
3088 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3089 (gnuv3_print_method_ptr): Use it.
3090 (gnuv3_method_ptr_to_value): Likewise.
3091
60441ab9
UW
30922008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3093
3094 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3095 register_area callback function.
3096 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3097 Use it instead of current_gdbarch.
3098 * nto-procfs.c (procfs_store_registers): Update call.
3099
bb486190
UW
31002008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3101
3102 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3103 regcache architecture instead of current_gdbarch.
3104
9dacea90
UW
31052008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3106
3107 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3108 (check_for_saved): Use it instead of current_gdbarch.
3109 (is_arg_spill): Add gdbarch paramter. Use it instead
3110 of current_gdbarch.
3111 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3112 to is_arg_spill and check_for_saved.
3113 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3114
5db8bbe5
UW
31152008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3116
3117 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3118 instead of current_gdbarch.
3119
6ba38425
UW
31202008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3121
3122 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3123 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3124 Use it instead of current_gdbarch.
3125 (m68kbsd_supply_fpregset): Update call.
3126 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3127 (m68kbsd_collect_fpregset): Likewise.
3128
35488783
UW
31292008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3130
3131 * cris-tdep.c (cris_version, cris_mode): Remove.
3132 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3133 (cris_breakpoint_from_pc): Likewise.
3134 (cris_frame_unwind_cache): Use tdep->cris_version.
3135 (crisv32_scan_prologue): Likewise.
3136 (cris_spec_reg_applicable): Add gdbarch argument.
3137 Use tdep->cris_version.
3138 (cris_register_size, cris_special_register_name): Update calls.
3139 (cris_special_register_name): Add gdbarch argument.
3140 (cris_register_name, crisv32_register_name): Update calls.
3141
9dae60cc
UW
31422008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3143
3144 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3145 instead of current_gdbarch.
3146
3147 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3148 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3149 * sh-tdep.c (gdb_print_insn_sh): Remove.
3150 (sh_gdbarch_init): Install print_insn_sh directly.
3151
3152 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3153 from current_gdbarch.
3154 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3155 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3156 depending on mips_abi.
3157
24568a2c
UW
31582008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3159
3160 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3161 (smash_text_address): Likewise.
3162 * gdbarch.c, gdbarch.h: Regenerate.
3163
3164 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3165 * arch-utils.h (core_addr_identity): Likewise.
3166 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3167 (arm_smash_text_address): Likewise.
3168 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3169 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3170 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3171
3172 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3173 Use it instead of current_gdbarch.
3174
3175 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3176 arm_dwarf2_prev_register): Update calls.
3177 * m88k-tdep.c (m88k_unwind_pc): Update call.
3178
f7fd4728
UW
31792008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3180
3181 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3182 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3183 Call gdbarch_integer_to_address directly instead of converting
3184 to value and back. Update comment.
3185 (execute_stack_op): Update call site.
3186 * dwarf2loc.c (find_location_expression): Likewise.
3187 (locexpr_describe_location): Update
3188
3189 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3190 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3191 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3192 (dwarf2_loc_desc_needs_frame): Likewise.
3193
714835d5
UW
31942008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3195
3196 * breakpoint.h (struct bp_location): Change type of section
3197 member to "struct obj_section *".
3198 * tracepoint.h (struct tracepoint): Likewise.
3199 * symtab.h (struct general_symbol_info): Replace bfd_section
3200 member with obj_section.
3201 (struct symtab_and_line): Change type of section member to
3202 "struct obj_section *".
3203 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3204 (SYMBOL_OBJ_SECTION): ... this.
3205
3206 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3207 section as obj_section instead of bfd_section.
3208
3209 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3210 directly instead of looking of obj_section from bfd_section.
3211
3212 * objfiles.h (find_pc_sect_section): Remove.
3213 * objfiles.c (find_pc_sect_section): Remove.
3214 (find_pc_section): Inline find_pc_sect_section code.
3215
3216 * symfile.h (find_pc_overlay): Return struct obj_section *.
3217 (find_pc_mapped_section): Likewise.
3218 (section_is_overlay, section_is_mapped): Change type of section
3219 argument to struct obj_section *.
3220 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3221 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3222 (symbol_overlayed_address): Likewise.
3223 * symtab.h (symbol_overlayed_address): Likewise.
3224 * symfile.c (overlay_is_mapped): Remove.
3225 (section_is_mapped): Inline overlay_is_mapped code. Update.
3226 (overlay_invalidate_all): Update.
3227 (section_is_overlay): Change section argument to type
3228 "struct obj_section *". Use bfd_ methods.
3229 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3230 (pc_in_mapped_range): Likewise. Handle relocated sections.
3231 (sections_overlap): Likewise.
3232 (overlay_unmapped_address): Likewise.
3233 (overlay_mapped_address): Likewise.
3234 (symbol_overlayed_address): Likewise.
3235 (find_pc_overlay): Return struct obj_section *.
3236 (find_pc_mapped_section): Likewise.
3237 (list_overlays_command): Update.
3238 (map_overlay_command, unmap_overlay_command): Update.
3239 (simple_overlay_update): Update.
3240
3241 * block.h (blockvector_for_pc_sect): Change section argument
3242 to type "struct obj_section *".
3243 (block_for_pc_sect): Likewise.
3244 * block.c (blockvector_for_pc_sect): Change section argument
3245 to type "struct obj_section *".
3246 (block_for_pc_sect): Likewise.
3247 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3248 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3249 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3250 (matching_bfd_sections): Rename to ...
3251 (matching_obj_sections): ... this. Update argument types.
3252 * blockframe.c (find_pc_sect_function): Likewise.
3253 * breakpoint.c (describe_other_breakpoints): Likewise.
3254 (breakpoint_has_pc, check_duplicates_for): Likewise.
3255 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3256 (lookup_minimal_symbol_by_pc_section): Likewise.
3257 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3258 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3259 find_pc_sect_line, find_function_start_pc): Likewise.
3260 (matching_bfd_sections): Rename to ...
3261 (matching_obj_sections): ... this. Update argument types.
3262
3263 * blockframe.c (find_pc_partial_function): Update to section
3264 type changes. No longer call find_pc_sect_section.
3265 (cache_pc_function_section): Change to type "struct obj_section *".
3266 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3267 * exec.c (xfer_memory): Likewise.
3268 * findvar.c (read_var_value): Likewise.
3269 * infcmd.c (jump_command): Likewise.
3270 * linespec.c (minsym_found): Likewise.
3271 * maint.c (maintenance_translate_address): Likewise.
3272 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3273 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3274 * parse.c (write_exp_msymbol): Likewise.
3275 * printcmd.c (build_address_symbolic): Likewise.
3276 (address_info, sym_info): Likewise.
3277 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3278 * symtab.c (fixup_section): Likewise.
3279 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3280 (find_pc_line, find_function_start_sal): Likewise.
3281 * target.c (memory_xfer_partial): Likewise.
3282 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3283 * spu-tdep.c (spu_overlay_update): Likewise.
3284
623d3eb1
DE
32852008-09-04 Doug Evans <dje@google.com>
3286
3287 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3288 Change argument of pulongest from CORE_ADDR to ULONGEST.
3289 All callers updated.
3290 * utils.c (plongest): Renamed from paddr_d.
3291 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3292 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3293 `CORE_ADDR addr' arg of error message.
3294
8775bb90
MS
32952008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3296
3297 * ser-tcp.c (ser_tcp_send_break): New function.
3298 (_initialize_ser_tcp): Use ser_tcp_send_break.
3299 * ser-tcp.h (ser_tcp_send_break): New prototype.
3300
9ff3afda
UW
33012008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3302
3303 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3304 when allocating stack frame for inferior call.
3305
c4891da7
UW
33062008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3307
3308 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3309 SP or return address if we failed to find a valid frame.
3310
514f746b
AR
33112008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3312
3313 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3314 non-permanent breakpoints.
3315 (bpstat_stop_status): Change enable_state to bp_disabled only for
3316 non-permanent breakpoints.
3317 (bp_loc_is_permanent): New function.
3318 (create_breakpoint): Check if the location points to a permanent
3319 breakpoint and if it does, make breakpoint permanent.
3320 (update_breakpoint_locations): Make sure new locations of permanent
3321 breakpoints are properly initialized.
3322 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3323 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3324
a12654ce
PA
33252008-09-02 Pedro Alves <pedro@codesourcery.com>
3326
3327 * breakpoint.c (insert_breakpoints, update_global_location_list):
3328 Check breakpoints_always_inserted_mode instead of
3329 always_inserted_mode directly.
3330
8b7a6d61
AS
33312008-09-02 Andreas Schwab <schwab@suse.de>
3332
3333 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3334
d68209e4
JK
33352008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 Stay compatible after the GCC PR fortran/29635 fix.
3338 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3339 (process_die <DW_TAG_imported_module>): Do not assert anything about
3340 these unsupported tags.
3341
ef4cb050
TT
33422008-08-29 Tom Tromey <tromey@redhat.com>
3343
3344 * maint.c (_initialize_maint_cmds): Fix typo.
3345
a683b3c0
TT
33462008-08-29 Tom Tromey <tromey@redhat.com>
3347
3348 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3349 obstack.
3350
3e88cf8d
UW
33512008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3352
3353 * remote.c: Include "gdb_stat.h".
3354
a45ae3ed
UW
33552008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3356
3357 * dummy-frame.h (dummy_frame_pop): Add prototype.
3358 * dummy-frame.c: Include "observer.h".
3359 (dummy_frame_push): Do not check for stale frames.
3360 (dummy_frame_pop): New function.
3361 (cleanup_dummy_frames): New function.
3362 (_initialize_dummy_frame): Install it as inferior_created observer.
3363
3364 * frame.h (struct frame_id): Update comments.
3365 (frame_id_inner): Remove prototype.
3366 * frame.c (frame_id_inner): Make static. Add comments.
3367 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3368 false positives for targets using non-contiguous stack ranges.
3369 (get_prev_frame_1): Update frame_id_inner safety net check.
3370 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3371
3372 * stack.c (return_command): Directly pop the selected frame.
3373 * infrun.c (handle_inferior_event): Remove dead code.
3374 * i386-tdep.c (i386_push_dummy_call): Update comment.
3375
879d1e6b
UW
33762008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3377
3378 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3379 breakpoint from shared library.
3380
97ec2c2f
UW
33812008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3382
3383 * solib-svr4.c (read_program_header): New function.
3384 (scan_dyntag_auxv): New function.
3385 (elf_locate_base): Use it if scan_dyntag fails.
3386 (find_program_interpreter): New function.
3387 (enable_break): Use it instead of .interp section.
3388
f1838a98
UW
33892008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3390
3391 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3392 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3393 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3394 remote_bfd_open): New functions.
3395 (remote_hostio_send_command): Fail safely if remote connection
3396 is not set up.
3397
3398 * solist.h (solib_open): Remove prototype.
3399 (solib_bfd_open): Add prototype.
3400 * solib.c: Include "remote.h".
3401 (solib_open): Remove, replace by ...
3402 (solib_bfd_open): ... this new function. Handle remote BFDs.
3403 (solib_map_sections): Replace solib_open by solib_bfd_open.
3404 * solib-frv.c: Include "exceptions.h".
3405 (enable_break2): Replace solib_open by solib_bfd_open.
3406 * solib-svr4.c: Include "exceptions.h".
3407 (enable_break): Replace solib_open by solib_bfd_open.
3408
3409 * symfile.c: Include "remote.h".
3410 (build_id_verify): Handle remote BFDs.
3411 (separate_debug_file_exists): Use BFD to access file. Handle
3412 remote BFDs.
3413 (symfile_bfd_open): Handle remote BFDs.
3414 (reread_symbols): Handle remote BFDs.
3415
3416 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3417
1cf3db46
UW
34182008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3419
3420 * gdbarch.sh (target_gdbarch): New global variable.
3421 (deprecated_current_gdbarch_select_hack): Set it.
3422 * gdbarch.c, gdbarch.h: Regenerate.
3423
3424 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3425 of current_gdbarch.
3426 * target-descriptions.c (target_find_description): Likewise.
3427 * arm-tdep.c (arm_update_current_architecture): Likewise.
3428 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3429 arm_show_force_mode): Likewise.
3430 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3431 show_mips_abi): Likewise.
3432 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3433
3434 * target.c (target_translate_tls_address): Use target_gdbarch
3435 instead of current_gdbarch.
3436 * remote.c (struct packet_reg): Likewise.
3437 (get_remote_arch_state, packet_reg_from_regnum,
3438 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3439 remote_address_masked, remote_insert_breakpoint,
3440 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3441 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3442 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3443 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3444
3445 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3446 solib_add, info_sharedlibrary_command, solib_address,
3447 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3448 solib_global_lookup): Likewise.
3449 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3450 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3451 Likewise.
3452 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3453 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3454 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3455 Likewise.
3456 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3457 nto_truncate_ptr): Likewise.
3458 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3459
6207416c
LM
34602008-08-26 Luis Machado <luisgpm@br.ibm.com>
3461
3462 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3463 (ppc_linux_vmx_regset_sections): New structure.
3464 (ppc_linux_fp_regset_sections): New structure.
3465 (ppc_linux_init_abi): Select core-file regset based on target
3466 features.
3467
0ff58721
UW
34682008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3469
3470 * target.c (debug_print_register): Use regcache_raw_collect
3471 instead of regcache_cooked_read. Only handle raw registers.
3472
6c5561f9
PA
34732008-08-25 Pedro Alves <pedro@codesourcery.com>
3474
3475 * cp-name-parser.y: Include config.h before system headers.
3476
ed0c3906
UW
34772008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3478
3479 * m88k-tdep.c: Update for unwinder changes.
3480
119ac181
TT
34812008-08-24 Tom Tromey <tromey@redhat.com>
3482
3483 * s390-tdep.c (s390_address_class_type_flags): Use
3484 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3485 (s390_address_class_type_flags_to_name): Likewise.
3486 (s390_address_class_name_to_type_flags): Likewise.
3487
803e1097
TT
34882008-08-24 Tom Tromey <tromey@redhat.com>
3489
3490 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3491 TYPE_FLAGS.
3492 * features/rs6000/powerpc-vsx32l.c
3493 (initialize_tdesc_powerpc_vsx32l): Update.
3494 * features/rs6000/powerpc-vsx32.c
3495 (initialize_tdesc_powerpc_vsx32): Update.
3496 * features/rs6000/powerpc-vsx64.c
3497 (initialize_tdesc_powerpc_vsx64): Update.
3498 * features/rs6000/powerpc-vsx64l.c
3499 (initialize_tdesc_powerpc_vsx64l): Update.
3500 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3501 TYPE_VECTOR, not TYPE_FLAGS.
3502
876cecd0
TT
35032008-08-24 Tom Tromey <tromey@redhat.com>
3504
3505 * xml-tdesc.c (tdesc_end_union): Update.
3506 * stabsread.c (define_symbol): Update.
3507 (read_type): Update.
3508 (read_struct_type): Update.
3509 (read_enum_type): Update.
3510 * spu-tdep.c (spu_builtin_type_vec128): Update.
3511 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3512 (sh_push_dummy_call_nofpu): Update.
3513 * mdebugread.c (parse_symbol): Update.
3514 (parse_symbol): Update.
3515 (parse_symbol): Update.
3516 (upgrade_type): Update.
3517 * jv-lang.c (java_lookup_class): Update.
3518 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3519 * i386-tdep.c (i386_mmx_type): Update.
3520 (i386_sse_type): Update.
3521 * gdbtypes.h (enum type_flag_value): New enum.
3522 (enum type_instance_flag_value): New enum.
3523 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3524 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3525 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3526 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3527 TYPE_FLAG_NOTTEXT): Now enum constants.
3528 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3529 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3530 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3531 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3532 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3533 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3534 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3535 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3536 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3537 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3538 TYPE_NOTTEXT): Update.
3539 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3540 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3541 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3542 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3543 TYPE_ADDRESS_CLASS_ALL): Update.
3544 (struct main_type) <flags>: Remove.
3545 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3546 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3547 flag_vector, flag_stub_supported, flag_nottext,
3548 flag_fixed_instance>: New fields.
3549 <nfields, vptr_fieldno>: Move earlier.
3550 (TYPE_FLAGS): Remove.
3551 * gdbtypes.c (make_pointer_type): Update.
3552 (address_space_name_to_int): Update.
3553 (address_space_int_to_name): Update.
3554 (make_type_with_address_space): Update.
3555 (make_cv_type): Update.
3556 (create_range_type): Update.
3557 (get_discrete_bounds): Update.
3558 (create_set_type): Update.
3559 (make_vector_type): Update.
3560 (smash_to_method_type): Update.
3561 (check_typedef): Update.
3562 (check_stub_method): Update.
3563 (init_type): Individually assign flag fields.
3564 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3565 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3566 (copy_type_recursive): Copy the entire main type. Don't use
3567 TYPE_FLAGS.
3568 * features/rs6000/powerpc-altivec64l.c
3569 (initialize_tdesc_powerpc_altivec64l): Update.
3570 * features/rs6000/powerpc-altivec64.c
3571 (initialize_tdesc_powerpc_altivec64): Update.
3572 * features/rs6000/powerpc-altivec32l.c
3573 (initialize_tdesc_powerpc_altivec32l): Update.
3574 * features/rs6000/powerpc-altivec32.c
3575 (initialize_tdesc_powerpc_altivec32): Update.
3576 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3577 Update.
3578 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3579 Update.
3580 * dwarf2read.c (read_structure_type): Update.
3581 (read_enumeration_type): Likewise.
3582 (process_enumeration_scope): Likewise.
3583 (read_tag_pointer_type): Likewise.
3584 (read_subroutine_type): Likewise.
3585 (read_subroutine_type): Likewise.
3586 (read_base_type): Likewise.
3587 * coffread.c (coff_read_enum_type): Update.
3588 * ada-valprint.c (adjust_type_signedness): Update.
3589 * ada-typeprint.c (print_record_field_types): Update.
3590 * ada-lang.c (packed_array_type): Update.
3591 (empty_record): Don't reset TYPE_FLAGS.
3592 (ada_template_to_fixed_record_type_1): Update.
3593 (ada_template_to_fixed_record_type_1): Likewise.
3594 (template_to_static_fixed_type): Likewise.
3595 (to_record_with_fixed_variant_part): Likewise.
3596 (to_fixed_record_type): Likewise.
3597 (to_fixed_array_type): Likewise.
3598 (to_static_fixed_type): Likewise.
3599
d4ce0d3f
TT
36002008-08-23 Jim Blandy <jimb@redhat.com>
3601
3602 PR macros/607:
3603 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3604 for the macro bcache.
3605
2e668a5d
TT
36062008-08-23 Tom Tromey <tromey@redhat.com>
3607
3608 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3609 (argc): Now 31 bits.
3610
75a2d5e7
TT
36112008-08-22 Tom Tromey <tromey@redhat.com>
3612
3613 * NEWS: Move macro entries back under "New commands".
3614
25db0f1b
UW
36152008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3616
3617 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3618 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3619 (create_overlay_event_breakpoint): Loop over all objfiles to install
3620 multiple instances of the overlay event breakpoint if present.
3621
0391f248
UW
36222008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3623
3624 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
3625 (info_spu_event_command): Command only supported on SPU architecture.
3626 (info_spu_signal_command): Likewise.
3627 (info_spu_mailbox_command): Likewise.
3628 (info_spu_dma_command): Likewise.
3629 (info_spu_proxydma_command): Likewise.
3630
24a73cce
UW
36312008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3632
3633 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
3634 if the thread has already exited.
3635
e0bb1c1c
PA
36362008-08-22 Pedro Alves <pedro@codesourcery.com>
3637
3638 * infrun.c (proceed): Move back setting previous_inferior_ptid
3639 from here ...
3640 (wait_for_inferior): ... to here.
3641 (fetch_inferior_event): ... and here.
3642
a3ecef73
UW
36432008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3644
3645 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3646 (deprecated_current_gdbarch_select_hack): Call registers_changed
3647 instead of reinit_frame_cache.
3648 * gdbarch.c: Regenerate.
3649
45148c2e
UW
36502008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3651
3652 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3653
6a94242b
DJ
36542008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3655
3656 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3657
5045add0
UW
36582008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3659
3660 * findvar.c (locate_var_value): Do not call get_frame_arch
3661 with a NULL frame argument.
3662
029a67e4
UW
36632008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3664
3665 * frame.h (frame_map_regnum_to_name): Remove prototype.
3666 (frame_map_name_to_regnum): Remove prototype.
3667 * frame.c (frame_map_regnum_to_name): Remove.
3668 (frame_map_name_to_regnum): Remove.
3669 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
3670 instead of frame_map_regnum_to_name.
3671 * ax-gdb.c: Include "user-regs.h".
3672 (gen_expr): Use user_reg_map_name_to_regnum instead of
3673 frame_map_name_to_regnum.
3674 * eval.c: Include "user-regs.h".
3675 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
3676 instead of frame_map_name_to_regnum.
3677 * infcmd.c (registers_info): Likewise.
3678 * parse.c: Include "user-regs.h".
3679 (write_dollar_variable): Use user_reg_map_name_to_regnum
3680 instead of frame_map_name_to_regnum.
3681 * tracepoint.c: Include "user-regs.h".
3682 (encode_actions): Use user_reg_map_name_to_regnum
3683 instead of frame_map_name_to_regnum.
3684 * valops.c: Include "user-regs.h".
3685 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
3686 of frame_map_regnum_to_name.
3687
e84ee240
UW
36882008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3689
3690 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
3691 and manually relocate .opd contents from BFD instead of reading
3692 them from target memory.
3693
0114d602
DJ
36942008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3695
3696 * dwarf2read.c (processing_current_prefix): Delete static
3697 variable.
3698 (process_full_comp_unit): Do not set processing_current_prefix.
3699 (dwarf2_full_name): New function.
3700 (read_func_scope): Do not set processing_current_prefix. Use
3701 determine_prefix.
3702 (read_structure_type): Do not set processing_current_prefix. Remove
3703 unused inner cleanup.
3704 (process_structure_scope): Do not set processing_current_prefix.
3705 (read_enumeration_type): Use dwarf2_full_name.
3706 (determine_class_name): Return a const char *. Put the result
3707 on the objfile obstack. Use dwarf2_full_name.
3708 (read_namespace_type): New function.
3709 (read_namespace): Do not create the type here. Use
3710 determine_prefix.
3711 (read_typedef): Use dwarf2_full_name. Do not pass the name
3712 to init_type.
3713 (read_base_type): Do not pass the name to init_type. Handle
3714 TYPE_FLAG_NOSIGN.
3715 (read_unspecified_type): Do not pass the name to init_type.
3716 (new_symbol): Use dwarf2_full_name instead of
3717 processing_current_prefix.
3718 (read_type_die): Do not set processing_current_prefix. Handle
3719 DW_TAG_namespace.
3720 (determine_prefix): Handle specifications. Return the result
3721 on the objfile obstack. Handle unions correctly.
3722
df8a16a1
DJ
37232008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3724
3725 * buildsym.c (add_symbol_to_list): Do not call
3726 cp_scan_for_anonymous_namespaces here.
3727 (finish_block): Do not call cp_set_block_scope here.
3728 * cp-namespace.c (processing_has_namespace_info)
3729 (processing_current_prefix): Delete.
3730 (cp_initialize_namespace): Do not initialize
3731 processing_has_namespace_info.
3732 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
3733 not check processing_has_namespace_info.
3734 (cp_set_block_scope): Take prefix and namespace info flag as
3735 arguments. Honor namespaces regardless of a demangled name.
3736 * cp-support.h (processing_has_namespace_info)
3737 (processing_current_prefix): Delete declarations.
3738 (cp_set_block_scope): Update prototype.
3739 * dwarf2read.c (processing_has_namespace_info)
3740 (processing_current_prefix): New static variables.
3741 (read_file_scope): Initialize processing_has_namespace_info.
3742 (read_func_scope): Call cp_set_block_scope for C++.
3743 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
3744 * symtab.c (symbol_demangled_name): Accept a const argument.
3745 * symtab.h (symbol_demangled_name): Update prototype.
3746
3567439c
DJ
37472008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3748
3749 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
3750 * blockframe.c (find_pc_partial_function): Likewise.
3751 * buildsym.c (find_symbol_in_list): Likewise.
3752 * c-valprint.c (c_val_print): Likewise.
3753 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
3754 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
3755 * cp-support.c (cp_remove_params): Renamed from remove_params and
3756 made global.
3757 (overload_list_add_symbol): Update call to remove_params.
3758 * cp-support.h (cp_remove_params): Declare.
3759 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
3760 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
3761 * expprint.c (dump_subexp_body_standard): Likewise.
3762 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
3763 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
3764 for messages.
3765 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
3766 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3767 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3768 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
3769 symbols and SYMBOL_PRINT_NAME for messages.
3770 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3771 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
3772 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
3773 SYMBOL_SET_LINKAGE_NAME.
3774 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
3775 * minsyms.c (add_minsym_to_demangled_hash_table): Use
3776 SYMBOL_SEARCH_NAME.
3777 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
3778 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
3779 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
3780 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
3781 (address_info): Use SYMBOL_PRINT_NAME for messages and
3782 SYMBOL_LINKAGE_NAME for lookups.
3783 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
3784 * stabsread.c (patch_block_stabs, define_symbol)
3785 (read_type, read_enum_type, common_block_end)
3786 (cleanup_undefined_types_1, scan_file_globals): Use
3787 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
3788 and SYMBOL_PRINT_NAME.
3789 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
3790 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
3791 cp_remove_params instead of cplus_demangle.
3792 (print_block_frame_labels, print_frame_arg_vars): Use
3793 SYMBOL_LINKAGE_NAME.
3794 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
3795 SYMBOL_LINKAGE_NAME.
3796 (dump_symtab_1, print_symbol, print_partial_symbols)
3797 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
3798 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
3799 (SYMBOL_SET_LINKAGE_NAME): New.
3800 (SYMBOL_SET_NAMES): Add a comment.
3801 * tracepoint.c (set_traceframe_context, validate_actionline)
3802 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
3803 lookups and SYMBOL_PRINT_NAME for output.
3804 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
3805 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3806
aded6f54
PA
38072008-08-21 Pedro Alves <pedro@codesourcery.com>
3808
3809 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
3810 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
3811 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
3812 obj_section_addr and obj_section_endaddr.
3813 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
3814 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3815 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
3816 (find_extant_func_descr): Likewise.
3817 * solib-frv.c (frv_relocate_main_executable): Use
3818 obj_section_addr.
3819 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
3820 obj_section_addr and obj_section_endaddr.
3821
158c7665
PH
38222008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
3823
3824 * NEWS: Amplify last entry on boolean types in Ada.
3825
f2f0e013
DJ
38262008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3827
3828 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
3829 Make the dwarf2_cu * parameter output as well as input. Update it if
3830 we follow a reference to another CU.
3831 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
3832 (die_type, die_containing_type): Update calls to changed functions.
3833 Use the returned CU along with the returned DIE.
3834 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
3835
03dd20cc
DJ
38362008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3837
3838 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
3839 in the DIEs here.
3840 (process_queue): Do not read in the DIEs here.
3841 (psymtab_to_symtab_1): Update call to queue_comp_unit.
3842 (read_full_die): Do not call queue_comp_unit from here.
3843 (maybe_queue_comp_unit): New function.
3844 (follow_die_ref): Use it.
3845
b60c80d6
DJ
38462008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3847
3848 * dwarf2read.c (struct attribute): Move earlier.
3849 (struct die_info): Change attrs to a trailing array.
3850 (dwarf_alloc_die): Take the number of attributes. Allocate space
3851 for them.
3852 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3853 allocate attributes.
3854
51545339
DJ
38552008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3856
3857 * dwarf2read.c (REF_HASH_SIZE): Delete.
3858 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3859 (struct die_info): Remove next_ref.
3860 (store_in_ref_table): Remove offset argument. Rewrite to use
3861 htab_find_slot_with_hash.
3862 (die_hash, die_eq): New.
3863 (read_comp_unit): Allocate the die_hash.
3864 (read_die_and_children): Update call to store_die_ref.
3865 (follow_die_ref): Rewrite to use htab_find_with_hash.
3866
7475d072
DJ
38672008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3868
3869 * dwarf2read.c (free_die_list, copy_die): Delete.
3870 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3871 on the obstack.
3872 (read_full_die): Update call to dwarf_alloc_die. Allocate
3873 attributes on the CU obstack.
3874 (free_one_comp_unit): Do not call free_die_list.
3875
1d325ec1
DJ
38762008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3877
3878 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3879 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3880 sibling list.
3881 (read_full_die): Do not allocate DIEs for abbrev 0.
3882 (follow_die_ref): Correct error message.
3883
b96e2927
PA
38842008-08-20 Pedro Alves <pedro@codesourcery.com>
3885
3886 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
3887 there are no symbols loaded, instead of throwing a generic error.
3888 (decode_variable): Likewise.
3889
f1f6aadf
PA
38902008-08-20 Pedro Alves <pedro@codesourcery.com>
3891
3892 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
3893 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
3894 macros.
3895 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
3896 and offset. Use size_t instead of unsigned long.
3897 (build_objfile_section_table): Use size_t instead of unsigned
3898 long.
3899 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
3900 gone.
3901 (find_pc_sect_section): Use obj_section_addr and
3902 obj_section_endaddr.
3903 * symfile.c (symfile.c): Remove code that maps sections
3904 offsets in "addr" to the object's sections.
3905 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3906 * gcore.c (gcore_create_callback): Use obj_section_addr and
3907 obj_section_endaddr.
3908 * maint.c (print_objfile_section_info): Likewise.
3909 * printcmd.c (sym_info): Use obj_section_addr and
3910 obj_section_endaddr.
3911 * symtab.c (fixup_section): Likewise.
3912
3923a2b2
MK
39132008-08-20 Mark Kettenis <kettenis@gnu.org>
3914
3915 * sparc-tdep.c: Make some comments catch up with reality.
3916
b3eb342c
VP
39172008-08-20 Vladimir Prus <vladimir@codesourcery.com>
3918
3919 * NEWS: Mention 'set target-async'
3920
7f7efbd9
VP
39212008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3922
3923 * infrun.c (resume): If the thread is placed to the deferred step
3924 queue, mark it as running.
3925
9908b566
VP
39262008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3927
3928 Make sure target supports non-stop.
3929 * infcmd.c (run_command_1, attach_command): If non-stop mode
3930 is requested, verify the target supports it.
3931 * linux-nat.c (linux_nat_supports_non_stop): New.
3932 (linux_nat_add_target): Register the above.
3933 * target.c (find_default_supports_non_stop)
3934 (target_supports_non_stop): New.
3935 (init_dummy_target): Register find_default_supports_non_stop.
3936 * target.h (struct target_ops): New field to_supports_non_stop.
3937 (target_supports_non_stop): New.
3938
c6ebd6cf
VP
39392008-08-19 Pedro Alves <pedro@codesourcery.com>
3940 Vladimir Prus <vladimir@codesourcery.com>
3941
3942 * target.c (target_async_permitted, target_async_permitted_1)
3943 (set_maintenance_target_async_permitted)
3944 (show_maintenance_target_async_permitted): New.
3945 (initialize_targets): Register 'set target-async'.
3946 * target.h (target_async_permitted): Declare.
3947 * linux-nat.c (linux_nat_async_enabled)
3948 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
3949 (show_maintenance_linux_async_permitted): Remove.
3950 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
3951 (get_pending_events, linux_nat_async): Use target_async_permitted.
3952 (linux_nat_set_async_mode): Remove, moving the only used bits
3953 into...
3954 (linux_nat_setup_async): This.
3955 (_initialize_linux_nat): Do not register 'maint set linux-async'.
3956 Use linux_nat_setup_async.
3957 * remote.c (remote_async_permitted, remote_async_permitted_set)
3958 (set_maintenance_remote_async_permitted)
3959 (show_maintenance_remote_async_permitted): Remove.
3960 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
3961 (remote_is_async_p): Use target_async_permitted.
3962 (_initialize_remote): Don't register 'main set remote-async'.
3963 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
3964 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
3965 * mi/mi-main.c (mi_cmd_list_target_features): New.
3966
073120b9
VP
39672008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3968
3969 * target.c (maybe_kill_then_attach)
3970 (maybe_kill_then_create_inferior): Remove.
3971 (update_current_target): Do not default to_attach,
3972 to_create_inferiour, to_is_async_p.
3973
690cc4eb 39742008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
3975
3976 Changes for supporting boolean types in debugging data.
690cc4eb
PH
3977 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
3978 API to return LONGEST values rather than struct values.
3979 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
3980 and discrete_type_high_bound.
3981 (to_fixed_range_type): Create a range type in cases where
3982 argument is base type and its limits are representable as ints.
3983 (ada_is_modular_type): Correct so that base type must be integral.
3984 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
3985 keywords when they appear alone, since we are phasing out
bfb8797a 3986 direct representation of these identifiers in debugging data.
690cc4eb
PH
3987 * ada-exp.y: Define 'true' and 'false' as primaries.
3988 (type_boolean): New function.
3989 (type_int,type_long,type_long_long,type_floattype_double)
3990 (type_long_double): Remove uses of current_gdbarch for consistency
3991 with type_boolean.
3992 (write_int): Change comment to indicate that it might write boolean
3993 constant as well.
3994 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
3995 type, since will no longer be represented as enumerated type in
3996 debugging data.
3997 * ada-valprint.c (print_optional_low_bound): Handle boolean case
3998 as well.
bfb8797a
PH
3999 * NEWS: Note support boolean types.
4000
39540081
PA
40012008-08-18 Pedro Alves <pedro@codesourcery.com>
4002
4003 * bsd-uthread.c (bsd_uthread_close): New.
4004 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4005 target.
4006 (bsd_uthread_solib_loaded): Fix typo.
4007 (bsd_uthread_target): Register bsd_uthread_close.
4008
87ab71f0
PA
40092008-08-18 Pedro Alves <pedro@codesourcery.com>
4010
4011 * corelow.c (core_open): Assume there was no upper layer left
4012 behind from a previous inferior.
4013 * target.c (pop_all_targets): Rename to ...
4014 (pop_all_targets_above): ... this. Add a target stratum
4015 parameter. Use it instead of hardcoding the dummy_stratum.
4016 (pop_all_targets): New, defer to pop_all_targets_above.
4017 (target_preopen): Use pop_all_targets_above.
4018 * target.h (pop_all_targets_above): Declare.
4019
5231c1fd
PA
40202008-08-18 Pedro Alves <pedro@codesourcery.com>
4021
4022 * gdbthread.h (thread_change_ptid): Declare.
4023 * infrun.c (infrun_thread_ptid_changed): New.
4024 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4025 thread_ptid_changed observer.
4026 * regcache.c (regcache_thread_ptid_changed): New.
4027 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4028 thread_ptid_changed observer.
4029 * thread.c (thread_change_ptid): New.
4030
f98dfd4b
TT
40312008-08-18 Tom Tromey <tromey@redhat.com>
4032
4033 * symfile.c (reread_symbols): Update.
4034 * solib-sunos.c (allocate_rt_common_objfile): Update.
4035 * objfiles.c (allocate_objfile): Update.
4036 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4037 Remove.
4038
d87ecdfb
TT
40392008-08-18 Tom Tromey <tromey@redhat.com>
4040
4041 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4042 obstack.
4043
46a9b8ed
DJ
40442008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4045
4046 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4047 lr_register.
4048 (rs6000_in_function_epilogue_p): Check for bctr.
4049 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4050 number. Set gpr_mask and used_bl. Continue scanning while some
4051 expected registers are not saved. Set lr_register if LR is not
4052 stored.
4053 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4054
44feb3ce
TT
40552008-08-17 Tom Tromey <tromey@redhat.com>
4056
4057 PR gdb/1535:
4058 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4059 (ep_find_event_name_end): Remove.
4060 (catch_fork_temporary, catch_vfork_temporary,
4061 catch_fork_permanent, catch_vfork_permanent): New constants.
4062 (catch_vfork, catch_fork): Remove.
4063 (catch_fork_command_1): Add 'command' argument. Remove
4064 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4065 all cases.
4066 (catch_exec_command_1): Add 'command' argument; remove
4067 'tempflag'. Handle NULL 'arg'.
4068 (catch_load_command_1): Likewise.
4069 (catch_unload_command_1): Likewise.
4070 (catch_ada_exception_command): Likewise.
4071 (catch_assert_command): Likewise.
4072 (catch_catch_command): New function.
4073 (catch_throw_command): Likewise.
4074 (catch_command_1): Remove.
4075 (catch_command): Just call error.
4076 (tcatch_command): Likewise.
4077 (catch_cmdlist): New global.
4078 (tcatch_cmdlist): Likewise.
4079 (add_catch_command): New function.
4080 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4081 commands. Create all catch sub-commands.
4082
0d6431e2
PA
40832008-08-17 Pedro Alves <pedro@codesourcery.com>
4084
4085 * gdbthread.h: Add comments.
4086 * stack.c (get_selected_block): Return 0 on an exited thread.
4087 * top.c (execute_command): Check for is_stopped, not !is_running.
4088 * event-top.c (command_handler): Likewise.
4089
8931f526
PA
40902008-08-16 Pedro Alves <pedro@codesourcery.com>
4091
4092 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4093 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4094 (mi_cmd_exec_finish): Remove "return".
4095
aa76d38d
PA
40962008-08-16 Pedro Alves <pedro@codesourcery.com>
4097
4098 * target.h (pop_all_targets): Declare.
4099 * target.c (pop_all_targets): New.
4100 * top.c (quit_target): Pop all targets instead of just closing the
4101 current.
4102
311a4e6b
TJB
41032008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4104 Thiago Jung Bauermann <bauerman@br.ibm.com>
4105
4106 * cli-script.c (read_next_line): Add parse_commands argument.
4107 (recurse_read_control_structure): Adapt to new read_next_line
4108 signature.
4109 (read_command_lines): Add parse_commands argument.
4110 (define_command): Adapt to new read_command_lines signature.
4111 (document_command): Likewise.
4112 * breakpoint.c (commands_command): Likewise.
4113 * defs.h (read_command_lines): Adjust function prototype.
4114
24209737
PH
41152008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4116
4117 * ada-lang.c (pos_atr): Account for the possibility that the
4118 argument may be a reference.
4119
9f1d5432
PH
41202008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4121
4122 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4123 ('F' format) for @FIX names generated by the loader, retaining only
4124 the minimal symbols (and no partial symbol tables) for these names.
4125 Fixes warning messages about symbols that are found in partial
4126 symbol tables, but not full symbol tables.
4127
83c265ab
PA
41282008-08-16 Pedro Alves <pedro@codesourcery.com>
4129
4130 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4131 stopping quietly.
4132
604c2f83
LM
41332008-08-15 Luis Machado <luisgpm@br.ibm.com>
4134
4135 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4136 Include "features/rs6000/powerpc-vsx64.c".
4137 (ppc_supply_vsxregset): New function.
4138 (ppc_collect_vsxregset): New function.
4139 (IS_VSX_PSEUDOREG): New macro.
4140 (IS_EFP_PSEUDOREG): New macro.
4141 (vsx_register_p): New function.
4142 (ppc_vsx_support_p): New function.
4143 (rs6000_builtin_type_vec128): New function.
4144 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4145 correct names for VSX registers and EFPR registers.
4146 (rs6000_pseudo_register_type): Return correct types for VSX
4147 and EFPR registers.
4148 (rs6000_pseudo_register_reggroup_p): Return correct group for
4149 VSX and EFPR registers.
4150 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4151 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4152 (vsx_pseudo_register_read): New function.
4153 (vsx_pseudo_register_write): New function.
4154 (efpr_pseudo_register_read): New function.
4155 (efpr_pseudo_register_write): New function.
4156 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4157 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4158 (rs6000_gdbarch_init): Declare have_vsx.
4159 Initialize new upper half VSX registers.
4160 Initialize VSX-related and EFPR-related pseudo-registers variables.
4161 Adjust the number of pseudo registers accordingly.
4162
4163 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4164 and SIZEOF_VSRREGS.
4165 (gdb_vsxregset_t): New type.
4166 (have_ptrace_getsetvsxregs): New variable.
4167 (fetch_vsx_register): New function.
4168 (fetch_register): Handle VSX registers.
4169 (fetch_vsx_registers): New function.
4170 (fetch_ppc_registers): Handle VSX registers.
4171 (store_ppc_registers): Handle VSX registers.
4172 (store_vsx_register): New function.
4173 (store_register): Handle VSX registers.
4174 (store_vsx_registers): New function.
4175 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4176 (gdb_vsxregset_t): New type.
4177 (supply_vsxregset): New function.
4178 (fill_vsxregset): New function.
4179
4180 * ppc-tdep.h (vsx_register_p): New prototype.
4181 (vsx_support_p): New prototype.
4182 (ppc_vsr0_regnum): New variable.
4183 (ppc_vsr0_upper_regnum): Likewise.
4184 (ppc_efpr0_regnum): Likewise.
4185 (ppc_builtin_type_vec128): New type.
4186 (ppc_num_vsrs): New constant.
4187 (ppc_num_vshrs): New constant.
4188 (ppc_num_efprs): Likewise.
4189 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4190 (ppc_supply_vsxregset): New prototype.
4191 (ppc_collect_vsxregset): New prototype.
4192
4193 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4194 Include "features/rs6000/powerpc-vsx64l.c".
4195 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4196 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4197 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4198 (ppc_linux_regset_from_core_section): Handle VSX core section.
4199 (ppc_linux_core_read_description): Support VSX-enabled core files.
4200
4201 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4202 Declare tdesc_powerpc_vsx64l
4203
4204 * corelow.c (get_core_register_section): Support VSX-enabled
4205 core files.
4206
4207 * features/rs6000/power-vsx.xml: New VSX descriptions.
4208 * features/rs6000/powerpc-vsx32.xml: New file.
4209 * features/rs6000/powerpc-vsx32l.xml: New file.
4210 * features/rs6000/powerpc-vsx64.xml: New file.
4211 * features/rs6000/powerpc-vsx64l.xml: New file.
4212 * features/rs6000/powerpc-vsx32.c: New file (generated).
4213 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4214 * features/rs6000/powerpc-vsx64.c: New file (generated).
4215 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4216 * features/Makefile: Updated with new descriptions.
4217 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4218 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4219
dde7c0a9
VP
42202008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4221
4222 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4223 call linux_target twice.
4224
ebd67d87
AR
42252008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4226
4227 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4228 solib-svr4.c
4229 (LM_ADDR): Use l_addr if available; if not, use link map and set
4230 l_addr.
4231
886a217c
TT
42322008-08-14 Tom Tromey <tromey@redhat.com>
4233
4234 * macrocmd.c (macro_define_command): Check for NULL argument.
4235 (macro_undef_command): Likewise.
4236
3d488bfc
PA
42372008-08-14 Pedro Alves <pedro@codesourcery.com>
4238
4239 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4240
33e5cbd6
PA
42412008-08-13 Pedro Alves <pedro@codesourcery.com>
4242
4243 * breakpoint.c (always_inserted_auto, always_inserted_on)
4244 (always_inserted_off, always_inserted_enums): New.
4245 (always_inserted_mode): Change type to char* and point to
4246 always_inserted_auto.
4247 (show_always_inserted_mode): In auto mode, also show the current
4248 effect of the option.
4249 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4250 (_initialize_breakpoint): Make the "set breakpoints
4251 always-inserted" command an enum command. Extend help to describe
4252 the auto mode.
4253
8fbde58b
UW
42542008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4255
4256 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4257 query valid) bit. Ignore bits outside the condition field.
4258 (info_spu_proxydma_command): Ignore bits outside the field.
4259
11fa8e43
MS
42602008-08-12 Michael Snyder <msnyder@vmware.com>
4261
4262 * MAINTAINERS: Update my email address.
4263
fcb09a75
UW
42642008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4265
4266 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4267
a6f3e723
SL
42682008-08-12 Pedro Alves <pedro@codesourcery.com>
4269
4270 Add no-ack mode to the remote protocol --- optionally stop ACKing
4271 packets and responses when we have a reliable communication
4272 medium.
4273
4274 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4275
4276 * remote.c (struct remote_state): Add noack_mode field.
4277 (PACKET_QStartNoAckMode): New.
4278 (remote_start_remote): Don't any outstanding packet here.
4279 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4280 here. Activate noack mode if requested.
4281 (remote_protocol_features): Add QStartNoAckMode.
4282 (remote_open_1):
4283 (putpkt_binary): Don't send ack in noack mode.
4284 (read_frame): Don't recompute the checksum in noack mode.
4285 (getpkt_sane): Skip sending ack if in noack mode.
4286 (_initialize_remote): Add set/show remote noack mode.
4287 * NEWS: Note the new features.
4288
8ab3d180
KB
42892008-08-11 Kevin Buettner <kevinb@redhat.com>
4290
4291 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4292 New macros.
4293 (rs6000_skip_main_prologue): New function.
4294 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4295
63a61bf6
SL
42962008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4297
4298 * MAINTAINERS (Write After Approval): Add self.
4299
9d4fde75
SS
43002008-08-11 Stan Shebs <stan@codesourcery.com>
4301
4302 ARM BE8 support.
4303 * disasm.c (gdb_disassemble_info): Set endian_code.
4304 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4305 * gdbarch.h, gdbarch.c: Regenerate.
4306 * arch-utils.c (initialize_current_architecture): Set the
4307 default byte_order_for_code.
4308 (gdbarch_info_init): Ditto.
4309 (gdbarch_info_fill): Ditto.
4310 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4311 (thumb_analyze_prologue): Swap halfword if code endianness is
4312 different from general endianness.
4313 (arm_skip_prologue): Similarly.
4314 (arm_scan_prologue): Ditto.
4315 (thumb_get_next_pc): Ditto.
4316 (arm_get_next_pc): Ditto.
4317 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4318 choose correct endianness for breakpoints.
4319
6c613132
PA
43202008-08-10 Pedro Alves <pedro@codesourcery.com>
4321
4322 * bsd-kvm.c: Include "gdbthread.h".
4323 (bsd_kvm_ptid): New.
4324 (bsd_kvm_open): Add a main thread.
4325 (bsd_kvm_close): Delete it.
4326 (bsd_kvm_thread_alive): New.
4327 (bsd_kvm_pid_to_str): New.
4328 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4329 bsd_kvm_pid_to_str.
4330 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4331
6eb7ee03
PA
43322008-08-09 Pedro Alves <pedro@codesourcery.com>
4333
4334 * buildsym.c (start_subfile): Properly cast sentinel in concat
4335 call.
4336 * cp-name-parser.y: Include "config.h".
4337 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4338 concat call.
4339 * gdb_select.h: Include sys/time.h if sys/select.h is not
4340 available.
4341
444c3224
PA
43422008-08-09 Pedro Alves <pedro@codesourcery.com>
4343
4344 * go32-nat.c: Include "gdbthread.h".
4345 (go32_stop, go32_kill_inferior): Delete the main thread.
4346 (go32_create_inferior): Add it.
4347 (go32_thread_alive, go32_pid_to_str): New.
4348 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4349
9d0b3624
PA
43502008-08-09 Pedro Alves <pedro@codesourcery.com>
4351
4352 * go32-nat.c (fetch_register, store_register): Pass the regcache
4353 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4354 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4355 (struct seg_descr, struct seg_descr): pack the whole struct
4356 instead of each member individually.
4357
509238d6
AS
43582008-08-09 Andreas Schwab <schwab@suse.de>
4359
4360 * python/python.c (_initialize_python): Use unabbreviated commands
4361 in prefix name.
4362
c068b4e8
DJ
43632008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4364
4365 * Makefile.in (stamp-h): Also create .deps.
4366
21374e5f
TT
43672008-08-09 Tom Tromey <tromey@redhat.com>
4368
4369 * Makefile.in (generated_files): Add GNULIB_H.
4370
7be67755
DA
43712008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4372
4373 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4374 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4375 Revise comment.
4376 (pa64_current_sos): Remove map private warning warning.
4377 * solib-som.c: Include string.h and sys/utsname.h.
4378 (get_hpux_major_release): New function.
4379 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4380 about shared library private mapping on HP-UX 11 and later. Only force
4381 private mapping of shared libraries on HP-UX 10 and earlier.
4382 (link_map_start): Delete warning.
4383
e0c62198
L
43842008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4385 H.J. Lu <hongjiu.lu@intel.com>
4386 Mark Kettenis <kettenis@gnu.org>
4387
4388 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4389 (amd64_init_frame_cache): Initialize saved_sp_reg.
4390 (amd64_analyze_stack_align): New.
4391 (amd64_analyze_prologue): Call it.
4392 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4393 %rip to 8 when halfway aligning the stack.
4394
4395 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4396 AMD64_R14_REGNUM.
4397
4398 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4399 saved_sp_reg.
4400 (i386_alloc_frame_cache): Remove stack_align. Initialize
4401 saved_sp_reg to -1.
4402 (i386_analyze_stack_align): Rewrite.
4403 (i386_frame_cache): Use saved_sp_reg if it is valid.
4404
b9db4ced
UW
44052008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4406
4407 * target.c: Include "solib.h".
4408 (target_pre_inferior): Call no_shared_libraries.
4409 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4410 or clear_solib.
4411 (attach_command): Do not call clear_solib.
4412
3979a37f
MK
44132008-08-09 Mark Kettenis <kettenis@gnu.org>
4414
4415 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4416 the %eip register.
4417
2b26d9fa
TT
44182008-08-08 Tom Tromey <tromey@redhat.com>
4419
4420 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4421 POSTCOMPILE.
4422 (python-utils.o): Likewise.
4423
f1648876
AS
44242008-08-08 Andreas Schwab <schwab@suse.de>
4425
4426 * corefile.c (_initialize_core): Remove spurious paren from set
4427 gnutarget doc string.
4428
b7622095
LM
44292008-08-08 Luis Machado <luisgpm@br.ibm.com>
4430
4431 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4432 Define PPC_FEATURE_BOOKE.
b7622095
LM
4433 (ppc_linux_get_hwcap): New function.
4434 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4435 4-bytes alignment restrictions.
4436 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4437 positioning of the read/write flags.
4438 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4439 4-bytes alignment.
4440
2dc38344
PA
44412008-08-08 Pedro Alves <pedro@codesourcery.com>
4442
4443 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4444
4445 * win32-nat.c (win32_add_thread): Change thread argument type to
4446 ptid_t. Adjust.
4447 (win32_add_thread): Adjust.
4448 (win32_delete_thread): Change thread argument type to ptid_t.
4449 Adjust.
4450 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4451 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4452 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4453 (init_win32_ops): Put to_magic last.
4454 (win32_win32_thread_alive): Adjust.
4455
4d6c6261
PA
44562008-08-08 Pedro Alves <pedro@codesourcery.com>
4457
4458 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4459 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4460
e5ef4d75
PA
44612008-08-08 Pedro Alves <pedro@codesourcery.com>
4462
4463 * remote-m32r-sdi.c: Include "gdbthread.h".
4464 (remote_m32r_ptid): New.
4465 (m32r_close): Delete the main thread.
4466 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4467 main thread.
4468 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4469 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4470
a417dc56
RW
44712008-08-07 Tom Tromey <tromey@redhat.com>
4472 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4473
4474 * aclocal.m4, configure: Rebuild.
4475 * configure.in: Call ZW_CREATE_DEPDIR,
4476 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4477 (MAKE, GMAKE): New substs.
4478 * acinclude.m4: Include depstand.m4.
4479 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4480 COMPILE, POSTCOMPILE, depcomp): New variables.
4481 Remove all _h variables.
4482 Remove many .o targets.
4483 ($(srcdir)/copying.c): avoid backslash-newline after comment
4484 sign (@maintainer_mode_true@).
4485 (HFILES_NO_SRCDIR): Regenerate.
4486 (generated_files): New variable.
4487 (all_gdbtk_cflags): Likewise.
4488 (.c.o): Rewrote.
4489 (init.o, version.o, copying.o): Remove.
4490 (distclean): Remove DEPDIR.
4491 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4492 printcmd.o, procfs.o, v850ice.o): Rewrite.
4493 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4494 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4495 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4496 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4497 gdbtk-wrapper.o): Likewise.
4498 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4499 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4500 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4501 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4502 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4503 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4504 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4505 tui-wingeneral.o, tui-winsource.o): Likewise.
4506 (all_object_files): New variable.
4507 ($(all_object_files)): New target.
4508 Include dependency files, when using GNU Make.
4509
12ab8a60
UW
45102008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4511
4512 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4513 the valid bit set. Ensure display order respects partial
4514 order defined by dependency bits.
4515
6536cc32
DA
45162008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4517
4518 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4519 setup.
4520
f73a15e4
MK
45212008-08-06 Mark Kettenis <kettenis@gnu.org>
4522
4523 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4524 OpenBSD 4.3.
4525
d57a3c85
TJB
45262008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4527 Tom Tromey <tromey@redhat.com>
4528 Thiago Jung Bauermann <bauerman@br.ibm.com>
4529 Doug Evans <dje@google.com>
4530
4531 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4532 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4533 PYTHON_CFLAGS): New.
4534 (python_h, python_internal_h): New.
4535 (cli-script.o): Depend on python.h
4536 (python.o, python-utils.o): New.
4537 * cli/cli-script.c (print_command_lines): Handle python_control.
4538 (execute_control_command): Handle python_control.
4539 (execute_control_command_untraced): New function.
4540 (while_command): Call execute_control_command_untraced.
4541 (if_command): Likewise.
4542 (get_command_line): Remove static attribute.
4543 (read_next_line): Handle "python".
4544 (recurse_read_control_structure): Handle python_control.
4545 (read_command_lines): Handle python_control.
4546 Include python.h.
4547 * cli/cli-script.h (get_command_line): Add prototype.
4548 (execute_control_command_untraced): Likewise.
4549 * configure.ac: Add --with-python.
4550 * defs.h (enum command_control_type) <python_control>: New
4551 constant.
4552 * python/python-internal.h: New file.
4553 * python/python.c: New file.
4554 * python/python.h: New file.
4555 * python/python-utils.c: New file.
4556 * NEWS: Mention Python scripting support and its new commands.
4557
5141027d
UW
45582008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4559
4560 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4561
353cfe88
PM
45622008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4563
f1648876 4564 * MAINTAINERS (Write After Approval): Add self.
353cfe88 4565
d6b74ac4
PM
45662008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4567
4568 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4569 (insert_breakpoint_locations): Likewise.
4570
ef0d312a
MS
45712008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4572
4573 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4574 breakpoint.
4575 (set_longjmp_breakpoint): Likewise.
4576
fb6d93b2
UW
45772008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4578
4579 PR build/2490
4580 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4581 defined.
4582
e6ad058a
TT
45832008-08-05 Tom Tromey <tromey@redhat.com>
4584
4585 * bcache.c (deprecated_bcache_added): Initialize obstack.
4586 (bcache_xmalloc): Don't initialize obstack.
4587 (bcache_xfree): Conditionally free obstack.
4588 (bcache_memory_used): Update.
4589
11d31d94
TT
45902008-08-05 Tom Tromey <tromey@redhat.com>
4591
4592 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4593 bcache_full.
4594 (append_psymbol_to_list): Accept a const pointer.
4595 (add_psymbol_to_list): Fix const correctness.
4596 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4597 (bcache_full): Declare.
4598 * bcache.c (bcache_data, deprecated_bcache): Remove.
4599 (bcache): Use bcache_full.
4600 (bcache_full): Rename from deprecated_bcache_added. Change return
4601 type.
4602
5be973eb
SS
46032008-08-04 Stan Shebs <stan@codesourcery.com>
4604
4605 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4606 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4607 (enable_break): Remove test of BKPT_AT_SYMBOL.
4608
5062cc19
KS
46092008-08-02 Keith Seitz <keiths@redhat.com>
4610
4611 * acinclude.m4: Include ../config/tcl.m4 to pick up
4612 standard Tcl configury bits.
4613 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4614 * configure.ac: Don't check if ../itcl exists when building
4615 gdbtk. It could be installed.
4616 Rewrite gdbtk configury to allow for using system-supplied
f1648876 4617 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
4618 itcl and itk.
4619 * Makefile.in: Remove everything related to itcl and itk.
4620 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
4621 configure.ac.
4622 Remove v850ice.o build rule.
4623 (ALL_TCL_CFLAGS): New convenience defintion. Change all
4624 gdbtk sources to use it.
4625 * configure: Regenerate.
f1648876 4626
6d76a53d
SS
46272008-07-31 Stan Shebs <stan@codesourcery.com>
4628
4629 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
4630
ed7c5e43
SS
46312008-07-30 Stan Shebs <stan@codesourcery.com>
4632
4633 * objfiles.c (TARGET_KEEP_SECTION): Remove.
4634 (add_to_objfile_sections): Remove use.
4635
22ad7fee
TT
46362008-07-29 Tom Tromey <tromey@redhat.com>
4637
4638 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
4639 (lookup_cmd_composition): Likewise.
4640
d5529a84
TT
46412008-07-29 Tom Tromey <tromey@redhat.com>
4642
4643 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
4644 dead code. Fix indentation.
4645
938f4ca8
SS
46462008-07-29 Stan Shebs <stan@codesourcery.com>
4647
4648 * main.c (captured_main): Remove long-unused #if 0 blocks.
4649
7f4b89d1
TT
46502008-07-28 Tom Tromey <tromey@redhat.com>
4651
4652 * annotate.h (deprecated_annotate_starting_hook): Remove.
4653 (deprecated_annotate_stopped_hook): Remove.
4654 (deprecated_annotate_exited_hook): Remove.
4655 * Makefile.in (annotate.o): Depend on observer_h.
4656 * top.c (deprecated_delete_breakpoint_hook): Remove.
4657 (deprecated_create_breakpoint_hook): Likewise.
4658 (deprecated_modify_breakpoint_hook): Likewise.
4659 * interps.c (clear_interpreter_hooks): Update for removed hooks.
4660 * breakpoint.c (mention): Don't call removed hook.
4661 (delete_breakpoint): Likewise.
4662 (disable_breakpoint): Likewise.
4663 (do_enable_breakpoint): Likewise.
4664 * annotate.c: Include observer.h.
4665 (breakpoint_changed): Change type of argument.
4666 (_initialize_annotate): Register observers.
4667 (deprecated_annotate_starting_hook): Remove.
4668 (deprecated_annotate_stopped_hook): Remove.
4669 (deprecated_annotate_exited_hook): Remove.
4670 (annotate_starting): Update for hook removal.
4671 (annotate_stopped): Likewise.
4672 (annotate_exited): Likewise.
4673 * defs.h (deprecated_delete_breakpoint_hook): Remove.
4674 (deprecated_create_breakpoint_hook): Likewise.
4675 (deprecated_modify_breakpoint_hook): Likewise.
4676
8641e682
TT
46772008-07-28 Tom Tromey <tromey@redhat.com>
4678
4679 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
4680
064ef605
DJ
46812008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4682
4683 * configure.ac: Check for the GNU/Linux ptrace signature.
4684 * configure: Regenerated.
4685
57380f4e
DJ
46862008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4687
4688 * linux-nat.c (resume_callback): Add more debugging output.
4689 (linux_nat_has_pending_sigint): New function, based on
4690 linux_nat_has_pending.
4691 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
4692 (stop_wait_callback): Remove flush_mask handling. Honor
4693 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
4694 to recursive calls.
4695 (linux_nat_has_pending, flush_callback): Remove.
4696 (linux_nat_filter_event): Check for ignore_sigint.
4697 (linux_nat_wait): Remove flush_mask support and call to
4698 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
4699 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
4700
e09490f1
DJ
47012008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4702
4703 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
4704 report events from resumed threads.
4705
e38d4e1a
DJ
47062008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4707
4708 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
4709 (mips_linux_init_abi): Set tdep->syscall_next_pc.
4710 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
4711 mips-tdep.h.
4712 (mips32_next_pc): Handle the syscall instruction.
4713 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
4714 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
4715
fa8de41e
TT
47162008-07-26 Tom Tromey <tromey@redhat.com>
4717
4718 PR gdb/1158:
4719 * valops.c (value_struct_elt): Treat function-valued field as a
4720 static method.
4721
ccb3ac8a
TT
47222008-07-26 Tom Tromey <tromey@redhat.com>
4723
4724 PR gdb/1136:
4725 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
4726 longer tokens first.
4727
d72314c6
VP
47282008-07-26 Vladimir Prus <vladimir@codesourcery.com>
4729
4730 Kill cmd_async_ok.
f1648876
AS
4731 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
4732 (get_cmd_async_ok): Remove.
4733 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
4734 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
4735 * infcmd.c (_initialize_infcmd): Likewise.
4736 * thread.c (_initialize_thread): Likewise.
d72314c6 4737
5b68030f
JM
47382008-07-25 Joseph Myers <joseph@codesourcery.com>
4739
4740 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
4741 128-bit long doubles in even-odd pairs of FPRs. Do not
4742 right-align float arguments for big-endian.
4743 (mips_n32n64_return_value): Apply return value convention for
4744 structs containing one or two floating-point values to soft-float
4745 as well as hard-float. Handle 128-bit long doubles in such
4746 structs.
4747 (mips_o32_push_dummy_call): Only skip one integer register for a
4748 float argument passed in an FPR.
4749
383f836e
TT
47502008-07-25 Tom Tromey <tromey@redhat.com>
4751
4752 * tui/tui-hooks.c: Include observer.h.
4753 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
4754 Remove.
4755 (tui_bp_created_observer, tui_bp_deleted_observer,
4756 tui_bp_modified_observer): New globals.
4757 (tui_install_hooks): Use observers, not events.
4758 (tui_remove_hooks): Likewise.
4759 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
4760 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
4761 globals.
4762 (breakpoint_notify): Check mi_can_breakpoint_notify.
4763 (breakpoint_hooks): Remove.
4764 (mi_cmd_break_insert): Attach observers. Don't use events.
4765 * tracepoint.c: Include observer.h, not gdb-events.h.
4766 (tracepoint_operation, trace_pass_command): Notify observer.
4767 * interps.c: Don't include gdb-events.h.
4768 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
4769 * gdbarch.c: Rebuild.
4770 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
4771 (deprecated_current_gdbarch_select_hack): Notify observer.
4772 * breakpoint.h: Don't include gdb-events.h.
4773 * breakpoint.c: Don't include gdb-events.h.
4774 (condition_command): Notify observer.
4775 (commands_command): Likewise.
4776 (commands_from_control_command): Likewise.
4777 (mention, delete_breakpoint, set_ignore_count): Likewise.
4778 (disable_breakpoint, do_enable_breakpoint): Likewise.
4779 * Makefile.in (gdb_events_h): Remove.
4780 (breakpoint_h): Update.
4781 (COMMON_OBS): Remove gdb-events.o.
4782 (gdb-events.o): Remove.
4783 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
4784 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
4785 * gdb-events.c: Remove.
4786 * gdb-events.h: Remove.
4787 * gdb-events.sh: Remove.
4788
60e569b9
PA
47892008-07-24 Pedro Alves <pedro@codesourcery.com>
4790
4791 * remote.c (remote_threads_extra_info): Don't query the remote
4792 server about info on the internally added main thread.
4793
a6a7f2a5
AR
47942008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
4795
4796 * nto-procfs.c (procfs_attach): Populate initial thread list.
4797 (procfs_wait): Return new pid, built from the inferior status.
4798
e63e4db2
TJB
47992008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4800
4801 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
4802 * configure: Regenerate.
4803
14ef7606
AR
48042008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
4805
4806 * nto-procfs.c (procfs_xfer_memory): Changed signature.
4807 (procfs_resume): Workaround for dereferencing type-punned pointer
4808 warning.
f1648876 4809 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
4810 correct.
4811 * nto-tdep.h (nto_parse_redirection): Likewise.
4812
cfd8ab24
SS
48132008-07-21 Stan Shebs <stan@codesourcery.com>
4814
4815 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
4816 * gdbarch.sh: Adjust comment to refer to
4817 in_solib_dynsym_resolve_code().
4818 * gdbarch.h, gdbarch.c: Update.
4819 * solib-osf.c: Ditto.
4820 * infrun.c: Ditto.
4821 (handle_inferior_event): Use in_solib_dynsym_resolve_code
4822 unconditionally.
4823 * config/mips/nm-irix5.h: Remove undef of
4824 IN_SOLIB_DYNSYM_RESOLVE_CODE.
4825
781b42b0
TT
48262008-07-21 Tom Tromey <tromey@redhat.com>
4827
4828 * symfile.c (reread_symbols): Don't pass argument to observer.
4829 * exec.c (exec_file_attach): Don't pass argument to observer.
4830 * ada-lang.c (ada_executable_changed_observer): Remove argument.
4831 * symtab.c (symtab_observer_executable_changed): Remove argument.
4832 * observer.sh: Handle functions with no arguments.
4833
a366c65a 48342008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 4835 Chris Demetriou <cgd@google.com>
a366c65a
CD
4836
4837 * elfread.c (elf_symfile_segments): Fix the check that each loadable
4838 section fits within an ELF segment to handle ELF segments that hit
4839 the end of the address space.
4840
073d253f
CD
48412008-07-20 Chris Demetriou <cgd@google.com>
4842
4843 * MAINTAINERS (Write After Approval): Add self.
4844
d7d9f01e
TT
48452008-07-18 Tom Tromey <tromey@redhat.com>
4846
4847 PR gdb/855:
4848 * NEWS: Add entry for macro commands.
4849 * Makefile.in (macrocmd.o): Add gdb_string.h.
4850 * macroscope.h (user_macro_scope): Declare.
4851 (default_macro_scope): Update documentation.
4852 (macro_user_macros): Declare.
4853 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4854 Use user_macro_scope.
4855 (null_macro_lookup): Remove.
4856 * macrotab.h (macro_callback_fn): Declare.
4857 (macro_for_each): Likewise.
4858 (macro_allow_redefinitions): Likewise.
4859 * macrotab.c (foreach_macro): New function
4860 (macro_for_each): Likewise.
4861 (struct macro_table) <redef_ok>: New field.
4862 (macro_allow_redefinitions): New function.
4863 (new_macro_table): Update.
4864 (macro_define_function): Likewise.
4865 (macro_define_object): Likewise.
4866 * macroscope.c (user_macro_scope): New function.
4867 (default_macro_scope): Use it.
4868 (macro_user_macros): New global.
4869 (standard_macro_lookup): Look in macro_user_macros.
4870 (_initialize_macroscope): New function.
4871 * macroexp.h (macro_is_whitespace, macro_is_digit,
4872 macro_is_identifier_nondigit): Declare.
4873 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4874 (macro_is_digit): Likewise.
4875 (macro_is_identifier_nondigit): Likewise.
4876 (get_identifier): Update.
4877 (get_pp_number): Likewise.
4878 (get_token): Likewise.
4879 * macrocmd.c (skip_ws): New function.
4880 (extract_identifier): Likewise.
4881 (free_macro_definition_ptr): Likewise.
4882 (user_macros): Remove.
4883 (macro_define_command): Implement.
4884 (_initialize_macrocmd): Update.
4885 (macro_undef_command): Implement.
4886 (print_one_macro): New function.
4887 (macro_list_command): Implement.
4888
0f72fb1c
JM
48892008-07-18 Joseph Myers <joseph@codesourcery.com>
4890
4891 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
4892 in BFD ELF check.
4893 * configure: Regenerate.
4894
7c6467a4
PP
48952008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4896
4897 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
4898
680b56ce
AS
48992008-07-15 Andreas Schwab <schwab@suse.de>
4900
4901 * valops.c (value_cast_pointers): Follow typedefs when checking
4902 result of coercion.
4903
7f0df278
DJ
49042008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4905
4906 * block.c (block_function): Renamed to ...
4907 (block_linkage_function): ... this. All callers changed.
4908 * block.h (block_function): Renamed to ...
4909 (block_linkage_function): ... this.
4910
ba2c6aec
DJ
49112008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4912
4913 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
4914
d56907c1
DJ
49152008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4916
4917 * frame.c (frame_sp_unwind): Delete.
4918 (get_frame_sp): Do not use it.
4919 * frame.h (frame_sp_unwind): Delete prototype.
4920
f92aeb88
DJ
49212008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4922
4923 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
4924
ad1193e7
DJ
49252008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4926
4927 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
4928 * frame.c (frame_unwind_address_in_block): Delete.
4929 (get_frame_address_in_block): Do not use it. Check the type
4930 of the next frame first.
4931 (frame_cleanup_after_sniffer): Update comment.
4932 * frame.h (frame_unwind_address_in_block): Delete prototype.
4933 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4934
ef02daa9
DJ
49352008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4936
4937 * frame.c (frame_func_unwind): Delete.
4938 (get_frame_func): Do not use it.
4939 * frame.h (frame_func_unwind): Delete prototype.
4940 * hppa-tdep.c (hppa_frame_cache): Update comment.
4941 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
4942
96e32df8
SS
49432008-07-14 Stan Shebs <stan@codesourcery.com>
4944
4945 * remote-sim.c (init_gdbsim_ops): Remove
4946 TARGET_REDEFINE_DEFAULT_OPS.
4947
ab8650a3
DJ
49482008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4949
4950 * findvar.c (read_var_value): Remove unused variable.
4951
8c90c137
LM
49522008-07-15 Luis Machado <luisgpm@br.ibm.com>
4953
4954 * infrun.c (handle_inferior_event): Tag threads as stopped
4955 before inserting breakpoints.
4956
4098af0f
HZ
49572008-07-15 Hui Zhu <teawater@gmail.com>
4958
4959 * MAINTAINERS: Added myself to section Write After Approval.
4960
7093c834
PP
49612008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
4962
4963 PR gdb/2477
4964 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 4965
56514771
PA
49662008-07-14 Pedro Alves <pedro@codesourcery.com>
4967
4968 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
4969 (i386_dicos_push_dummy_code): New.
4970 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
4971 Register i386_dicos_push_dummy_code.
4972
74ed0bb4
MD
49732008-07-14 Markus Deuling <deuling@de.ibm.com>
4974
4975 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
4976 (mips_n32n64_push_dummy_call, mips_o64_return_value)
4977 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
4978
4979 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
4980 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
4981 (mips_n32n64_fp_arg_chunk_p): Update caller.
4982
4983 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
4984 (mips_n32n64_push_dummy_call): Update caller.
4985
4986 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
4987 current_gdbarch.
4988 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4989 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
4990
4991
4992 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
4993 current_gdbarch.
4994 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
4995 (mips_o64_push_dummy_call): Update caller.
4996
4997 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
4998 (fp_register_arg_p, mips_dump_tdep): Update caller.
4999
5000 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5001 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5002
5003 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5004 current_gdbarch.
5005 (mips32_scan_prologue): Update caller.
5006
5007 (heuristic_proc_start): Add gdbarch as parameter. Replace
5008 current_gdbarch.
5009 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5010
5011 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5012 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5013 the current architecture. Update call to getregs_supplies.
5014 (getregs_supplies): Add gdbarch as parameter and replace
5015 current_gdbarch.
5016
5017 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5018 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5019 NBSD_MIPS_JB_ELEMENT_SIZE.
5020 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5021 replace current_gdbarch.
5022
5023 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5024 current_gdbarch.
5025 (mips_fetch_registers, mips_store_registers): Update call
5026 to mips_map_regno.
5027 (mips_load): Use get_regcache_arch to get at the current_architecture
5028 and replace current_gdbarch.
5029
0c501536
PA
50302008-07-13 Pedro Alves <pedro@codesourcery.com>
5031
5032 * thread.c (restore_selected_frame): On fail to restore, select
5033 the innermost frame, and don't crash when warning the user.
5034
db009c8a
JB
50352008-07-13 Hui Zhu <teawater@gmail.com>
5036
5037 * symtab.c (expand_line_sal): Fix a memory leak.
5038
0ffe5012
PA
50392008-07-13 Pedro Alves <pedro@codesourcery.com>
5040
5041 * utils.c (struct continuation): Define as inheriting struct
5042 cleanup.
5043 (add_continuation, do_all_continuations)
5044 (discard_all_continuations, add_intermediate_continuation)
5045 (do_all_intermediate_continuations)
5046 (discard_all_intermediate_continuations): Adjust.
5047
dbba8251
VP
50482008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5049
5050 Skip varobj in running threads.
680b56ce
AS
5051 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5052 thread is not stopped, skip the varobj.
5053 * Makefile.in: Update dependencies.
dbba8251 5054
e3d6cd5f
VP
50552008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5056
5057 Enable all commands while inferiour is running
680b56ce
AS
5058 * mi/mi-main.c (mi_cmd_execute): Don't check if
5059 inferiour is executing.
e3d6cd5f 5060
b10a37b1
VP
50612008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5062
5063 Allow all CLI command even if target is executing.
680b56ce
AS
5064 * gdb/top.c (execute_command_1): Don't check if the inferiour
5065 is running.
b10a37b1 5066
ea069267
VP
50672008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5068
5069 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5070 Fix printing of frame, when frame is wrong.
5071
cdc9523a
UW
50722008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5073
5074 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5075 backchain is unreadable.
5076
d5b25491
UW
50772008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5078
5079 * spu-linux-nat.c: Include "gdbthread.h".
5080 (spu_child_post_startup_inferior): Register main thread.
5081 (spu_child_post_attach): Likewise.
5082 * Makefile.in (spu-linux-nat.o): Update dependencies.
5083
604ead4a
PA
50842008-07-12 Pedro Alves <pedro@codesourcery.com>
5085
5086 Rewrite continuations internals on top of cleanups and plug
5087 continuation arguments leaks.
5088
5089 * defs.h (struct continuation): Make it opaque.
5090 (add_continuation, add_intermediate_continuation): Drop the int
5091 argument of the continuation hook argument. Add
5092 continuation_free_args argument.
5093 (do_all_continuations, do_all_intermediate_continuations): Drop
5094 the error_p argument.
5095
5096 * utils.c (add_continuation): Drop the int argument of the
5097 continuation hook argument. Add continuation_free_args argument.
5098 Reimplement on top of cleanups.
5099 (do_all_continuations): Drop error argument. Reimplement on top
5100 of cleanups.
5101 (discard_all_continuations): Reimplement on top of cleanups.
5102 (add_intermediate_continuation): Drop the int argument of the
5103 continuation hook argument. Add continuation_free_args argument.
5104 Reimplement on top of cleanups.
5105 (do_all_intermediate_continuations): Drop error argument.
5106 Reimplement on top of cleanups.
5107 (discard_all_intermediate_continuations): Reimplement on top of
5108 cleanups.
5109
5110 * breakpoint.c (until_break_command_continuation): Drop error
5111 argument. Add xfree as continuation argument deleter.
5112
5113 * inf-loop.c (inferior_event_handler): On error, discard all
5114 continuations. Adjust to new do_all_intermediate_continuations
5115 and do_all_continuations interfaces.
5116
5117 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5118 Pass xfree as continuation argument deleter.
5119 (finish_command_continuation): Drop error_p argument. Adjust.
5120 (finish_command_continuation_free_arg): New.
5121 (finish_command): Pass finish_command_continuation_free_arg as
5122 continuation argument deleter. Adjust to new do_all_continuations
5123 interfaces.
5124 (attach_command_continuation): Drop error_p argument.
5125 (attach_command_continuation_free_args): New.
5126 (attach_command): Pass attach_command_continuation_free_args as
5127 continuation argument deleter.
5128
5129 * interps.c (interp_set): Adjust to new do_all_continuations
5130 interfaces.
5131
5132 * event-top.c (stdin_event_handler): In error, also discard the
5133 intermediate continuations.
5134
bfec99b2
PA
51352008-07-12 Pedro Alves <pedro@codesourcery.com>
5136
5137 Replace struct continuation_args by void* and per command structs.
5138
5139 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5140
5141 * breakpoint.c (struct until_break_command_continuation_args):
5142 New.
5143 (until_break_command_continuation): Take a void* instead of a
5144 continuations_arg. Adjust.
5145 (until_break_command): Adjust to use struct
5146 until_break_command_continuation_args instead of struct
5147 continuation_arg.
5148
5149 * infcmd.c (struct step_1_continuation_args): New.
5150 (step_1_continuation): Take a void* instead of a
5151 continuations_arg. Adjust to use struct step_1_continuation_args.
5152 (step_once): Adjust to use struct step_1_continuation_args.
5153
5154 (struct finish_command_continuation_args): New.
5155 (finish_command_continuation): Take a void* instead of a
5156 continuations_arg. Adjust to use struct
5157 finish_command_continuation_args.
5158 (finish_command): Adjust to use struct
5159 finish_command_continuation_args.
5160 (struct attach_command_continuation_args): New.
5161 (attach_command_continuation): Take a void* instead of a
5162 continuations_arg. Adjust to use struct
5163 attach_command_continuation_args.
5164 (attach_command): Adjust to use struct
5165 attach_command_continuation_args.
5166
5167 * defs.h (struct continuation_arg): Delete.
5168 (struct continuation): Replace the struct continuation_arg*
5169 parameter of continuation_hook by a void*. Replace "arg_list"
5170 member by a new "args" member with void* type.
5171 (add_continuation, add_intermediate_continuation): Replace struct
5172 continuation_arg type usages by void* usages.
5173
5174 * utils.c (add_continuation, do_all_continuations)
5175 (add_intermediate_continuation)
5176 (do_all_intermediate_continuations): Replace struct
5177 continuation_arg type usages by void* usages. Pass "args" instead
5178 of "arg_list".
5179
2afb61aa
PA
51802008-07-12 Pedro Alves <pedro@codesourcery.com>
5181
5182 * infrun.c (struct thread_stepping_state): Delete sal member.
5183 (init_thread_stepping_state): Add local sal. Use it instead of
5184 tss->sal.
5185 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5186 tss->sal.
5187 (step_into_function): Add local stop_func_sal. Use it instead of
5188 tss->sal.
5189
77ebaa5a
VP
51902008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5191
5192 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5193 * infcmd.c (continue_1): New, extracted from
5194 (continue_command): ...here.
5195 (interrupt_target_1): New, extracted from
5196 (interrupt_target_command): ...here.
5197 * inferior.h (continue_1, interrupt_target_1): New.
5198 * mi/mi-main.c (mi_cmd_exec_continue)
5199 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5200
1e92afda
VP
52012008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5202
5203 Implement --thread and --frame.
5204 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5205 * thread.c (find_thread_id): Make non-static.
5206 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5207 thread and frame, if necessary.
5208 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5209 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5210
d56b7306
VP
52112008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5212
5213 * infrun.c (resume): Discard cleanups on early exit path.
5214
b1a268e5
VP
52152008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5216
680b56ce 5217 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5218 were stopped.
5219
90139f7d
VP
52202008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5221
5222 Report thread state in -thread-info output.
680b56ce 5223 * thread.c (print_thread_info): Add new field "state".
90139f7d 5224
a0d21d28
PA
52252008-07-11 Pedro Alves <pedro@codesourcery.com>
5226
5227 * infrun.c (handle_inferior_event): Also ignore a
5228 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5229
14032a66
TT
52302008-07-11 Tom Tromey <tromey@redhat.com>
5231
5232 * completer.c (complete_line_internal): New function, from
5233 complete_line. Add 'for_help' parameter.
5234 (complete_line): Use it.
5235 (command_completer): Move later. Rewrite.
5236
65fc9b77
PA
52372008-07-11 Pedro Alves <pedro@codesourcery.com>
5238
5239 * thread.c (thread_apply_command): Move making the cleanup out of
5240 the loop.
5241
4f8d22e3
PA
52422008-07-11 Pedro Alves <pedro@codesourcery.com>
5243
5244 Exited threads.
5245
5246 * thread.c (enum thread_state): New.
5247 (thread_state main_thread_running): Delete, in favor of...
5248 (thread_state main_thread_state): ... this. Update throughout.
5249 (clear_thread_inferior_resources): New, split from free_thread.
5250 (free_thread): Call clear_thread_inferior_resources.
5251 (init_thread_list): Set main thread to stopped state.
5252 (add_thread_silent): Take care of PTID reuses.
5253 (delete_thread): If deleting inferior_ptid or a thread with
5254 refcount > 0, mark it as exited, but still keep it in the list.
5255 Only notify of thread exits, if we haven't done so yet.
5256 (iterate_over_threads): Make it safe to delete threads while
5257 iterating over them.
5258 (do_captured_list_thread_ids): Don't account for exited threads.
5259 (thread_alive): Check for the THREAD_EXITED state, and don't set
5260 ptid to -1 on exited threads.
5261 (set_running): Update to account for extra possible states.
5262 (is_thread_state): New.
5263 (is_stopped, is_exited): New.
5264 (is_running): Implement in terms of is_thread_state.
5265 (any_running): Update.
5266 (print_thread_info): Update. Account for exited threads. Don't
5267 warn about missed frame restoring here, its done in the cleanup.
5268 (switch_to_thread): Don't read from a thread that has gone.
5269 (restore_current_thread): In non-stop mode, do a full context
5270 switch.
5271 (restore_selected_frame): Add a frame_level argument. Rewrite.
5272 (struct current_thread_cleanup): Add selected_frame_level and
5273 was_stopped members.
5274 (do_restore_current_thread_cleanup): Check if thread was stopped
5275 and still is, and if the target has registers, stack and memory
5276 before restoring the selected frame. Don't delete the cleanup
5277 argument here.
5278 (restore_current_thread_cleanup_dtor): New.
5279 (make_cleanup_restore_current_thread): Remove all arguments.
5280 Rewrite.
5281 (thread_apply_all_command): Update. Prune threads.
5282 (thread_apply_command): Update.
5283 (thread_command): Account for currently selected exited thread.
5284 (do_captured_thread_select): Check for a running thread. Prune
5285 threads.
5286 (_initialize_thread): Make "info threads", "thread", "thread
5287 apply", and "thread apply all" appliable without a selected thread.
5288 * gdbthread.h (struct thread_info): Replace running_ by state_.
5289 Add refcount.
5290 (is_exited, is_stopped): Declare.
5291 (make_cleanup_restore_current_thread): Remove all arguments.
5292 * infrun.c: Include "event-top.h".
5293 (fetch_inferior_event): In non-stop mode, restore selected thread
5294 and frame after handling the event and running breakpoint
5295 commands. Display GDB prompt if needed.
5296 (normal_stop): In non-stop mode, don't print thread switching
5297 notice.
5298 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5299 (get_cmd_no_selected_thread_ok): New.
5300 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5301 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5302 Declare.
5303 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5304 no-selected-thread ok.
5305 * top.c (execute_command): Check for non no-selected-thread-ok
5306 commands.
5307 * linux-nat.c (struct saved_ptids, threads_to_delete)
5308 (record_dead_thread, prune_lwps): Delete.
5309 (exit_lwp): Unconditionally delete thread.
5310 (linux_nat_resume): Remove prune_lwps call.
5311 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5312 of is_running. Adjust to make_cleanup_restore_current_thread
5313 interface change.
5314 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5315 selected thread has exited.
5316 * inf-loop.c (inferior_event_handler): Don't display the prompt
5317 here.
5318 * varobj.c (c_value_of_root): Update.
5319 * defs.h (make_cleanup_dtor): Declare.
5320 * utils.c (make_cleanup_dtor): New.
5321
5322 * Makefile.in (infrun.o): Depend on $(event_top_h).
5323
8cae4b3f
PA
53242008-07-11 Pedro Alves <pedro@codesourcery.com>
5325
5326 Add "continue -a" and "interrupt -a" options for non-stop mode.
5327
5328 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5329 (continue_command): Add "-a" option.
5330 (interrupt_target_command): Add "-a" option.
5331 (_initialize_infcmd): Add extend help of continue and interrupt
5332 command to mention the new "-a" option. Mark "continue" async ok.
5333
bf250677
DE
53342008-07-10 Doug Evans <dje@google.com>
5335
5336 Add "set print symbol-loading on|off".
5337 * NEWS: Document new option.
5338 * symfile.h (print_symbol_loading): Declare.
5339 * symfile.c (print_symbol_loading): New global.
5340 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5341 from ..." if print_symbol_loading.
5342 (_initialize_symfile): Add set/show print symbol-loading.
5343 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5344 if print_symbol_loading.
5345
4c28f408
PA
53462008-07-10 Pedro Alves <pedro@codesourcery.com>
5347
5348 Non-stop linux native.
5349
5350 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5351 here.
5352 (get_pending_status): Implement non-stop mode.
5353 (linux_nat_detach): Stop threads before detaching.
5354 (linux_nat_resume): In non-stop mode, always resume only a single
5355 PTID.
5356 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5357 add new lwp to GDB's thread table, and mark as running, executing
5358 and stopped appropriately.
5359 (linux_nat_filter_event): Don't assume there are other running
5360 threads when a thread exits.
5361 (linux_nat_wait): Mark the main thread as running and executing.
5362 In non-stop mode, don't stop all lwps.
5363 (linux_nat_kill): Stop lwps before killing them.
5364 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5365 alive.
5366 (send_sigint_callback): New.
5367 (linux_nat_stop): New.
5368 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5369
5370 * linux-nat.h (thread_db_attach_lwp): Declare.
5371
5372 * linux-thread-db.c (thread_get_info_callback): Check for new
5373 threads if we have none.
5374 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5375 stopped lwp. Check for new threads if we have none.
5376 (thread_db_attach_lwp): New.
5377 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5378 (check_event): Set proc_handle.pid to the stopped lwp.
5379 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5380 lwp available, bail out if there is none.
5381
5382 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5383 PTRACE_KILL.
5384
0aef6ba2
KB
53852008-07-10 Kevin Buettner <kevinb@redhat.com>
5386
a4fafde3
KB
5387 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5388 `current_pc' from CORE_ADDR to ULONGEST.
5389
0aef6ba2
KB
5390 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5391 gdbsim_stop().
5392
10568435
JK
53932008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 * NEWS (New commands): Mention "set disable-randomization".
5396 * configure.ac: Add check for HAVE_PERSONALITY and
5397 HAVE_DECL_ADDR_NO_RANDOMIZE.
5398 * configure, config.in: Regenerate.
5399 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5400 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5401 ADDR_NO_RANDOMIZE.
5402 (disable_randomization, show_disable_randomization)
5403 (set_disable_randomization): New.
5404 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5405 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5406 variable DISABLE_RANDOMIZATION.
5407 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5408 DISABLE_RANDOMIZATION.
5409
f9c72d52
PA
54102008-07-09 Pedro Alves <pedro@codesourcery.com>
5411
5412 Adjust all targets to new target_stop interface.
5413
5414 * gnu-nat.c (gnu_stop): Add ptid argument.
5415 * go32-nat.c (go32_stop): Add ptid argument.
5416 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5417 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5418 * monitor.c (monitor_stop): Add ptid argument.
5419 (monitor_open): Pass inferior_ptid to monitor_stop.
5420 (monitor_interrupt): Pass inferior_ptid to target_stop.
5421 (monitor_stop): Add ptid argument.
5422 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5423 (procfs_create_inferior): Add ptid argument.
5424 * procfs.c (procfs_stop): Add ptid argument.
5425 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5426 * remote-sim.c (gdbsim_stop): Add ptid argument.
5427 * sol-thread.c (sol_thread_stop): Add ptid argument.
5428 * win32-nat.c (win32_stop): Add ptid argument.
5429
94cc34af
PA
54302008-07-09 Pedro Alves <pedro@codesourcery.com>
5431
5432 Non-stop inferior control.
5433
5434 * infrun.c (resume): In non-stop mode, always resume just one
5435 thread.
5436 (proceed): Don't call prepare_to_proceed in non-stop mode.
5437 (fetch_inferior_event): In non-stop mode, switch context before
5438 handling the event.
5439 (error_is_running, ensure_not_running): New.
5440 (handle_inferior_event): In non-stop mode: Mark only the event
5441 thread as stopped. Require that the target module manages adding
5442 threads to the thread list. Assert that there isn't a
5443 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5444 (normal_stop): Only mark not-running if inferior hasn't exited.
5445 In non-stop mode, only mark the event thread.
5446
5447 * thread.c:Include "cli/cli-decode.h".
5448 (print_thread_info): Don't read from a running thread.
5449 Output "(running)" if thread is running.
5450 (switch_to_thread): Don't read stop_pc if thread is executing.
5451 (do_restore_current_thread_cleanup): Don't write to a running
5452 thread.
5453 (thread_apply_all_command): Don't read from a running thread. In
5454 non-stop mode, do a full context-switch instead of just switching
5455 threads.
5456 (thread_apply_command): In non-stop mode, do a full context-switch
5457 instead of just switching threads.
5458 (do_captured_thread_select): Likewise. Inform user if selected
5459 thread is running.
5460 (_initialize_thread): Mark "info threads" and "thread" and
5461 async_ok.
5462
5463 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5464 unregister the target from the event loop.
5465
5466 * infcmd.c (continue_command, step_1, jump_command)
5467 (signal_command): Ensure the selected thread isn't running.
5468 (interrupt_target_command): In non-stop mode, interrupt only the
5469 selected thread.
5470
5471 * inferior.h (error_is_running, ensure_not_running): Declare.
5472
5473 * target.h (struct target_ops): Add ptid argument to the to_stop
5474 member.
5475 (target_stop): Add ptid_t argument.
5476
5477 * target.c (update_current_target): Add ptid argument to to_stop's
5478 type.
5479 (debug_to_stop): Add ptid_t argument.
5480 (debug_to_rcmd): Set to_stop_ptid.
5481
5482 * remote.c (remote_stop): Add ptid_t argument.
5483 (async_remote_interrupt): Add inferior_ptid to target_stop.
5484 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5485
5486 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5487
59f0d5d9
PA
54882008-07-09 Pedro Alves <pedro@codesourcery.com>
5489
5490 Don't rely on ecs->wait_for_more.
5491
5492 * infrun.c (proceed): Clear the stepping state, set
5493 previous_inferior_ptid and clear infwait state.
5494 (wait_for_inferior): Don't clear the stepping state, set
5495 previous_inferior_ptid, or clear the infwait state here.
5496 (fetch_inferior_event): Don't clear the stepping state, set
5497 previous_inferior_ptid, or clear the infwait state here. Don't
5498 condition on wait_for_more.
5499
0d1e5fa7
PA
55002008-07-09 Pedro Alves <pedro@codesourcery.com>
5501
5502 Refactor infrun a bit.
5503
5504 * infrun.c (currently_stepping): Take a struct
5505 thread_stepping_state instead of an execution_control_state.
5506 (struct thread_stepping_state): New, split from
5507 execution_control_state.
5508 (gtss, tss): New globals.
5509 (proceed): Clear the stepping state, set previous_inferior_ptid
5510 and clear infwait state.
5511 (init_wait_for_inferior): Clear the stepping state,
5512 previous_inferior_ptid and infwait state.
5513 (waiton_ptid, infwait_state): New, split from
5514 execution_control_state.
5515 (struct execution_control_state): Members that persist through
5516 events moved out to either struct thred_stepping_state or made
5517 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5518 (wait_for_inferior, fetch_inferior_event): Use local
5519 execution_control_state. Update to execution_control_state split.
5520 (init_execution_control_state): Adjust.
5521 (init_thread_stepping_state): New, extracted from
5522 init_execution_control_state.
5523 (context_switch): Take a ptid instead of an
5524 execution_control_state.
5525 (context_switch_to): Adjust.
5526 (adjust_pc_after_break): Adjust.
5527 (init_infwait_state): New.
5528 (handle_inferior_event): Adjust.
5529
a474d7c2
PA
55302008-07-09 Pedro Alves <pedro@codesourcery.com>
5531 Vladimir Prus <vladimir@codesourcery.com>
5532
5533 Per-thread commands.
5534
5535 * gdbthread.h: Remove unneeded forward declarations.
5536 Include "inferior.h".
5537 (struct thread_info): Add continuations,
5538 intermediate_continuations, proceed_to_finish, step_over_calls,
5539 stop_step, step_multi and stop_signal members.
5540 (save_infrun_state): Add continuations,
5541 intermediate_continuations, proceed_to_finish, step_over_calls,
5542 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5543 (load_infrun_state): Add continuations,
5544 intermediate_continuations, proceed_to_finish, step_over_calls,
5545 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5546
5547 * thread.c (load_infrun_state): In non-stop mode, load
5548 continuations, intermediate_continuations, proceed_to_finish,
5549 step_over_calls, stop_step, step_multi and stop_signal.
5550 (save_infrun_state): Store continuations,
5551 intermediate_continuations, proceed_to_finish, step_over_calls,
5552 stop_step, step_multi, stop_signal and stop_bpstat.
5553 (save_infrun_state): Store continuations,
5554 intermediate_continuations, proceed_to_finish, step_over_calls,
5555 stop_step, step_multi, stop_signal and stop_bpstat.
5556 (free_thread): Clear The thread's stop_bpstat.
5557
5558 * inferior.h (context_switch_to): Declare.
5559
5560 * infrun.c (ecss): New global.
5561 (context_switch): Context switch continuations,
5562 intermediate_continuations, proceed_to_finish, step_over_calls,
5563 stop_step, step_multi, stop_signal and stop_bpstat.
5564 (wait_for_inferior): Use global ecss.
5565 (async_ecss, async_ecs): Delete.
5566 (fetch_inferior_event): Use global ecss.
5567 (context_switch_to): New.
5568
5569 * top.c (execute_command): In non-stop, only check if the current
5570 thread is running, in all-stop, check if there's any thread
5571 running.
5572
5573 * breakpoint.c (bpstat_remove_breakpoint): New.
5574 (bpstat_remove_breakpoint_callback): New.
5575 (delete_breakpoint): Clear the stop_bpstats of all threads.
5576
5577 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5578 current thread is running, in all-stop, check if there's any
5579 thread running.
5580
5581 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5582
ad52ddc6
PA
55832008-07-09 Pedro Alves <pedro@codesourcery.com>
5584
5585 Add non_stop global.
5586
5587 * inferior.h (non_stop): Declare.
5588 * infrun.c (non_stop, non_stop_1): New.
5589 (set_non_stop, show_non_stop): New.
5590 (_initialize_infrun): Add "set/show non-stop" command.
5591
3a3e9ee3
PA
55922008-07-09 Pedro Alves <pedro@codesourcery.com>
5593
5594 Adjust fork/vfork/exec to pass ptids around.
5595
5596 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5597 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5598 Take a ptid_t.
5599 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5600 type to ptid.
5601 * breakpoint.c (print_it_typical, bpstat_check_location)
5602 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5603 (create_fork_vfork_event_catchpoint): Adjust.
5604 * infrun.c (fork_event): Change parent_pid and child_pid types to
5605 ptid.
5606 (follow_exec, inferior_has_forked, inferior_has_vforked)
5607 (inferior_has_execd): Take a ptid_t and don't trim it.
5608 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5609 * linux-nat.c (linux_child_follow_fork): Adjust.
5610 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5611 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5612 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5613
8ea051c5
PA
56142008-07-09 Pedro Alves <pedro@codesourcery.com>
5615
5616 Add "executing" property to threads.
5617
5618 * inferior.h (target_executing): Delete.
5619 * gdbthread.h (struct thread_info): Add executing_ field.
5620 (set_executing, is_executing): New.
5621 * thread.c (main_thread_executing): New.
5622 (init_thread_list): Clear it and also main_thread_running.
5623 (is_running): Return false if target has no execution.
5624 (any_running, is_executing, set_executing): New.
5625
5626 * top.c: Include "gdbthread.h".
5627 (target_executing): Delete.
5628 (execute_command): Replace target_executing check by any_running.
5629 * event-top.c: Include "gdbthread.h".
5630 (display_gdb_prompt, command_handler): Replace target_executing by
5631 is_running.
5632 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
5633 here. Replace target_executing by is_running.
5634 * infrun.c (handle_inferior_event): Mark all threads as
5635 not-executing.
5636 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
5637 here.
5638 * stack.c (get_selected_block): Return null if inferior is
5639 executing.
5640 * target.c (target_resume): Mark resumed ptid as executing.
5641 * breakpoint.c (until_break_command): Replace target_executing
5642 check by is_executing.
5643 * remote.c (remote_async_resume): Don't mark inferior as executing
5644 here.
5645 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5646 by any_running.
680b56ce 5647
8ea051c5
PA
5648 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5649 (mi_execute_async_cli_command): Replace target_executing by
5650 is_running.
5651
5652 * frame.c (get_current_frame): Error out if the current thread is
5653 executing.
5654 (has_stack_frames): New.
5655 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5656 has_stack_frames.
680b56ce 5657
8ea051c5
PA
5658 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
5659 $(gdbthread_h).
5660
4487aabf
PA
56612008-07-09 Pedro Alves <pedro@codesourcery.com>
5662
5663 * symfile.c (load_command): Reopen the exec file and reread
5664 symbols before anything else.
5665
9de2bdd7
PA
56662008-07-09 Pedro Alves <pedro@codesourcery.com>
5667
5668 * remote-sim.c: Include gdbthread.h.
5669 (remote_sim_ptid): New global.
5670 (gdbsim_create_inferior): Silently add the main task to GDB's
5671 thread list.
5672 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
5673 task from GDB's thread list.
5674 (gdbsim_resume): Adjust to use remote_sim_ptid.
5675 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
5676 (init_gdbsim_ops): Register gdbsim_thread_alive and
5677 gdbsim_pid_to_str.
5678 (_initialize_remote_sim): Initialize remote_sim_ptid.
5679 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
5680
5e0b29c1
PA
56812008-07-09 Pedro Alves <pedro@codesourcery.com>
5682
5683 * monitor (monitor_ptid): New global.
5684 (monitor_open): Silently add the main task to GDB's thread list.
5685 (monitor_close, monitor_mourn_inferior): Silently delete the main
5686 task from GDB's thread list.
5687 (monitor_thread_alive, monitor_pid_to_str): New.
5688 (init_base_monitor_ops): Register monitor_thread_alive and
5689 monitor_pid_to_str.
5690 (_initialize_remote_monitors): Initialize monitor_ptid.
5691
5692 * gdbthread.h (delete_thread_silent): Declare.
5693 * thread.c (delete_thread): Rename to ...
5694 (delete_thread_1): ... this. Add "silent" parameter. If silent,
5695 don't do exit notifications.
5696 (delete_thread, delete_thread_silent): New, as wrappers to
5697 delete_thread_1.
5698
b60e7edf
PA
56992008-07-08 Pedro Alves <pedro@codesourcery.com>
5700
5701 * breakpoint.c (update_global_location_list): Add boolean
5702 "should_insert" argument. Only insert locations if caller told it
5703 too.
5704 (update_global_location_list_nothrow): Add boolean "should_insert"
5705 argument. Pass it to update_global_location_list.
5706 (insert_breakpoints, create_longjmp_breakpoint)
5707 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
5708 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5709 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
5710 (enable_watchpoints_after_interactive_call_stop)
5711 (set_momentary_breakpoint, create_breakpoints)
5712 (break_command_really, watch_command_1)
5713 (create_ada_exception_breakpoint, update_breakpoint_locations)
5714 (do_enable_breakpoint, enable_command): Pass true to
5715 update_global_location_list.
5716 (bpstat_stop_status, disable_overlay_breakpoints)
5717 (disable_watchpoints_before_interactive_call_start)
5718 (delete_breakpoint, disable_breakpoint, disable_command): Pass
5719 false to update_global_location_list.
5720 (update_breakpoints_after_exec): Don't temporarily disable
5721 always-inserted mode.
5722
25b22b0a
PA
57232008-07-08 Pedro Alves <pedro@codesourcery.com>
5724
5725 * breakpoint.c (mark_breakpoints_out): Make public.
5726 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
5727 here. Update comment.
5728 * breakpoint.h (mark_breakpoints_out): Declare.
5729
5730 * linux-nat.c (linux_handle_extended_wait): On
5731 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
5732 * inf-ttrace.c (inf_ttrace_wait): Likewise.
5733
cce9b6bf
PA
57342008-07-08 Pedro Alves <pedro@codesourcery.com>
5735
5736 * infrun.c (follow_exec): Reset shared libraries before adding the
5737 main exec file.
5738
3c3185ac
JK
57392008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5740
5741 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
5742
42f0bc8e
PA
57432008-07-07 Pedro Alves <pedro@codesourcery.com>
5744
5745 * i386-dicos-tdep.c: Include "inferior.h".
5746 (i386_dicos_frame_align): New.
5747 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
5748 dummy location ON_STACK.
5749 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
5750
b7292df3
JB
57512008-07-07 Joel Brobecker <brobecker@adacore.com>
5752
5753 * gstdint.h: New file.
5754
bb599c81
VP
57552008-07-05 Vladimir Prus <vladimir@codesourcery.com>
5756
5757 * mi/mi-interp.c (mi_on_resume): Don't try to report
5758 resumed thread it the thread list is empty.
5759
7f6a6314
PM
57602008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
5761
5762 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
5763 completer for set to filename_completer.
680b56ce 5764
7f6a6314
PM
5765 NEWS: Mention it.
5766
711eabed
VP
57672008-07-04 Vladimir Prus <vladimir@codesourcery.com>
5768
5769 Implement -target-attach.
680b56ce 5770 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 5771
db3b9a10
MS
57722008-06-21 Hui Zhu <teawater@gmail.com>
5773
5774 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
5775
dc177b7a
PA
57762008-07-03 Pedro Alves <pedro@codesourcery.com>
5777
5778 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
5779 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
5780
5781 * target.h (struct target_ops): Add to_attach_no_wait member.
5782 (target_attach_no_wait): New.
5783 * target.c (update_current_target): Inherit to_attach_no_wait.
5784
5785 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
5786 target_attach_no_wait runtime check.
5787
5788 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
5789 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
5790 win32_ops.
5791
caac8896
PA
57922008-07-03 Pedro Alves <pedro@codesourcery.com>
5793
5794 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
5795 on debug_displaced being set.
5796
0d254d6f
DJ
57972008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5798
5799 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
5800 directly instead of get_frame_id.
5801
f74c6cad
LM
58022008-06-30 Luis Machado <luisgpm@br.ibm.com>
5803
5804 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
5805 (deal_with_atomic_sequence): Update BC masks.
5806 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
5807 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
5808
395f2fc2
DJ
58092008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5810
5811 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
5812 register, not the previous frame's.
5813
8340a3fb
LM
58142008-06-30 Luis Machado <luisgpm@br.ibm.com>
5815
5816 * source.c (select_source_symtab): Make sure we skip namespace
5817 symtabs when showing cpp source code.
5818
cfefc99a
HPN
58192008-06-30 Hans-Peter Nilsson <hp@axis.com>
5820
5821 * MAINTAINERS (Authorized committers): Fix my email address.
5822
1b98914a
VP
58232008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5824
5825 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
5826 -target-download and -target-select via CLI, so that
5827 the quoting rules are the same as they were (unfortunately)
5828 in all prior gdb releases.
5829 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
5830 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5831 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
5832 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5833 (mi_cmd_execute): Set current_token even for commands
5834 routed via CLI.
5835
94afd7a6
UW
58362008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
5837
5838 * alphafbsd-tdep.c: Update for unwinder changes.
5839 * alpha-linux-tdep.c: Likewise.
5840 * alphanbsd-tdep.c: Likewise.
5841 * alphaobsd-tdep.c: Likewise.
5842 * avr-tdep.c: Likewise.
5843 * cris-tdep.c: Likewise.
5844 * frv-linux-tdep.c: Likewise.
5845 * frv-tdep.c: Likewise.
5846 * h8300-tdep.c: Likewise.
5847 * hppa-linux-tdep.c: Likewise.
5848 * iq2000-tdep.c: Likewise.
5849 * m32c-tdep.c: Likewise.
5850 * m32r-linux-tdep.c: Likewise.
5851 * m32r-tdep.c: Likewise.
5852 * m68hc11-tdep.c: Likewise.
5853 * mep-tdep.c: Likewise.
5854 * mn10300-tdep.c: Likewise.
5855 * mt-tdep.c: Likewise.
5856 * score-tdep.c: Likewise.
5857 * sh64-tdep.c: Likewise.
5858 * sh-tdep.c: Likewise.
5859 * sparc64fbsd-tdep.c: Likewise.
5860 * sparc64nbsd-tdep.c: Likewise.
5861 * sparc64obsd-tdep.c: Likewise.
5862 * v850-tdep.c: Likewise.
5863 * vaxobsd-tdep.c: Likewise.
5864 * vax-tdep.c: Likewise.
5865 * xstormy16-tdep.c: Likewise.
5866
e111d6c9
VP
58672008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5868
5869 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5870 (captured_mi_execute_command_args): Remove.
5871 (captured_mi_execute_command): Cast the closure to mi_parse
5872 pointer, not to captured_mi_execute_command_args, and don't
5873 set the action field thereof.
5874 (mi_execute_command): Pass struct mi_parse, not
5875 captured_mi_execute_command_args to captured_mi_execute_command.
5876 (mi_execute_command): Remove (dead) code for suppressing
5877 printing prompt.
5878
84e46146
PA
58792008-06-28 Pedro Alves <pedro@codesourcery.com>
5880
5881 * linux-nat.c (enum sigchld_state): New.
5882 (linux_nat_async_events_state): Renamed from
5883 linux_nat_async_events_enabled.
5884 (linux_nat_event_pipe_push, my_waitpid): Adjust.
5885 (sigchld_default_action): New.
5886 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
5887 unconditionally.
5888 (linux_nat_create_inferior): Set events state to sigchld_default
5889 state.
5890 (linux_nat_resume): Adjust.
5891 (linux_nat_wait): Call linux_nat_async_events unconditionally.
5892 (sigchld_handler): Adjust.
5893 (linux_nat_async_mask): Don't set SIGCHLD actions here.
5894 (get_pending_events): Adjust.
5895 (linux_nat_async_events): Rewrite to handle enum sigchld_state
5896 instead of a boolean.
5897 (linux_nat_async): Adjust.
5898 (_initialize_linux_nat): Capture default SIGCHLD action into
5899 sigchld_default_action.
5900
20874c92
VP
59012008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5902
680b56ce
AS
5903 * breakpoint.c (moribund_locations): New.
5904 (bpstat_stop_status): Process moribund locations.
5905 (update_global_location_list): Add removed
5906 locations to moribund_locations.
5907 (breakpoint_retire_moribund): New.
5908 * breakpoint.h (struct bp_location): New field
5909 events_till_retirement.
5910 (breakpoint_retire_moribund): Declare.
5911 * thread.c (thread_count): New.
5912 * infrun.c (handle_inferior_event): Call
5913 breakpoint_retire_moribund.
5914 * gdbthread.h (thread_count): Declare.
20874c92 5915
cd0b43b1
JM
59162008-06-27 Joseph Myers <joseph@codesourcery.com>
5917
5918 * dfp.c (decimal_convert): Call match_endianness before and after
5919 conversion.
5920
7c0f6dcc
JL
59212008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
5922
5923 * remote.c (remote_insert_breakpoint): Ensure that if Z0
5924 unsupported and we fall back to memory_insert_breakpoint, we
5925 use the unmodified requested address.
5926
01c66ae6
JB
59272008-06-27 Joel Brobecker <brobecker@adacore.com>
5928
5929 * dwarf2read.c (read_attribute_value): Issue a complaint when
5930 adjusting size attribute values of 0xffffffff as zero.
5931
7ccc1c74
JM
59322008-06-27 Joseph Myers <joseph@codesourcery.com>
5933
5934 * i386-tdep.c (i386_16_byte_align_p): New.
5935 (i386_push_dummy_call): Determine stack space required for
5936 arguments going forwards allowing for 16-byte alignment, then push
5937 arguments going forwards.
5938
c0a2216e
PA
59392008-06-27 Pedro Alves <pedro@codesourcery.com>
5940
5941 * infrun.c (start_remote): Don't clear thread list here.
5942 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
5943 list here.
5944 * remote.c (record_currthread): Upgrade the main thread and its
5945 entry in the thread list if this is the first time we hear about
5946 threads.
5947 (remote_thread_alive): Consider magic_null_ptid or a ptid without
5948 a tid member always alive.
5949 (remote_find_new_threads): Don't update the main thread here.
5950 (remote_start_remote): Clear thread list here. Always add the
5951 main thread.
5952 (extended_remote_attach_1): Add the main thread here.
5953 (extended_remote_mourn_1): Re-add the main thread here.
5954 (extended_remote_create_inferior_1): Add a main thread.
5955
5956 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
5957
87b0e16e 59582008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
5959
5960 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
5961
5962 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
5963 globals.
5964 (general_thread, continue_thread): Change type to ptid_t.
5965 (record_currthread): Take a ptid_t parameter instead of an
5966 integer.
5967 (MAGIC_NULL_PID): Delete.
5968 (set_thread): Take a ptid_t parameter and adjust.
5969 (set_general_thread, set_continue_thread): New.
5970 (remote_thread_alive, remote_newthread_step)
5971 (remote_current_thread, remote_find_new_threads)
5972 (remote_threads_info, remote_start_remote, remote_vcont_resume)
5973 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
5974 (threadalive_test, remote_pid_to_str)
5975 (remote_get_thread_local_address): Adjust.
5976 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
5977 and any_thread_ptid.
5978
3ca64bd3
JK
59792008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5980
5981 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
5982 * configure: Regenerated.
5983
28e94949
JB
59842008-06-26 Joel Brobecker <brobecker@adacore.com>
5985
5986 * dwarf2read.c (read_attribute_value): Treat size attribute
5987 values of 0xffffffff as if the attribute value was zero.
5988
8a77dff3
VP
59892008-06-26 Vladimir Prus <vladimir@codesourcery.com>
5990
5991 * linux-nat.c: Add description of overall logic.
5992
d5af19ba
DJ
59932008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
5994
5995 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
5996 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
5997 all dependencies on $(gdb_stdint_h).
5998 (distclean): Do not delete gdb_stdint.h.
5999 * acinclude.m4: Do not use stdint.m4.
6000 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6001 uintptr_t, and gdb_stdint.h.
6002 * defs.h: Include <stdint.h>.
6003 * gdb_thread_db.h: Assume stdint.h is already included.
6004 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6005 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6006 include gdb_stdint.h.
6007 * configure, config.in: Regenerate.
6008
00fbcec4
JM
60092008-06-26 Joseph Myers <joseph@codesourcery.com>
6010
6011 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6012 decimal floating-point values in GPRs for soft-float.
6013 (do_ppc_sysv_return_value): Handle returning decimal
6014 floating-point values in GPRs for soft-float.
6015
d5086790
VP
60162008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6017
6018 * target.c (target_read_until_error): New.
680b56ce
AS
6019 * target.h (target_read_until_error): Declare.
6020 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6021 target_read_until_error.
d5086790 6022
fe9441f6
JK
60232008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6024
6025 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6026 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6027 after the DECFLOAT detection to fix a memory leak. Remove the
6028 redundant NUM initialization. Protect the DECFLOAT detection memory
6029 access before the P block. Restore the P memory content for the
6030 DECFLOAT detection.
6031
ce8f13f8
VP
60322008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6033
6034 Kill the return value for all MI command functions.
6035 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6036 (mi_cmd_argv_ftype): Change return type to void.
6037
6038 * mi/mi-main.c: Adjust all function that implement
6039 MI commands to return nothing.
6040 (struct captured_mi_execute_command_actions):
6041 Remove the rc field.
6042 (mi_cmd_execute): Return nothing.
6043 (mi_execute_async_cli_command): Return nothing.
6044 (mi_cmd_exec_interrupt): Don't print ^done here.
6045 (mi_cmd_target_select): Don't print ^connected here.
6046 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6047 Special-case -target-select and output ^connected, not ^done.
6048
6049 * mi/mi-cmd-break.c: Adjust.
6050 * mi/mi-cmd-disas.c: Adjust.
6051 * mi/mi-cmd-env.c: Adjust.
6052 * mi/mi-cmd-file.c: Adjust.
6053 * mi/mi-cmd-stack.c: Adjust.
6054 * mi/mi-cmd-target.c: Adjust.
6055 * mi/mi-cmd-var.c: Adjust.
6056 * mi/mi-interp.c: Adjust.
6057 * mi/mi-symbol-cmds.c: Adjust.
6058
a2840c35
VP
60592008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6060
6061 Emit ^running via observer.
6062 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6063 ^running here.
6064 (mi_on_resume): Print ^running if not previously output.
6065 * mi/mi-main.c (running_result_record_printed): New.
6066 (captured_mi_execute_command): Reset
6067 running_result_record_printed. Use running_result_record_printed
6068 to decide if we should skip ^done.
6069 (mi_execute_async_cli_command): Don't print ^running here.
6070 * mi/mi-main.h (current_token, running_result_record_printed):
6071 Declare.
a2840c35 6072
1f41b062
MS
60732008-06-24 Michael Snyder <msnyder@specifix.com>
6074
6075 * infrun.c (_initialize_infrun): White space and typo fix.
6076
eff8332b
CF
60772008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6078
6079 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6080 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6081 when first loading DLL with "dll" command.
6082
e50ce6de 60832008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6084
6085 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6086
e50ce6de 60872008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6088
6089 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6090
59ddf1e7
JB
60912008-06-18 Joel Brobecker <brobecker@adacore.com>
6092
680b56ce
AS
6093 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6094 the target cannot run.
59ddf1e7
JB
6095
60962008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6097
6098 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6099 we're attaching to a running process.
6100
e50ce6de 61012008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6102
6103 * win32-nat.c (handle_load_dll): Give dll name and load address
6104 if debug_events is on.
6105 (handle_unload_dll): Likewise.
6106
8f6a8e84
VP
61072008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6108
6109 Don't suppress *running when doing finish.
680b56ce
AS
6110 * infcall.c (call_function_by_hand): Set both
6111 suppress_resume_observer and suppress_stop_observer.
6112 * infcmd.c (suppress_run_stop_observers): Split into...
6113 (suppress_resume_observer, suppress_stop_observer): ...those.
6114 (finish_command_continuation): Clear suppress_stop_observer.
6115 (finish_command): Set suppress_stop_observer.
6116 * inferior.h (suppress_run_stop_observers): Split into...
6117 (suppress_resume_observer, suppress_stop_observer): ...those.
6118 * infrun.c (normal_stop): Check for suppress_stop_observer.
6119 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6120
4309257c
PM
61212008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6122 Pierre Muller <muller@ics.u-strasbg.fr>
6123
6124 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6125 * gdbarch.h, gdbarch.c: Regenerate.
6126 * i386-tdep.h (i386_skip_main_prologue): Declare.
6127 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6128 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6129 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6130 * symtab.c (find_function_start_sal): When pc points at the "main"
6131 function, call gdbarch_skip_main_prologue.
6132
a4e2ee12
DJ
61332008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6134
6135 * value.c (value_primitive_field): Fetch lazy register values.
6136
060871df
PA
61372008-06-11 Pedro Alves <pedro@codesourcery.com>
6138
6139 * NEWS: Mention support removal of undocumented S AA p PID stop
6140 reply packet.
6141
6142 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6143
336de56d
SS
61442008-06-10 Stan Shebs <stan@codesourcery.com>
6145
6146 * MAINTAINERS: Update my affiliation and address.
6147
7949220d
AS
61482008-06-10 Andreas Schwab <schwab@suse.de>
6149
6150 * top.c (print_gdb_version): Don't print final newline.
6151
e1ac3328
VP
61522008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6153
6154 Implement *running.
680b56ce
AS
6155 * Makefile.in: Update dependencies.
6156 * gdbthread.h (struct thread_info): New field
6157 running_.
6158 (set_running, is_running): New.
6159 * thread.c (set_running, is_running): New.
6160 * inferior.h (suppress_normal_stop_observer): Rename to...
6161 (suppress_run_stop_observers): ..this.
6162 * infcmd.c (suppress_normal_stop_observer): Rename to...
6163 (suppress_run_stop_observers): ..this.
6164 (finish_command_continuation, finish_command): Adjust.
6165 * infcall.c (call_function_by_hand): Adjust.
6166 * infrun.c (normal_stop): Call set_running.
6167 * target.c (target_resume): New. Call set_running.
6168 * target.h (target_resume): Convert from macro to
6169 a function.
6170
6171 * mi/mi-interp.c (mi_on_resume): New.
6172 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6173
f7f9a841
VP
61742008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6175
6176 Use observers to report stop events in MI.
680b56ce
AS
6177 * mi/mi-interp.c (mi_on_normal_stop): New.
6178 (mi_interpreter_init): Register mi_on_normal_stop.
6179 (mi_interpreter_exec_continuation): Remove.
6180 (mi_cmd_interpreter_exec): Don't register the above.
6181 * mi/mi-main.c (captured_mi_execute_command): Don't care
6182 about sync_execution.
6183 (mi_execute_async_cli_command): Don't install continuation. Don't
6184 print *stopped.
6185 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6186
f5871ec0
VP
61872008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6188
6189 Suppress normal stop observer when it's problematic.
680b56ce
AS
6190 * inferior.h (suppress_normal_stop_observer): New.
6191 * infcall.c (call_function_by_hand): Disable stop events when
6192 doing function calls.
6193 * infmcd.c (suppress_normal_stop_observer): New.
6194 (finish_command_continuation): Call normal_stop observer
6195 explicitly.
6196 (finish_command): Disable stop events inside proceed.
6197 * infrun.c (normal_stop): Don't call normal stop observer if
6198 suppressed of if multi-step is in progress.
f5871ec0 6199
3d3191a6
VP
62002008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6201
6202 Remove stale code.
680b56ce
AS
6203 * infrun.c (finish_command): Don't pass cleanup
6204 to continuation.
6205 (finish_command_continuation): Don't grab cleanup from
6206 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6207
0b080f59
VP
62082008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6209
6210 Introduce common cleanup for restoring integers.
680b56ce
AS
6211 * defs.h (make_cleanup_restore_integer): New declaration.
6212 (struct cleanup): New field free_arg.
6213 (make_my_cleanup_2): New.
6214 * utils.c (restore_integer_closure, restore_integer)
6215 (make_cleanup_restore_integer): New.
6216 (make_my_cleanup): Initialize the free_arg field and
6217 renamed to make_my_cleanup_2.
6218 (do_my_cleanups): Call free_arg.
6219 (discard_cleanups): Call free_arg.
6220 * breakpoint.c (restore_always_inserted_mode): Remove.
6221 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6222
b4f62b57
DE
62232008-06-09 Doug Evans <dje@google.com>
6224
6225 * remote.c (remote_wait): Include beginning of malformed packet
6226 in error output.
6227
37cd5d19
TT
62282008-06-09 Tom Tromey <tromey@redhat.com>
6229
6230 * completer.c (complete_line): Don't special-case
6231 expression_completer.
6232 (expression_completer): Only pass last word to
6233 location_completer.
6234 * c-exp.y (yylex): Check 'token', not 'operator'.
6235
3526781e
DJ
62362008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6237
6238 * configure.ac (build_warnings): Add -Wno-format for mingw.
6239 * configure: Regenerated.
6240
d001be7a
DJ
62412008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6242
6243 * NEWS: Make indentation consistent. Move exec tracing entry out
6244 of remote packet list.
6245
65d12d83
TT
62462008-06-06 Tom Tromey <tromey@redhat.com>
6247
6248 * value.h (evaluate_subexpression_type, extract_field_op):
6249 Declare.
6250 * printcmd.c (_initialize_printcmd): Use expression_completer for
6251 'p', 'inspect', 'call'.
6252 * parser-defs.h (parse_field_expression): Declare.
6253 * parse.c: Include exceptions.h.
6254 (in_parse_field, expout_last_struct): New globals.
6255 (mark_struct_expression): New function.
6256 (prefixify_expression): Return int.
6257 (prefixify_subexp): Return int. Use expout_last_struct.
6258 (parse_exp_1): Update.
6259 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6260 in_parse_field.
6261 (parse_field_expression): New function.
6262 * expression.h (parse_field_expression): Declare.
6263 (in_parse_field): Likewise.
6264 * eval.c (evaluate_subexpression_type): New function.
6265 (extract_field_op): Likewise.
6266 * completer.h (expression_completer): Declare.
6267 * completer.c (expression_completer): New function.
6268 (count_struct_fields, add_struct_fields): New functions.
6269 * c-exp.y (yyparse): Redefine.
6270 (COMPLETE): New token.
6271 (exp): New productions.
6272 (saw_name_at_eof, last_was_structop): New globals.
6273 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6274 (c_parse): New function.
6275 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6276 for watch, awatch, and rwatch.
6277 * Makefile.in (parse.o): Depend on exceptions_h.
6278
fed27633
PP
62792008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6280
6281 PR gdb/1147
6282 * gdb/valopts.c (find_overload_match): Handle references
6283 to pointers.
6284
aced2898
PH
62852008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6286
6287 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6288 account the bitsize of the 'from' operand.
6289
a2b87ed1
PA
62902008-06-06 Pedro Alves <pedro@codesourcery.com>
6291
6292 * annotate.h (annotate_thread_changed): Declare.
6293
3d6d0b9d
NR
62942008-06-06 Nick Roberts <nickrob@snap.net.nz>
6295
6296 * annotate.c (annotate_thread_changed): New function.
6297 * thread.c (thread_command) : Use it.
6298 * infrun.c (normal_stop): Use it.
6299
c16158bc 63002008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6301 Nathan Sidwell <nathan@codesourcery.com>
6302 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6303
6304 * acinclude.m4: Include ../config/acx.m4.
6305 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6306 * configure, config.in: Regenerate.
6307 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6308 address.
6309 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6310
75c99385
PA
63112008-06-05 Pedro Alves <pedro@codesourcery.com>
6312
6313 Replace 'target async' by 'maintenance set remote-async' and
6314 'target remote' combination.
6315
6316 * remote.c (remote_async_wait): Merge into remote_wait, and
6317 remove.
6318 (remote_async_permitted, remote_async_permitted_set): New
6319 variables.
6320 (set_maintenance_remote_async_permitted)
6321 (show_maintenance_remote_async_permitted): New functions.
6322 (remote_async_ops, extended_async_remote_ops): Delete.
6323 (remote_async_open, extended_remote_async_open): Delete.
6324 (remote_open_1): Drop async_p parameter. Update callers. Replace
6325 async_p with remote_async_permitted checks.
6326 (extended_async_remote_attach): Delete.
6327 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6328 (remote_async_terminal_inferior): Rename to...
6329 (remote_terminal_inferior): ... this, and add
6330 remote_async_termitted check.
6331 (remote_async_terminal_ours): Rename to...
6332 (remote_terminal_ours): ... this, and add remote_async_termitted
6333 check.
6334 (remote_wait, remote_async_wait): Merge and leave remote_wait
6335 only.
6336 (remote_kill, remote_async_kill): Merge and leave remote_kill
6337 only.
6338 (remote_async_mourn, extended_async_remote_mourn): Delete.
6339 (extended_remote_create_inferior_1): Drop async_p parameter.
6340 Update callers. Always use extended_remote_ops.
6341 (extended_remote_async_create_inferior): Delete.
6342 (remote_return_zero): Delete.
6343 (init_remote_ops): Register remote_can_async_p, remote_async,
6344 remote_async_mask, remote_terminal_inferior and
6345 remote_terminal_ours.
6346 (remote_can_async_p, remote_is_async_p): Check for
6347 remote_async_permitted.
6348 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6349 (set_remote_cmd): Don't add async and extended-async targets.
6350 (_initialize_remote): Add set/show remote-async maintenance
6351 commands.
6352
cf30943b
PA
63532008-06-05 Pedro Alves <pedro@codesourcery.com>
6354
6355 * remote.c (kill_kludge): Delete.
6356 (remote_wait, remote_async_wait): Don't set it.
6357 (remote_kill, remote_async_kill): Don't do anything with it.
6358
49fd4a42
PA
63592008-06-05 Pedro Alves <pedro@codesourcery.com>
6360
6361 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6362
2e618c13
AR
63632008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6364
6365 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6366 (deprecated_bcache_added): New function name. Body of function
6367 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6368 * bcache.h (deprecated_bcache_added): New function.
6369 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6370 work from add_psymbol_to_list - initialises partial symbol and stashes
6371 it in objfile's cache.
680b56ce 6372 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6373 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6374 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6375 here. If adding to global list, do not duplicate partial symbols in the
6376 partial symtab.
6377
c0b37c48
AR
63782008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6379
6380 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6381 'exception caught|thrown' message.
6382
1e3a102a
JK
63832008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6384
6385 * Makefile.in: Update dependencies.
6386 * dwarf2expr.c: New include "gdb_assert.h".
6387 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6388 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6389 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6390 Increase/decrease RECURSION_DEPTH around the function.
6391
8d385431
DJ
63922008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6393
6394 * remote.c (get_offsets): Handle a single segment.
6395 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6396 than segments.
6397
93a57060
DJ
63982008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6399
6400 * solib-svr4.c (struct lm_info): Add lm_addr.
6401 (main_lm_addr): New.
6402 (svr4_default_sos): Set lm_addr.
6403 (svr4_current_sos): Set lm_addr and main_lm_addr.
6404 (svr4_fetch_objfile_link_map): Rewrite.
6405 (svr4_clear_solib): Clear main_lm_addr.
6406
609ba780 64072008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6408 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6409
6410 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6411 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6412
c95f5026
JB
64132008-06-02 Roman Zippel <zippel@linux-m68k.org>
6414
6415 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6416
e4d8bc08
JB
64172008-06-02 Roman Zippel <zippel@linux-m68k.org>
6418
6419 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6420
40adab56
JB
64212008-06-01 Joel Brobecker <brobecker@adacore.com>
6422
6423 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6424 treat pointers in data space as function descriptors if the
6425 target address is also in the data space.
6426
bfd66dd9
JB
64272008-05-30 Joel Brobecker <brobecker@adacore.com>
6428
6429 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6430 the trad-frame register value for the SP register.
6431
7ea566be
MK
64322008-05-29 Mark Kettenis <kettenis@gnu.org>
6433
6434 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6435
fcac911a
JB
64362008-05-28 Joel Brobecker <brobecker@adacore.com>
6437
6438 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6439 that identifies function descriptors outside of the .opd section.
6440
ade92717
AR
64412008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6442
6443 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6444 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6445 'bkptno'.
6446 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6447 catchpoints.
6448 (handle_gnu_v3_exceptions): Use tempflag.
6449
f7f9ae2c
VP
64502008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6451
6452 Refactor varobj_update interface.
680b56ce
AS
6453 * varobj.c (varobj_update): Report changes as vector. Also
6454 return not just a list of varobj, but a list of special structures
6455 that tell what exactly has changed.
6456 * varobj.h (enum varobj_update_error): Rename to
6457 varobj_scope_status.
6458 (struct varobj_update_result_t): New.
6459 (varobj_update): Adjust prototype.
6460 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6461
ea56f9c2
VP
64622008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6463
6464 * varobj.c (varobj_update): Fix comment typo.
6465 Fix indentation.
6466
c7efd0b9
JB
64672008-05-26 Joel Brobecker <brobecker@adacore.com>
6468
6469 Set the symtab field of symbols read from ECOFF debugging entries.
6470 * mdebugread.c (add_symbol): Add new parameter symtab.
6471 (parse_symbol): Update calls to add_symbol throughout.
6472
2a2d4dc3
AS
64732008-05-27 Andreas Schwab <schwab@suse.de>
6474
6475 * symtab.h (enum address_class): Remove LOC_REGPARM and
6476 LOC_COMPUTED_ARG.
6477 (struct symbol): Add is_argument.
6478 (SYMBOL_IS_ARGUMENT): Define.
6479
6480 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6481 * buildsym.c (finish_block): Likewise.
6482 * stack.c (print_frame_args, print_block_frame_locals)
6483 (print_frame_arg_vars): Likewise.
6484 * symtab.c (lookup_block_symbol): Likewise.
6485 * tracepoint.c (add_local_symbols): Likewise.
6486 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6487
6488 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6489 * dwarf2read.c (new_symbol): Likewise.
6490 * mdebugread.c (parse_symbol): Likewise.
6491 * stabsread.c (define_symbol): Likewise.
6492
6493 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6494 and LOC_COMPUTED_ARG.
6495 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6496 * ax-gdb.c (gen_var_ref): Likewise.
6497 * eval.c (evaluate_subexp_for_address): Likewise.
6498 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6499 * m2-exp.y (yylex): Likewise.
6500 * printcmd.c (address_info): Likewise.
6501 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6502 * tracepoint.c (collect_symbol, scope_info): Likewise.
6503
17ea7499
CES
65042008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6505
6506 * gdbarch.sh: Added new gdbarch struct
6507 core_regset_sections.
6508 * gdbarch.c: Refreshed.
6509 * gdbarch.h: Refreshed.
6510 * regset.h (core_regset_section): Declared.
6511 * linux-nat.c (linux_nat_do_thread_registers): Added
6512 support for the new gdbarch struct core_regset_sections.
6513 * utils.c (host_address_to_string): New function.
6514 * defs.h (host_address_to_string): New prototype.
6515 * i386-linux-tdep.c (i386_regset_rections): New register
6516 sections list for i386.
6517 (i386_linux_init_abi): Initialized new gdbarch struct
6518 core_regset_sections.
6519 * Makefile.in: Updated to reflect dependency changes.
6520 * ppc-linux-tdep.c (ppc_regset_sections): Register
6521 sections list for ppc.
6522 (ppc_linux_init_abi): Initialized new gdbarch struct
6523 core_regset_sections
6524
c4fc331b
AS
65252008-05-24 Andreas Schwab <schwab@suse.de>
6526
6527 * linespec.c (decode_objc): Save current language around call to
6528 get_selected_block.
6529
e936309c
JB
65302008-05-23 Joel Brobecker <brobecker@adacore.com>
6531
6532 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6533 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6534 Return the proper bound value if the array index type is an
6535 enumerated type. Compute the high bound if requested.
6536 (val_print_array_elements): Handle the case when the array
6537 element has a null size.
6538 * ada-valprint.c (print_optional_low_bound): Add handling
6539 for empty arrays or arrays of zero-size elements.
6540 (ada_val_print_array): New function, extracted out from
6541 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6542 handle empty arrays and arrays of zero-size elements.
6543 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6544 code by call to ada_val_print_array.
6545 (ada_value_print): Remove handling of null array. The handling
6546 was incomplete and is now better handled by ada_val_print_array.
6547
50ee7535
MD
65482008-05-23 Markus Deuling <deuling@de.ibm.com>
6549
6550 * annotate.c (annotate_source, annotate_frame_begin): Replace
6551 deprecated_print_address_numeric with paddress.
6552 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6553 * tui/tui-stack.c (tui_make_status_line): Likewise.
6554
6555 * defs.h (deprecated_print_address_numeric): Remove.
6556 * printcmd.c (deprecated_print_address_numeric): Remove.
6557 * maint.c (maint_print_section_info): Fix comment.
6558
d44e8473
MD
65592008-05-23 Markus Deuling <deuling@de.ibm.com>
6560
6561 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6562 print_binary_chars, print_char_chars): Add byte_order parameter and
6563 replace gdbarch_byte_order.
6564 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6565 expressions and remove them. Remove unused TWO_TO_FOURTH.
6566 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6567 endianness. Update call to print_hex_chars.
6568 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6569 print_binary_chars, print_char_chars): Add byte_order parameter.
6570 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6571 get at the endianness. Update print_*_char calls to use byte_order.
6572
10f4ecb8
UW
65732008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6574
6575 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6576 instead of a union.
6577 (SYMBOL_LOCATION_BATON): Update.
6578
c3b22bd0
UW
65792008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6580
6581 * symtab.h (enum address_class): Remove LOC_BASEREG and
6582 LOC_BASEREG_ARG.
6583 (struct symbol): Remove "basereg" member of "aux_value" union.
6584 (SYMBOL_BASEREG): Remove.
6585
6586 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6587 or LOC_BASEREG_ARG.
6588 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6589 (ada_add_block_symbols): Likewise.
6590 * ax-gdb.c (gen_var_ref): Likewise.
6591 * buildsym.c (finish_block): Likewise.
6592 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6593 * m2-exp.y (yylex): Likewise.
6594 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6595 * printcmd.c (address_info): Likewise.
6596 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6597 (print_frame_arg_vars): Likewise.
6598 * symmisc.c (print_symbol): Likewise.
6599 * symtab.c (lookup_block_symbol): Likewise.
6600 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6601 (scope_info): Likewise.
6602
aa59ba6b
UW
66032008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6604
6605 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6606
6607 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6608 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6609 (ada_add_block_symbols): Likewise.
6610 * ax-gdb.c (gen_var_ref): Likewise.
6611 * buildsyms.c (finish_block): Likewise.
6612 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6613 * m2-exp.y (yylex): Likewise.
6614 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6615 * printcmd.c (address_info): Likewise.
6616 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6617 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6618 * symtab.c (lookup_block_symbol): Likewise.
6619 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6620 (scope_info): Likewise.
6621
0bb4e8c4
UW
66222008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6623
6624 * symtab.h (enum address_class): Remove LOC_INDIRECT and
6625 LOC_HP_THREAD_LOCAL_STATIC.
6626
6627 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
6628 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
6629 (read_var_value): Likewise.
6630 * buildsym.c (finish_block): Likewise.
6631 * objfiles.c (objfile_relocate): Likewise.
6632 * printcmd.c (address_info): Likewise.
6633 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6634 * tracepoint.c (scope_info): Likewise.
6635
9f61f19b
MG
66362008-05-21 Markus Deuling <deuling@de.ibm.com>
6637 Maxim Grigoriev <maxim2405@gmail.com>
6638
6639 * xtensa-tdep.c (xtensa_read_register): Remove.
6640 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
6641 argument litbase to call0_frame_cache().
6642 (call0_track_op, call0_analyze_prologue)
6643 (call0_frame_cache): Use extra argument litbase.
6644
0e479716
JB
66452008-05-21 Joel Brobecker <brobecker@adacore.com>
6646
6647 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6648
214be669
UW
66492008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6650
6651 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6652
0cd9ab92
UW
66532008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6654
6655 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6656 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6657 struct trad_frame_saved_reg *.
6658 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
6659 trad_frame_alloc_saved_regs. Update accesses. Record previous
6660 value of SP as being vfp.
6661 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
6662 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
6663
f52cb1b8
MD
66642008-05-21 Markus Deuling <deuling@de.ibm.com>
6665
6666 * score-tdep.c (score_print_insn): Get the current endianess from
6667 disassemble_info instead of gdbarch_byte_order.
6668
8fa75a5d
PA
66692008-05-21 Pedro Alves <pedro@codesourcery.com>
6670
6671 * frame.c (get_prev_frame_1): Build frame id before setting
6672 this_frame->prev_p, not after.
6673
e8e48118
NR
66742008-05-21 Nick Roberts <nickrob@snap.net.nz>
6675
6676 * annotate.c (annotate_new_thread): New function for new-thread
6677 annotation.
6678 * annotate.h: (annotate_new_thread): New extern.
6679 * thread.c (add_thread_with_info): Use it.
6680 * Makefile.in (thread.o): Add dependency on annotate.h.
6681
c57918b2
JB
66822008-05-20 Joel Brobecker <brobecker@adacore.com>
6683
6684 * win32-nat.c (win32_wait): Block the control-c event while
6685 waiting for a debug event.
6686
6c9353d3
PA
66872008-05-19 Pedro Alves <pedro@codesourcery.com>
6688
6689 * symtab.h (lookup_symbol_in_language): Update comment.
6690 * symtab.c (lookup_symbol_aux_block): Update comment.
6691 * ada-lang.c (ada_lookup_symbol_list): Update comment.
6692
2570f2b7
UW
66932008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6694
6695 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
6696 (lookup_symbol): Likewise.
6697 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
6698 (lookup_symbol): Likewise.
6699 (search_symbols): Update.
6700
6701 * linespec.c (find_methods, collect_methods): Update.
6702 (add_matching_methods, add_constructors): Update.
6703 (decode_compound, decode_dollar, decode_variable): Update.
6704 (lookup_prefix_sym): Update.
6705
6706 (symbol_found): Remove SYM_SYMTAB parameter.
6707 Use SYMBOL_SYMTAB (sym) instead.
6708
6709 * gdbtypes.c (lookup_typename): Update.
6710 (lookup_struct, lookup_union, lookup_enum): Update.
6711 (lookup_template_type): Update.
6712 (check_typedef): Update.
6713 * language.c (lang_bool_type): Update.
6714 * mdebugread.c (parse_procedure): Update.
6715 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6716 * parse.c (write_dollar_variable): Update.
6717 * printcmd.c (address_info): Update.
6718 * source.c (select_source_symtab): Update.
6719 * stack.c (print_frame_args, print_frame_arg_vars): Update.
6720 * valops.c (find_function_in_inferior): Update.
6721 (value_struct_elt_for_reference): Update.
6722 * value.c (value_static_field, value_fn_field): Update.
6723
6724 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6725 * arm-tdep.c (arm_skip_prologue): Update.
6726 * mt-tdep.c (mt_skip_prologue): Update.
6727 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
6728
6729 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
6730 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
6731 (add_defn_to_vec): Likewise.
6732 (ada_add_block_symbols): Likewise.
6733 (lookup_cached_symbol, cache_symbol): Likewise.
6734 (standard_lookup): Update.
6735 (ada_lookup_symbol_list): Update.
6736
6737 * c-valprint.c (c_val_print): Update.
6738 * cp-support.c (cp_lookup_rtti_type): Update.
6739 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
6740 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
6741 * p-valprint.c (pascal_val_print): Update.
6742 * scm-lang.c (scm_lookup_name): Update.
6743
6744 * c-exp.y: Update.
6745 * f-exp.y: Update.
6746 * jv-exp.y: Update.
6747 * m2-exp.y: Update.
6748 * objc-exp.y: Update.
6749 * p-exp.y: Update.
6750
21b556f4
UW
67512008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6752
6753 * language.h (struct language_defn): Remove SYMTAB parameter from
6754 la_lookup_symbol_nonlocal callback function pointer.
6755
6756 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6757 (ada_lookup_encoded_symbol): Likewise.
6758 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6759 Always call fixup_symbol_section.
6760 (ada_lookup_symbol): Remove SYMTAB parameter.
6761 (ada_lookup_symbol_nonlocal): Likewise.
6762 * ada-exp.y (write_object_renaming): Update.
6763 (find_primitive_type): Likewise.
6764
6765 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6766 (cp_lookup_symbol_namespace): Likewise.
6767 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
6768 (lookup_symbol_file): Likewise.
6769 (lookup_possible_namespace_symbol): Likewise.
6770 (cp_lookup_symbol_nonlocal): Likewise.
6771 (cp_lookup_symbol_namespace): Likewise.
6772 (cp_lookup_nested_type): Update.
6773
6774 * scm-valprint.c (scm_inferior_print): Update.
6775 * valops.c (value_maybe_namespace_elt): Update.
6776
6777 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
6778 lookup_lib_global_symbol callback function pointer.
6779 (solib_global_lookup): Remove SYMTAB parameter.
6780 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
6781 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6782
6783 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6784 (lookup_symbol_static): Likewise.
6785 (lookup_symbol_global): Likewise.
6786 (lookup_symbol_aux_block): Likewise.
6787 (lookup_global_symbol_from_objfile): Likewise.
6788 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
6789 (lookup_symbol_aux_local): Likewise.
6790 (lookup_symbol_aux_block): Likewise.
6791 (lookup_symbol_aux_symtabs): Likewise.
6792 (lookup_symbol_aux_psymtabs): Likewise.
6793 (lookup_global_symbol_from_objfile): Likewise.
6794 (basic_lookup_symbol_nonlocal): Likewise.
6795 (lookup_symbol_static): Likewise.
6796 (lookup_symbol_global): Likewise.
6797
6798 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
6799
39237dd1
PA
68002008-05-17 Pedro Alves <pedro@codesourcery.com>
6801
6802 * remote.c (init_extended_remote_ops): Fix typo.
6803
7c0d47a5
PA
68042008-05-16 Pedro Alves <pedro@codesourcery.com>
6805
6806 * NEWS: Mention new DICOS x86 target configuration.
6807
907fc202
UW
68082008-05-16 Pedro Alves <pedro@codesourcery.com>
6809 Ulrich Weigand <uweigand@de.ibm.com>
6810
6811 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
6812 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
6813
6814 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
6815 use it instead of ginfo->value.address. Look up minimal symbol by
6816 address and name. Assume OBJFILE is non-NULL.
6817 (fixup_symbol_section): Ensure we always have an objfile to look
6818 into. Extract and pass to fixup_section the symbol's address that
6819 will match the minimal symbol's address.
6820 (fixup_psymbol_section): Likewise.
6821
6822 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
6823 overlays and the addrmap returned the wrong section.
6824
6825 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
6826 calling fixup_symbol_section.
6827
42848c96
UW
68282008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6829
6830 * minsyms.c: Include "target.h".
6831 (find_solib_trampoline_target): Handle minimal symbols pointing
6832 to function descriptors as well.
6833 * Makefile.in (minsyms.o): Update dependencies.
6834
6835 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
6836 (ppc64_standard_linkage1): ... this. Fix optional instructions.
6837 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
6838 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
6839 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
6840 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
6841 (ppc64_standard_linkage_target): Rename to ...
6842 (ppc64_standard_linkage1_target): ... this.
6843 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
6844 (ppc64_skip_trampoline_code): Support three variants of standard
6845 linkage stubs. Call find_solib_trampoline_target to handle
6846 glink stubs.
6847
74d1f063
UW
68482008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6849
6850 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6851 ppc64_sysv_abi_adjust_breakpoint_address.
6852 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6853 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6854
8526f328
UW
68552008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6856
6857 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6858 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6859 of ppc_linux_skip_trampoline_code.
6860
ba2b1c56
DJ
68612008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6862
6863 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6864 * gdbarch.c, gdbarch.h: Regenerated.
6865 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6866 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6867 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6868
4fdebdd0
PA
68692008-05-15 Pedro Alves <pedro@codesourcery.com>
6870
6871 * linux-nat.c (trap_ptid): Delete.
6872 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6873 Adjust.
6874 * linux-thread-db.c (thread_db_wait): Adjust.
6875
bc882aa9
JB
68762008-05-15 Joel Brobecker <brobecker@adacore.com>
6877
6878 * linespec.c (decode_line_1): Fix a couple of comments.
6879
83b94be5
AM
68802008-05-15 Alan Modra <amodra@bigpond.net.au>
6881
6882 * dbxread.c: Formatting.
6883 (INTERNALIZE_SYMBOL): Init n_other.
6884 (set_namestring): Take pointer to nlist arg rather than struct
6885 copy. Update all callers.
6886
87669130
AS
68872008-05-15 Andreas Schwab <schwab@suse.de>
6888
6889 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
6890 (dwarf2read.o): Add $(addrmap_h).
6891
00d5f93a
UW
68922008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6893
6894 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
6895 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
6896 to handle ppc32 PLT entries.
6897 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
6898 only on ppc64.
6899
2eaf8d2a
DJ
69002008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6901
6902 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
6903 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6904 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6905 (lookup_minimal_symbol_by_pc_section): Use
6906 lookup_minimal_symbol_by_pc_section_1.
6907 (lookup_solib_trampoline_symbol_by_pc): Likewise.
6908
20c62566
JB
69092008-05-13 Joel Brobecker <brobecker@adacore.com>
6910
6911 * findcmd.c: Add #include "gdb_stdint.h".
6912 * Makefile.in (findcmd.o): Update dependencies.
6913
87a7da84
DM
69142008-05-11 David S. Miller <davem@davemloft.net>
6915
de0c3d9d
DM
6916 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
6917 long double size override, Linux does use 128-bit now.
6918
e8467b5a
DM
6919 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
6920 (sparc_linux_write_pc): New function.
6921 (sparc32_linux_init_abi): Register it.
6922 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
6923 (sparc64_linux_write_pc): New function.
6924 (sparc64_linux_init_abi): Register it.
6925
87a7da84
DM
6926 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
6927 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
6928
8a4c2d24
UW
69292008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6930
6931 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6932 and info.tdep_info before calling gdbarch_init_osabi.
6933
003f3813
JB
69342008-05-09 Joel Brobecker <brobecker@adacore.com>
6935
6936 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6937 the type of the right hand side of the assignment to the type
6938 of the left hand side if the left hand side is a convenience
6939 variable.
6940
7ae0e2a2
UW
69412008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
6942
6943 * NEWS: Mention gdbserver bi-arch capability.
6944
08388c79
DE
69452008-05-09 Doug Evans <dje@google.com>
6946
6947 New "find" command.
6948 * NEWS: Document find command and qSearch:memory packet.
6949 * Makefile.in (SFILES): Add findcmd.c.
6950 (COMMON_OBJS): Add findcmd.o.
6951 (findcmd.o): New rule.
6952 * findcmd.c: New file.
6953 * target.h (target_ops): New member to_search_memory.
6954 (simple_search_memory): Declare.
6955 (target_search_memory): Declare.
6956 * target.c (simple_search_memory): New fn.
6957 (target_search_memory): New fn.
6958 * remote.c (PACKET_qSearch_memory): New packet kind.
6959 (remote_search_memory): New fn.
6960 (init_remote_ops): Init to_search_memory.
6961 (init_extended_remote_ops): Ditto.
6962 (_initialize_remote): Add qSearch:memory packet config command.
6963
11c68c47
EZ
69642008-05-09 Eli Zaretskii <eliz@gnu.org>
6965
6966 * thread.c (_initialize_thread): Don't use commas and periods in
6967 first line of doc string of "set/show print thread-events".
6968
6834c9bb
JB
69692008-05-08 Joel Brobecker <brobecker@adacore.com>
6970
6971 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
6972 Update for unwinder changes.
6973
86c31399
JB
69742008-05-08 Joel Brobecker <brobecker@adacore.com>
6975
6976 * frame.c (get_frame_base_address, get_frame_locals_address)
6977 (get_frame_args_address): Pass the correct frame when calling
6978 frame_base_find_by_frame.
6979
96ef3384
UW
69802008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6981
6982 * remote.c (extended_remote_attach_1): Call target_find_description.
6983
45280a52
DJ
69842008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
6985
6986 * remote.c (extended_remote_create_inferior_1): Clean up
6987 before marking the target running.
6988
227e86ad
JB
69892008-05-08 Joel Brobecker <brobecker@adacore.com>
6990
6991 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
6992 changes.
6993
236369e7
JB
69942008-05-07 Joel Brobecker <brobecker@adacore.com>
6995
6996 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
6997 sparc64-sol2-tdep.c: Update for unwinder changes.
6998
de237128
DJ
69992008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7000
7001 * cp-support.c (mangled_name_to_comp): Initialize storage.
7002 (unqualified_name_from_comp): Likewise.
7003
4fff2411
JZ
70042008-05-07 Jie Zhang <jie.zhang@analog.com>
7005
7006 * remote.c (remote_insert_breakpoint): Call get_remote_state
7007 after gdbarch_breakpoint_from_pc is called.
7008 (remote_insert_hw_breakpoint): Likewise.
7009
d8ca156b
JB
70102008-05-06 Joel Brobecker <brobecker@adacore.com>
7011
7012 * valprint.c (val_print): Add new language parameter and use it
7013 instead of using the current_language. Update calls to val_print
7014 throughout.
7015 (common_val_print): Add new langauge parameter and pass it to
7016 val_print.
7017 * value.h (struct language_defn): Add opaque declaration.
7018 (val_print, common_val_print): Update declarations.
7019 * stack.c (print_frame_args): Update call to common_val_print
7020 using the appropriate language.
7021 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7022 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7023 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7024 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7025 #include "language.h" if necessary.
7026 Update calls to val_print and common_val_print.
7027 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7028 Update dependencies.
7029
b1e6fd19
JB
70302008-05-06 Joel Brobecker <brobecker@adacore.com>
7031
7032 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7033 pointing inside a non-executable section as function descriptors.
7034
02b19d84
PA
70352008-05-06 Pedro Alves <pedro@codesourcery.com>
7036
7037 * inf-loop.c (inferior_event_handler): Run all continuations and
7038 print any language change before running the breakpoint commands.
7039
15c1e57f
JB
70402008-05-06 Joel Brobecker <brobecker@adacore.com>
7041
7042 * frame-unwind.c (frame_unwind_got_bytes): New function.
7043 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7044 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7045 for unwinder changes.
7046
d14508fe
DE
70472008-05-05 Doug Evans <dje@google.com>
7048
7049 * NEWS: Mention new /m modifier for disassemble command.
7050 * cli/cli-cmds.c (print_disassembly): New function.
7051 (disassemble_current_function): New function
7052 (disassemble_command): Recognize /m modifier, print mixed
7053 source+assembly.
7054 (init_cli_cmds): Update disassemble help text.
7055
5142f611
MG
70562008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7057
7058 * xtensa-tdep.c: Update for unwinder changes.
7059
f36bf22c
AS
70602008-05-05 Andreas Schwab <schwab@suse.de>
7061
7062 Update m68k port for unwinder changes.
7063 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7064 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7065 (m68k_frame_unwind): Use default_frame_sniffer.
7066 (m68k_frame_sniffer): Remove.
7067 (m68k_frame_base_address): Expect this_frame.
7068 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7069 this_frame.
7070 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7071 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7072 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7073 parameter instead of pc value.
7074 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7075 Expect this_frame.
7076 (m68k_linux_sigtramp_frame_this_id)
7077 (m68k_linux_sigtramp_frame_prev_register)
7078 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7079 (m68k_linux_sigtramp_frame_unwind): Use
7080 m68k_linux_sigtramp_frame_sniffer.
7081 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7082
7083 * m68klinux-nat.c (store_register): Fix typo.
7084
b3dc826b
PA
70852008-05-05 Pedro Alves <pedro@codesourcery.com>
7086
7087 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7088 NULL dereferencing.
7089
6528a9ea
LM
70902008-05-05 Luis Machado <luisgpm@br.ibm.com>
7091
7092 * symfile.c (reread_symbols): Update objfile's entry point.
7093
5eeb2539
AR
70942008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7095 Joel Brobecker <brobecker@adacore.com>
1f906a60 7096
5eeb2539
AR
7097 * ada-lang.c: Update throughout to use symbol_matches_domain
7098 instead of matching the symbol domain explictly.
7099 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7100 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7101 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7102 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7103 symbol for the typedef. See lookup_block_symbol.
7104 * symtab.c (symbol_matches_domain): New function, takes care
7105 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7106 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7107 found psym domain matches the given domain.
7108 (lookup_block_symbol): Likewise.
7109
e2b7ddea
VP
71102008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7111
680b56ce
AS
7112 * top.c (command_line_handler_continuation): Remove.
7113 (execute_command): Do not install the above.
e2b7ddea 7114
fcfb8b02
VP
71152008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7116
7117 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7118 and catch all exceptions from it.
7119 * top.c (command_line_handler_continuation): Don't
7120 call bpstat_do_action here.
7121
f792889a
DJ
71222008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7123
7124 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7125 (struct die_info): Remove type.
7126 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7127 (read_structure_type, read_enumeration_type, read_array_type)
7128 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7129 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7130 (read_tag_string_type, read_subroutine_type, read_set_type)
7131 (read_unspecified_type): Delete prototypes. Remove check for
7132 already-loaded type. Return the new type.
7133 (set_die_type): Return the new type.
7134 (reset_die_and_siblings_types): Delete.
7135 (load_comp_unit, load_full_comp_unit): Set type_hash.
7136 (process_queue): Remove call to reset_die_and_siblings_types.
7137 (process_die): Do not read most types here. Use read_type_die
7138 for others.
7139 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7140 (quirk_gcc_member_function_pointer): Return the new type.
7141 (process_structure_scope, process_enumeration_scope): Use
7142 get_die_type and read the DIE's type.
7143 (read_full_die): Do not initialize die->type.
7144 (tag_type_to_type): Use read_type_die.
7145 (read_type_die): Check for already defined types. Return the
7146 type.
7147 (determine_prefix): Use get_die_type.
7148 (set_die_type): Return the type.
7149 (get_die_type): Take a CU argument. Check for no type_hash.
7150
e7030f15
DJ
71512008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7152
7153 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7154 locals.
7155
611c83ae
PA
71562008-05-04 Pedro Alves <pedro@codesourcery.com>
7157
7158 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7159 and bp_longjmp_resume breakpoints.
7160 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7161 meaningful.
7162 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7163 breakpoints. Create bp_longjmp breakpoints as momentary
7164 breakpoints.
7165 (enable_longjmp_breakpoint): Delete.
7166 (set_longjmp_breakpoint): New.
7167 (disable_longjmp_breakpoint): Delete.
7168 (delete_longjmp_breakpoint): New.
7169 (set_longjmp_resume_breakpoint): Delete.
7170 (set_momentary_breakpoint_at_pc): New.
7171 (breakpoint_re_set_one): Don't delete bp_longjmp and
7172 bp_longjmp_resume breakpoints.
7173 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7174 breakpoints.
7175
7176 * infrun.c (step_resume_breakpoint): Add comment.
7177 (struct execution_control_state): Delete handling_longjmp member.
7178 (init_execution_control_state). Don't clear handling_longjmp.
7179 (context_switch): Don't context switch handling_longjmp.
7180 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7181 create a bp_longjmp_resume breakpoint, and set it as current
7182 step_resume_breakpoint, then step over the longjmp breakpoint. If
7183 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7184 breakpoint, delete the longjmp-resume breakpoint, and stop
7185 stepping.
7186 (currently_stepping): Remove handling_longjmp from expression.
7187 (insert_step_resume_breakpoint_at_sal): Update comment.
7188 (insert_longjmp_resume_breakpoint): New.
7189
7190 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7191 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7192 declarations.
7193 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7194 (set_longjmp_resume_breakpoint): Delete declaration.
7195
7196 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7197 parameter.
7198 (load_infrun_state): Delete *handling_longjmp parameter.
7199 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7200 Update body.
7201 (load_infrun_state): Delete *handling_longjmp parameter. Update
7202 body.
7203
7204 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7205 (delete_longjmp_breakpoint_cleanup): New.
7206 (step_1): Call set_longjmp_breakpoint instead of
7207 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7208 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7209 (step_1_continuation): Pass thread id in the continuation args to
7210 step_once.
7211 (step_once): Add thread parameter. Pass thread id the the
7212 continuation.
7213
85cbf3d3
JK
72142008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 Set CU BASE_ADDRESS already from partial DIEs.
7217 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7218 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7219 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7220 from these variables if it was still unset.
7221
ff013f42
JK
7222 * Makefile.in: Update dependencies.
7223 * dwarf2read.c: Include "addrmap.h"
7224 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7225 (dwarf2_ranges_read): New prototype.
7226 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7227 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7228 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7229 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7230 comment for it. Add the found ranges to RANGES_PST. New variable
7231 BASEADDR, initialize it the common way.
7232 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7233 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7234 HAS_RANGES_OFFSET for the later processing.
7235 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7236 * symtab.c: Include "addrmap.h"
7237 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7238 Move the psymtab locator into ...
7239 (find_pc_sect_psymtab_closer): ... a new function.
7240
a7f1256d
UW
72412008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7242
7243 * arch-utils.c (gdbarch_update_p): Use default values for
7244 info.abfd and info.target_desc if they are NULL.
7245 (gdbarch_from_bfd): Remove assertion.
7246 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7247 using the current target description.
7248 (gdbarch_info_fill): Do not use default values for info->abfd
7249 and info->target_desc.
7250
b2de52bb
JK
72512008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7252
7253 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7254
515630c5
UW
72552008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7256
7257 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7258 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7259
7260 * regcache.c (read_pc_pid): Remove, replace by ...
7261 (regcache_read_pc): ... this function.
7262 (write_pc_pid): Remove, replace by ...
7263 (regcache_write_pc): ... this function.
7264 (read_pc, write_pc): Update.
7265
7266 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7267 write_pc_pid by regcache_read_pc and regcache_write_pc.
7268 (displaced_step_fixup): Likewise.
7269 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7270 (prepare_to_proceed): Likewise.
7271 (proceed): Likewise.
7272 (adjust_pc_after_break): Likewise.
7273 (handle_inferior_event): Likewise.
7274
7275 * linux-nat.c (cancel_breakpoint): Likewise.
7276 * linux-thread-db.c (check_event): Likewise.
7277 * aix-thread.c (aix_thread_wait): Likewise.
7278 * tracepoint.c (trace_dump_command): Likewise.
7279
ebd3bcc1
JK
72802008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7281
7282 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7283 SYMBOL_LOCATION_BATON.
7284
c47ffbe3
VP
72852008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7286
f78bff48
VP
7287 * target.h (struct target_ops): New field to_auxv_parse.
7288 * auxv.c (default_auxv_parse): New, renamed from previous
7289 target_auxv_parse.
7290 (target_auxv_parse): Try to call target method. Fallback to
7291 default_auxv_parse if not found.
7292 * procfs.c (procfs_auxv_parse): New.
7293 (init_procfs_ops): On Solaris, in 64-bit mode, install
7294 procfs_auxv_parse.
c47ffbe3 7295
35076fa0
AN
72962008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7297
7298 * symfile.c (add_symbol_file_command): Use paddress rather than
7299 hex_string to print the address.
7300
5b197912
UW
73012008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7302
7303 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7304 return the null frame ID to terminate the backtrace.
7305
4a7622d1
UW
73062008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7307
7308 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7309 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7310 (SIG_FRAME_PC_OFFSET): Likewise.
7311 (SIG_FRAME_LR_OFFSET): Likewise.
7312 (SIG_FRAME_FP_OFFSET): Likewise.
7313 (rs6000_push_dummy_call): Likewise.
7314 (rs6000_return_value): Likewise.
7315 (rs6000_convert_from_func_ptr_addr): Likewise.
7316 (branch_dest, rs6000_software_single_step): Likewise.
7317 (deal_with_atomic_sequence): Rename to ...
7318 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7319 Do not call branch_dest; inline required parts of that function.
7320 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7321 with SYMBOL_LINKAGE_NAME.
7322 (struct reg, regsize): Delete.
7323 (read_memory_addr): Delete; inline into callers.
7324 (rs6000_skip_prologue): Move after skip_prologue.
7325 (skip_prologue): Remove prototype.
7326 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7327 initialization as if this variable were true. Do not install
7328 ppc64_sysv_abi_adjust_breakpoint_address.
7329
7330 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7331 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7332 and "breakpoint.h".
7333 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7334 (SIG_FRAME_PC_OFFSET): Likewise.
7335 (SIG_FRAME_LR_OFFSET): Likewise.
7336 (SIG_FRAME_FP_OFFSET): Likewise.
7337 (rs6000_push_dummy_call): Likewise.
7338 (rs6000_return_value): Likewise.
7339 (rs6000_convert_from_func_ptr_addr): Likewise.
7340 (branch_dest, rs6000_software_single_step): Likewise. Replace
7341 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7342 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7343 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7344 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7345 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7346
7347 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7348 (AIX_TEXT_SEGMENT_BASE): New macro.
7349 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7350 by AIX_TEXT_SEGMENT_BASE.
7351
7352 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7353 (struct gdbarch_tdep): Remove text_segment_base member.
7354 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7355 ppc64_sysv_abi_adjust_breakpoint_address.
7356
7357 * Makefile.in (rs6000-tdep.o): Update dependencies.
7358 (rs6000-aix-tdep.o): Likewise.
7359
938f5214
TJB
73602008-05-03 Luis Machado <luisgpm@br.ibm.com>
7361 Thiago Jung Bauermann <bauerman@br.ibm.com>
7362
7363 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7364 * doublest.c (convert_typed_floating): Fix typo in comment.
7365 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7366 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7367 * frame.c (frame_unwind_address_in_block): Likewise.
7368 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7369 * symtab.h (struct symbol): Likewise.
7370 * tramp-frame.h (struct trad_frame_cache): Likewise.
7371 * value.c (allocate_repeat_value): Likewise.
7372
0b02b92d
UW
73732008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7374
7375 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7376 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7377
d705c43c
PA
73782008-05-03 Pedro Alves <pedro@codesourcery.com>
7379
7380 * parse.c (parse_exp_in_context): Don't override
7381 expression_context_pc if get_selected_block returned a valid
7382 block.
7383
d6350901
DJ
73842008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7385
7386 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7387 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7388 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7389 Delete.
7390 * c-typeprint.c (c_type_print_base): Delete handling of template
7391 instantiations.
7392 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7393 (METHOD_PTR_TO_VOFFSET): Delete.
7394 * defs.h (QUIT_FIXME): Delete.
7395 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7396 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7397 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7398 ninstantiations, and instantiations.
7399 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7400 (TYPE_FN_FIELD_INLINED): Delete.
7401 * srec.h (SREC_BINARY): Delete.
7402 * symtab.c (symbol_init_demangled_name): Delete.
7403 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7404 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7405 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7406 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7407 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7408 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7409 * target.h (enum thread_control_capabilities): Delete tc_switch.
7410 (target_can_switch_threads): Delete.
7411
30510692
DJ
74122008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7413
7414 * Makefile.in (objfiles.o): Update.
7415 * exec.c (exec_set_section_address): Support p->addr != 0.
7416 * objfiles.c (objfile_relocate): Update exec_ops section
7417 addresses.
7418 * symfile.c (place_section): Move exec_set_section_address call...
7419 (default_symfile_offsets): ...to here.
7420
7284e1be
UW
74212008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7422
7423 * Makefile.in (ppc_linux_tdep_h): New macro.
7424 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7425 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7426 (powerpc_e500l_c): Likewise.
7427 (ppc-linux-nat.o): Update dependencies.
7428 (ppc-linux-tdep.o): Update dependencies.
7429 (rs6000-tdep.o): Update dependencies.
7430
7431 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7432 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7433 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7434 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7435 (tdesc_powerpc_e500): Remove.
7436
7437 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7438 and "features/rs6000/powerpc-altivec64.c".
7439 (ppc_supply_reg, ppc_collect_reg): Make global.
7440 (variants): Use tdesc_powerpc_32 for "powerpc" and
7441 tdesc_powerpc_altivec64 for "powerpc64".
7442 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7443
7444 * ppc-linux-tdep.h: New file.
7445
7446 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7447 Include "features/rs6000/powerpc-32l.c".
7448 Include "features/rs6000/powerpc-altivec32l.c".
7449 Include "features/rs6000/powerpc-64l.c".
7450 Include "features/rs6000/powerpc-altivec64l.c".
7451 Include "features/rs6000/powerpc-e500l.c".
7452 (ppc_linux_supply_gregset): New function.
7453 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7454 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7455 (ppc64_linux_gregset): Likewise.
7456 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7457 (ppc_linux_trap_reg_p): New function.
7458 (ppc_linux_write_pc): New function.
7459 (ppc_linux_core_read_description): New function.
7460 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7461 ppc_linux_core_read_description. Install orig_r3 and trap
7462 registers if present in the target description.
7463 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7464
7465 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7466 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7467 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7468 (fetch_ppc_registers): Likewise.
7469 (store_ppc_registers): Likewise.
7470 (store_register): Likewise.
7471 (ppc_linux_read_description): Check whether AltiVec is supported.
7472 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7473 Linux target description.
7474
7475 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7476 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7477 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7478 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7479 rs6000/powerpc-e500. Update -expedite variables accordingly.
7480
7481 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7482 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7483 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7484 * features/rs6000/powerpc-e500.c: Regenerate.
7485 * features/rs6000/powerpc-32.c: Regenerate.
7486 * features/rs6000/powerpc-64.c: Regenerate.
7487
7488 * features/rs6000/power-linux.xml: New file.
7489 * features/rs6000/power64-linux.xml: New file.
7490 * features/rs6000/powerpc-32l.xml: New file.
7491 * features/rs6000/powerpc-altivec32l.xml: New file.
7492 * features/rs6000/powerpc-64l.xml: New file.
7493 * features/rs6000/powerpc-altivec64l.xml: New file.
7494 * features/rs6000/powerpc-e500l.xml: New file.
7495 * features/rs6000/powerpc-32l.c: New (generated) file.
7496 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7497 * features/rs6000/powerpc-64l.c: New (generated) file.
7498 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7499 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7500
7501 * regformats/reg-ppc.dat: Remove.
7502 * regformats/reg-ppc64.dat: Remove.
7503 * regformats/rs6000/powerpc-32.dat: Remove.
7504 * regformats/rs6000/powerpc-64.dat: Remove.
7505 * regformats/rs6000/powerpc-e500.dat: Remove.
7506 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7507 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7508 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7509 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7510 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7511
063bfe2e
VP
75122008-05-03 Pedro Alves <pedro@codesourcery.com>
7513
7514 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
7515 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7516 thread_exit observer.
7517 (mi_thread_exit): New.
063bfe2e 7518
f132ba9d
TJB
75192008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7520
7521 * breakpoint.c (create_exception_catchpoint): Remove prototype
7522 for already deleted function.
7523 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7524 * frame.h (show_stack_frame): Remove prototype.
7525 * stack.c (show_stack_frame): Remove empty, unused function.
7526 * source.c (symtab_to_fullname, print_source_lines): Small fix
7527 in comment.
7528 * value.c (show_values): Update comments to mention "show values"
7529 command instead of "info history".
7530
bccdca4a
UW
75312008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7532
7533 * linespec.c: Include "target.h".
7534 (minsym_found): Handle minimal symbols pointing to function
7535 descriptors. Use find_function_start_pc.
7536 * minsyms.c (msymbol_objfile): New function.
7537 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7538 to function descriptors.
7539 * symtab.c (fixup_section): Only use minimal symbol at the same
7540 address to determine section of a symbol.
7541 (find_function_start_pc): New function.
7542 (find_function_start_sal): Use it.
7543 * symtab.h (msymbol_objfile): Add prototype.
7544 (find_function_start_pc): Likewise.
7545 * value.c: Include "objfiles.h".
7546 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 7547 descriptors.
bccdca4a
UW
7548 * Makefile.in (linespec.o): Update dependencies.
7549 (value.o): Likewise.
7550
de4d072f
JB
75512008-05-02 Joel Brobecker <brobecker@adacore.com>
7552
7553 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7554 inside a PAD type is a bitfield.
7555
93d4208d
UW
75562008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7557
7558 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7559 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7560 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7561 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7562 Allow typedefs when checking for function pointer arguments.
7563 Right-align small structs passed on the stack.
7564 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7565 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7566 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7567
60c5725c
DJ
75682008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7569
7570 * Makefile.in (arm-tdep.o): Update.
7571 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7572 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7573 (arm_pc_is_thumb): Use mapping symbols.
7574 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7575 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7576 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7577 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7578 * gdbarch.sh: Add record_special_symbol.
7579 * gdbarch.c, gdbarch.h: Regenerated.
7580 * objfiles.c (struct objfile_data): Add cleanup member.
7581 (register_objfile_data_with_cleanup): New function, from
7582 register_objfile_data.
7583 (register_objfile_data): Use it.
7584 (objfile_free_data): Call clear_objfile_data.
7585 (clear_objfile_data): Call cleanup functions.
7586 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7587
574dffa2
DJ
75882008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7589
7590 * objfiles.c (init_entry_point_info): Handle shared libraries.
7591
2c404490
DJ
75922008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7593
7594 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7595 lowest_pc.
7596
237fc4c9
PA
75972008-05-02 Jim Blandy <jimb@codesourcery.com>
7598 Pedro Alves <pedro@codesourcery.com>
7599
7600 Implement displaced stepping.
7601
7602 * gdbarch.sh (max_insn_length): New 'variable'.
7603 (displaced_step_copy, displaced_step_fixup)
7604 (displaced_step_free_closure, displaced_step_location): New
7605 functions.
7606 (struct displaced_step_closure): Add forward declaration.
7607 * gdbarch.c, gdbarch.h: Regenerated.
7608
7609 * arch-utils.c: #include "objfiles.h".
7610 (simple_displaced_step_copy_insn)
7611 (simple_displaced_step_free_closure)
7612 (displaced_step_at_entry_point): New functions.
7613 * arch-utils.h (simple_displaced_step_copy_insn)
7614 (simple_displaced_step_free_closure)
7615 (displaced_step_at_entry_point): New prototypes.
7616
7617 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7618 (I386_MAX_MATCHED_INSN_LEN): ... this.
7619 (i386_absolute_jmp_p, i386_absolute_call_p)
7620 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
7621 (i386_displaced_step_fixup): New functions.
7622 (struct i386_insn, i386_match_insn): Update.
7623 (i386_gdbarch_init): Set gdbarch_max_insn_length.
7624 * i386-tdep.h (I386_MAX_INSN_LEN): New.
7625 (i386_displaced_step_fixup): New prototype.
7626 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
7627 Register gdbarch_displaced_step_copy,
7628 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
7629 and gdbarch_displaced_step_location functions.
7630
7631 * infrun.c (debug_displaced): New variable.
7632 (show_debug_displaced): New function.
7633 (struct displaced_step_request): New struct.
7634 (displaced_step_request_queue, displaced_step_ptid)
7635 (displaced_step_gdbarch, displaced_step_closure)
7636 (displaced_step_original, displaced_step_copy)
7637 (displaced_step_saved_copy, can_use_displaced_stepping): New
7638 variables.
7639 (show_can_use_displaced_stepping, use_displaced_stepping)
7640 (displaced_step_clear, cleanup_displaced_step_closure)
7641 (displaced_step_dump_bytes, displaced_step_prepare)
7642 (displaced_step_clear_cleanup, write_memory_ptid)
7643 (displaced_step_fixup): New functions.
7644 (resume): Call displaced_step_prepare.
7645 (proceed): Call read_pc once, and remember the value. If using
7646 displaced stepping, don't remove breakpoints.
7647 (handle_inferior_event): Call displaced_step_fixup. Add some
7648 debugging output. When we try to step over a breakpoint, but get
7649 a signal to deliver to the thread instead, ensure the step-resume
7650 breakpoint is actually inserted. If a thread hop is needed, and
7651 displaced stepping is enabled, don't remove breakpoints.
7652 (init_wait_for_inferior): Call displaced_step_clear.
7653 (_initialize_infrun): Add "set debug displaced" command. Add
7654 "maint set can-use-displaced-stepping" command. Clear
7655 displaced_step_ptid.
7656 * inferior.h (debug_displaced): Declare variable.
7657 (displaced_step_dump_bytes): Declare function.
7658
7659 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
7660 dependencies.
7661
0428b8f5
DJ
76622008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7663
7664 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
7665 (arm_force_mode_string, arm_show_fallback_mode)
7666 (arm_show_force_mode): New.
7667 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
7668 arm_frame_is_thumb.
7669 (_initialize_arm_tdep): Add "set arm fallback-mode"
7670 and "set arm force-mode".
7671 * NEWS: Document new commands.
7672
d01a8610
AS
76732008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
7674
7675 * main.h (batch_silent): Declare.
7676 * event-top.c: Include main.h.
7677 (gdb_setup_readline): Remove extern batch_silent declaration.
7678 * infrun.c (normal_stop): Don't print source location when running in
7679 --batch-silent mode.
7680 * Makefile.in (event-top.o): Add main.h dependency.
7681
5009afc5
AS
76822008-05-02 Andreas Schwab <schwab@suse.de>
7683
7684 * target.h (struct target_ops): Add
7685 to_watchpoint_addr_within_range.
7686 (target_watchpoint_addr_within_range): New function.
7687 * target.c (update_current_target): Inherit
7688 to_watchpoint_addr_within_range, defaulting to
7689 default_watchpoint_addr_within_range.
7690 (default_watchpoint_addr_within_range): New function.
7691 (debug_to_watchpoint_addr_within_range): New function.
7692 (setup_target_debug): Set to_watchpoint_addr_within_range.
7693 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
7694 New function.
7695 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
7696 * breakpoint.c (watchpoints_triggered): Use
7697 target_watchpoint_addr_within_range.
7698
a15c5c83
PA
76992008-05-01 Pedro Alves <pedro@codesourcery.com>
7700
7701 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
7702 (i[34567]86-*-dicos*, x86_64-*-dicos*):
7703 Set gdb_osabi to GDB_OSABI_DICOS.
7704
7705 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
7706 * osabi.c (gdb_osabi_name): Add "DICOS".
7707
7708 * i386-dicos-tdep.c: New file.
7709
7710 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
7711 (ALLDEPFILES): Add i386-dicos-tdep.c.
7712 (i386-dicos-tdep.o): New rule.
7713
728c8f58
PA
77142008-05-01 Pedro Alves <pedro@codesourcery.com>
7715
7716 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
7717 and register the fork's PTID as a thread.
7718
604133b5
AR
77192008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7720
7721 PR gdb/1665
7722 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
7723 assign its value to the breakpoint created.
7724 (create_breakpoints): Add breakpoint_ops argument and pass it
7725 to create_breakpoint call.
7726 (break_command_really): Add breakpoint_ops argument and pass/assign
7727 appropriately.
7728 (break_command_1): Pass NULL as ops argument.
7729 (set_breakpoint): Pass NULL as ops argument.
7730 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
7731 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
7732 catch and throw catchpoints.
5009afc5 7733
1f906a60 77342008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
7735
7736 PR gdb/2343
7737 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
7738 translate signal numeric value from the target to GDB's enum
7739 target_signal.
7740 * gdbarch.c, gdbarch.h: Regenerated.
7741 * gdbarch.sh: Added two new functions target_signal_from_host and
7742 target_signal_to_host.
680b56ce 7743 * target.h (default_target_signal_from_host,
1cded358
AR
7744 default_target_signal_to_host): New functions - declarations.
7745 * signals/signals.c (struct gdbarch): New declaration.
7746 (default_target_signal_to_host, default_target_signal_from_host): New
7747 functions.
7748
ed5e9466
DJ
77492008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7750 Pedro Alves <pedro@codesourcery.com>
7751
7752 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
7753 Johnston <jjohnstn@redhat.com>.
7754
7755 * NEWS: Mention attach to stopped process fix.
7756 * infcmd.c (detach_command, disconnect_command): Discard the thread
7757 list.
7758 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
7759 attaching. Use signal_stop_state.
7760 (signal_stop_state): Check stop_soon.
7761 * linux-nat.c (kill_lwp): Declare earlier.
7762 (pid_is_stopped, linux_nat_post_attach_wait): New.
7763 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
7764 comments.
7765 (linux_nat_attach): Use linux_nat_post_attach_wait.
7766 (detach_callback, linux_nat_detach): Improve handling for signalled
7767 processes.
7768 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
7769 from the process ID.
7770 * Makefile.in (infcmd.o): Update.
7771
b39cc962
DJ
77722008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7773
7774 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
7775 * arm-tdep.c (arm_frame_is_thumb): New.
7776 (arm_pc_is_thumb): Clarify comment.
7777 (thumb_analyze_prologue): Remove PC special case.
7778 (thumb_scan_prologue): Take a block_addr argument. Use it for
7779 find_pc_partial_function. Remove unused variables.
7780 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
7781 for find_pc_partial_function. Remove PC special case.
7782 (arm_prologue_prev_register): Add special handling for PC and CPSR.
7783 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
7784 (arm_get_next_pc): Use arm_frame_is_thumb.
7785 (arm_write_pc): Use CPSR_T instead of 0x20.
7786 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
7787 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
7788 (CPSR_T): Define.
7789 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
7790 DWARF2_FRAME_REG_FN.
7791 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
7792 DWARF2_FRAME_REG_FN.
7793 (struct dwarf2_frame_state_reg): Add FN to loc union.
7794
944f08ab
JB
77952008-05-01 Nick Roberts <nickrob@snap.net.nz>
7796
7797 * exec.c (print_section_info): Add missing '\n'.
7798
cfc01461
VP
77992008-05-01 Vladimir Prus <vladimir@codesourcery.com>
7800
7801 * thread.c (add_thread): Move observer call to ...
680b56ce 7802 (add_thread_silent): ... here.
cfc01461 7803
1af5d7ce
UW
78042008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7805
7806 * rs6000-tdep.c: Update for unwinder changes.
7807 * ppcobsd-tdep.c: Likewise.
7808
f089c433
UW
78092008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7810
7811 * s390-tdep.c: Update for unwinder changes.
7812
8d998b8f
UW
78132008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7814
7815 * spu-tdep.c: Update for unwinder changes.
7816
5366653e
DJ
78172008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7818
7819 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
7820 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
7821 sparc64-linux-tdep.c: Update for unwinder changes.
7822
b8a22b94
DJ
78232008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7824
7825 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
7826 for unwinder changes.
7827 * mips-tdep.c: Likewise.
7828 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
7829 raw one.
7830
a262aec2
DJ
78312008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7832
7833 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
7834 unwinder changes.
7835
10458914
DJ
78362008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7837
7838 Update i386 and amd64 ports for unwinder changes.
7839
7840 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
7841 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7842 (amd64_frame_unwind): Use default_frame_sniffer.
7843 (amd64_frame_sniffer): Delete.
7844 (amd64_sigtramp_frame_cache): Expect this_frame.
7845 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
7846 (amd64_sigtramp_frame_sniffer): Update signature.
7847 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
7848 (amd64_frame_base_address): Expect this_frame.
7849 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7850 this_frame.
7851 (amd64_init_abi): Use set_gdbarch_dummy_id and
7852 frame_unwind_append_unwinder.
7853 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7854 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7855 (i386_frame_unwind): Use default_frame_sniffer.
7856 (i386_frame_sniffer): Delete.
7857 (i386_sigtramp_frame_cache): Expect this_frame.
7858 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7859 (i386_sigtramp_frame_sniffer): Update signature.
7860 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7861 (i386_frame_base_address): Update signature.
7862 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7863 (i386_push_dummy_call): Update comment.
7864 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7865 Expect this_frame.
7866 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7867 and frame_unwind_append_unwinder.
7868 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7869 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7870 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7871 i386nbsd-tdep.c: Update for unwinder changes.
7872
25492ce3
DJ
78732008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7874
7875 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7876 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7877 this_frame.
7878 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7879 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7880 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7881 signature.
7882 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7883 this_frame.
7884 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
7885 Update signature.
7886 * tramp-frame.h (struct tramp_frame): Update signature of init.
7887 * Makefile.in (trad-frame.o): Update.
7888
4a4e5149
DJ
78892008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7890
7891 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
7892 (execute_stack_op): Put this_frame in the baton.
7893 (execute_cfa_program): Take this_frame.
7894 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
7895 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
7896 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
7897 (dwarf2_frame_this_id): Adjust to work on this_frame.
7898 (dwarf2_signal_frame_this_id): Delete.
7899 (dwarf2_frame_prev_register): Update signature. Use new frame
7900 unwind methods.
7901 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
7902 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
7903 dwarf2_frame_sniffer.
7904 (dwarf2_append_unwinders): New.
7905 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7906 this_frame.
7907 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
7908 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
7909 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
7910 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
7911 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
7912 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
7913 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
7914 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
7915 (dwarf2_append_unwinders): Declare.
7916 (dwarf2_frame_base_sniffer): Update declaration.
7917 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
7918 this_frame.
7919
669fac23
DJ
79202008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7921
7922 Convert frame unwinders to use the current frame and
7923 "struct value".
7924
7925 * frame.c (frame_debug): Make global.
7926 (get_frame_id): Pass this frame to unwinder routines.
7927 (frame_pc_unwind): Remove unused unwind->prev_pc support.
7928 (do_frame_register_read): Do not discard the return value of
7929 frame_register_read.
7930 (frame_register_unwind): Remove debug messages. Use
7931 frame_unwind_register_value.
7932 (frame_unwind_register_value, get_frame_register_value): New
7933 functions.
7934 (create_new_frame, get_frame_base_address, get_frame_locals_address)
7935 (get_frame_args_address, get_frame_type): Pass this frame to
7936 unwinder routines.
7937 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
7938 functions.
7939 * frame.h: Update comments.
7940 (frame_debug, frame_unwind_register_value, get_frame_register_value)
7941 (frame_prepare_for_sniffer): Declare.
7942 * frame-unwind.h: Update comments and parameter names.
7943 (default_frame_sniffer): Declare.
7944 (frame_prev_register_ftype): Return a struct value *.
7945 (struct frame_unwind): Remove prev_pc member.
7946 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
7947 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
7948 (frame_unwind_got_register, frame_unwind_got_memory)
7949 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
7950 * frame-base.h: Update comments and parameter names.
7951 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
7952 if necessary. Add debugging output.
7953 * sentinel-frame.c (sentinel_frame_prev_register)
7954 (sentinel_frame_this_id): Update for new signature.
7955 (sentinel_frame_prev_pc): Delete.
7956 (sentinel_frame_unwinder): Remove prev_pc.
7957 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
7958 prev_pc.
7959 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
7960 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
7961 (frame_unwind_append_sniffer): Delete.
7962 (frame_unwind_append_unwinder): New function.
7963 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
7964 from unwinders. Use frame_prepare_for_sniffer.
7965 (default_frame_sniffer, frame_unwind_got_optimized)
7966 (frame_unwind_got_register, frame_unwind_got_memory)
7967 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
7968 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
7969 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
7970 signature.
7971 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
7972 * gdbarch.c, gdbarch.c: Regenerated.
7973 * frame-base.c (default_frame_base_address)
7974 (default_frame_locals_address, default_frame_args_address): Update
7975 for new signature.
7976 (frame_base_find_by_frame): Pass this frame to unwinder routines.
7977 * infcall.c (call_function_by_hand): Update comments.
7978 * Makefile.in (frame-unwind.o): Update dependencies.
7979
9214ee5f
DJ
79802008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7981
7982 * ada-lang.c (ada_value_primitive_packed_val): Only check
7983 value_lazy for memory lvals.
7984 * findvar.c (value_of_register_lazy): New function.
7985 (locate_var_value): Only check value_lazy for memory lvals.
7986 * valarith.c (value_subscripted_rvalue): Likewise.
7987 * valops.c (value_fetch_lazy): Handle both memory and register
7988 lvals.
7989 (search_struct_field, value_slice): Only check value_lazy for memory
7990 lvals.
7991 * value.c (struct value): Update comment for lazy.
7992 (value_primitive_field): Only check value_lazy for memory lvals.
7993 * value.h (value_lazy): Update comment.
7994 (value_of_register_lazy): Declare.
7995
939643d7
DJ
79962008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7997
7998 * corefile.c (reopen_exec_file): Close any open files.
7999
1de34ab7
JB
80002008-04-29 Joel Brobecker <brobecker@adacore.com>
8001
8002 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8003 show_memory_breakpoints to 1 while reading the instruction bundle.
8004
ea42b34a
JB
80052008-04-29 Joel Brobecker <brobecker@adacore.com>
8006
8007 * gdbarch.sh: Document the return_value method. Explain that
8008 the FUNCTYPE parameter might be NULL.
8009 * gdbarch.h: Regenerated.
8010 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8011 type when calling using_struct_return, as this is unnecessary
8012 on this target.
8013
a0fe373c
JB
80142008-04-28 Joel Brobecker <brobecker@adacore.com>
8015
8016 * terminal.h (create_tty_session): Fix return type.
8017
c6446539
VP
80182008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8019
8020 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8021
2f069f6f
JB
80222008-04-26 Joel Brobecker <brobecker@adacore.com>
8023
8024 * breakpoint.c (condition_command, commands_from_control_command)
8025 (break_command_really): Minor reformatting.
8026
93b5768b
PA
80272008-04-25 Pedro Alves <pedro@codesourcery.com>
8028
8029 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8030
436675d3
PA
80312008-04-25 Pedro Alves <pedro@codesourcery.com>
8032
8033 * amd64-tdep.c (amd64_get_longjmp_target): New.
8034 (amd64_init_abi): Register amd64_get_longjmp_target as
8035 gdbarch_get_longjmp_target callback.
8036 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8037
78b6a731
PA
80382008-04-25 Pedro Alves <pedro@codesourcery.com>
8039
8040 * breakpoint.h (enum bpstat_what_main_action): Delete
8041 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8042
8043 * breakpoint.c (clrs): Delete.
8044 (bpstat_what): Update table.
8045
8046 * infrun.c (handle_inferior_event): Remove
8047 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8048
9e22b03a
VP
80492008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8050
8051 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8052 Adjust all prototypes using mi_cmd_args_ftype to use
8053 mi_cmd_argv_ftype.
8054 (struct mi_cmd): Remove the args_func field.
8055 * mi/mi-cmds.c: Don't provide value for the args_func field.
8056 * mi/mi-main.c (mi_execute_async_cli_command)
8057 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8058 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8059 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8060 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8061 (mi_cmd_target_download): Adjust.
8062 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8063 (mi_cmd_execute): Do not check for args_func.
8064 (mi_execute_async_cli_command): Adjust.
8065 * mi/mi-parse.c: Don't check for args_func.
8066
721c02de 80672008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8068
680b56ce
AS
8069 * breakpoint.c (bpstat_check_location)
8070 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8071 New, extracted from bpstat_stop_status.
8072 (bpstat_stop_status): Use the above.
18a18393
VP
8073
80742008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8075
680b56ce
AS
8076 * mi/mi-main.c (last_async_command): Rename to current_token.
8077 (previous_async_command): Remove.
8078 (mi_cmd_gdb_exit): Adjust.
8079 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8080 (mi_cmd_target_select): Adjust.
8081 (mi_cmd_execute): Don't set previous_async_command. Free token
8082 here even in async mode.
8083 (mi_execute_async_cli_command): Adjust.
8084 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8085 token.
8086 (mi_load_progress): Adjust.
721c02de 8087
f13468d9
VP
80882008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8089
680b56ce
AS
8090 * infcmd.c (step_1_continuation): Always disable longjmp
8091 breakpoint if we're not going to do another step.
f13468d9 8092
f107f563
VP
80932008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8094
8095 exec_cleanup murder.
8096 * breakpoint.c (until_break_command_continuation): Add
8097 the 'error' parameter. Directly delete the breakoint as
8098 opposed to running cleanups.
8099 (until_break_command): Install continuation only
8100 after starting the target. Don't use exec cleanups,
8101 use ordinary cleanups. Discard cleanups is successfully
8102 started the target in async mode.
8103 (make_cleanup_delete_breakpoint): Remove.
8104 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8105 declaration.
8106 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8107 declarations.
8108 (struct continations): Add the 'error' parameter to the
8109 continuation_hook field.
8110 (add_continuation, do_all_continuations)
8111 (add_intermediate_continuation)
8112 (do_all_intermediate_continuations): Add the 'error' parameter.
8113 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8114 * inf-loop.c (inferior_event_handler): Instead of calling
8115 discard_all_continuations, use do_all_continuations with 1 as
8116 'error' parameter. Pass 0 as 'error' parameter in existing uses
8117 of discard_all_continuations.
8118 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8119 cleanups.
8120 (step_once): Install continuation only after resuming the target.
8121 (step_1_continuation): Disable longjmp breakpoint on error.
8122 (finish_command_continuation): Add the error parameter. Delete
8123 the finish breakpoint directly, do not use cleanups.
8124 (finish_command): Do not use exec_cleanups. Always setup
8125 continuation. For sync case, immediately run them.
8126 (attach_command_continuation): Add the error parameter.
8127 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8128 remove step_resume_breakpoint -- adjust delete it directly.
8129 * interps.c (interp_set): Adjust call to do_all_continations.
8130 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8131 do exec cleanups.
8132 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8133 cleanups.
8134 (mi_cmd_execute): Do not use exec_cleanup.
8135 (mi_execute_async_cli_command): Simplify the string concatenation
8136 logic. Do no use exec cleanup.
8137 (mi_exec_async_cli_cmd_continuation): New parameter error.
8138 Free last_async_command.
8139 * top.c (command_line_handler_continuation): New parameter error.
8140 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8141 (do_exec_cleanups): Remove.
8142 (add_continuation, do_all_continations)
8143 (add_intermediate_continuation)
8144 (do_all_intermediate_continuations): New parameter error.
8145
74960c60
VP
81462008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8147
8148 * breakpoint.h (bp_location_p): New typedef.
8149 Register a vector of bp_location_p.
8150 * breakpoint.c (always_inserted_mode)
8151 (show_always_inserted_mode): New.
8152 (unlink_locations_from_global_list): Remove.
8153 (update_global_location_list)
8154 (update_global_location_list_nothrow): New.
8155 (update_watchpoint): Don't free locations.
8156 (should_insert_location): New.
8157 (insert_bp_location): Use should_insert_location.
8158 (insert_breakpoint_locations): Copied from
8159 insert_breakpoints.
8160 (insert_breakpoint): Use insert_breakpoint_locations.
8161 (bpstat_stop_status): Call update_global_location_list
8162 when disabling breakpoint.
8163 (allocate_bp_location): Don't add to bp_location_chain.
8164 (set_raw_breakpoint)
8165 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8166 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8167 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8168 (set_longjmp_resume_breakpoint)
8169 (enable_watchpoints_after_interactive_call_stop)
8170 (disable_watchpoints_before_interactive_call_start)
8171 (create_internal_breakpoint)
8172 (create_fork_vfork_event_catchpoint)
8173 (create_exec_event_catchpoint, set_momentary_breakpoint)
8174 (create_breakpoints, break_command_1, watch_command_1)
8175 (create_exception_catchpoint)
8176 (handle_gnu_v3_exceptions)
8177 (disable_breakpoint, breakpoint_re_set_one)
8178 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8179 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8180 Call update_global_location_list.
8181 (delete_breakpoint): Don't remove locations and don't
8182 try to reinsert them. Call update_global_location_list.
8183 (update_breakpoint_locations): Likewise.
8184 (restore_always_inserted_mode): New.
8185 (update_breakpoints_after_exec): Temporary disable
8186 always inserted mode.
8187 * Makefile.in: Update dependencies.
8188
8189 * infrun.c (proceed): Remove breakpoints while stepping
8190 over breakpoint.
8191 (handle_inferior_event): Don't remove or insert
8192 breakpoints.
8193 * linux-fork.c (checkpoint_command): Remove breakpoints
8194 before fork and insert after.
8195 (linux_fork_context): Remove breakpoints before switch
8196 and insert after.
8197 * target.c (target_disconnect, target_detach): Remove
8198 breakpoints from target.
8199
680b56ce 8200
d24317b4
VP
82012008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8202
8203 * breakpoint.c (print_one_breakpoint_location): In MI
8204 mode, report the location string the breakpoint was
8205 originally created with.
8206
ee967b5f
MG
82072008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8208
8209 * Makefile.in (xtensa-tdep.o): Update dependencies.
8210 * configure.tgt (xtensa*): Update dependencies.
8211 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8212 Local variable areg renamed to arreg.
8213 (areg_number): New function.
8214 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8215 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8216 replaced by arreg_number.
8217 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8218 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8219 (xtensa_scan_prologue): New function.
8220 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8221 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8222 value based on prologue analysis. Fix the bugs preventing WS and
8223 AR4-AR7/A11 registers from getting right values for intermediate frames,
8224 whose registers have been already spilled.
8225 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8226 and arreg_number appropriately.
8227 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8228 svr4_ilp32_fetch_link_map_offsets.
8229
09d71d23
AS
82302008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8231
8232 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8233 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8234
fdc59709
PB
82352008-04-23 Paolo Bonzini <bonzini@gnu.org>
8236
680b56ce
AS
8237 * acinclude.m4: Add override.m4.
8238 * configure: Regenerate.
fdc59709 8239
0bcd0149
JK
82402008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8241
8242 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8243 initialized with a trailing space now. Use PROMPT_ARG of
8244 COMMAND_LINE_INPUT instead of printing it ourselves.
8245
88d8a8e0
JB
82462008-04-22 Joel Brobecker <brobecker@adacore.com>
8247
8248 * NEWS: Document support for 64-bit core file.
8249
c055b101
CV
82502008-04-22 Corinna Vinschen <vinschen@redhat.com>
8251
8252 * NEWS: Add information on calling convention and new SH CLI options.
8253
8254 * sh-tdep.c (sh_cc_gcc): New static string.
8255 (sh_cc_renesas): Ditto.
8256 (sh_cc_enum): New static string array.
8257 (sh_active_calling_convention): New static string pointer denoting
8258 active user chosen ABI.
8259 (sh_is_renesas_calling_convention): New function to return function
8260 specific ABI, or user choice if necessary.
8261 (sh_use_struct_convention): Rename first argument and turn around its
8262 meaning. Check for renesas ABI and return accordingly.
8263 (sh_use_struct_convention_nofpu): New function.
8264 (sh_next_flt_argreg): Get function type as third parameter. Check
8265 for renesas ABI and choose floating registers accordingly.
8266 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8267 struct return slot accordingly.
8268 (sh_push_dummy_call_nofpu): Ditto.
8269 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8270 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8271 (sh_return_value_fpu): Evaluate ABI and give to
8272 sh_use_struct_convention.
8273 (show_sh_command): New function.
8274 (set_sh_command): Ditto.
8275 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8276 CLI command.
8277
8278 * gdbarch.sh (return_value): Add func_type argument.
8279 * gdbarch.c: Regenerate.
8280 * gdbarch.h: Ditto.
8281 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8282 val_type so as not to collide with value_type function. Call
8283 using_struct_return with additional function type argument.
8284 * infcall.c (call_function_by_hand): Call using_struct_return and
8285 gdbarch_return_value with additional function type argument.
8286 * infcmd.c (print_return_value): Take addition func_type argument.
8287 Call gdbarch_return_value with additional function type argument.
8288 (finish_command_continuation): Call print_return_value with additional
8289 function type argument.
8290 (finish_command): Ditto.
8291 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8292 additional function type argument.
8293 * stack.c (return_command): Call using_struct_return and
8294 gdbarch_return_value with additional function type argument.
8295 * value.c (using_struct_return): Take additional function type argument.
8296 * value.h (using_struct_return): Accommodate declaration.
8297 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8298 * amd64-tdep.c (amd64_return_value): Ditto.
8299 * arm-tdep.c (arm_return_value): Ditto.
8300 * avr-tdep.c (avr_return_value): Ditto.
8301 * cris-tdep.c (cris_return_value): Ditto.
8302 * frv-tdep.c (frv_return_value): Ditto.
8303 * h8300-tdep.c (h8300_return_value): Ditto.
8304 (h8300h_return_value): Ditto.
8305 * hppa-tdep.c (hppa32_return_value): Ditto.
8306 (hppa64_return_value): Ditto.
8307 * i386-tdep.c (i386_return_value): Ditto.
8308 * ia64-tdep.c (ia64_return_value): Ditto.
8309 * iq2000-tdep.c (iq2000_return_value): Ditto.
8310 * m32c-tdep.c (m32c_return_value): Ditto.
8311 * m32r-tdep.c (m32r_return_value): Ditto.
8312 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8313 * m68k-tdep.c (m68k_return_value): Ditto.
8314 (m68k_svr4_return_value): Ditto.
8315 * m88k-tdep.c (m88k_return_value): Ditto.
8316 * mep-tdep.c (mep_return_value): Ditto.
8317 * mips-tdep.c (mips_eabi_return_value): Ditto.
8318 (mips_n32n64_return_value): Ditto.
8319 (mips_o32_return_value): Ditto.
8320 (mips_o64_return_value): Ditto.
8321 * mn10300-tdep.c (mn10300_return_value): Ditto.
8322 * mt-tdep.c (mt_return_value): Ditto.
8323 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8324 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8325 (ppc_sysv_abi_broken_return_value): Ditto.
8326 (ppc64_sysv_abi_return_value): Ditto.
8327 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8328 (ppc_sysv_abi_broken_return_value): Ditto.
8329 (ppc64_sysv_abi_return_value): Ditto.
8330 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8331 * rs6000-tdep.c (rs6000_return_value): Ditto.
8332 * s390-tdep.c (s390_return_value): Ditto.
8333 * score-tdep.c (score_return_value): Ditto.
8334 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8335 (sh_return_value_fpu): Ditto.
8336 * sh64-tdep.c (sh64_return_value): Ditto.
8337 * sparc-tdep.c (sparc32_return_value): Ditto.
8338 * sparc64-tdep.c (sparc64_return_value): Ditto.
8339 * spu-tdep.c (spu_return_value): Ditto.
8340 * v850-tdep.c (v850_return_value): Ditto.
8341 * vax-tdep.c (vax_return_value): Ditto.
8342 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8343 * xtensa-tdep.c (xtensa_return_value): Ditto.
8344
8345 * gdbtypes.h (struct type): Add calling_convention member.
8346 * dwarf2read.c (read_subroutine_type): Add calling convention read
8347 from DW_AT_calling_convention attribute to function type.
8348
9eec4d1e
MD
83492008-04-22 Markus Deuling <deuling@de.ibm.com>
8350
8351 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8352 multi_f77_subscript to support values from registers.
8353 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8354 * value.h (value_subscripted_rvalue): Add prototype.
8355
8356 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8357 Fix output.
8358 * f-valprint.c (f_val_print): Likewise.
8359
ef72380d
CS
83602008-04-21 Craig Silverstein <csilvers@google.com>
8361
8362 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8363 !HAVE_ZLIB_H case.
8364
ff8e85c3
PA
83652008-04-21 Pedro Alves <pedro@codesourcery.com>
8366
8367 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8368 section is not a code section.
8369
31fffb02
CS
83702008-04-19 Craig Silverstein <csilvers@google.com>
8371
8372 * NEWS: Add information on compressed debug sections.
8373
8e91f023
VP
83742008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8375
8376 * mi/mi-cmd-var.c (varobj_update_one): Print new
8377 value for variable objects that changed type.
8378
603ba1de
VP
83792008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8380
8381 * varobj.c (varobj_invalidate): Don't touch floating
8382 varobjs.
8383
7fc830e2
MK
83842008-04-19 Mark Kettenis <kettenis@gnu.org>
8385
8386 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8387 (multiple_symbols_cancel): Remove extra const.
8388 * symtab.h: Likewise.
8389
bcbf8b68
NR
83902008-04-19 Nick Roberts <nickrob@snap.net.nz>
8391
8392 * interps.c (top_level_interpreter): Rename static variable...
8393 (top_level_interpreter_ptr): ...to this.
8394 (top_level_interpreter): New function.
8395
8396 * interps.h: New extern for top_level_interpreter.
8397
8398 * linespec.c: Include interps.h and mi/mi-cmds.h.
8399 (decode_line_2): When using MI, always set all breakpoints in menu.
8400
8401 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8402
31fffb02 84032008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8404
8405 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8406 * config.in, configure: Regenerate.
8407 * dwarf2read.c: Include zlib.h if present.
8408 Modified *_SECTION macros.
8409 (section_is_p): New.
8410 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8411 (dwarf2_resize_section): New.
8412 to determine whether a given section has a given name.
8413 (zlib_decompress_section): New.
8414 (dwarf2_read_section): Read the compressed section if present
8415 in the binary.
8416 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8417
a03b3a97
TJB
84182008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8419
8420 * defs.h (exec_set_section_offsets): Remove prototype.
8421 * exec.c (exec_set_section_offsets): Remove function.
8422
9e386756
JB
84232008-04-18 Joel Brobecker <brobecker@adacore.com>
8424
8425 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8426 in the search for the matching symbol.
8427
2ec93238
MK
84282008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8429
8430 * breakpoint.c (update_watchpoint): Always reparse
8431 condition.
8432
e9bbd7c5
JB
84332008-04-17 Joel Brobecker <brobecker@adacore.com>
8434
8435 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8436 the breakpoint address only once.
8437
475bbd17
JB
84382008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8439
8440 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8441 rather than a hard-coded architecture, for xcoff executables.
8442
86991504
DE
84432008-04-17 Doug Evans <dje@google.com>
8444
4584e32e
DE
8445 * buildsym.c (watch_main_source_file_lossage): New fn.
8446 (end_symtab): Call it.
8447
86991504
DE
8448 * source.c (find_and_open_source): Add some comments clarifying
8449 handling of FULLNAME argument. Make static. Remove pointless
8450 xstrdup/xfree.
8451
0a320680
PA
84522008-04-17 Pedro Alves <pedro@codesourcery.com>
8453
8454 * inf-loop.c (inferior_event_handler): Also run the intermediate
8455 continuations in the INF_EXEC_COMPLETE case.
8456
700b53b1
TT
84572008-04-16 Tom Tromey <tromey@redhat.com>
8458
8459 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8460 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8461 * cli/cli-decode.c (set_cmd_async_ok): New function.
8462 (get_cmd_async_ok): New function.
8463 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8464 "show" as async-ok.
8465 * top.c (execute_command): Use get_cmd_async_ok.
8466 * infcmd.c: Include cli/cli-decode.h.
8467 (_initialize_infcmd): Mark "interrupt" as async-ok.
8468 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8469
dacec2a8
DJ
84702008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8471
8472 PR gdb/2445
8473 * exec.c: Correct "arch-utils.h" include.
8474
1f906a60 84752008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
8476
8477 PR gdb/2424
8478 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8479 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8480 * breakpoint.c (bpdisp_texst): New function. The function takes over
8481 the role of bpstats static array in print_one_breakpoint_location.
8482 (print_it_typical): Print "Temporary breakpoint" instead
8483 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8484 protocols, print disp field.
8485 (print_one_breakpoint_location): Removed bpdisps static definition.
8486 Call new bpstat_text function to get value for 'disp' field.
8487 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8488
4d7b71aa
DJ
84892008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8490
8491 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8492 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8493 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8494 * gnulib/Makefile.in: Regenerate.
8495
aa11fd3f
DJ
84962008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8497
8498 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8499 (defs_h): Use $(GNULIB_H).
8500 (all-lib): Depend on gnulib/Makefile.
8501 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8502 * config.in, gnulib/Makefile.in: Regenerated.
8503
e28b3332
DJ
85042008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8505
8506 * Makefile.in (LIBGNU, INCGNU): Define.
8507 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8508 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8509 (CLEANDIRS): New.
8510 ($(LIBGNU), all-lib): New rules.
8511 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8512 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8513 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8514 * gnulib: New directory, from gnulib-tool.
8515 * configure, aclocal.m4: Regenerated.
8516
e3bc4218
DJ
85172008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8518
8519 * linux-thread-db.c (have_threads_callback): Check thread->private.
8520
fcacd99f
VP
85212008-04-13 Nick Roberts <nickrob@snap.net.nz>
8522 Vladimir Prus <vladimir@codesourcery.com>
8523
8524 Fix @-varobjs.
680b56ce
AS
8525 * varobj.c (value_of_root): Update the expression for
8526 floating varobjs.
8527 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8528 report that.
fcacd99f 8529
de051565
MK
85302008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8531
8532 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8533 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8534 (mi_cmd_var_set_format): Use new mi_parse_format.
8535 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8536 format.
8537 * Makefile.in (mi-cmd-var.o): Update dependencies.
8538
8539 * varobj.h (varobj_get_formatted_value): Declare.
8540 * varobj.c (my_value_of_variable): Added format parameter.
8541 (cplus_value_of_variable): Likewise.
8542 (java_value_of_variable): Likewise.
8543 (c_value_of_variable): Likewise. Evaluate expression based
8544 on format parameter.
8545 (struct language_specific): Add format parameter to function member
8546 *value_of_variable.
8547 (varobj_get_formatted_value): New.
8548 (varobj_get_value): Added format parameter to method call.
680b56ce 8549
56953f80
JB
85502008-04-08 Joel Brobecker <brobecker@adacore.com>
8551
8552 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8553 instance flags of the undefined type before calling replace_type.
8554
e4e33b9e
VP
85552008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8556
8557 * target.h (enum strata): Remove the download_stratum.
680b56ce 8558
92b5c263
DE
85592008-04-07 Doug Evans <dje@google.com>
8560
8561 * buildsym.h (last_source_file): Add dwarf info to comment.
8562 (last_source_start_addr): Ditto.
8563
effa26a9
PA
85642008-04-07 Pedro Alves <pedro@codesourcery.com>
8565
8566 * alphanbsd-tdep.c: Include "target.h".
8567 * mn10300-tdep.c: Include "target.h".
8568 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8569
2b2d9e11
VP
85702008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8571
8572 Fix breakpoint condition that use member variables.
680b56ce
AS
8573 * valops.c (check_field): Remove.
8574 (check_field_in): Rename to check_field.
8575 (value_of_this): Use la_name_of_this.
8576 * value.h (check_field): Adjust prototype.
8577
8578 * language.h (la_value_of_this): Rename to la_name_of_this.
8579 * language.c (unknown_language_defn): Specify "this" for
8580 name_of_this.
8581 (auto_language_defn): Likewise.
8582 (local_language_defn): Likewise.
8583 * ada-lang.c (ada_language_defn): Adjust comment.
8584 * c-lang.c (c_language_defn): Adjust comment.
8585 (cplus_language_defn): Specify "this" for name_of_this.
8586 (asm_language_defn): Adjust comment.
8587 (minimal_language_defn): Adjust comment.
8588 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8589 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8590 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8591 * objc-lang.c (objc_language_defn): Specify "self" for
8592 name_of_this.
8593 * p-lang.c (pascal_language_defn): Specify "this" for
8594 name_of_this.
8595 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8596
8597 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8598 proper scope, and check for field in type of "this", without
8599 trying to create a value.
2b2d9e11 8600
a13e061a
PA
86012008-04-04 Pedro Alves <pedro@codesourcery.com>
8602
8603 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8604 (mi_error_message): Delete declaration.
8605 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8606 returning MI_CMD_ERROR.
8607 * mi/mi-main.c (mi_error_message): Delete.
8608 (mi_cmd_exec_interrupt):
8609 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8610 (mi_cmd_thread_info): Call error instead of returning
8611 MI_CMD_ERROR.
8612 (mi_cmd_data_list_register_values): Call error instead of
8613 returning MI_CMD_ERROR. Adapt to new get_register interface.
8614 (get_register): Change return typo to void. Call error instead of
8615 returning MI_CMD_ERROR.
8616 (mi_cmd_data_write_register_values): Call error instead of
8617 returning MI_CMD_ERROR.
8618 (mi_cmd_list_features): Return MI_CMD_DONE.
8619 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8620 (mi_execute_command): Always print exceptions with -error.
8621
aad4b048
JB
86222008-04-04 Joel Brobecker <brobecker@adacore.com>
8623
8624 * NEWS: Mention new commands set/show multiple-symbols.
8625
717d2f5a
JB
86262008-04-03 Joel Brobecker <brobecker@adacore.com>
8627
8628 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
8629 (multiple_symbols_cancel): New constants.
8630 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
8631 (multiple_symbols_select_mode): New function.
8632 (_initialize_symtab): Add new set/show multiple-symbols commands.
8633 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
8634 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
8635 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
8636 setting.
8637 * linespec.c (decode_line_2): Likewise.
8638
f73634e5
DE
86392008-04-03 Doug Evans <dje@sebabeach.org>
8640
8641 * symtab.h (enum free_code): Delete free_contents, unused.
8642 * symmisc.c (free_symtab_block): Delete.
8643 (free_symtab, case free_code): Delete.
8644
1f906a60 86452008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
8646
8647 * valops.c (value_cast_structs): New function. Cast related
680b56ce 8648 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
8649 function comes mostly from value_cast_pointers.
8650 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8651 to value_cast_structs. Now value_cast_pointers needs only create
8652 appropriate reference after using value_cast_structs for actual
8653 casting.
8654 (value_cast): Handle references.
8655
61ad90e1
MK
86562008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8657
8658 * MAINTAINERS: Added myself to section Write After Approval.
8659
b7d038ae
DJ
86602008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8661
8662 * ia64-tdep.c (examine_prologue): Correct array access.
8663
1f906a60 86642008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
8665
8666 * cp-support.c (first_component_command): Return if no arguments.
8667
df3ac606
CD
86682008-03-28 Carlos O'Donell <carlos@codesourcery.com>
8669
8670 * ser-mingw.c (ser_windows_open): Open requested name.
8671
ca933485
AR
86722008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8673
8674 * MAINTAINERS: Added myself.
8675
5f667f2d
PA
86762008-03-28 Pedro Alves <pedro@codesourcery.com>
8677
8678 * target.c (find_default_run_target): Allow a NULL `do_mesg'
8679 parameter. If it is NULL, don't call error.
8680 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
8681 `do_mesg' parameter to find_default_run_target. If no target was
8682 found, return 0.
8683
e741f4d4
DJ
86842008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
8685
8686 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
8687 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
8688 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
8689 Delete.
8690 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
8691
f66d8205 86922008-03-27 Joel Brobecker <brobecker@adacore.com>
8693
8694 GDB 6.8 released.
8695
221c031f
UW
86962008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8697
8698 * features/Makefile (%.dat): Set xmltarget to the base filename
8699 of the XML source, without subdirectory.
8700 * regformats/rs6000/powerpc-32.dat: Regenerate.
8701 * regformats/rs6000/powerpc-64.dat: Regenerate.
8702 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8703
40c58d95
MD
87042008-03-27 Markus Deuling <deuling@de.ibm.com>
8705
8706 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
8707 objfile arch.
8708
bb1ec7d2
NR
87092008-03-27 Nick Roberts <nickrob@snap.net.nz>
8710
8711 * mi/mi-main.c (enum captured_mi_execute_command_actions):
8712 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
8713
5e2b427d
UW
87142008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8715
8716 * objfiles.h (struct objfile): New GDBARCH member.
8717 (get_objfile_arch): Add prototype.
8718 * objfiles.c: Include "arch-utils.h".
8719 (allocate_objfile): Look up gdbarch associated with bfd.
8720 (get_objfile_arch): New function.
8721 * Makefile (objfiles.o): Update dependencies.
8722
8723 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
8724 by objfile arch.
8725 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
8726 by frame arch.
8727 (locexpr_describe_location): Replace current_gdbarch by
8728 objfile arch.
8729 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
8730 (dwarf2_add_field): Likewise.
8731 (read_tag_pointer_type): Likewise.
8732 (read_base_type): Likewise.
8733 (new_symbol): Likewise.
8734
8735 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
8736 (decode_base_type, decode_function_type): Likewise.
8737 (coff_read_struct_type, coff_read_enum_type): Likewise.
8738 (coff_symtab_read): Replace current_gdbarch by objfile arch.
8739 (decode_base_type): Likewise.
8740 (coff_read_enum_type): Likewise.
8741 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
8742 (coff_read_enum_type): Likewise.
8743
8744 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
8745 (end_psymtab): Likewise.
8746 (process_one_symbol): Likewise.
8747
8748 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
8749 (parse_procedure): Likewise.
8750 (parse_partial_symbols): Likewise.
8751
8752 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
8753
8754 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
8755 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
8756 built-in types.
8757 (read_range_type): Replace current_gdbarch by objfile arch. Replace
8758 static range_index_type by built-in type.
8759 (read_one_struct_field): Replace current_gdbarch by objfile arch.
8760 (read_enum_type): Likewise.
8761
8762 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
8763 objfile arch.
8764
5a413362
VP
87652008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8766
8767 * varobj.h (varobj_floating_p): Declare.
8768 * varobj.c (varobj_floating_p): New.
8769 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
8770 '@' as the name, update all floating varobjs.
8771
a5defcdc
VP
87722008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8773
8774 * varobj.c (struct varobj_root): Rename use_selected_frame to
8775 floating, and clarify the meaning.
8776 (varobj_create, varobj_update, new_root_variable): Adjust.
8777 (value_of_root): Don't use type_changed as in variable,
8778 adjust comment.
8779 (c_value_of_root): Adjust.
5a413362 8780
403fe197
PA
87812008-03-25 Pedro Alves <pedro@codesourcery.com>
8782
8783 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
8784 gdb's thread list.
8785 (linux_nat_wait): Add main lwp to gdb's thread list.
8786 * linux-thread-db.c (find_new_threads_callback): Also attach to
8787 already listed threads which thread_db didn't know about yet.
8788
710151dd
PA
87892008-03-25 Pedro Alves <pedro@codesourcery.com>
8790
8791 * linux-nat.c (drain_queued_events): Fix comment typo.
8792 (linux_nat_attach): In async mode, don't rely on storing a pending
8793 status. Instead place the wait status on the pipe.
8794 (linux_nat_resume): Remove unreacheable shortcut code in async
8795 mode.
8796 (stop_wait_callback): In async mode, don't store pending status.
8797 Instead, cancel breakpoints or resend the signal appropriatelly.
8798 (cancel_breakpoint): New, refactored from
8799 cancel_breakpoints_callback.
8800 (cancel_breakpoints_callback): Call cancel_breakpoint.
8801 (pipe_to_local_event_queue): Remove special token processing.
8802 (linux_nat_wait): Issue an internal error if a pending status is
8803 found in async mode.
8804
807bddf3
DJ
88052008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8806
8807 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
8808
c5b48eac
VP
88092008-03-24 Nick Roberts <nickrob@snap.net.nz>
8810 Vladimir Prus <vladimir@codesourcery.com>
8811
680b56ce
AS
8812 * varobj.c (struct varobj_root): New component thread_id.
8813 (varobj_get_thread_id, check_scope): New functions.
8814 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
8815 proper thread if necessary.
8816
680b56ce 8817 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 8818
680b56ce 8819 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 8820
12f4afab
DJ
88212008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
8822
8823 PR gdb/544
8824 * top.c: Revert 2008-03-21 changes.
8825
6208b47d
VP
88262008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8827
8828 * thread.c (make_cleanup_restore_current_thread): Make it
8829 globally visible.
8830 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8831 * varobj.c (varobj_update): Don't save/restore frame.
8832 (c_value_of_root): Save/restore thread and frame here,
8833 using make_cleanup_restore_current_thread.
8834 * Makefile.in: Update dependecies.
8835
44a67aa7
VP
88362008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8837
680b56ce
AS
8838 * varobj.c (struct varobj_root): Clarify
8839 comment on the frame field.
8840 (varobj_create): Don't set frame if we have no
8841 block.
44a67aa7 8842
b562a0cb
DJ
88432008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8844
8845 PR gdb/544
8846 Suggested by Jan Kratochvil:
8847 * top.c (gdb_rl_operate_and_get_next_completion): Call
8848 rl_redisplay_function.
8849 (gdb_rl_redisplay): New.
8850 (init_main): Set rl_redisplay_function.
8851
ed1bd5f5
JB
88522008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8853
8854 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8855 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8856 (store_regs_kernel_thread): Likewise.
8857
b84876c2
PA
88582008-03-21 Pedro Alves <pedro@codesourcery.com>
8859
8860 Linux native async support.
8861
8862 * target.h (struct target_ops): Delete to_async_mask_value and add
8863 to_async_mask.
8864 (target_is_async_p, target_async): Formatting.
8865 (target_async_mask_value): Delete.
8866 (target_async_mask): Delete function declaration, and add new
8867 target macro with the same name.
8868
8869 * target.c (update_current_target): Replace to_async_mask_value by
8870 to_async_mask. Default to_async_mask to return_one.
8871 (target_async_mask): Delete.
8872 (find_default_can_async_p, find_default_is_async_p): New.
8873 (init_dummy_target): register find_default_can_async_p and
8874 find_default_is_async_p on the dummy target.
8875
8876 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8877 (debug_linux_nat_async): New global.
8878 (show_debug_linux_nat_async): New function.
8879 (linux_nat_async_enabled, linux_nat_async_mask_value)
8880 (linux_nat_event_pipe, linux_nat_num_queued_events)
8881 (linux_nat_async_events_enabled): New globals.
8882 (struct waitpid_result): New struct.
8883 (waitpid_queue): New global.
8884 (queued_waitpid, push_waitpid, drain_queued_events): New.
8885 (my_waitpid): Call queued_waitpid.
8886 (linux_child_follow_fork): Disable async events during the call.
8887 (blocked_mask): Delete.
8888 (sync_sigchld_action, async_sigchld_action): New globals.
8889 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
8890 async mode, block events during the call.
8891 (linux_nat_create_inferior): New.
8892 (linux_nat_attach): In sync mode, restore the mask states. In
8893 async mode, wake the event loop immediatelly.
8894 (detach_callback): Drain all queued events of the lwp we're
8895 detaching from.
8896 (linux_nat_detach): Block async mode, and drain events of the main
8897 process.
8898 (linux_nat_resume): If in async mode, mask async events during the
8899 call. If short circuiting, force event loop to wake up. If
8900 resuming, set target_executing, and register target events in the
8901 event loop.
8902 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
8903 (linux_nat_wait): In async mode, block events during the call.
8904 Only enable/disable passing SIGINT to the inferior in sync mode.
8905 Get events from local waitpid queue. If no interesting events was
8906 found, return to events loop. Reregister target events in the
8907 event loop on exit. In sync mode, no need to reblock SIGCHLD.
8908 (linux_nat_kill): Disable events on entry.
8909 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
8910 here. Detach async mode from the event loop if there are no more
8911 forks available, otherwise leave it on.
8912 (sigchld_handler): Assure this is called only in sync mode.
8913 (linux_async_permitted, linux_async_permitted_1): New globals.
8914 (set_maintenance_linux_async_permitted)
8915 (show_maintenance_linux_async_permitted): New functions.
8916 (linux_nat_is_async_p, linux_nat_can_async_p)
8917 (linux_nat_async_mask): New.
8918 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
8919 (get_pending_events, async_sigchld_handler): New.
8920 (linux_nat_async_events): New.
8921 (async_terminal_is_ours): New global.
8922 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
8923 (async_client_callback, async_client_context): New.
8924 (linux_nat_async_file_handler, linux_nat_async)
8925 (linux_nat_disable_async, linux_nat_enable_async): New.
8926 (linux_nat_add_target): Register linux_nat_create_inferior,
8927 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
8928 linux_nat_async_mask, linux_nat_terminal_inferior and
8929 linux_nat_terminal_ours.
8930 (_initialize_linux_nat): Remove local action variable, and update
8931 code that used it to use sync_sigchld_action. Add new
8932 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
8933 set/show command in the maintenance class. Add new "linux-async"
8934 maintenance set/show command. Block SIGCHLD by default. Setup
8935 async_sichld_action, and sync_sigchld_action. Install the default
8936 async mode.
8937 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
8938 the cancel signals.
8939
8940 * linux-thread-db.c (re_check_for_thread_db): New.
8941 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
8942 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
8943 (thread_db_async_mask): New.
8944 (init_thread_db_ops): Register thread_db_can_async_p,
8945 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
8946
8947 * remote.c (remote_async_mask_value): New.
8948 (remote_return_zero): New.
8949 (init_remote_ops): Register remote_return_zero as callbacks of
8950 to_can_async_p and to_is_async_p.
8951 (remote_can_async_p, remote_is_async_p, remote_async): Update to
8952 use remote_async_mask_value.
8953 (remote_async_mask): New.
8954 (init_remote_async_ops): Remove to_async_mask_value setting and
8955 register remote_async_mask as to_async_mask callback in
8956 remote_async_ops.
8957
8958 * Makefile.in (linux-nat.o): Update.
8959
17faa917
DJ
89602008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8961
8962 * gdbthread.h (add_thread_with_info): New.
8963 * linux-thread-db.c: Add some documentation.
8964 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
8965 (struct private_thread_info): Remove th_valid and ti_valid.
8966 Replace ti with tid.
8967 (thread_get_info_callback): Do not add TID to the new ptid. Do
8968 not cache th or ti.
8969 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
8970 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
8971 new PTID.
8972 (attach_thread): Handle an already-existing thread. Use
8973 add_thread_with_info. Cache the th and tid.
8974 (detach_thread): Verify that private was set. Remove verbose
8975 argument and printing. Update caller.
8976 (thread_db_detach): Do not adjust inferior_ptid.
8977 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
8978 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
8979 (thread_db_wait): Do not use lwp_from_thread.
8980 (thread_db_pid_to_str): Use the cached TID.
8981 (thread_db_extra_thread_info): Check that private is set.
8982 (same_ptid_callback): Delete.
8983 (thread_db_get_thread_local_address): Do not use it or check
8984 is_thread. Check that private is set. Assume that the thread
8985 handle is already cached.
8986 (init_thread_db_ops): Remove to_resume and to_kill.
8987 * thread.c (add_thread_with_info): New.
8988 (add_thread): Use it.
8989 * linux-nat.c (find_thread_from_lwp): Delete.
8990 (exit_lwp): Do not use it. Check print_thread_events. Print before
8991 deleting the thread.
8992 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
8993 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
8994 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
8995 printf_unfiltered for thread exits.
8996 * procfs.c (procfs_wait): Likewise.
8997
6214f497
DJ
89982008-03-21 Chris Demetriou <cgd@google.com>
8999
9000 * symtab.c (rbreak_command): Quote symbol name before passing
9001 it to break_command.
9002
63092375
DJ
90032008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9004
9005 * eval.c (evaluate_subexp_for_address): Clarify error message.
9006 Use value_must_coerce_to_target.
9007 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9008 * valops.c (value_assign): Call value_coerce_to_target when
9009 assigning to anything but internalvars. Leave GDB-side arrays
9010 as arrays when assigning to internalvars.
9011 (value_must_coerce_to_target, value_coerce_to_target): New.
9012 (value_coerce_array, value_addr): Call value_coerce_to_target.
9013 (value_array): Create the array in GDB's memory instead of
9014 the inferior's.
9015 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9016 Declare.
9017
b21991b0
DJ
90182008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9019
9020 * top.c (quit_confirm): Warn that we will kill the program.
9021
49a834f9
PA
90222008-03-19 Pedro Alves <pedro@codesourcery.com>
9023
9024 * inflow.c (terminal_ours_1): Guard access to
9025 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9026
ae0d2f24
UW
90272008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9028 Jim Blandy <jimb@codesourcery.com>
9029 Daniel Jacobowitz <drow@false.org>
9030
9031 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9032 (dwarf2_read_address): Update prototype.
9033
9034 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9035 (signed_address_type): Likewise.
9036 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9037 (execute_stack_op): Update calls to unsigned_address_type,
9038 signed_address_type and dwarf2_read_address. Fix implementation
9039 of DW_OP_deref_size.
9040
9041 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9042 (dwarf2_per_cu_addr_size): Likewise.
9043 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9044 (struct dwarf2_loclist_baton): Likewise.
9045
9046 * dwarf2loc.c (find_location_expression): Update calls to
9047 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9048 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9049 (locexpr_describe_location): Likewise.
9050 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9051 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9052 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9053 to dwarf2_per_cu_addr_size (per_cu).
9054 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9055 (loclist_read_variable): Likewise.
9056 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9057
9058 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9059 instead of baton->objfile.
9060 (dwarf2_per_cu_obfile): New function.
9061 (dwarf2_per_cu_addr_size): Likewise.
9062
9063 * dwarf2-frame.c (struct comp_unit): Move higher.
9064 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9065 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9066 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9067 parameter by using fde->eh_frame_p. Use read_encoded_value
9068 to implement DW_CFA_set_loc.
9069 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9070 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9071 execute_stack_op and execute_cfa_program.
9072 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9073 (size_of_encoded_value): Remove.
9074 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9075 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9076 (add_cie): Set cie->unit backlink.
9077 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9078 read_encoded_value.
9079 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9080
1c8201d1
MD
90812008-03-17 Markus Deuling <deuling@de.ibm.com>
9082
9083 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9084 gdbarch_bfd_arch_info.
9085
46bba1ef
JB
90862008-03-17 Joel Brobecker <brobecker@adacore.com>
9087
9088 * aix-thread.c (pdc_read_regs): Minor reformatting.
9089
0bcd3e20
VP
90902008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9091
9092 * thread.c (print_thread_info): Don't insist
9093 on having current thread if there are no
9094 threads at all.
9095
9356cf8d
PA
90962008-03-17 Pedro Alves <pedro@codesourcery.com>
9097
9098 * infcmd.c (attach_command_post_wait)
9099 (attach_command_continuation): New.
9100 (attach_command): Support background async execution, and async
9101 execution in synchronous mode.
9102
5c3ce3f7
DJ
91032008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9104
9105 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9106 * symmisc.c (dump_symtab_1): Likewise.
9107 * wrapper.c (gdb_value_struct_elt): Likewise.
9108
fa2c6a57
PA
91092008-03-17 Pedro Alves <pedro@codesourcery.com>
9110
9111 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9112
02f3fc28
PA
91132008-03-17 Pedro Alves <pedro@codesourcery.com>
9114
9115 * linux-nat.c (linux_nat_filter_event): New, refactored from
9116 linux_nat_wait.
9117 (linux_nat_wait): Call linux_nat_filter_event.
9118
2f77b315
UW
91192008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9120
9121 * top.c (execute_command): Fix uninitialized variable error.
9122
f01be29b
NH
91232008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9124
680b56ce
AS
9125 * Makefile.in (amd64nbsd-nat.o): New dependency.
9126 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9127 (_initialize_amd64nbsd_nat): Update target vector to use
9128 nbsd_pid_to_exec_file.
9129 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9130
6cf32704
VP
91312008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9132
9133 Remove ignoring leading exec events code.
680b56ce
AS
9134 * fork-child.c (startup_inferior): Do not set
9135 inferior_ignoring_leading_exec_events.
9136 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9137 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9138 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9139 (handle_inferior_event): Remove code for ignoring leading exec
9140 events.
9141 * target.c (update_current_target): Do not inherit, or default,
9142 to_reported_exec_events_per_exec_call.
9143 (debug_to_reported_exec_events_per_exec_call): Remove.
9144 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9145 * target.h (target_reported_exec_events_per_exec_call): Remove.
9146 (struct target): Remove the to_reported_exec_events_per_exec_call
9147 field.
6cf32704 9148
8e8901c5
VP
91492008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9150
9151 Implement -thread-info.
680b56ce 9152 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9153
680b56ce
AS
9154 * thread.c (print_thread_info): New, extracted
9155 from info_threads_command and adjusted to
9156 work for CLI and MI.
9157 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9158 * Makefile.in: Update dependencies.
9159
680b56ce
AS
9160 * mi/mi-cmds.c (mi_cmds): Specify a handler
9161 for -thread-info.
9162 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9163 * mi/mi-main.c (mi_cmd_thread_info): New.
9164 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9165
7d1e6fb8
KB
91662008-03-14 Kevin Buettner <kevinb@redhat.com>
9167
9168 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9169 to decide whether to match instruction patterns using "sw" and "sd".
9170
89113898
PA
91712008-03-14 Pedro Alves <pedro@codesourcery.com>
9172
9173 * infcmd.c (jump_command): Postpone disabling stdin until after
9174 the possible query.
9175
64a0ac84
PA
91762008-03-14 Pedro Alves <pedro@codesourcery.com>
9177
9178 * inflow.c (gdb_getpgrp): New.
9179 (gdb_has_a_terminal): Use get_getpgrp.
9180 (terminal_ours_1): If attach_flag is set, don't refetch
9181 inferior_process_group.
9182
1fddbabb
PA
91832008-03-14 Pedro Alves <pedro@codesourcery.com>
9184
9185 * features/library-list.dtd: Allow "section" elements as children
9186 of "library". Add "section" element and describe its attributes.
9187
9188 * solib-target.c (struct lm_info): Add section_bases member.
9189 (library_list_start_segment): Error out if seen a section element.
9190 (library_list_start_section): New.
9191 (library_list_end_library): New.
9192 (solib_target_free_library_list): Free section_bases.
9193 (section_attributes): New.
9194 (library_children): Make "segment" optional. Add "section" child.
9195 (library_list_children): Register library_list_end_library.
9196 (solib_target_relocate_section_addresses): Handle section bases.
9197
9198 * NEWS: Mention new qXfer:libraries:read section offsets support.
9199
712af3be
VP
92002008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9201
9202 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9203 (make_exec_error_cleanup): Remove declarations.
9204 * utils.c (exec_error_cleanup_chain): Remove.
9205 (do_exec_error_cleanups, discard_exec_error_cleanups)
9206 (make_exec_error_cleanup): Remove.
9207 * event-loop.c (start_event_loop): Adjust call to
9208 async_enable_stdin.
9209 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9210 (async_disable_stdin): Don't register async_enable_stdin via
9211 cleanup.
9212 * inf-loop.c (inferior_event_handler): Don't
9213 call do_exec_error_cleanups. Call async_enable_stdin instead.
9214 * event-loop.c (start_event_loop): Adjust call to
9215 async_enable_stdin.
9216 * tui/tui-interp.c (tui_command_loop): Adjust call to
9217 async_enable_stdin.
9218
32c1e744
VP
92192008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9220
9221 Async mode fixes.
680b56ce
AS
9222 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9223 * breakpoint.c (bpstat_do_actions): In async mode,
9224 don't jump to top expecting stop_bpstat to be already
9225 updated.
9226 * event-loop.c (start_event_loop): Call async_enable_stdin
9227 on exception.
9228 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9229 is not set.
9230 (command_handler): Do not setup continuation here.
9231 (command_line_handler_continuation): Move to...
9232 * top.c (command_line_handler_continuation): ... here.
9233 (execute_command): In async mode, register continuation.
9234 Don't check frame's language in running in async mode.
9235 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9236 * inf-loop.c (complete_execution): Inline into...
9237 (inferior_event_handler): ... here. Clear target_executing before
9238 doing any cleanups. Don't try to show prompt if the target was
9239 resumed.
9240 * infcmd.c (signal_command): Add support for async mode.
9241 (finish_command): Only add continuation if the target was
9242 successfully resumed.
9243 * remote.c (init_async_opts): Register to_get_thread_local_address
9244 handler.
9245 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9246 with sync_execution.
9247 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9248 on exception.
32c1e744 9249
c04ea773
DJ
92502008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9251
9252 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9253 * exec.c (exec_bfd_mtime): Define.
9254 (exec_close): Clear it.
9255 (exec_file_attach): Set it.
9256 * gdbcore.h (exec_bfd_mtime): Declare.
9257 * source.c (find_source_lines): Do not use bfd_get_mtime.
9258
952dc227
VP
92592008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9260
9261 * top.c (simplified_command_loop): Remove.
9262
4cf46804
VP
92632008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9264
9265 Remove unused remote.c hooks.
680b56ce
AS
9266 * remote.c (deprecated_target_resume_hook)
9267 (deprecated_target_wait_loop_hook): Remove.
9268 (remote_resume): Do not call deprecated_target_resume_hook.
9269 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9270 (remote_async_wait): Likewise.
4cf46804 9271
683f2885
VP
92722008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9273
9274 Implement MI notification for new threads.
680b56ce
AS
9275 * doc/observer.texi (new_thread): Document.
9276 * observer.sh: Forward declare struct thread_info.
9277 * thread.c (add_thread): Notify observer.
9278
9279 * interps.h (interp_init_ftype): New parameter
9280 top_level.
9281 (interp_set): Likewise.
9282 (top_level_interpreter_data): Declare.
9283 * interps.c (interp_set): New parameter top_level.
9284 Pass it to interpreter's init function. Remember
9285 top level interpreter.
9286 (interpreter_exec_cmd): Adjust.
9287 (top_level_interpreter_data): New.
9288 * main.c (captured_main): Pass 1 for top_level
9289 parameter of interp_set.
683f2885 9290 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9291 parameter top_level.
9292 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9293
680b56ce
AS
9294 * mi/mi-interp.c (mi_new_thread): New.
9295 (mi_interpreter_init): If top level, register
9296 observer for new threads.
683f2885 9297
680b56ce 9298 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9299
ff9b3928
PA
93002008-03-14 Pedro Alves <pedro@codesourcery.com>
9301
9302 * top.c (execute_command): Disable break and stop
9303 commands in async mode.
9304
b18392ef
PA
93052008-03-14 Pedro Alves <pedro@codesourcery.com>
9306
9307 revert:
9308 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9309 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9310 Call target_stop in the INF_QUIT_REQ case.
9311 * Makefile.in (inf-loop.o): Update.
9312
0aca9f07
PA
93132008-03-14 Pedro Alves <pedro@codesourcery.com>
9314
9315 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9316 Call target_stop in the INF_QUIT_REQ case.
9317 * Makefile.in (inf-loop.o): Update.
9318
0b4e556c
PA
93192008-03-14 Pedro Alves <pedro@codesourcery.com>
9320
9321 * top.c (execute_command): Enable break, info and interrupt
9322 commands in async mode.
9323
8defab1a
DJ
93242008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9325 Daniel Jacobowitz <dan@codesourcery.com>
9326
9327 * breakpoint.h (breakpoint_restore_shadows): New
9328 declaration.
9329 * breakpoint.c (breakpoint_restore_shadows): New.
9330 (read_memory_nobpt): Delete.
9331 * gdbcore.h (read_memory_nobpt): Delete declaration.
9332 * target.c (memory_xfer_partial): Call
9333 breakpoint_restore_shadows.
9334 (restore_show_memory_breakpoints)
2da16c8c 9335 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9336 (show_memory_breakpoints): New.
2da16c8c 9337 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9338 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9339 Make sure we see memory breakpoints when checking if
9340 breakpoint is still there.
9341 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9342 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9343 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9344 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9345
fd532e2e
PA
93462008-03-12 Pedro Alves <pedro@codesourcery.com>
9347
9348 * thread.c (add_thread): Use printf_unfiltered to print.
9349
f749779f 93502008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9351
9352 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9353 that is true only on x86-solaris and x86_64-solaris.
9354 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9355 with proc_get_LDT_entry.
9356
93572008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9358
9359 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9360 * config.in, configure: Regenerate.
9361 * fork-child.c (fork_inferior): Call create_tty_session.
9362 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9363 (create_tty_session): New function.
9364 * terminal.h: Declare create_tty_session.
9365
4fbb74a6
AM
93662008-03-12 Alan Modra <amodra@bigpond.net.au>
9367
9368 PR 5900
9369 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9370 * mipsread.c: Include elf/internal.h.
9371 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9372 to internal range.
9373
20a6ec49
MD
93742008-03-11 Markus Deuling <deuling@de.ibm.com>
9375
9376 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9377 to get at the current architecture and at the target specific vector.
9378 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9379 remove define of I387_ST0_REGNUM.
9380
9381 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9382
9383 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9384 get at the current architecture
9385 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9386 parameter.
9387
9388 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9389 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9390
9391 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9392 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9393 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9394
9395 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9396 at the target specific vector.
9397
9398 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9399 architecture. Use gdbarch_tdep to get at the target specific vector.
9400
9401 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9402 update caller. Use gdbarch_tdep to get at the target specific vector.
9403
9404 (i386_register_to_value: Use get_frame_arch to get at the current
9405 architecture.
9406
9407 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9408 parameter.
9409
9410 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9411 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9412 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9413 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9414
9415 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9416 undef's.
9417
9418 (i387_convert_register_p, i387_register_to_value,
9419 i387_value_to_register): Update call for i386_fp_regnum_p.
9420
9421 * i387-tdep.h: Remove comment.
9422 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9423 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9424 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9425 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9426 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9427
ccd213ac
DJ
94282008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9429
9430 * Makefile.in (fork-child.o): Update.
9431 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9432 argument. Gather all gdbserver features together.
9433 * fork-child.c (exec_wrapper): New variable.
9434 (fork_inferior): Use it.
9435 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9436 (unset_exec_wrapper_command, _initialize_fork_child): New.
9437
94382008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9439
9440 * source.c (directory_command): Modify the determination of
9441 condition of terminal "from_tty".
9442
22566fbd
DJ
94432008-03-10 Matt Rice <ratmice@gmail.com>
9444
9445 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9446
9971ac47
UW
94472008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9448
9449 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9450 of the data passing to strtoulst function.
9451 (info_spu_signal_command): Likewise.
9452
835670cf
VP
94532008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9454
9455 * mi/mi-interp.c (mi_command_loop): Remove
9456 commented-out code.
680b56ce 9457
be86555c
JB
94582008-03-07 Joel Brobecker <brobecker@adacore.com>
9459
9460 * remote.c (extended_remote_attach_1): Make local variable pid an int
9461 instead of a pid_t.
9462
4d7b2d5b
JB
94632008-03-07 Joel Brobecker <brobecker@adacore.com>
9464
9465 * solib-svr4.c (svr4_same_1): New function, originally extracted
9466 from svr4_same and expanded to handle the sparc64 case.
9467 (svr4_same): Move up and reimplement using svr4_same_1.
9468 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9469
61fed90e
RR
94702008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9471
9472 * MAINTAINERS: Move self to Paper trail.
9473
b803fb0f
DJ
94742008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9475
9476 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9477 * event-loop.c (call_async_signal_handler): New.
9478 * event-loop.h (call_async_signal_handler)
9479 (gdb_call_async_signal_handler): Declare.
9480 (mark_async_signal_handler): Add comments.
9481 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9482 * mingw-hdep.c (sigint_event, sigint_handler): New.
9483 (gdb_select): Use them. Wait for the readline signal handler
9484 to finish.
9485 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9486 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9487 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9488 New.
9489 (remote_fileio_ctrl_c_signal_handler): Use
9490 gdb_call_async_signal_handler.
9491 (initialize_remote_fileio): Initialize sigint_fileio_token.
9492 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9493 not initialize tokens here.
9494 (handle_remote_sigint_twice): Likewise. Reinstall
9495 handle_remote_sigint.
9496 (async_remote_interrupt_twice): Just call interrupt_query.
9497 (cleanup_sigint_signal_handler): Do not delete tokens.
9498 (remote_interrupt, remote_interrupt_twice): Use
9499 gdb_call_async_signal_handler.
9500 (interrupt_query): Reinstall the default signal handler.
9501 (_initialize_remote): Initialize tokens here.
9502
8f4d54ed
JB
95032008-03-04 Joel Brobecker <brobecker@adacore.com>
9504
9505 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9506 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9507 Change the type of the lr register to code_ptr.
9508 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9509 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9510 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9511 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9512 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9513 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9514 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9515
95ece428
JW
95162008-03-03 James E. Wilson <wilson@tuliptree.org>
9517
9518 * MAINTAINERS: Update my email address.
9519
686a5eed
KS
95202008-03-03 Keith Seitz <keiths@redhat.com>
9521
9522 From Dave Murphy <davem@devkitpro.org>:
9523 * configure.ac: Set tcl configdir to win under mingw.
9524 * configure: Regenerate.
9525
fa4727a6
DJ
95262008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9527
9528 * breakpoint.c (fetch_watchpoint_value): New function.
9529 (update_watchpoint): Set and clear val_valid. Use
9530 fetch_watchpoint_value. Handle unreadable values on the
9531 value chain. Correct check for user-requested array watchpoints.
9532 (breakpoint_init_inferior): Clear val_valid.
9533 (watchpoint_value_print): New function.
9534 (print_it_typical): Use it. Do not free or clear old_val. Print
9535 watchpoints even if old_val == NULL.
9536 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9537 becoming readable or unreadable.
9538 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9539 (do_enable_watchpoint): Likewise.
9540 * breakpoint.h (struct breakpoint): Update comment for val. Add
9541 val_valid.
9542 * NEWS: Mention watchpoints on inaccessible memory.
9543
9b7d9019 95442008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
9545
9546 * Makefile.in (i386-nat.o): Update.
9547 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9548 i386_use_watchpoints.
9549 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9550 i386_use_watchpoints.
9551 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9552 (i386_stopped_by_watchpoint): Update call.
9553 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9554 * config/i386/nm-i386.h: Conditionalize definitions on
9555 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9556 (i386_use_watchpoints): Declare.
9557 (i386_stopped_data_address): Update.
9558 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9559 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9560
c24d7425 95612008-02-29 Joel Brobecker <brobecker@adacore.com>
9562
9563 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9564 * version.in: Bump version to 6.8.50.20080229-cvs.
9565
a7dfd010
MD
95662008-02-28 Markus Deuling <deuling@de.ibm.com>
9567
9568 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9569 properly.
9570
258c00cc
TT
95712008-02-28 Tom Tromey <tromey@redhat.com>
9572
9573 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9574
8edfe269
DJ
95752008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9576
9577 * infcmd.c (kill_if_already_running): Make static. Use
9578 target_require_runnable.
9579 * target.c (target_require_runnable): New.
9580 * target.h (target_require_runnable): Declare.
9581
0d6ba1b1
DJ
95822008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9583
9584 * frame.c (reinit_frame_cache): Only annotate if frames were
9585 previously valid.
9586
6fe305f7
UW
95872008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9588
9589 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9590 * regformats/reg-ppc64.dat: Likewise.
9591
9b4b61c8
UW
95922008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9593
9594 * features/Makefile (%.dat): Emit xmltarget statement.
9595
9596 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9597 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9598
9599 * regformats/arm-with-iwmmxt.dat: Regenerate.
9600 * regformats/mips64-linux.dat: Regenerate.
9601 * regformats/mips-linux.dat: Regenerate.
9602 * regformats/rs6000/powerpc-32.dat: Regenerate.
9603 * regformats/rs6000/powerpc-64.dat: Regenerate.
9604 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9605
9606 * regformats/reg-arm.dat: Add xmlarch statement.
9607 * regformats/reg-i386.dat: Likewise.
9608 * regformats/reg-i386-linux.dat: Likewise.
9609 * regformats/reg-x86-64-linux.dat: Likewise.
9610 * regformats/reg-spu.dat: Likewise.
9611
20b4711e
DJ
96122008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9613
9614 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9615 an error.
9616
1843f87b
DJ
96172008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9618
9619 * utils.c (debug_timestamp): New.
9620 (vfprintf_unfiltered): Print timestamps if requested.
9621 (show_debug_timestamp): New.
9622 (initialize_utils): Register "set debug timestamp".
9623 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
9624
6a048695
JB
96252008-02-27 Joel Brobecker <brobecker@adacore.com>
9626
9627 * breakpoint.c (skip_prologue_sal): New function.
9628 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
9629 computed from a line number.
9630
0b998f49
JB
96312008-02-27 Joel Brobecker <brobecker@adacore.com>
9632
9633 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
9634 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9635 Set PC register type to "code_ptr".
9636 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9637 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9638 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9639 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9640 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9641 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9642 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
9643 Regenerate.
9644
d05b4ac3
UW
96452008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9646
9647 * regformats/regdat.sh: Rename init_registers function in
9648 generated file to init_registers_${name}.
9649
9650 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9651 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9652 * regformats/reg-s390x.dat: Set "name" to s390x.
9653
a5d9d57d
DJ
96542008-02-26 Greg Law <glaw@undo-software.com>
9655
9656 * regcache.c (registers_changed): Call reinit_frame_cache.
9657
e25c958c
DJ
96582008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9659
9660 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
9661 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
9662 and svr4_fetch_objfile_link_map.
9663 * Makefile.in (sh-linux-tdep.o): Update.
9664
5daa78cc
TJB
96652008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9666
9667 * amd64-tdep.c (amd64_classify): Add support for decimal float
9668 types.
9669 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
9670 use the struct return convention.
9671
54e52265
VP
96722008-02-26 Nick Roberts <nickrob@snap.net.nz>
9673
9674 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
9675 to old format. Discard breakpoint address if shared library is
9676 unloaded.
9677 (breakpoint_1): Adjust formatting of table header accordingly.
9678
d8f2712d
VP
96792008-02-25 Vladimir Prus <vladimir@codesourcery.com>
9680
9681 * remote.c (remote_get_threadlist): If the response
9682 is empty, don't try to parse it.
9683
05ce04a4
VP
96842008-02-23 Vladimir Prus <vladimir@codesourcery.com>
9685
9686 Unbreak 'target async'.
680b56ce
AS
9687 * serial.c (serial_async): Set the
9688 handler function before enabling async
9689 mode.
05ce04a4 9690
b36ec657
DJ
96912008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
9692
9693 * solib-svr4.c (enable_break): Convert r_brk to a code address.
9694
df7df359
PA
96952008-02-21 Pedro Alves <pedro@codesourcery.com>
9696
9697 * remote.c (extended_remote_attach_1): Set attach_flag.
9698 (extended_remote_create_inferior_1): Clear attach_flag.
9699
7cd25cfc
DJ
97002008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9701
9702 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
9703 r_brk_offset.
9704 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
9705 * solib-svr4.c (solib_svr4_r_brk): New.
9706 (open_symbol_file_object, svr4_current_sos): Always check the
9707 debug base.
9708 (svr4_fetch_objfile_link_map): Do not set debug_base.
9709 (enable_break): Use r_brk if it is set.
9710 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
9711 (svr4_lp64_fetch_link_map_offsets): Likewise.
9712 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
9713
07ea644b
MD
97142008-02-20 Markus Deuling <deuling@de.ibm.com>
9715 Mark Kettenis <kettenis@gnu.org>
9716
9717 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
9718 trad_frame_saved_reg.
680b56ce 9719 (trad-frame.h): New include.
07ea644b
MD
9720
9721 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 9722 instead of frame_obstack_zalloc.
07ea644b
MD
9723 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
9724
680b56ce 9725 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 9726
40887e1a
MD
97272008-02-20 Markus Deuling <deuling@de.ibm.com>
9728
9729 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
9730 from disassemble_info instead of gdbarch_byte_order.
9731
9732 * mips-tdep.c (gdb_print_insn_mips): Likewise.
9733 * arm-tdep.c (gdb_print_insn_arm): Likewise.
9734
ae4b2284
MD
97352008-02-20 Markus Deuling <deuling@de.ibm.com>
9736
9737 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
9738 gdbarch as parameter.
9739
9740 * gdbarch.{c,h}: Regenerate.
9741
9742 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9743 parameter.
9744 * mem-break.c (default_memory_insert_breakpoint)
9745 (default_memory_remove_breakpoint): Likewise.
9746 * target.h (default_memory_remove_breakpoint)
9747 (default_memory_insert_breakpoint): Likewise.
9748
9749 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9750 parameter. Replace current_gdbarch by gdbarch.
9751 * m32r-tdep.c (m32r_memory_insert_breakpoint)
9752 (m32r_memory_remove_breakpoint): Likewise.
9753
d9bf65d5
DJ
97542008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
9755
9756 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
9757
b93b6ca7
JB
97582008-02-19 Joel Brobecker <brobecker@adacore.com>
9759
9760 * NEWS: Add entry describing Add support improvements.
9761
4ed226fe
MD
97622008-02-18 Markus Deuling <deuling@de.ibm.com>
9763
9764 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
9765 M68K_FP0_REGNUM.
9766
caaa79ad
MD
97672008-02-18 Markus Deuling <deuling@de.ibm.com>
9768
9769 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
9770 register_offset_hack anymore.
9771
9772 * regcache.{c,h} (register_offset_hack): Remove.
9773
e38c262f
MD
97742008-02-18 Markus Deuling <deuling@de.ibm.com>
9775
9776 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
9777
9778 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
9779 current_gdbarch by gdbarch.
9780 (hppa64_hpux_find_global_pointer): Likewise.
9781 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
9782 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
9783 find_global_pointer.
9784
9785 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
9786 parameter.
9787 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
9788
9789 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
9790 of gdbarch_num_regs.
9791
9792 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 9793 replace current_gdbarch by gdbarch.
e38c262f
MD
9794 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
9795
206988c4
MD
97962008-02-18 Markus Deuling <deuling@de.ibm.com>
9797
9798 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
9799 and replace current_gdbarch by gdbarch.
9800
9801 (store_register): Update call for exec_one_dummy_insn.
9802 (fetch_register, store_register): Update call of regmap.
9803
9804 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
9805 parameter and replace current_gdbarch by gdbarch.
680b56ce 9806
206988c4
MD
9807 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
9808 the current architecture. Update call for getregs_supplies and
9809 getfpregs_supplies.
9810 (ppcnbsd_fetch_inferior_registers): Likewise.
9811
680b56ce 9812 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
9813 replace current_gdbarch by gdbarch.
9814 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
9815 get_regcache_arch to get at the current architecture. Update call for
9816 getfpregs_supplies.
9817
f642be6b
MD
98182008-02-18 Markus Deuling <deuling@de.ibm.com>
9819
9820 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 9821 variables.
f642be6b 9822
b1f2bf01
MD
98232008-02-15 Markus Deuling <deuling@de.ibm.com>
9824
9825 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
9826
ee163bf5
VP
98272008-02-14 Vladimir Prus <vladimir@codesourcery.com>
9828
9829 * NEWS: Mention pending breakpints in MI.
680b56ce 9830
f6fbcbf9
MD
98312008-02-14 Markus Deuling <deuling@de.ibm.com>
9832
9833 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
9834
36af4ef6
MD
98352008-02-13 Markus Deuling <deuling@de.ibm.com>
9836
9837 Add script to build and test GDB using enable-targets=all.
9838
9839 * gdb_buildall.sh: New file.
9840
94a0e877
MG
98412008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
9842
9843 * NEWS (New native configurations): Xtensa GNU/Linux.
9844 (New targets): Xtensa GNU/Linux.
9845 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
9846 xtensa-linux-tdep.o
9847 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
9848 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
9849 * configure.tgt (xtensa*-*-linux*): New entry.
9850 * xtensa-config.c (xtensa_tdep): New variable.
9851 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9852 (rmap): Change format based on new macro XTREG.
9853 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9854 * xtensa-linux-nat.c: New.
9855 * xtensa-linux-tdep.c: New.
9856 * xtensa-xtregs.c: New.
9857 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9858 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9859 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9860 (xtensa_register_t): New field coprocessor.
9861 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9862 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9863 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9864 Update to handle privileged registers.
9865 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9866 (xtensa_push_dummy_call): Set windowstart register correctly.
9867 (call0_analyze_prologue): Initialize xtensa_default_isa.
9868 (xtensa_derive_tdep): New.
9869 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9870 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9871 Call xtensa_derive_tdep().
9872 * config/xtensa/linux.mh: New.
9873 * regformats/reg-xtensa.dat: New.
9874
b7ee1b0a 98752008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
9876
9877 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9878 (filenames.h): New include.
9879 * Makefile.in (corelow.o): Add dependency for filenames.h.
9880
8da2a1df
DJ
98812008-02-08 Doug Evans <dje@google.com>
9882
9883 * source.c (find_and_open_source): Always rewrite absolute filenames.
9884
776592bf
DE
98852008-02-07 Doug Evans <dje@google.com>
9886
9887 * breakpoint.c: #include "hashtab.h".
9888 (ambiguous_names_p): New fn.
9889 (update_breakpoint_locations): When restoring bp enable status, don't
9890 compare function names if any functions have same name.
9891 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
9892
d6565258
JB
98932008-02-07 Joel Brobecker <brobecker@adacore.com>
9894
9895 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
9896 instead of just a VEC*. Update use of SV.
9897 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
9898
6d53d0af
JB
98992007-02-07 Joel Brobecker <brobecker@adacore.com>
9900
9901 * NEWS: Put all new commands since gdb-6.7 together.
9902
2ba95b9b
JB
99032007-02-07 Joel Brobecker <brobecker@adacore.com>
9904
9905 * ada-lang.c: #include "vec.h".
9906 (struct string_vector, new_string_vector, string_vector_append):
9907 Delete.
9908 (char_ptr): New typedef.
9909 (DEF_VEC_P (char_ptr)): New VEC type.
9910 (symbol_completion_add): Update profile to take the new VEC type
9911 instead of the old string_vector structure. Update code accordingly.
9912 (ada_make_symbol_completion_list): Use the new VEC type instead of
9913 the old string_vector structure, and update the code accordingly.
9914 * Makefile.in (ada-lang.o): Add dependency on vec.h.
9915
4ae0885a
PM
99162008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9917
9918 * p-exp.y: Set current_type in missing places.
9919 (leftdiv_is_integer): New static variable.
9920 Typecast right operand of BINOP_DIV to long_double if both operands
9921 are integers.
9922
06b1d59c
MR
99232008-02-06 Maciej W. Rozycki <macro@mips.com>
9924
9925 * remote-mips.c (set_breakpoint): Rename to...
9926 (mips_set_breakpoint): ... this.
9927 (clear_breakpoint): Rename to...
9928 (mips_clear_breakpoint): ... this.
9929 (common_breakpoint): Rename to...
9930 (mips_common_breakpoint): ... this.
9931 (check_lsi_error): Rename to...
9932 (mips_check_lsi_error): ... this.
9933
41d27058
JB
99342007-02-05 Joel Brobecker <brobecker@adacore.com>
9935
9936 * language.h (struct language_defn): Add new field
9937 la_make_symbol_completion_list.
9938 * symtab.c (default_make_symbol_completion_list): Renames
9939 make_symbol_completion_list.
9940 (make_symbol_completion_list): New function.
9941 * symtab.h (default_make_symbol_completion_list): Add declaration.
9942 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
9943 (auto_language, local_language): Likewise.
9944 * objc-lang.c (objc_language_defn): Likewise.
9945 * scm-lang.c (scm_language_defn): Likewise.
9946 * m2-lang.c (m2_language_defn): Likewise.
9947 * f-lang.c (f_language_defn): Likewise.
9948 * jv-lang.c (java_language_defn): Likewise.
9949 * p-lang.c (pascal_language_defn): Likewise.
9950 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
9951 (minimal_language_defn): Likewise.
9952 * ada-lang.c (struct string_vector): New structure.
9953 (new_string_vector, string_vector_append, ada_unqualified_name)
9954 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
9955 (ada_make_symbol_completion_list): New functions.
9956 (ada_language_defn): Set la_make_symbol_completion_list.
9957 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
9958 this function is static.
9959
ee3a2f01
KB
99602008-02-05 Kevin Buettner <kevinb@redhat.com>
9961
9962 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
9963 to account for call site optimizations.
9964
d844e34b
JB
99652008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
9966
9967 * tracepoint.c (read_actions): Handle end-of-text indicator
9968 in action list properly. (Committed by Jim Blandy)
9969
02e4669d
JB
99702008-02-05 Jim Blandy <jimb@red-bean.com>
9971
9972 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
9973 pseudoregister, not an internal error.
85ecb32b 9974 Reported by: Andrzej Zaborowski
02e4669d 9975
c39c8256
VP
99762008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9977
9978 * varobj.c (c_value_of_variable): Use xstrdup.
9979
ae7d22a6
VP
99802008-02-04 Vladimir Prus <vladimir@codesourcery.com>
9981
9982 Update stored rendition of varobj value when format changes.
9983 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
9984 print_value.
9985 (c_value_of_variable): Return print_value.
ae7d22a6 9986
81fe8080
DE
99872008-02-03 Doug Evans <dje@google.com>
9988
301f0ecf
DE
9989 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
9990 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
9991 * valops.c (value_one): New function.
9992 * value.h (value_one): Declare.
9993
9994 Fix argument promotion for binary arithmetic ops for C.
9995 * valarith.c (unop_result_type): New fn.
9996 (binop_result_type): New fn.
9997 (value_binop): Move result type computation to binop_result_type.
9998 (value_pos, value_neg, value_complement): Move result type
9999 computation to unop_result_type.
10000
81fe8080
DE
10001 PR 2384
10002 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10003 Return basetype, fieldno if found. All callers updated.
10004 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10005 objfile.
10006 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10007 * symfile.h (fill_in_vptr_fieldno): Delete.
10008
41808ebe
DE
100092008-02-02 Doug Evans <dje@google.com>
10010
f8597ac3
DE
10011 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10012
41808ebe
DE
10013 * typeprint.c (*): Whitespace cleanup.
10014
f964a756
MK
100152008-02-02 Mark Kettenis <kettenis@gnu.org>
10016 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10017 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10018
10019 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10020 don't fit into registerson the stack the way GCC does.
10021
b06ead72
JB
100222008-02-01 Joel Brobecker <brobecker@adacore.com>
10023
10024 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10025 hash table for Ada symbols. Just store the linkage name as is,
10026 and leave the demangled_name as NULL.
10027
2cfa0c8d
JB
100282007-02-01 Joel Brobecker <brobecker@adacore.com>
10029
10030 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10031 in the global scope.
10032 (new_symbol): Likewise.
10033
98deb0da 100342008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10035
10036 * breakpoint.c (break_command_1): Return void.
10037 (break_command_really): Return void. Rethrow
10038 exceptions instead of returning.
10039 (gdb_breakpoint): Remove the error_message parameter.
10040 Return void. Rename to set_breakpoint.
10041 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10042 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10043 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10044 event hooks even if exception is thrown. Adjust to
10045 gdb_breakpoint interface changes.
10046
98deb0da 10047
ce0451ad
TJB
100482008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10049
10050 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10051 float in both first and second word in the doubleword, to support
10052 old and new ABIs.
10053
723a2275
VP
100542008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10055
10056 Properly rethrow exception. This fixes errors
10057 about non-existent functions for -break-insert.
680b56ce
AS
10058 * breakpoint.c (break_command_really): Use throw_exception
10059 for rethrowing. If rethrowing, don't print the exception.
723a2275 10060
d64a946d
TJB
100612008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10062
10063 * NEWS: Mention Decimal Floating Point support.
10064
02b156f5
JB
100652008-01-31 Joel Brobecker <brobecker@adacore.com>
10066
10067 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10068 value type to builtin_type_void_func_ptr.
10069
a16b8bcd
UW
100702008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10071
10072 * s390-tdep.c (is_float_singleton, is_float_like,
10073 alignment_of, s390_return_value): Make checks for
10074 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10075
f949c649
TJB
100762008-01-31 Luis Machado <luisgpm@br.ibm.com>
10077 Thiago Jung Bauermann <bauerman@br.ibm.com>
10078
10079 * infcmd.c (default_print_registers_info): Also print hex
10080 raw contents for TYPE_CODE_DECFLOAT registers.
10081 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10082 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10083 (rs6000_register_name): Add support for DFP pseudo-registers.
10084 (rs6000_pseudo_register_type): Likewise.
10085 rs6000_pseudo_register_reggroup_p): Likewise.
10086 (ppc_pseudo_register_read): New function.
10087 (ppc_pseudo_register_write): Likewise.
10088 (rs6000_pseudo_register_read): Likewise.
10089 (rs6000_pseudo_register_write): Likewise.
10090 (e500_pseudo_register_read): Move checks to
10091 rs6000_pseudo_register_read.
10092 (e500_pseudo_register_write): Move checks to
10093 rs6000_pseudo_register_write.
10094 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10095 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10096 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10097 num_pseudo_regs to account for DFP pseudo regs.
10098
5a9e69ba
TJB
100992008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10100
10101 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10102 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10103 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10104 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10105 e500_pseudo_register_read, e500_pseudo_register_write): Use
10106 IS_SPE_PSEUDOREG macro.
10107 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10108 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10109 Remove initialization of tdep->ppc_ev31_regnum.
10110
4e885b20
JB
101112008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10112
10113 * printcmd.c (print_formatted): Handle references as for unformatted
10114 prints.
10115
80f064a2
JB
101162008-01-30 Joel Brobecker <brobecker@adacore.com>
10117
10118 * eval.c (evaluate_subexp_standard): Add handling of user
10119 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10120
9b3442ee
PM
101212008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10122
10123 * eval.c (evaluate_subexp_standard): Support
10124 BINOP_INTDIV opcode.
10125
d118ef87
PH
101262008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10127
10128 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10129 BINOP_MAX cases.
10130 For BINOP_EXP, use length and signedness of left operand only for
10131 result, as for shifts.
10132 For integral operands to BINOP_EXP, use new integer_pow and
10133 uinteger_pow functions so as to get full range of results.
10134 (integer_pow): New function.
10135 (uinteger_pow): New function.
10136
d56d46f5
VP
101372008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10138
10139 Use vector for varobj_list_children interface.
680b56ce
AS
10140 * gdb/varobj.c (varobj_list_children): Return vector
10141 of varobjs.
10142 * gdb/varobj.h (varobj_list_children): Adjust
10143 prototype.
10144 (varobj_p): Declare. Declare vector thereof.
10145 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10146 for varobj_list_children change.
d56d46f5
VP
10147 * Makefile.in (varobj_h): Update dependencies.
10148
1300a2f4
TJB
101492008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10150
10151 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10152 TYPE_CODE_DECFLOAT arguments.
10153 (ppc64_sysv_abi_push_dummy_call) Likewise.
10154 (get_decimal_float_return_value): New function.
10155 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10156 values by calling get_decimal_float_return_value.
10157 (ppc64_sysv_abi_return_value): Likewise.
10158
95ef687d
NR
101592008-01-30 Nick Roberts <nickrob@snap.net.nz>
10160
10161 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10162 for preprocessor macro information. Formatting changes.
10163
2d717e4f
DJ
101642008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10165
10166 * remote.c (struct remote_state): Add cached_wait_status.
10167 (remote_exec_file): New variable.
10168 (PACKET_vAttach, PACKET_vRun): New constants.
10169 (extended_remote_restart): Do not query for status.
10170 (struct start_remote_args): New.
10171 (remote_start_remote): Take it as a second argument. Check
10172 whether the target is running. Issue an error for non-running
10173 non-extended targets. Cache the wait status. Set inferior_ptid
10174 here.
10175 (remote_open_1): Prompt to disconnect non-running targets. Make
10176 sure the target is marked running. Do not set inferior_ptid here.
10177 Update call to remote_start_remote. Do not call remote_check_symbols
10178 if the target is not running.
10179 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10180 argument. Handle a non-running target.
10181 (remote_detach): Use it.
10182 (extended_remote_detach): New.
10183 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10184 (extended_remote_attach_1, extended_remote_attach)
10185 (extended_async_remote_attach): New.
10186 (remote_vcont_resume): Remove unused variable.
10187 (remote_wait, remote_async_wait): Use any cached wait status.
10188 (putpkt_binary, getpkt): Clear any cached wait status.
10189 (extended_remoute_mourn_1): New.
10190 (extended_remote_mourn): Use it.
10191 (extended_async_remote_mourn, extended_remote_run): New.
10192 (extended_remote_create_inferior_1): New.
10193 (extended_remote_create_inferior): Use it.
10194 (extended_remote_async_create_inferior): Likewise.
10195 (remote_xfer_partial): Skip for non-executing targets.
10196 (init_extended_remote_ops): Set to_detach and to_attach.
10197 (init_extended_async_remote_ops): Likewise. Use
10198 extended_async_remote_mourn.
10199 (_initialize_remote): Register vAttach, vRun, and
10200 set remote exec-file.
10201 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10202
e85a822c
DJ
102032008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10204
10205 * Makefile.in (symfile.o): Update.
10206 * NEWS: Mention exec tracing support.
10207 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10208 exec events.
10209 * infcmd.c (kill_if_already_running, detach_command)
10210 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10211 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10212 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10213 targets. Apply the sysroot path to the loaded executable. Use
10214 no_shared_libraries.
10215 * linux-nat.c (linux_child_follow_fork): Print fork following
10216 messages if verbose.
10217 (kill_wait_callback): Kill again before waiting a second time.
10218 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10219 no_shared_libraries.
10220
9db13498
JB
102212008-01-29 Joel Brobecker <brobecker@adacore.com>
10222
10223 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10224
b4d5ed91
JB
102252008-01-29 Joel Brobecker <brobecker@adacore.com>
10226
10227 * nto-tdep.h: Remove #include "defs.h".
10228 * nto-tdep.c: Add #include "defs.h".
10229 * Makefile.in (nto_tdep_h): Update dependencies.
10230 (nto-tdep.o): Likewise.
10231
107313f7 102322008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10233
10234 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10235 and use it.
10236 (proceed, start_remote): Update call to wait_for_inferior.
10237 * inferior.h (wait_for_inferior): Update declaration.
10238 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10239 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10240 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10241 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10242
3f4178d6
DJ
102432008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10244
680b56ce 10245 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10246 returned value from gdb_value_ind.
10247 (c_describe_child): Likewise.
10248 (cplus_describe_child): Fixed a typo.
10249
5eeba8d4
JB
102502008-01-29 Jim Blandy <jimb@red-bean.com>
10251
10252 * MAINTAINERS: Update my info.
10253
a5606eee
VP
102542008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10255
10256 Use multiple locations for hardware watchpoints.
10257 This eliminates the need to traverse value chain, doing
10258 various checks, in three different places.
10259
680b56ce
AS
10260 * breakpoint.h (struct bp_location): New fields
10261 lengths and watchpoint_type.
10262 (struct breakpoint): Remove the val_chain field.
10263 * breakpoint.c (is_hardware_watchpoint): New.
10264 (free_valchain): Remove.
10265 (update_watchpoint): New.
10266 (insert_bp_location): For hardware watchpoint, just
10267 directly insert it.
10268 (insert_breakpoints): Call update_watchpoint_locations
10269 on all watchpoints. If we have failed to insert
10270 any location of a hardware watchpoint, remove all inserted
10271 locations.
10272 (remove_breakpoint): For hardware watchpoints, directly
10273 remove location.
10274 (watchpoints_triggered): Iterate over locations.
10275 (bpstat_stop_status): Use only first location of
10276 a resource watchpoint.
10277 (delete_breakpoint): Don't call free_valchain.
10278 (print_one_breakpoint): Don't print all
10279 locations for watchpoints.
10280 (breakpoint_re_set_one): Use update_watchpoint for
10281 watchpoints.
a5606eee 10282
0b3de036
VP
102832008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10284
10285 Don't reset watchpoint block on solib load.
10286
680b56ce
AS
10287 * breakpoint.c (insert_bp_location): For watchpoints,
10288 recompute condition.
10289 (breakpoint_re_set_one): Instead of recomputing value
10290 and condition for watchpoints, just reset value and
10291 let insert_breakpoints/insert_bp_location recompute it.
10292 Don't do anything about disabled watchpoint.
0b3de036 10293
c3940723
PM
102942008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10295
10296 * valarith.c (value_binop): Handle unsigned integer
10297 division by zero.
10298
83845630
KB
102992008-01-28 Kevin Buettner <kevinb@redhat.com>
10300
10301 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10302 instruction pattern that appears frequently in position
10303 independent code. Fix bug in code which looks for "fmov" and
10304 backtracks if no "fmov" is found.
10305
9ce5d3bb
DE
103062008-01-28 Doug Evans <dje@google.com>
10307
10308 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10309 Reformat comments to 80 columns.
10310 Move local var def closer to only use.
9ce5d3bb 10311
c78d192c
DJ
103122008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10313
10314 * fork-child.c (SHELL_FILE): Remove #ifndef.
10315 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10316
e11481da
PM
103172008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10318
10319 * i386-tdep.c (i386_skip_noop): New function.
10320 (i386_analyze_prologue): Call i386_skip_noop function.
10321
244e85c8
MS
103222008-01-24 Michael Snyder <msnyder@specifix.com>
10323
10324 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10325 * win32-nat.c (win32_xfer_partial): Ditto.
10326 * target.c (default_xfer_partial): Minor whitespace adjustment.
10327
dd6be234
PA
103282008-01-24 Pedro Alves <pedro@codesourcery.com>
10329
10330 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10331 strip bit 1 even if pc doesn't point to thumb code.
10332
9fa2223d
DJ
103332008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10334
10335 * remote.c (remote_wait): Handle SIGINT between packets.
10336 (remote_async_wait): Likewise.
10337
93815fbf
VP
103382008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10339 Chris Demetriou <cgd@google.com>
10340
680b56ce
AS
10341 * thread.c (add_thread_silent): Renamed
10342 from add_thread.
10343 (print_thread_events): New variable definition.
10344 (show_print_thread_events): New function.
10345 (_initialize_thread): Add "set print thread-events" and
10346 "show print thread-events" commands.
10347 (add_thread): Announce new thread.
10348 * gdbthread.h (add_thread_silent): Declare.
10349 (print_thread_events): New variable declaration.
10350 * inf-ttrace.c (inf_ttrace_wait): Don't
10351 inform about new thread, as add_thread is always
10352 called too, and will take care of that.
10353 * infrun.c (handle_inferior_event): Likewise.
10354 * procfs.c (procfs_wait): Likewise.
10355 * remote.c (remote_currthread): Likewise.
10356 * sol-thread.c (sol_thread_wait): Likewise.
10357 * win32-nat.c (get_win32_debug_event): Likewise.
10358 * linux-thread-db.c (attach_thread): Likewise.
10359 Remove the verbose parameter.
10360 (check_event): Make detach_thread be verbose
10361 only if print_thread_events is set.
10362 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10363 about new thread. This is called only from
10364 linux-thread-db.c:attach_thread, which will take care.
10365 Remove the verbose parameter.
10366 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10367
b4d7c9a6
NR
103682008-01-23 Nick Roberts <nickrob@snap.net.nz>
10369
10370 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10371
60c46647
VP
103722008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10373
10374 * breakpoint.c (break_command_really): New parameter
10375 ignore_count.
10376 (break_command_1): Pass 0 as
10377 ignore_count to break_command_really.
10378 (gdb_breakpoint): Pass ignore_count to
10379 break_command_really.
10380
e84605cd
KB
103812008-01-21 Kevin Buettner <kevinb@redhat.com>
10382
10383 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10384 sigcontext struct via pointer.
10385 (struct sigframe comment): Update to show new field `psc'.
10386
9d9cd7ac
VP
103872008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10388
10389 * infrun.c (handle_inferior_event): If
10390 we failed to remove breakpoints, error,
10391 don't try to increment PC by hand.
10392
af5ca30d
NH
103932008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10394
10395 Add NetBSD/hppa target and host support.
10396
10397 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10398 (hppabsd_gregset): Move to ...
10399 (hppabsd_regset_from_core_section): Rename
10400 hppaobsd_regset_from_core_section and move to ...
10401 (hppabsd_find_global_pointer): Update comment.
10402 (hppabsd_init_abi): Make global. Do not register
10403 hppabsd_regset_from_core_section.
10404 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10405 move to ...
10406 (_initialize_hppabsd_tdep): Move to ...
10407 * hppaobsd-tdep.c: ... here. New file.
10408 * hppnbsd-tdep.c: New file.
10409 * hppnbsd-nat.c: New file.
680b56ce 10410 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10411 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10412 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10413 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10414 * configure.host (hppa*-*-netbsd*): New entry.
10415 * configure.tgt (hppa*-*-netbsd*): New entry.
10416 (hppa*-*-openbsd*): Update.
10417 * NEWS (New native configuration): Mention NetBSD/hppa.
10418 (New targets): Mention NetBSD/hppa.
10419
32c9a795
MD
104202008-01-18 Markus Deuling <deuling@de.ibm.com>
10421
10422 * gdbarch.sh (function_list): Add new property bits_big_endian to
10423 gdbarch structure.
10424 * gdbarch.{c,h}: Regenerate.
10425
10426 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10427 gdbarch_bits_big_endian (comment).
10428 (unpack_field_as_long, modify_field): Likewise.
10429 * value.h: Likewise (comment).
10430 * valops.c (value_slice): Likewise.
10431 * valarith.c (value_subscript, value_bit_index): Likewise.
10432 * gdbtypes.h (field): Likewise (comment).
10433 * eval.c (evaluate_subexp_standard): Likewise.
10434 * dwarf2read.c (dwarf2_add_field): Likewise.
10435 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10436 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10437
32c9a795
MD
10438 * defs.h (BITS_BIG_ENDIAN): Remove.
10439
1e5e79d0
MD
104402008-01-18 Markus Deuling <deuling@de.ibm.com>
10441
10442 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10443 function calls.
10444 * m2-exp.y (yylex): Likewise.
10445 * objc-exp.y (yylex): Likewise.
10446
10447 * defs.h (DEPRECATED_STREQN): Remove.
10448
fabda5a7
L
104492008-01-17 H.J. Lu <hjl.tools@gmail.com>
10450
10451 * MAINTAINERS: Update my email address.
10452
92726479
JB
104532008-01-17 Jim Blandy <jimb@codesourcery.com>
10454
10455 * README: Mention gdbserver/README.
10456
ef80d18e
PM
104572008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10458
10459 * valarith.c (value_binop): Handle BINOP_INTDIV
10460 for unsigned and signed integers.
10461
1de90795
UW
104622008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10463
10464 * s390-tdep.c (s390_gdbarch_init): Set default long double
10465 type to 128-bit IEEE quad.
10466
c70bd6f3
JB
104672008-01-17 Joel Brobecker <brobecker@adacore.com>
10468
10469 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10470
ba759613
MK
104712008-01-16 Mark Kettenis <kettenis@gnu.org>
10472
77d49ac6
MK
10473 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10474
ba759613
MK
10475 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10476 * value.c: All callers changed.
10477
7ecb6532
MD
104782008-01-16 Markus Deuling <deuling@de.ibm.com>
10479
10480 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10481 DEPRECATED_STREQ by its expression.
10482 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10483 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10484 (scan_xcoff_symtab): Likewise.
10485 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10486 * f-lang.c (find_common_for_function): Likewise.
10487 * objc-exp.y (parse_number): Likewise.
10488
10489 * defs.h (DEPRECATED_STREQ): Remove.
10490
d15cf01c
MD
104912008-01-16 Markus Deuling <deuling@de.ibm.com>
10492
10493 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10494 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10495 get_frame_arch to get at the current_architecture. Update AM33_MODE
10496 call.
10497 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10498 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10499 architecture.
10500 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10501
f8028488
MD
105022008-01-16 Markus Deuling <deuling@de.ibm.com>
10503
680b56ce 10504 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
10505 parameter.
10506 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10507
10508 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10509 current_gdbarch by gdbarch. Update caller.
10510
10511 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10512 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10513 the current architecture. Update calls of
10514 amd64_native_gregset_supplies_p.
10515 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10516 (amd64bsd_store_inferior_registers): Likewise.
10517
e101270f
MD
105182008-01-16 Markus Deuling <deuling@de.ibm.com>
10519
10520 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10521 Replace current_gdbarch by gdbarch. Update caller.
10522
063e58ba
MD
105232008-01-16 Markus Deuling <deuling@de.ibm.com>
10524
10525 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10526 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10527 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10528 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10529 (stabsect_build_psymtabs): Fix indentation.
10530
662fb31b
MS
105312008-01-15 Michael Snyder <msnyder@specifix.com>
10532
10533 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10534
c1766e7d
PM
105352008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10536
10537 * win32-nat.c (win32_create_inferior): Restore code calling
10538 CloseHandle on ProcessInformation structure.
10539
5ed10e6e
NH
105402008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10541
10542 * configure.ac: Check for void * as 3 argument of ptrace.
10543 * configure: regenerate.
10544
be8626e0
MD
105452008-01-11 Markus Deuling <deuling@de.ibm.com>
10546
10547 * alpha-tdep.c (alpha_heuristic_proc_start)
10548 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10549 current_gdbarch by gdbarch.
10550
10551 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 10552 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
10553 call.
10554
10555 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10556 get_frame_arch to get at the current architecture by frame_info. Update
10557 alpha_sigtramp_register_address call.
10558
10559 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10560 current_gdbarch by gdbarch. Update caller.
10561 (convert_to_extended, convert_from_extended): Add endianess parameter
10562 for comparison. Update caller.
10563 (arm_extract_return_value, arm_store_return_value): Use
10564 get_regcache_arch to get at the current architecture.
10565
10566 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10567 current_gdbarch by gdbarch. Update caller.
10568 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10569 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10570
10571 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 10572 gdbarch as parameter. Update caller.
be8626e0
MD
10573 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10574 current_gdbarch by gdbarch. Update caller.
10575
680b56ce 10576 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
10577 update caller. Replace current_gdbarch by gdbarch.
10578
10579 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10580 the current architecture. Replace current_gdbarch by gdbarch.
10581 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10582 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10583 expression. Add gdbarch as parameter and replace current_gdbarch with
10584 it. Update caller.
10585 (M6811_TDEP): Remove.
10586 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10587 architecture.
680b56ce 10588 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
10589 current_gdbarch by gdbarch. Update caller.
10590
10591 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10592 update caller.
10593 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10594 by gdbarch.
10595
10596 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10597 caller. Relace current_gdbarch by gdbarch.
10598 (altivec_register_p, spe_register_p): Likewise.
10599 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10600 parameter.
10601 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10602 altivec_register_p and spe_register_p.
10603
680b56ce 10604 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
10605 caller. Replace current_gdbarch by gdbarch.
10606 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 10607 architecture.
be8626e0
MD
10608
10609 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10610 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10611 current_gdbarch by gdbarch. Update caller.
10612 (sparc_frame_cache): Use get_frame_arch to get at the current
10613 architecture.
10614 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10615 sparc_analyze_prologue.
10616
10617 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10618 parameter.
10619
ed49a04f
MD
106202008-01-11 Markus Deuling <deuling@de.ibm.com>
10621
10622 * exec.c: #include "arch-utils.h"
10623 (print_section_info): Use gdbarch_from_bfd to get at the
10624 current architecture. Replace current_gdbarch. Fix indention. Replace
10625 deprecated_print_address_numeric by paddress.
10626 * Makefile.in (exec.o) Add dependency to arch-utils.h.
10627
680b56ce 10628 * valprint.c (val_print_string): Replace
ed49a04f
MD
10629 deprecated_print_address_numeric.
10630 * tracepoint.c (trace_mention, scope_info): Likewise.
10631 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
10632 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
10633 (maintenance_check_symtabs): Likewise.
10634 * symfile.c (list_overlays_command): Likewise.
10635 * stack.c (frame_info, print_block_frame_labels): Likewise.
10636 * printcmd.c (print_address, print_address_demangle)
10637 (address_info): Likewise.
10638 * corefile.c (memory_error): Likewise.
10639 * infcmd.c (jump_command): Likewise.
10640 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
10641 (mention, delete_breakpoint): Likewise.
10642 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
10643 * dwarf2read.c (dump_die): Likewise.
10644 * ada-valprint.c (ada_val_print_1): Likewise.
10645 * f-valprint.c (f_val_print): Likewise.
680b56ce 10646 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
10647 * m32r-com.c (m32r_load_section, m32r_load)
10648 (m32r_upload_command): Likewise.
10649
10650 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10651
6093d2eb
MD
106522008-01-11 Markus Deuling <deuling@de.ibm.com>
10653
10654 * gdbarch.sh (skip_prologue): Add gdbarch
10655 as parameter.
10656 * gdbarch.{c,h}: Regenerate.
10657
10658 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
10659 * amd64-tdep.c (amd64_skip_prologue): Likewise.
10660 * avr-tdep.c (avr_skip_prologue): Likewise.
10661 * cris-tdep.c (cris_skip_prologue): Likewise.
10662 * frv-tdep.c (frv_skip_prologue): Likewise.
10663 * h8300-tdep.c (h8300_skip_prologue): Likewise.
10664 * hppa-tdep.c (hppa_skip_prologue): Likewise.
10665 * i386-tdep.c (i386_skip_prologue): Likewise.
10666 * ia64-tdep.c (ia64_skip_prologue): Likewise.
10667 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
10668 * m32r-tdep.c (m32r_skip_prologue): Likewise.
10669 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
10670 * m68k-tdep.c (m68k_skip_prologue): Likewise.
10671 * m88k-tdep.c (m88k_skip_prologue): Likewise.
10672 * mep-tdep.c (mep_skip_prologue): Likewise.
10673 * mips-tdep.c (mips_skip_prologue): Likewise.
10674 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
10675 * mt-tdep.c (mt_skip_prologue): Likewise.
10676 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
10677 * score-tdep.c (score_skip_prologue): Likewise.
10678 * sh64-tdep.c (sh64_skip_prologue): Likewise.
10679 * sh-tdep.c (sh_skip_prologue): Likewise.
10680 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
10681 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
10682 * spu-tdep.c (spu_skip_prologue): Likewise.
10683 * v850-tdep.c (v850_skip_prologue): Likewise.
10684 * vax-tdep.c (vax_skip_prologue): Likewise.
10685 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
10686 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
10687
10688 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
10689 current_gdbarch by gdbarch.
10690 * m32c-tdep.c (m32c_skip_prologue): Likewise.
10691 * s390-tdep.c (s390_skip_prologue): Likewise.
10692
72f5cf0e
DE
106932008-01-10 Doug Evans <dje@google.com>
10694
10695 * defs.h (struct continuation_arg): Fix typo in comment.
10696 * target.c (target_translate_tls_address): Fix comment spelling error.
10697
689e4e2d
TJB
106982008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
10699
10700 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
10701 (DOUBLEST_SCAN_FORMAT): Likewise.
10702 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
10703 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
10704 * c-exp.y (parse_number): Likewise.
10705 * jv-exp.y (parse_number): Likewise.
10706 * objc-exp.y (parse_number): Likewise.
10707 * p-exp.y (parse_number): Likewise.
10708
ab0d6e0d
JB
107092008-01-09 Joel Brobecker <brobecker@adacore.com>
10710
10711 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
10712 (check_typedef): Likewise.
10713
0aea4bf3
LM
107142008-01-09 Luis Machado <luisgpm@br.ibm.com>
10715
10716 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
10717 seen_double_big_d, treat the new H, D, and DD modifiers as length
10718 modifiers.
10719
137033e9
JB
107202008-01-08 Joel Brobecker <brobecker@adacore.com>
10721
10722 * dwarf2read.c (read_enumeration_type): Add comment.
10723
dda297ec
TJB
107242008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
10725
10726 * config.in: Regenerate.
10727
a93c0eb6
JB
107282008-01-08 Joel Brobecker <brobecker@adacore.com>
10729
10730 * ada-lang.c (ada_convert_actual): Renames convert_actual.
10731 Make non-static.
10732 (ada_convert_actuals): Delete.
10733 * ada-lang.h (ada_convert_actual): Add declaration.
10734 (ada_convert_actuals): Remove declaration.
10735 * infcall.c: #include "ada-lang.h".
10736 (value_arg_coerce): Add new parameter sp. Update function
10737 documetnation. Add handling of Ada function call parameters.
10738 * Makefile.in (infcall.o): Update dependencies.
10739
a84a8a0d
JB
107402008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10741
10742 * ada-lang.c (ensure_lval): Fix value lval kind.
10743 (convert_actual): Add handling for arguments passed by reference.
10744
d7f98cce
DE
107452008-01-08 Doug Evans <dje@google.com>
10746
10747 * dbxread.c (read_dbx_symtab): Fix indentation.
10748
4ef30785
TJB
107492008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10750
10751 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
10752 (valarith.o): Depend on dfp.h.
10753 (valops.o): Likewise.
10754 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
10755 (set_decnumber_context): New function.
10756 (decimal_check_errors): Likewise.
10757 (decimal_from_number): Likewise.
10758 (decimal_to_number): Likewise.
10759 (decimal_from_string): Use set_decnumber_context and
10760 decimal_check_errors.
10761 (decimal_from_integral): New function.
10762 (decimal_from_floating): Likewise.
10763 (decimal_to_double): Likewise.
10764 (promote_decimal): Likewise.
10765 (decimal_binop): Likewise.
10766 (decimal_is_zero): Likewise.
10767 (decimal_compare): Likewise.
10768 (decimal_convert): Likewise.
10769 * dfp.h (decimal_from_integral): New prototype.
10770 (decimal_from_floating): Likewise.
10771 (decimal_to_double): Likewise.
10772 (decimal_binop): Likewise.
10773 (decimal_is_zero): Likewise.
10774 (decimal_compare): Likewise.
10775 (decimal_convert): Likewise.
10776 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
10777 call to value_from_decfloat.
10778 * valarith.c: Include dfp.h.
10779 (value_args_as_decimal): New function.
10780 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
10781 (value_logical_not): Likewise.
10782 (value_equal): Likewise.
10783 (value_less): Likewise.
10784 (value_pos): Likewise.
10785 (value_neg): Formatting fix.
10786 * valops.c: Include dfp.h.
10787 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
10788 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
10789 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
10790 (value_from_decfloat): Remove expect_type argument.
10791 * value.h (value_from_decfloat): Update prototype.
10792
a7c02bc8
VP
107932008-01-07 Vladimir Prus <vladimir@codesourcery.com>
10794
10795 Ignore change in name of dynamic linker during
10796 execution on Solaris. This also unbreaks pending breakpoints.
10797
10798 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
10799 * solib-svr4.c (svr4_same): New.
10800 (_initialize_svr4_solib): Register svr4_same.
10801 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 10802
610dd7f9
CF
108032008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
10804
10805 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
10806 when using MS-DOS paths.
10807
7a404eba
PA
108082008-01-05 Pedro Alves <pedro@codesourcery.com>
10809
10810 * NEWS: Mention --pid and --core command line behaviour changes.
10811
a4d9b460
PA
108122008-01-05 Pedro Alves <pedro@codesourcery.com>
10813
10814 * main.c (captured_main): Remove 'count' varible and the
10815 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
10816 --pid options were issued simultaneously. If an explicit pid
10817 option was passed, don't fallback to core file. Detect extra
10818 arguments better in the presence of explicit pid or core
10819 arguments.
10820
0c281816
JB
108212008-01-05 Joel Brobecker <brobecker@adacore.com>
10822
10823 * ada-lang.c (ada_which_variant_applies): Correctly compute
10824 the value of the discriminant when the variant record is packed.
10825
babe1480
JB
108262008-01-04 Joel Brobecker <brobecker@adacore.com>
10827
10828 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
10829 that are used to differentiate homonyms.
10830
727e3d2e
JB
108312008-01-04 Jerome Guitton <guitton@adacore.com>
10832
10833 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
10834 when the type is an anonymous pointer type.
10835 (ada_check_typedef): Avoid a seg fault when the type is null.
10836 * ada-typeprint.c (print_array_type): Add support for pointer
10837 to packed arrays.
10838
bb28a9dc
JB
108392008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
10840
680b56ce 10841 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 10842
6799def4
JB
108432008-01-04 Joel Brobecker <brobecker@adacore.com>
10844
10845 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
10846 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
10847
d3353bbd
JB
108482008-01-04 Joel Brobecker <brobecker@adacore.com>
10849
10850 * ada-exp.y (chop_separator): New function.
10851 (write_selectors): Rewrite to re-use chop_separator.
10852 (ada_nget_field_index, get_symbol_field_type): New functions.
10853 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10854 expressions.
10855
82cf6c60
TJB
108562008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10857
10858 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10859 of SYMBOL_VALUE when working with function symbols.
10860
b3dbf008
JB
108612008-01-03 Joel Brobecker <brobecker@adacore.com>
10862
10863 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10864 expressions. These expressions do not need to be rewriten.
10865
02eb380e
JB
108662008-01-03 Joel Brobecker <brobecker@adacore.com>
10867
10868 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10869 the given die is a declaration.
10870
abb68b3e
JB
108712008-01-03 Joel Brobecker <brobecker@adacore.com>
10872
10873 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10874 Handle properly the case when the index type is an enumerated type.
10875 Do not return the subtype of the bounds type, just return the
10876 bounds type directly - this is not needed and is more consistent
10877 with what we do for arrays when no XA parallel type exists.
10878
f192137b
JB
108792008-01-03 Joel Brobecker <brobecker@adacore.com>
10880
10881 * ada-lang.c (static_unwrap_type): Add forward declaration.
10882 (template_to_static_fixed_type): Fields of dynamic types sometimes
10883 also need to be unwrapped. Take this into account.
10884 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
10885 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
10886 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 10887 the original type, not the base type.
f192137b 10888
1ed6ede0
JB
108892008-01-03 Jerome Guitton <guitton@adacore.com>
10890
10891 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 10892 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
10893 Update calls to ada_to_fixed_type.
10894 (ada_template_to_fixed_record_type_1): Ditto, but without looking
10895 for the tag.
10896 (ada_to_fixed_type): Add check_tag parameter; do not look for
10897 tag if null. When looking for a tag, use a fixed record type.
10898 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
10899 * ada-valprint.c (printable_val_type, ada_value_print): Update
10900 calls to ada_to_fixed_type.
10901
542a88d0
LM
109022008-01-03 Luis Machado <luisgpm@br.ibm.com>
10903
680b56ce 10904 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
10905 floatformat_to_doublest instead of floatformat_to_double and use
10906 DOUBLEST variables.
10907 (convert_doublest_to_floatformat): Call floatformat_from_doublest
10908 instead of floatformat_from_double and use DOUBLEST variables.
10909
dc2bbab2
NH
109102008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
10911
10912 * MAINTAINERS (Write After Approval): Add self.
10913
8b60591b
JB
109142008-01-03 Joel Brobecker <brobecker@adacore.com>
10915
10916 * symfile.c (set_initial_language): Make non-static.
10917 * symfile.h (set_initial_language): Add declaration.
10918 * language.c: #include "symfile.h".
10919 (set_language): Call set_initial_language if the frame language
10920 could not be determined.
10921
ceef53c1
JB
109222008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
10923
10924 * eval.c (evaluate_subexp_for_address): Provide frame address to
10925 locate_var_value only if it will be needed.
10926
ef29ce1a
JK
109272008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10928
10929 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
10930
0a07e705
JB
109312008-01-02 Joel Brobecker <brobecker@adacore.com>
10932
10933 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10934 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10935 This is needed to make sure that any other treatment applied
10936 to the resulting value does not fail for spurious reason,
10937 such as trying to take the address of this value.
10938
f58b38bf
JB
109392008-01-02 Joel Brobecker <brobecker@adacore.com>
10940
10941 * ada-lang.c (ada_value_equal): Dereference reference types when
10942 comparing arrays.
680b56ce 10943
9b254dd1
DJ
109442008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
10945
10946 Updated copyright notices for most files.
10947
33605d39
CF
109482008-01-01 Christopher Faylor <me+gdb@cgf.cx>
10949
10950 * win32-nat.c (psapi_module_handle): Remove static.
10951 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
10952 return first module found if base_address is zero. Don't initialize
10953 psapi function pointers here. Convert to cygwin paths when
10954 appropriate.
10955 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
10956 executable name. Use get_module_name when that fails or when
10957 !__CYGWIN__.
10958 (_initialize_psapi): New function. Initialize psapi stuff before it is
10959 needed or issue a warning if it is not found. Move psapi_module_handle
10960 here.
10961
29480c32
JB
109622008-01-01 Joel Brobecker <brobecker@adacore.com>
10963
10964 * ada-lang.c (ada_remove_trailing_digits): New function.
10965 (ada_remove_po_subprogram_suffix): New function.
10966 (ada_decode): Improve. Move the description of the algorithm
10967 directly inside the code, instead of in the function global
10968 description.
10969
969a1360
JB
109702008-01-01 Joel Brobecker <brobecker@adacore.com>
10971
10972 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
10973 and always print the dereferenced value.
10974
b7789565
JB
109752008-01-01 Joel Brobecker <brobecker@adacore.com>
10976
10977 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
10978 of the case where the first argument is a reference.
10979 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
10980
73fb9985
JB
109812008-01-01 Joel Brobecker <brobecker@adacore.com>
10982
10983 Implement support for Ada interface types.
10984
10985 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
10986 (ada_is_ignored_field): Ignore fields that are a dispatch table
10987 of a tagged type.
10988
636265b6
JB
109892008-01-01 Joel Brobecker <brobecker@adacore.com>
10990
10991 * top.c (print_gdb_version): Update copyright year.
10992
9d200a2e 109932008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 10994
9d200a2e
JB
10995 * ChangeLog-2007: New ChangeLog rotation.
10996 * ChangeLog: Reset for 2008.
10997 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
10998 ChangeLog-2007.
b7589f7d 10999
9d200a2e 11000For older changes see ChangeLog-2007.
c906108c
SS
11001\f
11002Local Variables:
11003mode: change-log
11004left-margin: 8
11005fill-column: 74
11006version-control: never
57da7796 11007coding: utf-8
c906108c 11008End: