* infrun.c (resume): If following a fork, reread the current
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
607cecd2
PA
12008-11-20 Pedro Alves <pedro@codesourcery.com>
2
3 * infrun.c (resume): If following a fork, reread the current
4 thread. Avoid dereferencing a possibly dangling pointer.
5
642fd101
DE
62008-11-19 Doug Evans <dje@google.com>
7
8 * inferior.h (proceed_to_finish): Delete, unused.
9 (stop_registers): Tweak comment.
10 * infrun.c (stop_registers): Tweak comment.
11
9bc7b6c6
KB
122008-11-19 Kevin Buettner <kevinb@redhat.com>
13
14 * frv-tdep.c (frv_skip_main_prologue): New function.
15 (frv_gdbarch_init): Register frv_skip_main_prologue.
16 * solib-frv.c (fetch_loadmap): Return early when no segments are
17 found.
18 (frv_relocate_main_executable): Return early when both interpreter
19 and executable loadmap addresses are zero.
20
d0107bb6
BW
212008-11-19 Bob Wilson <bob.wilson@acm.org>
22
23 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
24 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
25 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
26 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
27 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
28 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
29 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
30 (xtensa_submask15): Adjust register numbers.
31 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
32 (xtensa_regmap_table): Add entry for scompare1.
33 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
34 and scompare1.
35
6e5abd65
PA
362008-11-19 Pedro Alves <pedro@codesourcery.com>
37
38 * remote.c (escape_buffer): New.
39 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
40 sure debug output printing a packet buffer goes through a single
41 fprintf_unfiltered call.
42 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
43 output with a newline if it wasn't going to already.
44
15c99a44
PP
452008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
46
47 * maint.c (maintenance_translate_address): Fix a buglet.
48
2c4ad781
TJB
492008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
50
51 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
52 rs6000/powerpc-isa205-altivec32l-expedite,
53 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
54 rs6000/powerpc-isa205-altivec64l-expedite,
55 powerpc-isa205-vsx64l-expedite): New variables.
56 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
57 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
58 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
59 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
60 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
61 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
62
69abc51c
TJB
632008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
64
65 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
66 offset for full 64-bit slot of FPSCR when in 32-bits.
67 (ppc_linux_read_description): Return target description with 64-bit
68 FPSCR when inferior is running on an ISA 2.05 or later processor.
69 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
70 initialize_tdec_powerpc_isa205_32l,
71 initialize_tdec_powerpc_isa205_altivec32l,
72 initialize_tdec_powerpc_isa205_vsx32l,
73 initialize_tdec_powerpc_isa205_64l,
74 initialize_tdec_powerpc_isa205_altivec64l and
75 initialize_tdec_powerpc_isa205_vsx64l.
76 * ppc-linux-tdep.h: Add external declaration for
77 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
78 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
79 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
80 * features/rs600/powerpc-fpu-isa205.xml: New file.
81 * features/rs600/powerpc-isa205-32l.xml: New file.
82 * features/rs600/powerpc-isa205-64l.xml: New file.
83 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
84 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
85 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
86 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
87 * features/rs600/powerpc-isa205-32l.c: Generate.
88 * features/rs600/powerpc-isa205-64l.c: Generate.
89 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
90 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
91 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
92 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
93
c14c28ba
PP
942008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
95
96 * objfiles.h: New MULTI_OBJFILE_P macro.
97 * printcmd.c (sym_info): Print object name.
98 * maint.c (maintenance_translate_address): Likewise.
99
d5cbbe6e
JB
1002008-11-18 Joel Brobecker <brobecker@adacore.com>
101
102 * NEWS: Document the removal of "catch load" and "catch unload".
103
2e74121d
DE
1042008-11-17 Doug Evans <dje@google.com>
105
106 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
107 on error messages.
108
a7212384
UW
1092008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
110
111 PR gdb/2250
112 * infrun.c (clear_proceed_status_thread): New function.
113 (clear_proceed_status_callback): New function.
114 (clear_proceed_status): In all-stop mode, clear per-thread
115 proceed status of *all* threads, not only the current.
116 (handle_inferior_event): In all-stop mode, if we're stepping
117 one thread, but got some inferior event in another thread
118 that does not cause GDB to break to the user interface,
119 ensure the interrupted stepping operation continues in the
120 original thread.
121 (currently_stepping): Move thread-related tests to ...
122 (currently_stepping_thread): ... this new function.
123 (currently_stepping_callback): New function.
124
66bb093b
VP
1252008-11-17 Vladimir Prus <vladimir@codesourcery.com>
126
127 Implement =thread-selected notification.
128
129 * mi/mi-common.h (struct mi_interp): New, moved from ...
130 * mi/mi-interp.c: ...here.
131 * mi/mi-main.c (mi_execute_command): If the thread changed
132 as result of command, report that.
133
8dd4f202
VP
1342008-11-17 Vladimir Prus <vladimir@codesourcery.com>
135
136 Implement continue/interrupt of thread groups.
137
138 * mi/mi-main.c (proceed_thread_callback): New.
139 (mi_cmd_exec_continue): If --thread-group is specified, resume all
140 threads in that group.
141 (interrupt_thread_callback): New.
142 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
143 all threads in that group.
144
6418d433
VP
1452008-11-17 Vladimir Prus <vladimir@codesourcery.com>
146
147 Implement '-target-detach pid'.
148
149 * infcmd.c (detach_command): Make nonstatic.
150 * inferior.h (detach_command): Declare.
151 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
152 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
153 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
154
3d043ef6
VP
1552008-11-17 Vladimir Prus <vladimir@codesourcery.com>
156
157 Include group-id in thread-created notification.
158
159 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
160 group id in the output.
161
4a92f99b
VP
1622008-11-17 Vladimir Prus <vladimir@codesourcery.com>
163
164 Notification for attach/detach.
165
166 * inferior.c: Call the process observers.
167 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
168 (mi_interpreter_init): Register the above.
169
3ee1c036
VP
1702008-11-17 Vladimir Prus <vladimir@codesourcery.com>
171
172 Implement -list-thread-groups.
173
174 * thread.c (print_thread_info): New parameter pid, to print
175 threads of specific process.
176 * gdbthread.h (print_thread_info): New parameter pid.
177 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
178 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
179 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
180 (print_one_process, mi_cmd_list_thread_groups): New.
181
283de25f
JB
1822008-11-16 Joel Brobecker <brobecker@adacore.com>
183
184 Remove some unused macros related to the old load/unload catchpoints.
185
186 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
187 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
188 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
189
533be4dd
JB
1902008-11-16 Joel Brobecker <brobecker@adacore.com>
191
192 Remove support for catch load and catch unload commands.
193
194 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
195 (struct breakpoint): Remove fields dll_pathname and
196 triggered_dll_pathname.
197 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
198 * breakpoint.c (ep_is_catchpoint): Remove handling of
199 bp_catch_load and bp_catch_unload.
200 (print_it_typical, bpstat_check_location, bpstat_what)
201 (print_one_breakpoint_location, print_one_breakpoint_location)
202 (user_settable_breakpoint, allocate_bp_location)
203 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
204 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
205 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
206 (catch_load_command_1, catch_unload_command_1): Delete.
207 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
208 command creation.
209 * infrun.c (handle_inferior_event): Remove the handling of
210 load/unload catchpoint events.
211
59205f5a
JB
2122008-11-15 Joel Brobecker <brobecker@adacore.com>
213
214 From Jerome Guitton <guitton@adacore.com>
215 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
216 New function.
217 (dwarf_decode_lines): Detect null file numbers. Detect the end of
218 the line program sequence when no end sequence is emitted.
219
96967637
JB
2202008-11-15 Joel Brobecker <brobecker@adacore.com>
221
222 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
223 type dereferencing.
224
da8bd9a3
DJ
2252008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
226
227 * NEWS: Mention sparc64-linux-gnu gdbserver support.
228
dfb64f85
DJ
2292008-11-14 Daniel Gutson <dgutson@codesourcery.com>
230
231 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
232 * regformats/reg-sparc64.dat: New file.
233
59669435
TT
2342008-11-14 Tom Tromey <tromey@redhat.com>
235
236 PR mi/2549:
237 * mi/mi-main.c (get_register): Use get_formatted_print_options.
238
06be140c
JB
2392008-11-13 Joel Brobecker <brobecker@adacore.com>
240
241 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
242
759cc328
UW
2432008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
244
245 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
246 AT_EXECFN. Re-sort AT_SECURE.
247
73e113d4
JK
2482008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
249
250 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
251
c31ad2a1
JB
2522008-11-13 Joel Brobecker <brobecker@adacore.com>
253
254 * ia64-tdep.c: Remove commented out #define.
255
84290f2f
JB
2562008-11-12 Joel Brobecker <brobecker@adacore.com>
257
258 From Joel Sherrill <joel.sherrill@oarcorp.com>
259 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
260 instead of the "gdbsim_ops" global.
261
de04a248
DE
2622008-11-11 Doug Evans <dje@google.com>
263
264 * infcall.c (call_function_by_hand): Handle inferior exit.
265
3c8b2eda
TJB
2662008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
267
268 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
269 missing struct target_ops argument.
270
f5d9a292
JS
2712008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
272
273 * MAINTAINERS: Add myself for write after approval privileges.
274
de8ee0e2
TT
2752008-11-10 Tom Tromey <tromey@redhat.com>
276
277 * gdbtypes.c (copy_type_recursive): Clear new fields.
278
b03a6ea4
TT
2792008-11-10 Tom Tromey <tromey@redhat.com>
280
281 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
282 cleanups on early return.
283
136d6dae
VP
2842008-11-09 Vladimir Prus <vladimir@codesourcery.com>
285
286 Kill pthread_ops_hack
287
288 * target.h (struct target_ops): Make to_attach, to_detach,
289 to_create_inferior and to_mourn_inferior accept a pointer
290 to struct target_ops.
291 (target_attach, target_create_inferior, target_create_inferior):
292 Convert from macros to function. Find the right target to
293 invoke a method of.
294 (find_default_attach, find_default_create_inferior): New parameter
295 ops.
296 * corefile.c (core_file_command): Pass target to to_detach.
297 * corelow.c (core_detach): Add 'ops' parameter.
298 * fork-child.c (fork_inferior): Return the pid. Allow
299 init_trace_fun to be NULL.
300 * inf-ptrace (ptrace_ops_hack): Remove.
301 (inf_ptrace_him): Remove, moving all logic into....
302 (inf_ptrace_create_inferior): ... here. Push the target
303 passed as parameter.
304 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
305 Push/pop target passed as parameter, no ptrace_ops_hack.
306 (inf_ptrace_target): Don't remember result.
307 * inferior.h (fork_inferior): Adjust prototype.
308 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
309 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
310 Pass it to linux_ops target.
311 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
312 New parameter ops. Pass it to the target beneath.
313 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
314 (extended_remote_create_inferior): New parameter ops. Pass it
315 further.
316 * target.c (debug_to_attach, debug_to_detach)
317 (debug_to_mourn_inferior): New parameter ops.
318 (target_create_inferior): New.
319 (update_current_target): Do not inherit to_attach, to_detach,
320 to_create_inferiour, to_mourn_inferior. Do not default
321 to_detach and to_mourn_inferior.
322 (target_detach): Find the right target to use.
323 (target_mourn_inferior): New.
324 (find_default_attach, find_default_create_inferior): New parameter
325 ops. Pass the found target when calling its method.
326 (init_dummy_target): Provide fallback definition of to_detach.
327 (target_attach): New.
328 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
329 (debug_to_mourn_inferiour): New parameter ops.
330 * aix-thread.c: Adjust.
331 * bsd-uthread.c: Adjust.
332 * gnu-nat.c: Adjust.
333 * go32-nat.c: Adjust.
334 * hpux-thread.c: Adjust.
335 * inf-ttrace.c: Ajust.
336 * monitor.c: Adjust.
337 * nto-procfs.c: Adjust.
338 * procfs.c: Adjust.
339 * remote-m32r-sdi.c: Adjust.
340 * remote-mips.c: Adjust.
341 * remote-sim.c: Adjust.
342 * rs6000-nat.c: Adjust.
343 * sol-thread.c: Adjust.
344 * win32-nat.c: Adjust.
345 * dec-thread.c: Adjust.
346
ed406532
VP
3472008-11-09 Vladimir Prus <vladimir@codesourcery.com>
348
349 * thread.c (print_thread_info): Eliminate now useless checks
350 for exited threads.
351
48fb2d97
PA
3522008-11-06 Pedro Alves <pedro@codesourcery.com>
353
354 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
355 to 0.
356
29c87f7f
PA
3572008-11-05 Pedro Alves <pedro@codesourcery.com>
358
359 * remote.c (notice_new_inferiors): Add a new inferior only when
360 we're going to add a new thread.
361
e0ba6746
PA
3622008-11-05 Pedro Alves <pedro@codesourcery.com>
363
364 * defs.h (add_inferior_continuation)
365 (do_all_inferior_continuations)
366 (discard_all_inferior_continuations): Declare.
367 * utils.c (add_inferior_continuation)
368 (do_all_inferior_continuations)
369 (discard_all_inferior_continuations): New.
370 * inferior.h (struct inferior) <continuations>: New field.
371 * inferior.c (free_inferior): Discard all the inferior
372 continuations.
373 * inf-loop.c (inferior_event_handler): Do all current inferior
374 continuations.
375 * infcmd.c (attach_command): Register an inferior continuation
376 instead of a thread continuation.
377 * infrun.c (handle_inferior_event): If stop_soon is
378 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
379
d3fd5342
PA
3802008-11-04 Pedro Alves <pedro@codesourcery.com>
381
382 * inf-loop.c (inferior_event_handler): On INF_ERROR and
383 INF_REG_EVENT throwing, don't call target_async or pop_target.
384 Call pop_all_targets_above.
385 * remote.c (remote_close): Call remote_terminal_ours. Don't call
386 signal or target_async.
387
1c9f699c
DJ
3882008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
389
390 * eval.c (evaluate_subexp_standard): Assert that there is at
391 least one array dimension.
392
cb0362bb
VP
3932008-11-03 Vladimir Prus <vladimir@codesourcery.com>
394
395 Make attach_command exception-safe
396 * infcmd.c (attach_command): Call async_enable_stdin
397 if exception is thrown.
398
9bc9e927
PA
3992008-11-03 Pedro Alves <pedro@codesourcery.com>
400
401 * gdbarch.sh (has_global_solist): Mention global breakpoints.
402 * gdbarch.h: Regenerate.
403
50c71eaf
PA
4042008-11-03 Pedro Alves <pedro@codesourcery.com>
405
406 * remote.c (remote_start_remote): If the solib list is global,
407 fetch libraries and insert breakpoints after connecting.
408 * infcmd.c (post_create_inferior): If the solist is shared between
409 inferiors, no need to refetch it on every new inferior.
410 (detach_command): If the shared library list is shared between
411 inferiors, then don't clear it on every inferior detach.
412 * gdbarch.sh (has_global_solist): New.
413 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
414 gdbarch_has_global_solist.
415 * target.c (target_pre_inferior): If the shared library list is
416 shared between inferiors, then don't clear it here, neither
417 invalidate the memory regions or clear the target description.
418 (target_detach): If the shared library list is shared between
419 inferiors, then don't remove breakpoints from the target here.
420 (target_disconnect): Comment.
421 * solib.c (update_solib_list): Check for null_ptid.
422 * breakpoint.c (insert_breakpoints, update_global_location_list):
423 If the shared library list is shared between inferiors, insert
424 breakpoints even if there's no execution.
425 (breakpoint_init_inferior): If the shared library list is shared
426 between inferiors, don't delete breakpoints or mark them
427 uninserted here.
428
429 * gdbarch.c, gdbarch.h: Regenerate.
430
2fdf0e42
PA
4312008-10-31 Pedro Alves <pedro@codesourcery.com>
432
433 * inferior.h (inferior_ignoring_leading_exec_events): Delete
434 declaration.
435
3990c31b
PA
4362008-10-31 Pedro Alves <pedro@codesourcery.com>
437
438 * inferior.h (write_inferior_status_register): Delete.
439 * infrun.c (write_inferior_status_register): Delete.
440
2a2546f0 4412008-10-30 Tom Tromey <tromey@redhat.com>
f3134b88
TT
442
443 * value.c (coerce_array): Use check_typedef.
444
2a2546f0 4452008-10-30 Tom Tromey <tromey@redhat.com>
724b958c
TT
446
447 * cli/cli-logging.c (handle_redirections): Make a cleanup.
448 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
449 * regcache.c (regcache_print): Make a cleanup.
450 * maint.c (maintenance_print_architecture): Make a cleanup.
451 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
452
a05016c0
TT
4532008-10-30 Tom Tromey <tromey@redhat.com>
454
455 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
456 (do_close_cleanup): Don't free 'fd'.
457
2a2546f0 4582008-10-30 Tom Tromey <tromey@redhat.com>
9fe4a216
TT
459
460 * source.c (symtab_to_fullname): Test 'r >= 0'.
461 (psymtab_to_fullname): Likewise.
462 (get_filename_and_charpos): Make a cleanup.
463 (forward_search_command): Likewise.
464 (reverse_search_command): Likewise.
465 * exec.c (exec_file_attach): Close scratch_chan on failure.
466 * nto-procfs.c (procfs_open): Make a cleanup.
467 (procfs_pidlist): Likewise.
468 (do_closedir_cleanup): New function.
469
c2226152
AS
4702008-10-30 Andreas Schwab <schwab@suse.de>
471
472 * infcmd.c (construct_inferior_arguments): Handle newlines
473 specially.
474
fe798b75
JB
4752008-10-30 Joel Brobecker <brobecker@adacore.com>
476
477 * breakpoint.h (enum bptype): Delete bp_catch_exec.
478 * breakpoint.c (insert_catchpoint): Remove handling for
479 bp_catch_exec breakpoint kinds.
480 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
481 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
482 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
483 (print_one_breakpoint_location, user_settable_breakpoint)
484 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
485 (allocate_bp_location, mention, breakpoint_re_set_one)
486 (disable_command, enable_command): Likewise.
487 (create_exec_event_catchpoint): Delete.
488 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
489 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
490 New functions.
491 (catch_exec_breakpoint_ops): New static global.
492 (catch_exec_command_1): Use create_catchpoint instead of
493 create_exec_event_catchpoint to create the exec catchpoint.
494
f154cae1
TT
4952008-10-28 Tom Tromey <tromey@redhat.com>
496
497 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
498 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
499 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
500 (cli-utils.o): Remove.
501 * cli/cli-utils.c: Remove.
502 * cli/cli-utils.h: Remove.
503
79a45b7d
TT
5042008-10-28 Tom Tromey <tromey@redhat.com>
505
506 * varobj.c (value_get_print_value): Include valprint.h.
507 (value_get_print_value): Use get_formatted_print_options.
508 * value.h (struct value_print_options): Declare.
509 (value_print, val_print, common_val_print, val_print_string):
510 Update.
511 * value.c: Include valprint.h.
512 (show_values): Use get_user_print_options.
513 (show_convenience): Likewise.
514 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
515 declare.
516 (struct value_print_options): New type.
517 (vtblprint, unionprint, addressprint, objectprint, print_max,
518 inspect_it, repeat_count_threshold, output_format,
519 stop_print_at_null): Don't declare.
520 (user_print_options, get_user_print_options,
521 get_raw_print_options, get_formatted_print_options): Declare.
522 (print_array_indexes_p): Don't declare.
523 (maybe_print_array_index, val_print_array_elements): Update.
524 * valprint.c (print_max): Remove.
525 (user_print_options): New global.
526 (get_user_print_options, get_raw_print_options,
527 get_formatted_print_options): New functions.
528 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
529 prettyprint_structs, prettyprint_arrays, unionprint,
530 addressprint): Remove.
531 (val_print): Remove format, deref_ref, pretty arguments; add
532 options. Update.
533 (common_val_print): Likewise.
534 (print_array_indexes_p): Remove.
535 (maybe_print_array_index): Remove format, pretty arguments; add
536 options. Update.
537 (val_print_array_elements): Remove format, deref_ref, pretty
538 arguments; add options. Update.
539 (val_print_string): Add options argument. Update.
540 (_initialize_valprint): Use user_print_options.
541 (output_format): Remove.
542 (set_output_radix_1): Use user_print_options.
543 * typeprint.c: Include valprint.h.
544 (objectprint): Don't declare.
545 (whatis_exp): Use get_user_print_options.
546 * tui/tui-regs.c: Include valprint.h.
547 (tui_register_format): Use get_formatted_print_options.
548 * tracepoint.c: Include valprint.h.
549 (addressprint): Don't declare.
550 (trace_mention): Use get_user_print_options.
551 (tracepoints_info): Likewise.
552 * stack.c (print_frame_args): Use get_raw_print_options.
553 (print_frame_info): Use get_user_print_options.
554 (print_frame): Likewise.
555 * sh64-tdep.c: Include valprint.h
556 (sh64_do_register): Use get_formatted_print_options.
557 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
558 pretty arguments; add options.
559 (scm_scmlist_print): Likewise. Update.
560 (scm_scmval_print): Likewise.
561 (scm_val_print): Likewise.
562 (scm_value_print): Remove format, pretty arguments; add options.
563 Update.
564 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
565 Update.
566 * scm-lang.c (scm_printstr): Add options argument.
567 * python/python-value.c: Include valprint.h.
568 (valpy_str): Use get_user_print_options.
569 * printcmd.c: Include valprint.h.
570 (addressprint): Don't declare.
571 (inspect_it): Remove.
572 (print_formatted): Remove format option; add options. Update.
573 (print_scalar_formatted): Likewise.
574 (print_address_demangle): Use get_user_print_options.
575 (do_examine): Use get_formatted_print_options.
576 (print_command_1): Likewise.
577 (output_command): Use get_formatted_print_options.
578 (do_one_display): Likewise.
579 (print_variable_value): Use get_user_print_options.
580 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
581 pretty arguments; add options. Update.
582 (pascal_value_print): Remove format, pretty arguments; add
583 options. Update.
584 (vtblprint, objectprint): Don't declare.
585 (pascal_static_field_print): Remove.
586 (pascal_object_print_value_fields): Remove format, pretty
587 arguments; add options. Update.
588 (pascal_object_print_static_field): Likewise.
589 (_initialize_pascal_valprint): Use user_print_options. Update.
590 * p-lang.h (pascal_val_print, pascal_value_print,
591 pascal_printstr, pascal_object_print_value_fields): Update.
592 (vtblprint, static_field_print): Don't declare.
593 * p-lang.c (pascal_printstr): Add options argument. Update.
594 * objc-lang.c (objc_printstr): Add options argument. Update.
595 * mt-tdep.c: Include valprint.h.
596 (mt_registers_info): Use get_raw_print_options.
597 * mips-tdep.c: Include valprint.h.
598 (mips_print_fp_register): Use get_formatted_print_options.
599 (mips_print_register): Likewise.
600 * mi/mi-main.c: Include valprint.h.
601 (get_register): Use get_user_print_options.
602 (mi_cmd_data_evaluate_expression): Likewise.
603 (mi_cmd_data_read_memory): Use get_formatted_print_options.
604 * mi/mi-cmd-stack.c: Include valprint.h.
605 (list_args_or_locals): Use get_raw_print_options.
606 * m2-valprint.c (print_function_pointer_address): Add addressprint
607 argument.
608 (m2_print_long_set): Remove format, pretty arguments.
609 (m2_print_unbounded_array): Remove format, deref_ref, pretty
610 arguments; add options. Update.
611 (print_unpacked_pointer): Remove format argument; add options.
612 Now static. Update.
613 (print_variable_at_address): Remove format, deref_ref, pretty
614 arguments; add options. Update.
615 (m2_print_array_contents): Likewise.
616 (m2_val_print): Likewise.
617 * m2-lang.h (m2_val_print): Update.
618 * m2-lang.c (m2_printstr): Add options argument. Update.
619 * language.h (struct value_print_options): Declare.
620 (struct language_defn) <la_printstr>: Add options argument.
621 <la_val_print>: Remove format, deref_ref, pretty argument; add
622 options.
623 <la_value_print>: Remove format, pretty arguments; add options.
624 <la_print_array_index>: Likewise.
625 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
626 LA_PRINT_ARRAY_INDEX): Update.
627 (default_print_array_index): Update.
628 * language.c (default_print_array_index): Remove format, pretty
629 arguments; add options. Update.
630 (unk_lang_printstr): Add options argument.
631 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
632 add options.
633 (unk_lang_value_print): Remove format, pretty arguments; add
634 options.
635 * jv-valprint.c (java_value_print): Remove format, pretty
636 arguments; add options. Update.
637 (java_print_value_fields): Likewise.
638 (java_val_print): Remove format, deref_ref, pretty arguments; add
639 options. Update.
640 * jv-lang.h (java_val_print, java_value_print): Declare.
641 * infcmd.c: Include valprint.h.
642 (print_return_value): Use get_raw_print_options.
643 (default_print_registers_info): Use get_user_print_options,
644 get_formatted_print_options.
645 (registers_info): Use get_formatted_print_options.
646 * gdbtypes.h (struct value_print_options): Declare.
647 (print_scalar_formatted): Update.
648 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
649 pretty arguments; add options. Update.
650 (f77_print_array): Likewise.
651 (f_val_print): Likewise.
652 * f-lang.h (f_val_print): Update.
653 * f-lang.c (f_printstr): Add options argument. Update.
654 (c_value_print): Update declaration.
655 * expprint.c: Include valprint.h.
656 (print_subexp_standard): Use get_raw_print_options,
657 get_user_print_options.
658 * eval.c: Include valprint.h.
659 (objectprint): Don't declare.
660 (evaluate_subexp_standard): Use get_user_print_options.
661 * cp-valprint.c (vtblprint, objectprint, static_field_print):
662 Remove.
663 (cp_print_value_fields): Remove format, pretty arguments; add
664 options. Update.
665 (cp_print_value): Likewise.
666 (cp_print_static_field): Likewise.
667 (_initialize_cp_valprint): Use user_print_options. Update.
668 * c-valprint.c (print_function_pointer_address): Add addressprint
669 argument.
670 (c_val_print): Remove format, deref_ref, pretty arguments; add
671 options. Update.
672 (c_value_print): Add options argument. Update.
673 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
674 (vtblprint, static_field_print): Don't declare.
675 (cp_print_value_fields): Update.
676 * c-lang.c (c_printstr): Add options argument. Update.
677 * breakpoint.c: Include valprint.h.
678 (addressprint): Don't declare.
679 (watchpoint_value_print): Use get_user_print_options.
680 (print_one_breakpoint_location): Likewise.
681 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
682 print_exception_catchpoint): Likewise.
683 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
684 get_user_print_options.
685 * ada-valprint.c (struct ada_val_print_args): Remove format,
686 deref_ref, and pretty; add options.
687 (print_optional_low_bound): Add options argument.
688 (val_print_packed_array_elements): Remove format and pretty
689 arguments; add options. Update.
690 (printstr): Add options argument. Update.
691 (ada_printstr): Likewise.
692 (ada_val_print): Remove format, deref_ref, pretty arguments; add
693 options argument. Update.
694 (ada_val_print_stub): Update.
695 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
696 add options. Update.
697 (ada_val_print_1): Likewise.
698 (print_variant_part): Likewise.
699 (ada_value_print): Remove format, pretty arguments; add options.
700 Update.
701 (print_record): Likewise.
702 (print_field_values): Likewise.
703 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
704 Update.
705 * ada-lang.c (ada_print_array_index): Add options argument; remove
706 format and pretty arguments.
707 (print_one_exception): Use get_user_print_options.
708
7c8a8b04
TT
7092008-10-28 Tom Tromey <tromey@redhat.com>
710
711 * cli/cli-script.c (do_fclose_cleanup): Remove.
712 (script_from_file): Use make_cleanup_fclose.
713 * xml-tdesc.c (do_cleanup_fclose): Remove.
714 (fetch_xml_from_file): Use make_cleanup_fclose.
715 * tracepoint.c (tracepoint_save_command): Use
716 make_cleanup_fclose. Always free pathname.
717 * source.c (print_source_lines_base): Use make_cleanup_fclose.
718 * remote.c (fclose_cleanup): Remove.
719 (remote_file_put): Use make_cleanup_fclose.
720 (remote_file_get): Likewise.
721 * linux-nat.c (linux_nat_find_memory_regions): Use
722 make_cleanup_fclose.
723 (linux_nat_info_proc_cmd): Likewise.
724 (linux_proc_pending_signals): Likewise.
725 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
726 Free file name.
727 * cli/cli-dump.c (do_fclose_cleanup): Remove.
728 (make_cleanup_fclose): Remove.
729 * defs.h (make_cleanup_fclose): Declare.
730 * utils.c (do_fclose_cleanup): New function.
731 (make_cleanup_fclose): Likewise.
732
5a55c295
PA
7332008-10-27 Pedro Alves <pedro@codesourcery.com>
734
735 * inflow.c (kill_command): If the target claims there is still
736 execution, don't clear the thread list.
737
5256a53b
PA
7382008-10-27 Pedro Alves <pedro@codesourcery.com>
739
740 * cp-name-parser.y: Include defs.h instead of config.h.
741 (parse_escape): Rename to ...
742 (cp_parse_escape): ... this.
743 (yylex): Update.
744 (xfree) [TEST_CPNAMES]: New.
745
e8ecdb5c
PA
7462008-10-27 Pedro Alves <pedro@codesourcery.com>
747
748 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
749 2.13 and configure.in.
750
8a305172
PA
7512008-10-27 Pedro Alves <pedro@codesourcery.com>
752
753 * target.h (struct target_ops) <to_supports_multi_process>: New
754 field.
755 (target_supports_multi_process): New define.
756 * target.c (update_current_target): Inherit and de_fault
757 to_supports_multi_process.
758 * infcmd.c (attach_command): Allow attaching to multiple processes
759 if the target supports it.
760 (detach_command): If the target claims there is still execution,
761 don't clear the thread list.
762 * remote.c (remote_supports_multi_process): New.
763 (init_remote_ops): Register remote_supports_multi_process.
764
676e87b3
PA
7652008-10-27 Pedro Alves <pedro@codesourcery.com>
766
767 * Makefile.in (.y.c, .l.c): sed free to xfree.
768
f0323ca0
PA
7692008-10-27 Pedro Alves <pedro@codesourcery.com>
770
771 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
772 $(TM_CLIBS).
773 (CDEPS): Remove reference to $(TM_CDEPS).
774
3067f6e5
MS
7752008-10-26 Michael Snyder <msnyder@vmware.com>
776
777 * infrun.c (handle_inferior_event): Handle dynamic symbol
778 resolution in reverse.
779
6130d0b7
JB
7802008-10-25 Joel Brobecker <brobecker@adacore.com>
781
782 * infrun.c: Minor comment reformatting.
783
bbe2ba60
PA
7842008-10-25 Pedro Alves <pedro@codesourcery.com>
785
786 * ada-exp.y (write_object_renaming): Use malloc instead of
787 xmalloc.
788 * p-exp.y (pop_current_type): Use free instead of xfree.
789
2e979b94
PA
7902008-10-24 Pedro Alves <pedro@codesourcery.com>
791
792 * fork-child.c (startup_inferior): Only set threads not-executing
793 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
794 keep waiting, don't resume. On all other cases but
795 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
796 the event ptid.
797
74531fed
PA
7982008-10-24 Pedro Alves <pedro@codesourcery.com>
799
800 Remote non-stop mode support.
801
802 * remote.c (pending_stop_reply): New.
803 (struct remote_state) <non_stop_aware, support_vCont_t>: New
804 fields.
805 (remote_async_inferior_event_token)
806 (remote_async_get_pending_events_token): New.
807 (notice_new_inferiors): New, abstracted out from record_currthread.
808 (record_currthread): Call it.
809 (remote_threads_info): Default threads to running in non-stop
810 mode. In non-stop mode, only qfThreadInfo is supported.
811 (remote_close): Discard all pending stop_replies. Close the event
812 sources.
813 (set_stop_requested_callback): New.
814 (remote_start_remote): Implement non-stop mode startup. In
815 all-stop, don't clear the thread list here.
816 (remote_non_stop_feature): New.
817 (remote_protocol_features): Add a "QNonStop" feature.
818 (remote_open_1): Clear cached_wait_status and non_stop_aware.
819 Clear the thread list here.
820 (remote_detach_1): Discard pending stop replies of the process we
821 detached from.
822 (extended_remote_attach_1): Implement non-stop mode.
823 (remote_vcont_probe): Recognize `vCont;t'.
824 (remote_vcont_resume): Implement non-stop mode.
825 (remote_resume): Don't set waiting_for_stop_reply in non-stop
826 mode.
827 (remote_stop_ns): New.
828 (remote_stop): Rename to ...
829 (remote_stop_as): ... this. If we have a cached wait status,
830 don't bother interrupting the remote.
831 (remote_stop): Reimplement as wrapper around remote_stop_as and
832 remote_stop_ns.
833 (interrupt_query): Don't query in async mode.
834 (struct cached_reg, cahed_reg_t): New.
835 (struct stop_reply): New.
836 (stop_reply_queue): New.
837 (stop_reply_xmalloc, stop_reply_xfree)
838 (discard_pending_stop_replies, do_stop_reply_xfree)
839 (queued_stop_reply, push_stop_reply, peek_stop_reply)
840 (remote_parse_stop_reply, remote_get_pending_stop_replies)
841 (process_stop_reply): New.
842 (remote_wait_ns): New.
843 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
844 notion of current general thread is a process exit was reported.
845 (remote_wait): Call remote_wait_ns in non-stop mode.
846 (handle_notification): New.
847 (putpkt_binary): Handle notifications. Don't care for
848 waiting_for_stop_reply in non-stop mode.
849 (getpkt_sane): Rename to ...
850 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
851 argument. Handle it. Handle notifications.
852 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
853 (getpkt_or_notif_sane): New.
854 (select_new_thread_callback): Check for exited state instead of
855 comparing the ptid against minus_one_ptid.
856 (extended_remote_create_inferior_1): Query the remote about the
857 current thread.
858 (remote_supports_non_stop): New.
859 (init_remote_ops): Register it.
860 (remote_async_inferior_event_handler): New.
861 (remote_async_get_pending_events_handler): New.
862
863 * infcmd.c (proceed_thread_callback): Comment.
864 (proceed_after_attach_callback, proceed_after_attach): New.
865 (attach_command_post_wait): In background attach, resume all
866 threads, but only if they are unsignalled, and not explicitly
867 stopped. In foreground attach, in non-stop mode, make sure to
868 stop all threads of the just attached to process.
869 (attach_command): In non-stop mode: If doing a background attach,
870 stop at least one thread. If a foreground attach, stop all
871 threads.
872
50d01748
PA
8732008-10-24 Pedro Alves <pedro@codesourcery.com>
874
875 * event-loop.h: Mention async_event_handlers.
876 (async_event_handler): Forward declare.
877 (async_event_handler_func): New typedef.
878 (create_async_event_handler, delete_async_event_handler)
879 (mark_async_event_handler): Declare.
880 * event-loop.c (event_data): New.
881 (event_handler_func): Take an event_data instead of an integer.
882 (struct gdb_event): Replace the integer file descriptor by a
883 generic event_data.
884 (async_event_handler): New.
885 (async_handler_ready): Delete.
886 (async_event_handler_list): New.
887 (create_event): New.
888 (create_file_event): Use it.
889 (process_event): Adjust.
890 (gdb_do_one_event): Poll from the event sources in round-robin
891 fashion across calls. Be sure to consult all sources before
892 blocking.
893 (handle_file_event): Take an event_data instead of an integer.
894 Adjust.
895 (gdb_wait_for_event): Add `block' argument. Handle it.
896 (mark_async_signal_handler): Remove unneeded cast.
897 (invoke_async_signal_handler): Rename to ...
898 (invoke_async_signal_handlres): ... this. Return true if any was
899 handled.
900 (check_async_ready): Delete
901 (create_async_event_handler): New.
902 (mark_async_event_handler): New.
903 (struct async_event_handler_data): New.
904 (invoke_async_event_handler): New.
905 (check_async_event_handlers): New.
906 (delete_async_event_handler): New.
907 (handle_timer_event): Adjust.
908
6dd47d34
DE
9092008-10-24 Doug Evans <dje@google.com>
910
911 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
912 is NULL. Simplify obs == NULL case.
913
fff08868
HZ
9142008-10-24 Hui Zhu <teawater@gmail.com>
915 Pedro Alves <pedro@codesourcery.com>
916
917 * infrun.c (can_use_displaced_stepping): Change type to
918 const char pointer.
919 (can_use_displaced_stepping_auto): New string.
920 (can_use_displaced_stepping_on): New string.
921 (can_use_displaced_stepping_off): New string.
922 (can_use_displaced_stepping_enum): New array.
923 (show_can_use_displaced_stepping): In auto mode, also show
924 the current effect of the option.
925 (use_displaced_stepping): Return non-zero if displaced
926 stepping is auto, and can be used with GDBARCH, and in
927 non-stop mode. Return non-zero if displaced stepping is on,
928 and can be used with GDBARCH. Return zero otherwise.
929 (_initialize_infrun): Make the "set displaced-stepping"
930 command an enum command. Change its class to class_run.
931 Place it in the top level set list. Extend help to describe
932 the auto mode.
933
252fbfc8
PA
9342008-10-23 Pedro Alves <pedro@codesourcery.com>
935
936 * defs.h: Mention ptid_is_pid.
937 * inferior.h (ptid_is_pid): Declare.
938 * gdbthread.h (struct thread_info) <stop_requested>: New field.
939 (set_stop_requested): Declare.
940 * infcmd.c (interrupt_target_1): Call set_stop_requested.
941 * infrun.c (clear_proceed_status): Clear stop_requested.
942 (infrun_thread_stop_requested_callback,
943 infrun_thread_stop_requested): New.
944 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
945 thread that had an explicit stop request, pretend we got a
946 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
947 request.
948 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
949 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
950 instead of mentioning signal 0.
951 (ptid_is_pid): New.
952 * thread.c (set_stop_requested): New.
953
954 * linux-nat.c (queued_waitpid): Rename to ...
955 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
956 (queued_waitpid): New, as wrapper to queued_waitpid_1.
957 (push_waitpid): Push the SIGTRAP to the local event queue, to the
958 kernel's.
959 (send_sigint_callback): Delete.
960 (linux_nat_stop_lwp): New.
961 (linux_nat_stop): Use it.
962
3c0ed299
PP
9632008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
964
965 * python/python-value (valpy_getitem): Fix heap corruption.
966
103fd00d
AR
9672008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
968
969 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
970 (procfs_create_inferior): Fetch list of threads.
971
3fdfcbf1
AR
9722008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
973
974 * nto-procfs.c (procfs_files_info): Fix a typo.
975 (procfs_create_inferior): Make attach_flag per-inferior.
976
997339e8
PP
9772008-10-23 Tom Tromey <tromey@redhat.com>
978
979 * python/python-value.c (value_to_value_object): Initialize
980 owned_by_gdb field.
981 (valpy_new): Likewise.
982
d6b67a5e
JK
9832008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
984 Joel Brobecker <brobecker@adacore.com>
985
986 * ada-tasks.c (task_states, long_task_states): Use constant N_()
987 initializer. Define the strings as const.
988 (short_task_info, info_task): Translate the strings above.
989
aadc346a
JB
9902008-10-22 Joel Brobecker <brobecker@adacore.com>
991
992 * NEWS: Add entry for new feature (Ada tasking support).
993
9942008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
995
996 * configure.ac: On alpha-osf, error out if enable_tui is set to
997 "yes", and set enable_tui to "no" if previously set to "auto".
998 Check for waddstr only if TUI support was requested. Move the
999 part of the configure script that updates various Makefile
1000 variables up, together with the check for waddstr.
1001 * configure: Regenerate.
1002
4af88198
JB
10032008-10-22 Joel brobecker <brobecker@adacore.com>
1004
1005 * gdbtypes.c (copy_type): New function.
1006 * gdbtypes.h (copy_type): Add declaration.
1007 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1008 variable, then use it.
1009
0ef643c8
JB
10102008-10-22 Joel Brobecker <brobecker@adacore.com>
1011
1012 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1013 (target_get_ada_task_ptid): New macro.
1014 * target.c (default_get_ada_task_ptid): New function.
1015 (update_current_target): Inherit field default_get_ada_task_ptid.
1016 (update_current_target): Make default_get_ada_task_ptid the default
1017 value for field to_get_ada_task_ptid.
1018 * ada-lang.h (struct task_control_block): Delete. Never used.
1019 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1020 Likewise.
1021 (struct ada_task_info): New.
1022 (ada_task_is_alive, ada_find_printable_frame)
1023 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1024 declarations.
1025 (ada_build_task_list): Update prototype.
1026 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1027 * ada-lang.c (ada_find_printable_frame): Make non-static.
1028 * ada-tasks.c: New file.
1029 * Makefile.in (SFILES): Add ada-tasks.c.
1030 (COMMON_OBS): Add ada-tasks.o.
1031 * linux-thread-db.c (thread_db_find_thread_from_tid)
1032 (thread_db_get_ada_task_ptid): New functions.
1033 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1034
c209f847
TT
10352008-10-22 Tom Tromey <tromey@redhat.com>
1036
1037 PR gdb/2506:
1038 * c-exp.y (string_exp): New production.
1039 (exp): Use it.
1040
5bc60cfb
JK
10412008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1044 removed before.
1045
7f99b190
JB
10462008-10-20 Joel Brobecker <brobecker@adacore.com>
1047
1048 * NEWS: Add entry mentioning thread-support on Tru64
1049
7a052092
JB
10502008-10-19 Joel Brobecker <brobecker@adacore.com>
1051
1052 * dec-thread.c: New file.
1053 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1054 (NAT_CLIBS): Define.
1055
40e12b06
HZ
10562008-10-19 Hui Zhu <teawater@gmail.com>
1057
1058 * infrun.c (handle_inferior_event): Set "stop_pc" when
1059 TARGET_WAITKIND_NO_HISTORY.
1060
f9176c46
PA
10612008-10-19 Pedro Alves <pedro@codesourcery.com>
1062
1063 * python/python-value.c (value_object_methods)
1064 (value_object_as_number, value_object_as_mapping): Move to bottom
1065 of file.
1066 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1067 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1068 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1069 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1070 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1071 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1072
4058b839
PA
10732008-10-18 Pedro Alves <pedro@codesourcery.com>
1074
1075 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1076 reverse.
1077
f42429a6
PA
10782008-10-17 Pedro Alves <pedro@codesourcery.com>
1079
1080 * infcmd.c (GO_USAGE): Delete.
1081 (go_command): Adjust.
1082
b2175913
MS
10832008-10-17 Michael Snyder <msnyder@vmware.com>
1084 Target interface for reverse debugging.
1085 * target.h (enum target_waitkind):
1086 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1087 (struct target_ops): New method to_can_execute_reverse.
1088 (target_can_execute_reverse): New macro.
1089 * target.c (update_current_target): Inherit to_can_execute_reverse.
1090
1091 Remote interface for reverse debugging.
1092 * remote.c (remote_can_execute_reverse): New target method.
1093 (remote_resume): Check for reverse exec direction, and send
1094 appropriate command to target.
1095 (remote_wait_as): Check target response for NO_HISTORY status.
1096 Also check for empty reply (target doesn't understand "bs" or "bc).
1097 (remote_vcont_resume): Jump out if attempting reverse execution.
1098
1099 Event handling interface for reverse debugging.
1100 * infrun.c (execution_direction): New state variable.
1101 (enum inferior_stop_reason): Add NO_HISTORY reason.
1102 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1103 Handle stepping over a function call in reverse.
1104 Handle stepping thru a line range in reverse.
1105 Handle setting a step-resume breakpoint in reverse.
1106 Handle stepping into a function in reverse.
1107 Handle stepping between line ranges in reverse.
1108 (print_stop_reason): Print reason for NO_HISTORY.
1109 (step_into_function): Rename to handle_step_into_function.
1110 (handle_step_into_function_backward): New function.
1111 (set_exec_direction_func, show_exec_direction_func): New funcs.
1112 (proceed): No need to singlestep over a breakpoint
1113 when resuming in reverse.
1114
1115 * inferior.h (enum exec_direction_kind): New enum.
1116 (execution_direction): Export new execution state variable.
1117
1118 * breakpoint.c (make_breakpoint_silent): New function.
1119 * breakpoint.h (make_breakpoint_silent): Export.
1120 * infcmd.c (finish_command): Check for reverse exec direction.
1121 (finish_backward): New function, handle finish cmd in reverse.
1122
1123 User interface for reverse execution.
1124 * Makefile.in (reverse.c): New file.
1125 * reverse.c: New file. User interface for reverse execution.
1126
153ccabd
PA
11272008-10-17 Pedro Alves <pedro@codesourcery.com>
1128
1129 * remote.c (record_currthread): Add inferior before child threads.
1130 (remote_threads_info): Check for exited threads. Mention
1131 notification order.
1132
ce78b96d
JB
11332008-10-16 Joel Brobecker <brobecker@adacore.com>
1134
1135 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1136 Delete bp_catch_fork and bp_catch_vfork.
1137 (struct breakpoint_ops): Add new methods "insert", "remove"
1138 and "breakpoint_hit".
1139 * breakpoint.c (create_fork_vfork_event_catchpoint)
1140 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1141 (insert_catchpoint): Remove handling of bp_catch_fork and
1142 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1143 catchpoints instead.
1144 (insert_bp_location, update_breakpoints_after_exec)
1145 (remove_breakpoint, bpstat_check_location, bpstat_what)
1146 (allocate_bp_location): Likewise.
1147 (print_it_typical, print_one_breakpoint_location, mention): Remove
1148 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1149 (ep_is_catchpoint, user_settable_breakpoint)
1150 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1151 (breakpoint_re_set_one, disable_command, enable_command):
1152 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1153 bp_catchpoint breakpoints.
1154 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1155 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1156 New functions.
1157 (catch_fork_breakpoint_ops): New static constant.
1158 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1159 (print_it_catch_vfork, print_one_catch_vfork)
1160 (print_mention_catch_vfork): New functions.
1161 (catch_vfork_breakpoint_ops): New static constant.
1162 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1163 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1164 to create the fork and vfork catchpoints.
1165 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1166 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1167 fields.
1168 (catch_exception_unhandled_breakpoint_ops): Likewise.
1169 (catch_assert_breakpoint_ops): Likewise.
1170
3c9c4b83
PA
11712008-10-16 Pedro Alves <pedro@codesourcery.com>
1172
1173 * remote.c (set_general_process): New.
1174 (remote_check_symbols): Use it.
1175
5c952c9b
PA
11762008-10-16 Pedro Alves <pedro@codesourcery.com>
1177
1178 * remote.c (push_remote_target): Delete.
1179 * target.h (push_remote_target): Delete declaration.
1180
ce5ce7ed
PA
11812008-10-15 Pedro Alves <pedro@codesourcery.com>
1182
1183 * remote.c (remote_close): Unregister remote_desc from the event
1184 loop. Always restore the SIGINT handler. Discard all inferiors
1185 here.
1186 (remote_detach_1, remote_disconnect): Don't unregister the file
1187 descriptor from the event loop here.
1188 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1189 of morning the current inferior.
1190 (remote_kill): Don't unregister the file descriptor from the event
1191 loop here.
1192 (remote_mourn_1): Don't discard inferiors here.
1193
1c5cfe86
PA
11942008-10-15 Pedro Alves <pedro@codesourcery.com>
1195
1196 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1197 locations list.
1198 (moribund_breakpoint_here_p): Record the moribund
1199 location in the moribund_locations vector.
1200 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1201 (displaced_step_fixup): Check if the breakpoint the thread was
1202 trying to step over has been removed since having been placed in
1203 the displaced stepping queue.
1204 (adjust_pc_after_break): In non-stop mode, check for a moribund
1205 breakpoint at the stop pc.
1206 (handle_inferior_event): Don't retire moribund breakpoints on
1207 TARGET_WAITKIND_IGNORE.
1208
12092008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
1210
1211 * infrun.c (displaced_step_prepare): Switch thread temporarily
1212 while we're here.
1213 (displaced_step_fixup): Make sure target_resume sees ptid as
1214 inferior_ptid. Add debug output.
1215
63c715c6
PA
12162008-10-14 Pedro Alves <pedro@codesourcery.com>
1217
1218 Remove dead code.
1219
1220 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1221 (print_one_breakpoint_location): Adjust.
1222 (breakpoint_clear_ignore_counts): Delete.
1223 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1224 declaration.
1225 * target.c (generic_mourn_inferior): Don't clear ignore
1226 counts (never reached).
1227
c764a876
DE
12282008-10-10 Doug Evans <dje@google.com>
1229
1230 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1231 for dwarf section offsets and sizes.
1232 (dwarf2_cu): Ditto.
1233 (dwarf2_per_cu_data): Ditto.
1234 (create_all_comp_units): Change offset to unsigned int.
1235 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1236 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1237
1238 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1239 All callers updated.
1240 (read_checked_initial_length_and_offset): New function.
1241 (read_offset_1): New function.
1242 (read_offset): Call it.
1243 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1244 instead of read_initial_length. Call read_offset_1 instead of
1245 read_offset.
1246
1247 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1248 All callers updated.
1249
1250 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1251 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1252 DW_AT_HP_block_index.
1253
5fe04517
PA
12542008-10-10 Pedro Alves <pedro@codesourcery.com>
1255
1256 * remote.c (remote_start_remote): Always tell the stub if we're in
1257 extended-remote.
1258
c8e38a49
PA
12592008-10-09 Pedro Alves <pedro@codesourcery.com>
1260
1261 * remote.c (remote_wait): Rename to...
1262 (remote_wait_as): ... this. Don't loop here. If the remote
1263 didn't stop, return TARGET_WAITKIND_IGNORE.
1264 (remote_wait): New, reimplemented on top of remote_wait_as.
1265
9ca12bbf
TS
12662008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1267
d11d9deb
TS
1268 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1269 is fixed upstream.
1270
20249808
TS
1271 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1272
9ca12bbf
TS
1273 * MAINTAINERS (Write After Approval): Add myself.
1274
0b62613e
PA
12752008-10-09 Pedro Alves <pedro@codesourcery.com>
1276
1277 Make it compile without warnings.
1278
1279 * procfs.c (create_procinfo): Initialize `parent'.
1280 (dead_procinfo): Pass a constant string as format to error.
1281 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1282 (procfs_find_LDT_entry): Adjust format string to long int
1283 ptid.tid.
1284 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1285 (procfs_xfer_memory): Adjust prototype.
1286 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1287 variable as printf_filtered format.
1288 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1289 * Makefile.in: Remove special rule.
1290
c8d104ad
PA
12912008-10-09 Pedro Alves <pedro@codesourcery.com>
1292 Daniel Jacobowitz <dan@codesourcery.com>
1293
1294 * remote.c (remote_open_1): Move acknowledging any pending ack,
1295 querying supported features, activating noack mode, finding the
1296 target description, enabling extended remote, and checking remote
1297 symbols from here ...
1298 (remote_start_remote): ... to here.
1299 (remote_open_1): Don't pop the target if it is already gone.
1300 * target.c (unpush_target): Check for the dummy target.
1301
efdb2a86
PA
13022008-10-09 Pedro Alves <pedro@codesourcery.com>
1303
1304 * ser-mingw.c: Include "command.h".
1305 (pipe_windows_open): Declare locals at the beginning of the scope.
1306
e24a49d8
PA
13072008-10-08 Pedro Alves <pedro@codesourcery.com>
1308
1309 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1310 field.
1311 (remote_open_1): Clear waiting_for_stop_reply.
1312 (remote_resume): Set waiting_for_stop_reply.
1313 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1314 (putpkt_binary): If we're in async mode and waiting for a stop
1315 reply, bail out with an error.
1316 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1317
3084dd77
PA
13182008-10-08 Pedro Alves <pedro@codesourcery.com>
1319
1320 * remote.c (remote_get_thread_info): If the remote doesn't support
1321 the query, bail out.
1322
d6a843b5
JK
13232008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1324
1325 Convert static_kind into loc_kind enum.
1326 * gdbtypes.h (enum field_loc_kind): New.
1327 (union field_location): New field dwarf_block.
1328 (struct field): Rename static_kind as loc_kind.
1329 (FIELD_STATIC_KIND): Rename to ...
1330 (FIELD_LOC_KIND): ... here.
1331 (TYPE_FIELD_STATIC_KIND): Rename to ...
1332 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1333 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1334 (TYPE_FIELD_STATIC): Remove.
1335 (TYPE_FIELD_BITPOS): Reformat.
1336 (SET_FIELD_BITPOS): New.
1337 (FIELD_PHYSADDR): Rename to ...
1338 (FIELD_STATIC_PHYSADDR): ... here.
1339 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1340 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1341 (FIELD_PHYSNAME): Rename to ...
1342 (FIELD_STATIC_PHYSNAME): ... here.
1343 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1344 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1345 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1346 (field_is_static): New declaration.
1347 * gdbtypes.c (field_is_static): New function.
1348 (copy_type_recursive): Update throughout.
1349 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1350 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1351 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1352
c289427b
PA
13532008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1354 Pedro Alves <pedro@codesourcery.com>
1355
1356 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1357 avoid a name collision.
1358 * gnu-nat.c: Likewise.
1359 * i386gnu-nat.c: Likewise.
1360
8c1c099f
JB
13612008-10-07 Joel Brobecker <brobecker@adacore.com>
1362
1363 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1364 of arguments that are references.
1365
8a498d38
DE
13662008-10-06 Doug Evans <dje@google.com>
1367
d97bc12b
DE
1368 * dwarf2read.c (dwarf2_die_debug): New static global.
1369 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1370 Print to specified file, indented by the specified amount.
1371 (dump_die_for_error): New fn. Point all existing callers of
1372 dump_die here.
1373 (dump_die_die_1,dump_die): New fns, replaces ...
1374 (dump_die_list): ... deleted.
1375 (read_die_and_children_1): Old contents of read_die_and_children
1376 moved here.
1377 (read_die_and_children): Rewrite.
1378 (read_die_and_siblings): Call read_die_and_children_1 instead of
1379 read_die_and_children.
1380 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1381 * gdbinit.in (pdie): New macro.
1382
45452591
DE
1383 * dwarf2read.c (offset_in_cu_p): New function.
1384 (find_partial_die,follow_die_ref): Use it.
1385
8a498d38
DE
1386 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1387 (maintenance_info_psymtabs): Ditto.
1388
360551e4 13892008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
1390
1391 * infrun.c (handle_inferior_event): Fix typo in comment.
1392
c1828f25
VP
13932008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1394
1395 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1396
5ef73790
PP
13972008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1398
1399 PR gdb/2384:
1400 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1401 different lifetimes.
1402
352efb28 14032008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
1404
1405 * solib-osf.c: Include "solib.h".
1406
d1a41061
PP
14072008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1408
1409 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1410 and check for out-of-memory condition.
1411 * exec.c (exec_file_command): Call it.
1412 * infrun.c (handle_command, xdb_handle_command): Likewise.
1413 * interps.c (interpreter_exec_cmd): Likewise.
1414 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1415 * procfs.c (info_proc_cmd): Likewise.
1416 * remote-mips.c (common_open): Likewise.
1417 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1418 (gdbsim_open): Likewise.
1419 * remote.c (extended_remote_run, remote_put_command)
1420 (remote_get_command, remote_delete_command): Likewise.
1421 * ser-mingw.c (pipe_windows_open): Likesise.
1422 * source.c (add_path, show_substitute_path_command)
1423 (unset_substitute_path_command, set_substitute_path_command):
1424 Likewise.
1425 * stack.c (backtrace_command): Likewise.
1426 * symfile.c (symbol_file_command, generic_load)
1427 (add_symbol_file_command): Likesise.
1428 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1429 (maintenance_print_msymbols): Likewise.
1430
d78df370
JK
14312008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1432
1433 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1434 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1435 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1436 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1437 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1438 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1439 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1440 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1441 (f77_get_upperbound): ... this function handling now only
1442 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1443 (f77_get_dynamic_lowerbound): Replace with ...
1444 (f77_get_lowerbound): ... this function handling now only
1445 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1446 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1447 Update their callers.
1448 * eval.c (evaluate_subexp_standard): Update their callers.
1449 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1450 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1451 prototypes.
1452 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1453 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1454 the lower_bound_was_default variable. Update the
1455 f77_get_dynamic_upperbound, f77_get_upperbound and
1456 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1457 * gdbtypes.c (print_bound_type): Remove the function.
1458 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1459 LOWER_BOUND_TYPE.
1460 * gdbtypes.h (enum array_bound_type): Remove.
1461 (struct main_type): Remove the fields upper_bound_type and
1462 lower_bound_type. Comment the new overload of the field artificial.
1463 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1464 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1465 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1466 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1467
40debb5a
TT
14682008-10-02 Tom Tromey <tromey@redhat.com>
1469
1470 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1471
db5f024e
DJ
14722008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1473
1474 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1475 comments.
1476 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1477 (mips_linux_init_abi): Do not override skip_trampoline_code.
1478 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1479 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1480 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1481 (mips_skip_mips16_trampoline_code): Rename from
1482 mips_skip_trampoline_code.
1483 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1484 * infrun.c (handle_inferior_event): Do not pass zero to
1485 in_solib_dynsym_resolve_code.
1486
9f9d052e
PM
14872008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1488 Pedro Alves <pedro@codesourcery.com>
1489
1490 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1491
1492
bd2e94ce
TT
14932008-10-01 Tom Tromey <tromey@redhat.com>
1494
1495 * symtab.c (search_symbols): Update.
1496 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1497
8b41ec65
TT
14982008-10-01 Tom Tromey <tromey@redhat.com>
1499
1500 * symfile.c (syms_from_objfile): Update.
1501 (reread_symbols): Update.
1502 * objfiles.h (OBJF_SYMS): Remove.
1503 (OBJF_REORDERED): Renumber.
1504 (OBJF_SHARED): Likewise.
1505 (OBJF_READNOW): Likewise.
1506 (OBJF_USERLOADED): Likewise.
1507
712f90be
TT
15082008-10-01 Tom Tromey <tromey@redhat.com>
1509
1510 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1511 (find_pc_sect_symtab): Likewise.
1512 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1513 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1514 MSYMBOL_TYPE, not SYMBOL_TYPE.
1515 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1516 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1517 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1518 MSYMBOL_TYPE.
1519 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1520
b887350f
TT
15212008-10-01 Tom Tromey <tromey@redhat.com>
1522
1523 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1524 (scan_xcoff_symtab): Update.
1525 * mdebugread.c (record_minimal_symbol): Update.
1526 (parse_partial_symbols): Update.
1527 * elfread.c (record_minimal_symbol): Update.
1528 * dbxread.c (record_minimal_symbol): Update.
1529 * coffread.c (record_minimal_symbol): Update.
1530 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1531 (sh64_elf_make_msymbol_special): Update.
1532 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1533 MSYMBOL_TARGET_FLAG_1.
1534 (mips_elf_make_msymbol_special): Likewise.
1535 (msymbol_is_special): Likewise.
1536 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1537 (install_minimal_symbols): Likewise.
1538 (prim_record_minimal_symbol): Update.
1539 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1540 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1541 (MSYMBOL_SET_RTI): Redefine.
1542 (MSYMBOL_IS_RTC): Redefine.
1543 (MSYMBOL_IS_RTI): Redefine.
1544 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1545 (MSYMBOL_IS_SPECIAL): Redefine.
1546 * symtab.h (struct minimal_symbol) <info>: Remove.
1547 <target_flag_1, target_flag_2>: New fields.
1548 (MSYMBOL_INFO): Remove.
1549 (MSYMBOL_TARGET_FLAG_1): New macro.
1550 (MSYMBOL_TARGET_FLAG_2): Likewise.
1551 (prim_record_minimal_symbol_and_info): Update.
1552
d35e5795
JB
15532008-09-30 Joel Brobecker <brobecker@adacore.com>
1554
1555 * ada-lang.c (is_digits_suffix): Delete unused function.
1556
d37209fd
JB
15572008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1558
1559 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1560 moduli >= 2**31.
1561
15622008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
1563
1564 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1565 variant branch.
1566 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1567 supposed to be null. Fixes debugger segfaults.
1568 (is_unchecked_variant): New function.
1569 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1570 untouched.
1571 (ada_template_to_fixed_record_type_1): Fix comment.
1572
3d0b0fa3
JB
15732008-09-30 Joel Brobecker <brobecker@adacore.com>
1574
1575 * ada-lang.c (standard_exc): New static constant.
1576 (ada_exception_catchpoint_cond_string): Add special handling
1577 for the predefined exceptions.
1578
cdc7bb92
JB
15792008-09-30 Joel Brobecker <brobecker@adacore.com>
1580
1581 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1582 the code accordingly.
1583
6b0d7253
JB
15842008-09-30 Joel Brobecker <brobecker@adacore.com>
1585
1586 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1587 treatment of expect_type. Return the correct type when dereferencing
1588 an integer.
1589
9a044a89
TT
15902008-09-30 Tom Tromey <tromey@redhat.com>
1591
1592 PR gdb/2484:
1593 * symtab.c (struct add_macro_name_data): New struct.
1594 (add_macro_name): New function.
1595 (default_make_symbol_completion_list): Complete macro names.
1596 * scm-lang.c (scm_language_defn): Update.
1597 * p-lang.c (pascal_language_defn): Update.
1598 * objc-lang.c (objc_language_defn): Update.
1599 * macrotab.h (macro_callback_fn): Add user_data argument.
1600 (macro_for_each): Likewise.
1601 (macro_for_each_in_scope): Declare.
1602 * macrotab.c: (struct macro_for_each_data): New struct.
1603 (foreach_macro): Use it.
1604 (macro_for_each): Likewise.
1605 (foreach_macro_in_scope): New function.
1606 (macro_for_each_in_scope): Likewise.
1607 * macrocmd.c (print_one_macro): Add argument.
1608 (macro_list_command): Pass NULL to macro_for_each.
1609 * m2-lang.c (m2_language_defn): Update.
1610 * language.h (struct language_defn) <la_macro_expansion>: New
1611 field.
1612 (macro_expansion): New enum.
1613 * language.c (unknown_language_defn): Update. Fix order of
1614 initializers.
1615 (auto_language_defn): Likewise.
1616 (local_language_defn): Update.
1617 * jv-lang.c (java_language_defn): Update.
1618 * f-lang.c (f_language_defn): Update.
1619 * c-lang.c (c_language_defn): Update.
1620 (cplus_language_defn): Likewise.
1621 (asm_language_defn): Likewise.
1622 (minimal_language_defn): Likewise.
1623 * ada-lang.c (ada_language_defn): Update.
1624
b084d499
JB
16252008-09-30 Joel Brobecker <brobecker@adacore.com>
1626
1627 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1628 (get_scope_pc_bounds): Use it.
1629
2fae03e8
TT
16302008-09-27 Tom Tromey <tromey@redhat.com>
1631
1632 * NEWS: Update.
1633 * macrocmd.c (extract_identifier): Add is_parameter argument.
1634 (macro_define_command): Update.
1635 (macro_undef_command): Likewise.
1636 * macroexp.c (stringify): New function.
1637 (find_parameter): Likewise.
1638 (gather_arguments): Add nargs argument. Handle varargs.
1639 (substitute_args): Add is_varargs and va_arg_name arguments.
1640 Handle varargs, splicing, stringification. Use find_parameter.
1641 (expand): Handle varargs.
1642
5c6ce71d
TT
16432008-09-27 Tom Tromey <tromey@redhat.com>
1644
1645 * scm-lang.c (scm_language_defn): Update.
1646 * p-typeprint.c (pascal_print_typedef): New function.
1647 * p-lang.h: (pascal_print_typedef): Declare.
1648 * p-lang.c (pascal_language_defn): Update.
1649 * objc-lang.c (objc_language_defn): Update.
1650 * m2-typeprint.c (m2_print_typedef): New function.
1651 * m2-lang.h (m2_print_typedef): Declare.
1652 * m2-lang.c (m2_language_defn): Update.
1653 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1654 Remove.
1655 (struct language_defn) <la_print_typedef>: New field.
1656 (default_print_typedef): Declare.
1657 (LA_PRINT_TYPEDEF): New define.
1658 * language.c (unknown_language_defn): Update.
1659 (auto_language_defn): Update.
1660 (local_language_defn): Update.
1661 * jv-lang.c (java_language_defn): Update.
1662 * f-lang.c (f_language_defn): Update.
1663 * c-typeprint.c (c_print_typedef): New function.
1664 * c-lang.h (c_print_typedef): Declare.
1665 * c-lang.c (c_language_defn): Update.
1666 (cplus_language_defn): Update.
1667 (asm_language_defn): Update.
1668 (minimal_language_defn): Update.
1669 * ada-lang.c (ada_language_defn): Update.
1670 * typeprint.c (default_print_typedef): New function.
1671
09be204e
TT
16722008-09-27 Tom Tromey <tromey@redhat.com>
1673
1674 * jv-exp.y (insert_exp): Define using ISO syntax.
1675 (copy_exp): Likewise.
1676 (push_expression_name): Likewise.
1677 (push_fieldnames): Likewise.
1678 (java_type_from_name): Likewise.
1679 (yyerror): Likewise.
1680 (yylex): Likewise.
1681 (parse_number): Likewise.
1682
3cd9d164
JB
16832008-09-26 Joel Brobecker <brobecker@adacore.com>
1684
1685 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
1686
e3168615
JB
16872008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
1688
1689 * stack.c (print_frame_args): Fix typos in comments.
1690
8b8655b3
TJB
16912008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
1692
1693 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
1694
6fbd21a1
VP
16952008-09-24 Vladimir Prus <vladimir@codesourcery.com>
1696
1697 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
1698
45ef8ce0
AS
16992008-09-24 Andreas Schwab <schwab@suse.de>
1700
1701 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 1702 account. Avoid excessive function calls.
45ef8ce0 1703
9cbfa09e
DE
17042008-09-23 Doug Evans <dje@google.com>
1705
07128da0
DE
1706 * dcache.c (state_chars): New static global.
1707 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
1708 All uses updated.
1709 (dcache_info): Print cache state as mnemonically useful letters instead
1710 of magic numbers.
1711
9cbfa09e
DE
1712 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
1713
d4c0a7a0
TT
17142008-09-22 Tom Tromey <tromey@redhat.com>
1715
1716 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
1717 printf_filtered.
1718
6ca15a4b
PA
17192008-09-22 Pedro Alves <pedro@codesourcery.com>
1720
1721 * infrun.c (follow_exec): Don't do a generic mourn. Instead
1722 inline the required bits.
1723 * breakpoint.h (enum inf_context): Add inf_execd.
1724
795e548f
PA
17252008-09-22 Pedro Alves <pedro@codesourcery.com>
1726
1727 * infrun.c (handle_inferior_event): In the follow exec case,
1728 context-switch before doing anything else.
1729
54a012c9
PA
17302008-09-22 Pedro Alves <pedro@codesourcery.com>
1731
1732 * top.c (any_thread_of, kill_or_detach): New functions.
1733 (quit_target): Iterate over all inferiors, killing or detaching
1734 accordingly.
1735
181e7f93
PA
17362008-09-22 Pedro Alves <pedro@codesourcery.com>
1737
1738 Remove the attach_flag global, and make it per-inferior.
1739
1740 * inferior.h (attach_flag): Delete.
1741 (inferior_process): Declare.
1742 * solib.c (update_solib_list): Adjust.
1743 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
1744 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1745 (inf_ptrace_files_info): Get it from the current inferior.
1746 * inf-ttrace.c (inf_ttrace_attach): Adjust.
1747 (inf_ttrace_files_info): Get it from the current
1748 inferior.
1749 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
1750 (clear_sigint_trap): Get it from the current process.
1751 * remote.c (extended_remote_attach_1)
1752 (extended_remote_create_inferior_1): Adjust.
1753 * top.c (quit_confirm, quit_target): Get it from the current inferior.
1754 * procfs.c (do_detach): Adjust.
1755 (procfs_wait): Get it from the event inferior.
1756 (procfs_files_info): Get it from the current inferior.
1757 * nto-procfs.c (procfs_files_info): Likewise.
1758 (procfs_attach): Adjust. Set the attach_flag here.
1759 (do_attach): Don't set it here.
1760 (procfs_detach): Don't clear it.
1761 (procfs_mourn_inferior): Don't clear it.
1762 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1763 * target.c (attach_flag): Delete.
1764 (generic_mourn_inferior): Don't clear it.
1765 * win32-nat.c (get_win32_debug_event): Get it from the event
1766 process.
1767 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
1768 in the inferior accordingly.
1769 (win32_attach): Don't set the attach_flag here. Pass 1 to
1770 do_intial_win32_stuff.
1771 (win32_files_info): Get it from the current inferior.
1772 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
1773 do_intial_win32_stuff.
1774
d6b48e9c
PA
17752008-09-22 Pedro Alves <pedro@codesourcery.com>
1776
1777 Make the stop_soon global be per-inferior instead.
1778
1779 * infcmd.c (attach_command_post_wait): Adjust.
1780 (attach_command): Likewise.
1781
1782 * inferior.h (stop_soon): Delete.
1783 (struct inferior): Add stop_soon member.
1784
1785 * infrun.c (stop_soon): Delete.
1786 (clear_proceed_status, start_remote)
1787 (fetch_inferior_event, handle_inferior_event): Adjust.
1788 (signal_stop_state): Don't check stop_soon here. Check in callers
1789 instead.
1790 (save_inferior_status, restore_inferior_status): Adjust.
1791
1792 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
1793 signals to common code if starting up the inferior.
1794
1795 * inferior.h (struct inferior_info): Added stop_soon member.
1796 * inferior.c (add_inferior) Clear stop_soon.
1797
1798 * mips-tdep.c (heuristic_proc_start): Adjust.
1799 * nto-procfs.c (procfs_create_inferior): Adjust.
1800 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1801 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1802 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1803 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1804
1805 * win32-nat.c (do_initial_win32_stuff): Adjust.
1806
1807 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
1808
82f73884
PA
18092008-09-22 Pedro Alves <pedro@codesourcery.com>
1810
1811 Implement remote multi-process extensions.
1812
1813 * remote.c (struct remote_state): Add extended and
1814 multi_process_aware fields.
1815 (remote_multi_process_p): New.
1816 (PACKET_vKill): New.
1817 (record_currthread): Use thread_change_ptid. Notice new
1818 inferiors.
1819 (set_thread, remote_thread_alive): Use write_ptid.
1820 (write_ptid, read_ptid): New.
1821 (remote_current_thread, remote_threads_extra_info): Use them.
1822 (remote_threads_info): Likewise. Detect new inferiors.
1823 (remote_start_remote): Add inferior to inferior list.
1824 (remote_multi_process_feature): New.
1825 (remote_protocol_features): Add "multiprocess" feature.
1826 (remote_query_supported): Pass "multiprocess+" as supported
1827 features.
1828 (remote_open_1): Clear multi_process_aware. Set extended
1829 accordingly.
1830 (remote_detach_1): Detach current process. Use extended packet
1831 format for extended-remote multi-process. Detach process from the
1832 inferior list. Only mourn after printing output.
1833 (extended_remote_attach_1): Add process to the inferior list.
1834 (remote_vcont_resume): Use write_ptid to pass the thread ids.
1835 (remote_wait): Use read_ptid. Implement the extended
1836 multi-process extension format of the 'W' and 'X' reply packets.
1837 Remove exited inferiors from inferior list.
1838 (remote_xfer_memory): Set general thread.
1839 (remote_vkill): New.
1840 (extended_remote_kill): New.
1841 (remote_mourn_1): Discard all inferiors.
1842 (select_new_thread_callback): New.
1843 (extended_remote_mourn_1): If there are more processes to debug,
1844 switch to a thread in another process, and don't pop the target.
1845 (extended_remote_create_inferior_1): Add the new process to the
1846 inferior list.
1847 (remote_stopped_by_watchpoint): Indenting.
1848 (remote_xfer_partial): Set the general thread.
1849 (remote_pid_to_str): If the remote is multi-process aware, print
1850 the process id as well as the thread id.
1851 (remote_get_thread_local_address): Use write_ptid.
1852 (init_extended_remote_ops): Register extended_remote_kill.
1853 (_initialize_remote): Register new packets. Change
1854 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
1855 member to 42000.
1856
1857 * thread.c (thread_change_ptid): Also account for the inferior pid
1858 changing.
1859
1860 * inferior.h (discard_all_inferiors): Declare.
1861 * inferior.c (discard_all_inferiors): New.
1862
7f9f62ba
PA
18632008-09-22 Pedro Alves <pedro@codesourcery.com>
1864
1865 * gnu-nat.c (gnu_attach): Add process to inferiors table.
1866 (gnu_detach): Remove it.
1867 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
1868 table.
1869 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
1870 to inferior table accordingly.
1871 (inf_ptrace_attach): Add new process to inferior table.
1872 (inf_ptrace_detach): Remove it.
1873 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
1874 to inferior table accordingly.
1875 (inf_ttrace_attach): Add process to inferior table.
1876 (inf_ttrace_detach): Remove it.
1877 * linux-fork.c (init_fork_list): Delete any left over inferior.
1878 (linux_fork_mourn_inferior, detach_fork_command): Also delete
1879 processes from inferior list.
1880 * monitor.c (monitor_open): Add process to inferior list.
1881 (monitor_close): Remove it.
1882 * nto-procfs.c (procfs_attach): Add process to inferior list.
1883 Find threads after pushing the target.
1884 (procfs_detach): Remove process from inferior list.
1885 (procfs_create_inferior): Add process to inferior list.
1886 * procfs.c (procfs_detach): Remove process from inferior list.
1887 (do_attach): Add process to inferior list.
1888 * remote-sim.c (sim_create_inferior): Add process to inferior list.
1889 (gdbsim_close): Remove it.
1890 * target.c (generic_mourn_inferior): If inferior_ptid is not
1891 null_ptid, remove the corresponding inferior from inferior list.
1892 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
1893 (win32_detach): Remove it.
1894 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
1895 to inferior list accordingly.
1896 * fork-child.c (fork_inferior): Add process to inferior list.
1897 * corelow.c (CORELOW_PID): Define.
1898 (core_close): Remove core from inferior list.
1899 (core_open): Add it.
1900
b77209e0
PA
19012008-09-22 Pedro Alves <pedro@codesourcery.com>
1902
1903 * inferior.h: Forward declare struct ui_out.
1904 Forward declare struct private_inferior.
1905 (struct inferior): New.
1906 (init_inferior_list, add_inferior, add_inferior_silent)
1907 (delete_inferior, delete_inferior_silent, detach_inferior)
1908 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
1909 (valid_inferior_id, find_inferior_pid): New functions.
1910 (inferior_callback_func): New typedef.
1911 (iterate_over_inferiors, print_inferior, have_inferiors)
1912 (current_inferior): New functions.
1913 * inferior.c: New file.
1914
1915 * Makefile.in (SFILES): Add inferior.c.
1916 (COMMON_OBS): Add inferior.o.
1917
d8c3d48d
JL
19182008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
1919
1920 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
1921 instead of determining symbol and line info directly.
1922 * MAINTAINERS: Update my email address.
1923
d54be744
DJ
19242008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
1925
1926 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
1927 at the same address as a prologue marker. Do not skip an entire
1928 function.
1929
26fae1d6
AS
19302008-09-22 Andrew Stubbs <ams@codesourcery.com>
1931
1932 * frame.c (get_frame_register_bytes): Comment improvments.
1933
1ad15515
PA
19342008-09-22 Pedro Alves <pedro@codesourcery.com>
1935
1936 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
1937 all-stop mode.
1938
14fc49fb
AS
19392008-09-19 Andrew Stubbs <ams@codesourcery.com>
1940
1941 * MAINTAINERS: Update my email address.
1942
3f27f2a4
AS
19432008-09-19 Andrew Stubbs <ams@codesourcery.com>
1944
1945 * frame.c (get_frame_register_bytes): Detect bad debug info.
1946
88ed393a
JK
19472008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1948
1949 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
1950 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
1951 initialization ...
1952 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
1953 ...
1954 (handle_inferior_event): ... here after the add_thread call together
1955 with the local adjust_pc_after_break and reinit_frame_cache calls.
1956
d832cb68
DD
19572008-09-16 David Daney <ddaney@avtrex.com>
1958
1959 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
1960 all hardware bpstats.
1961
b1e40a6f
JB
19622008-09-16 Joel Brobecker <brobecker@adacore.com>
1963
1964 * gstdint.h: Delete.
1965
50a834af
MK
19662008-09-15 Mark Kettenis <kettenis@gnu.org>
1967
1968 * infcall.c (generic_push_dummy_code): Remove.
1969 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
1970
9d25dd43
DE
19712008-09-15 Doug Evans <dje@google.com>
1972
1973 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
1974 (struct attribute): Ditto.
1975
85c83e99
DA
19762008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1977
326e541f
DA
1978 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
1979 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
1980
85c83e99
DA
1981 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
1982 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
1983 Correct arguments and improve comments.
1984 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
1985 disabled code.
1986 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
1987 point DBX register, change error to warning, and improve comments.
1988
76815b17
DE
19892008-09-14 Doug Evans <dje@google.com>
1990
1991 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
1992
51e753cf
DA
19932008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1994
1995 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1996
06e476f5
JB
19972008-09-13 Joel Brobecker <brobecker@adacore.com>
1998
1999 * defs.h (GCC_GENERATED_STDINT_H): Define.
2000
6c761d9c
TT
20012008-09-13 Tom Tromey <tromey@redhat.com>
2002
2003 * varobj.c (varobj_set_display_format): Use xfree.
2004 * tracepoint.c (stringify_collection_list): Use xfree.
2005 * remote-fileio.c (remote_fileio_reset): Use xfree.
2006 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2007 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2008 asprintf.
2009 * cp-support.c (mangled_name_to_comp): Use xfree.
2010
339c13b6
JB
20112008-09-13 Joel Brobecker <brobecker@adacore.com>
2012
2013 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2014 the associated complete symbol is also in the list.
2015 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2016 extracted out from ada_lookup_symbol_list.
2017 (ada_lookup_symbol_list): Use them. Remove the search through
2018 the minimal symbols.
2019
bc30ff58
JB
20202008-09-13 Joel Brobecker <brobecker@adacore.com>
2021
2022 * dwarf2read.c (add_partial_subprogram): New procedure.
2023 (scan_partial_symbols): Use it.
2024 (load_partial_dies): Read in children of subprogram and lexical
2025 blocks for Ada compilation units.
2026
bb01da77
TT
20272008-09-13 Tom Tromey <tromey@redhat.com>
2028
2029 * symfile.c (build_id_verify): Free 'found'.
2030 (find_separate_debug_file): Use xfree, not free.
2031
d00adf39
DE
20322008-09-12 Doug Evans <dje@google.com>
2033
00630ca8
DE
2034 * corefile.c (write_memory): Remove unnecessary copying.
2035
5d6fa950
DE
2036 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2037 order of _initialize_* fns.
2038
d00adf39
DE
2039 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2040 first_die_offset. All uses updated.
2041 Delete unused members cu_head_ptr, next.
2042 Move members base_known, base_address to ...
2043 (dwarf2_cu) ... here. All uses updated.
2044
3d0bb823
PA
20452008-09-12 Pedro Alves <pedro@codesourcery.com>
2046
2047 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2048 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2049
3c35e65b
UW
20502008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2051
2052 * fork-child.c (startup_inferior): Use target_wait and target_resume
2053 directly instead of calling wait_for_inferior / resume.
2054
2055 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2056 or init_wait_for_inferior.
2057 (run_command_1): Call init_wait_for_inferior.
2058
4cca3ac9
UW
20592008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2060
2061 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2062 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2063 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2064 builtin_type_unsigned_char, builtin_type_unsigned_short,
2065 builtin_type_unsigned_int, builtin_type_unsigned_long,
2066 builtin_type_float, builtin_type_double, builtin_type_long_double,
2067 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2068 builtin_type_bool, builtin_type_long_long,
2069 builtin_type_unsigned_long_long): Remove macros.
2070
2071 (builtin_type_f_character, builtin_type_f_integer,
2072 builtin_type_f_integer_s2, builtin_type_f_logical,
2073 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2074 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2075 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2076 builtin_type_f_complex_s32): Likewise.
2077
2078 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2079 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2080
2081 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2082 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2083
2084 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2085 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2086
b6da22b0
UW
20872008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2088
2089 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2090 target_gdbarch instead of builtin_type_void_data_ptr.
2091 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2092 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2093 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2094 open_symbol_file_object): Likewise.
2095 * nto-tdep.c (LM_ADDR): Likewise.
2096
ff7da468
UW
20972008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2098
2099 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2100 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2101 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2102
4e906f53
UW
21032008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2104
2105 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2106 and its associated types to perform pointer conversion.
2107 (procfs_can_use_hw_breakpoint): Likewise.
2108 (procfs_auxv_parse): Remove unused variable.
2109
ffe5a37e
UW
21102008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2111
2112 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2113 instead of builtin_type_void_data_ptr.
2114 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2115
b806fb9a
UW
21162008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2117
2118 * expprint.c (print_subexp_standard): Compare against builtin type
2119 associated with exp->gdbarch instead of builtin_type_char.
2120
2121 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2122 extract values of arbitrary logical type. Handle arbitrary
2123 complex types.
2124
2125 * printcmd.c (float_type_from_length): New function.
2126 (print_scalar_formatted, printf_command): Use it.
2127
3e3b026f
UW
21282008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2129
2130 * valops.c: Include "objfiles.h" and "symtab.h".
2131 (find_function_in_inferior): New argument OBJF_P. Use it to return
2132 objfile where function is defined. Use per-objfile arch types
2133 instead of builtin_type_ to define default return type.
2134
2135 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2136 architecture to define inferior call argument types.
2137 * gcore.c (derive_heap_segment): Likewise.
2138 * objc-lang.c (value_nsstring): Likewise.
2139 * scm-lang.c (scm_lookup_name): Likewise.
2140 * scm-valprint.c (scm_inferior_print): Likewise.
2141 * valops.c (value_allocate_space_in_inferior): Likewise.
2142
2143 * eval.c (evaluate_subexp_standard): Update calls.
2144 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2145
2146 * linux-fork.c: Include "objfiles.h".
2147 * scm-lang.c: Include "objfiles.h".
2148 * scm-valprint.c: Include "objfiles.h".
2149
f8dcfc0a
UW
21502008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2151
2152 * gdbarch.sh (name_of_malloc): Remove.
2153 * gdbarch.c, gdbarch.h: Re-generate.
2154 * valops.c (value_allocate_space_in_inferior): Do not call
2155 gdbarch_name_of_malloc.
2156
c56324e0
UW
21572008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2158
2159 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2160 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2161 (value_bit_index): Use extract_unsigned_integer
2162 instead of unpack_long to read single byte.
2163
7788af6d
UW
21642008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2165
2166 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2167 associates types instead of builtin_type_ macros.
2168 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2169 (call_function_by_hand): Use per-architecture "int" type as
2170 fall-back if find_function_addr returns NULL VALUE_TYPE.
2171 Update call to value_arg_coerce.
2172
ad4820ab
UW
21732008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2174
2175 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2176 (cplus_make_method_ptr): Add TYPE parameter.
2177 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2178 on to current_cp_abi.method_ptr_size callback.
2179 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2180 current_cp_abi.make_method_ptr callback.
2181
2182 * gdbtypes.c (lookup_methodptr_type): Pass target type
2183 argument to cplus_method_ptr_size.
2184 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2185 (value_struct_elt_for_reference): Likewise.
2186
2187 * gnu-v3-abi.c (get_class_arch): New function.
2188 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2189 instead of current_gdbarch. Update all callers.
2190 (gnuv3_get_vtable): Likewise.
2191 (gnuv3_get_virtual_fn): Likewise.
2192 (gnuv3_decode_method_ptr): Likewise.
2193 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2194 Use it instead of current_gdbarch.
2195 (gnuv3_virtual_fn_field): Likewise.
2196 (gnuv3_baseclass_offset): Likewise.
2197 (gnuv3_print_method_ptr): Likewise.
2198 (gnuv3_method_ptr_to_value): Likewise.
2199 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2200 class architecture. Use architecture types instead of builtin types.
2201 (gnuv3_make_method_ptr): Likewise.
2202
2203 * cp-valprint.c (cp_print_class_member): Expect pointer type
2204 instead of class type. Use its length when extracting value.
2205 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2206
5ed92fa8
UW
22072008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2208
2209 * stack.c (return_command): Use frame architecture to determine
2210 default integer return type.
2211
2212 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2213 to determine pointer types.
2214 (f77_get_dynamic_upperbound): Likewise.
2215
2216 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2217 (resolve_msgsend): Use architecture of current frame to determine
2218 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2219 (resolve_msgsend_stret, resolve_msgsend_super,
2220 resolve_msgsend_super_stret): Likewise.
2221
0dfff4cb
UW
22222008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2223
2224 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2225 instead of builtin_type_ macros.
2226 * amd64-tdep.c (amd64_register_type): Likewise.
2227 (amd64_get_longjmp_target): Likewise.
2228 * arm-tdep.c (arm_register_type): Likewise.
2229 * avr-tdep.c (avr_register_type): Likewise.
2230 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2231 * frv-tdep.c (frv_register_type): Likewise.
2232 * h8300-tdep.c (h8300_register_type): Likewise.
2233 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2234 hppa_skip_trampoline_code): Likewise.
2235 * i386-tdep.c (i386_register_type): Likewise.
2236 (i386_unwind_pc, i386_sse_type): Likewise.
2237 * ia64-tdep.c (ia64_register_type): Likewise.
2238 * m32r-tdep.c (m32r_register_type): Likewise.
2239 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2240 * m88k-tdep.c (m88k_register_type): Likewise.
2241 * mep-tdep.c (mep_register_type): Likewise.
2242 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2243 * mn10300-tdep.c (mn10300_register_type): Likewise.
2244 * mt-tdep.c (mt_copro_register_type): Likewise.
2245 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2246 (rs6000_convert_register_p, rs6000_register_to_value,
2247 rs6000_value_to_register): Likewise.
2248 * s390-tdep.c (s390_register_type): Likewise.
2249 * sh64-tdep.c (sh64_register_type): Likewise.
2250 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2251 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2252 sh_sh4_build_float_register_type, sh_sh4_register_type,
2253 sh_default_register_type): Likewise.
2254 * sparc64-tdep.c (sparc64_register_type): Likewise.
2255 * sparc-tdep.c (sparc32_register_type): Likewise.
2256 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2257 * v850-tdep.c (v850_register_type): Likewise.
2258 * vax-tdep.c (vax_register_type): Likewise.
2259 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2260 xtensa_push_dummy_call): Likewise.
2261
2262 * std-regs.c (value_of_builtin_frame_fp_reg,
2263 value_of_builtin_frame_pc_reg): Likewise.
2264 * target-descriptions.c (tdesc_register_type): Likewise.
2265
6d84d3d8
UW
22662008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2267
2268 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2269 instead of builtin_type_int as default unspecified integral type.
2270 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2271 assign_component, to_fixed_range_type): Likewise.
2272 * ada-typeprint.c (print_range, print_range_bound,
2273 print_range_type_named): Likewise.
2274 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2275 * eval.c (evaluate_subexp_standard): Likewise.
2276 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2277 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2278 build_gdb_vtable_type): Likewise.
2279 * jv-lang.c (java_array_type): Likewise.
2280 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2281 * m2-valprint.c (m2_print_long_set): Likewise.
2282 * parse.c (follow_types): Likewise.
2283 * p-typeprint.c (pascal_type_print_base): Likewise.
2284 * valops.c (value_one, value_array, value_string,
2285 value_bitstring): Likewise.
2286 * value.c (allocate_repeat_value, value_from_string): Likewise.
2287 * varobj.c (c_describe_child): Likewise.
2288 * mt-tdep.c (mt_register_type): Likewise.
2289 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2290 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2291
180b9a0e
UW
22922008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2293
2294 * defs.h (struct gdbarch): Add forward declaration.
2295 (set_next_address): Add GDBARCH argument.
2296 * printcmd.c (set_next_address): Use it to find pointer type.
2297 * breakpoint.c (breakpoint_1): Update call.
2298 * source.c (line_info): Likewise.
2299 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2300
2301 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2302 types for internal variable values.
2303 * infrun.c (handle_inferior_event): Likewise.
2304 * source.c (forward_search_command, reverse_search_command): Likewise.
2305 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2306 set_tracepoint_num, set_traceframe_context): Likewise.
2307
b769d911
UW
23082008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2309
2310 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2311 and builtin_true_unsigned_char.
2312 (builtin_type_true_char): Remove macro, add extern declaration.
2313 (builtin_type_true_unsigned_char): Add extern declaration.
2314 * gdbtypes.c (builtin_type_true_char): New global variable.
2315 (builtin_type_true_unsigned_char): Likewise.
2316 (_initialize_gdbtypes): Initialize them.
2317 (gdbtypes_post_init): Do not initialize builtin_true_char
2318 and builtin_true_unsigned_char members of struct builtin_type.
2319
2320 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2321 use builtin_type_true_unsigned_char instead.
2322
2323 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2324 instead of builtin_type_char for internal string.
2325
fde6c819
UW
23262008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2327
2328 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2329 (builtin_type_f_void): Remove macro.
2330 * gdbtypes.c (builtin_type_void): New global variable.
2331 (_initialize_gdbtypes): Initialize it.
2332
2333 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2334 lookup_pointer_type or lookup_function_type on builtin_type_void.
2335 * printcmd.c (set_next_address): Likewise.
2336 * objc-lang.c (value_nsstring): Likewise.
2337 * mt-tdep.c (mt_copro_register_type): Likewise.
2338 * xtensa-tdep.c (xtensa_register_type): Likewise.
2339
2340 * symfile.c (syms_from_objfile): Remove special handling
2341 of builtin_type_void and builtin_type_char.
2342
d4dbb9c7
UW
23432008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2344
2345 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2346 of builtin_type_ macros when handling OP_OBJC_ operations.
2347 * objc-lang.c (print_object_command): Likewise.
2348
8ca1c40e
UW
23492008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2350
2351 * ada-valprint.c: Include "objfiles.h".
2352 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2353 a System.Address type is defined to retrieve the proper pointer type
2354 to use to print it.
2355
3cb382c9
UW
23562008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2357
2358 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2359 result type instead of builtin_type_int.
2360 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2361 (ada_value_subscript): Update call to value_pos_atr.
2362 (ada_value_ptr_subscript): Likewise.
2363 (ada_evaluate_subexp): Likewise.
2364
a53b7a21
UW
23652008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2366
2367 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2368 (cast_from_fixed_to_double): Rename to ...
2369 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2370 of builtin_type_double.
2371 (ada_value_cast): Use cast_from_fixed instead of casting result
2372 of cast_from_fixed_to_double.
2373 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2374
22fe0fbb
UW
23752008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2376
2377 * valops.c (value_ind): No longer allow dereferencing an
2378 integer type.
2379 * eval.c (evaluate_subexp_standard): Handle deferencing an
2380 integer type here.
2381 * ada-lang.c (ada_evaluate_subexp): Likewise.
2382
d8631d21
UW
23832008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2384
2385 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2386 a reference type, pass the reference type directly to unpack_pointer.
2387 * c-valprint.c (c_val_print): Likewise.
2388 * f-valprint.c (f_val_print): Likewise.
2389 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2390 * p-valprint.c (pascal_val_print): Likewise.
2391
cb18ec49
UW
23922008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2393
2394 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2395 to construct the EVAL_SKIP dummy return value.
2396 * ada-lang.c (ada_evaluate_subexp): Likewise.
2397 * jv-lang.c (evaluate_subexp_java): Likewise.
2398 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2399 * scm-lang.c (evaluate_exp): Likewise.
2400
0ab7ba45
UW
24012008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2402
2403 * value.h (coerce_enum, coerce_number): Remove prototypes.
2404 * value.c (coerce_enum, coerce_number): Remove.
2405 * valarith.c (value_x_binop): Do not call coerce_enum.
2406 (value_x_unop): Likewise.
2407 (value_logical_not): Call coerce_array instead of coerce_number.
2408
f7c79c41
UW
24092008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2410
2411 * ax-gdb.c: Include "language.h".
2412 (gen_frame_args_address): Add GDBARCH parameter; use it
2413 instead of current_gdbarch.
2414 (gen_frame_locals_address): Likewise.
2415 (gen_var_ref): Add GDBARCH parameter. Update calls to
2416 gen_frame_args_address and gen_frame_locals_address. Use
2417 pointer type from gdbarch.
2418 (gen_usual_unary): Add EXP parameter. Use integer type
2419 from exp->gdbarch.
2420 (gen_usual_arithmetic): Likewise.
2421 (gen_integral_promotions): Likewise.
2422 (gen_add, gen_sub): Remove.
2423 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2424 (gen_logical_not): Use passed-in boolean result type
2425 instead of builtin_type_int.
2426 (gen_complement): Do not call gen_usual_unary or
2427 gen_integral_promotions.
2428 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2429 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2430 Use builtin_type_int32 as internal range type.
2431 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2432 as result type. Update call to gen_expr.
2433 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2434 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2435 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2436 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2437 Use exp->gdbarch instead of current_gdbarch.
2438 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2439
f44316fa
UW
24402008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2441
2442 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2443 and unop_promote before calling value_binop et. al.
2444 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2445 and unop_promote before calling value_binop et. al.
2446
2447 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2448 (value_pos): Do not call unop_promote.
2449 (value_neg, value_complement): Likewise.
2450
4066e646
UW
24512008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2452
2453 * value.h (unop_promote, binop_promote): Add prototypes.
2454 * eval.c (unop_promote, binop_promote): New functions.
2455 * valarith.c (unop_result_type, binop_result_type): Remove.
2456 (value_binop): Call binop_promote or unop_promote.
2457 Inline remaining parts of binop_result_type. Remove special
2458 code to truncate integer values for unsigned operations.
2459 (value_pos): Call unop_promote. Inline remaining parts of
2460 unop_result_type.
2461 (value_neg, value_complement): Likewise.
2462
89eef114
UW
24632008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2464
2465 * value.h (value_add, value_sub): Remove.
2466 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2467 * valarith.c (value_add, value_sub): Remove.
2468 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2469 (find_size_for_pointer_math): Add assertion. Update comment.
2470 (value_binop): Update comment.
2471
2472 * eval.c (ptrmath_type_p): New function.
2473 (evaluate_subexp_standard): Replace value_add and value_sub
2474 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2475 Use builtin_type_uint8 instead of builtin_type_char to hold
2476 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2477 * valarith.c (value_subscript): Replace value_add by
2478 value_ptradd. Replace value_sub by value_binop.
2479 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2480 (ada_tag_name_2): Replace value_add by value_ptradd.
2481 (ada_evaluate_subexp): Replace value_add and value_sub by
2482 value_binop.
2483 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2484 by value_ptradd.
2485 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2486 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2487
98b90dd8
UW
24882008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2489
2490 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2491 the expression architecture instead of builtin_type_int as the
2492 sizeof return type.
2493
c806c55a
UW
24942008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2495
2496 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2497 a type parameter as expression element.
2498 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2499 type as expression element.
2500 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2501 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2502
fbb06eb1
UW
25032008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2504
2505 * language.h (struct language_arch_info): New members
2506 bool_type_default and bool_type_symbol.
2507 (lang_bool_type): Remove prototype.
2508 (LA_BOOL_TYPE): Remove macro.
2509 (language_bool_type): Add prototype.
2510 * language.c (lang_bool_type): Remove.
2511 (language_bool_type): New function.
2512
2513 * value.h (value_in): Change return value to int.
2514 * value.c (value_in): Return int instead of struct value *.
2515
2516 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2517 of using LA_BOOL_TYPE. Update call to value_in.
2518 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2519 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2520
2521 * language.c (unknown_language_arch_info): Set bool_type_default member
2522 of struct language_arch_info.
2523 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2524 bool_type_default members of struct language_arch_info.
2525 * c-lang.c (c_language_arch_info): Set bool_type_default member
2526 of struct language_arch_info.
2527 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2528 members of struct language_arch_info.
2529 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2530 bool_type_default members of struct language_arch_info.
2531 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2532 bool_type_default members of struct language_arch_info.
2533 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2534 bool_type_default members of struct language_arch_info.
2535 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2536 bool_type_default members of struct language_arch_info.
2537
de7b6b47
UW
25382008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2539
2540 * jv-lang.c (enum java_primitive_types): New type.
2541 (java_language_arch_info): New function.
2542 (java_language): Use it instead of c_language_arch_info.
2543
afc05acb
UW
25442008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2545
2546 * value.h (value_bitstring_subscript): New prototype.
2547 * valarith.h (value_bitstring_subscript): New function.
2548 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2549 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2550 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2551
3e79cecf
UW
25522008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2553
2554 * expression.h (struct expression): New member GDBARCH.
2555 * parse.c (parse_exp_in_context): Initialize it.
2556 * parser-def.h (parse_gdbarch, parse_language): New macros.
2557
2558 * ada-exp.y (parse_type): New macro.
2559 Replace builtin_type_ macros by using parse_type.
2560 Replace current_language by parse_language.
2561 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2562 Replace builtin_type_ macros.
2563
2564 * c-exp.y (parse_type): New macro.
2565 Replace builtin_type_ macros by using parse_type.
2566 (parse_number): Replace current_gdbarch by parse_gdbarch.
2567 (yylex): Replace current_language by parse_language.
2568
2569 * f-exp.y (parse_type, parse_f_type): New macros.
2570 Replace builtin_type_ macros by using parse_{f_,}type.
2571 (parse_number): Replace current_gdbarch by parse_gdbarch.
2572 (yylex): Replace current_language by parse_language.
2573
2574 * jv-exp.y (parse_type): New macro.
2575 (parse_number): Replace builtin_type_ macros by using parse_type.
2576
2577 * m2-exp.y (parse_type, parse_m2_type): New macros.
2578 Replace builtin_type_ macros by using parse_{m2_,}type.
2579
2580 * objc-exp.y (parse_type): New macro.
2581 Replace builtin_type_ macros by using parse_type.
2582 (parse_number): Replace current_gdbarch by parse_gdbarch.
2583 (yylex): Replace current_language by parse_language.
2584
2585 * p-exp.y (parse_type): New macro.
2586 Replace builtin_type_ macros by using parse_type.
2587 (parse_number): Replace current_gdbarch by parse_gdbarch.
2588 (yylex): Replace current_language by parse_language.
2589
c841afd5
UW
25902008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2591
2592 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2593 and DATA_SYMBOL_TYPE arguments.
2594 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2595 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2596 (write_dollar_variable): Update call.
2597
2598 * ada-exp.y (write_var_or_type): Update call.
2599 * c-exp.y: Likewise.
2600 * f-exp.y: Likewise.
2601 * jv-exp.y: Likewise.
2602 * m2-exp.y: Likewise.
2603 * objc-exp.y: Likewise.
2604 * p-exp.y: Likewise.
2605
0c1f74cf
JB
26062008-09-10 Joel Brobecker <brobecker@adacore.com>
2607
2608 * ada-lang.c (ada_parent_type): Add handling of the case where
2609 the _parent field is a pointer and/or has a parallel XVS type.
2610 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2611 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2612 the type of the tag instead of doing forcing an EVAL_NORMAL
2613 expression evaluation.
2614
5823c3ef
JB
26152008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2616 Joel Brobecker <brobecker@adacore.com>
2617
2618 * ada-lang.c (is_digits_suffix): New function.
2619 (is_dot_digits_suffix): Remove.
2620 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2621 before looking up in symbol table, and do not use wild matches on them.
2622 (wild_match): Reimplement for speed and to allow matching of operator
2623 symbols.
2624 (is_valid_name_for_wild_match): Return zero for names that do not
2625 follow the GNAT encoding.
2626
2627 (is_name_suffix): Fix typo in comment.
2628 (to_record_with_fixed_variant_part): Ditto.
2629
e5fa8013
PA
26302008-09-10 Pedro Alves <pedro@codesourcery.com>
2631
2632 * Makefile.in (gnu-nat.o): New rule.
2633
6d2e05aa
JB
26342008-09-10 Joel Brobecker <brobecker@adacore.com>
2635
2636 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2637 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2638
2ac8a782
JB
26392008-09-10 Joel Brobecker <brobecker@adacore.com>
2640
2641 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2642 Add special handling for pointer types.
2643
b861ac81
PA
26442008-09-10 Pedro Alves <pedro@codesourcery.com>
2645
2646 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2647 right scope level.
2648 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2649
030b4912
UW
26502008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2651
2652 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2653 of builtin_type_int.
2654 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2655 instead of builtin_type_int.
2656
d51fd4c8
PA
26572008-09-09 Pedro Alves <pedro@codesourcery.com>
2658
2659 * infrun.c (normal_stop): Run hook-stop last.
2660
11cb6f65
PA
26612008-09-09 Pedro Alves <pedro@codesourcery.com>
2662
2663 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2664 (init_gnu_ops): Don't register it.
2665
a9ab7422
PA
26662008-09-09 Pedro Alves <pedro@codesourcery.com>
2667
2668 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2669 threads.
2670
694182d2
DJ
26712008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2672
2673 * valops.c (value_cast_structs): Return NULL for failure.
2674 (value_cast): Handle NULL from value_cast_structs.
2675 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2676
dcf4fbde
PA
26772008-09-08 Pedro Alves <pedro@codesourcery.com>
2678
2679 * inferior.h (context_switch_to): Delete.
2680 * infrun.c (context_switch): Don't save and load infrun state.
2681 (context_switch_to): Delete.
2682
2683 * infcmd.c (proceed_thread_callback): Replace context_switch_to
2684 calls by switch_to_thread calls.
2685
2686 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
2687 * thread.c (main_thread_state, main_thread_executing): Delete.
2688 (inferior_thread): Delete references to them.
2689 (add_thread_silent): Fix case where we're adding a thread with the
2690 same ptid as an exited thread. Remove references to
2691 context-switching.
2692 (load_infrun_state, save_infrun_state): Delete.
2693 (thread_alive, is_thread_state, any_running, is_executing)
2694 (set_executing): Remove the special handling for targets that
2695 don't register any thread.
2696 (restore_current_thread, thread_apply_all_command)
2697 (do_captured_thread_select): Unconditionally call
2698 switch_to_thread.
2699
2700 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
2701 Call switch_to_thread instead of context_switch_to.
2702
95e54da7
PA
27032008-09-08 Pedro Alves <pedro@codesourcery.com>
2704
2705 Remove global continuations in favour of a per-thread
2706 continuations.
2707
2708 * gdbthread.h (struct thread_info): Add comments around
2709 continuations and intermediate_continuations.
2710 (save_infrun_state, load_infrun_state): Delete continuations and
2711 intermediate_continuations arguments.
fedae5ff 2712 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
2713 * thread.c (clear_thread_inferior_resources): Discard all
2714 continuations of the thread we're clearing.
2715 (save_infrun_state, load_infrun_state): Delete continuations and
2716 intermediate_continuations arguments, and the code referencing
2717 them.
2718 * utils.c: Include "gdbthread.h".
2719 (cmd_continuation, intermediate_continuation): Delete.
2720 (add_continuation): Add thread_info* argument. Install the
2721 continuation on it.
2722 (restore_thread_cleanup): New.
2723 (do_all_continuations_ptid, do_all_continuations_thread_callback):
2724 New.
2725 (do_all_continuations): Reimplement.
2726 (discard_all_continuations_thread_callback,
2727 discard_all_continuations_thread): New.
2728 (discard_all_continuations): Reimplement.
2729 (add_intermediate_continuation): Add thread_info* argument.
2730 Install the continuation on it.
2731 (do_all_intermediate_continuations_thread_callback)
2732 (do_all_intermediate_continuations_thread): New.
2733 (do_all_intermediate_continuations): Reimplement.
2734 (discard_all_intermediate_continuations_thread_callback): New.
2735 (discard_all_intermediate_continuations_thread): New.
2736 (discard_all_intermediate_continuations): Reimplement.
2737
2738 * breakpoint.c (until_break_command): Install the continuation on
2739 the current thread.
2740
2741 * defs.h (cmd_continuation, intermediate_continuation): Delete.
2742 (struct thread_info): Forward declare.
2743 (add_continuation, add_intermediate_continuation): Add
2744 thread_info* argument.
2745 (do_all_continuations_thread, discard_all_continuations_thread)
2746 (do_all_intermediate_continuations_thread)
2747 (discard_all_intermediate_continuations_thread): Declare.
2748 * inf-loop.c (inferior_event_handler): In non-stop only run
2749 continuations on the thread that stopped. In all-stop, run
2750 continuations on all threads.
2751 * infcmd.c (step_once, finish_command): Adjust.
2752
414c69f7
PA
27532008-09-08 Pedro Alves <pedro@codesourcery.com>
2754
2755 Remove the global stop_step in favour of a per-thread
2756 stop_step.
2757
2758 * inferior.h (stop_step): Delete.
2759
2760 * gdbthread.h (struct thread_info): Add comments to stop_step.
2761 (save_infrun_state, load_infrun_state): Remove stop_step argument.
2762 * thread.c (load_infrun_state, save_infrun_state): Remove
2763 stop_step argument, and references to it.
2764
2765 * infrun.c (clear_proceed_status): Clear stop_step.
2766 (fetch_inferior_event): Adjust.
2767 (context_switch): Don't context-switch stop_step.
2768 (handle_inferior_event): Adjust.
2769 (normal_stop): Adjust.
2770 (save_inferior_status, restore_inferior_status): Adjust.
2771
2772 * infcmd.c (stop_step): Delete.
2773 (step_1, step_1_continuation, step_once, until_next_command):
2774 Adjust.
2775
af679fd0
PA
27762008-09-08 Pedro Alves <pedro@codesourcery.com>
2777
2778 Remove the global step_multi in favour of a per-thread
2779 step_multi.
2780
2781 * inferior.h (step_multi): Delete.
2782 * gdbthread.h (struct thread_info): Add comments around
2783 step_multi.
2784 (save_infrun_state, load_infrun_state): Remove step_multi
2785 parameter.
2786 * thread.c (load_infrun_state, save_infrun_state): Remove
2787 step_multi argument, and references to it.
2788 * infcmd.c (step_multi): Delete.
2789 (step_1): Adjust.
2790 (step_1_continuation, until_next_command): Adjust.
2791 * infrun.c (fetch_inferior_event): Adjust.
2792 (context_switch): Don't context-switch step_multi.
2793 (print_stop_reason, normal_stop): Adjust.
2794
2020b7ab
PA
27952008-09-08 Pedro Alves <pedro@codesourcery.com>
2796
2797 Remove the global stop_signal in favour of a per-thread
2798 stop_signal.
2799
2800 * inferior.h (stop_signal): Delete.
2801 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2802 stop_signal argument.
2803 * thread.c (load_infrun_state, save_infrun_state): Remove
2804 stop_signal argument. Don't reference it.
2805
2806 * infcmd.c (stop_signal): Delete.
2807 (program_info): Adjust.
2808 * infrun.c (resume): Clear stop_signal.
2809 (proceed): Adjust. Pass the last stop_signal to the thread we're
2810 resuming.
2811 (context_switch): Don't context-switch stop_signal.
2812 (handle_inferior_event, keep_going): Adjust.
2813 (save_inferior_status, restore_inferior_status): Adjust.
2814
2815 * fbsd-nat.c: Include "gdbthread.h".
2816 (find_signalled_thread, find_stop_signal): New.
2817 (fbsd_make_corefile_notes): Use it.
2818 * fork-child.c (startup_inferior): Adjust.
2819
2820 * linux-nat.c (get_pending_status): Adjust.
2821 (linux_nat_do_thread_registers): Adjust.
2822 (find_signalled_thread, find_stop_signal): New.
2823 (linux_nat_do_thread_registers): Add stop_signal parameter.
2824 (struct linux_nat_corefile_thread_data): Add stop_signal member.
2825 (linux_nat_corefile_thread_callback): Pass stop_signal.
2826 (linux_nat_do_registers): Delete.
2827 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
2828 there's always a thread.
2829
2830 * procfs.c (find_signalled_thread, find_stop_signal): New.
2831 (find_stop_signal): New.
2832 (procfs_do_thread_registers): Add stop_signal parameter.
2833 (struct procfs_corefile_thread_data): Add stop_signal member.
2834 (procfs_corefile_thread_callback): Pass args->stop_signal.
2835 (procfs_make_note_section): Find the last stop_signal.
2836
2837 * solib-irix.c: Include gdbthread.h.
2838 (irix_solib_create_inferior_hook): Adjust.
2839 * solib-osf.c: Include gdbthread.h.
2840 (osf_solib_create_inferior_hook): Adjust.
2841 * solib-sunos.c: Include gdbthread.h.
2842 (sunos_solib_create_inferior_hook): Adjust.
2843 * solib-svr4.c: Include gdbthread.h.
2844 (svr4_solib_create_inferior_hook): Adjust.
2845
2846 * win32-nat.c (do_initial_win32_stuff): Adjust.
2847
32400beb
PA
28482008-09-08 Pedro Alves <pedro@codesourcery.com>
2849
2850 * gdbthread.h (struct thread_info): Add comments around
2851 proceed_to_finish.
2852 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
2853 argument.
2854 * thread.c (load_infrun_state, save_infrun_state): Delete
2855 proceed_to_finish argument and references to it.
2856
2857 * infcall.c (call_function_by_hand): Adjust.
2858 * infcmd.c (finish_command): Adjust.
2859 * infrun.c (proceed_to_finish): Delete.
2860 (clear_proceed_status): Adjust.
2861 (context_switch): Don't context-switch proceed_to_finish.
2862 (normal_stop, save_inferior_status, restore_inferior_status):
2863 Adjust.
2864
347bddb7
PA
28652008-09-08 Pedro Alves <pedro@codesourcery.com>
2866
2867 * inferior.h (stop_bpstat): Delete.
2868
2869 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
2870
2871 * breakpoint.c (bpstat_do_actions): Rename to ...
2872 (bpstat_do_actions_1): ... this. Make static. Change return type
2873 to int. Return true if a breakpoint proceeded.
2874 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
2875 (delete_breakpoint): Don't reference the global stop_bpstat; it's
2876 gone.
2877
2878 * gdbthread.h (struct thread_info): Add stop_bpstat.
2879 (save_infrun_state, load_infrun_state): Remove stop_bpstat
2880 argument.
2881 * thread.c (load_infrun_state, save_infrun_state): Remove
2882 stop_bpstat argument, and the code referencing it.
2883
2884 * infcall.c: Include "gdbthread.h".
2885 (call_function_by_hand): Adjust.
2886 * exceptions.c: Include "gdbthread.h".
2887 (throw_exception): Adjust.
2888 * infcmd.c (stop_bpstat): Delete.
2889 (continue_command): In all-stop, set the ignore count on the
2890 thread that reported the stop. In non-stop, set it on the current
2891 thread.
2892 (finish_command_continuation): Adjust.
2893 (program_info): Adjust.
2894 * infrun.c (clear_proceed_status): Adjust.
2895 (context_switch): Don't context-switch stop_bpstat.
2896 (handle_inferior_event): Adjust.
2897 (normal_stop): Adjust.
2898 (save_inferior_status, restore_inferior_status): Adjust.
2899
2900 * inf-loop.c (inferior_event_handler): Remove parameter to
2901 bpstat_do_actions call.
2902 * top.c (command_loop): Remove parameter to bpstat_do_actions
2903 call. Call it unconditionally.
2904 * event-top.c (command_handler): Ditto.
2905 * python/python.c (execute_gdb_command): Ditto.
2906
078130d0
PA
29072008-09-08 Pedro Alves <pedro@codesourcery.com>
2908
2909 * inferior.h (step_over_calls): Delete.
2910
2911 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
2912 step_over_calls argument.
2913 * thread.c (save_infrun_state, load_infrun_state): Remove
2914 step_over_calls argument. Adjust.
2915
2916 * infcmd.c (step_over_calls): Delete.
2917 (step_1): Adjust.
2918 * infrun.c (clear_proceed_status): Adjust.
2919 (context_switch): Don't context-switch step_over_calls.
2920 (handle_inferior_event, save_inferior_status)
2921 (restore_inferior_status): Adjust.
2922
4e1c45ea
PA
29232008-09-08 Pedro Alves <pedro@codesourcery.com>
2924
2925 Remove context switching in favour of accessing thread_info fields
2926 directly.
2927
2928 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
2929 Delete.
2930 (struct thread_stepping_state): Delete.
2931 (gtss, tss): Delete.
2932 (follow_inferior_reset_breakpoints, follow_exec)
2933 (resume, clear_proceed_status): Adjust.
2934 (prev_pc): Delete.
2935 (proceed, start_remote, init_wait_for_inferior): Adjust.
2936 (struct execution_control_state): Add event_thread member.
2937 (delete_step_resume_breakpoint_callback)
2938 (delete_step_thread_step_resume_breakpoint)
2939 (delete_step_thread_step_resume_breakpoint_cleanup)
2940 (delete_step_thread_step_resume_breakpoint): New.
2941 (wait_for_inferior, init_execution_control_state): Use
2942 delete_step_thread_step_resume_breakpoint_cleanup.
2943 (wait_for_inferior): Set the event_thread.
2944 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
2945 with delete_step_thread_step_resume_breakpoint.
2946 (init_thread_stepping_state): Change parameter type to
2947 thread_info. Adjust.
2948 (context_switch): Don't context switch prev_pc,
2949 stepping_over_breakpoint, step_resume_breakpoint,
2950 step_range_start, step_range_end, step_frame_id,
2951 tss->stepping_over_breakpoint,
2952 tss->stepping_through_solib_after_catch,
2953 tss->stepping_through_solib_catchpoints, tss->current_line, or
2954 tss->current_symtab.
2955 (adjust_pc_after_break, handle_inferior_event)
2956 (currently_stepping, step_into_function)
2957 (insert_step_resume_breakpoint_at_sal)
2958 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
2959 (clear_stepping_state): New.
2960 (normal_stop): Adjust.
2961 (save_inferior_status, restore_inferior_status): Adjust.
2962
2963 * gdbthread.h (struct thread_info): Comments describing the
2964 members moved here. Add step_after_step_resume_breakpoint.
2965 (delete_step_resume_breakpoint): Add thread_info argument.
2966 (save_infrun_state, load_infrun_state): Remove prev_pc,
2967 trap_expected, step_resume_breakpoint, step_range_start,
2968 step_range_end, step_frame_id, another_trap,
2969 stepping_through_solib_after_catch,
2970 stepping_through_solib_catchpoints, current_line and
2971 current_symtab function arguments.
2972 (inferior_thread): Declare.
2973
2974 * thread.c (inferior_thread): New.
2975 (delete_step_resume_breakpoint): Add a thread_info parameter and
2976 rewrite.
2977 (load_infrun_state, save_infrun_state): Remove prev_pc,
2978 trap_expected, step_resume_breakpoint, step_range_start,
2979 step_range_end, step_frame_id, stepping_over_breakpoint,
2980 stepping_through_solib_after_catch,
2981 stepping_through_solib_catchpoints, current_line and
2982 current_symtab args. Remove code referencing them.
2983
2984 * infcmd.c (step_range_start, step_range_end, step_frame_id):
2985 Delete.
2986 (step_1, step_once, until_next_command): Adjust.
2987
2988 * inferior.h (step_range_start, step_range_end, step_frame_id):
2989 Delete.
2990
2991 * linux-nat.c (linux_child_follow_fork): If following the child,
2992 move the step state to it. Adjust.
2993 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2994 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2995
757f359d
PA
29962008-09-08 Pedro Alves <pedro@codesourcery.com>
2997
2998 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2999 thread.
3000
0de3b513
PA
30012008-09-08 Pedro Alves <pedro@codesourcery.com>
3002
3003 * corelow.c (add_to_thread_list): If this is the first time we
3004 hear about thread info, update inferior_ptid.
3005 (core_open): Clear the thread list and set inferior_ptid before
3006 acknowledging a new inferior. Find threads before fetching
3007 register info. Give an upper target layer a chance to find and
3008 claim new threads. Print core generation and stop signal info
3009 after finding new threads.
3010 (get_core_register_section): Look at the lwp member of
3011 inferior_ptid for detecting if we have threads info, instead of
3012 the pid member.
3013 (core_pid_to_str): New.
3014 (init_core_ops): Register core_pid_to_str.
3015
4189d2f8
PA
30162008-09-08 Pedro Alves <pedro@codesourcery.com>
3017
3018 * spu-linux-nat.c (spu_child_post_startup_inferior)
3019 (spu_child_post_attach): Don't add the main thread here.
3020
617fd3b5
PA
30212008-09-08 Pedro Alves <pedro@codesourcery.com>
3022
3023 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3024
3025 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3026 seeing a thread id, extend the main thread's ptid. If we still
3027 have pending execs, don't be verbose about new threads.
3028 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3029 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3030 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3031 Adjust.
3032
2689673f
PA
30332008-09-08 Pedro Alves <pedro@codesourcery.com>
3034
3035 * procfs.c (to_attach): Create a procinfo for the current lwp.
3036 Add it to gdb's thread list.
3037 (procfs_fetch_registers, procfs_store_registers): Assume there's
3038 always an lwp.
3039 (procfs_wait): Don't add the main thread here.
3040 (procfs_init_inferior): Create a procinfo for the main lwp here.
3041 Change main thread's ptid with thread_change_ptid.
3042 (procfs_notice_thread): Check for exited threads.
3043 (procfs_corefile_thread_callback): Remove check for the main
3044 process.
3045 (procfs_make_note_section): Assume there is always a thread.
3046
3047 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3048 attaching. Change the main thread ptid with thread_change_ptid.
3049 (sol_thread_detach): Clear sol_thread_active.
3050 (sol_thread_wait): Check for exited threads.
3051 (sol_thread_create_inferior): Clear sol_thread_active before
3052 creating a new inferior. Change the main thread ptid with
3053 thread_change_ptid.
3054 (sol_thread_mourn_inferior): Clear sol_thread_active.
3055 (sol_find_new_threads_callback): Check for exited threads.
3056
62a93fa9
PA
30572008-09-08 Pedro Alves <pedro@codesourcery.com>
3058
3059 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3060 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3061 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3062 process, and return TARGET_WAITKIND_IGNORE.
3063
438ac09b
PA
30642008-09-08 Pedro Alves <pedro@codesourcery.com>
3065
3066 * inf-ttrace.c: Include <signal.h>
3067 (inf_ttrace_delete_dead_threads_callback): New.
3068 (inf_ttrace_resume_lwp): New.
3069 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3070 delete dying threads until they are really dead.
3071 (inf_ttrace_wait): After stopping the whole process, delete any
3072 dying thread that is really dead by now.
3073 (inf_ttrace_thread_alive): Return 1.
3074 (inf_ttrace_extra_thread_info): New.
3075 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3076
2935f27f
PA
30772008-09-08 Pedro Alves <pedro@codesourcery.com>
3078
3079 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3080 of the child fork.
3081 (inf_ttrace_attach): Add the main thread.
3082 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3083 for always a thread.
3084 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3085 using thread_change_ptid, and set its private data. Don't add the
3086 main thread here.
3087 (inf_ttrace_pid_to_str): Adjust.
3088
fb5e7258
PA
30892008-09-08 Pedro Alves <pedro@codesourcery.com>
3090
3091 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3092 thread_change_ptid. Check for exited threads.
3093 (bsd_uthread_find_new_threads): Check for exited threads.
3094
af990527
PA
30952008-09-08 Pedro Alves <pedro@codesourcery.com>
3096
3097 * inf-ptrace.c: Include "gdbthread.h".
3098 (inf_ptrace_attach): Add the main thread here.
3099 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3100 Decorate the main thread id with the lwp id.
3101
27c9d204
PA
31022008-09-08 Pedro Alves <pedro@codesourcery.com>
3103
3104 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3105 thread_change_ptid. Don't add or mark the main thread as running
3106 and executing here.
3107 * fork-child.c (fork_inferior): Add the main thread here.
3108
de9f48f0
JG
31092008-09-08 Jerome Guitton <guitton@adacore.com>
3110
3111 * rs6000-tdep.c (rs6000_fetch_instruction)
3112 (rs6000_skip_stack_check): New functions.
3113 (skip_prologue): Skip stack check sequence.
3114
52163a60
DD
31152008-09-08 David Daney <ddaney@avtrex.com>
3116
3117 * dummy-frame.h (frame.h): Include it.
3118 (struct frame_id): Remove declaration.
3119
87805e63
UW
31202008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3121
3122 * spu-tdep.c (spu_push_dummy_code): New function.
3123 (spu_gdbarch_init): Install it.
3124
0b1553bc
UW
31252008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3126
3127 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3128 instead of paddr_nz.
3129 * gdbarch.c: Regenerate.
3130
3131 * target.c (target_xfer_partial, debug_print_register): Use
3132 core_addr_to_string_nz instead of paddr_nz.
3133
2454a024
UW
31342008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3135
3136 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3137 *before* calling gdbarch_init_osabi.
3138 (rs6000_aix_init_osabi): Disable displaced stepping.
3139
b52323fa
UW
31402008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3141
3142 * target.c (update_current_target): Do not inherit to_open
3143 or to_close.
3144 (pop_target): Call target_close on target_stack instead
3145 of current_target.
3146 (pop_all_targets_above): Likewise.
3147
fead6908
UW
31482008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3149
3150 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3151 (gnuv3_print_method_ptr): Use it.
3152 (gnuv3_method_ptr_to_value): Likewise.
3153
60441ab9
UW
31542008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3155
3156 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3157 register_area callback function.
3158 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3159 Use it instead of current_gdbarch.
3160 * nto-procfs.c (procfs_store_registers): Update call.
3161
bb486190
UW
31622008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3163
3164 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3165 regcache architecture instead of current_gdbarch.
3166
9dacea90
UW
31672008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3168
3169 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3170 (check_for_saved): Use it instead of current_gdbarch.
3171 (is_arg_spill): Add gdbarch paramter. Use it instead
3172 of current_gdbarch.
3173 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3174 to is_arg_spill and check_for_saved.
3175 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3176
5db8bbe5
UW
31772008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3178
3179 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3180 instead of current_gdbarch.
3181
6ba38425
UW
31822008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3183
3184 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3185 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3186 Use it instead of current_gdbarch.
3187 (m68kbsd_supply_fpregset): Update call.
3188 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3189 (m68kbsd_collect_fpregset): Likewise.
3190
35488783
UW
31912008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3192
3193 * cris-tdep.c (cris_version, cris_mode): Remove.
3194 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3195 (cris_breakpoint_from_pc): Likewise.
3196 (cris_frame_unwind_cache): Use tdep->cris_version.
3197 (crisv32_scan_prologue): Likewise.
3198 (cris_spec_reg_applicable): Add gdbarch argument.
3199 Use tdep->cris_version.
3200 (cris_register_size, cris_special_register_name): Update calls.
3201 (cris_special_register_name): Add gdbarch argument.
3202 (cris_register_name, crisv32_register_name): Update calls.
3203
9dae60cc
UW
32042008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3205
3206 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3207 instead of current_gdbarch.
3208
3209 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3210 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3211 * sh-tdep.c (gdb_print_insn_sh): Remove.
3212 (sh_gdbarch_init): Install print_insn_sh directly.
3213
3214 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3215 from current_gdbarch.
3216 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3217 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3218 depending on mips_abi.
3219
24568a2c
UW
32202008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3221
3222 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3223 (smash_text_address): Likewise.
3224 * gdbarch.c, gdbarch.h: Regenerate.
3225
3226 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3227 * arch-utils.h (core_addr_identity): Likewise.
3228 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3229 (arm_smash_text_address): Likewise.
3230 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3231 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3232 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3233
3234 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3235 Use it instead of current_gdbarch.
3236
3237 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3238 arm_dwarf2_prev_register): Update calls.
3239 * m88k-tdep.c (m88k_unwind_pc): Update call.
3240
f7fd4728
UW
32412008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3242
3243 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3244 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3245 Call gdbarch_integer_to_address directly instead of converting
3246 to value and back. Update comment.
3247 (execute_stack_op): Update call site.
3248 * dwarf2loc.c (find_location_expression): Likewise.
3249 (locexpr_describe_location): Update
3250
3251 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3252 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3253 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3254 (dwarf2_loc_desc_needs_frame): Likewise.
3255
714835d5
UW
32562008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3257
3258 * breakpoint.h (struct bp_location): Change type of section
3259 member to "struct obj_section *".
3260 * tracepoint.h (struct tracepoint): Likewise.
3261 * symtab.h (struct general_symbol_info): Replace bfd_section
3262 member with obj_section.
3263 (struct symtab_and_line): Change type of section member to
3264 "struct obj_section *".
3265 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3266 (SYMBOL_OBJ_SECTION): ... this.
3267
3268 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3269 section as obj_section instead of bfd_section.
3270
3271 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3272 directly instead of looking of obj_section from bfd_section.
3273
3274 * objfiles.h (find_pc_sect_section): Remove.
3275 * objfiles.c (find_pc_sect_section): Remove.
3276 (find_pc_section): Inline find_pc_sect_section code.
3277
3278 * symfile.h (find_pc_overlay): Return struct obj_section *.
3279 (find_pc_mapped_section): Likewise.
3280 (section_is_overlay, section_is_mapped): Change type of section
3281 argument to struct obj_section *.
3282 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3283 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3284 (symbol_overlayed_address): Likewise.
3285 * symtab.h (symbol_overlayed_address): Likewise.
3286 * symfile.c (overlay_is_mapped): Remove.
3287 (section_is_mapped): Inline overlay_is_mapped code. Update.
3288 (overlay_invalidate_all): Update.
3289 (section_is_overlay): Change section argument to type
3290 "struct obj_section *". Use bfd_ methods.
3291 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3292 (pc_in_mapped_range): Likewise. Handle relocated sections.
3293 (sections_overlap): Likewise.
3294 (overlay_unmapped_address): Likewise.
3295 (overlay_mapped_address): Likewise.
3296 (symbol_overlayed_address): Likewise.
3297 (find_pc_overlay): Return struct obj_section *.
3298 (find_pc_mapped_section): Likewise.
3299 (list_overlays_command): Update.
3300 (map_overlay_command, unmap_overlay_command): Update.
3301 (simple_overlay_update): Update.
3302
3303 * block.h (blockvector_for_pc_sect): Change section argument
3304 to type "struct obj_section *".
3305 (block_for_pc_sect): Likewise.
3306 * block.c (blockvector_for_pc_sect): Change section argument
3307 to type "struct obj_section *".
3308 (block_for_pc_sect): Likewise.
3309 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3310 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3311 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3312 (matching_bfd_sections): Rename to ...
3313 (matching_obj_sections): ... this. Update argument types.
3314 * blockframe.c (find_pc_sect_function): Likewise.
3315 * breakpoint.c (describe_other_breakpoints): Likewise.
3316 (breakpoint_has_pc, check_duplicates_for): Likewise.
3317 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3318 (lookup_minimal_symbol_by_pc_section): Likewise.
3319 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3320 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3321 find_pc_sect_line, find_function_start_pc): Likewise.
3322 (matching_bfd_sections): Rename to ...
3323 (matching_obj_sections): ... this. Update argument types.
3324
3325 * blockframe.c (find_pc_partial_function): Update to section
3326 type changes. No longer call find_pc_sect_section.
3327 (cache_pc_function_section): Change to type "struct obj_section *".
3328 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3329 * exec.c (xfer_memory): Likewise.
3330 * findvar.c (read_var_value): Likewise.
3331 * infcmd.c (jump_command): Likewise.
3332 * linespec.c (minsym_found): Likewise.
3333 * maint.c (maintenance_translate_address): Likewise.
3334 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3335 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3336 * parse.c (write_exp_msymbol): Likewise.
3337 * printcmd.c (build_address_symbolic): Likewise.
3338 (address_info, sym_info): Likewise.
3339 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3340 * symtab.c (fixup_section): Likewise.
3341 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3342 (find_pc_line, find_function_start_sal): Likewise.
3343 * target.c (memory_xfer_partial): Likewise.
3344 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3345 * spu-tdep.c (spu_overlay_update): Likewise.
3346
623d3eb1
DE
33472008-09-04 Doug Evans <dje@google.com>
3348
3349 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3350 Change argument of pulongest from CORE_ADDR to ULONGEST.
3351 All callers updated.
3352 * utils.c (plongest): Renamed from paddr_d.
3353 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3354 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3355 `CORE_ADDR addr' arg of error message.
3356
8775bb90
MS
33572008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3358
3359 * ser-tcp.c (ser_tcp_send_break): New function.
3360 (_initialize_ser_tcp): Use ser_tcp_send_break.
3361 * ser-tcp.h (ser_tcp_send_break): New prototype.
3362
9ff3afda
UW
33632008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3364
3365 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3366 when allocating stack frame for inferior call.
3367
c4891da7
UW
33682008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3369
3370 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3371 SP or return address if we failed to find a valid frame.
3372
514f746b
AR
33732008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3374
3375 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3376 non-permanent breakpoints.
3377 (bpstat_stop_status): Change enable_state to bp_disabled only for
3378 non-permanent breakpoints.
3379 (bp_loc_is_permanent): New function.
3380 (create_breakpoint): Check if the location points to a permanent
3381 breakpoint and if it does, make breakpoint permanent.
3382 (update_breakpoint_locations): Make sure new locations of permanent
3383 breakpoints are properly initialized.
3384 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3385 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3386
a12654ce
PA
33872008-09-02 Pedro Alves <pedro@codesourcery.com>
3388
3389 * breakpoint.c (insert_breakpoints, update_global_location_list):
3390 Check breakpoints_always_inserted_mode instead of
3391 always_inserted_mode directly.
3392
8b7a6d61
AS
33932008-09-02 Andreas Schwab <schwab@suse.de>
3394
3395 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3396
d68209e4
JK
33972008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3398
3399 Stay compatible after the GCC PR fortran/29635 fix.
3400 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3401 (process_die <DW_TAG_imported_module>): Do not assert anything about
3402 these unsupported tags.
3403
ef4cb050
TT
34042008-08-29 Tom Tromey <tromey@redhat.com>
3405
3406 * maint.c (_initialize_maint_cmds): Fix typo.
3407
a683b3c0
TT
34082008-08-29 Tom Tromey <tromey@redhat.com>
3409
3410 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3411 obstack.
3412
3e88cf8d
UW
34132008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3414
3415 * remote.c: Include "gdb_stat.h".
3416
a45ae3ed
UW
34172008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3418
3419 * dummy-frame.h (dummy_frame_pop): Add prototype.
3420 * dummy-frame.c: Include "observer.h".
3421 (dummy_frame_push): Do not check for stale frames.
3422 (dummy_frame_pop): New function.
3423 (cleanup_dummy_frames): New function.
3424 (_initialize_dummy_frame): Install it as inferior_created observer.
3425
3426 * frame.h (struct frame_id): Update comments.
3427 (frame_id_inner): Remove prototype.
3428 * frame.c (frame_id_inner): Make static. Add comments.
3429 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3430 false positives for targets using non-contiguous stack ranges.
3431 (get_prev_frame_1): Update frame_id_inner safety net check.
3432 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3433
3434 * stack.c (return_command): Directly pop the selected frame.
3435 * infrun.c (handle_inferior_event): Remove dead code.
3436 * i386-tdep.c (i386_push_dummy_call): Update comment.
3437
879d1e6b
UW
34382008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3439
3440 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3441 breakpoint from shared library.
3442
97ec2c2f
UW
34432008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3444
3445 * solib-svr4.c (read_program_header): New function.
3446 (scan_dyntag_auxv): New function.
3447 (elf_locate_base): Use it if scan_dyntag fails.
3448 (find_program_interpreter): New function.
3449 (enable_break): Use it instead of .interp section.
3450
f1838a98
UW
34512008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3452
3453 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3454 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3455 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3456 remote_bfd_open): New functions.
3457 (remote_hostio_send_command): Fail safely if remote connection
3458 is not set up.
3459
3460 * solist.h (solib_open): Remove prototype.
3461 (solib_bfd_open): Add prototype.
3462 * solib.c: Include "remote.h".
3463 (solib_open): Remove, replace by ...
3464 (solib_bfd_open): ... this new function. Handle remote BFDs.
3465 (solib_map_sections): Replace solib_open by solib_bfd_open.
3466 * solib-frv.c: Include "exceptions.h".
3467 (enable_break2): Replace solib_open by solib_bfd_open.
3468 * solib-svr4.c: Include "exceptions.h".
3469 (enable_break): Replace solib_open by solib_bfd_open.
3470
3471 * symfile.c: Include "remote.h".
3472 (build_id_verify): Handle remote BFDs.
3473 (separate_debug_file_exists): Use BFD to access file. Handle
3474 remote BFDs.
3475 (symfile_bfd_open): Handle remote BFDs.
3476 (reread_symbols): Handle remote BFDs.
3477
3478 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3479
1cf3db46
UW
34802008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3481
3482 * gdbarch.sh (target_gdbarch): New global variable.
3483 (deprecated_current_gdbarch_select_hack): Set it.
3484 * gdbarch.c, gdbarch.h: Regenerate.
3485
3486 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3487 of current_gdbarch.
3488 * target-descriptions.c (target_find_description): Likewise.
3489 * arm-tdep.c (arm_update_current_architecture): Likewise.
3490 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3491 arm_show_force_mode): Likewise.
3492 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3493 show_mips_abi): Likewise.
3494 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3495
3496 * target.c (target_translate_tls_address): Use target_gdbarch
3497 instead of current_gdbarch.
3498 * remote.c (struct packet_reg): Likewise.
3499 (get_remote_arch_state, packet_reg_from_regnum,
3500 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3501 remote_address_masked, remote_insert_breakpoint,
3502 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3503 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3504 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3505 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3506
3507 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3508 solib_add, info_sharedlibrary_command, solib_address,
3509 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3510 solib_global_lookup): Likewise.
3511 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3512 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3513 Likewise.
3514 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3515 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3516 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3517 Likewise.
3518 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3519 nto_truncate_ptr): Likewise.
3520 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3521
6207416c
LM
35222008-08-26 Luis Machado <luisgpm@br.ibm.com>
3523
3524 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3525 (ppc_linux_vmx_regset_sections): New structure.
3526 (ppc_linux_fp_regset_sections): New structure.
3527 (ppc_linux_init_abi): Select core-file regset based on target
3528 features.
3529
0ff58721
UW
35302008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3531
3532 * target.c (debug_print_register): Use regcache_raw_collect
3533 instead of regcache_cooked_read. Only handle raw registers.
3534
6c5561f9
PA
35352008-08-25 Pedro Alves <pedro@codesourcery.com>
3536
3537 * cp-name-parser.y: Include config.h before system headers.
3538
ed0c3906
UW
35392008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3540
3541 * m88k-tdep.c: Update for unwinder changes.
3542
119ac181
TT
35432008-08-24 Tom Tromey <tromey@redhat.com>
3544
3545 * s390-tdep.c (s390_address_class_type_flags): Use
3546 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3547 (s390_address_class_type_flags_to_name): Likewise.
3548 (s390_address_class_name_to_type_flags): Likewise.
3549
803e1097
TT
35502008-08-24 Tom Tromey <tromey@redhat.com>
3551
3552 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3553 TYPE_FLAGS.
3554 * features/rs6000/powerpc-vsx32l.c
3555 (initialize_tdesc_powerpc_vsx32l): Update.
3556 * features/rs6000/powerpc-vsx32.c
3557 (initialize_tdesc_powerpc_vsx32): Update.
3558 * features/rs6000/powerpc-vsx64.c
3559 (initialize_tdesc_powerpc_vsx64): Update.
3560 * features/rs6000/powerpc-vsx64l.c
3561 (initialize_tdesc_powerpc_vsx64l): Update.
3562 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3563 TYPE_VECTOR, not TYPE_FLAGS.
3564
876cecd0
TT
35652008-08-24 Tom Tromey <tromey@redhat.com>
3566
3567 * xml-tdesc.c (tdesc_end_union): Update.
3568 * stabsread.c (define_symbol): Update.
3569 (read_type): Update.
3570 (read_struct_type): Update.
3571 (read_enum_type): Update.
3572 * spu-tdep.c (spu_builtin_type_vec128): Update.
3573 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3574 (sh_push_dummy_call_nofpu): Update.
3575 * mdebugread.c (parse_symbol): Update.
3576 (parse_symbol): Update.
3577 (parse_symbol): Update.
3578 (upgrade_type): Update.
3579 * jv-lang.c (java_lookup_class): Update.
3580 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3581 * i386-tdep.c (i386_mmx_type): Update.
3582 (i386_sse_type): Update.
3583 * gdbtypes.h (enum type_flag_value): New enum.
3584 (enum type_instance_flag_value): New enum.
3585 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3586 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3587 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3588 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3589 TYPE_FLAG_NOTTEXT): Now enum constants.
3590 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3591 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3592 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3593 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3594 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3595 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3596 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3597 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3598 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3599 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3600 TYPE_NOTTEXT): Update.
3601 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3602 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3603 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3604 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3605 TYPE_ADDRESS_CLASS_ALL): Update.
3606 (struct main_type) <flags>: Remove.
3607 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3608 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3609 flag_vector, flag_stub_supported, flag_nottext,
3610 flag_fixed_instance>: New fields.
3611 <nfields, vptr_fieldno>: Move earlier.
3612 (TYPE_FLAGS): Remove.
3613 * gdbtypes.c (make_pointer_type): Update.
3614 (address_space_name_to_int): Update.
3615 (address_space_int_to_name): Update.
3616 (make_type_with_address_space): Update.
3617 (make_cv_type): Update.
3618 (create_range_type): Update.
3619 (get_discrete_bounds): Update.
3620 (create_set_type): Update.
3621 (make_vector_type): Update.
3622 (smash_to_method_type): Update.
3623 (check_typedef): Update.
3624 (check_stub_method): Update.
3625 (init_type): Individually assign flag fields.
3626 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3627 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3628 (copy_type_recursive): Copy the entire main type. Don't use
3629 TYPE_FLAGS.
3630 * features/rs6000/powerpc-altivec64l.c
3631 (initialize_tdesc_powerpc_altivec64l): Update.
3632 * features/rs6000/powerpc-altivec64.c
3633 (initialize_tdesc_powerpc_altivec64): Update.
3634 * features/rs6000/powerpc-altivec32l.c
3635 (initialize_tdesc_powerpc_altivec32l): Update.
3636 * features/rs6000/powerpc-altivec32.c
3637 (initialize_tdesc_powerpc_altivec32): Update.
3638 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3639 Update.
3640 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3641 Update.
3642 * dwarf2read.c (read_structure_type): Update.
3643 (read_enumeration_type): Likewise.
3644 (process_enumeration_scope): Likewise.
3645 (read_tag_pointer_type): Likewise.
3646 (read_subroutine_type): Likewise.
3647 (read_subroutine_type): Likewise.
3648 (read_base_type): Likewise.
3649 * coffread.c (coff_read_enum_type): Update.
3650 * ada-valprint.c (adjust_type_signedness): Update.
3651 * ada-typeprint.c (print_record_field_types): Update.
3652 * ada-lang.c (packed_array_type): Update.
3653 (empty_record): Don't reset TYPE_FLAGS.
3654 (ada_template_to_fixed_record_type_1): Update.
3655 (ada_template_to_fixed_record_type_1): Likewise.
3656 (template_to_static_fixed_type): Likewise.
3657 (to_record_with_fixed_variant_part): Likewise.
3658 (to_fixed_record_type): Likewise.
3659 (to_fixed_array_type): Likewise.
3660 (to_static_fixed_type): Likewise.
3661
d4ce0d3f
TT
36622008-08-23 Jim Blandy <jimb@redhat.com>
3663
3664 PR macros/607:
3665 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3666 for the macro bcache.
3667
2e668a5d
TT
36682008-08-23 Tom Tromey <tromey@redhat.com>
3669
3670 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3671 (argc): Now 31 bits.
3672
75a2d5e7
TT
36732008-08-22 Tom Tromey <tromey@redhat.com>
3674
3675 * NEWS: Move macro entries back under "New commands".
3676
25db0f1b
UW
36772008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3678
3679 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3680 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3681 (create_overlay_event_breakpoint): Loop over all objfiles to install
3682 multiple instances of the overlay event breakpoint if present.
3683
0391f248
UW
36842008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3685
3686 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
3687 (info_spu_event_command): Command only supported on SPU architecture.
3688 (info_spu_signal_command): Likewise.
3689 (info_spu_mailbox_command): Likewise.
3690 (info_spu_dma_command): Likewise.
3691 (info_spu_proxydma_command): Likewise.
3692
24a73cce
UW
36932008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3694
3695 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
3696 if the thread has already exited.
3697
e0bb1c1c
PA
36982008-08-22 Pedro Alves <pedro@codesourcery.com>
3699
3700 * infrun.c (proceed): Move back setting previous_inferior_ptid
3701 from here ...
3702 (wait_for_inferior): ... to here.
3703 (fetch_inferior_event): ... and here.
3704
a3ecef73
UW
37052008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3706
3707 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
3708 (deprecated_current_gdbarch_select_hack): Call registers_changed
3709 instead of reinit_frame_cache.
3710 * gdbarch.c: Regenerate.
3711
45148c2e
UW
37122008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3713
3714 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
3715
6a94242b
DJ
37162008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3717
3718 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
3719
5045add0
UW
37202008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3721
3722 * findvar.c (locate_var_value): Do not call get_frame_arch
3723 with a NULL frame argument.
3724
029a67e4
UW
37252008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3726
3727 * frame.h (frame_map_regnum_to_name): Remove prototype.
3728 (frame_map_name_to_regnum): Remove prototype.
3729 * frame.c (frame_map_regnum_to_name): Remove.
3730 (frame_map_name_to_regnum): Remove.
3731 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
3732 instead of frame_map_regnum_to_name.
3733 * ax-gdb.c: Include "user-regs.h".
3734 (gen_expr): Use user_reg_map_name_to_regnum instead of
3735 frame_map_name_to_regnum.
3736 * eval.c: Include "user-regs.h".
3737 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
3738 instead of frame_map_name_to_regnum.
3739 * infcmd.c (registers_info): Likewise.
3740 * parse.c: Include "user-regs.h".
3741 (write_dollar_variable): Use user_reg_map_name_to_regnum
3742 instead of frame_map_name_to_regnum.
3743 * tracepoint.c: Include "user-regs.h".
3744 (encode_actions): Use user_reg_map_name_to_regnum
3745 instead of frame_map_name_to_regnum.
3746 * valops.c: Include "user-regs.h".
3747 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
3748 of frame_map_regnum_to_name.
3749
e84ee240
UW
37502008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
3751
3752 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
3753 and manually relocate .opd contents from BFD instead of reading
3754 them from target memory.
3755
0114d602
DJ
37562008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3757
3758 * dwarf2read.c (processing_current_prefix): Delete static
3759 variable.
3760 (process_full_comp_unit): Do not set processing_current_prefix.
3761 (dwarf2_full_name): New function.
3762 (read_func_scope): Do not set processing_current_prefix. Use
3763 determine_prefix.
3764 (read_structure_type): Do not set processing_current_prefix. Remove
3765 unused inner cleanup.
3766 (process_structure_scope): Do not set processing_current_prefix.
3767 (read_enumeration_type): Use dwarf2_full_name.
3768 (determine_class_name): Return a const char *. Put the result
3769 on the objfile obstack. Use dwarf2_full_name.
3770 (read_namespace_type): New function.
3771 (read_namespace): Do not create the type here. Use
3772 determine_prefix.
3773 (read_typedef): Use dwarf2_full_name. Do not pass the name
3774 to init_type.
3775 (read_base_type): Do not pass the name to init_type. Handle
3776 TYPE_FLAG_NOSIGN.
3777 (read_unspecified_type): Do not pass the name to init_type.
3778 (new_symbol): Use dwarf2_full_name instead of
3779 processing_current_prefix.
3780 (read_type_die): Do not set processing_current_prefix. Handle
3781 DW_TAG_namespace.
3782 (determine_prefix): Handle specifications. Return the result
3783 on the objfile obstack. Handle unions correctly.
3784
df8a16a1
DJ
37852008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3786
3787 * buildsym.c (add_symbol_to_list): Do not call
3788 cp_scan_for_anonymous_namespaces here.
3789 (finish_block): Do not call cp_set_block_scope here.
3790 * cp-namespace.c (processing_has_namespace_info)
3791 (processing_current_prefix): Delete.
3792 (cp_initialize_namespace): Do not initialize
3793 processing_has_namespace_info.
3794 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
3795 not check processing_has_namespace_info.
3796 (cp_set_block_scope): Take prefix and namespace info flag as
3797 arguments. Honor namespaces regardless of a demangled name.
3798 * cp-support.h (processing_has_namespace_info)
3799 (processing_current_prefix): Delete declarations.
3800 (cp_set_block_scope): Update prototype.
3801 * dwarf2read.c (processing_has_namespace_info)
3802 (processing_current_prefix): New static variables.
3803 (read_file_scope): Initialize processing_has_namespace_info.
3804 (read_func_scope): Call cp_set_block_scope for C++.
3805 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
3806 * symtab.c (symbol_demangled_name): Accept a const argument.
3807 * symtab.h (symbol_demangled_name): Update prototype.
3808
3567439c
DJ
38092008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3810
3811 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
3812 * blockframe.c (find_pc_partial_function): Likewise.
3813 * buildsym.c (find_symbol_in_list): Likewise.
3814 * c-valprint.c (c_val_print): Likewise.
3815 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
3816 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
3817 * cp-support.c (cp_remove_params): Renamed from remove_params and
3818 made global.
3819 (overload_list_add_symbol): Update call to remove_params.
3820 * cp-support.h (cp_remove_params): Declare.
3821 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
3822 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
3823 * expprint.c (dump_subexp_body_standard): Likewise.
3824 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
3825 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
3826 for messages.
3827 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
3828 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3829 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3830 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
3831 symbols and SYMBOL_PRINT_NAME for messages.
3832 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3833 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
3834 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
3835 SYMBOL_SET_LINKAGE_NAME.
3836 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
3837 * minsyms.c (add_minsym_to_demangled_hash_table): Use
3838 SYMBOL_SEARCH_NAME.
3839 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
3840 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
3841 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
3842 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
3843 (address_info): Use SYMBOL_PRINT_NAME for messages and
3844 SYMBOL_LINKAGE_NAME for lookups.
3845 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
3846 * stabsread.c (patch_block_stabs, define_symbol)
3847 (read_type, read_enum_type, common_block_end)
3848 (cleanup_undefined_types_1, scan_file_globals): Use
3849 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
3850 and SYMBOL_PRINT_NAME.
3851 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
3852 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
3853 cp_remove_params instead of cplus_demangle.
3854 (print_block_frame_labels, print_frame_arg_vars): Use
3855 SYMBOL_LINKAGE_NAME.
3856 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
3857 SYMBOL_LINKAGE_NAME.
3858 (dump_symtab_1, print_symbol, print_partial_symbols)
3859 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
3860 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
3861 (SYMBOL_SET_LINKAGE_NAME): New.
3862 (SYMBOL_SET_NAMES): Add a comment.
3863 * tracepoint.c (set_traceframe_context, validate_actionline)
3864 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
3865 lookups and SYMBOL_PRINT_NAME for output.
3866 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
3867 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
3868
aded6f54
PA
38692008-08-21 Pedro Alves <pedro@codesourcery.com>
3870
3871 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
3872 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
3873 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
3874 obj_section_addr and obj_section_endaddr.
3875 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
3876 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
3877 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
3878 (find_extant_func_descr): Likewise.
3879 * solib-frv.c (frv_relocate_main_executable): Use
3880 obj_section_addr.
3881 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
3882 obj_section_addr and obj_section_endaddr.
3883
158c7665
PH
38842008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
3885
3886 * NEWS: Amplify last entry on boolean types in Ada.
3887
f2f0e013
DJ
38882008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3889
3890 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
3891 Make the dwarf2_cu * parameter output as well as input. Update it if
3892 we follow a reference to another CU.
3893 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
3894 (die_type, die_containing_type): Update calls to changed functions.
3895 Use the returned CU along with the returned DIE.
3896 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
3897
03dd20cc
DJ
38982008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3899
3900 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
3901 in the DIEs here.
3902 (process_queue): Do not read in the DIEs here.
3903 (psymtab_to_symtab_1): Update call to queue_comp_unit.
3904 (read_full_die): Do not call queue_comp_unit from here.
3905 (maybe_queue_comp_unit): New function.
3906 (follow_die_ref): Use it.
3907
b60c80d6
DJ
39082008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3909
3910 * dwarf2read.c (struct attribute): Move earlier.
3911 (struct die_info): Change attrs to a trailing array.
3912 (dwarf_alloc_die): Take the number of attributes. Allocate space
3913 for them.
3914 (read_full_die): Update call to dwarf_alloc_die. Do not manually
3915 allocate attributes.
3916
51545339
DJ
39172008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3918
3919 * dwarf2read.c (REF_HASH_SIZE): Delete.
3920 (struct dwarf2_cu): Replace die_ref_table with die_hash.
3921 (struct die_info): Remove next_ref.
3922 (store_in_ref_table): Remove offset argument. Rewrite to use
3923 htab_find_slot_with_hash.
3924 (die_hash, die_eq): New.
3925 (read_comp_unit): Allocate the die_hash.
3926 (read_die_and_children): Update call to store_die_ref.
3927 (follow_die_ref): Rewrite to use htab_find_with_hash.
3928
7475d072
DJ
39292008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3930
3931 * dwarf2read.c (free_die_list, copy_die): Delete.
3932 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
3933 on the obstack.
3934 (read_full_die): Update call to dwarf_alloc_die. Allocate
3935 attributes on the CU obstack.
3936 (free_one_comp_unit): Do not call free_die_list.
3937
1d325ec1
DJ
39382008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
3939
3940 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
3941 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
3942 sibling list.
3943 (read_full_die): Do not allocate DIEs for abbrev 0.
3944 (follow_die_ref): Correct error message.
3945
b96e2927
PA
39462008-08-20 Pedro Alves <pedro@codesourcery.com>
3947
3948 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
3949 there are no symbols loaded, instead of throwing a generic error.
3950 (decode_variable): Likewise.
3951
f1f6aadf
PA
39522008-08-20 Pedro Alves <pedro@codesourcery.com>
3953
3954 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
3955 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
3956 macros.
3957 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
3958 and offset. Use size_t instead of unsigned long.
3959 (build_objfile_section_table): Use size_t instead of unsigned
3960 long.
3961 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
3962 gone.
3963 (find_pc_sect_section): Use obj_section_addr and
3964 obj_section_endaddr.
3965 * symfile.c (symfile.c): Remove code that maps sections
3966 offsets in "addr" to the object's sections.
3967 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
3968 * gcore.c (gcore_create_callback): Use obj_section_addr and
3969 obj_section_endaddr.
3970 * maint.c (print_objfile_section_info): Likewise.
3971 * printcmd.c (sym_info): Use obj_section_addr and
3972 obj_section_endaddr.
3973 * symtab.c (fixup_section): Likewise.
3974
3923a2b2
MK
39752008-08-20 Mark Kettenis <kettenis@gnu.org>
3976
3977 * sparc-tdep.c: Make some comments catch up with reality.
3978
b3eb342c
VP
39792008-08-20 Vladimir Prus <vladimir@codesourcery.com>
3980
3981 * NEWS: Mention 'set target-async'
3982
7f7efbd9
VP
39832008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3984
3985 * infrun.c (resume): If the thread is placed to the deferred step
3986 queue, mark it as running.
3987
9908b566
VP
39882008-08-19 Vladimir Prus <vladimir@codesourcery.com>
3989
3990 Make sure target supports non-stop.
3991 * infcmd.c (run_command_1, attach_command): If non-stop mode
3992 is requested, verify the target supports it.
3993 * linux-nat.c (linux_nat_supports_non_stop): New.
3994 (linux_nat_add_target): Register the above.
3995 * target.c (find_default_supports_non_stop)
3996 (target_supports_non_stop): New.
3997 (init_dummy_target): Register find_default_supports_non_stop.
3998 * target.h (struct target_ops): New field to_supports_non_stop.
3999 (target_supports_non_stop): New.
4000
c6ebd6cf
VP
40012008-08-19 Pedro Alves <pedro@codesourcery.com>
4002 Vladimir Prus <vladimir@codesourcery.com>
4003
4004 * target.c (target_async_permitted, target_async_permitted_1)
4005 (set_maintenance_target_async_permitted)
4006 (show_maintenance_target_async_permitted): New.
4007 (initialize_targets): Register 'set target-async'.
4008 * target.h (target_async_permitted): Declare.
4009 * linux-nat.c (linux_nat_async_enabled)
4010 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4011 (show_maintenance_linux_async_permitted): Remove.
4012 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4013 (get_pending_events, linux_nat_async): Use target_async_permitted.
4014 (linux_nat_set_async_mode): Remove, moving the only used bits
4015 into...
4016 (linux_nat_setup_async): This.
4017 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4018 Use linux_nat_setup_async.
4019 * remote.c (remote_async_permitted, remote_async_permitted_set)
4020 (set_maintenance_remote_async_permitted)
4021 (show_maintenance_remote_async_permitted): Remove.
4022 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4023 (remote_is_async_p): Use target_async_permitted.
4024 (_initialize_remote): Don't register 'main set remote-async'.
4025 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4026 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4027 * mi/mi-main.c (mi_cmd_list_target_features): New.
4028
073120b9
VP
40292008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4030
4031 * target.c (maybe_kill_then_attach)
4032 (maybe_kill_then_create_inferior): Remove.
4033 (update_current_target): Do not default to_attach,
4034 to_create_inferiour, to_is_async_p.
4035
690cc4eb 40362008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
4037
4038 Changes for supporting boolean types in debugging data.
690cc4eb
PH
4039 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4040 API to return LONGEST values rather than struct values.
4041 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4042 and discrete_type_high_bound.
4043 (to_fixed_range_type): Create a range type in cases where
4044 argument is base type and its limits are representable as ints.
4045 (ada_is_modular_type): Correct so that base type must be integral.
4046 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4047 keywords when they appear alone, since we are phasing out
bfb8797a 4048 direct representation of these identifiers in debugging data.
690cc4eb
PH
4049 * ada-exp.y: Define 'true' and 'false' as primaries.
4050 (type_boolean): New function.
4051 (type_int,type_long,type_long_long,type_floattype_double)
4052 (type_long_double): Remove uses of current_gdbarch for consistency
4053 with type_boolean.
4054 (write_int): Change comment to indicate that it might write boolean
4055 constant as well.
4056 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4057 type, since will no longer be represented as enumerated type in
4058 debugging data.
4059 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4060 as well.
bfb8797a
PH
4061 * NEWS: Note support boolean types.
4062
39540081
PA
40632008-08-18 Pedro Alves <pedro@codesourcery.com>
4064
4065 * bsd-uthread.c (bsd_uthread_close): New.
4066 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4067 target.
4068 (bsd_uthread_solib_loaded): Fix typo.
4069 (bsd_uthread_target): Register bsd_uthread_close.
4070
87ab71f0
PA
40712008-08-18 Pedro Alves <pedro@codesourcery.com>
4072
4073 * corelow.c (core_open): Assume there was no upper layer left
4074 behind from a previous inferior.
4075 * target.c (pop_all_targets): Rename to ...
4076 (pop_all_targets_above): ... this. Add a target stratum
4077 parameter. Use it instead of hardcoding the dummy_stratum.
4078 (pop_all_targets): New, defer to pop_all_targets_above.
4079 (target_preopen): Use pop_all_targets_above.
4080 * target.h (pop_all_targets_above): Declare.
4081
5231c1fd
PA
40822008-08-18 Pedro Alves <pedro@codesourcery.com>
4083
4084 * gdbthread.h (thread_change_ptid): Declare.
4085 * infrun.c (infrun_thread_ptid_changed): New.
4086 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4087 thread_ptid_changed observer.
4088 * regcache.c (regcache_thread_ptid_changed): New.
4089 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4090 thread_ptid_changed observer.
4091 * thread.c (thread_change_ptid): New.
4092
f98dfd4b
TT
40932008-08-18 Tom Tromey <tromey@redhat.com>
4094
4095 * symfile.c (reread_symbols): Update.
4096 * solib-sunos.c (allocate_rt_common_objfile): Update.
4097 * objfiles.c (allocate_objfile): Update.
4098 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4099 Remove.
4100
d87ecdfb
TT
41012008-08-18 Tom Tromey <tromey@redhat.com>
4102
4103 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4104 obstack.
4105
46a9b8ed
DJ
41062008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4107
4108 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4109 lr_register.
4110 (rs6000_in_function_epilogue_p): Check for bctr.
4111 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4112 number. Set gpr_mask and used_bl. Continue scanning while some
4113 expected registers are not saved. Set lr_register if LR is not
4114 stored.
4115 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4116
44feb3ce
TT
41172008-08-17 Tom Tromey <tromey@redhat.com>
4118
4119 PR gdb/1535:
4120 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4121 (ep_find_event_name_end): Remove.
4122 (catch_fork_temporary, catch_vfork_temporary,
4123 catch_fork_permanent, catch_vfork_permanent): New constants.
4124 (catch_vfork, catch_fork): Remove.
4125 (catch_fork_command_1): Add 'command' argument. Remove
4126 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4127 all cases.
4128 (catch_exec_command_1): Add 'command' argument; remove
4129 'tempflag'. Handle NULL 'arg'.
4130 (catch_load_command_1): Likewise.
4131 (catch_unload_command_1): Likewise.
4132 (catch_ada_exception_command): Likewise.
4133 (catch_assert_command): Likewise.
4134 (catch_catch_command): New function.
4135 (catch_throw_command): Likewise.
4136 (catch_command_1): Remove.
4137 (catch_command): Just call error.
4138 (tcatch_command): Likewise.
4139 (catch_cmdlist): New global.
4140 (tcatch_cmdlist): Likewise.
4141 (add_catch_command): New function.
4142 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4143 commands. Create all catch sub-commands.
4144
0d6431e2
PA
41452008-08-17 Pedro Alves <pedro@codesourcery.com>
4146
4147 * gdbthread.h: Add comments.
4148 * stack.c (get_selected_block): Return 0 on an exited thread.
4149 * top.c (execute_command): Check for is_stopped, not !is_running.
4150 * event-top.c (command_handler): Likewise.
4151
8931f526
PA
41522008-08-16 Pedro Alves <pedro@codesourcery.com>
4153
4154 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4155 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4156 (mi_cmd_exec_finish): Remove "return".
4157
aa76d38d
PA
41582008-08-16 Pedro Alves <pedro@codesourcery.com>
4159
4160 * target.h (pop_all_targets): Declare.
4161 * target.c (pop_all_targets): New.
4162 * top.c (quit_target): Pop all targets instead of just closing the
4163 current.
4164
311a4e6b
TJB
41652008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4166 Thiago Jung Bauermann <bauerman@br.ibm.com>
4167
4168 * cli-script.c (read_next_line): Add parse_commands argument.
4169 (recurse_read_control_structure): Adapt to new read_next_line
4170 signature.
4171 (read_command_lines): Add parse_commands argument.
4172 (define_command): Adapt to new read_command_lines signature.
4173 (document_command): Likewise.
4174 * breakpoint.c (commands_command): Likewise.
4175 * defs.h (read_command_lines): Adjust function prototype.
4176
24209737
PH
41772008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4178
4179 * ada-lang.c (pos_atr): Account for the possibility that the
4180 argument may be a reference.
4181
9f1d5432
PH
41822008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4183
4184 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4185 ('F' format) for @FIX names generated by the loader, retaining only
4186 the minimal symbols (and no partial symbol tables) for these names.
4187 Fixes warning messages about symbols that are found in partial
4188 symbol tables, but not full symbol tables.
4189
83c265ab
PA
41902008-08-16 Pedro Alves <pedro@codesourcery.com>
4191
4192 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4193 stopping quietly.
4194
604c2f83
LM
41952008-08-15 Luis Machado <luisgpm@br.ibm.com>
4196
4197 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4198 Include "features/rs6000/powerpc-vsx64.c".
4199 (ppc_supply_vsxregset): New function.
4200 (ppc_collect_vsxregset): New function.
4201 (IS_VSX_PSEUDOREG): New macro.
4202 (IS_EFP_PSEUDOREG): New macro.
4203 (vsx_register_p): New function.
4204 (ppc_vsx_support_p): New function.
4205 (rs6000_builtin_type_vec128): New function.
4206 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4207 correct names for VSX registers and EFPR registers.
4208 (rs6000_pseudo_register_type): Return correct types for VSX
4209 and EFPR registers.
4210 (rs6000_pseudo_register_reggroup_p): Return correct group for
4211 VSX and EFPR registers.
4212 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4213 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4214 (vsx_pseudo_register_read): New function.
4215 (vsx_pseudo_register_write): New function.
4216 (efpr_pseudo_register_read): New function.
4217 (efpr_pseudo_register_write): New function.
4218 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4219 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4220 (rs6000_gdbarch_init): Declare have_vsx.
4221 Initialize new upper half VSX registers.
4222 Initialize VSX-related and EFPR-related pseudo-registers variables.
4223 Adjust the number of pseudo registers accordingly.
4224
4225 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4226 and SIZEOF_VSRREGS.
4227 (gdb_vsxregset_t): New type.
4228 (have_ptrace_getsetvsxregs): New variable.
4229 (fetch_vsx_register): New function.
4230 (fetch_register): Handle VSX registers.
4231 (fetch_vsx_registers): New function.
4232 (fetch_ppc_registers): Handle VSX registers.
4233 (store_ppc_registers): Handle VSX registers.
4234 (store_vsx_register): New function.
4235 (store_register): Handle VSX registers.
4236 (store_vsx_registers): New function.
4237 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4238 (gdb_vsxregset_t): New type.
4239 (supply_vsxregset): New function.
4240 (fill_vsxregset): New function.
4241
4242 * ppc-tdep.h (vsx_register_p): New prototype.
4243 (vsx_support_p): New prototype.
4244 (ppc_vsr0_regnum): New variable.
4245 (ppc_vsr0_upper_regnum): Likewise.
4246 (ppc_efpr0_regnum): Likewise.
4247 (ppc_builtin_type_vec128): New type.
4248 (ppc_num_vsrs): New constant.
4249 (ppc_num_vshrs): New constant.
4250 (ppc_num_efprs): Likewise.
4251 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4252 (ppc_supply_vsxregset): New prototype.
4253 (ppc_collect_vsxregset): New prototype.
4254
4255 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4256 Include "features/rs6000/powerpc-vsx64l.c".
4257 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4258 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4259 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4260 (ppc_linux_regset_from_core_section): Handle VSX core section.
4261 (ppc_linux_core_read_description): Support VSX-enabled core files.
4262
4263 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4264 Declare tdesc_powerpc_vsx64l
4265
4266 * corelow.c (get_core_register_section): Support VSX-enabled
4267 core files.
4268
4269 * features/rs6000/power-vsx.xml: New VSX descriptions.
4270 * features/rs6000/powerpc-vsx32.xml: New file.
4271 * features/rs6000/powerpc-vsx32l.xml: New file.
4272 * features/rs6000/powerpc-vsx64.xml: New file.
4273 * features/rs6000/powerpc-vsx64l.xml: New file.
4274 * features/rs6000/powerpc-vsx32.c: New file (generated).
4275 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4276 * features/rs6000/powerpc-vsx64.c: New file (generated).
4277 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4278 * features/Makefile: Updated with new descriptions.
4279 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4280 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4281
dde7c0a9
VP
42822008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4283
4284 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4285 call linux_target twice.
4286
ebd67d87
AR
42872008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4288
4289 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4290 solib-svr4.c
4291 (LM_ADDR): Use l_addr if available; if not, use link map and set
4292 l_addr.
4293
886a217c
TT
42942008-08-14 Tom Tromey <tromey@redhat.com>
4295
4296 * macrocmd.c (macro_define_command): Check for NULL argument.
4297 (macro_undef_command): Likewise.
4298
3d488bfc
PA
42992008-08-14 Pedro Alves <pedro@codesourcery.com>
4300
4301 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4302
33e5cbd6
PA
43032008-08-13 Pedro Alves <pedro@codesourcery.com>
4304
4305 * breakpoint.c (always_inserted_auto, always_inserted_on)
4306 (always_inserted_off, always_inserted_enums): New.
4307 (always_inserted_mode): Change type to char* and point to
4308 always_inserted_auto.
4309 (show_always_inserted_mode): In auto mode, also show the current
4310 effect of the option.
4311 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4312 (_initialize_breakpoint): Make the "set breakpoints
4313 always-inserted" command an enum command. Extend help to describe
4314 the auto mode.
4315
8fbde58b
UW
43162008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4317
4318 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4319 query valid) bit. Ignore bits outside the condition field.
4320 (info_spu_proxydma_command): Ignore bits outside the field.
4321
11fa8e43
MS
43222008-08-12 Michael Snyder <msnyder@vmware.com>
4323
4324 * MAINTAINERS: Update my email address.
4325
fcb09a75
UW
43262008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4327
4328 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4329
a6f3e723
SL
43302008-08-12 Pedro Alves <pedro@codesourcery.com>
4331
4332 Add no-ack mode to the remote protocol --- optionally stop ACKing
4333 packets and responses when we have a reliable communication
4334 medium.
4335
4336 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4337
4338 * remote.c (struct remote_state): Add noack_mode field.
4339 (PACKET_QStartNoAckMode): New.
4340 (remote_start_remote): Don't any outstanding packet here.
4341 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4342 here. Activate noack mode if requested.
4343 (remote_protocol_features): Add QStartNoAckMode.
4344 (remote_open_1):
4345 (putpkt_binary): Don't send ack in noack mode.
4346 (read_frame): Don't recompute the checksum in noack mode.
4347 (getpkt_sane): Skip sending ack if in noack mode.
4348 (_initialize_remote): Add set/show remote noack mode.
4349 * NEWS: Note the new features.
4350
8ab3d180
KB
43512008-08-11 Kevin Buettner <kevinb@redhat.com>
4352
4353 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4354 New macros.
4355 (rs6000_skip_main_prologue): New function.
4356 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4357
63a61bf6
SL
43582008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4359
4360 * MAINTAINERS (Write After Approval): Add self.
4361
9d4fde75
SS
43622008-08-11 Stan Shebs <stan@codesourcery.com>
4363
4364 ARM BE8 support.
4365 * disasm.c (gdb_disassemble_info): Set endian_code.
4366 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4367 * gdbarch.h, gdbarch.c: Regenerate.
4368 * arch-utils.c (initialize_current_architecture): Set the
4369 default byte_order_for_code.
4370 (gdbarch_info_init): Ditto.
4371 (gdbarch_info_fill): Ditto.
4372 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4373 (thumb_analyze_prologue): Swap halfword if code endianness is
4374 different from general endianness.
4375 (arm_skip_prologue): Similarly.
4376 (arm_scan_prologue): Ditto.
4377 (thumb_get_next_pc): Ditto.
4378 (arm_get_next_pc): Ditto.
4379 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4380 choose correct endianness for breakpoints.
4381
6c613132
PA
43822008-08-10 Pedro Alves <pedro@codesourcery.com>
4383
4384 * bsd-kvm.c: Include "gdbthread.h".
4385 (bsd_kvm_ptid): New.
4386 (bsd_kvm_open): Add a main thread.
4387 (bsd_kvm_close): Delete it.
4388 (bsd_kvm_thread_alive): New.
4389 (bsd_kvm_pid_to_str): New.
4390 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4391 bsd_kvm_pid_to_str.
4392 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4393
6eb7ee03
PA
43942008-08-09 Pedro Alves <pedro@codesourcery.com>
4395
4396 * buildsym.c (start_subfile): Properly cast sentinel in concat
4397 call.
4398 * cp-name-parser.y: Include "config.h".
4399 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4400 concat call.
4401 * gdb_select.h: Include sys/time.h if sys/select.h is not
4402 available.
4403
444c3224
PA
44042008-08-09 Pedro Alves <pedro@codesourcery.com>
4405
4406 * go32-nat.c: Include "gdbthread.h".
4407 (go32_stop, go32_kill_inferior): Delete the main thread.
4408 (go32_create_inferior): Add it.
4409 (go32_thread_alive, go32_pid_to_str): New.
4410 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4411
9d0b3624
PA
44122008-08-09 Pedro Alves <pedro@codesourcery.com>
4413
4414 * go32-nat.c (fetch_register, store_register): Pass the regcache
4415 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4416 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4417 (struct seg_descr, struct seg_descr): pack the whole struct
4418 instead of each member individually.
4419
509238d6
AS
44202008-08-09 Andreas Schwab <schwab@suse.de>
4421
4422 * python/python.c (_initialize_python): Use unabbreviated commands
4423 in prefix name.
4424
c068b4e8
DJ
44252008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4426
4427 * Makefile.in (stamp-h): Also create .deps.
4428
21374e5f
TT
44292008-08-09 Tom Tromey <tromey@redhat.com>
4430
4431 * Makefile.in (generated_files): Add GNULIB_H.
4432
7be67755
DA
44332008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4434
4435 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4436 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4437 Revise comment.
4438 (pa64_current_sos): Remove map private warning warning.
4439 * solib-som.c: Include string.h and sys/utsname.h.
4440 (get_hpux_major_release): New function.
4441 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4442 about shared library private mapping on HP-UX 11 and later. Only force
4443 private mapping of shared libraries on HP-UX 10 and earlier.
4444 (link_map_start): Delete warning.
4445
e0c62198
L
44462008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4447 H.J. Lu <hongjiu.lu@intel.com>
4448 Mark Kettenis <kettenis@gnu.org>
4449
4450 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4451 (amd64_init_frame_cache): Initialize saved_sp_reg.
4452 (amd64_analyze_stack_align): New.
4453 (amd64_analyze_prologue): Call it.
4454 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4455 %rip to 8 when halfway aligning the stack.
4456
4457 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4458 AMD64_R14_REGNUM.
4459
4460 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4461 saved_sp_reg.
4462 (i386_alloc_frame_cache): Remove stack_align. Initialize
4463 saved_sp_reg to -1.
4464 (i386_analyze_stack_align): Rewrite.
4465 (i386_frame_cache): Use saved_sp_reg if it is valid.
4466
b9db4ced
UW
44672008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4468
4469 * target.c: Include "solib.h".
4470 (target_pre_inferior): Call no_shared_libraries.
4471 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4472 or clear_solib.
4473 (attach_command): Do not call clear_solib.
4474
3979a37f
MK
44752008-08-09 Mark Kettenis <kettenis@gnu.org>
4476
4477 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4478 the %eip register.
4479
2b26d9fa
TT
44802008-08-08 Tom Tromey <tromey@redhat.com>
4481
4482 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4483 POSTCOMPILE.
4484 (python-utils.o): Likewise.
4485
f1648876
AS
44862008-08-08 Andreas Schwab <schwab@suse.de>
4487
4488 * corefile.c (_initialize_core): Remove spurious paren from set
4489 gnutarget doc string.
4490
b7622095
LM
44912008-08-08 Luis Machado <luisgpm@br.ibm.com>
4492
4493 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4494 Define PPC_FEATURE_BOOKE.
b7622095
LM
4495 (ppc_linux_get_hwcap): New function.
4496 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4497 4-bytes alignment restrictions.
4498 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4499 positioning of the read/write flags.
4500 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4501 4-bytes alignment.
4502
2dc38344
PA
45032008-08-08 Pedro Alves <pedro@codesourcery.com>
4504
4505 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4506
4507 * win32-nat.c (win32_add_thread): Change thread argument type to
4508 ptid_t. Adjust.
4509 (win32_add_thread): Adjust.
4510 (win32_delete_thread): Change thread argument type to ptid_t.
4511 Adjust.
4512 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4513 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4514 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4515 (init_win32_ops): Put to_magic last.
4516 (win32_win32_thread_alive): Adjust.
4517
4d6c6261
PA
45182008-08-08 Pedro Alves <pedro@codesourcery.com>
4519
4520 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4521 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4522
e5ef4d75
PA
45232008-08-08 Pedro Alves <pedro@codesourcery.com>
4524
4525 * remote-m32r-sdi.c: Include "gdbthread.h".
4526 (remote_m32r_ptid): New.
4527 (m32r_close): Delete the main thread.
4528 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4529 main thread.
4530 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4531 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4532
a417dc56
RW
45332008-08-07 Tom Tromey <tromey@redhat.com>
4534 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4535
4536 * aclocal.m4, configure: Rebuild.
4537 * configure.in: Call ZW_CREATE_DEPDIR,
4538 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4539 (MAKE, GMAKE): New substs.
4540 * acinclude.m4: Include depstand.m4.
4541 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4542 COMPILE, POSTCOMPILE, depcomp): New variables.
4543 Remove all _h variables.
4544 Remove many .o targets.
4545 ($(srcdir)/copying.c): avoid backslash-newline after comment
4546 sign (@maintainer_mode_true@).
4547 (HFILES_NO_SRCDIR): Regenerate.
4548 (generated_files): New variable.
4549 (all_gdbtk_cflags): Likewise.
4550 (.c.o): Rewrote.
4551 (init.o, version.o, copying.o): Remove.
4552 (distclean): Remove DEPDIR.
4553 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4554 printcmd.o, procfs.o, v850ice.o): Rewrite.
4555 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4556 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4557 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4558 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4559 gdbtk-wrapper.o): Likewise.
4560 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4561 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4562 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4563 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4564 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4565 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4566 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4567 tui-wingeneral.o, tui-winsource.o): Likewise.
4568 (all_object_files): New variable.
4569 ($(all_object_files)): New target.
4570 Include dependency files, when using GNU Make.
4571
12ab8a60
UW
45722008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4573
4574 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4575 the valid bit set. Ensure display order respects partial
4576 order defined by dependency bits.
4577
6536cc32
DA
45782008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4579
4580 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4581 setup.
4582
f73a15e4
MK
45832008-08-06 Mark Kettenis <kettenis@gnu.org>
4584
4585 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4586 OpenBSD 4.3.
4587
d57a3c85
TJB
45882008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4589 Tom Tromey <tromey@redhat.com>
4590 Thiago Jung Bauermann <bauerman@br.ibm.com>
4591 Doug Evans <dje@google.com>
4592
4593 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4594 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4595 PYTHON_CFLAGS): New.
4596 (python_h, python_internal_h): New.
4597 (cli-script.o): Depend on python.h
4598 (python.o, python-utils.o): New.
4599 * cli/cli-script.c (print_command_lines): Handle python_control.
4600 (execute_control_command): Handle python_control.
4601 (execute_control_command_untraced): New function.
4602 (while_command): Call execute_control_command_untraced.
4603 (if_command): Likewise.
4604 (get_command_line): Remove static attribute.
4605 (read_next_line): Handle "python".
4606 (recurse_read_control_structure): Handle python_control.
4607 (read_command_lines): Handle python_control.
4608 Include python.h.
4609 * cli/cli-script.h (get_command_line): Add prototype.
4610 (execute_control_command_untraced): Likewise.
4611 * configure.ac: Add --with-python.
4612 * defs.h (enum command_control_type) <python_control>: New
4613 constant.
4614 * python/python-internal.h: New file.
4615 * python/python.c: New file.
4616 * python/python.h: New file.
4617 * python/python-utils.c: New file.
4618 * NEWS: Mention Python scripting support and its new commands.
4619
5141027d
UW
46202008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4621
4622 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4623
353cfe88
PM
46242008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4625
f1648876 4626 * MAINTAINERS (Write After Approval): Add self.
353cfe88 4627
d6b74ac4
PM
46282008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4629
4630 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4631 (insert_breakpoint_locations): Likewise.
4632
ef0d312a
MS
46332008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4634
4635 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4636 breakpoint.
4637 (set_longjmp_breakpoint): Likewise.
4638
fb6d93b2
UW
46392008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4640
4641 PR build/2490
4642 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4643 defined.
4644
e6ad058a
TT
46452008-08-05 Tom Tromey <tromey@redhat.com>
4646
4647 * bcache.c (deprecated_bcache_added): Initialize obstack.
4648 (bcache_xmalloc): Don't initialize obstack.
4649 (bcache_xfree): Conditionally free obstack.
4650 (bcache_memory_used): Update.
4651
11d31d94
TT
46522008-08-05 Tom Tromey <tromey@redhat.com>
4653
4654 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4655 bcache_full.
4656 (append_psymbol_to_list): Accept a const pointer.
4657 (add_psymbol_to_list): Fix const correctness.
4658 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4659 (bcache_full): Declare.
4660 * bcache.c (bcache_data, deprecated_bcache): Remove.
4661 (bcache): Use bcache_full.
4662 (bcache_full): Rename from deprecated_bcache_added. Change return
4663 type.
4664
5be973eb
SS
46652008-08-04 Stan Shebs <stan@codesourcery.com>
4666
4667 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4668 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4669 (enable_break): Remove test of BKPT_AT_SYMBOL.
4670
5062cc19
KS
46712008-08-02 Keith Seitz <keiths@redhat.com>
4672
4673 * acinclude.m4: Include ../config/tcl.m4 to pick up
4674 standard Tcl configury bits.
4675 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4676 * configure.ac: Don't check if ../itcl exists when building
4677 gdbtk. It could be installed.
4678 Rewrite gdbtk configury to allow for using system-supplied
f1648876 4679 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
4680 itcl and itk.
4681 * Makefile.in: Remove everything related to itcl and itk.
4682 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
4683 configure.ac.
4684 Remove v850ice.o build rule.
4685 (ALL_TCL_CFLAGS): New convenience defintion. Change all
4686 gdbtk sources to use it.
4687 * configure: Regenerate.
f1648876 4688
6d76a53d
SS
46892008-07-31 Stan Shebs <stan@codesourcery.com>
4690
4691 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
4692
ed7c5e43
SS
46932008-07-30 Stan Shebs <stan@codesourcery.com>
4694
4695 * objfiles.c (TARGET_KEEP_SECTION): Remove.
4696 (add_to_objfile_sections): Remove use.
4697
22ad7fee
TT
46982008-07-29 Tom Tromey <tromey@redhat.com>
4699
4700 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
4701 (lookup_cmd_composition): Likewise.
4702
d5529a84
TT
47032008-07-29 Tom Tromey <tromey@redhat.com>
4704
4705 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
4706 dead code. Fix indentation.
4707
938f4ca8
SS
47082008-07-29 Stan Shebs <stan@codesourcery.com>
4709
4710 * main.c (captured_main): Remove long-unused #if 0 blocks.
4711
7f4b89d1
TT
47122008-07-28 Tom Tromey <tromey@redhat.com>
4713
4714 * annotate.h (deprecated_annotate_starting_hook): Remove.
4715 (deprecated_annotate_stopped_hook): Remove.
4716 (deprecated_annotate_exited_hook): Remove.
4717 * Makefile.in (annotate.o): Depend on observer_h.
4718 * top.c (deprecated_delete_breakpoint_hook): Remove.
4719 (deprecated_create_breakpoint_hook): Likewise.
4720 (deprecated_modify_breakpoint_hook): Likewise.
4721 * interps.c (clear_interpreter_hooks): Update for removed hooks.
4722 * breakpoint.c (mention): Don't call removed hook.
4723 (delete_breakpoint): Likewise.
4724 (disable_breakpoint): Likewise.
4725 (do_enable_breakpoint): Likewise.
4726 * annotate.c: Include observer.h.
4727 (breakpoint_changed): Change type of argument.
4728 (_initialize_annotate): Register observers.
4729 (deprecated_annotate_starting_hook): Remove.
4730 (deprecated_annotate_stopped_hook): Remove.
4731 (deprecated_annotate_exited_hook): Remove.
4732 (annotate_starting): Update for hook removal.
4733 (annotate_stopped): Likewise.
4734 (annotate_exited): Likewise.
4735 * defs.h (deprecated_delete_breakpoint_hook): Remove.
4736 (deprecated_create_breakpoint_hook): Likewise.
4737 (deprecated_modify_breakpoint_hook): Likewise.
4738
8641e682
TT
47392008-07-28 Tom Tromey <tromey@redhat.com>
4740
4741 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
4742
064ef605
DJ
47432008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4744
4745 * configure.ac: Check for the GNU/Linux ptrace signature.
4746 * configure: Regenerated.
4747
57380f4e
DJ
47482008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4749
4750 * linux-nat.c (resume_callback): Add more debugging output.
4751 (linux_nat_has_pending_sigint): New function, based on
4752 linux_nat_has_pending.
4753 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
4754 (stop_wait_callback): Remove flush_mask handling. Honor
4755 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
4756 to recursive calls.
4757 (linux_nat_has_pending, flush_callback): Remove.
4758 (linux_nat_filter_event): Check for ignore_sigint.
4759 (linux_nat_wait): Remove flush_mask support and call to
4760 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
4761 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
4762
e09490f1
DJ
47632008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4764
4765 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
4766 report events from resumed threads.
4767
e38d4e1a
DJ
47682008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
4769
4770 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
4771 (mips_linux_init_abi): Set tdep->syscall_next_pc.
4772 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
4773 mips-tdep.h.
4774 (mips32_next_pc): Handle the syscall instruction.
4775 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
4776 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
4777
fa8de41e
TT
47782008-07-26 Tom Tromey <tromey@redhat.com>
4779
4780 PR gdb/1158:
4781 * valops.c (value_struct_elt): Treat function-valued field as a
4782 static method.
4783
ccb3ac8a
TT
47842008-07-26 Tom Tromey <tromey@redhat.com>
4785
4786 PR gdb/1136:
4787 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
4788 longer tokens first.
4789
d72314c6
VP
47902008-07-26 Vladimir Prus <vladimir@codesourcery.com>
4791
4792 Kill cmd_async_ok.
f1648876
AS
4793 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
4794 (get_cmd_async_ok): Remove.
4795 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
4796 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
4797 * infcmd.c (_initialize_infcmd): Likewise.
4798 * thread.c (_initialize_thread): Likewise.
d72314c6 4799
5b68030f
JM
48002008-07-25 Joseph Myers <joseph@codesourcery.com>
4801
4802 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
4803 128-bit long doubles in even-odd pairs of FPRs. Do not
4804 right-align float arguments for big-endian.
4805 (mips_n32n64_return_value): Apply return value convention for
4806 structs containing one or two floating-point values to soft-float
4807 as well as hard-float. Handle 128-bit long doubles in such
4808 structs.
4809 (mips_o32_push_dummy_call): Only skip one integer register for a
4810 float argument passed in an FPR.
4811
383f836e
TT
48122008-07-25 Tom Tromey <tromey@redhat.com>
4813
4814 * tui/tui-hooks.c: Include observer.h.
4815 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
4816 Remove.
4817 (tui_bp_created_observer, tui_bp_deleted_observer,
4818 tui_bp_modified_observer): New globals.
4819 (tui_install_hooks): Use observers, not events.
4820 (tui_remove_hooks): Likewise.
4821 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
4822 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
4823 globals.
4824 (breakpoint_notify): Check mi_can_breakpoint_notify.
4825 (breakpoint_hooks): Remove.
4826 (mi_cmd_break_insert): Attach observers. Don't use events.
4827 * tracepoint.c: Include observer.h, not gdb-events.h.
4828 (tracepoint_operation, trace_pass_command): Notify observer.
4829 * interps.c: Don't include gdb-events.h.
4830 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
4831 * gdbarch.c: Rebuild.
4832 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
4833 (deprecated_current_gdbarch_select_hack): Notify observer.
4834 * breakpoint.h: Don't include gdb-events.h.
4835 * breakpoint.c: Don't include gdb-events.h.
4836 (condition_command): Notify observer.
4837 (commands_command): Likewise.
4838 (commands_from_control_command): Likewise.
4839 (mention, delete_breakpoint, set_ignore_count): Likewise.
4840 (disable_breakpoint, do_enable_breakpoint): Likewise.
4841 * Makefile.in (gdb_events_h): Remove.
4842 (breakpoint_h): Update.
4843 (COMMON_OBS): Remove gdb-events.o.
4844 (gdb-events.o): Remove.
4845 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
4846 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
4847 * gdb-events.c: Remove.
4848 * gdb-events.h: Remove.
4849 * gdb-events.sh: Remove.
4850
60e569b9
PA
48512008-07-24 Pedro Alves <pedro@codesourcery.com>
4852
4853 * remote.c (remote_threads_extra_info): Don't query the remote
4854 server about info on the internally added main thread.
4855
a6a7f2a5
AR
48562008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
4857
4858 * nto-procfs.c (procfs_attach): Populate initial thread list.
4859 (procfs_wait): Return new pid, built from the inferior status.
4860
e63e4db2
TJB
48612008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4862
4863 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
4864 * configure: Regenerate.
4865
14ef7606
AR
48662008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
4867
4868 * nto-procfs.c (procfs_xfer_memory): Changed signature.
4869 (procfs_resume): Workaround for dereferencing type-punned pointer
4870 warning.
f1648876 4871 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
4872 correct.
4873 * nto-tdep.h (nto_parse_redirection): Likewise.
4874
cfd8ab24
SS
48752008-07-21 Stan Shebs <stan@codesourcery.com>
4876
4877 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
4878 * gdbarch.sh: Adjust comment to refer to
4879 in_solib_dynsym_resolve_code().
4880 * gdbarch.h, gdbarch.c: Update.
4881 * solib-osf.c: Ditto.
4882 * infrun.c: Ditto.
4883 (handle_inferior_event): Use in_solib_dynsym_resolve_code
4884 unconditionally.
4885 * config/mips/nm-irix5.h: Remove undef of
4886 IN_SOLIB_DYNSYM_RESOLVE_CODE.
4887
781b42b0
TT
48882008-07-21 Tom Tromey <tromey@redhat.com>
4889
4890 * symfile.c (reread_symbols): Don't pass argument to observer.
4891 * exec.c (exec_file_attach): Don't pass argument to observer.
4892 * ada-lang.c (ada_executable_changed_observer): Remove argument.
4893 * symtab.c (symtab_observer_executable_changed): Remove argument.
4894 * observer.sh: Handle functions with no arguments.
4895
a366c65a 48962008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 4897 Chris Demetriou <cgd@google.com>
a366c65a
CD
4898
4899 * elfread.c (elf_symfile_segments): Fix the check that each loadable
4900 section fits within an ELF segment to handle ELF segments that hit
4901 the end of the address space.
4902
073d253f
CD
49032008-07-20 Chris Demetriou <cgd@google.com>
4904
4905 * MAINTAINERS (Write After Approval): Add self.
4906
d7d9f01e
TT
49072008-07-18 Tom Tromey <tromey@redhat.com>
4908
4909 PR gdb/855:
4910 * NEWS: Add entry for macro commands.
4911 * Makefile.in (macrocmd.o): Add gdb_string.h.
4912 * macroscope.h (user_macro_scope): Declare.
4913 (default_macro_scope): Update documentation.
4914 (macro_user_macros): Declare.
4915 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
4916 Use user_macro_scope.
4917 (null_macro_lookup): Remove.
4918 * macrotab.h (macro_callback_fn): Declare.
4919 (macro_for_each): Likewise.
4920 (macro_allow_redefinitions): Likewise.
4921 * macrotab.c (foreach_macro): New function
4922 (macro_for_each): Likewise.
4923 (struct macro_table) <redef_ok>: New field.
4924 (macro_allow_redefinitions): New function.
4925 (new_macro_table): Update.
4926 (macro_define_function): Likewise.
4927 (macro_define_object): Likewise.
4928 * macroscope.c (user_macro_scope): New function.
4929 (default_macro_scope): Use it.
4930 (macro_user_macros): New global.
4931 (standard_macro_lookup): Look in macro_user_macros.
4932 (_initialize_macroscope): New function.
4933 * macroexp.h (macro_is_whitespace, macro_is_digit,
4934 macro_is_identifier_nondigit): Declare.
4935 * macroexp.c (macro_is_whitespace): Rename. No longer static.
4936 (macro_is_digit): Likewise.
4937 (macro_is_identifier_nondigit): Likewise.
4938 (get_identifier): Update.
4939 (get_pp_number): Likewise.
4940 (get_token): Likewise.
4941 * macrocmd.c (skip_ws): New function.
4942 (extract_identifier): Likewise.
4943 (free_macro_definition_ptr): Likewise.
4944 (user_macros): Remove.
4945 (macro_define_command): Implement.
4946 (_initialize_macrocmd): Update.
4947 (macro_undef_command): Implement.
4948 (print_one_macro): New function.
4949 (macro_list_command): Implement.
4950
0f72fb1c
JM
49512008-07-18 Joseph Myers <joseph@codesourcery.com>
4952
4953 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
4954 in BFD ELF check.
4955 * configure: Regenerate.
4956
7c6467a4
PP
49572008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
4958
4959 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
4960
680b56ce
AS
49612008-07-15 Andreas Schwab <schwab@suse.de>
4962
4963 * valops.c (value_cast_pointers): Follow typedefs when checking
4964 result of coercion.
4965
7f0df278
DJ
49662008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4967
4968 * block.c (block_function): Renamed to ...
4969 (block_linkage_function): ... this. All callers changed.
4970 * block.h (block_function): Renamed to ...
4971 (block_linkage_function): ... this.
4972
ba2c6aec
DJ
49732008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4974
4975 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
4976
d56907c1
DJ
49772008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4978
4979 * frame.c (frame_sp_unwind): Delete.
4980 (get_frame_sp): Do not use it.
4981 * frame.h (frame_sp_unwind): Delete prototype.
4982
f92aeb88
DJ
49832008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4984
4985 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
4986
ad1193e7
DJ
49872008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4988
4989 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
4990 * frame.c (frame_unwind_address_in_block): Delete.
4991 (get_frame_address_in_block): Do not use it. Check the type
4992 of the next frame first.
4993 (frame_cleanup_after_sniffer): Update comment.
4994 * frame.h (frame_unwind_address_in_block): Delete prototype.
4995 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4996
ef02daa9
DJ
49972008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
4998
4999 * frame.c (frame_func_unwind): Delete.
5000 (get_frame_func): Do not use it.
5001 * frame.h (frame_func_unwind): Delete prototype.
5002 * hppa-tdep.c (hppa_frame_cache): Update comment.
5003 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5004
96e32df8
SS
50052008-07-14 Stan Shebs <stan@codesourcery.com>
5006
5007 * remote-sim.c (init_gdbsim_ops): Remove
5008 TARGET_REDEFINE_DEFAULT_OPS.
5009
ab8650a3
DJ
50102008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5011
5012 * findvar.c (read_var_value): Remove unused variable.
5013
8c90c137
LM
50142008-07-15 Luis Machado <luisgpm@br.ibm.com>
5015
5016 * infrun.c (handle_inferior_event): Tag threads as stopped
5017 before inserting breakpoints.
5018
4098af0f
HZ
50192008-07-15 Hui Zhu <teawater@gmail.com>
5020
5021 * MAINTAINERS: Added myself to section Write After Approval.
5022
7093c834
PP
50232008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5024
5025 PR gdb/2477
5026 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 5027
56514771
PA
50282008-07-14 Pedro Alves <pedro@codesourcery.com>
5029
5030 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5031 (i386_dicos_push_dummy_code): New.
5032 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5033 Register i386_dicos_push_dummy_code.
5034
74ed0bb4
MD
50352008-07-14 Markus Deuling <deuling@de.ibm.com>
5036
5037 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5038 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5039 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5040
5041 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5042 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5043 (mips_n32n64_fp_arg_chunk_p): Update caller.
5044
5045 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5046 (mips_n32n64_push_dummy_call): Update caller.
5047
5048 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5049 current_gdbarch.
5050 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5051 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5052
5053
5054 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5055 current_gdbarch.
5056 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5057 (mips_o64_push_dummy_call): Update caller.
5058
5059 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5060 (fp_register_arg_p, mips_dump_tdep): Update caller.
5061
5062 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5063 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5064
5065 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5066 current_gdbarch.
5067 (mips32_scan_prologue): Update caller.
5068
5069 (heuristic_proc_start): Add gdbarch as parameter. Replace
5070 current_gdbarch.
5071 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5072
5073 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5074 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5075 the current architecture. Update call to getregs_supplies.
5076 (getregs_supplies): Add gdbarch as parameter and replace
5077 current_gdbarch.
5078
5079 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5080 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5081 NBSD_MIPS_JB_ELEMENT_SIZE.
5082 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5083 replace current_gdbarch.
5084
5085 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5086 current_gdbarch.
5087 (mips_fetch_registers, mips_store_registers): Update call
5088 to mips_map_regno.
5089 (mips_load): Use get_regcache_arch to get at the current_architecture
5090 and replace current_gdbarch.
5091
0c501536
PA
50922008-07-13 Pedro Alves <pedro@codesourcery.com>
5093
5094 * thread.c (restore_selected_frame): On fail to restore, select
5095 the innermost frame, and don't crash when warning the user.
5096
db009c8a
JB
50972008-07-13 Hui Zhu <teawater@gmail.com>
5098
5099 * symtab.c (expand_line_sal): Fix a memory leak.
5100
0ffe5012
PA
51012008-07-13 Pedro Alves <pedro@codesourcery.com>
5102
5103 * utils.c (struct continuation): Define as inheriting struct
5104 cleanup.
5105 (add_continuation, do_all_continuations)
5106 (discard_all_continuations, add_intermediate_continuation)
5107 (do_all_intermediate_continuations)
5108 (discard_all_intermediate_continuations): Adjust.
5109
dbba8251
VP
51102008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5111
5112 Skip varobj in running threads.
680b56ce
AS
5113 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5114 thread is not stopped, skip the varobj.
5115 * Makefile.in: Update dependencies.
dbba8251 5116
e3d6cd5f
VP
51172008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5118
5119 Enable all commands while inferiour is running
680b56ce
AS
5120 * mi/mi-main.c (mi_cmd_execute): Don't check if
5121 inferiour is executing.
e3d6cd5f 5122
b10a37b1
VP
51232008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5124
5125 Allow all CLI command even if target is executing.
680b56ce
AS
5126 * gdb/top.c (execute_command_1): Don't check if the inferiour
5127 is running.
b10a37b1 5128
ea069267
VP
51292008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5130
5131 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5132 Fix printing of frame, when frame is wrong.
5133
cdc9523a
UW
51342008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5135
5136 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5137 backchain is unreadable.
5138
d5b25491
UW
51392008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5140
5141 * spu-linux-nat.c: Include "gdbthread.h".
5142 (spu_child_post_startup_inferior): Register main thread.
5143 (spu_child_post_attach): Likewise.
5144 * Makefile.in (spu-linux-nat.o): Update dependencies.
5145
604ead4a
PA
51462008-07-12 Pedro Alves <pedro@codesourcery.com>
5147
5148 Rewrite continuations internals on top of cleanups and plug
5149 continuation arguments leaks.
5150
5151 * defs.h (struct continuation): Make it opaque.
5152 (add_continuation, add_intermediate_continuation): Drop the int
5153 argument of the continuation hook argument. Add
5154 continuation_free_args argument.
5155 (do_all_continuations, do_all_intermediate_continuations): Drop
5156 the error_p argument.
5157
5158 * utils.c (add_continuation): Drop the int argument of the
5159 continuation hook argument. Add continuation_free_args argument.
5160 Reimplement on top of cleanups.
5161 (do_all_continuations): Drop error argument. Reimplement on top
5162 of cleanups.
5163 (discard_all_continuations): Reimplement on top of cleanups.
5164 (add_intermediate_continuation): Drop the int argument of the
5165 continuation hook argument. Add continuation_free_args argument.
5166 Reimplement on top of cleanups.
5167 (do_all_intermediate_continuations): Drop error argument.
5168 Reimplement on top of cleanups.
5169 (discard_all_intermediate_continuations): Reimplement on top of
5170 cleanups.
5171
5172 * breakpoint.c (until_break_command_continuation): Drop error
5173 argument. Add xfree as continuation argument deleter.
5174
5175 * inf-loop.c (inferior_event_handler): On error, discard all
5176 continuations. Adjust to new do_all_intermediate_continuations
5177 and do_all_continuations interfaces.
5178
5179 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5180 Pass xfree as continuation argument deleter.
5181 (finish_command_continuation): Drop error_p argument. Adjust.
5182 (finish_command_continuation_free_arg): New.
5183 (finish_command): Pass finish_command_continuation_free_arg as
5184 continuation argument deleter. Adjust to new do_all_continuations
5185 interfaces.
5186 (attach_command_continuation): Drop error_p argument.
5187 (attach_command_continuation_free_args): New.
5188 (attach_command): Pass attach_command_continuation_free_args as
5189 continuation argument deleter.
5190
5191 * interps.c (interp_set): Adjust to new do_all_continuations
5192 interfaces.
5193
5194 * event-top.c (stdin_event_handler): In error, also discard the
5195 intermediate continuations.
5196
bfec99b2
PA
51972008-07-12 Pedro Alves <pedro@codesourcery.com>
5198
5199 Replace struct continuation_args by void* and per command structs.
5200
5201 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5202
5203 * breakpoint.c (struct until_break_command_continuation_args):
5204 New.
5205 (until_break_command_continuation): Take a void* instead of a
5206 continuations_arg. Adjust.
5207 (until_break_command): Adjust to use struct
5208 until_break_command_continuation_args instead of struct
5209 continuation_arg.
5210
5211 * infcmd.c (struct step_1_continuation_args): New.
5212 (step_1_continuation): Take a void* instead of a
5213 continuations_arg. Adjust to use struct step_1_continuation_args.
5214 (step_once): Adjust to use struct step_1_continuation_args.
5215
5216 (struct finish_command_continuation_args): New.
5217 (finish_command_continuation): Take a void* instead of a
5218 continuations_arg. Adjust to use struct
5219 finish_command_continuation_args.
5220 (finish_command): Adjust to use struct
5221 finish_command_continuation_args.
5222 (struct attach_command_continuation_args): New.
5223 (attach_command_continuation): Take a void* instead of a
5224 continuations_arg. Adjust to use struct
5225 attach_command_continuation_args.
5226 (attach_command): Adjust to use struct
5227 attach_command_continuation_args.
5228
5229 * defs.h (struct continuation_arg): Delete.
5230 (struct continuation): Replace the struct continuation_arg*
5231 parameter of continuation_hook by a void*. Replace "arg_list"
5232 member by a new "args" member with void* type.
5233 (add_continuation, add_intermediate_continuation): Replace struct
5234 continuation_arg type usages by void* usages.
5235
5236 * utils.c (add_continuation, do_all_continuations)
5237 (add_intermediate_continuation)
5238 (do_all_intermediate_continuations): Replace struct
5239 continuation_arg type usages by void* usages. Pass "args" instead
5240 of "arg_list".
5241
2afb61aa
PA
52422008-07-12 Pedro Alves <pedro@codesourcery.com>
5243
5244 * infrun.c (struct thread_stepping_state): Delete sal member.
5245 (init_thread_stepping_state): Add local sal. Use it instead of
5246 tss->sal.
5247 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5248 tss->sal.
5249 (step_into_function): Add local stop_func_sal. Use it instead of
5250 tss->sal.
5251
77ebaa5a
VP
52522008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5253
5254 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5255 * infcmd.c (continue_1): New, extracted from
5256 (continue_command): ...here.
5257 (interrupt_target_1): New, extracted from
5258 (interrupt_target_command): ...here.
5259 * inferior.h (continue_1, interrupt_target_1): New.
5260 * mi/mi-main.c (mi_cmd_exec_continue)
5261 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5262
1e92afda
VP
52632008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5264
5265 Implement --thread and --frame.
5266 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5267 * thread.c (find_thread_id): Make non-static.
5268 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5269 thread and frame, if necessary.
5270 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5271 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5272
d56b7306
VP
52732008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5274
5275 * infrun.c (resume): Discard cleanups on early exit path.
5276
b1a268e5
VP
52772008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5278
680b56ce 5279 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5280 were stopped.
5281
90139f7d
VP
52822008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5283
5284 Report thread state in -thread-info output.
680b56ce 5285 * thread.c (print_thread_info): Add new field "state".
90139f7d 5286
a0d21d28
PA
52872008-07-11 Pedro Alves <pedro@codesourcery.com>
5288
5289 * infrun.c (handle_inferior_event): Also ignore a
5290 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5291
14032a66
TT
52922008-07-11 Tom Tromey <tromey@redhat.com>
5293
5294 * completer.c (complete_line_internal): New function, from
5295 complete_line. Add 'for_help' parameter.
5296 (complete_line): Use it.
5297 (command_completer): Move later. Rewrite.
5298
65fc9b77
PA
52992008-07-11 Pedro Alves <pedro@codesourcery.com>
5300
5301 * thread.c (thread_apply_command): Move making the cleanup out of
5302 the loop.
5303
4f8d22e3
PA
53042008-07-11 Pedro Alves <pedro@codesourcery.com>
5305
5306 Exited threads.
5307
5308 * thread.c (enum thread_state): New.
5309 (thread_state main_thread_running): Delete, in favor of...
5310 (thread_state main_thread_state): ... this. Update throughout.
5311 (clear_thread_inferior_resources): New, split from free_thread.
5312 (free_thread): Call clear_thread_inferior_resources.
5313 (init_thread_list): Set main thread to stopped state.
5314 (add_thread_silent): Take care of PTID reuses.
5315 (delete_thread): If deleting inferior_ptid or a thread with
5316 refcount > 0, mark it as exited, but still keep it in the list.
5317 Only notify of thread exits, if we haven't done so yet.
5318 (iterate_over_threads): Make it safe to delete threads while
5319 iterating over them.
5320 (do_captured_list_thread_ids): Don't account for exited threads.
5321 (thread_alive): Check for the THREAD_EXITED state, and don't set
5322 ptid to -1 on exited threads.
5323 (set_running): Update to account for extra possible states.
5324 (is_thread_state): New.
5325 (is_stopped, is_exited): New.
5326 (is_running): Implement in terms of is_thread_state.
5327 (any_running): Update.
5328 (print_thread_info): Update. Account for exited threads. Don't
5329 warn about missed frame restoring here, its done in the cleanup.
5330 (switch_to_thread): Don't read from a thread that has gone.
5331 (restore_current_thread): In non-stop mode, do a full context
5332 switch.
5333 (restore_selected_frame): Add a frame_level argument. Rewrite.
5334 (struct current_thread_cleanup): Add selected_frame_level and
5335 was_stopped members.
5336 (do_restore_current_thread_cleanup): Check if thread was stopped
5337 and still is, and if the target has registers, stack and memory
5338 before restoring the selected frame. Don't delete the cleanup
5339 argument here.
5340 (restore_current_thread_cleanup_dtor): New.
5341 (make_cleanup_restore_current_thread): Remove all arguments.
5342 Rewrite.
5343 (thread_apply_all_command): Update. Prune threads.
5344 (thread_apply_command): Update.
5345 (thread_command): Account for currently selected exited thread.
5346 (do_captured_thread_select): Check for a running thread. Prune
5347 threads.
5348 (_initialize_thread): Make "info threads", "thread", "thread
5349 apply", and "thread apply all" appliable without a selected thread.
5350 * gdbthread.h (struct thread_info): Replace running_ by state_.
5351 Add refcount.
5352 (is_exited, is_stopped): Declare.
5353 (make_cleanup_restore_current_thread): Remove all arguments.
5354 * infrun.c: Include "event-top.h".
5355 (fetch_inferior_event): In non-stop mode, restore selected thread
5356 and frame after handling the event and running breakpoint
5357 commands. Display GDB prompt if needed.
5358 (normal_stop): In non-stop mode, don't print thread switching
5359 notice.
5360 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5361 (get_cmd_no_selected_thread_ok): New.
5362 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5363 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5364 Declare.
5365 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5366 no-selected-thread ok.
5367 * top.c (execute_command): Check for non no-selected-thread-ok
5368 commands.
5369 * linux-nat.c (struct saved_ptids, threads_to_delete)
5370 (record_dead_thread, prune_lwps): Delete.
5371 (exit_lwp): Unconditionally delete thread.
5372 (linux_nat_resume): Remove prune_lwps call.
5373 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5374 of is_running. Adjust to make_cleanup_restore_current_thread
5375 interface change.
5376 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5377 selected thread has exited.
5378 * inf-loop.c (inferior_event_handler): Don't display the prompt
5379 here.
5380 * varobj.c (c_value_of_root): Update.
5381 * defs.h (make_cleanup_dtor): Declare.
5382 * utils.c (make_cleanup_dtor): New.
5383
5384 * Makefile.in (infrun.o): Depend on $(event_top_h).
5385
8cae4b3f
PA
53862008-07-11 Pedro Alves <pedro@codesourcery.com>
5387
5388 Add "continue -a" and "interrupt -a" options for non-stop mode.
5389
5390 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5391 (continue_command): Add "-a" option.
5392 (interrupt_target_command): Add "-a" option.
5393 (_initialize_infcmd): Add extend help of continue and interrupt
5394 command to mention the new "-a" option. Mark "continue" async ok.
5395
bf250677
DE
53962008-07-10 Doug Evans <dje@google.com>
5397
5398 Add "set print symbol-loading on|off".
5399 * NEWS: Document new option.
5400 * symfile.h (print_symbol_loading): Declare.
5401 * symfile.c (print_symbol_loading): New global.
5402 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5403 from ..." if print_symbol_loading.
5404 (_initialize_symfile): Add set/show print symbol-loading.
5405 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5406 if print_symbol_loading.
5407
4c28f408
PA
54082008-07-10 Pedro Alves <pedro@codesourcery.com>
5409
5410 Non-stop linux native.
5411
5412 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5413 here.
5414 (get_pending_status): Implement non-stop mode.
5415 (linux_nat_detach): Stop threads before detaching.
5416 (linux_nat_resume): In non-stop mode, always resume only a single
5417 PTID.
5418 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5419 add new lwp to GDB's thread table, and mark as running, executing
5420 and stopped appropriately.
5421 (linux_nat_filter_event): Don't assume there are other running
5422 threads when a thread exits.
5423 (linux_nat_wait): Mark the main thread as running and executing.
5424 In non-stop mode, don't stop all lwps.
5425 (linux_nat_kill): Stop lwps before killing them.
5426 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5427 alive.
5428 (send_sigint_callback): New.
5429 (linux_nat_stop): New.
5430 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5431
5432 * linux-nat.h (thread_db_attach_lwp): Declare.
5433
5434 * linux-thread-db.c (thread_get_info_callback): Check for new
5435 threads if we have none.
5436 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5437 stopped lwp. Check for new threads if we have none.
5438 (thread_db_attach_lwp): New.
5439 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5440 (check_event): Set proc_handle.pid to the stopped lwp.
5441 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5442 lwp available, bail out if there is none.
5443
5444 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5445 PTRACE_KILL.
5446
0aef6ba2
KB
54472008-07-10 Kevin Buettner <kevinb@redhat.com>
5448
a4fafde3
KB
5449 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5450 `current_pc' from CORE_ADDR to ULONGEST.
5451
0aef6ba2
KB
5452 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5453 gdbsim_stop().
5454
10568435
JK
54552008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5456
5457 * NEWS (New commands): Mention "set disable-randomization".
5458 * configure.ac: Add check for HAVE_PERSONALITY and
5459 HAVE_DECL_ADDR_NO_RANDOMIZE.
5460 * configure, config.in: Regenerate.
5461 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5462 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5463 ADDR_NO_RANDOMIZE.
5464 (disable_randomization, show_disable_randomization)
5465 (set_disable_randomization): New.
5466 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5467 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5468 variable DISABLE_RANDOMIZATION.
5469 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5470 DISABLE_RANDOMIZATION.
5471
f9c72d52
PA
54722008-07-09 Pedro Alves <pedro@codesourcery.com>
5473
5474 Adjust all targets to new target_stop interface.
5475
5476 * gnu-nat.c (gnu_stop): Add ptid argument.
5477 * go32-nat.c (go32_stop): Add ptid argument.
5478 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5479 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5480 * monitor.c (monitor_stop): Add ptid argument.
5481 (monitor_open): Pass inferior_ptid to monitor_stop.
5482 (monitor_interrupt): Pass inferior_ptid to target_stop.
5483 (monitor_stop): Add ptid argument.
5484 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5485 (procfs_create_inferior): Add ptid argument.
5486 * procfs.c (procfs_stop): Add ptid argument.
5487 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5488 * remote-sim.c (gdbsim_stop): Add ptid argument.
5489 * sol-thread.c (sol_thread_stop): Add ptid argument.
5490 * win32-nat.c (win32_stop): Add ptid argument.
5491
94cc34af
PA
54922008-07-09 Pedro Alves <pedro@codesourcery.com>
5493
5494 Non-stop inferior control.
5495
5496 * infrun.c (resume): In non-stop mode, always resume just one
5497 thread.
5498 (proceed): Don't call prepare_to_proceed in non-stop mode.
5499 (fetch_inferior_event): In non-stop mode, switch context before
5500 handling the event.
5501 (error_is_running, ensure_not_running): New.
5502 (handle_inferior_event): In non-stop mode: Mark only the event
5503 thread as stopped. Require that the target module manages adding
5504 threads to the thread list. Assert that there isn't a
5505 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5506 (normal_stop): Only mark not-running if inferior hasn't exited.
5507 In non-stop mode, only mark the event thread.
5508
5509 * thread.c:Include "cli/cli-decode.h".
5510 (print_thread_info): Don't read from a running thread.
5511 Output "(running)" if thread is running.
5512 (switch_to_thread): Don't read stop_pc if thread is executing.
5513 (do_restore_current_thread_cleanup): Don't write to a running
5514 thread.
5515 (thread_apply_all_command): Don't read from a running thread. In
5516 non-stop mode, do a full context-switch instead of just switching
5517 threads.
5518 (thread_apply_command): In non-stop mode, do a full context-switch
5519 instead of just switching threads.
5520 (do_captured_thread_select): Likewise. Inform user if selected
5521 thread is running.
5522 (_initialize_thread): Mark "info threads" and "thread" and
5523 async_ok.
5524
5525 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5526 unregister the target from the event loop.
5527
5528 * infcmd.c (continue_command, step_1, jump_command)
5529 (signal_command): Ensure the selected thread isn't running.
5530 (interrupt_target_command): In non-stop mode, interrupt only the
5531 selected thread.
5532
5533 * inferior.h (error_is_running, ensure_not_running): Declare.
5534
5535 * target.h (struct target_ops): Add ptid argument to the to_stop
5536 member.
5537 (target_stop): Add ptid_t argument.
5538
5539 * target.c (update_current_target): Add ptid argument to to_stop's
5540 type.
5541 (debug_to_stop): Add ptid_t argument.
5542 (debug_to_rcmd): Set to_stop_ptid.
5543
5544 * remote.c (remote_stop): Add ptid_t argument.
5545 (async_remote_interrupt): Add inferior_ptid to target_stop.
5546 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5547
5548 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5549
59f0d5d9
PA
55502008-07-09 Pedro Alves <pedro@codesourcery.com>
5551
5552 Don't rely on ecs->wait_for_more.
5553
5554 * infrun.c (proceed): Clear the stepping state, set
5555 previous_inferior_ptid and clear infwait state.
5556 (wait_for_inferior): Don't clear the stepping state, set
5557 previous_inferior_ptid, or clear the infwait state here.
5558 (fetch_inferior_event): Don't clear the stepping state, set
5559 previous_inferior_ptid, or clear the infwait state here. Don't
5560 condition on wait_for_more.
5561
0d1e5fa7
PA
55622008-07-09 Pedro Alves <pedro@codesourcery.com>
5563
5564 Refactor infrun a bit.
5565
5566 * infrun.c (currently_stepping): Take a struct
5567 thread_stepping_state instead of an execution_control_state.
5568 (struct thread_stepping_state): New, split from
5569 execution_control_state.
5570 (gtss, tss): New globals.
5571 (proceed): Clear the stepping state, set previous_inferior_ptid
5572 and clear infwait state.
5573 (init_wait_for_inferior): Clear the stepping state,
5574 previous_inferior_ptid and infwait state.
5575 (waiton_ptid, infwait_state): New, split from
5576 execution_control_state.
5577 (struct execution_control_state): Members that persist through
5578 events moved out to either struct thred_stepping_state or made
5579 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5580 (wait_for_inferior, fetch_inferior_event): Use local
5581 execution_control_state. Update to execution_control_state split.
5582 (init_execution_control_state): Adjust.
5583 (init_thread_stepping_state): New, extracted from
5584 init_execution_control_state.
5585 (context_switch): Take a ptid instead of an
5586 execution_control_state.
5587 (context_switch_to): Adjust.
5588 (adjust_pc_after_break): Adjust.
5589 (init_infwait_state): New.
5590 (handle_inferior_event): Adjust.
5591
a474d7c2
PA
55922008-07-09 Pedro Alves <pedro@codesourcery.com>
5593 Vladimir Prus <vladimir@codesourcery.com>
5594
5595 Per-thread commands.
5596
5597 * gdbthread.h: Remove unneeded forward declarations.
5598 Include "inferior.h".
5599 (struct thread_info): Add continuations,
5600 intermediate_continuations, proceed_to_finish, step_over_calls,
5601 stop_step, step_multi and stop_signal members.
5602 (save_infrun_state): Add continuations,
5603 intermediate_continuations, proceed_to_finish, step_over_calls,
5604 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5605 (load_infrun_state): Add continuations,
5606 intermediate_continuations, proceed_to_finish, step_over_calls,
5607 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5608
5609 * thread.c (load_infrun_state): In non-stop mode, load
5610 continuations, intermediate_continuations, proceed_to_finish,
5611 step_over_calls, stop_step, step_multi and stop_signal.
5612 (save_infrun_state): Store continuations,
5613 intermediate_continuations, proceed_to_finish, step_over_calls,
5614 stop_step, step_multi, stop_signal and stop_bpstat.
5615 (save_infrun_state): Store continuations,
5616 intermediate_continuations, proceed_to_finish, step_over_calls,
5617 stop_step, step_multi, stop_signal and stop_bpstat.
5618 (free_thread): Clear The thread's stop_bpstat.
5619
5620 * inferior.h (context_switch_to): Declare.
5621
5622 * infrun.c (ecss): New global.
5623 (context_switch): Context switch continuations,
5624 intermediate_continuations, proceed_to_finish, step_over_calls,
5625 stop_step, step_multi, stop_signal and stop_bpstat.
5626 (wait_for_inferior): Use global ecss.
5627 (async_ecss, async_ecs): Delete.
5628 (fetch_inferior_event): Use global ecss.
5629 (context_switch_to): New.
5630
5631 * top.c (execute_command): In non-stop, only check if the current
5632 thread is running, in all-stop, check if there's any thread
5633 running.
5634
5635 * breakpoint.c (bpstat_remove_breakpoint): New.
5636 (bpstat_remove_breakpoint_callback): New.
5637 (delete_breakpoint): Clear the stop_bpstats of all threads.
5638
5639 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5640 current thread is running, in all-stop, check if there's any
5641 thread running.
5642
5643 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5644
ad52ddc6
PA
56452008-07-09 Pedro Alves <pedro@codesourcery.com>
5646
5647 Add non_stop global.
5648
5649 * inferior.h (non_stop): Declare.
5650 * infrun.c (non_stop, non_stop_1): New.
5651 (set_non_stop, show_non_stop): New.
5652 (_initialize_infrun): Add "set/show non-stop" command.
5653
3a3e9ee3
PA
56542008-07-09 Pedro Alves <pedro@codesourcery.com>
5655
5656 Adjust fork/vfork/exec to pass ptids around.
5657
5658 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5659 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5660 Take a ptid_t.
5661 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5662 type to ptid.
5663 * breakpoint.c (print_it_typical, bpstat_check_location)
5664 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5665 (create_fork_vfork_event_catchpoint): Adjust.
5666 * infrun.c (fork_event): Change parent_pid and child_pid types to
5667 ptid.
5668 (follow_exec, inferior_has_forked, inferior_has_vforked)
5669 (inferior_has_execd): Take a ptid_t and don't trim it.
5670 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5671 * linux-nat.c (linux_child_follow_fork): Adjust.
5672 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5673 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5674 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5675
8ea051c5
PA
56762008-07-09 Pedro Alves <pedro@codesourcery.com>
5677
5678 Add "executing" property to threads.
5679
5680 * inferior.h (target_executing): Delete.
5681 * gdbthread.h (struct thread_info): Add executing_ field.
5682 (set_executing, is_executing): New.
5683 * thread.c (main_thread_executing): New.
5684 (init_thread_list): Clear it and also main_thread_running.
5685 (is_running): Return false if target has no execution.
5686 (any_running, is_executing, set_executing): New.
5687
5688 * top.c: Include "gdbthread.h".
5689 (target_executing): Delete.
5690 (execute_command): Replace target_executing check by any_running.
5691 * event-top.c: Include "gdbthread.h".
5692 (display_gdb_prompt, command_handler): Replace target_executing by
5693 is_running.
5694 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
5695 here. Replace target_executing by is_running.
5696 * infrun.c (handle_inferior_event): Mark all threads as
5697 not-executing.
5698 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
5699 here.
5700 * stack.c (get_selected_block): Return null if inferior is
5701 executing.
5702 * target.c (target_resume): Mark resumed ptid as executing.
5703 * breakpoint.c (until_break_command): Replace target_executing
5704 check by is_executing.
5705 * remote.c (remote_async_resume): Don't mark inferior as executing
5706 here.
5707 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
5708 by any_running.
680b56ce 5709
8ea051c5
PA
5710 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
5711 (mi_execute_async_cli_command): Replace target_executing by
5712 is_running.
5713
5714 * frame.c (get_current_frame): Error out if the current thread is
5715 executing.
5716 (has_stack_frames): New.
5717 (get_selected_frame, deprecated_safe_get_selected_frame): Check
5718 has_stack_frames.
680b56ce 5719
8ea051c5
PA
5720 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
5721 $(gdbthread_h).
5722
4487aabf
PA
57232008-07-09 Pedro Alves <pedro@codesourcery.com>
5724
5725 * symfile.c (load_command): Reopen the exec file and reread
5726 symbols before anything else.
5727
9de2bdd7
PA
57282008-07-09 Pedro Alves <pedro@codesourcery.com>
5729
5730 * remote-sim.c: Include gdbthread.h.
5731 (remote_sim_ptid): New global.
5732 (gdbsim_create_inferior): Silently add the main task to GDB's
5733 thread list.
5734 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
5735 task from GDB's thread list.
5736 (gdbsim_resume): Adjust to use remote_sim_ptid.
5737 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
5738 (init_gdbsim_ops): Register gdbsim_thread_alive and
5739 gdbsim_pid_to_str.
5740 (_initialize_remote_sim): Initialize remote_sim_ptid.
5741 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
5742
5e0b29c1
PA
57432008-07-09 Pedro Alves <pedro@codesourcery.com>
5744
5745 * monitor (monitor_ptid): New global.
5746 (monitor_open): Silently add the main task to GDB's thread list.
5747 (monitor_close, monitor_mourn_inferior): Silently delete the main
5748 task from GDB's thread list.
5749 (monitor_thread_alive, monitor_pid_to_str): New.
5750 (init_base_monitor_ops): Register monitor_thread_alive and
5751 monitor_pid_to_str.
5752 (_initialize_remote_monitors): Initialize monitor_ptid.
5753
5754 * gdbthread.h (delete_thread_silent): Declare.
5755 * thread.c (delete_thread): Rename to ...
5756 (delete_thread_1): ... this. Add "silent" parameter. If silent,
5757 don't do exit notifications.
5758 (delete_thread, delete_thread_silent): New, as wrappers to
5759 delete_thread_1.
5760
b60e7edf
PA
57612008-07-08 Pedro Alves <pedro@codesourcery.com>
5762
5763 * breakpoint.c (update_global_location_list): Add boolean
5764 "should_insert" argument. Only insert locations if caller told it
5765 too.
5766 (update_global_location_list_nothrow): Add boolean "should_insert"
5767 argument. Pass it to update_global_location_list.
5768 (insert_breakpoints, create_longjmp_breakpoint)
5769 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
5770 (create_thread_event_breakpoint, create_solib_event_breakpoint)
5771 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
5772 (enable_watchpoints_after_interactive_call_stop)
5773 (set_momentary_breakpoint, create_breakpoints)
5774 (break_command_really, watch_command_1)
5775 (create_ada_exception_breakpoint, update_breakpoint_locations)
5776 (do_enable_breakpoint, enable_command): Pass true to
5777 update_global_location_list.
5778 (bpstat_stop_status, disable_overlay_breakpoints)
5779 (disable_watchpoints_before_interactive_call_start)
5780 (delete_breakpoint, disable_breakpoint, disable_command): Pass
5781 false to update_global_location_list.
5782 (update_breakpoints_after_exec): Don't temporarily disable
5783 always-inserted mode.
5784
25b22b0a
PA
57852008-07-08 Pedro Alves <pedro@codesourcery.com>
5786
5787 * breakpoint.c (mark_breakpoints_out): Make public.
5788 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
5789 here. Update comment.
5790 * breakpoint.h (mark_breakpoints_out): Declare.
5791
5792 * linux-nat.c (linux_handle_extended_wait): On
5793 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
5794 * inf-ttrace.c (inf_ttrace_wait): Likewise.
5795
cce9b6bf
PA
57962008-07-08 Pedro Alves <pedro@codesourcery.com>
5797
5798 * infrun.c (follow_exec): Reset shared libraries before adding the
5799 main exec file.
5800
3c3185ac
JK
58012008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5802
5803 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
5804
42f0bc8e
PA
58052008-07-07 Pedro Alves <pedro@codesourcery.com>
5806
5807 * i386-dicos-tdep.c: Include "inferior.h".
5808 (i386_dicos_frame_align): New.
5809 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
5810 dummy location ON_STACK.
5811 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
5812
b7292df3
JB
58132008-07-07 Joel Brobecker <brobecker@adacore.com>
5814
5815 * gstdint.h: New file.
5816
bb599c81
VP
58172008-07-05 Vladimir Prus <vladimir@codesourcery.com>
5818
5819 * mi/mi-interp.c (mi_on_resume): Don't try to report
5820 resumed thread it the thread list is empty.
5821
7f6a6314
PM
58222008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
5823
5824 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
5825 completer for set to filename_completer.
680b56ce 5826
7f6a6314
PM
5827 NEWS: Mention it.
5828
711eabed
VP
58292008-07-04 Vladimir Prus <vladimir@codesourcery.com>
5830
5831 Implement -target-attach.
680b56ce 5832 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 5833
db3b9a10
MS
58342008-06-21 Hui Zhu <teawater@gmail.com>
5835
5836 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
5837
dc177b7a
PA
58382008-07-03 Pedro Alves <pedro@codesourcery.com>
5839
5840 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
5841 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
5842
5843 * target.h (struct target_ops): Add to_attach_no_wait member.
5844 (target_attach_no_wait): New.
5845 * target.c (update_current_target): Inherit to_attach_no_wait.
5846
5847 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
5848 target_attach_no_wait runtime check.
5849
5850 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
5851 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
5852 win32_ops.
5853
caac8896
PA
58542008-07-03 Pedro Alves <pedro@codesourcery.com>
5855
5856 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
5857 on debug_displaced being set.
5858
0d254d6f
DJ
58592008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5860
5861 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
5862 directly instead of get_frame_id.
5863
f74c6cad
LM
58642008-06-30 Luis Machado <luisgpm@br.ibm.com>
5865
5866 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
5867 (deal_with_atomic_sequence): Update BC masks.
5868 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
5869 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
5870
395f2fc2
DJ
58712008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
5872
5873 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
5874 register, not the previous frame's.
5875
8340a3fb
LM
58762008-06-30 Luis Machado <luisgpm@br.ibm.com>
5877
5878 * source.c (select_source_symtab): Make sure we skip namespace
5879 symtabs when showing cpp source code.
5880
cfefc99a
HPN
58812008-06-30 Hans-Peter Nilsson <hp@axis.com>
5882
5883 * MAINTAINERS (Authorized committers): Fix my email address.
5884
1b98914a
VP
58852008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5886
5887 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
5888 -target-download and -target-select via CLI, so that
5889 the quoting rules are the same as they were (unfortunately)
5890 in all prior gdb releases.
5891 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
5892 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5893 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
5894 (mi_cmd_target_download, mi_cmd_target_select): Remove.
5895 (mi_cmd_execute): Set current_token even for commands
5896 routed via CLI.
5897
94afd7a6
UW
58982008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
5899
5900 * alphafbsd-tdep.c: Update for unwinder changes.
5901 * alpha-linux-tdep.c: Likewise.
5902 * alphanbsd-tdep.c: Likewise.
5903 * alphaobsd-tdep.c: Likewise.
5904 * avr-tdep.c: Likewise.
5905 * cris-tdep.c: Likewise.
5906 * frv-linux-tdep.c: Likewise.
5907 * frv-tdep.c: Likewise.
5908 * h8300-tdep.c: Likewise.
5909 * hppa-linux-tdep.c: Likewise.
5910 * iq2000-tdep.c: Likewise.
5911 * m32c-tdep.c: Likewise.
5912 * m32r-linux-tdep.c: Likewise.
5913 * m32r-tdep.c: Likewise.
5914 * m68hc11-tdep.c: Likewise.
5915 * mep-tdep.c: Likewise.
5916 * mn10300-tdep.c: Likewise.
5917 * mt-tdep.c: Likewise.
5918 * score-tdep.c: Likewise.
5919 * sh64-tdep.c: Likewise.
5920 * sh-tdep.c: Likewise.
5921 * sparc64fbsd-tdep.c: Likewise.
5922 * sparc64nbsd-tdep.c: Likewise.
5923 * sparc64obsd-tdep.c: Likewise.
5924 * v850-tdep.c: Likewise.
5925 * vaxobsd-tdep.c: Likewise.
5926 * vax-tdep.c: Likewise.
5927 * xstormy16-tdep.c: Likewise.
5928
e111d6c9
VP
59292008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5930
5931 * mi/mi-main.c (enum captured_mi_execute_command_actions)
5932 (captured_mi_execute_command_args): Remove.
5933 (captured_mi_execute_command): Cast the closure to mi_parse
5934 pointer, not to captured_mi_execute_command_args, and don't
5935 set the action field thereof.
5936 (mi_execute_command): Pass struct mi_parse, not
5937 captured_mi_execute_command_args to captured_mi_execute_command.
5938 (mi_execute_command): Remove (dead) code for suppressing
5939 printing prompt.
5940
84e46146
PA
59412008-06-28 Pedro Alves <pedro@codesourcery.com>
5942
5943 * linux-nat.c (enum sigchld_state): New.
5944 (linux_nat_async_events_state): Renamed from
5945 linux_nat_async_events_enabled.
5946 (linux_nat_event_pipe_push, my_waitpid): Adjust.
5947 (sigchld_default_action): New.
5948 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
5949 unconditionally.
5950 (linux_nat_create_inferior): Set events state to sigchld_default
5951 state.
5952 (linux_nat_resume): Adjust.
5953 (linux_nat_wait): Call linux_nat_async_events unconditionally.
5954 (sigchld_handler): Adjust.
5955 (linux_nat_async_mask): Don't set SIGCHLD actions here.
5956 (get_pending_events): Adjust.
5957 (linux_nat_async_events): Rewrite to handle enum sigchld_state
5958 instead of a boolean.
5959 (linux_nat_async): Adjust.
5960 (_initialize_linux_nat): Capture default SIGCHLD action into
5961 sigchld_default_action.
5962
20874c92
VP
59632008-06-28 Vladimir Prus <vladimir@codesourcery.com>
5964
680b56ce
AS
5965 * breakpoint.c (moribund_locations): New.
5966 (bpstat_stop_status): Process moribund locations.
5967 (update_global_location_list): Add removed
5968 locations to moribund_locations.
5969 (breakpoint_retire_moribund): New.
5970 * breakpoint.h (struct bp_location): New field
5971 events_till_retirement.
5972 (breakpoint_retire_moribund): Declare.
5973 * thread.c (thread_count): New.
5974 * infrun.c (handle_inferior_event): Call
5975 breakpoint_retire_moribund.
5976 * gdbthread.h (thread_count): Declare.
20874c92 5977
cd0b43b1
JM
59782008-06-27 Joseph Myers <joseph@codesourcery.com>
5979
5980 * dfp.c (decimal_convert): Call match_endianness before and after
5981 conversion.
5982
7c0f6dcc
JL
59832008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
5984
5985 * remote.c (remote_insert_breakpoint): Ensure that if Z0
5986 unsupported and we fall back to memory_insert_breakpoint, we
5987 use the unmodified requested address.
5988
01c66ae6
JB
59892008-06-27 Joel Brobecker <brobecker@adacore.com>
5990
5991 * dwarf2read.c (read_attribute_value): Issue a complaint when
5992 adjusting size attribute values of 0xffffffff as zero.
5993
7ccc1c74
JM
59942008-06-27 Joseph Myers <joseph@codesourcery.com>
5995
5996 * i386-tdep.c (i386_16_byte_align_p): New.
5997 (i386_push_dummy_call): Determine stack space required for
5998 arguments going forwards allowing for 16-byte alignment, then push
5999 arguments going forwards.
6000
c0a2216e
PA
60012008-06-27 Pedro Alves <pedro@codesourcery.com>
6002
6003 * infrun.c (start_remote): Don't clear thread list here.
6004 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6005 list here.
6006 * remote.c (record_currthread): Upgrade the main thread and its
6007 entry in the thread list if this is the first time we hear about
6008 threads.
6009 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6010 a tid member always alive.
6011 (remote_find_new_threads): Don't update the main thread here.
6012 (remote_start_remote): Clear thread list here. Always add the
6013 main thread.
6014 (extended_remote_attach_1): Add the main thread here.
6015 (extended_remote_mourn_1): Re-add the main thread here.
6016 (extended_remote_create_inferior_1): Add a main thread.
6017
6018 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6019
87b0e16e 60202008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
6021
6022 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6023
6024 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6025 globals.
6026 (general_thread, continue_thread): Change type to ptid_t.
6027 (record_currthread): Take a ptid_t parameter instead of an
6028 integer.
6029 (MAGIC_NULL_PID): Delete.
6030 (set_thread): Take a ptid_t parameter and adjust.
6031 (set_general_thread, set_continue_thread): New.
6032 (remote_thread_alive, remote_newthread_step)
6033 (remote_current_thread, remote_find_new_threads)
6034 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6035 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6036 (threadalive_test, remote_pid_to_str)
6037 (remote_get_thread_local_address): Adjust.
6038 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6039 and any_thread_ptid.
6040
3ca64bd3
JK
60412008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6042
6043 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6044 * configure: Regenerated.
6045
28e94949
JB
60462008-06-26 Joel Brobecker <brobecker@adacore.com>
6047
6048 * dwarf2read.c (read_attribute_value): Treat size attribute
6049 values of 0xffffffff as if the attribute value was zero.
6050
8a77dff3
VP
60512008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6052
6053 * linux-nat.c: Add description of overall logic.
6054
d5af19ba
DJ
60552008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6056
6057 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6058 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6059 all dependencies on $(gdb_stdint_h).
6060 (distclean): Do not delete gdb_stdint.h.
6061 * acinclude.m4: Do not use stdint.m4.
6062 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6063 uintptr_t, and gdb_stdint.h.
6064 * defs.h: Include <stdint.h>.
6065 * gdb_thread_db.h: Assume stdint.h is already included.
6066 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6067 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6068 include gdb_stdint.h.
6069 * configure, config.in: Regenerate.
6070
00fbcec4
JM
60712008-06-26 Joseph Myers <joseph@codesourcery.com>
6072
6073 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6074 decimal floating-point values in GPRs for soft-float.
6075 (do_ppc_sysv_return_value): Handle returning decimal
6076 floating-point values in GPRs for soft-float.
6077
d5086790
VP
60782008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6079
6080 * target.c (target_read_until_error): New.
680b56ce
AS
6081 * target.h (target_read_until_error): Declare.
6082 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6083 target_read_until_error.
d5086790 6084
fe9441f6
JK
60852008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6086
6087 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6088 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6089 after the DECFLOAT detection to fix a memory leak. Remove the
6090 redundant NUM initialization. Protect the DECFLOAT detection memory
6091 access before the P block. Restore the P memory content for the
6092 DECFLOAT detection.
6093
ce8f13f8
VP
60942008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6095
6096 Kill the return value for all MI command functions.
6097 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6098 (mi_cmd_argv_ftype): Change return type to void.
6099
6100 * mi/mi-main.c: Adjust all function that implement
6101 MI commands to return nothing.
6102 (struct captured_mi_execute_command_actions):
6103 Remove the rc field.
6104 (mi_cmd_execute): Return nothing.
6105 (mi_execute_async_cli_command): Return nothing.
6106 (mi_cmd_exec_interrupt): Don't print ^done here.
6107 (mi_cmd_target_select): Don't print ^connected here.
6108 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6109 Special-case -target-select and output ^connected, not ^done.
6110
6111 * mi/mi-cmd-break.c: Adjust.
6112 * mi/mi-cmd-disas.c: Adjust.
6113 * mi/mi-cmd-env.c: Adjust.
6114 * mi/mi-cmd-file.c: Adjust.
6115 * mi/mi-cmd-stack.c: Adjust.
6116 * mi/mi-cmd-target.c: Adjust.
6117 * mi/mi-cmd-var.c: Adjust.
6118 * mi/mi-interp.c: Adjust.
6119 * mi/mi-symbol-cmds.c: Adjust.
6120
a2840c35
VP
61212008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6122
6123 Emit ^running via observer.
6124 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6125 ^running here.
6126 (mi_on_resume): Print ^running if not previously output.
6127 * mi/mi-main.c (running_result_record_printed): New.
6128 (captured_mi_execute_command): Reset
6129 running_result_record_printed. Use running_result_record_printed
6130 to decide if we should skip ^done.
6131 (mi_execute_async_cli_command): Don't print ^running here.
6132 * mi/mi-main.h (current_token, running_result_record_printed):
6133 Declare.
a2840c35 6134
1f41b062
MS
61352008-06-24 Michael Snyder <msnyder@specifix.com>
6136
6137 * infrun.c (_initialize_infrun): White space and typo fix.
6138
eff8332b
CF
61392008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6140
6141 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6142 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6143 when first loading DLL with "dll" command.
6144
e50ce6de 61452008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6146
6147 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6148
e50ce6de 61492008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6150
6151 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6152
59ddf1e7
JB
61532008-06-18 Joel Brobecker <brobecker@adacore.com>
6154
680b56ce
AS
6155 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6156 the target cannot run.
59ddf1e7
JB
6157
61582008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6159
6160 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6161 we're attaching to a running process.
6162
e50ce6de 61632008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6164
6165 * win32-nat.c (handle_load_dll): Give dll name and load address
6166 if debug_events is on.
6167 (handle_unload_dll): Likewise.
6168
8f6a8e84
VP
61692008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6170
6171 Don't suppress *running when doing finish.
680b56ce
AS
6172 * infcall.c (call_function_by_hand): Set both
6173 suppress_resume_observer and suppress_stop_observer.
6174 * infcmd.c (suppress_run_stop_observers): Split into...
6175 (suppress_resume_observer, suppress_stop_observer): ...those.
6176 (finish_command_continuation): Clear suppress_stop_observer.
6177 (finish_command): Set suppress_stop_observer.
6178 * inferior.h (suppress_run_stop_observers): Split into...
6179 (suppress_resume_observer, suppress_stop_observer): ...those.
6180 * infrun.c (normal_stop): Check for suppress_stop_observer.
6181 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6182
4309257c
PM
61832008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6184 Pierre Muller <muller@ics.u-strasbg.fr>
6185
6186 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6187 * gdbarch.h, gdbarch.c: Regenerate.
6188 * i386-tdep.h (i386_skip_main_prologue): Declare.
6189 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6190 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6191 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6192 * symtab.c (find_function_start_sal): When pc points at the "main"
6193 function, call gdbarch_skip_main_prologue.
6194
a4e2ee12
DJ
61952008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6196
6197 * value.c (value_primitive_field): Fetch lazy register values.
6198
060871df
PA
61992008-06-11 Pedro Alves <pedro@codesourcery.com>
6200
6201 * NEWS: Mention support removal of undocumented S AA p PID stop
6202 reply packet.
6203
6204 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6205
336de56d
SS
62062008-06-10 Stan Shebs <stan@codesourcery.com>
6207
6208 * MAINTAINERS: Update my affiliation and address.
6209
7949220d
AS
62102008-06-10 Andreas Schwab <schwab@suse.de>
6211
6212 * top.c (print_gdb_version): Don't print final newline.
6213
e1ac3328
VP
62142008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6215
6216 Implement *running.
680b56ce
AS
6217 * Makefile.in: Update dependencies.
6218 * gdbthread.h (struct thread_info): New field
6219 running_.
6220 (set_running, is_running): New.
6221 * thread.c (set_running, is_running): New.
6222 * inferior.h (suppress_normal_stop_observer): Rename to...
6223 (suppress_run_stop_observers): ..this.
6224 * infcmd.c (suppress_normal_stop_observer): Rename to...
6225 (suppress_run_stop_observers): ..this.
6226 (finish_command_continuation, finish_command): Adjust.
6227 * infcall.c (call_function_by_hand): Adjust.
6228 * infrun.c (normal_stop): Call set_running.
6229 * target.c (target_resume): New. Call set_running.
6230 * target.h (target_resume): Convert from macro to
6231 a function.
6232
6233 * mi/mi-interp.c (mi_on_resume): New.
6234 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6235
f7f9a841
VP
62362008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6237
6238 Use observers to report stop events in MI.
680b56ce
AS
6239 * mi/mi-interp.c (mi_on_normal_stop): New.
6240 (mi_interpreter_init): Register mi_on_normal_stop.
6241 (mi_interpreter_exec_continuation): Remove.
6242 (mi_cmd_interpreter_exec): Don't register the above.
6243 * mi/mi-main.c (captured_mi_execute_command): Don't care
6244 about sync_execution.
6245 (mi_execute_async_cli_command): Don't install continuation. Don't
6246 print *stopped.
6247 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6248
f5871ec0
VP
62492008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6250
6251 Suppress normal stop observer when it's problematic.
680b56ce
AS
6252 * inferior.h (suppress_normal_stop_observer): New.
6253 * infcall.c (call_function_by_hand): Disable stop events when
6254 doing function calls.
6255 * infmcd.c (suppress_normal_stop_observer): New.
6256 (finish_command_continuation): Call normal_stop observer
6257 explicitly.
6258 (finish_command): Disable stop events inside proceed.
6259 * infrun.c (normal_stop): Don't call normal stop observer if
6260 suppressed of if multi-step is in progress.
f5871ec0 6261
3d3191a6
VP
62622008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6263
6264 Remove stale code.
680b56ce
AS
6265 * infrun.c (finish_command): Don't pass cleanup
6266 to continuation.
6267 (finish_command_continuation): Don't grab cleanup from
6268 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6269
0b080f59
VP
62702008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6271
6272 Introduce common cleanup for restoring integers.
680b56ce
AS
6273 * defs.h (make_cleanup_restore_integer): New declaration.
6274 (struct cleanup): New field free_arg.
6275 (make_my_cleanup_2): New.
6276 * utils.c (restore_integer_closure, restore_integer)
6277 (make_cleanup_restore_integer): New.
6278 (make_my_cleanup): Initialize the free_arg field and
6279 renamed to make_my_cleanup_2.
6280 (do_my_cleanups): Call free_arg.
6281 (discard_cleanups): Call free_arg.
6282 * breakpoint.c (restore_always_inserted_mode): Remove.
6283 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6284
b4f62b57
DE
62852008-06-09 Doug Evans <dje@google.com>
6286
6287 * remote.c (remote_wait): Include beginning of malformed packet
6288 in error output.
6289
37cd5d19
TT
62902008-06-09 Tom Tromey <tromey@redhat.com>
6291
6292 * completer.c (complete_line): Don't special-case
6293 expression_completer.
6294 (expression_completer): Only pass last word to
6295 location_completer.
6296 * c-exp.y (yylex): Check 'token', not 'operator'.
6297
3526781e
DJ
62982008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6299
6300 * configure.ac (build_warnings): Add -Wno-format for mingw.
6301 * configure: Regenerated.
6302
d001be7a
DJ
63032008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6304
6305 * NEWS: Make indentation consistent. Move exec tracing entry out
6306 of remote packet list.
6307
65d12d83
TT
63082008-06-06 Tom Tromey <tromey@redhat.com>
6309
6310 * value.h (evaluate_subexpression_type, extract_field_op):
6311 Declare.
6312 * printcmd.c (_initialize_printcmd): Use expression_completer for
6313 'p', 'inspect', 'call'.
6314 * parser-defs.h (parse_field_expression): Declare.
6315 * parse.c: Include exceptions.h.
6316 (in_parse_field, expout_last_struct): New globals.
6317 (mark_struct_expression): New function.
6318 (prefixify_expression): Return int.
6319 (prefixify_subexp): Return int. Use expout_last_struct.
6320 (parse_exp_1): Update.
6321 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6322 in_parse_field.
6323 (parse_field_expression): New function.
6324 * expression.h (parse_field_expression): Declare.
6325 (in_parse_field): Likewise.
6326 * eval.c (evaluate_subexpression_type): New function.
6327 (extract_field_op): Likewise.
6328 * completer.h (expression_completer): Declare.
6329 * completer.c (expression_completer): New function.
6330 (count_struct_fields, add_struct_fields): New functions.
6331 * c-exp.y (yyparse): Redefine.
6332 (COMPLETE): New token.
6333 (exp): New productions.
6334 (saw_name_at_eof, last_was_structop): New globals.
6335 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6336 (c_parse): New function.
6337 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6338 for watch, awatch, and rwatch.
6339 * Makefile.in (parse.o): Depend on exceptions_h.
6340
fed27633
PP
63412008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6342
6343 PR gdb/1147
6344 * gdb/valopts.c (find_overload_match): Handle references
6345 to pointers.
6346
aced2898
PH
63472008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6348
6349 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6350 account the bitsize of the 'from' operand.
6351
a2b87ed1
PA
63522008-06-06 Pedro Alves <pedro@codesourcery.com>
6353
6354 * annotate.h (annotate_thread_changed): Declare.
6355
3d6d0b9d
NR
63562008-06-06 Nick Roberts <nickrob@snap.net.nz>
6357
6358 * annotate.c (annotate_thread_changed): New function.
6359 * thread.c (thread_command) : Use it.
6360 * infrun.c (normal_stop): Use it.
6361
c16158bc 63622008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6363 Nathan Sidwell <nathan@codesourcery.com>
6364 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6365
6366 * acinclude.m4: Include ../config/acx.m4.
6367 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6368 * configure, config.in: Regenerate.
6369 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6370 address.
6371 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6372
75c99385
PA
63732008-06-05 Pedro Alves <pedro@codesourcery.com>
6374
6375 Replace 'target async' by 'maintenance set remote-async' and
6376 'target remote' combination.
6377
6378 * remote.c (remote_async_wait): Merge into remote_wait, and
6379 remove.
6380 (remote_async_permitted, remote_async_permitted_set): New
6381 variables.
6382 (set_maintenance_remote_async_permitted)
6383 (show_maintenance_remote_async_permitted): New functions.
6384 (remote_async_ops, extended_async_remote_ops): Delete.
6385 (remote_async_open, extended_remote_async_open): Delete.
6386 (remote_open_1): Drop async_p parameter. Update callers. Replace
6387 async_p with remote_async_permitted checks.
6388 (extended_async_remote_attach): Delete.
6389 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6390 (remote_async_terminal_inferior): Rename to...
6391 (remote_terminal_inferior): ... this, and add
6392 remote_async_termitted check.
6393 (remote_async_terminal_ours): Rename to...
6394 (remote_terminal_ours): ... this, and add remote_async_termitted
6395 check.
6396 (remote_wait, remote_async_wait): Merge and leave remote_wait
6397 only.
6398 (remote_kill, remote_async_kill): Merge and leave remote_kill
6399 only.
6400 (remote_async_mourn, extended_async_remote_mourn): Delete.
6401 (extended_remote_create_inferior_1): Drop async_p parameter.
6402 Update callers. Always use extended_remote_ops.
6403 (extended_remote_async_create_inferior): Delete.
6404 (remote_return_zero): Delete.
6405 (init_remote_ops): Register remote_can_async_p, remote_async,
6406 remote_async_mask, remote_terminal_inferior and
6407 remote_terminal_ours.
6408 (remote_can_async_p, remote_is_async_p): Check for
6409 remote_async_permitted.
6410 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6411 (set_remote_cmd): Don't add async and extended-async targets.
6412 (_initialize_remote): Add set/show remote-async maintenance
6413 commands.
6414
cf30943b
PA
64152008-06-05 Pedro Alves <pedro@codesourcery.com>
6416
6417 * remote.c (kill_kludge): Delete.
6418 (remote_wait, remote_async_wait): Don't set it.
6419 (remote_kill, remote_async_kill): Don't do anything with it.
6420
49fd4a42
PA
64212008-06-05 Pedro Alves <pedro@codesourcery.com>
6422
6423 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6424
2e618c13
AR
64252008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6426
6427 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6428 (deprecated_bcache_added): New function name. Body of function
6429 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6430 * bcache.h (deprecated_bcache_added): New function.
6431 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6432 work from add_psymbol_to_list - initialises partial symbol and stashes
6433 it in objfile's cache.
680b56ce 6434 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6435 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6436 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6437 here. If adding to global list, do not duplicate partial symbols in the
6438 partial symtab.
6439
c0b37c48
AR
64402008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6441
6442 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6443 'exception caught|thrown' message.
6444
1e3a102a
JK
64452008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6446
6447 * Makefile.in: Update dependencies.
6448 * dwarf2expr.c: New include "gdb_assert.h".
6449 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6450 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6451 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6452 Increase/decrease RECURSION_DEPTH around the function.
6453
8d385431
DJ
64542008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6455
6456 * remote.c (get_offsets): Handle a single segment.
6457 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6458 than segments.
6459
93a57060
DJ
64602008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6461
6462 * solib-svr4.c (struct lm_info): Add lm_addr.
6463 (main_lm_addr): New.
6464 (svr4_default_sos): Set lm_addr.
6465 (svr4_current_sos): Set lm_addr and main_lm_addr.
6466 (svr4_fetch_objfile_link_map): Rewrite.
6467 (svr4_clear_solib): Clear main_lm_addr.
6468
609ba780 64692008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6470 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6471
6472 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6473 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6474
c95f5026
JB
64752008-06-02 Roman Zippel <zippel@linux-m68k.org>
6476
6477 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6478
e4d8bc08
JB
64792008-06-02 Roman Zippel <zippel@linux-m68k.org>
6480
6481 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6482
40adab56
JB
64832008-06-01 Joel Brobecker <brobecker@adacore.com>
6484
6485 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6486 treat pointers in data space as function descriptors if the
6487 target address is also in the data space.
6488
bfd66dd9
JB
64892008-05-30 Joel Brobecker <brobecker@adacore.com>
6490
6491 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6492 the trad-frame register value for the SP register.
6493
7ea566be
MK
64942008-05-29 Mark Kettenis <kettenis@gnu.org>
6495
6496 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6497
fcac911a
JB
64982008-05-28 Joel Brobecker <brobecker@adacore.com>
6499
6500 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6501 that identifies function descriptors outside of the .opd section.
6502
ade92717
AR
65032008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6504
6505 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6506 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6507 'bkptno'.
6508 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6509 catchpoints.
6510 (handle_gnu_v3_exceptions): Use tempflag.
6511
f7f9ae2c
VP
65122008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6513
6514 Refactor varobj_update interface.
680b56ce
AS
6515 * varobj.c (varobj_update): Report changes as vector. Also
6516 return not just a list of varobj, but a list of special structures
6517 that tell what exactly has changed.
6518 * varobj.h (enum varobj_update_error): Rename to
6519 varobj_scope_status.
6520 (struct varobj_update_result_t): New.
6521 (varobj_update): Adjust prototype.
6522 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6523
ea56f9c2
VP
65242008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6525
6526 * varobj.c (varobj_update): Fix comment typo.
6527 Fix indentation.
6528
c7efd0b9
JB
65292008-05-26 Joel Brobecker <brobecker@adacore.com>
6530
6531 Set the symtab field of symbols read from ECOFF debugging entries.
6532 * mdebugread.c (add_symbol): Add new parameter symtab.
6533 (parse_symbol): Update calls to add_symbol throughout.
6534
2a2d4dc3
AS
65352008-05-27 Andreas Schwab <schwab@suse.de>
6536
6537 * symtab.h (enum address_class): Remove LOC_REGPARM and
6538 LOC_COMPUTED_ARG.
6539 (struct symbol): Add is_argument.
6540 (SYMBOL_IS_ARGUMENT): Define.
6541
6542 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6543 * buildsym.c (finish_block): Likewise.
6544 * stack.c (print_frame_args, print_block_frame_locals)
6545 (print_frame_arg_vars): Likewise.
6546 * symtab.c (lookup_block_symbol): Likewise.
6547 * tracepoint.c (add_local_symbols): Likewise.
6548 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6549
6550 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6551 * dwarf2read.c (new_symbol): Likewise.
6552 * mdebugread.c (parse_symbol): Likewise.
6553 * stabsread.c (define_symbol): Likewise.
6554
6555 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6556 and LOC_COMPUTED_ARG.
6557 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6558 * ax-gdb.c (gen_var_ref): Likewise.
6559 * eval.c (evaluate_subexp_for_address): Likewise.
6560 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6561 * m2-exp.y (yylex): Likewise.
6562 * printcmd.c (address_info): Likewise.
6563 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6564 * tracepoint.c (collect_symbol, scope_info): Likewise.
6565
17ea7499
CES
65662008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6567
6568 * gdbarch.sh: Added new gdbarch struct
6569 core_regset_sections.
6570 * gdbarch.c: Refreshed.
6571 * gdbarch.h: Refreshed.
6572 * regset.h (core_regset_section): Declared.
6573 * linux-nat.c (linux_nat_do_thread_registers): Added
6574 support for the new gdbarch struct core_regset_sections.
6575 * utils.c (host_address_to_string): New function.
6576 * defs.h (host_address_to_string): New prototype.
6577 * i386-linux-tdep.c (i386_regset_rections): New register
6578 sections list for i386.
6579 (i386_linux_init_abi): Initialized new gdbarch struct
6580 core_regset_sections.
6581 * Makefile.in: Updated to reflect dependency changes.
6582 * ppc-linux-tdep.c (ppc_regset_sections): Register
6583 sections list for ppc.
6584 (ppc_linux_init_abi): Initialized new gdbarch struct
6585 core_regset_sections
6586
c4fc331b
AS
65872008-05-24 Andreas Schwab <schwab@suse.de>
6588
6589 * linespec.c (decode_objc): Save current language around call to
6590 get_selected_block.
6591
e936309c
JB
65922008-05-23 Joel Brobecker <brobecker@adacore.com>
6593
6594 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6595 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6596 Return the proper bound value if the array index type is an
6597 enumerated type. Compute the high bound if requested.
6598 (val_print_array_elements): Handle the case when the array
6599 element has a null size.
6600 * ada-valprint.c (print_optional_low_bound): Add handling
6601 for empty arrays or arrays of zero-size elements.
6602 (ada_val_print_array): New function, extracted out from
6603 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6604 handle empty arrays and arrays of zero-size elements.
6605 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6606 code by call to ada_val_print_array.
6607 (ada_value_print): Remove handling of null array. The handling
6608 was incomplete and is now better handled by ada_val_print_array.
6609
50ee7535
MD
66102008-05-23 Markus Deuling <deuling@de.ibm.com>
6611
6612 * annotate.c (annotate_source, annotate_frame_begin): Replace
6613 deprecated_print_address_numeric with paddress.
6614 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6615 * tui/tui-stack.c (tui_make_status_line): Likewise.
6616
6617 * defs.h (deprecated_print_address_numeric): Remove.
6618 * printcmd.c (deprecated_print_address_numeric): Remove.
6619 * maint.c (maint_print_section_info): Fix comment.
6620
d44e8473
MD
66212008-05-23 Markus Deuling <deuling@de.ibm.com>
6622
6623 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6624 print_binary_chars, print_char_chars): Add byte_order parameter and
6625 replace gdbarch_byte_order.
6626 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6627 expressions and remove them. Remove unused TWO_TO_FOURTH.
6628 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6629 endianness. Update call to print_hex_chars.
6630 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6631 print_binary_chars, print_char_chars): Add byte_order parameter.
6632 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6633 get at the endianness. Update print_*_char calls to use byte_order.
6634
10f4ecb8
UW
66352008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6636
6637 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6638 instead of a union.
6639 (SYMBOL_LOCATION_BATON): Update.
6640
c3b22bd0
UW
66412008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6642
6643 * symtab.h (enum address_class): Remove LOC_BASEREG and
6644 LOC_BASEREG_ARG.
6645 (struct symbol): Remove "basereg" member of "aux_value" union.
6646 (SYMBOL_BASEREG): Remove.
6647
6648 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6649 or LOC_BASEREG_ARG.
6650 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6651 (ada_add_block_symbols): Likewise.
6652 * ax-gdb.c (gen_var_ref): Likewise.
6653 * buildsym.c (finish_block): Likewise.
6654 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6655 * m2-exp.y (yylex): Likewise.
6656 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6657 * printcmd.c (address_info): Likewise.
6658 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6659 (print_frame_arg_vars): Likewise.
6660 * symmisc.c (print_symbol): Likewise.
6661 * symtab.c (lookup_block_symbol): Likewise.
6662 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6663 (scope_info): Likewise.
6664
aa59ba6b
UW
66652008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6666
6667 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6668
6669 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6670 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6671 (ada_add_block_symbols): Likewise.
6672 * ax-gdb.c (gen_var_ref): Likewise.
6673 * buildsyms.c (finish_block): Likewise.
6674 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6675 * m2-exp.y (yylex): Likewise.
6676 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6677 * printcmd.c (address_info): Likewise.
6678 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6679 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6680 * symtab.c (lookup_block_symbol): Likewise.
6681 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6682 (scope_info): Likewise.
6683
0bb4e8c4
UW
66842008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6685
6686 * symtab.h (enum address_class): Remove LOC_INDIRECT and
6687 LOC_HP_THREAD_LOCAL_STATIC.
6688
6689 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
6690 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
6691 (read_var_value): Likewise.
6692 * buildsym.c (finish_block): Likewise.
6693 * objfiles.c (objfile_relocate): Likewise.
6694 * printcmd.c (address_info): Likewise.
6695 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6696 * tracepoint.c (scope_info): Likewise.
6697
9f61f19b
MG
66982008-05-21 Markus Deuling <deuling@de.ibm.com>
6699 Maxim Grigoriev <maxim2405@gmail.com>
6700
6701 * xtensa-tdep.c (xtensa_read_register): Remove.
6702 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
6703 argument litbase to call0_frame_cache().
6704 (call0_track_op, call0_analyze_prologue)
6705 (call0_frame_cache): Use extra argument litbase.
6706
0e479716
JB
67072008-05-21 Joel Brobecker <brobecker@adacore.com>
6708
6709 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
6710
214be669
UW
67112008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6712
6713 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
6714
0cd9ab92
UW
67152008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6716
6717 * alpha-mdebug-tdep.c: Include "trad-frame.h".
6718 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
6719 struct trad_frame_saved_reg *.
6720 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
6721 trad_frame_alloc_saved_regs. Update accesses. Record previous
6722 value of SP as being vfp.
6723 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
6724 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
6725
f52cb1b8
MD
67262008-05-21 Markus Deuling <deuling@de.ibm.com>
6727
6728 * score-tdep.c (score_print_insn): Get the current endianess from
6729 disassemble_info instead of gdbarch_byte_order.
6730
8fa75a5d
PA
67312008-05-21 Pedro Alves <pedro@codesourcery.com>
6732
6733 * frame.c (get_prev_frame_1): Build frame id before setting
6734 this_frame->prev_p, not after.
6735
e8e48118
NR
67362008-05-21 Nick Roberts <nickrob@snap.net.nz>
6737
6738 * annotate.c (annotate_new_thread): New function for new-thread
6739 annotation.
6740 * annotate.h: (annotate_new_thread): New extern.
6741 * thread.c (add_thread_with_info): Use it.
6742 * Makefile.in (thread.o): Add dependency on annotate.h.
6743
c57918b2
JB
67442008-05-20 Joel Brobecker <brobecker@adacore.com>
6745
6746 * win32-nat.c (win32_wait): Block the control-c event while
6747 waiting for a debug event.
6748
6c9353d3
PA
67492008-05-19 Pedro Alves <pedro@codesourcery.com>
6750
6751 * symtab.h (lookup_symbol_in_language): Update comment.
6752 * symtab.c (lookup_symbol_aux_block): Update comment.
6753 * ada-lang.c (ada_lookup_symbol_list): Update comment.
6754
2570f2b7
UW
67552008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6756
6757 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
6758 (lookup_symbol): Likewise.
6759 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
6760 (lookup_symbol): Likewise.
6761 (search_symbols): Update.
6762
6763 * linespec.c (find_methods, collect_methods): Update.
6764 (add_matching_methods, add_constructors): Update.
6765 (decode_compound, decode_dollar, decode_variable): Update.
6766 (lookup_prefix_sym): Update.
6767
6768 (symbol_found): Remove SYM_SYMTAB parameter.
6769 Use SYMBOL_SYMTAB (sym) instead.
6770
6771 * gdbtypes.c (lookup_typename): Update.
6772 (lookup_struct, lookup_union, lookup_enum): Update.
6773 (lookup_template_type): Update.
6774 (check_typedef): Update.
6775 * language.c (lang_bool_type): Update.
6776 * mdebugread.c (parse_procedure): Update.
6777 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6778 * parse.c (write_dollar_variable): Update.
6779 * printcmd.c (address_info): Update.
6780 * source.c (select_source_symtab): Update.
6781 * stack.c (print_frame_args, print_frame_arg_vars): Update.
6782 * valops.c (find_function_in_inferior): Update.
6783 (value_struct_elt_for_reference): Update.
6784 * value.c (value_static_field, value_fn_field): Update.
6785
6786 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6787 * arm-tdep.c (arm_skip_prologue): Update.
6788 * mt-tdep.c (mt_skip_prologue): Update.
6789 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
6790
6791 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
6792 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
6793 (add_defn_to_vec): Likewise.
6794 (ada_add_block_symbols): Likewise.
6795 (lookup_cached_symbol, cache_symbol): Likewise.
6796 (standard_lookup): Update.
6797 (ada_lookup_symbol_list): Update.
6798
6799 * c-valprint.c (c_val_print): Update.
6800 * cp-support.c (cp_lookup_rtti_type): Update.
6801 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
6802 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
6803 * p-valprint.c (pascal_val_print): Update.
6804 * scm-lang.c (scm_lookup_name): Update.
6805
6806 * c-exp.y: Update.
6807 * f-exp.y: Update.
6808 * jv-exp.y: Update.
6809 * m2-exp.y: Update.
6810 * objc-exp.y: Update.
6811 * p-exp.y: Update.
6812
21b556f4
UW
68132008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
6814
6815 * language.h (struct language_defn): Remove SYMTAB parameter from
6816 la_lookup_symbol_nonlocal callback function pointer.
6817
6818 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6819 (ada_lookup_encoded_symbol): Likewise.
6820 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
6821 Always call fixup_symbol_section.
6822 (ada_lookup_symbol): Remove SYMTAB parameter.
6823 (ada_lookup_symbol_nonlocal): Likewise.
6824 * ada-exp.y (write_object_renaming): Update.
6825 (find_primitive_type): Likewise.
6826
6827 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6828 (cp_lookup_symbol_namespace): Likewise.
6829 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
6830 (lookup_symbol_file): Likewise.
6831 (lookup_possible_namespace_symbol): Likewise.
6832 (cp_lookup_symbol_nonlocal): Likewise.
6833 (cp_lookup_symbol_namespace): Likewise.
6834 (cp_lookup_nested_type): Update.
6835
6836 * scm-valprint.c (scm_inferior_print): Update.
6837 * valops.c (value_maybe_namespace_elt): Update.
6838
6839 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
6840 lookup_lib_global_symbol callback function pointer.
6841 (solib_global_lookup): Remove SYMTAB parameter.
6842 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
6843 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
6844
6845 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
6846 (lookup_symbol_static): Likewise.
6847 (lookup_symbol_global): Likewise.
6848 (lookup_symbol_aux_block): Likewise.
6849 (lookup_global_symbol_from_objfile): Likewise.
6850 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
6851 (lookup_symbol_aux_local): Likewise.
6852 (lookup_symbol_aux_block): Likewise.
6853 (lookup_symbol_aux_symtabs): Likewise.
6854 (lookup_symbol_aux_psymtabs): Likewise.
6855 (lookup_global_symbol_from_objfile): Likewise.
6856 (basic_lookup_symbol_nonlocal): Likewise.
6857 (lookup_symbol_static): Likewise.
6858 (lookup_symbol_global): Likewise.
6859
6860 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
6861
39237dd1
PA
68622008-05-17 Pedro Alves <pedro@codesourcery.com>
6863
6864 * remote.c (init_extended_remote_ops): Fix typo.
6865
7c0d47a5
PA
68662008-05-16 Pedro Alves <pedro@codesourcery.com>
6867
6868 * NEWS: Mention new DICOS x86 target configuration.
6869
907fc202
UW
68702008-05-16 Pedro Alves <pedro@codesourcery.com>
6871 Ulrich Weigand <uweigand@de.ibm.com>
6872
6873 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
6874 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
6875
6876 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
6877 use it instead of ginfo->value.address. Look up minimal symbol by
6878 address and name. Assume OBJFILE is non-NULL.
6879 (fixup_symbol_section): Ensure we always have an objfile to look
6880 into. Extract and pass to fixup_section the symbol's address that
6881 will match the minimal symbol's address.
6882 (fixup_psymbol_section): Likewise.
6883
6884 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
6885 overlays and the addrmap returned the wrong section.
6886
6887 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
6888 calling fixup_symbol_section.
6889
42848c96
UW
68902008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6891
6892 * minsyms.c: Include "target.h".
6893 (find_solib_trampoline_target): Handle minimal symbols pointing
6894 to function descriptors as well.
6895 * Makefile.in (minsyms.o): Update dependencies.
6896
6897 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
6898 (ppc64_standard_linkage1): ... this. Fix optional instructions.
6899 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
6900 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
6901 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
6902 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
6903 (ppc64_standard_linkage_target): Rename to ...
6904 (ppc64_standard_linkage1_target): ... this.
6905 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
6906 (ppc64_skip_trampoline_code): Support three variants of standard
6907 linkage stubs. Call find_solib_trampoline_target to handle
6908 glink stubs.
6909
74d1f063
UW
69102008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6911
6912 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
6913 ppc64_sysv_abi_adjust_breakpoint_address.
6914 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6915 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
6916
8526f328
UW
69172008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6918
6919 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
6920 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
6921 of ppc_linux_skip_trampoline_code.
6922
ba2b1c56
DJ
69232008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
6924
6925 * gdbarch.sh: Delete dwarf_reg_to_regnum.
6926 * gdbarch.c, gdbarch.h: Regenerated.
6927 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
6928 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
6929 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
6930
4fdebdd0
PA
69312008-05-15 Pedro Alves <pedro@codesourcery.com>
6932
6933 * linux-nat.c (trap_ptid): Delete.
6934 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
6935 Adjust.
6936 * linux-thread-db.c (thread_db_wait): Adjust.
6937
bc882aa9
JB
69382008-05-15 Joel Brobecker <brobecker@adacore.com>
6939
6940 * linespec.c (decode_line_1): Fix a couple of comments.
6941
83b94be5
AM
69422008-05-15 Alan Modra <amodra@bigpond.net.au>
6943
6944 * dbxread.c: Formatting.
6945 (INTERNALIZE_SYMBOL): Init n_other.
6946 (set_namestring): Take pointer to nlist arg rather than struct
6947 copy. Update all callers.
6948
87669130
AS
69492008-05-15 Andreas Schwab <schwab@suse.de>
6950
6951 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
6952 (dwarf2read.o): Add $(addrmap_h).
6953
00d5f93a
UW
69542008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6955
6956 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
6957 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
6958 to handle ppc32 PLT entries.
6959 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
6960 only on ppc64.
6961
2eaf8d2a
DJ
69622008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6963
6964 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
6965 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
6966 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
6967 (lookup_minimal_symbol_by_pc_section): Use
6968 lookup_minimal_symbol_by_pc_section_1.
6969 (lookup_solib_trampoline_symbol_by_pc): Likewise.
6970
20c62566
JB
69712008-05-13 Joel Brobecker <brobecker@adacore.com>
6972
6973 * findcmd.c: Add #include "gdb_stdint.h".
6974 * Makefile.in (findcmd.o): Update dependencies.
6975
87a7da84
DM
69762008-05-11 David S. Miller <davem@davemloft.net>
6977
de0c3d9d
DM
6978 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
6979 long double size override, Linux does use 128-bit now.
6980
e8467b5a
DM
6981 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
6982 (sparc_linux_write_pc): New function.
6983 (sparc32_linux_init_abi): Register it.
6984 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
6985 (sparc64_linux_write_pc): New function.
6986 (sparc64_linux_init_abi): Register it.
6987
87a7da84
DM
6988 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
6989 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
6990
8a4c2d24
UW
69912008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6992
6993 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6994 and info.tdep_info before calling gdbarch_init_osabi.
6995
003f3813
JB
69962008-05-09 Joel Brobecker <brobecker@adacore.com>
6997
6998 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6999 the type of the right hand side of the assignment to the type
7000 of the left hand side if the left hand side is a convenience
7001 variable.
7002
7ae0e2a2
UW
70032008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7004
7005 * NEWS: Mention gdbserver bi-arch capability.
7006
08388c79
DE
70072008-05-09 Doug Evans <dje@google.com>
7008
7009 New "find" command.
7010 * NEWS: Document find command and qSearch:memory packet.
7011 * Makefile.in (SFILES): Add findcmd.c.
7012 (COMMON_OBJS): Add findcmd.o.
7013 (findcmd.o): New rule.
7014 * findcmd.c: New file.
7015 * target.h (target_ops): New member to_search_memory.
7016 (simple_search_memory): Declare.
7017 (target_search_memory): Declare.
7018 * target.c (simple_search_memory): New fn.
7019 (target_search_memory): New fn.
7020 * remote.c (PACKET_qSearch_memory): New packet kind.
7021 (remote_search_memory): New fn.
7022 (init_remote_ops): Init to_search_memory.
7023 (init_extended_remote_ops): Ditto.
7024 (_initialize_remote): Add qSearch:memory packet config command.
7025
11c68c47
EZ
70262008-05-09 Eli Zaretskii <eliz@gnu.org>
7027
7028 * thread.c (_initialize_thread): Don't use commas and periods in
7029 first line of doc string of "set/show print thread-events".
7030
6834c9bb
JB
70312008-05-08 Joel Brobecker <brobecker@adacore.com>
7032
7033 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7034 Update for unwinder changes.
7035
86c31399
JB
70362008-05-08 Joel Brobecker <brobecker@adacore.com>
7037
7038 * frame.c (get_frame_base_address, get_frame_locals_address)
7039 (get_frame_args_address): Pass the correct frame when calling
7040 frame_base_find_by_frame.
7041
96ef3384
UW
70422008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7043
7044 * remote.c (extended_remote_attach_1): Call target_find_description.
7045
45280a52
DJ
70462008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7047
7048 * remote.c (extended_remote_create_inferior_1): Clean up
7049 before marking the target running.
7050
227e86ad
JB
70512008-05-08 Joel Brobecker <brobecker@adacore.com>
7052
7053 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7054 changes.
7055
236369e7
JB
70562008-05-07 Joel Brobecker <brobecker@adacore.com>
7057
7058 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7059 sparc64-sol2-tdep.c: Update for unwinder changes.
7060
de237128
DJ
70612008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7062
7063 * cp-support.c (mangled_name_to_comp): Initialize storage.
7064 (unqualified_name_from_comp): Likewise.
7065
4fff2411
JZ
70662008-05-07 Jie Zhang <jie.zhang@analog.com>
7067
7068 * remote.c (remote_insert_breakpoint): Call get_remote_state
7069 after gdbarch_breakpoint_from_pc is called.
7070 (remote_insert_hw_breakpoint): Likewise.
7071
d8ca156b
JB
70722008-05-06 Joel Brobecker <brobecker@adacore.com>
7073
7074 * valprint.c (val_print): Add new language parameter and use it
7075 instead of using the current_language. Update calls to val_print
7076 throughout.
7077 (common_val_print): Add new langauge parameter and pass it to
7078 val_print.
7079 * value.h (struct language_defn): Add opaque declaration.
7080 (val_print, common_val_print): Update declarations.
7081 * stack.c (print_frame_args): Update call to common_val_print
7082 using the appropriate language.
7083 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7084 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7085 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7086 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7087 #include "language.h" if necessary.
7088 Update calls to val_print and common_val_print.
7089 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7090 Update dependencies.
7091
b1e6fd19
JB
70922008-05-06 Joel Brobecker <brobecker@adacore.com>
7093
7094 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7095 pointing inside a non-executable section as function descriptors.
7096
02b19d84
PA
70972008-05-06 Pedro Alves <pedro@codesourcery.com>
7098
7099 * inf-loop.c (inferior_event_handler): Run all continuations and
7100 print any language change before running the breakpoint commands.
7101
15c1e57f
JB
71022008-05-06 Joel Brobecker <brobecker@adacore.com>
7103
7104 * frame-unwind.c (frame_unwind_got_bytes): New function.
7105 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7106 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7107 for unwinder changes.
7108
d14508fe
DE
71092008-05-05 Doug Evans <dje@google.com>
7110
7111 * NEWS: Mention new /m modifier for disassemble command.
7112 * cli/cli-cmds.c (print_disassembly): New function.
7113 (disassemble_current_function): New function
7114 (disassemble_command): Recognize /m modifier, print mixed
7115 source+assembly.
7116 (init_cli_cmds): Update disassemble help text.
7117
5142f611
MG
71182008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7119
7120 * xtensa-tdep.c: Update for unwinder changes.
7121
f36bf22c
AS
71222008-05-05 Andreas Schwab <schwab@suse.de>
7123
7124 Update m68k port for unwinder changes.
7125 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7126 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7127 (m68k_frame_unwind): Use default_frame_sniffer.
7128 (m68k_frame_sniffer): Remove.
7129 (m68k_frame_base_address): Expect this_frame.
7130 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7131 this_frame.
7132 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7133 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7134 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7135 parameter instead of pc value.
7136 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7137 Expect this_frame.
7138 (m68k_linux_sigtramp_frame_this_id)
7139 (m68k_linux_sigtramp_frame_prev_register)
7140 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7141 (m68k_linux_sigtramp_frame_unwind): Use
7142 m68k_linux_sigtramp_frame_sniffer.
7143 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7144
7145 * m68klinux-nat.c (store_register): Fix typo.
7146
b3dc826b
PA
71472008-05-05 Pedro Alves <pedro@codesourcery.com>
7148
7149 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7150 NULL dereferencing.
7151
6528a9ea
LM
71522008-05-05 Luis Machado <luisgpm@br.ibm.com>
7153
7154 * symfile.c (reread_symbols): Update objfile's entry point.
7155
5eeb2539
AR
71562008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7157 Joel Brobecker <brobecker@adacore.com>
1f906a60 7158
5eeb2539
AR
7159 * ada-lang.c: Update throughout to use symbol_matches_domain
7160 instead of matching the symbol domain explictly.
7161 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7162 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7163 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7164 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7165 symbol for the typedef. See lookup_block_symbol.
7166 * symtab.c (symbol_matches_domain): New function, takes care
7167 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7168 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7169 found psym domain matches the given domain.
7170 (lookup_block_symbol): Likewise.
7171
e2b7ddea
VP
71722008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7173
680b56ce
AS
7174 * top.c (command_line_handler_continuation): Remove.
7175 (execute_command): Do not install the above.
e2b7ddea 7176
fcfb8b02
VP
71772008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7178
7179 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7180 and catch all exceptions from it.
7181 * top.c (command_line_handler_continuation): Don't
7182 call bpstat_do_action here.
7183
f792889a
DJ
71842008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7185
7186 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7187 (struct die_info): Remove type.
7188 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7189 (read_structure_type, read_enumeration_type, read_array_type)
7190 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7191 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7192 (read_tag_string_type, read_subroutine_type, read_set_type)
7193 (read_unspecified_type): Delete prototypes. Remove check for
7194 already-loaded type. Return the new type.
7195 (set_die_type): Return the new type.
7196 (reset_die_and_siblings_types): Delete.
7197 (load_comp_unit, load_full_comp_unit): Set type_hash.
7198 (process_queue): Remove call to reset_die_and_siblings_types.
7199 (process_die): Do not read most types here. Use read_type_die
7200 for others.
7201 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7202 (quirk_gcc_member_function_pointer): Return the new type.
7203 (process_structure_scope, process_enumeration_scope): Use
7204 get_die_type and read the DIE's type.
7205 (read_full_die): Do not initialize die->type.
7206 (tag_type_to_type): Use read_type_die.
7207 (read_type_die): Check for already defined types. Return the
7208 type.
7209 (determine_prefix): Use get_die_type.
7210 (set_die_type): Return the type.
7211 (get_die_type): Take a CU argument. Check for no type_hash.
7212
e7030f15
DJ
72132008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7214
7215 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7216 locals.
7217
611c83ae
PA
72182008-05-04 Pedro Alves <pedro@codesourcery.com>
7219
7220 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7221 and bp_longjmp_resume breakpoints.
7222 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7223 meaningful.
7224 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7225 breakpoints. Create bp_longjmp breakpoints as momentary
7226 breakpoints.
7227 (enable_longjmp_breakpoint): Delete.
7228 (set_longjmp_breakpoint): New.
7229 (disable_longjmp_breakpoint): Delete.
7230 (delete_longjmp_breakpoint): New.
7231 (set_longjmp_resume_breakpoint): Delete.
7232 (set_momentary_breakpoint_at_pc): New.
7233 (breakpoint_re_set_one): Don't delete bp_longjmp and
7234 bp_longjmp_resume breakpoints.
7235 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7236 breakpoints.
7237
7238 * infrun.c (step_resume_breakpoint): Add comment.
7239 (struct execution_control_state): Delete handling_longjmp member.
7240 (init_execution_control_state). Don't clear handling_longjmp.
7241 (context_switch): Don't context switch handling_longjmp.
7242 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7243 create a bp_longjmp_resume breakpoint, and set it as current
7244 step_resume_breakpoint, then step over the longjmp breakpoint. If
7245 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7246 breakpoint, delete the longjmp-resume breakpoint, and stop
7247 stepping.
7248 (currently_stepping): Remove handling_longjmp from expression.
7249 (insert_step_resume_breakpoint_at_sal): Update comment.
7250 (insert_longjmp_resume_breakpoint): New.
7251
7252 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7253 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7254 declarations.
7255 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7256 (set_longjmp_resume_breakpoint): Delete declaration.
7257
7258 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7259 parameter.
7260 (load_infrun_state): Delete *handling_longjmp parameter.
7261 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7262 Update body.
7263 (load_infrun_state): Delete *handling_longjmp parameter. Update
7264 body.
7265
7266 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7267 (delete_longjmp_breakpoint_cleanup): New.
7268 (step_1): Call set_longjmp_breakpoint instead of
7269 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7270 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7271 (step_1_continuation): Pass thread id in the continuation args to
7272 step_once.
7273 (step_once): Add thread parameter. Pass thread id the the
7274 continuation.
7275
85cbf3d3
JK
72762008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7277
7278 Set CU BASE_ADDRESS already from partial DIEs.
7279 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7280 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7281 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7282 from these variables if it was still unset.
7283
ff013f42
JK
7284 * Makefile.in: Update dependencies.
7285 * dwarf2read.c: Include "addrmap.h"
7286 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7287 (dwarf2_ranges_read): New prototype.
7288 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7289 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7290 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7291 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7292 comment for it. Add the found ranges to RANGES_PST. New variable
7293 BASEADDR, initialize it the common way.
7294 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7295 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7296 HAS_RANGES_OFFSET for the later processing.
7297 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7298 * symtab.c: Include "addrmap.h"
7299 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7300 Move the psymtab locator into ...
7301 (find_pc_sect_psymtab_closer): ... a new function.
7302
a7f1256d
UW
73032008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7304
7305 * arch-utils.c (gdbarch_update_p): Use default values for
7306 info.abfd and info.target_desc if they are NULL.
7307 (gdbarch_from_bfd): Remove assertion.
7308 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7309 using the current target description.
7310 (gdbarch_info_fill): Do not use default values for info->abfd
7311 and info->target_desc.
7312
b2de52bb
JK
73132008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7314
7315 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7316
515630c5
UW
73172008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7318
7319 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7320 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7321
7322 * regcache.c (read_pc_pid): Remove, replace by ...
7323 (regcache_read_pc): ... this function.
7324 (write_pc_pid): Remove, replace by ...
7325 (regcache_write_pc): ... this function.
7326 (read_pc, write_pc): Update.
7327
7328 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7329 write_pc_pid by regcache_read_pc and regcache_write_pc.
7330 (displaced_step_fixup): Likewise.
7331 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7332 (prepare_to_proceed): Likewise.
7333 (proceed): Likewise.
7334 (adjust_pc_after_break): Likewise.
7335 (handle_inferior_event): Likewise.
7336
7337 * linux-nat.c (cancel_breakpoint): Likewise.
7338 * linux-thread-db.c (check_event): Likewise.
7339 * aix-thread.c (aix_thread_wait): Likewise.
7340 * tracepoint.c (trace_dump_command): Likewise.
7341
ebd3bcc1
JK
73422008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7343
7344 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7345 SYMBOL_LOCATION_BATON.
7346
c47ffbe3
VP
73472008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7348
f78bff48
VP
7349 * target.h (struct target_ops): New field to_auxv_parse.
7350 * auxv.c (default_auxv_parse): New, renamed from previous
7351 target_auxv_parse.
7352 (target_auxv_parse): Try to call target method. Fallback to
7353 default_auxv_parse if not found.
7354 * procfs.c (procfs_auxv_parse): New.
7355 (init_procfs_ops): On Solaris, in 64-bit mode, install
7356 procfs_auxv_parse.
c47ffbe3 7357
35076fa0
AN
73582008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7359
7360 * symfile.c (add_symbol_file_command): Use paddress rather than
7361 hex_string to print the address.
7362
5b197912
UW
73632008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7364
7365 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7366 return the null frame ID to terminate the backtrace.
7367
4a7622d1
UW
73682008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7369
7370 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7371 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7372 (SIG_FRAME_PC_OFFSET): Likewise.
7373 (SIG_FRAME_LR_OFFSET): Likewise.
7374 (SIG_FRAME_FP_OFFSET): Likewise.
7375 (rs6000_push_dummy_call): Likewise.
7376 (rs6000_return_value): Likewise.
7377 (rs6000_convert_from_func_ptr_addr): Likewise.
7378 (branch_dest, rs6000_software_single_step): Likewise.
7379 (deal_with_atomic_sequence): Rename to ...
7380 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7381 Do not call branch_dest; inline required parts of that function.
7382 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7383 with SYMBOL_LINKAGE_NAME.
7384 (struct reg, regsize): Delete.
7385 (read_memory_addr): Delete; inline into callers.
7386 (rs6000_skip_prologue): Move after skip_prologue.
7387 (skip_prologue): Remove prototype.
7388 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7389 initialization as if this variable were true. Do not install
7390 ppc64_sysv_abi_adjust_breakpoint_address.
7391
7392 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7393 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7394 and "breakpoint.h".
7395 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7396 (SIG_FRAME_PC_OFFSET): Likewise.
7397 (SIG_FRAME_LR_OFFSET): Likewise.
7398 (SIG_FRAME_FP_OFFSET): Likewise.
7399 (rs6000_push_dummy_call): Likewise.
7400 (rs6000_return_value): Likewise.
7401 (rs6000_convert_from_func_ptr_addr): Likewise.
7402 (branch_dest, rs6000_software_single_step): Likewise. Replace
7403 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7404 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7405 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7406 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7407 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7408
7409 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7410 (AIX_TEXT_SEGMENT_BASE): New macro.
7411 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7412 by AIX_TEXT_SEGMENT_BASE.
7413
7414 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7415 (struct gdbarch_tdep): Remove text_segment_base member.
7416 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7417 ppc64_sysv_abi_adjust_breakpoint_address.
7418
7419 * Makefile.in (rs6000-tdep.o): Update dependencies.
7420 (rs6000-aix-tdep.o): Likewise.
7421
938f5214
TJB
74222008-05-03 Luis Machado <luisgpm@br.ibm.com>
7423 Thiago Jung Bauermann <bauerman@br.ibm.com>
7424
7425 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7426 * doublest.c (convert_typed_floating): Fix typo in comment.
7427 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7428 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7429 * frame.c (frame_unwind_address_in_block): Likewise.
7430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7431 * symtab.h (struct symbol): Likewise.
7432 * tramp-frame.h (struct trad_frame_cache): Likewise.
7433 * value.c (allocate_repeat_value): Likewise.
7434
0b02b92d
UW
74352008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7436
7437 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7438 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7439
d705c43c
PA
74402008-05-03 Pedro Alves <pedro@codesourcery.com>
7441
7442 * parse.c (parse_exp_in_context): Don't override
7443 expression_context_pc if get_selected_block returned a valid
7444 block.
7445
d6350901
DJ
74462008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7447
7448 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7449 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7450 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7451 Delete.
7452 * c-typeprint.c (c_type_print_base): Delete handling of template
7453 instantiations.
7454 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7455 (METHOD_PTR_TO_VOFFSET): Delete.
7456 * defs.h (QUIT_FIXME): Delete.
7457 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7458 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7459 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7460 ninstantiations, and instantiations.
7461 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7462 (TYPE_FN_FIELD_INLINED): Delete.
7463 * srec.h (SREC_BINARY): Delete.
7464 * symtab.c (symbol_init_demangled_name): Delete.
7465 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7466 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7467 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7468 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7469 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7470 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7471 * target.h (enum thread_control_capabilities): Delete tc_switch.
7472 (target_can_switch_threads): Delete.
7473
30510692
DJ
74742008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7475
7476 * Makefile.in (objfiles.o): Update.
7477 * exec.c (exec_set_section_address): Support p->addr != 0.
7478 * objfiles.c (objfile_relocate): Update exec_ops section
7479 addresses.
7480 * symfile.c (place_section): Move exec_set_section_address call...
7481 (default_symfile_offsets): ...to here.
7482
7284e1be
UW
74832008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7484
7485 * Makefile.in (ppc_linux_tdep_h): New macro.
7486 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7487 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7488 (powerpc_e500l_c): Likewise.
7489 (ppc-linux-nat.o): Update dependencies.
7490 (ppc-linux-tdep.o): Update dependencies.
7491 (rs6000-tdep.o): Update dependencies.
7492
7493 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7494 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7495 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7496 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7497 (tdesc_powerpc_e500): Remove.
7498
7499 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7500 and "features/rs6000/powerpc-altivec64.c".
7501 (ppc_supply_reg, ppc_collect_reg): Make global.
7502 (variants): Use tdesc_powerpc_32 for "powerpc" and
7503 tdesc_powerpc_altivec64 for "powerpc64".
7504 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7505
7506 * ppc-linux-tdep.h: New file.
7507
7508 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7509 Include "features/rs6000/powerpc-32l.c".
7510 Include "features/rs6000/powerpc-altivec32l.c".
7511 Include "features/rs6000/powerpc-64l.c".
7512 Include "features/rs6000/powerpc-altivec64l.c".
7513 Include "features/rs6000/powerpc-e500l.c".
7514 (ppc_linux_supply_gregset): New function.
7515 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7516 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7517 (ppc64_linux_gregset): Likewise.
7518 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7519 (ppc_linux_trap_reg_p): New function.
7520 (ppc_linux_write_pc): New function.
7521 (ppc_linux_core_read_description): New function.
7522 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7523 ppc_linux_core_read_description. Install orig_r3 and trap
7524 registers if present in the target description.
7525 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7526
7527 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7528 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7529 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7530 (fetch_ppc_registers): Likewise.
7531 (store_ppc_registers): Likewise.
7532 (store_register): Likewise.
7533 (ppc_linux_read_description): Check whether AltiVec is supported.
7534 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7535 Linux target description.
7536
7537 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7538 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7539 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7540 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7541 rs6000/powerpc-e500. Update -expedite variables accordingly.
7542
7543 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7544 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7545 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7546 * features/rs6000/powerpc-e500.c: Regenerate.
7547 * features/rs6000/powerpc-32.c: Regenerate.
7548 * features/rs6000/powerpc-64.c: Regenerate.
7549
7550 * features/rs6000/power-linux.xml: New file.
7551 * features/rs6000/power64-linux.xml: New file.
7552 * features/rs6000/powerpc-32l.xml: New file.
7553 * features/rs6000/powerpc-altivec32l.xml: New file.
7554 * features/rs6000/powerpc-64l.xml: New file.
7555 * features/rs6000/powerpc-altivec64l.xml: New file.
7556 * features/rs6000/powerpc-e500l.xml: New file.
7557 * features/rs6000/powerpc-32l.c: New (generated) file.
7558 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7559 * features/rs6000/powerpc-64l.c: New (generated) file.
7560 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7561 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7562
7563 * regformats/reg-ppc.dat: Remove.
7564 * regformats/reg-ppc64.dat: Remove.
7565 * regformats/rs6000/powerpc-32.dat: Remove.
7566 * regformats/rs6000/powerpc-64.dat: Remove.
7567 * regformats/rs6000/powerpc-e500.dat: Remove.
7568 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7569 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7570 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7571 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7572 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7573
063bfe2e
VP
75742008-05-03 Pedro Alves <pedro@codesourcery.com>
7575
7576 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
7577 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7578 thread_exit observer.
7579 (mi_thread_exit): New.
063bfe2e 7580
f132ba9d
TJB
75812008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7582
7583 * breakpoint.c (create_exception_catchpoint): Remove prototype
7584 for already deleted function.
7585 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7586 * frame.h (show_stack_frame): Remove prototype.
7587 * stack.c (show_stack_frame): Remove empty, unused function.
7588 * source.c (symtab_to_fullname, print_source_lines): Small fix
7589 in comment.
7590 * value.c (show_values): Update comments to mention "show values"
7591 command instead of "info history".
7592
bccdca4a
UW
75932008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7594
7595 * linespec.c: Include "target.h".
7596 (minsym_found): Handle minimal symbols pointing to function
7597 descriptors. Use find_function_start_pc.
7598 * minsyms.c (msymbol_objfile): New function.
7599 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7600 to function descriptors.
7601 * symtab.c (fixup_section): Only use minimal symbol at the same
7602 address to determine section of a symbol.
7603 (find_function_start_pc): New function.
7604 (find_function_start_sal): Use it.
7605 * symtab.h (msymbol_objfile): Add prototype.
7606 (find_function_start_pc): Likewise.
7607 * value.c: Include "objfiles.h".
7608 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 7609 descriptors.
bccdca4a
UW
7610 * Makefile.in (linespec.o): Update dependencies.
7611 (value.o): Likewise.
7612
de4d072f
JB
76132008-05-02 Joel Brobecker <brobecker@adacore.com>
7614
7615 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7616 inside a PAD type is a bitfield.
7617
93d4208d
UW
76182008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7619
7620 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7621 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7622 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7623 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7624 Allow typedefs when checking for function pointer arguments.
7625 Right-align small structs passed on the stack.
7626 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7627 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7628 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7629
60c5725c
DJ
76302008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7631
7632 * Makefile.in (arm-tdep.o): Update.
7633 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7634 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7635 (arm_pc_is_thumb): Use mapping symbols.
7636 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7637 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7638 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7639 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7640 * gdbarch.sh: Add record_special_symbol.
7641 * gdbarch.c, gdbarch.h: Regenerated.
7642 * objfiles.c (struct objfile_data): Add cleanup member.
7643 (register_objfile_data_with_cleanup): New function, from
7644 register_objfile_data.
7645 (register_objfile_data): Use it.
7646 (objfile_free_data): Call clear_objfile_data.
7647 (clear_objfile_data): Call cleanup functions.
7648 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7649
574dffa2
DJ
76502008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7651
7652 * objfiles.c (init_entry_point_info): Handle shared libraries.
7653
2c404490
DJ
76542008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7655
7656 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7657 lowest_pc.
7658
237fc4c9
PA
76592008-05-02 Jim Blandy <jimb@codesourcery.com>
7660 Pedro Alves <pedro@codesourcery.com>
7661
7662 Implement displaced stepping.
7663
7664 * gdbarch.sh (max_insn_length): New 'variable'.
7665 (displaced_step_copy, displaced_step_fixup)
7666 (displaced_step_free_closure, displaced_step_location): New
7667 functions.
7668 (struct displaced_step_closure): Add forward declaration.
7669 * gdbarch.c, gdbarch.h: Regenerated.
7670
7671 * arch-utils.c: #include "objfiles.h".
7672 (simple_displaced_step_copy_insn)
7673 (simple_displaced_step_free_closure)
7674 (displaced_step_at_entry_point): New functions.
7675 * arch-utils.h (simple_displaced_step_copy_insn)
7676 (simple_displaced_step_free_closure)
7677 (displaced_step_at_entry_point): New prototypes.
7678
7679 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7680 (I386_MAX_MATCHED_INSN_LEN): ... this.
7681 (i386_absolute_jmp_p, i386_absolute_call_p)
7682 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
7683 (i386_displaced_step_fixup): New functions.
7684 (struct i386_insn, i386_match_insn): Update.
7685 (i386_gdbarch_init): Set gdbarch_max_insn_length.
7686 * i386-tdep.h (I386_MAX_INSN_LEN): New.
7687 (i386_displaced_step_fixup): New prototype.
7688 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
7689 Register gdbarch_displaced_step_copy,
7690 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
7691 and gdbarch_displaced_step_location functions.
7692
7693 * infrun.c (debug_displaced): New variable.
7694 (show_debug_displaced): New function.
7695 (struct displaced_step_request): New struct.
7696 (displaced_step_request_queue, displaced_step_ptid)
7697 (displaced_step_gdbarch, displaced_step_closure)
7698 (displaced_step_original, displaced_step_copy)
7699 (displaced_step_saved_copy, can_use_displaced_stepping): New
7700 variables.
7701 (show_can_use_displaced_stepping, use_displaced_stepping)
7702 (displaced_step_clear, cleanup_displaced_step_closure)
7703 (displaced_step_dump_bytes, displaced_step_prepare)
7704 (displaced_step_clear_cleanup, write_memory_ptid)
7705 (displaced_step_fixup): New functions.
7706 (resume): Call displaced_step_prepare.
7707 (proceed): Call read_pc once, and remember the value. If using
7708 displaced stepping, don't remove breakpoints.
7709 (handle_inferior_event): Call displaced_step_fixup. Add some
7710 debugging output. When we try to step over a breakpoint, but get
7711 a signal to deliver to the thread instead, ensure the step-resume
7712 breakpoint is actually inserted. If a thread hop is needed, and
7713 displaced stepping is enabled, don't remove breakpoints.
7714 (init_wait_for_inferior): Call displaced_step_clear.
7715 (_initialize_infrun): Add "set debug displaced" command. Add
7716 "maint set can-use-displaced-stepping" command. Clear
7717 displaced_step_ptid.
7718 * inferior.h (debug_displaced): Declare variable.
7719 (displaced_step_dump_bytes): Declare function.
7720
7721 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
7722 dependencies.
7723
0428b8f5
DJ
77242008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7725
7726 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
7727 (arm_force_mode_string, arm_show_fallback_mode)
7728 (arm_show_force_mode): New.
7729 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
7730 arm_frame_is_thumb.
7731 (_initialize_arm_tdep): Add "set arm fallback-mode"
7732 and "set arm force-mode".
7733 * NEWS: Document new commands.
7734
d01a8610
AS
77352008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
7736
7737 * main.h (batch_silent): Declare.
7738 * event-top.c: Include main.h.
7739 (gdb_setup_readline): Remove extern batch_silent declaration.
7740 * infrun.c (normal_stop): Don't print source location when running in
7741 --batch-silent mode.
7742 * Makefile.in (event-top.o): Add main.h dependency.
7743
5009afc5
AS
77442008-05-02 Andreas Schwab <schwab@suse.de>
7745
7746 * target.h (struct target_ops): Add
7747 to_watchpoint_addr_within_range.
7748 (target_watchpoint_addr_within_range): New function.
7749 * target.c (update_current_target): Inherit
7750 to_watchpoint_addr_within_range, defaulting to
7751 default_watchpoint_addr_within_range.
7752 (default_watchpoint_addr_within_range): New function.
7753 (debug_to_watchpoint_addr_within_range): New function.
7754 (setup_target_debug): Set to_watchpoint_addr_within_range.
7755 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
7756 New function.
7757 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
7758 * breakpoint.c (watchpoints_triggered): Use
7759 target_watchpoint_addr_within_range.
7760
a15c5c83
PA
77612008-05-01 Pedro Alves <pedro@codesourcery.com>
7762
7763 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
7764 (i[34567]86-*-dicos*, x86_64-*-dicos*):
7765 Set gdb_osabi to GDB_OSABI_DICOS.
7766
7767 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
7768 * osabi.c (gdb_osabi_name): Add "DICOS".
7769
7770 * i386-dicos-tdep.c: New file.
7771
7772 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
7773 (ALLDEPFILES): Add i386-dicos-tdep.c.
7774 (i386-dicos-tdep.o): New rule.
7775
728c8f58
PA
77762008-05-01 Pedro Alves <pedro@codesourcery.com>
7777
7778 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
7779 and register the fork's PTID as a thread.
7780
604133b5
AR
77812008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
7782
7783 PR gdb/1665
7784 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
7785 assign its value to the breakpoint created.
7786 (create_breakpoints): Add breakpoint_ops argument and pass it
7787 to create_breakpoint call.
7788 (break_command_really): Add breakpoint_ops argument and pass/assign
7789 appropriately.
7790 (break_command_1): Pass NULL as ops argument.
7791 (set_breakpoint): Pass NULL as ops argument.
7792 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
7793 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
7794 catch and throw catchpoints.
5009afc5 7795
1f906a60 77962008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
7797
7798 PR gdb/2343
7799 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
7800 translate signal numeric value from the target to GDB's enum
7801 target_signal.
7802 * gdbarch.c, gdbarch.h: Regenerated.
7803 * gdbarch.sh: Added two new functions target_signal_from_host and
7804 target_signal_to_host.
680b56ce 7805 * target.h (default_target_signal_from_host,
1cded358
AR
7806 default_target_signal_to_host): New functions - declarations.
7807 * signals/signals.c (struct gdbarch): New declaration.
7808 (default_target_signal_to_host, default_target_signal_from_host): New
7809 functions.
7810
ed5e9466
DJ
78112008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7812 Pedro Alves <pedro@codesourcery.com>
7813
7814 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
7815 Johnston <jjohnstn@redhat.com>.
7816
7817 * NEWS: Mention attach to stopped process fix.
7818 * infcmd.c (detach_command, disconnect_command): Discard the thread
7819 list.
7820 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
7821 attaching. Use signal_stop_state.
7822 (signal_stop_state): Check stop_soon.
7823 * linux-nat.c (kill_lwp): Declare earlier.
7824 (pid_is_stopped, linux_nat_post_attach_wait): New.
7825 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
7826 comments.
7827 (linux_nat_attach): Use linux_nat_post_attach_wait.
7828 (detach_callback, linux_nat_detach): Improve handling for signalled
7829 processes.
7830 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
7831 from the process ID.
7832 * Makefile.in (infcmd.o): Update.
7833
b39cc962
DJ
78342008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
7835
7836 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
7837 * arm-tdep.c (arm_frame_is_thumb): New.
7838 (arm_pc_is_thumb): Clarify comment.
7839 (thumb_analyze_prologue): Remove PC special case.
7840 (thumb_scan_prologue): Take a block_addr argument. Use it for
7841 find_pc_partial_function. Remove unused variables.
7842 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
7843 for find_pc_partial_function. Remove PC special case.
7844 (arm_prologue_prev_register): Add special handling for PC and CPSR.
7845 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
7846 (arm_get_next_pc): Use arm_frame_is_thumb.
7847 (arm_write_pc): Use CPSR_T instead of 0x20.
7848 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
7849 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
7850 (CPSR_T): Define.
7851 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
7852 DWARF2_FRAME_REG_FN.
7853 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
7854 DWARF2_FRAME_REG_FN.
7855 (struct dwarf2_frame_state_reg): Add FN to loc union.
7856
944f08ab
JB
78572008-05-01 Nick Roberts <nickrob@snap.net.nz>
7858
7859 * exec.c (print_section_info): Add missing '\n'.
7860
cfc01461
VP
78612008-05-01 Vladimir Prus <vladimir@codesourcery.com>
7862
7863 * thread.c (add_thread): Move observer call to ...
680b56ce 7864 (add_thread_silent): ... here.
cfc01461 7865
1af5d7ce
UW
78662008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7867
7868 * rs6000-tdep.c: Update for unwinder changes.
7869 * ppcobsd-tdep.c: Likewise.
7870
f089c433
UW
78712008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7872
7873 * s390-tdep.c: Update for unwinder changes.
7874
8d998b8f
UW
78752008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
7876
7877 * spu-tdep.c: Update for unwinder changes.
7878
5366653e
DJ
78792008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7880
7881 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
7882 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
7883 sparc64-linux-tdep.c: Update for unwinder changes.
7884
b8a22b94
DJ
78852008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7886
7887 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
7888 for unwinder changes.
7889 * mips-tdep.c: Likewise.
7890 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
7891 raw one.
7892
a262aec2
DJ
78932008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7894
7895 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
7896 unwinder changes.
7897
10458914
DJ
78982008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7899
7900 Update i386 and amd64 ports for unwinder changes.
7901
7902 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
7903 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7904 (amd64_frame_unwind): Use default_frame_sniffer.
7905 (amd64_frame_sniffer): Delete.
7906 (amd64_sigtramp_frame_cache): Expect this_frame.
7907 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
7908 (amd64_sigtramp_frame_sniffer): Update signature.
7909 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
7910 (amd64_frame_base_address): Expect this_frame.
7911 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
7912 this_frame.
7913 (amd64_init_abi): Use set_gdbarch_dummy_id and
7914 frame_unwind_append_unwinder.
7915 * i386-tdep.c (i386_frame_cache): Expect this_frame.
7916 (i386_frame_this_id, i386_frame_prev_register): Update signature.
7917 (i386_frame_unwind): Use default_frame_sniffer.
7918 (i386_frame_sniffer): Delete.
7919 (i386_sigtramp_frame_cache): Expect this_frame.
7920 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
7921 (i386_sigtramp_frame_sniffer): Update signature.
7922 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
7923 (i386_frame_base_address): Update signature.
7924 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
7925 (i386_push_dummy_call): Update comment.
7926 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
7927 Expect this_frame.
7928 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
7929 and frame_unwind_append_unwinder.
7930 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
7931 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
7932 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
7933 i386nbsd-tdep.c: Update for unwinder changes.
7934
25492ce3
DJ
79352008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7936
7937 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
7938 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
7939 this_frame.
7940 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
7941 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
7942 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
7943 signature.
7944 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
7945 this_frame.
7946 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
7947 Update signature.
7948 * tramp-frame.h (struct tramp_frame): Update signature of init.
7949 * Makefile.in (trad-frame.o): Update.
7950
4a4e5149
DJ
79512008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7952
7953 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
7954 (execute_stack_op): Put this_frame in the baton.
7955 (execute_cfa_program): Take this_frame.
7956 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
7957 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
7958 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
7959 (dwarf2_frame_this_id): Adjust to work on this_frame.
7960 (dwarf2_signal_frame_this_id): Delete.
7961 (dwarf2_frame_prev_register): Update signature. Use new frame
7962 unwind methods.
7963 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
7964 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
7965 dwarf2_frame_sniffer.
7966 (dwarf2_append_unwinders): New.
7967 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
7968 this_frame.
7969 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
7970 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
7971 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
7972 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
7973 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
7974 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
7975 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
7976 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
7977 (dwarf2_append_unwinders): Declare.
7978 (dwarf2_frame_base_sniffer): Update declaration.
7979 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
7980 this_frame.
7981
669fac23
DJ
79822008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
7983
7984 Convert frame unwinders to use the current frame and
7985 "struct value".
7986
7987 * frame.c (frame_debug): Make global.
7988 (get_frame_id): Pass this frame to unwinder routines.
7989 (frame_pc_unwind): Remove unused unwind->prev_pc support.
7990 (do_frame_register_read): Do not discard the return value of
7991 frame_register_read.
7992 (frame_register_unwind): Remove debug messages. Use
7993 frame_unwind_register_value.
7994 (frame_unwind_register_value, get_frame_register_value): New
7995 functions.
7996 (create_new_frame, get_frame_base_address, get_frame_locals_address)
7997 (get_frame_args_address, get_frame_type): Pass this frame to
7998 unwinder routines.
7999 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8000 functions.
8001 * frame.h: Update comments.
8002 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8003 (frame_prepare_for_sniffer): Declare.
8004 * frame-unwind.h: Update comments and parameter names.
8005 (default_frame_sniffer): Declare.
8006 (frame_prev_register_ftype): Return a struct value *.
8007 (struct frame_unwind): Remove prev_pc member.
8008 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8009 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8010 (frame_unwind_got_register, frame_unwind_got_memory)
8011 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8012 * frame-base.h: Update comments and parameter names.
8013 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8014 if necessary. Add debugging output.
8015 * sentinel-frame.c (sentinel_frame_prev_register)
8016 (sentinel_frame_this_id): Update for new signature.
8017 (sentinel_frame_prev_pc): Delete.
8018 (sentinel_frame_unwinder): Remove prev_pc.
8019 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8020 prev_pc.
8021 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8022 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8023 (frame_unwind_append_sniffer): Delete.
8024 (frame_unwind_append_unwinder): New function.
8025 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8026 from unwinders. Use frame_prepare_for_sniffer.
8027 (default_frame_sniffer, frame_unwind_got_optimized)
8028 (frame_unwind_got_register, frame_unwind_got_memory)
8029 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8030 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8031 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8032 signature.
8033 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8034 * gdbarch.c, gdbarch.c: Regenerated.
8035 * frame-base.c (default_frame_base_address)
8036 (default_frame_locals_address, default_frame_args_address): Update
8037 for new signature.
8038 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8039 * infcall.c (call_function_by_hand): Update comments.
8040 * Makefile.in (frame-unwind.o): Update dependencies.
8041
9214ee5f
DJ
80422008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8043
8044 * ada-lang.c (ada_value_primitive_packed_val): Only check
8045 value_lazy for memory lvals.
8046 * findvar.c (value_of_register_lazy): New function.
8047 (locate_var_value): Only check value_lazy for memory lvals.
8048 * valarith.c (value_subscripted_rvalue): Likewise.
8049 * valops.c (value_fetch_lazy): Handle both memory and register
8050 lvals.
8051 (search_struct_field, value_slice): Only check value_lazy for memory
8052 lvals.
8053 * value.c (struct value): Update comment for lazy.
8054 (value_primitive_field): Only check value_lazy for memory lvals.
8055 * value.h (value_lazy): Update comment.
8056 (value_of_register_lazy): Declare.
8057
939643d7
DJ
80582008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8059
8060 * corefile.c (reopen_exec_file): Close any open files.
8061
1de34ab7
JB
80622008-04-29 Joel Brobecker <brobecker@adacore.com>
8063
8064 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8065 show_memory_breakpoints to 1 while reading the instruction bundle.
8066
ea42b34a
JB
80672008-04-29 Joel Brobecker <brobecker@adacore.com>
8068
8069 * gdbarch.sh: Document the return_value method. Explain that
8070 the FUNCTYPE parameter might be NULL.
8071 * gdbarch.h: Regenerated.
8072 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8073 type when calling using_struct_return, as this is unnecessary
8074 on this target.
8075
a0fe373c
JB
80762008-04-28 Joel Brobecker <brobecker@adacore.com>
8077
8078 * terminal.h (create_tty_session): Fix return type.
8079
c6446539
VP
80802008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8081
8082 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8083
2f069f6f
JB
80842008-04-26 Joel Brobecker <brobecker@adacore.com>
8085
8086 * breakpoint.c (condition_command, commands_from_control_command)
8087 (break_command_really): Minor reformatting.
8088
93b5768b
PA
80892008-04-25 Pedro Alves <pedro@codesourcery.com>
8090
8091 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8092
436675d3
PA
80932008-04-25 Pedro Alves <pedro@codesourcery.com>
8094
8095 * amd64-tdep.c (amd64_get_longjmp_target): New.
8096 (amd64_init_abi): Register amd64_get_longjmp_target as
8097 gdbarch_get_longjmp_target callback.
8098 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8099
78b6a731
PA
81002008-04-25 Pedro Alves <pedro@codesourcery.com>
8101
8102 * breakpoint.h (enum bpstat_what_main_action): Delete
8103 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8104
8105 * breakpoint.c (clrs): Delete.
8106 (bpstat_what): Update table.
8107
8108 * infrun.c (handle_inferior_event): Remove
8109 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8110
9e22b03a
VP
81112008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8112
8113 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8114 Adjust all prototypes using mi_cmd_args_ftype to use
8115 mi_cmd_argv_ftype.
8116 (struct mi_cmd): Remove the args_func field.
8117 * mi/mi-cmds.c: Don't provide value for the args_func field.
8118 * mi/mi-main.c (mi_execute_async_cli_command)
8119 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8120 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8121 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8122 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8123 (mi_cmd_target_download): Adjust.
8124 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8125 (mi_cmd_execute): Do not check for args_func.
8126 (mi_execute_async_cli_command): Adjust.
8127 * mi/mi-parse.c: Don't check for args_func.
8128
721c02de 81292008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8130
680b56ce
AS
8131 * breakpoint.c (bpstat_check_location)
8132 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8133 New, extracted from bpstat_stop_status.
8134 (bpstat_stop_status): Use the above.
18a18393
VP
8135
81362008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8137
680b56ce
AS
8138 * mi/mi-main.c (last_async_command): Rename to current_token.
8139 (previous_async_command): Remove.
8140 (mi_cmd_gdb_exit): Adjust.
8141 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8142 (mi_cmd_target_select): Adjust.
8143 (mi_cmd_execute): Don't set previous_async_command. Free token
8144 here even in async mode.
8145 (mi_execute_async_cli_command): Adjust.
8146 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8147 token.
8148 (mi_load_progress): Adjust.
721c02de 8149
f13468d9
VP
81502008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8151
680b56ce
AS
8152 * infcmd.c (step_1_continuation): Always disable longjmp
8153 breakpoint if we're not going to do another step.
f13468d9 8154
f107f563
VP
81552008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8156
8157 exec_cleanup murder.
8158 * breakpoint.c (until_break_command_continuation): Add
8159 the 'error' parameter. Directly delete the breakoint as
8160 opposed to running cleanups.
8161 (until_break_command): Install continuation only
8162 after starting the target. Don't use exec cleanups,
8163 use ordinary cleanups. Discard cleanups is successfully
8164 started the target in async mode.
8165 (make_cleanup_delete_breakpoint): Remove.
8166 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8167 declaration.
8168 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8169 declarations.
8170 (struct continations): Add the 'error' parameter to the
8171 continuation_hook field.
8172 (add_continuation, do_all_continuations)
8173 (add_intermediate_continuation)
8174 (do_all_intermediate_continuations): Add the 'error' parameter.
8175 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8176 * inf-loop.c (inferior_event_handler): Instead of calling
8177 discard_all_continuations, use do_all_continuations with 1 as
8178 'error' parameter. Pass 0 as 'error' parameter in existing uses
8179 of discard_all_continuations.
8180 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8181 cleanups.
8182 (step_once): Install continuation only after resuming the target.
8183 (step_1_continuation): Disable longjmp breakpoint on error.
8184 (finish_command_continuation): Add the error parameter. Delete
8185 the finish breakpoint directly, do not use cleanups.
8186 (finish_command): Do not use exec_cleanups. Always setup
8187 continuation. For sync case, immediately run them.
8188 (attach_command_continuation): Add the error parameter.
8189 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8190 remove step_resume_breakpoint -- adjust delete it directly.
8191 * interps.c (interp_set): Adjust call to do_all_continations.
8192 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8193 do exec cleanups.
8194 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8195 cleanups.
8196 (mi_cmd_execute): Do not use exec_cleanup.
8197 (mi_execute_async_cli_command): Simplify the string concatenation
8198 logic. Do no use exec cleanup.
8199 (mi_exec_async_cli_cmd_continuation): New parameter error.
8200 Free last_async_command.
8201 * top.c (command_line_handler_continuation): New parameter error.
8202 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8203 (do_exec_cleanups): Remove.
8204 (add_continuation, do_all_continations)
8205 (add_intermediate_continuation)
8206 (do_all_intermediate_continuations): New parameter error.
8207
74960c60
VP
82082008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8209
8210 * breakpoint.h (bp_location_p): New typedef.
8211 Register a vector of bp_location_p.
8212 * breakpoint.c (always_inserted_mode)
8213 (show_always_inserted_mode): New.
8214 (unlink_locations_from_global_list): Remove.
8215 (update_global_location_list)
8216 (update_global_location_list_nothrow): New.
8217 (update_watchpoint): Don't free locations.
8218 (should_insert_location): New.
8219 (insert_bp_location): Use should_insert_location.
8220 (insert_breakpoint_locations): Copied from
8221 insert_breakpoints.
8222 (insert_breakpoint): Use insert_breakpoint_locations.
8223 (bpstat_stop_status): Call update_global_location_list
8224 when disabling breakpoint.
8225 (allocate_bp_location): Don't add to bp_location_chain.
8226 (set_raw_breakpoint)
8227 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8228 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8229 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8230 (set_longjmp_resume_breakpoint)
8231 (enable_watchpoints_after_interactive_call_stop)
8232 (disable_watchpoints_before_interactive_call_start)
8233 (create_internal_breakpoint)
8234 (create_fork_vfork_event_catchpoint)
8235 (create_exec_event_catchpoint, set_momentary_breakpoint)
8236 (create_breakpoints, break_command_1, watch_command_1)
8237 (create_exception_catchpoint)
8238 (handle_gnu_v3_exceptions)
8239 (disable_breakpoint, breakpoint_re_set_one)
8240 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8241 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8242 Call update_global_location_list.
8243 (delete_breakpoint): Don't remove locations and don't
8244 try to reinsert them. Call update_global_location_list.
8245 (update_breakpoint_locations): Likewise.
8246 (restore_always_inserted_mode): New.
8247 (update_breakpoints_after_exec): Temporary disable
8248 always inserted mode.
8249 * Makefile.in: Update dependencies.
8250
8251 * infrun.c (proceed): Remove breakpoints while stepping
8252 over breakpoint.
8253 (handle_inferior_event): Don't remove or insert
8254 breakpoints.
8255 * linux-fork.c (checkpoint_command): Remove breakpoints
8256 before fork and insert after.
8257 (linux_fork_context): Remove breakpoints before switch
8258 and insert after.
8259 * target.c (target_disconnect, target_detach): Remove
8260 breakpoints from target.
8261
680b56ce 8262
d24317b4
VP
82632008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8264
8265 * breakpoint.c (print_one_breakpoint_location): In MI
8266 mode, report the location string the breakpoint was
8267 originally created with.
8268
ee967b5f
MG
82692008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8270
8271 * Makefile.in (xtensa-tdep.o): Update dependencies.
8272 * configure.tgt (xtensa*): Update dependencies.
8273 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8274 Local variable areg renamed to arreg.
8275 (areg_number): New function.
8276 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8277 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8278 replaced by arreg_number.
8279 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8280 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8281 (xtensa_scan_prologue): New function.
8282 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8283 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8284 value based on prologue analysis. Fix the bugs preventing WS and
8285 AR4-AR7/A11 registers from getting right values for intermediate frames,
8286 whose registers have been already spilled.
8287 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8288 and arreg_number appropriately.
8289 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8290 svr4_ilp32_fetch_link_map_offsets.
8291
09d71d23
AS
82922008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8293
8294 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8295 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8296
fdc59709
PB
82972008-04-23 Paolo Bonzini <bonzini@gnu.org>
8298
680b56ce
AS
8299 * acinclude.m4: Add override.m4.
8300 * configure: Regenerate.
fdc59709 8301
0bcd0149
JK
83022008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8303
8304 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8305 initialized with a trailing space now. Use PROMPT_ARG of
8306 COMMAND_LINE_INPUT instead of printing it ourselves.
8307
88d8a8e0
JB
83082008-04-22 Joel Brobecker <brobecker@adacore.com>
8309
8310 * NEWS: Document support for 64-bit core file.
8311
c055b101
CV
83122008-04-22 Corinna Vinschen <vinschen@redhat.com>
8313
8314 * NEWS: Add information on calling convention and new SH CLI options.
8315
8316 * sh-tdep.c (sh_cc_gcc): New static string.
8317 (sh_cc_renesas): Ditto.
8318 (sh_cc_enum): New static string array.
8319 (sh_active_calling_convention): New static string pointer denoting
8320 active user chosen ABI.
8321 (sh_is_renesas_calling_convention): New function to return function
8322 specific ABI, or user choice if necessary.
8323 (sh_use_struct_convention): Rename first argument and turn around its
8324 meaning. Check for renesas ABI and return accordingly.
8325 (sh_use_struct_convention_nofpu): New function.
8326 (sh_next_flt_argreg): Get function type as third parameter. Check
8327 for renesas ABI and choose floating registers accordingly.
8328 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8329 struct return slot accordingly.
8330 (sh_push_dummy_call_nofpu): Ditto.
8331 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8332 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8333 (sh_return_value_fpu): Evaluate ABI and give to
8334 sh_use_struct_convention.
8335 (show_sh_command): New function.
8336 (set_sh_command): Ditto.
8337 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8338 CLI command.
8339
8340 * gdbarch.sh (return_value): Add func_type argument.
8341 * gdbarch.c: Regenerate.
8342 * gdbarch.h: Ditto.
8343 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8344 val_type so as not to collide with value_type function. Call
8345 using_struct_return with additional function type argument.
8346 * infcall.c (call_function_by_hand): Call using_struct_return and
8347 gdbarch_return_value with additional function type argument.
8348 * infcmd.c (print_return_value): Take addition func_type argument.
8349 Call gdbarch_return_value with additional function type argument.
8350 (finish_command_continuation): Call print_return_value with additional
8351 function type argument.
8352 (finish_command): Ditto.
8353 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8354 additional function type argument.
8355 * stack.c (return_command): Call using_struct_return and
8356 gdbarch_return_value with additional function type argument.
8357 * value.c (using_struct_return): Take additional function type argument.
8358 * value.h (using_struct_return): Accommodate declaration.
8359 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8360 * amd64-tdep.c (amd64_return_value): Ditto.
8361 * arm-tdep.c (arm_return_value): Ditto.
8362 * avr-tdep.c (avr_return_value): Ditto.
8363 * cris-tdep.c (cris_return_value): Ditto.
8364 * frv-tdep.c (frv_return_value): Ditto.
8365 * h8300-tdep.c (h8300_return_value): Ditto.
8366 (h8300h_return_value): Ditto.
8367 * hppa-tdep.c (hppa32_return_value): Ditto.
8368 (hppa64_return_value): Ditto.
8369 * i386-tdep.c (i386_return_value): Ditto.
8370 * ia64-tdep.c (ia64_return_value): Ditto.
8371 * iq2000-tdep.c (iq2000_return_value): Ditto.
8372 * m32c-tdep.c (m32c_return_value): Ditto.
8373 * m32r-tdep.c (m32r_return_value): Ditto.
8374 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8375 * m68k-tdep.c (m68k_return_value): Ditto.
8376 (m68k_svr4_return_value): Ditto.
8377 * m88k-tdep.c (m88k_return_value): Ditto.
8378 * mep-tdep.c (mep_return_value): Ditto.
8379 * mips-tdep.c (mips_eabi_return_value): Ditto.
8380 (mips_n32n64_return_value): Ditto.
8381 (mips_o32_return_value): Ditto.
8382 (mips_o64_return_value): Ditto.
8383 * mn10300-tdep.c (mn10300_return_value): Ditto.
8384 * mt-tdep.c (mt_return_value): Ditto.
8385 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8386 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8387 (ppc_sysv_abi_broken_return_value): Ditto.
8388 (ppc64_sysv_abi_return_value): Ditto.
8389 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8390 (ppc_sysv_abi_broken_return_value): Ditto.
8391 (ppc64_sysv_abi_return_value): Ditto.
8392 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8393 * rs6000-tdep.c (rs6000_return_value): Ditto.
8394 * s390-tdep.c (s390_return_value): Ditto.
8395 * score-tdep.c (score_return_value): Ditto.
8396 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8397 (sh_return_value_fpu): Ditto.
8398 * sh64-tdep.c (sh64_return_value): Ditto.
8399 * sparc-tdep.c (sparc32_return_value): Ditto.
8400 * sparc64-tdep.c (sparc64_return_value): Ditto.
8401 * spu-tdep.c (spu_return_value): Ditto.
8402 * v850-tdep.c (v850_return_value): Ditto.
8403 * vax-tdep.c (vax_return_value): Ditto.
8404 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8405 * xtensa-tdep.c (xtensa_return_value): Ditto.
8406
8407 * gdbtypes.h (struct type): Add calling_convention member.
8408 * dwarf2read.c (read_subroutine_type): Add calling convention read
8409 from DW_AT_calling_convention attribute to function type.
8410
9eec4d1e
MD
84112008-04-22 Markus Deuling <deuling@de.ibm.com>
8412
8413 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8414 multi_f77_subscript to support values from registers.
8415 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8416 * value.h (value_subscripted_rvalue): Add prototype.
8417
8418 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8419 Fix output.
8420 * f-valprint.c (f_val_print): Likewise.
8421
ef72380d
CS
84222008-04-21 Craig Silverstein <csilvers@google.com>
8423
8424 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8425 !HAVE_ZLIB_H case.
8426
ff8e85c3
PA
84272008-04-21 Pedro Alves <pedro@codesourcery.com>
8428
8429 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8430 section is not a code section.
8431
31fffb02
CS
84322008-04-19 Craig Silverstein <csilvers@google.com>
8433
8434 * NEWS: Add information on compressed debug sections.
8435
8e91f023
VP
84362008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8437
8438 * mi/mi-cmd-var.c (varobj_update_one): Print new
8439 value for variable objects that changed type.
8440
603ba1de
VP
84412008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8442
8443 * varobj.c (varobj_invalidate): Don't touch floating
8444 varobjs.
8445
7fc830e2
MK
84462008-04-19 Mark Kettenis <kettenis@gnu.org>
8447
8448 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8449 (multiple_symbols_cancel): Remove extra const.
8450 * symtab.h: Likewise.
8451
bcbf8b68
NR
84522008-04-19 Nick Roberts <nickrob@snap.net.nz>
8453
8454 * interps.c (top_level_interpreter): Rename static variable...
8455 (top_level_interpreter_ptr): ...to this.
8456 (top_level_interpreter): New function.
8457
8458 * interps.h: New extern for top_level_interpreter.
8459
8460 * linespec.c: Include interps.h and mi/mi-cmds.h.
8461 (decode_line_2): When using MI, always set all breakpoints in menu.
8462
8463 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8464
31fffb02 84652008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8466
8467 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8468 * config.in, configure: Regenerate.
8469 * dwarf2read.c: Include zlib.h if present.
8470 Modified *_SECTION macros.
8471 (section_is_p): New.
8472 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8473 (dwarf2_resize_section): New.
8474 to determine whether a given section has a given name.
8475 (zlib_decompress_section): New.
8476 (dwarf2_read_section): Read the compressed section if present
8477 in the binary.
8478 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8479
a03b3a97
TJB
84802008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8481
8482 * defs.h (exec_set_section_offsets): Remove prototype.
8483 * exec.c (exec_set_section_offsets): Remove function.
8484
9e386756
JB
84852008-04-18 Joel Brobecker <brobecker@adacore.com>
8486
8487 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8488 in the search for the matching symbol.
8489
2ec93238
MK
84902008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8491
8492 * breakpoint.c (update_watchpoint): Always reparse
8493 condition.
8494
e9bbd7c5
JB
84952008-04-17 Joel Brobecker <brobecker@adacore.com>
8496
8497 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8498 the breakpoint address only once.
8499
475bbd17
JB
85002008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8501
8502 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8503 rather than a hard-coded architecture, for xcoff executables.
8504
86991504
DE
85052008-04-17 Doug Evans <dje@google.com>
8506
4584e32e
DE
8507 * buildsym.c (watch_main_source_file_lossage): New fn.
8508 (end_symtab): Call it.
8509
86991504
DE
8510 * source.c (find_and_open_source): Add some comments clarifying
8511 handling of FULLNAME argument. Make static. Remove pointless
8512 xstrdup/xfree.
8513
0a320680
PA
85142008-04-17 Pedro Alves <pedro@codesourcery.com>
8515
8516 * inf-loop.c (inferior_event_handler): Also run the intermediate
8517 continuations in the INF_EXEC_COMPLETE case.
8518
700b53b1
TT
85192008-04-16 Tom Tromey <tromey@redhat.com>
8520
8521 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8522 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8523 * cli/cli-decode.c (set_cmd_async_ok): New function.
8524 (get_cmd_async_ok): New function.
8525 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8526 "show" as async-ok.
8527 * top.c (execute_command): Use get_cmd_async_ok.
8528 * infcmd.c: Include cli/cli-decode.h.
8529 (_initialize_infcmd): Mark "interrupt" as async-ok.
8530 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8531
dacec2a8
DJ
85322008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8533
8534 PR gdb/2445
8535 * exec.c: Correct "arch-utils.h" include.
8536
1f906a60 85372008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
8538
8539 PR gdb/2424
8540 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8541 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8542 * breakpoint.c (bpdisp_texst): New function. The function takes over
8543 the role of bpstats static array in print_one_breakpoint_location.
8544 (print_it_typical): Print "Temporary breakpoint" instead
8545 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8546 protocols, print disp field.
8547 (print_one_breakpoint_location): Removed bpdisps static definition.
8548 Call new bpstat_text function to get value for 'disp' field.
8549 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8550
4d7b71aa
DJ
85512008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8552
8553 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8554 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8555 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8556 * gnulib/Makefile.in: Regenerate.
8557
aa11fd3f
DJ
85582008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8559
8560 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8561 (defs_h): Use $(GNULIB_H).
8562 (all-lib): Depend on gnulib/Makefile.
8563 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8564 * config.in, gnulib/Makefile.in: Regenerated.
8565
e28b3332
DJ
85662008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8567
8568 * Makefile.in (LIBGNU, INCGNU): Define.
8569 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8570 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8571 (CLEANDIRS): New.
8572 ($(LIBGNU), all-lib): New rules.
8573 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8574 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8575 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8576 * gnulib: New directory, from gnulib-tool.
8577 * configure, aclocal.m4: Regenerated.
8578
e3bc4218
DJ
85792008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8580
8581 * linux-thread-db.c (have_threads_callback): Check thread->private.
8582
fcacd99f
VP
85832008-04-13 Nick Roberts <nickrob@snap.net.nz>
8584 Vladimir Prus <vladimir@codesourcery.com>
8585
8586 Fix @-varobjs.
680b56ce
AS
8587 * varobj.c (value_of_root): Update the expression for
8588 floating varobjs.
8589 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8590 report that.
fcacd99f 8591
de051565
MK
85922008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8593
8594 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8595 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8596 (mi_cmd_var_set_format): Use new mi_parse_format.
8597 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8598 format.
8599 * Makefile.in (mi-cmd-var.o): Update dependencies.
8600
8601 * varobj.h (varobj_get_formatted_value): Declare.
8602 * varobj.c (my_value_of_variable): Added format parameter.
8603 (cplus_value_of_variable): Likewise.
8604 (java_value_of_variable): Likewise.
8605 (c_value_of_variable): Likewise. Evaluate expression based
8606 on format parameter.
8607 (struct language_specific): Add format parameter to function member
8608 *value_of_variable.
8609 (varobj_get_formatted_value): New.
8610 (varobj_get_value): Added format parameter to method call.
680b56ce 8611
56953f80
JB
86122008-04-08 Joel Brobecker <brobecker@adacore.com>
8613
8614 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8615 instance flags of the undefined type before calling replace_type.
8616
e4e33b9e
VP
86172008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8618
8619 * target.h (enum strata): Remove the download_stratum.
680b56ce 8620
92b5c263
DE
86212008-04-07 Doug Evans <dje@google.com>
8622
8623 * buildsym.h (last_source_file): Add dwarf info to comment.
8624 (last_source_start_addr): Ditto.
8625
effa26a9
PA
86262008-04-07 Pedro Alves <pedro@codesourcery.com>
8627
8628 * alphanbsd-tdep.c: Include "target.h".
8629 * mn10300-tdep.c: Include "target.h".
8630 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8631
2b2d9e11
VP
86322008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8633
8634 Fix breakpoint condition that use member variables.
680b56ce
AS
8635 * valops.c (check_field): Remove.
8636 (check_field_in): Rename to check_field.
8637 (value_of_this): Use la_name_of_this.
8638 * value.h (check_field): Adjust prototype.
8639
8640 * language.h (la_value_of_this): Rename to la_name_of_this.
8641 * language.c (unknown_language_defn): Specify "this" for
8642 name_of_this.
8643 (auto_language_defn): Likewise.
8644 (local_language_defn): Likewise.
8645 * ada-lang.c (ada_language_defn): Adjust comment.
8646 * c-lang.c (c_language_defn): Adjust comment.
8647 (cplus_language_defn): Specify "this" for name_of_this.
8648 (asm_language_defn): Adjust comment.
8649 (minimal_language_defn): Adjust comment.
8650 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8651 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8652 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8653 * objc-lang.c (objc_language_defn): Specify "self" for
8654 name_of_this.
8655 * p-lang.c (pascal_language_defn): Specify "this" for
8656 name_of_this.
8657 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8658
8659 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8660 proper scope, and check for field in type of "this", without
8661 trying to create a value.
2b2d9e11 8662
a13e061a
PA
86632008-04-04 Pedro Alves <pedro@codesourcery.com>
8664
8665 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8666 (mi_error_message): Delete declaration.
8667 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8668 returning MI_CMD_ERROR.
8669 * mi/mi-main.c (mi_error_message): Delete.
8670 (mi_cmd_exec_interrupt):
8671 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8672 (mi_cmd_thread_info): Call error instead of returning
8673 MI_CMD_ERROR.
8674 (mi_cmd_data_list_register_values): Call error instead of
8675 returning MI_CMD_ERROR. Adapt to new get_register interface.
8676 (get_register): Change return typo to void. Call error instead of
8677 returning MI_CMD_ERROR.
8678 (mi_cmd_data_write_register_values): Call error instead of
8679 returning MI_CMD_ERROR.
8680 (mi_cmd_list_features): Return MI_CMD_DONE.
8681 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8682 (mi_execute_command): Always print exceptions with -error.
8683
aad4b048
JB
86842008-04-04 Joel Brobecker <brobecker@adacore.com>
8685
8686 * NEWS: Mention new commands set/show multiple-symbols.
8687
717d2f5a
JB
86882008-04-03 Joel Brobecker <brobecker@adacore.com>
8689
8690 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
8691 (multiple_symbols_cancel): New constants.
8692 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
8693 (multiple_symbols_select_mode): New function.
8694 (_initialize_symtab): Add new set/show multiple-symbols commands.
8695 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
8696 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
8697 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
8698 setting.
8699 * linespec.c (decode_line_2): Likewise.
8700
f73634e5
DE
87012008-04-03 Doug Evans <dje@sebabeach.org>
8702
8703 * symtab.h (enum free_code): Delete free_contents, unused.
8704 * symmisc.c (free_symtab_block): Delete.
8705 (free_symtab, case free_code): Delete.
8706
1f906a60 87072008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
8708
8709 * valops.c (value_cast_structs): New function. Cast related
680b56ce 8710 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
8711 function comes mostly from value_cast_pointers.
8712 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
8713 to value_cast_structs. Now value_cast_pointers needs only create
8714 appropriate reference after using value_cast_structs for actual
8715 casting.
8716 (value_cast): Handle references.
8717
61ad90e1
MK
87182008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
8719
8720 * MAINTAINERS: Added myself to section Write After Approval.
8721
b7d038ae
DJ
87222008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8723
8724 * ia64-tdep.c (examine_prologue): Correct array access.
8725
1f906a60 87262008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
8727
8728 * cp-support.c (first_component_command): Return if no arguments.
8729
df3ac606
CD
87302008-03-28 Carlos O'Donell <carlos@codesourcery.com>
8731
8732 * ser-mingw.c (ser_windows_open): Open requested name.
8733
ca933485
AR
87342008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
8735
8736 * MAINTAINERS: Added myself.
8737
5f667f2d
PA
87382008-03-28 Pedro Alves <pedro@codesourcery.com>
8739
8740 * target.c (find_default_run_target): Allow a NULL `do_mesg'
8741 parameter. If it is NULL, don't call error.
8742 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
8743 `do_mesg' parameter to find_default_run_target. If no target was
8744 found, return 0.
8745
e741f4d4
DJ
87462008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
8747
8748 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
8749 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
8750 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
8751 Delete.
8752 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
8753
f66d8205 87542008-03-27 Joel Brobecker <brobecker@adacore.com>
8755
8756 GDB 6.8 released.
8757
221c031f
UW
87582008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8759
8760 * features/Makefile (%.dat): Set xmltarget to the base filename
8761 of the XML source, without subdirectory.
8762 * regformats/rs6000/powerpc-32.dat: Regenerate.
8763 * regformats/rs6000/powerpc-64.dat: Regenerate.
8764 * regformats/rs6000/powerpc-e500.dat: Regenerate.
8765
40c58d95
MD
87662008-03-27 Markus Deuling <deuling@de.ibm.com>
8767
8768 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
8769 objfile arch.
8770
bb1ec7d2
NR
87712008-03-27 Nick Roberts <nickrob@snap.net.nz>
8772
8773 * mi/mi-main.c (enum captured_mi_execute_command_actions):
8774 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
8775
5e2b427d
UW
87762008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
8777
8778 * objfiles.h (struct objfile): New GDBARCH member.
8779 (get_objfile_arch): Add prototype.
8780 * objfiles.c: Include "arch-utils.h".
8781 (allocate_objfile): Look up gdbarch associated with bfd.
8782 (get_objfile_arch): New function.
8783 * Makefile (objfiles.o): Update dependencies.
8784
8785 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
8786 by objfile arch.
8787 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
8788 by frame arch.
8789 (locexpr_describe_location): Replace current_gdbarch by
8790 objfile arch.
8791 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
8792 (dwarf2_add_field): Likewise.
8793 (read_tag_pointer_type): Likewise.
8794 (read_base_type): Likewise.
8795 (new_symbol): Likewise.
8796
8797 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
8798 (decode_base_type, decode_function_type): Likewise.
8799 (coff_read_struct_type, coff_read_enum_type): Likewise.
8800 (coff_symtab_read): Replace current_gdbarch by objfile arch.
8801 (decode_base_type): Likewise.
8802 (coff_read_enum_type): Likewise.
8803 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
8804 (coff_read_enum_type): Likewise.
8805
8806 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
8807 (end_psymtab): Likewise.
8808 (process_one_symbol): Likewise.
8809
8810 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
8811 (parse_procedure): Likewise.
8812 (parse_partial_symbols): Likewise.
8813
8814 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
8815
8816 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
8817 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
8818 built-in types.
8819 (read_range_type): Replace current_gdbarch by objfile arch. Replace
8820 static range_index_type by built-in type.
8821 (read_one_struct_field): Replace current_gdbarch by objfile arch.
8822 (read_enum_type): Likewise.
8823
8824 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
8825 objfile arch.
8826
5a413362
VP
88272008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8828
8829 * varobj.h (varobj_floating_p): Declare.
8830 * varobj.c (varobj_floating_p): New.
8831 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
8832 '@' as the name, update all floating varobjs.
8833
a5defcdc
VP
88342008-03-26 Vladimir Prus <vladimir@codesourcery.com>
8835
8836 * varobj.c (struct varobj_root): Rename use_selected_frame to
8837 floating, and clarify the meaning.
8838 (varobj_create, varobj_update, new_root_variable): Adjust.
8839 (value_of_root): Don't use type_changed as in variable,
8840 adjust comment.
8841 (c_value_of_root): Adjust.
5a413362 8842
403fe197
PA
88432008-03-25 Pedro Alves <pedro@codesourcery.com>
8844
8845 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
8846 gdb's thread list.
8847 (linux_nat_wait): Add main lwp to gdb's thread list.
8848 * linux-thread-db.c (find_new_threads_callback): Also attach to
8849 already listed threads which thread_db didn't know about yet.
8850
710151dd
PA
88512008-03-25 Pedro Alves <pedro@codesourcery.com>
8852
8853 * linux-nat.c (drain_queued_events): Fix comment typo.
8854 (linux_nat_attach): In async mode, don't rely on storing a pending
8855 status. Instead place the wait status on the pipe.
8856 (linux_nat_resume): Remove unreacheable shortcut code in async
8857 mode.
8858 (stop_wait_callback): In async mode, don't store pending status.
8859 Instead, cancel breakpoints or resend the signal appropriatelly.
8860 (cancel_breakpoint): New, refactored from
8861 cancel_breakpoints_callback.
8862 (cancel_breakpoints_callback): Call cancel_breakpoint.
8863 (pipe_to_local_event_queue): Remove special token processing.
8864 (linux_nat_wait): Issue an internal error if a pending status is
8865 found in async mode.
8866
807bddf3
DJ
88672008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
8868
8869 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
8870
c5b48eac
VP
88712008-03-24 Nick Roberts <nickrob@snap.net.nz>
8872 Vladimir Prus <vladimir@codesourcery.com>
8873
680b56ce
AS
8874 * varobj.c (struct varobj_root): New component thread_id.
8875 (varobj_get_thread_id, check_scope): New functions.
8876 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
8877 proper thread if necessary.
8878
680b56ce 8879 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 8880
680b56ce 8881 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 8882
12f4afab
DJ
88832008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
8884
8885 PR gdb/544
8886 * top.c: Revert 2008-03-21 changes.
8887
6208b47d
VP
88882008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8889
8890 * thread.c (make_cleanup_restore_current_thread): Make it
8891 globally visible.
8892 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8893 * varobj.c (varobj_update): Don't save/restore frame.
8894 (c_value_of_root): Save/restore thread and frame here,
8895 using make_cleanup_restore_current_thread.
8896 * Makefile.in: Update dependecies.
8897
44a67aa7
VP
88982008-03-23 Vladimir Prus <vladimir@codesourcery.com>
8899
680b56ce
AS
8900 * varobj.c (struct varobj_root): Clarify
8901 comment on the frame field.
8902 (varobj_create): Don't set frame if we have no
8903 block.
44a67aa7 8904
b562a0cb
DJ
89052008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8906
8907 PR gdb/544
8908 Suggested by Jan Kratochvil:
8909 * top.c (gdb_rl_operate_and_get_next_completion): Call
8910 rl_redisplay_function.
8911 (gdb_rl_redisplay): New.
8912 (init_main): Set rl_redisplay_function.
8913
ed1bd5f5
JB
89142008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
8915
8916 * aix-thread.c (pdc_read_regs): Fix compiler warning.
8917 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
8918 (store_regs_kernel_thread): Likewise.
8919
b84876c2
PA
89202008-03-21 Pedro Alves <pedro@codesourcery.com>
8921
8922 Linux native async support.
8923
8924 * target.h (struct target_ops): Delete to_async_mask_value and add
8925 to_async_mask.
8926 (target_is_async_p, target_async): Formatting.
8927 (target_async_mask_value): Delete.
8928 (target_async_mask): Delete function declaration, and add new
8929 target macro with the same name.
8930
8931 * target.c (update_current_target): Replace to_async_mask_value by
8932 to_async_mask. Default to_async_mask to return_one.
8933 (target_async_mask): Delete.
8934 (find_default_can_async_p, find_default_is_async_p): New.
8935 (init_dummy_target): register find_default_can_async_p and
8936 find_default_is_async_p on the dummy target.
8937
8938 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
8939 (debug_linux_nat_async): New global.
8940 (show_debug_linux_nat_async): New function.
8941 (linux_nat_async_enabled, linux_nat_async_mask_value)
8942 (linux_nat_event_pipe, linux_nat_num_queued_events)
8943 (linux_nat_async_events_enabled): New globals.
8944 (struct waitpid_result): New struct.
8945 (waitpid_queue): New global.
8946 (queued_waitpid, push_waitpid, drain_queued_events): New.
8947 (my_waitpid): Call queued_waitpid.
8948 (linux_child_follow_fork): Disable async events during the call.
8949 (blocked_mask): Delete.
8950 (sync_sigchld_action, async_sigchld_action): New globals.
8951 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
8952 async mode, block events during the call.
8953 (linux_nat_create_inferior): New.
8954 (linux_nat_attach): In sync mode, restore the mask states. In
8955 async mode, wake the event loop immediatelly.
8956 (detach_callback): Drain all queued events of the lwp we're
8957 detaching from.
8958 (linux_nat_detach): Block async mode, and drain events of the main
8959 process.
8960 (linux_nat_resume): If in async mode, mask async events during the
8961 call. If short circuiting, force event loop to wake up. If
8962 resuming, set target_executing, and register target events in the
8963 event loop.
8964 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
8965 (linux_nat_wait): In async mode, block events during the call.
8966 Only enable/disable passing SIGINT to the inferior in sync mode.
8967 Get events from local waitpid queue. If no interesting events was
8968 found, return to events loop. Reregister target events in the
8969 event loop on exit. In sync mode, no need to reblock SIGCHLD.
8970 (linux_nat_kill): Disable events on entry.
8971 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
8972 here. Detach async mode from the event loop if there are no more
8973 forks available, otherwise leave it on.
8974 (sigchld_handler): Assure this is called only in sync mode.
8975 (linux_async_permitted, linux_async_permitted_1): New globals.
8976 (set_maintenance_linux_async_permitted)
8977 (show_maintenance_linux_async_permitted): New functions.
8978 (linux_nat_is_async_p, linux_nat_can_async_p)
8979 (linux_nat_async_mask): New.
8980 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
8981 (get_pending_events, async_sigchld_handler): New.
8982 (linux_nat_async_events): New.
8983 (async_terminal_is_ours): New global.
8984 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
8985 (async_client_callback, async_client_context): New.
8986 (linux_nat_async_file_handler, linux_nat_async)
8987 (linux_nat_disable_async, linux_nat_enable_async): New.
8988 (linux_nat_add_target): Register linux_nat_create_inferior,
8989 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
8990 linux_nat_async_mask, linux_nat_terminal_inferior and
8991 linux_nat_terminal_ours.
8992 (_initialize_linux_nat): Remove local action variable, and update
8993 code that used it to use sync_sigchld_action. Add new
8994 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
8995 set/show command in the maintenance class. Add new "linux-async"
8996 maintenance set/show command. Block SIGCHLD by default. Setup
8997 async_sichld_action, and sync_sigchld_action. Install the default
8998 async mode.
8999 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9000 the cancel signals.
9001
9002 * linux-thread-db.c (re_check_for_thread_db): New.
9003 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9004 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9005 (thread_db_async_mask): New.
9006 (init_thread_db_ops): Register thread_db_can_async_p,
9007 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9008
9009 * remote.c (remote_async_mask_value): New.
9010 (remote_return_zero): New.
9011 (init_remote_ops): Register remote_return_zero as callbacks of
9012 to_can_async_p and to_is_async_p.
9013 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9014 use remote_async_mask_value.
9015 (remote_async_mask): New.
9016 (init_remote_async_ops): Remove to_async_mask_value setting and
9017 register remote_async_mask as to_async_mask callback in
9018 remote_async_ops.
9019
9020 * Makefile.in (linux-nat.o): Update.
9021
17faa917
DJ
90222008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9023
9024 * gdbthread.h (add_thread_with_info): New.
9025 * linux-thread-db.c: Add some documentation.
9026 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9027 (struct private_thread_info): Remove th_valid and ti_valid.
9028 Replace ti with tid.
9029 (thread_get_info_callback): Do not add TID to the new ptid. Do
9030 not cache th or ti.
9031 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9032 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9033 new PTID.
9034 (attach_thread): Handle an already-existing thread. Use
9035 add_thread_with_info. Cache the th and tid.
9036 (detach_thread): Verify that private was set. Remove verbose
9037 argument and printing. Update caller.
9038 (thread_db_detach): Do not adjust inferior_ptid.
9039 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9040 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9041 (thread_db_wait): Do not use lwp_from_thread.
9042 (thread_db_pid_to_str): Use the cached TID.
9043 (thread_db_extra_thread_info): Check that private is set.
9044 (same_ptid_callback): Delete.
9045 (thread_db_get_thread_local_address): Do not use it or check
9046 is_thread. Check that private is set. Assume that the thread
9047 handle is already cached.
9048 (init_thread_db_ops): Remove to_resume and to_kill.
9049 * thread.c (add_thread_with_info): New.
9050 (add_thread): Use it.
9051 * linux-nat.c (find_thread_from_lwp): Delete.
9052 (exit_lwp): Do not use it. Check print_thread_events. Print before
9053 deleting the thread.
9054 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9055 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9056 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9057 printf_unfiltered for thread exits.
9058 * procfs.c (procfs_wait): Likewise.
9059
6214f497
DJ
90602008-03-21 Chris Demetriou <cgd@google.com>
9061
9062 * symtab.c (rbreak_command): Quote symbol name before passing
9063 it to break_command.
9064
63092375
DJ
90652008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9066
9067 * eval.c (evaluate_subexp_for_address): Clarify error message.
9068 Use value_must_coerce_to_target.
9069 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9070 * valops.c (value_assign): Call value_coerce_to_target when
9071 assigning to anything but internalvars. Leave GDB-side arrays
9072 as arrays when assigning to internalvars.
9073 (value_must_coerce_to_target, value_coerce_to_target): New.
9074 (value_coerce_array, value_addr): Call value_coerce_to_target.
9075 (value_array): Create the array in GDB's memory instead of
9076 the inferior's.
9077 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9078 Declare.
9079
b21991b0
DJ
90802008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9081
9082 * top.c (quit_confirm): Warn that we will kill the program.
9083
49a834f9
PA
90842008-03-19 Pedro Alves <pedro@codesourcery.com>
9085
9086 * inflow.c (terminal_ours_1): Guard access to
9087 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9088
ae0d2f24
UW
90892008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9090 Jim Blandy <jimb@codesourcery.com>
9091 Daniel Jacobowitz <drow@false.org>
9092
9093 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9094 (dwarf2_read_address): Update prototype.
9095
9096 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9097 (signed_address_type): Likewise.
9098 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9099 (execute_stack_op): Update calls to unsigned_address_type,
9100 signed_address_type and dwarf2_read_address. Fix implementation
9101 of DW_OP_deref_size.
9102
9103 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9104 (dwarf2_per_cu_addr_size): Likewise.
9105 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9106 (struct dwarf2_loclist_baton): Likewise.
9107
9108 * dwarf2loc.c (find_location_expression): Update calls to
9109 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9110 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9111 (locexpr_describe_location): Likewise.
9112 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9113 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9114 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9115 to dwarf2_per_cu_addr_size (per_cu).
9116 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9117 (loclist_read_variable): Likewise.
9118 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9119
9120 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9121 instead of baton->objfile.
9122 (dwarf2_per_cu_obfile): New function.
9123 (dwarf2_per_cu_addr_size): Likewise.
9124
9125 * dwarf2-frame.c (struct comp_unit): Move higher.
9126 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9127 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9128 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9129 parameter by using fde->eh_frame_p. Use read_encoded_value
9130 to implement DW_CFA_set_loc.
9131 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9132 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9133 execute_stack_op and execute_cfa_program.
9134 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9135 (size_of_encoded_value): Remove.
9136 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9137 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9138 (add_cie): Set cie->unit backlink.
9139 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9140 read_encoded_value.
9141 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9142
1c8201d1
MD
91432008-03-17 Markus Deuling <deuling@de.ibm.com>
9144
9145 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9146 gdbarch_bfd_arch_info.
9147
46bba1ef
JB
91482008-03-17 Joel Brobecker <brobecker@adacore.com>
9149
9150 * aix-thread.c (pdc_read_regs): Minor reformatting.
9151
0bcd3e20
VP
91522008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9153
9154 * thread.c (print_thread_info): Don't insist
9155 on having current thread if there are no
9156 threads at all.
9157
9356cf8d
PA
91582008-03-17 Pedro Alves <pedro@codesourcery.com>
9159
9160 * infcmd.c (attach_command_post_wait)
9161 (attach_command_continuation): New.
9162 (attach_command): Support background async execution, and async
9163 execution in synchronous mode.
9164
5c3ce3f7
DJ
91652008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9166
9167 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9168 * symmisc.c (dump_symtab_1): Likewise.
9169 * wrapper.c (gdb_value_struct_elt): Likewise.
9170
fa2c6a57
PA
91712008-03-17 Pedro Alves <pedro@codesourcery.com>
9172
9173 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9174
02f3fc28
PA
91752008-03-17 Pedro Alves <pedro@codesourcery.com>
9176
9177 * linux-nat.c (linux_nat_filter_event): New, refactored from
9178 linux_nat_wait.
9179 (linux_nat_wait): Call linux_nat_filter_event.
9180
2f77b315
UW
91812008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9182
9183 * top.c (execute_command): Fix uninitialized variable error.
9184
f01be29b
NH
91852008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9186
680b56ce
AS
9187 * Makefile.in (amd64nbsd-nat.o): New dependency.
9188 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9189 (_initialize_amd64nbsd_nat): Update target vector to use
9190 nbsd_pid_to_exec_file.
9191 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9192
6cf32704
VP
91932008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9194
9195 Remove ignoring leading exec events code.
680b56ce
AS
9196 * fork-child.c (startup_inferior): Do not set
9197 inferior_ignoring_leading_exec_events.
9198 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9199 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9200 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9201 (handle_inferior_event): Remove code for ignoring leading exec
9202 events.
9203 * target.c (update_current_target): Do not inherit, or default,
9204 to_reported_exec_events_per_exec_call.
9205 (debug_to_reported_exec_events_per_exec_call): Remove.
9206 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9207 * target.h (target_reported_exec_events_per_exec_call): Remove.
9208 (struct target): Remove the to_reported_exec_events_per_exec_call
9209 field.
6cf32704 9210
8e8901c5
VP
92112008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9212
9213 Implement -thread-info.
680b56ce 9214 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9215
680b56ce
AS
9216 * thread.c (print_thread_info): New, extracted
9217 from info_threads_command and adjusted to
9218 work for CLI and MI.
9219 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9220 * Makefile.in: Update dependencies.
9221
680b56ce
AS
9222 * mi/mi-cmds.c (mi_cmds): Specify a handler
9223 for -thread-info.
9224 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9225 * mi/mi-main.c (mi_cmd_thread_info): New.
9226 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9227
7d1e6fb8
KB
92282008-03-14 Kevin Buettner <kevinb@redhat.com>
9229
9230 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9231 to decide whether to match instruction patterns using "sw" and "sd".
9232
89113898
PA
92332008-03-14 Pedro Alves <pedro@codesourcery.com>
9234
9235 * infcmd.c (jump_command): Postpone disabling stdin until after
9236 the possible query.
9237
64a0ac84
PA
92382008-03-14 Pedro Alves <pedro@codesourcery.com>
9239
9240 * inflow.c (gdb_getpgrp): New.
9241 (gdb_has_a_terminal): Use get_getpgrp.
9242 (terminal_ours_1): If attach_flag is set, don't refetch
9243 inferior_process_group.
9244
1fddbabb
PA
92452008-03-14 Pedro Alves <pedro@codesourcery.com>
9246
9247 * features/library-list.dtd: Allow "section" elements as children
9248 of "library". Add "section" element and describe its attributes.
9249
9250 * solib-target.c (struct lm_info): Add section_bases member.
9251 (library_list_start_segment): Error out if seen a section element.
9252 (library_list_start_section): New.
9253 (library_list_end_library): New.
9254 (solib_target_free_library_list): Free section_bases.
9255 (section_attributes): New.
9256 (library_children): Make "segment" optional. Add "section" child.
9257 (library_list_children): Register library_list_end_library.
9258 (solib_target_relocate_section_addresses): Handle section bases.
9259
9260 * NEWS: Mention new qXfer:libraries:read section offsets support.
9261
712af3be
VP
92622008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9263
9264 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9265 (make_exec_error_cleanup): Remove declarations.
9266 * utils.c (exec_error_cleanup_chain): Remove.
9267 (do_exec_error_cleanups, discard_exec_error_cleanups)
9268 (make_exec_error_cleanup): Remove.
9269 * event-loop.c (start_event_loop): Adjust call to
9270 async_enable_stdin.
9271 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9272 (async_disable_stdin): Don't register async_enable_stdin via
9273 cleanup.
9274 * inf-loop.c (inferior_event_handler): Don't
9275 call do_exec_error_cleanups. Call async_enable_stdin instead.
9276 * event-loop.c (start_event_loop): Adjust call to
9277 async_enable_stdin.
9278 * tui/tui-interp.c (tui_command_loop): Adjust call to
9279 async_enable_stdin.
9280
32c1e744
VP
92812008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9282
9283 Async mode fixes.
680b56ce
AS
9284 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9285 * breakpoint.c (bpstat_do_actions): In async mode,
9286 don't jump to top expecting stop_bpstat to be already
9287 updated.
9288 * event-loop.c (start_event_loop): Call async_enable_stdin
9289 on exception.
9290 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9291 is not set.
9292 (command_handler): Do not setup continuation here.
9293 (command_line_handler_continuation): Move to...
9294 * top.c (command_line_handler_continuation): ... here.
9295 (execute_command): In async mode, register continuation.
9296 Don't check frame's language in running in async mode.
9297 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9298 * inf-loop.c (complete_execution): Inline into...
9299 (inferior_event_handler): ... here. Clear target_executing before
9300 doing any cleanups. Don't try to show prompt if the target was
9301 resumed.
9302 * infcmd.c (signal_command): Add support for async mode.
9303 (finish_command): Only add continuation if the target was
9304 successfully resumed.
9305 * remote.c (init_async_opts): Register to_get_thread_local_address
9306 handler.
9307 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9308 with sync_execution.
9309 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9310 on exception.
32c1e744 9311
c04ea773
DJ
93122008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9313
9314 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9315 * exec.c (exec_bfd_mtime): Define.
9316 (exec_close): Clear it.
9317 (exec_file_attach): Set it.
9318 * gdbcore.h (exec_bfd_mtime): Declare.
9319 * source.c (find_source_lines): Do not use bfd_get_mtime.
9320
952dc227
VP
93212008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9322
9323 * top.c (simplified_command_loop): Remove.
9324
4cf46804
VP
93252008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9326
9327 Remove unused remote.c hooks.
680b56ce
AS
9328 * remote.c (deprecated_target_resume_hook)
9329 (deprecated_target_wait_loop_hook): Remove.
9330 (remote_resume): Do not call deprecated_target_resume_hook.
9331 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9332 (remote_async_wait): Likewise.
4cf46804 9333
683f2885
VP
93342008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9335
9336 Implement MI notification for new threads.
680b56ce
AS
9337 * doc/observer.texi (new_thread): Document.
9338 * observer.sh: Forward declare struct thread_info.
9339 * thread.c (add_thread): Notify observer.
9340
9341 * interps.h (interp_init_ftype): New parameter
9342 top_level.
9343 (interp_set): Likewise.
9344 (top_level_interpreter_data): Declare.
9345 * interps.c (interp_set): New parameter top_level.
9346 Pass it to interpreter's init function. Remember
9347 top level interpreter.
9348 (interpreter_exec_cmd): Adjust.
9349 (top_level_interpreter_data): New.
9350 * main.c (captured_main): Pass 1 for top_level
9351 parameter of interp_set.
683f2885 9352 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9353 parameter top_level.
9354 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9355
680b56ce
AS
9356 * mi/mi-interp.c (mi_new_thread): New.
9357 (mi_interpreter_init): If top level, register
9358 observer for new threads.
683f2885 9359
680b56ce 9360 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9361
ff9b3928
PA
93622008-03-14 Pedro Alves <pedro@codesourcery.com>
9363
9364 * top.c (execute_command): Disable break and stop
9365 commands in async mode.
9366
b18392ef
PA
93672008-03-14 Pedro Alves <pedro@codesourcery.com>
9368
9369 revert:
9370 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9371 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9372 Call target_stop in the INF_QUIT_REQ case.
9373 * Makefile.in (inf-loop.o): Update.
9374
0aca9f07
PA
93752008-03-14 Pedro Alves <pedro@codesourcery.com>
9376
9377 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9378 Call target_stop in the INF_QUIT_REQ case.
9379 * Makefile.in (inf-loop.o): Update.
9380
0b4e556c
PA
93812008-03-14 Pedro Alves <pedro@codesourcery.com>
9382
9383 * top.c (execute_command): Enable break, info and interrupt
9384 commands in async mode.
9385
8defab1a
DJ
93862008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9387 Daniel Jacobowitz <dan@codesourcery.com>
9388
9389 * breakpoint.h (breakpoint_restore_shadows): New
9390 declaration.
9391 * breakpoint.c (breakpoint_restore_shadows): New.
9392 (read_memory_nobpt): Delete.
9393 * gdbcore.h (read_memory_nobpt): Delete declaration.
9394 * target.c (memory_xfer_partial): Call
9395 breakpoint_restore_shadows.
9396 (restore_show_memory_breakpoints)
2da16c8c 9397 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9398 (show_memory_breakpoints): New.
2da16c8c 9399 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9400 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9401 Make sure we see memory breakpoints when checking if
9402 breakpoint is still there.
9403 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9404 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9405 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9406 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9407
fd532e2e
PA
94082008-03-12 Pedro Alves <pedro@codesourcery.com>
9409
9410 * thread.c (add_thread): Use printf_unfiltered to print.
9411
f749779f 94122008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9413
9414 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9415 that is true only on x86-solaris and x86_64-solaris.
9416 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9417 with proc_get_LDT_entry.
9418
94192008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9420
9421 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9422 * config.in, configure: Regenerate.
9423 * fork-child.c (fork_inferior): Call create_tty_session.
9424 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9425 (create_tty_session): New function.
9426 * terminal.h: Declare create_tty_session.
9427
4fbb74a6
AM
94282008-03-12 Alan Modra <amodra@bigpond.net.au>
9429
9430 PR 5900
9431 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9432 * mipsread.c: Include elf/internal.h.
9433 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9434 to internal range.
9435
20a6ec49
MD
94362008-03-11 Markus Deuling <deuling@de.ibm.com>
9437
9438 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9439 to get at the current architecture and at the target specific vector.
9440 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9441 remove define of I387_ST0_REGNUM.
9442
9443 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9444
9445 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9446 get at the current architecture
9447 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9448 parameter.
9449
9450 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9451 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9452
9453 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9454 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9455 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9456
9457 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9458 at the target specific vector.
9459
9460 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9461 architecture. Use gdbarch_tdep to get at the target specific vector.
9462
9463 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9464 update caller. Use gdbarch_tdep to get at the target specific vector.
9465
9466 (i386_register_to_value: Use get_frame_arch to get at the current
9467 architecture.
9468
9469 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9470 parameter.
9471
9472 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9473 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9474 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9475 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9476
9477 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9478 undef's.
9479
9480 (i387_convert_register_p, i387_register_to_value,
9481 i387_value_to_register): Update call for i386_fp_regnum_p.
9482
9483 * i387-tdep.h: Remove comment.
9484 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9485 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9486 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9487 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9488 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9489
ccd213ac
DJ
94902008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9491
9492 * Makefile.in (fork-child.o): Update.
9493 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9494 argument. Gather all gdbserver features together.
9495 * fork-child.c (exec_wrapper): New variable.
9496 (fork_inferior): Use it.
9497 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9498 (unset_exec_wrapper_command, _initialize_fork_child): New.
9499
95002008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9501
9502 * source.c (directory_command): Modify the determination of
9503 condition of terminal "from_tty".
9504
22566fbd
DJ
95052008-03-10 Matt Rice <ratmice@gmail.com>
9506
9507 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9508
9971ac47
UW
95092008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9510
9511 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9512 of the data passing to strtoulst function.
9513 (info_spu_signal_command): Likewise.
9514
835670cf
VP
95152008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9516
9517 * mi/mi-interp.c (mi_command_loop): Remove
9518 commented-out code.
680b56ce 9519
be86555c
JB
95202008-03-07 Joel Brobecker <brobecker@adacore.com>
9521
9522 * remote.c (extended_remote_attach_1): Make local variable pid an int
9523 instead of a pid_t.
9524
4d7b2d5b
JB
95252008-03-07 Joel Brobecker <brobecker@adacore.com>
9526
9527 * solib-svr4.c (svr4_same_1): New function, originally extracted
9528 from svr4_same and expanded to handle the sparc64 case.
9529 (svr4_same): Move up and reimplement using svr4_same_1.
9530 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9531
61fed90e
RR
95322008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9533
9534 * MAINTAINERS: Move self to Paper trail.
9535
b803fb0f
DJ
95362008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9537
9538 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9539 * event-loop.c (call_async_signal_handler): New.
9540 * event-loop.h (call_async_signal_handler)
9541 (gdb_call_async_signal_handler): Declare.
9542 (mark_async_signal_handler): Add comments.
9543 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9544 * mingw-hdep.c (sigint_event, sigint_handler): New.
9545 (gdb_select): Use them. Wait for the readline signal handler
9546 to finish.
9547 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9548 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9549 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9550 New.
9551 (remote_fileio_ctrl_c_signal_handler): Use
9552 gdb_call_async_signal_handler.
9553 (initialize_remote_fileio): Initialize sigint_fileio_token.
9554 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9555 not initialize tokens here.
9556 (handle_remote_sigint_twice): Likewise. Reinstall
9557 handle_remote_sigint.
9558 (async_remote_interrupt_twice): Just call interrupt_query.
9559 (cleanup_sigint_signal_handler): Do not delete tokens.
9560 (remote_interrupt, remote_interrupt_twice): Use
9561 gdb_call_async_signal_handler.
9562 (interrupt_query): Reinstall the default signal handler.
9563 (_initialize_remote): Initialize tokens here.
9564
8f4d54ed
JB
95652008-03-04 Joel Brobecker <brobecker@adacore.com>
9566
9567 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9568 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9569 Change the type of the lr register to code_ptr.
9570 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9571 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9572 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9573 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9574 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9575 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9576 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9577
95ece428
JW
95782008-03-03 James E. Wilson <wilson@tuliptree.org>
9579
9580 * MAINTAINERS: Update my email address.
9581
686a5eed
KS
95822008-03-03 Keith Seitz <keiths@redhat.com>
9583
9584 From Dave Murphy <davem@devkitpro.org>:
9585 * configure.ac: Set tcl configdir to win under mingw.
9586 * configure: Regenerate.
9587
fa4727a6
DJ
95882008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9589
9590 * breakpoint.c (fetch_watchpoint_value): New function.
9591 (update_watchpoint): Set and clear val_valid. Use
9592 fetch_watchpoint_value. Handle unreadable values on the
9593 value chain. Correct check for user-requested array watchpoints.
9594 (breakpoint_init_inferior): Clear val_valid.
9595 (watchpoint_value_print): New function.
9596 (print_it_typical): Use it. Do not free or clear old_val. Print
9597 watchpoints even if old_val == NULL.
9598 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9599 becoming readable or unreadable.
9600 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9601 (do_enable_watchpoint): Likewise.
9602 * breakpoint.h (struct breakpoint): Update comment for val. Add
9603 val_valid.
9604 * NEWS: Mention watchpoints on inaccessible memory.
9605
9b7d9019 96062008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
9607
9608 * Makefile.in (i386-nat.o): Update.
9609 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9610 i386_use_watchpoints.
9611 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9612 i386_use_watchpoints.
9613 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9614 (i386_stopped_by_watchpoint): Update call.
9615 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9616 * config/i386/nm-i386.h: Conditionalize definitions on
9617 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9618 (i386_use_watchpoints): Declare.
9619 (i386_stopped_data_address): Update.
9620 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9621 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9622
c24d7425 96232008-02-29 Joel Brobecker <brobecker@adacore.com>
9624
9625 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9626 * version.in: Bump version to 6.8.50.20080229-cvs.
9627
a7dfd010
MD
96282008-02-28 Markus Deuling <deuling@de.ibm.com>
9629
9630 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9631 properly.
9632
258c00cc
TT
96332008-02-28 Tom Tromey <tromey@redhat.com>
9634
9635 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9636
8edfe269
DJ
96372008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9638
9639 * infcmd.c (kill_if_already_running): Make static. Use
9640 target_require_runnable.
9641 * target.c (target_require_runnable): New.
9642 * target.h (target_require_runnable): Declare.
9643
0d6ba1b1
DJ
96442008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9645
9646 * frame.c (reinit_frame_cache): Only annotate if frames were
9647 previously valid.
9648
6fe305f7
UW
96492008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9650
9651 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9652 * regformats/reg-ppc64.dat: Likewise.
9653
9b4b61c8
UW
96542008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9655
9656 * features/Makefile (%.dat): Emit xmltarget statement.
9657
9658 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9659 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9660
9661 * regformats/arm-with-iwmmxt.dat: Regenerate.
9662 * regformats/mips64-linux.dat: Regenerate.
9663 * regformats/mips-linux.dat: Regenerate.
9664 * regformats/rs6000/powerpc-32.dat: Regenerate.
9665 * regformats/rs6000/powerpc-64.dat: Regenerate.
9666 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9667
9668 * regformats/reg-arm.dat: Add xmlarch statement.
9669 * regformats/reg-i386.dat: Likewise.
9670 * regformats/reg-i386-linux.dat: Likewise.
9671 * regformats/reg-x86-64-linux.dat: Likewise.
9672 * regformats/reg-spu.dat: Likewise.
9673
20b4711e
DJ
96742008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9675
9676 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9677 an error.
9678
1843f87b
DJ
96792008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9680
9681 * utils.c (debug_timestamp): New.
9682 (vfprintf_unfiltered): Print timestamps if requested.
9683 (show_debug_timestamp): New.
9684 (initialize_utils): Register "set debug timestamp".
9685 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
9686
6a048695
JB
96872008-02-27 Joel Brobecker <brobecker@adacore.com>
9688
9689 * breakpoint.c (skip_prologue_sal): New function.
9690 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
9691 computed from a line number.
9692
0b998f49
JB
96932008-02-27 Joel Brobecker <brobecker@adacore.com>
9694
9695 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
9696 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9697 Set PC register type to "code_ptr".
9698 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9699 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9700 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9701 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9702 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9703 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9704 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
9705 Regenerate.
9706
d05b4ac3
UW
97072008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
9708
9709 * regformats/regdat.sh: Rename init_registers function in
9710 generated file to init_registers_${name}.
9711
9712 * regformats/reg-crisv32.dat: Set "name" to crisv32.
9713 * regformats/reg-ppc64.dat: Set "name" to ppc64.
9714 * regformats/reg-s390x.dat: Set "name" to s390x.
9715
a5d9d57d
DJ
97162008-02-26 Greg Law <glaw@undo-software.com>
9717
9718 * regcache.c (registers_changed): Call reinit_frame_cache.
9719
e25c958c
DJ
97202008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9721
9722 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
9723 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
9724 and svr4_fetch_objfile_link_map.
9725 * Makefile.in (sh-linux-tdep.o): Update.
9726
5daa78cc
TJB
97272008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
9728
9729 * amd64-tdep.c (amd64_classify): Add support for decimal float
9730 types.
9731 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
9732 use the struct return convention.
9733
54e52265
VP
97342008-02-26 Nick Roberts <nickrob@snap.net.nz>
9735
9736 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
9737 to old format. Discard breakpoint address if shared library is
9738 unloaded.
9739 (breakpoint_1): Adjust formatting of table header accordingly.
9740
d8f2712d
VP
97412008-02-25 Vladimir Prus <vladimir@codesourcery.com>
9742
9743 * remote.c (remote_get_threadlist): If the response
9744 is empty, don't try to parse it.
9745
05ce04a4
VP
97462008-02-23 Vladimir Prus <vladimir@codesourcery.com>
9747
9748 Unbreak 'target async'.
680b56ce
AS
9749 * serial.c (serial_async): Set the
9750 handler function before enabling async
9751 mode.
05ce04a4 9752
b36ec657
DJ
97532008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
9754
9755 * solib-svr4.c (enable_break): Convert r_brk to a code address.
9756
df7df359
PA
97572008-02-21 Pedro Alves <pedro@codesourcery.com>
9758
9759 * remote.c (extended_remote_attach_1): Set attach_flag.
9760 (extended_remote_create_inferior_1): Clear attach_flag.
9761
7cd25cfc
DJ
97622008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9763
9764 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
9765 r_brk_offset.
9766 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
9767 * solib-svr4.c (solib_svr4_r_brk): New.
9768 (open_symbol_file_object, svr4_current_sos): Always check the
9769 debug base.
9770 (svr4_fetch_objfile_link_map): Do not set debug_base.
9771 (enable_break): Use r_brk if it is set.
9772 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
9773 (svr4_lp64_fetch_link_map_offsets): Likewise.
9774 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
9775
07ea644b
MD
97762008-02-20 Markus Deuling <deuling@de.ibm.com>
9777 Mark Kettenis <kettenis@gnu.org>
9778
9779 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
9780 trad_frame_saved_reg.
680b56ce 9781 (trad-frame.h): New include.
07ea644b
MD
9782
9783 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 9784 instead of frame_obstack_zalloc.
07ea644b
MD
9785 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
9786
680b56ce 9787 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 9788
40887e1a
MD
97892008-02-20 Markus Deuling <deuling@de.ibm.com>
9790
9791 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
9792 from disassemble_info instead of gdbarch_byte_order.
9793
9794 * mips-tdep.c (gdb_print_insn_mips): Likewise.
9795 * arm-tdep.c (gdb_print_insn_arm): Likewise.
9796
ae4b2284
MD
97972008-02-20 Markus Deuling <deuling@de.ibm.com>
9798
9799 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
9800 gdbarch as parameter.
9801
9802 * gdbarch.{c,h}: Regenerate.
9803
9804 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9805 parameter.
9806 * mem-break.c (default_memory_insert_breakpoint)
9807 (default_memory_remove_breakpoint): Likewise.
9808 * target.h (default_memory_remove_breakpoint)
9809 (default_memory_insert_breakpoint): Likewise.
9810
9811 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
9812 parameter. Replace current_gdbarch by gdbarch.
9813 * m32r-tdep.c (m32r_memory_insert_breakpoint)
9814 (m32r_memory_remove_breakpoint): Likewise.
9815
d9bf65d5
DJ
98162008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
9817
9818 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
9819
b93b6ca7
JB
98202008-02-19 Joel Brobecker <brobecker@adacore.com>
9821
9822 * NEWS: Add entry describing Add support improvements.
9823
4ed226fe
MD
98242008-02-18 Markus Deuling <deuling@de.ibm.com>
9825
9826 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
9827 M68K_FP0_REGNUM.
9828
caaa79ad
MD
98292008-02-18 Markus Deuling <deuling@de.ibm.com>
9830
9831 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
9832 register_offset_hack anymore.
9833
9834 * regcache.{c,h} (register_offset_hack): Remove.
9835
e38c262f
MD
98362008-02-18 Markus Deuling <deuling@de.ibm.com>
9837
9838 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
9839
9840 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
9841 current_gdbarch by gdbarch.
9842 (hppa64_hpux_find_global_pointer): Likewise.
9843 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
9844 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
9845 find_global_pointer.
9846
9847 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
9848 parameter.
9849 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
9850
9851 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
9852 of gdbarch_num_regs.
9853
9854 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 9855 replace current_gdbarch by gdbarch.
e38c262f
MD
9856 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
9857
206988c4
MD
98582008-02-18 Markus Deuling <deuling@de.ibm.com>
9859
9860 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
9861 and replace current_gdbarch by gdbarch.
9862
9863 (store_register): Update call for exec_one_dummy_insn.
9864 (fetch_register, store_register): Update call of regmap.
9865
9866 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
9867 parameter and replace current_gdbarch by gdbarch.
680b56ce 9868
206988c4
MD
9869 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
9870 the current architecture. Update call for getregs_supplies and
9871 getfpregs_supplies.
9872 (ppcnbsd_fetch_inferior_registers): Likewise.
9873
680b56ce 9874 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
9875 replace current_gdbarch by gdbarch.
9876 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
9877 get_regcache_arch to get at the current architecture. Update call for
9878 getfpregs_supplies.
9879
f642be6b
MD
98802008-02-18 Markus Deuling <deuling@de.ibm.com>
9881
9882 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 9883 variables.
f642be6b 9884
b1f2bf01
MD
98852008-02-15 Markus Deuling <deuling@de.ibm.com>
9886
9887 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
9888
ee163bf5
VP
98892008-02-14 Vladimir Prus <vladimir@codesourcery.com>
9890
9891 * NEWS: Mention pending breakpints in MI.
680b56ce 9892
f6fbcbf9
MD
98932008-02-14 Markus Deuling <deuling@de.ibm.com>
9894
9895 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
9896
36af4ef6
MD
98972008-02-13 Markus Deuling <deuling@de.ibm.com>
9898
9899 Add script to build and test GDB using enable-targets=all.
9900
9901 * gdb_buildall.sh: New file.
9902
94a0e877
MG
99032008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
9904
9905 * NEWS (New native configurations): Xtensa GNU/Linux.
9906 (New targets): Xtensa GNU/Linux.
9907 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
9908 xtensa-linux-tdep.o
9909 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
9910 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
9911 * configure.tgt (xtensa*-*-linux*): New entry.
9912 * xtensa-config.c (xtensa_tdep): New variable.
9913 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
9914 (rmap): Change format based on new macro XTREG.
9915 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
9916 * xtensa-linux-nat.c: New.
9917 * xtensa-linux-tdep.c: New.
9918 * xtensa-xtregs.c: New.
9919 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
9920 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
9921 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
9922 (xtensa_register_t): New field coprocessor.
9923 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
9924 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
9925 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
9926 Update to handle privileged registers.
9927 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
9928 (xtensa_push_dummy_call): Set windowstart register correctly.
9929 (call0_analyze_prologue): Initialize xtensa_default_isa.
9930 (xtensa_derive_tdep): New.
9931 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
9932 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
9933 Call xtensa_derive_tdep().
9934 * config/xtensa/linux.mh: New.
9935 * regformats/reg-xtensa.dat: New.
9936
b7ee1b0a 99372008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
9938
9939 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
9940 (filenames.h): New include.
9941 * Makefile.in (corelow.o): Add dependency for filenames.h.
9942
8da2a1df
DJ
99432008-02-08 Doug Evans <dje@google.com>
9944
9945 * source.c (find_and_open_source): Always rewrite absolute filenames.
9946
776592bf
DE
99472008-02-07 Doug Evans <dje@google.com>
9948
9949 * breakpoint.c: #include "hashtab.h".
9950 (ambiguous_names_p): New fn.
9951 (update_breakpoint_locations): When restoring bp enable status, don't
9952 compare function names if any functions have same name.
9953 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
9954
d6565258
JB
99552008-02-07 Joel Brobecker <brobecker@adacore.com>
9956
9957 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
9958 instead of just a VEC*. Update use of SV.
9959 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
9960
6d53d0af
JB
99612007-02-07 Joel Brobecker <brobecker@adacore.com>
9962
9963 * NEWS: Put all new commands since gdb-6.7 together.
9964
2ba95b9b
JB
99652007-02-07 Joel Brobecker <brobecker@adacore.com>
9966
9967 * ada-lang.c: #include "vec.h".
9968 (struct string_vector, new_string_vector, string_vector_append):
9969 Delete.
9970 (char_ptr): New typedef.
9971 (DEF_VEC_P (char_ptr)): New VEC type.
9972 (symbol_completion_add): Update profile to take the new VEC type
9973 instead of the old string_vector structure. Update code accordingly.
9974 (ada_make_symbol_completion_list): Use the new VEC type instead of
9975 the old string_vector structure, and update the code accordingly.
9976 * Makefile.in (ada-lang.o): Add dependency on vec.h.
9977
4ae0885a
PM
99782008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9979
9980 * p-exp.y: Set current_type in missing places.
9981 (leftdiv_is_integer): New static variable.
9982 Typecast right operand of BINOP_DIV to long_double if both operands
9983 are integers.
9984
06b1d59c
MR
99852008-02-06 Maciej W. Rozycki <macro@mips.com>
9986
9987 * remote-mips.c (set_breakpoint): Rename to...
9988 (mips_set_breakpoint): ... this.
9989 (clear_breakpoint): Rename to...
9990 (mips_clear_breakpoint): ... this.
9991 (common_breakpoint): Rename to...
9992 (mips_common_breakpoint): ... this.
9993 (check_lsi_error): Rename to...
9994 (mips_check_lsi_error): ... this.
9995
41d27058
JB
99962007-02-05 Joel Brobecker <brobecker@adacore.com>
9997
9998 * language.h (struct language_defn): Add new field
9999 la_make_symbol_completion_list.
10000 * symtab.c (default_make_symbol_completion_list): Renames
10001 make_symbol_completion_list.
10002 (make_symbol_completion_list): New function.
10003 * symtab.h (default_make_symbol_completion_list): Add declaration.
10004 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10005 (auto_language, local_language): Likewise.
10006 * objc-lang.c (objc_language_defn): Likewise.
10007 * scm-lang.c (scm_language_defn): Likewise.
10008 * m2-lang.c (m2_language_defn): Likewise.
10009 * f-lang.c (f_language_defn): Likewise.
10010 * jv-lang.c (java_language_defn): Likewise.
10011 * p-lang.c (pascal_language_defn): Likewise.
10012 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10013 (minimal_language_defn): Likewise.
10014 * ada-lang.c (struct string_vector): New structure.
10015 (new_string_vector, string_vector_append, ada_unqualified_name)
10016 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10017 (ada_make_symbol_completion_list): New functions.
10018 (ada_language_defn): Set la_make_symbol_completion_list.
10019 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10020 this function is static.
10021
ee3a2f01
KB
100222008-02-05 Kevin Buettner <kevinb@redhat.com>
10023
10024 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10025 to account for call site optimizations.
10026
d844e34b
JB
100272008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10028
10029 * tracepoint.c (read_actions): Handle end-of-text indicator
10030 in action list properly. (Committed by Jim Blandy)
10031
02e4669d
JB
100322008-02-05 Jim Blandy <jimb@red-bean.com>
10033
10034 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10035 pseudoregister, not an internal error.
85ecb32b 10036 Reported by: Andrzej Zaborowski
02e4669d 10037
c39c8256
VP
100382008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10039
10040 * varobj.c (c_value_of_variable): Use xstrdup.
10041
ae7d22a6
VP
100422008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10043
10044 Update stored rendition of varobj value when format changes.
10045 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
10046 print_value.
10047 (c_value_of_variable): Return print_value.
ae7d22a6 10048
81fe8080
DE
100492008-02-03 Doug Evans <dje@google.com>
10050
301f0ecf
DE
10051 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10052 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10053 * valops.c (value_one): New function.
10054 * value.h (value_one): Declare.
10055
10056 Fix argument promotion for binary arithmetic ops for C.
10057 * valarith.c (unop_result_type): New fn.
10058 (binop_result_type): New fn.
10059 (value_binop): Move result type computation to binop_result_type.
10060 (value_pos, value_neg, value_complement): Move result type
10061 computation to unop_result_type.
10062
81fe8080
DE
10063 PR 2384
10064 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10065 Return basetype, fieldno if found. All callers updated.
10066 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10067 objfile.
10068 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10069 * symfile.h (fill_in_vptr_fieldno): Delete.
10070
41808ebe
DE
100712008-02-02 Doug Evans <dje@google.com>
10072
f8597ac3
DE
10073 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10074
41808ebe
DE
10075 * typeprint.c (*): Whitespace cleanup.
10076
f964a756
MK
100772008-02-02 Mark Kettenis <kettenis@gnu.org>
10078 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10079 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10080
10081 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10082 don't fit into registerson the stack the way GCC does.
10083
b06ead72
JB
100842008-02-01 Joel Brobecker <brobecker@adacore.com>
10085
10086 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10087 hash table for Ada symbols. Just store the linkage name as is,
10088 and leave the demangled_name as NULL.
10089
2cfa0c8d
JB
100902007-02-01 Joel Brobecker <brobecker@adacore.com>
10091
10092 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10093 in the global scope.
10094 (new_symbol): Likewise.
10095
98deb0da 100962008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10097
10098 * breakpoint.c (break_command_1): Return void.
10099 (break_command_really): Return void. Rethrow
10100 exceptions instead of returning.
10101 (gdb_breakpoint): Remove the error_message parameter.
10102 Return void. Rename to set_breakpoint.
10103 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10104 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10105 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10106 event hooks even if exception is thrown. Adjust to
10107 gdb_breakpoint interface changes.
10108
98deb0da 10109
ce0451ad
TJB
101102008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10111
10112 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10113 float in both first and second word in the doubleword, to support
10114 old and new ABIs.
10115
723a2275
VP
101162008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10117
10118 Properly rethrow exception. This fixes errors
10119 about non-existent functions for -break-insert.
680b56ce
AS
10120 * breakpoint.c (break_command_really): Use throw_exception
10121 for rethrowing. If rethrowing, don't print the exception.
723a2275 10122
d64a946d
TJB
101232008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10124
10125 * NEWS: Mention Decimal Floating Point support.
10126
02b156f5
JB
101272008-01-31 Joel Brobecker <brobecker@adacore.com>
10128
10129 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10130 value type to builtin_type_void_func_ptr.
10131
a16b8bcd
UW
101322008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10133
10134 * s390-tdep.c (is_float_singleton, is_float_like,
10135 alignment_of, s390_return_value): Make checks for
10136 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10137
f949c649
TJB
101382008-01-31 Luis Machado <luisgpm@br.ibm.com>
10139 Thiago Jung Bauermann <bauerman@br.ibm.com>
10140
10141 * infcmd.c (default_print_registers_info): Also print hex
10142 raw contents for TYPE_CODE_DECFLOAT registers.
10143 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10144 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10145 (rs6000_register_name): Add support for DFP pseudo-registers.
10146 (rs6000_pseudo_register_type): Likewise.
10147 rs6000_pseudo_register_reggroup_p): Likewise.
10148 (ppc_pseudo_register_read): New function.
10149 (ppc_pseudo_register_write): Likewise.
10150 (rs6000_pseudo_register_read): Likewise.
10151 (rs6000_pseudo_register_write): Likewise.
10152 (e500_pseudo_register_read): Move checks to
10153 rs6000_pseudo_register_read.
10154 (e500_pseudo_register_write): Move checks to
10155 rs6000_pseudo_register_write.
10156 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10157 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10158 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10159 num_pseudo_regs to account for DFP pseudo regs.
10160
5a9e69ba
TJB
101612008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10162
10163 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10164 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10165 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10166 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10167 e500_pseudo_register_read, e500_pseudo_register_write): Use
10168 IS_SPE_PSEUDOREG macro.
10169 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10170 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10171 Remove initialization of tdep->ppc_ev31_regnum.
10172
4e885b20
JB
101732008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10174
10175 * printcmd.c (print_formatted): Handle references as for unformatted
10176 prints.
10177
80f064a2
JB
101782008-01-30 Joel Brobecker <brobecker@adacore.com>
10179
10180 * eval.c (evaluate_subexp_standard): Add handling of user
10181 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10182
9b3442ee
PM
101832008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10184
10185 * eval.c (evaluate_subexp_standard): Support
10186 BINOP_INTDIV opcode.
10187
d118ef87
PH
101882008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10189
10190 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10191 BINOP_MAX cases.
10192 For BINOP_EXP, use length and signedness of left operand only for
10193 result, as for shifts.
10194 For integral operands to BINOP_EXP, use new integer_pow and
10195 uinteger_pow functions so as to get full range of results.
10196 (integer_pow): New function.
10197 (uinteger_pow): New function.
10198
d56d46f5
VP
101992008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10200
10201 Use vector for varobj_list_children interface.
680b56ce
AS
10202 * gdb/varobj.c (varobj_list_children): Return vector
10203 of varobjs.
10204 * gdb/varobj.h (varobj_list_children): Adjust
10205 prototype.
10206 (varobj_p): Declare. Declare vector thereof.
10207 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10208 for varobj_list_children change.
d56d46f5
VP
10209 * Makefile.in (varobj_h): Update dependencies.
10210
1300a2f4
TJB
102112008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10212
10213 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10214 TYPE_CODE_DECFLOAT arguments.
10215 (ppc64_sysv_abi_push_dummy_call) Likewise.
10216 (get_decimal_float_return_value): New function.
10217 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10218 values by calling get_decimal_float_return_value.
10219 (ppc64_sysv_abi_return_value): Likewise.
10220
95ef687d
NR
102212008-01-30 Nick Roberts <nickrob@snap.net.nz>
10222
10223 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10224 for preprocessor macro information. Formatting changes.
10225
2d717e4f
DJ
102262008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10227
10228 * remote.c (struct remote_state): Add cached_wait_status.
10229 (remote_exec_file): New variable.
10230 (PACKET_vAttach, PACKET_vRun): New constants.
10231 (extended_remote_restart): Do not query for status.
10232 (struct start_remote_args): New.
10233 (remote_start_remote): Take it as a second argument. Check
10234 whether the target is running. Issue an error for non-running
10235 non-extended targets. Cache the wait status. Set inferior_ptid
10236 here.
10237 (remote_open_1): Prompt to disconnect non-running targets. Make
10238 sure the target is marked running. Do not set inferior_ptid here.
10239 Update call to remote_start_remote. Do not call remote_check_symbols
10240 if the target is not running.
10241 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10242 argument. Handle a non-running target.
10243 (remote_detach): Use it.
10244 (extended_remote_detach): New.
10245 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10246 (extended_remote_attach_1, extended_remote_attach)
10247 (extended_async_remote_attach): New.
10248 (remote_vcont_resume): Remove unused variable.
10249 (remote_wait, remote_async_wait): Use any cached wait status.
10250 (putpkt_binary, getpkt): Clear any cached wait status.
10251 (extended_remoute_mourn_1): New.
10252 (extended_remote_mourn): Use it.
10253 (extended_async_remote_mourn, extended_remote_run): New.
10254 (extended_remote_create_inferior_1): New.
10255 (extended_remote_create_inferior): Use it.
10256 (extended_remote_async_create_inferior): Likewise.
10257 (remote_xfer_partial): Skip for non-executing targets.
10258 (init_extended_remote_ops): Set to_detach and to_attach.
10259 (init_extended_async_remote_ops): Likewise. Use
10260 extended_async_remote_mourn.
10261 (_initialize_remote): Register vAttach, vRun, and
10262 set remote exec-file.
10263 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10264
e85a822c
DJ
102652008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10266
10267 * Makefile.in (symfile.o): Update.
10268 * NEWS: Mention exec tracing support.
10269 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10270 exec events.
10271 * infcmd.c (kill_if_already_running, detach_command)
10272 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10273 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10274 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10275 targets. Apply the sysroot path to the loaded executable. Use
10276 no_shared_libraries.
10277 * linux-nat.c (linux_child_follow_fork): Print fork following
10278 messages if verbose.
10279 (kill_wait_callback): Kill again before waiting a second time.
10280 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10281 no_shared_libraries.
10282
9db13498
JB
102832008-01-29 Joel Brobecker <brobecker@adacore.com>
10284
10285 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10286
b4d5ed91
JB
102872008-01-29 Joel Brobecker <brobecker@adacore.com>
10288
10289 * nto-tdep.h: Remove #include "defs.h".
10290 * nto-tdep.c: Add #include "defs.h".
10291 * Makefile.in (nto_tdep_h): Update dependencies.
10292 (nto-tdep.o): Likewise.
10293
107313f7 102942008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10295
10296 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10297 and use it.
10298 (proceed, start_remote): Update call to wait_for_inferior.
10299 * inferior.h (wait_for_inferior): Update declaration.
10300 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10301 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10302 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10303 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10304
3f4178d6
DJ
103052008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10306
680b56ce 10307 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10308 returned value from gdb_value_ind.
10309 (c_describe_child): Likewise.
10310 (cplus_describe_child): Fixed a typo.
10311
5eeba8d4
JB
103122008-01-29 Jim Blandy <jimb@red-bean.com>
10313
10314 * MAINTAINERS: Update my info.
10315
a5606eee
VP
103162008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10317
10318 Use multiple locations for hardware watchpoints.
10319 This eliminates the need to traverse value chain, doing
10320 various checks, in three different places.
10321
680b56ce
AS
10322 * breakpoint.h (struct bp_location): New fields
10323 lengths and watchpoint_type.
10324 (struct breakpoint): Remove the val_chain field.
10325 * breakpoint.c (is_hardware_watchpoint): New.
10326 (free_valchain): Remove.
10327 (update_watchpoint): New.
10328 (insert_bp_location): For hardware watchpoint, just
10329 directly insert it.
10330 (insert_breakpoints): Call update_watchpoint_locations
10331 on all watchpoints. If we have failed to insert
10332 any location of a hardware watchpoint, remove all inserted
10333 locations.
10334 (remove_breakpoint): For hardware watchpoints, directly
10335 remove location.
10336 (watchpoints_triggered): Iterate over locations.
10337 (bpstat_stop_status): Use only first location of
10338 a resource watchpoint.
10339 (delete_breakpoint): Don't call free_valchain.
10340 (print_one_breakpoint): Don't print all
10341 locations for watchpoints.
10342 (breakpoint_re_set_one): Use update_watchpoint for
10343 watchpoints.
a5606eee 10344
0b3de036
VP
103452008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10346
10347 Don't reset watchpoint block on solib load.
10348
680b56ce
AS
10349 * breakpoint.c (insert_bp_location): For watchpoints,
10350 recompute condition.
10351 (breakpoint_re_set_one): Instead of recomputing value
10352 and condition for watchpoints, just reset value and
10353 let insert_breakpoints/insert_bp_location recompute it.
10354 Don't do anything about disabled watchpoint.
0b3de036 10355
c3940723
PM
103562008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10357
10358 * valarith.c (value_binop): Handle unsigned integer
10359 division by zero.
10360
83845630
KB
103612008-01-28 Kevin Buettner <kevinb@redhat.com>
10362
10363 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10364 instruction pattern that appears frequently in position
10365 independent code. Fix bug in code which looks for "fmov" and
10366 backtracks if no "fmov" is found.
10367
9ce5d3bb
DE
103682008-01-28 Doug Evans <dje@google.com>
10369
10370 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10371 Reformat comments to 80 columns.
10372 Move local var def closer to only use.
9ce5d3bb 10373
c78d192c
DJ
103742008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10375
10376 * fork-child.c (SHELL_FILE): Remove #ifndef.
10377 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10378
e11481da
PM
103792008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10380
10381 * i386-tdep.c (i386_skip_noop): New function.
10382 (i386_analyze_prologue): Call i386_skip_noop function.
10383
244e85c8
MS
103842008-01-24 Michael Snyder <msnyder@specifix.com>
10385
10386 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10387 * win32-nat.c (win32_xfer_partial): Ditto.
10388 * target.c (default_xfer_partial): Minor whitespace adjustment.
10389
dd6be234
PA
103902008-01-24 Pedro Alves <pedro@codesourcery.com>
10391
10392 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10393 strip bit 1 even if pc doesn't point to thumb code.
10394
9fa2223d
DJ
103952008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10396
10397 * remote.c (remote_wait): Handle SIGINT between packets.
10398 (remote_async_wait): Likewise.
10399
93815fbf
VP
104002008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10401 Chris Demetriou <cgd@google.com>
10402
680b56ce
AS
10403 * thread.c (add_thread_silent): Renamed
10404 from add_thread.
10405 (print_thread_events): New variable definition.
10406 (show_print_thread_events): New function.
10407 (_initialize_thread): Add "set print thread-events" and
10408 "show print thread-events" commands.
10409 (add_thread): Announce new thread.
10410 * gdbthread.h (add_thread_silent): Declare.
10411 (print_thread_events): New variable declaration.
10412 * inf-ttrace.c (inf_ttrace_wait): Don't
10413 inform about new thread, as add_thread is always
10414 called too, and will take care of that.
10415 * infrun.c (handle_inferior_event): Likewise.
10416 * procfs.c (procfs_wait): Likewise.
10417 * remote.c (remote_currthread): Likewise.
10418 * sol-thread.c (sol_thread_wait): Likewise.
10419 * win32-nat.c (get_win32_debug_event): Likewise.
10420 * linux-thread-db.c (attach_thread): Likewise.
10421 Remove the verbose parameter.
10422 (check_event): Make detach_thread be verbose
10423 only if print_thread_events is set.
10424 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10425 about new thread. This is called only from
10426 linux-thread-db.c:attach_thread, which will take care.
10427 Remove the verbose parameter.
10428 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10429
b4d7c9a6
NR
104302008-01-23 Nick Roberts <nickrob@snap.net.nz>
10431
10432 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10433
60c46647
VP
104342008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10435
10436 * breakpoint.c (break_command_really): New parameter
10437 ignore_count.
10438 (break_command_1): Pass 0 as
10439 ignore_count to break_command_really.
10440 (gdb_breakpoint): Pass ignore_count to
10441 break_command_really.
10442
e84605cd
KB
104432008-01-21 Kevin Buettner <kevinb@redhat.com>
10444
10445 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10446 sigcontext struct via pointer.
10447 (struct sigframe comment): Update to show new field `psc'.
10448
9d9cd7ac
VP
104492008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10450
10451 * infrun.c (handle_inferior_event): If
10452 we failed to remove breakpoints, error,
10453 don't try to increment PC by hand.
10454
af5ca30d
NH
104552008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10456
10457 Add NetBSD/hppa target and host support.
10458
10459 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10460 (hppabsd_gregset): Move to ...
10461 (hppabsd_regset_from_core_section): Rename
10462 hppaobsd_regset_from_core_section and move to ...
10463 (hppabsd_find_global_pointer): Update comment.
10464 (hppabsd_init_abi): Make global. Do not register
10465 hppabsd_regset_from_core_section.
10466 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10467 move to ...
10468 (_initialize_hppabsd_tdep): Move to ...
10469 * hppaobsd-tdep.c: ... here. New file.
10470 * hppnbsd-tdep.c: New file.
10471 * hppnbsd-nat.c: New file.
680b56ce 10472 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10473 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10474 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10475 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10476 * configure.host (hppa*-*-netbsd*): New entry.
10477 * configure.tgt (hppa*-*-netbsd*): New entry.
10478 (hppa*-*-openbsd*): Update.
10479 * NEWS (New native configuration): Mention NetBSD/hppa.
10480 (New targets): Mention NetBSD/hppa.
10481
32c9a795
MD
104822008-01-18 Markus Deuling <deuling@de.ibm.com>
10483
10484 * gdbarch.sh (function_list): Add new property bits_big_endian to
10485 gdbarch structure.
10486 * gdbarch.{c,h}: Regenerate.
10487
10488 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10489 gdbarch_bits_big_endian (comment).
10490 (unpack_field_as_long, modify_field): Likewise.
10491 * value.h: Likewise (comment).
10492 * valops.c (value_slice): Likewise.
10493 * valarith.c (value_subscript, value_bit_index): Likewise.
10494 * gdbtypes.h (field): Likewise (comment).
10495 * eval.c (evaluate_subexp_standard): Likewise.
10496 * dwarf2read.c (dwarf2_add_field): Likewise.
10497 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10498 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10499
32c9a795
MD
10500 * defs.h (BITS_BIG_ENDIAN): Remove.
10501
1e5e79d0
MD
105022008-01-18 Markus Deuling <deuling@de.ibm.com>
10503
10504 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10505 function calls.
10506 * m2-exp.y (yylex): Likewise.
10507 * objc-exp.y (yylex): Likewise.
10508
10509 * defs.h (DEPRECATED_STREQN): Remove.
10510
fabda5a7
L
105112008-01-17 H.J. Lu <hjl.tools@gmail.com>
10512
10513 * MAINTAINERS: Update my email address.
10514
92726479
JB
105152008-01-17 Jim Blandy <jimb@codesourcery.com>
10516
10517 * README: Mention gdbserver/README.
10518
ef80d18e
PM
105192008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10520
10521 * valarith.c (value_binop): Handle BINOP_INTDIV
10522 for unsigned and signed integers.
10523
1de90795
UW
105242008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10525
10526 * s390-tdep.c (s390_gdbarch_init): Set default long double
10527 type to 128-bit IEEE quad.
10528
c70bd6f3
JB
105292008-01-17 Joel Brobecker <brobecker@adacore.com>
10530
10531 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10532
ba759613
MK
105332008-01-16 Mark Kettenis <kettenis@gnu.org>
10534
77d49ac6
MK
10535 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10536
ba759613
MK
10537 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10538 * value.c: All callers changed.
10539
7ecb6532
MD
105402008-01-16 Markus Deuling <deuling@de.ibm.com>
10541
10542 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10543 DEPRECATED_STREQ by its expression.
10544 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10545 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10546 (scan_xcoff_symtab): Likewise.
10547 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10548 * f-lang.c (find_common_for_function): Likewise.
10549 * objc-exp.y (parse_number): Likewise.
10550
10551 * defs.h (DEPRECATED_STREQ): Remove.
10552
d15cf01c
MD
105532008-01-16 Markus Deuling <deuling@de.ibm.com>
10554
10555 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10556 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10557 get_frame_arch to get at the current_architecture. Update AM33_MODE
10558 call.
10559 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10560 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10561 architecture.
10562 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10563
f8028488
MD
105642008-01-16 Markus Deuling <deuling@de.ibm.com>
10565
680b56ce 10566 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
10567 parameter.
10568 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10569
10570 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10571 current_gdbarch by gdbarch. Update caller.
10572
10573 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10574 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10575 the current architecture. Update calls of
10576 amd64_native_gregset_supplies_p.
10577 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10578 (amd64bsd_store_inferior_registers): Likewise.
10579
e101270f
MD
105802008-01-16 Markus Deuling <deuling@de.ibm.com>
10581
10582 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10583 Replace current_gdbarch by gdbarch. Update caller.
10584
063e58ba
MD
105852008-01-16 Markus Deuling <deuling@de.ibm.com>
10586
10587 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10588 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10589 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10590 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10591 (stabsect_build_psymtabs): Fix indentation.
10592
662fb31b
MS
105932008-01-15 Michael Snyder <msnyder@specifix.com>
10594
10595 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10596
c1766e7d
PM
105972008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10598
10599 * win32-nat.c (win32_create_inferior): Restore code calling
10600 CloseHandle on ProcessInformation structure.
10601
5ed10e6e
NH
106022008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10603
10604 * configure.ac: Check for void * as 3 argument of ptrace.
10605 * configure: regenerate.
10606
be8626e0
MD
106072008-01-11 Markus Deuling <deuling@de.ibm.com>
10608
10609 * alpha-tdep.c (alpha_heuristic_proc_start)
10610 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10611 current_gdbarch by gdbarch.
10612
10613 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 10614 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
10615 call.
10616
10617 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10618 get_frame_arch to get at the current architecture by frame_info. Update
10619 alpha_sigtramp_register_address call.
10620
10621 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10622 current_gdbarch by gdbarch. Update caller.
10623 (convert_to_extended, convert_from_extended): Add endianess parameter
10624 for comparison. Update caller.
10625 (arm_extract_return_value, arm_store_return_value): Use
10626 get_regcache_arch to get at the current architecture.
10627
10628 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10629 current_gdbarch by gdbarch. Update caller.
10630 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10631 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10632
10633 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 10634 gdbarch as parameter. Update caller.
be8626e0
MD
10635 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10636 current_gdbarch by gdbarch. Update caller.
10637
680b56ce 10638 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
10639 update caller. Replace current_gdbarch by gdbarch.
10640
10641 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10642 the current architecture. Replace current_gdbarch by gdbarch.
10643 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10644 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10645 expression. Add gdbarch as parameter and replace current_gdbarch with
10646 it. Update caller.
10647 (M6811_TDEP): Remove.
10648 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10649 architecture.
680b56ce 10650 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
10651 current_gdbarch by gdbarch. Update caller.
10652
10653 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10654 update caller.
10655 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10656 by gdbarch.
10657
10658 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10659 caller. Relace current_gdbarch by gdbarch.
10660 (altivec_register_p, spe_register_p): Likewise.
10661 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10662 parameter.
10663 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10664 altivec_register_p and spe_register_p.
10665
680b56ce 10666 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
10667 caller. Replace current_gdbarch by gdbarch.
10668 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 10669 architecture.
be8626e0
MD
10670
10671 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10672 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10673 current_gdbarch by gdbarch. Update caller.
10674 (sparc_frame_cache): Use get_frame_arch to get at the current
10675 architecture.
10676 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10677 sparc_analyze_prologue.
10678
10679 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10680 parameter.
10681
ed49a04f
MD
106822008-01-11 Markus Deuling <deuling@de.ibm.com>
10683
10684 * exec.c: #include "arch-utils.h"
10685 (print_section_info): Use gdbarch_from_bfd to get at the
10686 current architecture. Replace current_gdbarch. Fix indention. Replace
10687 deprecated_print_address_numeric by paddress.
10688 * Makefile.in (exec.o) Add dependency to arch-utils.h.
10689
680b56ce 10690 * valprint.c (val_print_string): Replace
ed49a04f
MD
10691 deprecated_print_address_numeric.
10692 * tracepoint.c (trace_mention, scope_info): Likewise.
10693 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
10694 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
10695 (maintenance_check_symtabs): Likewise.
10696 * symfile.c (list_overlays_command): Likewise.
10697 * stack.c (frame_info, print_block_frame_labels): Likewise.
10698 * printcmd.c (print_address, print_address_demangle)
10699 (address_info): Likewise.
10700 * corefile.c (memory_error): Likewise.
10701 * infcmd.c (jump_command): Likewise.
10702 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
10703 (mention, delete_breakpoint): Likewise.
10704 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
10705 * dwarf2read.c (dump_die): Likewise.
10706 * ada-valprint.c (ada_val_print_1): Likewise.
10707 * f-valprint.c (f_val_print): Likewise.
680b56ce 10708 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
10709 * m32r-com.c (m32r_load_section, m32r_load)
10710 (m32r_upload_command): Likewise.
10711
10712 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
10713
6093d2eb
MD
107142008-01-11 Markus Deuling <deuling@de.ibm.com>
10715
10716 * gdbarch.sh (skip_prologue): Add gdbarch
10717 as parameter.
10718 * gdbarch.{c,h}: Regenerate.
10719
10720 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
10721 * amd64-tdep.c (amd64_skip_prologue): Likewise.
10722 * avr-tdep.c (avr_skip_prologue): Likewise.
10723 * cris-tdep.c (cris_skip_prologue): Likewise.
10724 * frv-tdep.c (frv_skip_prologue): Likewise.
10725 * h8300-tdep.c (h8300_skip_prologue): Likewise.
10726 * hppa-tdep.c (hppa_skip_prologue): Likewise.
10727 * i386-tdep.c (i386_skip_prologue): Likewise.
10728 * ia64-tdep.c (ia64_skip_prologue): Likewise.
10729 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
10730 * m32r-tdep.c (m32r_skip_prologue): Likewise.
10731 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
10732 * m68k-tdep.c (m68k_skip_prologue): Likewise.
10733 * m88k-tdep.c (m88k_skip_prologue): Likewise.
10734 * mep-tdep.c (mep_skip_prologue): Likewise.
10735 * mips-tdep.c (mips_skip_prologue): Likewise.
10736 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
10737 * mt-tdep.c (mt_skip_prologue): Likewise.
10738 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
10739 * score-tdep.c (score_skip_prologue): Likewise.
10740 * sh64-tdep.c (sh64_skip_prologue): Likewise.
10741 * sh-tdep.c (sh_skip_prologue): Likewise.
10742 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
10743 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
10744 * spu-tdep.c (spu_skip_prologue): Likewise.
10745 * v850-tdep.c (v850_skip_prologue): Likewise.
10746 * vax-tdep.c (vax_skip_prologue): Likewise.
10747 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
10748 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
10749
10750 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
10751 current_gdbarch by gdbarch.
10752 * m32c-tdep.c (m32c_skip_prologue): Likewise.
10753 * s390-tdep.c (s390_skip_prologue): Likewise.
10754
72f5cf0e
DE
107552008-01-10 Doug Evans <dje@google.com>
10756
10757 * defs.h (struct continuation_arg): Fix typo in comment.
10758 * target.c (target_translate_tls_address): Fix comment spelling error.
10759
689e4e2d
TJB
107602008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
10761
10762 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
10763 (DOUBLEST_SCAN_FORMAT): Likewise.
10764 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
10765 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
10766 * c-exp.y (parse_number): Likewise.
10767 * jv-exp.y (parse_number): Likewise.
10768 * objc-exp.y (parse_number): Likewise.
10769 * p-exp.y (parse_number): Likewise.
10770
ab0d6e0d
JB
107712008-01-09 Joel Brobecker <brobecker@adacore.com>
10772
10773 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
10774 (check_typedef): Likewise.
10775
0aea4bf3
LM
107762008-01-09 Luis Machado <luisgpm@br.ibm.com>
10777
10778 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
10779 seen_double_big_d, treat the new H, D, and DD modifiers as length
10780 modifiers.
10781
137033e9
JB
107822008-01-08 Joel Brobecker <brobecker@adacore.com>
10783
10784 * dwarf2read.c (read_enumeration_type): Add comment.
10785
dda297ec
TJB
107862008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
10787
10788 * config.in: Regenerate.
10789
a93c0eb6
JB
107902008-01-08 Joel Brobecker <brobecker@adacore.com>
10791
10792 * ada-lang.c (ada_convert_actual): Renames convert_actual.
10793 Make non-static.
10794 (ada_convert_actuals): Delete.
10795 * ada-lang.h (ada_convert_actual): Add declaration.
10796 (ada_convert_actuals): Remove declaration.
10797 * infcall.c: #include "ada-lang.h".
10798 (value_arg_coerce): Add new parameter sp. Update function
10799 documetnation. Add handling of Ada function call parameters.
10800 * Makefile.in (infcall.o): Update dependencies.
10801
a84a8a0d
JB
108022008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10803
10804 * ada-lang.c (ensure_lval): Fix value lval kind.
10805 (convert_actual): Add handling for arguments passed by reference.
10806
d7f98cce
DE
108072008-01-08 Doug Evans <dje@google.com>
10808
10809 * dbxread.c (read_dbx_symtab): Fix indentation.
10810
4ef30785
TJB
108112008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10812
10813 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
10814 (valarith.o): Depend on dfp.h.
10815 (valops.o): Likewise.
10816 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
10817 (set_decnumber_context): New function.
10818 (decimal_check_errors): Likewise.
10819 (decimal_from_number): Likewise.
10820 (decimal_to_number): Likewise.
10821 (decimal_from_string): Use set_decnumber_context and
10822 decimal_check_errors.
10823 (decimal_from_integral): New function.
10824 (decimal_from_floating): Likewise.
10825 (decimal_to_double): Likewise.
10826 (promote_decimal): Likewise.
10827 (decimal_binop): Likewise.
10828 (decimal_is_zero): Likewise.
10829 (decimal_compare): Likewise.
10830 (decimal_convert): Likewise.
10831 * dfp.h (decimal_from_integral): New prototype.
10832 (decimal_from_floating): Likewise.
10833 (decimal_to_double): Likewise.
10834 (decimal_binop): Likewise.
10835 (decimal_is_zero): Likewise.
10836 (decimal_compare): Likewise.
10837 (decimal_convert): Likewise.
10838 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
10839 call to value_from_decfloat.
10840 * valarith.c: Include dfp.h.
10841 (value_args_as_decimal): New function.
10842 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
10843 (value_logical_not): Likewise.
10844 (value_equal): Likewise.
10845 (value_less): Likewise.
10846 (value_pos): Likewise.
10847 (value_neg): Formatting fix.
10848 * valops.c: Include dfp.h.
10849 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
10850 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
10851 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
10852 (value_from_decfloat): Remove expect_type argument.
10853 * value.h (value_from_decfloat): Update prototype.
10854
a7c02bc8
VP
108552008-01-07 Vladimir Prus <vladimir@codesourcery.com>
10856
10857 Ignore change in name of dynamic linker during
10858 execution on Solaris. This also unbreaks pending breakpoints.
10859
10860 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
10861 * solib-svr4.c (svr4_same): New.
10862 (_initialize_svr4_solib): Register svr4_same.
10863 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 10864
610dd7f9
CF
108652008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
10866
10867 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
10868 when using MS-DOS paths.
10869
7a404eba
PA
108702008-01-05 Pedro Alves <pedro@codesourcery.com>
10871
10872 * NEWS: Mention --pid and --core command line behaviour changes.
10873
a4d9b460
PA
108742008-01-05 Pedro Alves <pedro@codesourcery.com>
10875
10876 * main.c (captured_main): Remove 'count' varible and the
10877 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
10878 --pid options were issued simultaneously. If an explicit pid
10879 option was passed, don't fallback to core file. Detect extra
10880 arguments better in the presence of explicit pid or core
10881 arguments.
10882
0c281816
JB
108832008-01-05 Joel Brobecker <brobecker@adacore.com>
10884
10885 * ada-lang.c (ada_which_variant_applies): Correctly compute
10886 the value of the discriminant when the variant record is packed.
10887
babe1480
JB
108882008-01-04 Joel Brobecker <brobecker@adacore.com>
10889
10890 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
10891 that are used to differentiate homonyms.
10892
727e3d2e
JB
108932008-01-04 Jerome Guitton <guitton@adacore.com>
10894
10895 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
10896 when the type is an anonymous pointer type.
10897 (ada_check_typedef): Avoid a seg fault when the type is null.
10898 * ada-typeprint.c (print_array_type): Add support for pointer
10899 to packed arrays.
10900
bb28a9dc
JB
109012008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
10902
680b56ce 10903 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 10904
6799def4
JB
109052008-01-04 Joel Brobecker <brobecker@adacore.com>
10906
10907 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
10908 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
10909
d3353bbd
JB
109102008-01-04 Joel Brobecker <brobecker@adacore.com>
10911
10912 * ada-exp.y (chop_separator): New function.
10913 (write_selectors): Rewrite to re-use chop_separator.
10914 (ada_nget_field_index, get_symbol_field_type): New functions.
10915 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
10916 expressions.
10917
82cf6c60
TJB
109182008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
10919
10920 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
10921 of SYMBOL_VALUE when working with function symbols.
10922
b3dbf008
JB
109232008-01-03 Joel Brobecker <brobecker@adacore.com>
10924
10925 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
10926 expressions. These expressions do not need to be rewriten.
10927
02eb380e
JB
109282008-01-03 Joel Brobecker <brobecker@adacore.com>
10929
10930 * dwarf2read.c (read_enumeration_type): Flag type as stub if
10931 the given die is a declaration.
10932
abb68b3e
JB
109332008-01-03 Joel Brobecker <brobecker@adacore.com>
10934
10935 * ada-lang.c (ada_array_bound_from_type): Make non-static.
10936 Handle properly the case when the index type is an enumerated type.
10937 Do not return the subtype of the bounds type, just return the
10938 bounds type directly - this is not needed and is more consistent
10939 with what we do for arrays when no XA parallel type exists.
10940
f192137b
JB
109412008-01-03 Joel Brobecker <brobecker@adacore.com>
10942
10943 * ada-lang.c (static_unwrap_type): Add forward declaration.
10944 (template_to_static_fixed_type): Fields of dynamic types sometimes
10945 also need to be unwrapped. Take this into account.
10946 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
10947 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
10948 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 10949 the original type, not the base type.
f192137b 10950
1ed6ede0
JB
109512008-01-03 Jerome Guitton <guitton@adacore.com>
10952
10953 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 10954 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
10955 Update calls to ada_to_fixed_type.
10956 (ada_template_to_fixed_record_type_1): Ditto, but without looking
10957 for the tag.
10958 (ada_to_fixed_type): Add check_tag parameter; do not look for
10959 tag if null. When looking for a tag, use a fixed record type.
10960 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
10961 * ada-valprint.c (printable_val_type, ada_value_print): Update
10962 calls to ada_to_fixed_type.
10963
542a88d0
LM
109642008-01-03 Luis Machado <luisgpm@br.ibm.com>
10965
680b56ce 10966 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
10967 floatformat_to_doublest instead of floatformat_to_double and use
10968 DOUBLEST variables.
10969 (convert_doublest_to_floatformat): Call floatformat_from_doublest
10970 instead of floatformat_from_double and use DOUBLEST variables.
10971
dc2bbab2
NH
109722008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
10973
10974 * MAINTAINERS (Write After Approval): Add self.
10975
8b60591b
JB
109762008-01-03 Joel Brobecker <brobecker@adacore.com>
10977
10978 * symfile.c (set_initial_language): Make non-static.
10979 * symfile.h (set_initial_language): Add declaration.
10980 * language.c: #include "symfile.h".
10981 (set_language): Call set_initial_language if the frame language
10982 could not be determined.
10983
ceef53c1
JB
109842008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
10985
10986 * eval.c (evaluate_subexp_for_address): Provide frame address to
10987 locate_var_value only if it will be needed.
10988
ef29ce1a
JK
109892008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
10992
0a07e705
JB
109932008-01-02 Joel Brobecker <brobecker@adacore.com>
10994
10995 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10996 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10997 This is needed to make sure that any other treatment applied
10998 to the resulting value does not fail for spurious reason,
10999 such as trying to take the address of this value.
11000
f58b38bf
JB
110012008-01-02 Joel Brobecker <brobecker@adacore.com>
11002
11003 * ada-lang.c (ada_value_equal): Dereference reference types when
11004 comparing arrays.
680b56ce 11005
9b254dd1
DJ
110062008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11007
11008 Updated copyright notices for most files.
11009
33605d39
CF
110102008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11011
11012 * win32-nat.c (psapi_module_handle): Remove static.
11013 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11014 return first module found if base_address is zero. Don't initialize
11015 psapi function pointers here. Convert to cygwin paths when
11016 appropriate.
11017 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11018 executable name. Use get_module_name when that fails or when
11019 !__CYGWIN__.
11020 (_initialize_psapi): New function. Initialize psapi stuff before it is
11021 needed or issue a warning if it is not found. Move psapi_module_handle
11022 here.
11023
29480c32
JB
110242008-01-01 Joel Brobecker <brobecker@adacore.com>
11025
11026 * ada-lang.c (ada_remove_trailing_digits): New function.
11027 (ada_remove_po_subprogram_suffix): New function.
11028 (ada_decode): Improve. Move the description of the algorithm
11029 directly inside the code, instead of in the function global
11030 description.
11031
969a1360
JB
110322008-01-01 Joel Brobecker <brobecker@adacore.com>
11033
11034 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11035 and always print the dereferenced value.
11036
b7789565
JB
110372008-01-01 Joel Brobecker <brobecker@adacore.com>
11038
11039 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11040 of the case where the first argument is a reference.
11041 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11042
73fb9985
JB
110432008-01-01 Joel Brobecker <brobecker@adacore.com>
11044
11045 Implement support for Ada interface types.
11046
11047 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11048 (ada_is_ignored_field): Ignore fields that are a dispatch table
11049 of a tagged type.
11050
636265b6
JB
110512008-01-01 Joel Brobecker <brobecker@adacore.com>
11052
11053 * top.c (print_gdb_version): Update copyright year.
11054
9d200a2e 110552008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 11056
9d200a2e
JB
11057 * ChangeLog-2007: New ChangeLog rotation.
11058 * ChangeLog: Reset for 2008.
11059 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11060 ChangeLog-2007.
b7589f7d 11061
9d200a2e 11062For older changes see ChangeLog-2007.
c906108c
SS
11063\f
11064Local Variables:
11065mode: change-log
11066left-margin: 8
11067fill-column: 74
11068version-control: never
57da7796 11069coding: utf-8
c906108c 11070End:
This page took 2.343729 seconds and 4 git commands to generate.