* macrocmd.c (macro_define_command): Skip whitespace after
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cc704ebe
TT
12008-12-11 Tom Tromey <tromey@redhat.com>
2
3 * macrocmd.c (macro_define_command): Skip whitespace after
4 macro name.
5 (print_one_macro): Print space after macro name.
6
48844aa6
PA
72008-12-12 Pedro Alves <pedro@codesourcery.com>
8
9 * infrun.c (handle_inferior_event): Correctly tag non-executing
10 threads in multi-process.
11 (normal_stop): Correctly tag stopped threads in multi-process.
12
48aa3c27
PA
132008-12-12 Pedro Alves <pedro@codesourcery.com>
14
15 * remote.c (extended_remote_mourn_1): Always call
16 generic_mourn_inferior.
17
5f3563ea
PA
182008-12-12 Pedro Alves <pedro@codesourcery.com>
19
20 * remote.c (remote_detach_1): Don't delete the inferior here.
21 (process_stop_reply): Ditto.
22 (extended_remote_kill): Ditto.
23
ca19bf23
PA
242008-12-12 Pedro Alves <pedro@codesourcery.com>
25
26 * remote.c (read_ptid): If we don't know about any inferior yet,
27 use the pid of magic_null_ptid.
28 (remote_start_remote): In the non-stop mode case, don't set
29 inferior_ptid to magic_null_ptid here.
30
37d94800
PA
312008-12-11 Daniel Jacobowitz <dan@codesourcery.com>
32 Pedro Alves <pedro@codesourcery.com>
33
34 * infcmd.c (step_1): Use step_once in the synchronous case too.
35 (step_1_continuation): Wrap line.
36 (step_once): Adjust comment. Only install the continuation in
37 async mode.
38
fb66883a
PA
392008-12-11 Pedro Alves <pedro@codesourcery.com>
40
41 * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
42 TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
43 * linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
44 or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
45 returned.
46 * inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
47 minus_one_ptid if the inferior disappeared.
48 * rs6000-nat.c (rs6000_wait): Likewise.
49 * spu-linux-nat.c (spu_child_wait): Likewise.
50
7c8adf68
TT
512008-12-11 Tom Tromey <tromey@redhat.com>
52
53 PR macros/2564:
54 * c-exp.y (macro_original_text, expansion_obstack,
55 expression_macro_scope): New globals.
56 (scan_macro_expansion): New function.
57 (scanning_macro_expansion): Likewise.
58 (finished_macro_expansion): Likewise.
59 (scan_macro_cleanup): Likewise.
60 (c_parse): Find macro scope. Initialize obstack.
61 * c-lang.h (scan_macro_expansion, scanning_macro_expansion,
62 finished_macro_expansion, expression_macro_lookup_func,
63 expression_macro_lookup_baton): Remove.
64 * c-lang.c (scan_macro_expansion, scanning_macro_expansion,
65 finished_macro_expansion, expression_macro_lookup_func,
66 expression_macro_lookup_baton): Remove.
67 (macro_original_text, macro_expanded_text,
68 c_preprocess_and_parse): Remove.
69 (c_language_defn, cplus_language_defn, asm_language_defn,
70 minimal_language_defn): Use c_parse.
71
1c7819ef
PA
722008-12-10 Pedro Alves <pedro@codesourcery.com>
73
74 * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
75 instead of read_pc.
76
b05dcbb7
TT
772008-12-09 Tom Tromey <tromey@redhat.com>
78
79 PR gdb/1815:
80 * cli/cli-decode.c (delete_cmd): Forward declare.
81 (delete_cmd): Now static. Change return type. Remove command
82 from alias chain. Rewrite.
83 (add_cmd): Initialize new fields. Update cmd_pointer on all
84 aliases.
85 (add_alias_cmd): Put command on alias chain.
86 * command.h (delete_cmd): Don't declare.
87 * cli/cli-decode.h (delete_cmd): Don't declare.
88 (struct cmd_list_element) <aliases, alias_chain>: New fields.
89
a8111142
TT
902008-12-09 Tom Tromey <tromey@redhat.com>
91
92 * config.in, configure: Rebuild.
93 * configure.ac: Check for locale.h, setlocale. Call
94 AM_LC_MESSAGES.
95 * acinclude.m4: Include lcmessage.m4.
96
4100683b
JK
972008-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
98
99 * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
100
4be15b7a
JB
1012008-12-08 Joel Brobecker <brobecker@adacore.com>
102
103 * python/python-value.c (values_in_python): Add specific initialization
104 to NULL to work-around a MacOS linker bug.
105
39d61571
JK
1062008-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
107
108 Fix loc_type of `bp_location's created by update_watchpoint.
109 * breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
110 Replace bp_type by bpt->type. Update prototype. All callers updated.
111 (add_location_to_breakpoint): Remove the bp_type parameter.
112 Replace bp_type by b->type. All callers updated.
113 (set_breakpoint_location_function): Replace bptype by b->type.
114
4cd9bd08
JK
1152008-12-07 Jan Kratochvil <jan.kratochvil@redhat.com>
116
117 * breakpoint.c (update_global_location_list): Fix the comment.
118
1641cfcc
PA
1192008-12-05 Pedro Alves <pedro@codesourcery.com>
120
121 * infcmd.c (step_1, step_once): Look up the stepping range based
122 on the current frame's PC, not on stop_pc.
123
116e0965
JK
1242008-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
125
126 Fix compilation on 32-bit host configurations.
127 * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
128
acdb24a9
TG
1292008-12-05 Tristan Gingold <gingold@adacore.com>
130
131 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
132 (amd64_darwin_sstep_at_sigreturn): New function.
133 (darwin_set_sstep): The sigreturn is a special case: the trace flag
134 must be set in the mcontext structure.
135
e71c9293
PA
1362008-12-05 Pedro Alves <pedro@codesourcery.com>
137
138 * infcmd.c (step_once): Remove dead code.
139
3b676233
DE
1402008-12-04 Doug Evans <dje@google.com>
141
142 * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
143
a020da56
DE
1442008-12-02 Doug Evans <dje@google.com>
145
146 * infrun.c (handle_inferior_event): Remove redundant resetting of
147 stepping_past_singlestep_breakpoint.
148
e0665bc8
PA
1492008-12-02 Pedro Alves <pedro@codesourcery.com>
150
151 * target.h (target_get_osdata): Describe.
152 * osdata.h (make_cleanup_osdata_free): Declare.
153 * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
154 not defined.
155 (osdata_free_cleanup): New.
156 (make_cleanup_osdata_free): New.
157 (get_osdata): Fix leak.
158 (info_osdata_command): Use make_cleanup_osdata_free.
159 (info_processes_command): Delete.
160 (_initialize_osdata): Drop undocumented "info processes" alias.
161 * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
162
e0740f77
JK
1632008-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
164
165 Fix resolving external references to TLS variables.
166 * findvar.c: Include `objfiles.h'.
167 (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'. Handle
168 SEC_THREAD_LOCAL variables.
169 * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
170 variables.
171
c29235ac
DE
1722008-12-02 Doug Evans <dje@google.com>
173
174 * infrun.c (handle_inferior_event): Delete unused local tp.
175
07e059b5
VP
1762008-12-02 Pedro Alves <pedro@codesourcery.com>
177 Vladimir Prus <vladimir@codesourcery.com>
178
179 Implement -list-thread-groups --available
180
181 * Makefile.in (XMLFILES): Add osdata.dtd.
182 (SFILES): Add osdata.c.
183 (COMMON_OBS): Add osdata.o.
184 * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
185 (linux_nat_xfer_osdata): New function.
186 (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
187 * osdata.c: New file.
188 * osdata.h: New file.
189 * remote.c (PACKET_qXfer_osdata): New packet enum.
190 (remote_protocol_features): Add "qXfer:osdata:read".
191 (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
192 (extended_remote_can_run): New.
193 (init_extended_remote_ops): Set to_can_run to
194 extended_remote_can_run.
195 (_initialize_remote): Add packet config command for
196 "qXfer:osdata:read".
197 * xml-support.c (obstack_xml_printf): New function.
198 * xml-support.h (obstack_xml_printf): Declare.
199 * target.c (target_get_osdata): New function.
200 * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
201 (target_os_data): Declare.
202 * features/osdata.dtd: New file.
203 * mi/mi-main.c (mi_list_thread_groups): Handle the --available
204 option.
205
f3c85de6
DE
2062008-12-01 Doug Evans <dje@google.com>
207
208 * infrun.c (proceed): Delete unused local stop_signal.
209
a80b95ba
TG
2102008-11-27 Tristan Gingold <gingold@adacore.com>
211
212 * NEWS: Add entry for new native configuration: Darwin.
213 * configure.host: Add Darwin host.
214 * configure.tgt: Add Darwin target.
215 * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
216 * osabi.c (gdb_osabi_names): Add name for Darwin abi.
217 * i386-darwin-nat.c: New file.
218 * i386-darwin-tdep.c: New file.
219 * machoread.c: New file.
220 * darwin-nat-info.c: New file.
221 * darwin-nat.c: New file.
222 * darwin-nat.h: New file.
223 * darwin.defs: New file.
224 * config/i386/darwin.mh: New file.
225
5a85c521
TG
2262008-11-26 Tristan Gingold <gingold@adacore.com>
227
228 * MAINTAINERS: Add myself for write after approval privileges.
229
3e3d7139
JG
2302008-11-26 Jerome Guitton <guitton@adacore.com>
231
232 * value.h (allocate_value_lazy): New function declaration.
233 (value_free): Remove macro, make it a function.
234 * value.c (value): Move actual content outside of the memory space
235 of the struct; add a pointer to this actual content.
236 (allocate_value_lazy, allocate_value_contents): New function.
237 (allocate_value): Reimplement using these two new functions.
238 (value_contents_raw, value_contents_all_raw): If no memory
239 has been allocated yet for the actual content, allocate it.
240 (value_contents_all): Resync with struct value's changes.
241 (value_free): New function.
242 (value_copy, value_primitive_field): Use new function
243 allocate_value_lazy to allocate lazy values.
244 (value_change_enclosing_type): Resync with struct value's changes.
245 As the value is not reallocated, remove the special handling for
246 the value chain (now obsolete).
247 * valops.c (value_at_lazy): Use new function allocate_value_lazy.
248 (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
249 to allocate lazy values.
250 (value_slice): Use allocate_value_lazy to allocate lazy values.
251
939c61fa
JK
2522008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
253
254 Fix automatic restoration of breakpoints memory for ia64.
255 * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.
256 (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
5f019e58 257 content. Remove variable instr. New variable cleanup. Disable
939c61fa
JK
258 automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now
259 set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return
260 error if even just final target_write_memory has failed.
261 (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
262 and instr to instr_saved. New variables bundle_saved and
263 instr_breakpoint. Comment new reasons why we need to disable automatic
264 restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New
265 check of the original memory content. Return error if even just final
266 target_write_memory has failed.
267 (ia64_breakpoint_from_pc): Implement the emulation of permanent
268 breakpoints compatible with current bp_loc_is_permanent.
269 (template_encoding_table): Make it `const'.
270 * breakpoint.c (bp_loc_is_permanent): Support unsupported software
271 breakpoints. New variables `cleanup' and `retval'.
939c61fa 272
8acb6b92
TT
2732008-11-24 Tom Tromey <tromey@redhat.com>
274
275 * ada-lang.c (value_from_contents_and_address): Move...
276 * value.c: ... here.
277 * ada-lang.h (value_from_contents_and_address): Move
278 declaration...
279 * value.h: ... here.
280
f9e31323
TT
2812008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
282
283 * valprint.c (val_print_array_elements): Pass correct
284 element address to val_print.
285
a0b7aece
JK
2862008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
287
288 Fix access of an already freed memory.
289 * parse.c (parse_field_expression): Call xstrdup on `*name'.
290 * completer.c (expression_completer): Free fieldname.
291
d962ef82
DJ
2922008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
293
294 PR gdb/2474
295 * remote.c (remote_read_description_p): New function.
296 (remote_start_remote): Try to fetch the target description
297 before adding shared libraries. Try again later if the
298 target is running but stopped.
299 (remote_open_1): Mark extended targets as exited by default.
300 (remote_read_description): Check target_has_execution.
301
88828b32
JG
3022008-11-24 Jerome Guitton <guitton@adacore.com>
303
304 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
305 the frame address in block instead of the return address to
306 locate the mdebug PDR of the frame.
307
d81191fc
JB
3082008-11-21 Joel Brobecker <brobecker@adacore.com>
309
310 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
311
312 * breakpoint.h (enum bpstat_what_main_action): Remove
313 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
314 * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
315 Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
316 variable table.
317 * infrun.c (wait_for_inferior): Remove handling of
318 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
319
a9322a30
TT
3202008-11-21 Tom Tromey <tromey@redhat.com>
321
322 * configure: Rebuild.
323 * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
324 AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
325
ca30a762
TT
3262008-11-21 Tom Tromey <tromey@redhat.com>
327
328 * python/python-internal.h (PyGILState_Ensure): New define.
329 (PyGILState_Release): Likewise.
330 (PyEval_InitThreads): Likewise.
331 (PyThreadState_Swap): Likewise.
332 (PyEval_InitThreads): Likewise.
333 * python/python.c (_initialize_python): Initialize threads.
334 Release GIL.
335 (eval_python_from_control_command): Acquire GIL.
336 (python_command): Likewise.
337 * python/python-internal.h (make_cleanup_py_restore_gil):
338 Declare.
339 * python/python-utils.c (py_gil_restore): New function.
340 (make_cleanup_py_restore_gil): Likewise.
341
d2bf72c0
DE
3422008-11-20 Doug Evans <dje@google.com>
343
344 * frame.c (frame_debug_got_null_frame): Remove file arg.
345 All callers updated.
346
c7e8a53c
PA
3472008-11-20 Pedro Alves <pedro@codesourcery.com>
348
349 * infrun.c (resume): If following a fork, also reset regcache,
350 gdbarch and pc.
351
e2fd701e
DE
3522008-11-20 Doug Evans <dje@google.com>
353
354 * printcmd.c (sym_info): Don't print the offset if it's zero.
355
607cecd2
PA
3562008-11-20 Pedro Alves <pedro@codesourcery.com>
357
358 * infrun.c (resume): If following a fork, reread the current
359 thread. Avoid dereferencing a possibly dangling pointer.
360
642fd101
DE
3612008-11-19 Doug Evans <dje@google.com>
362
363 * inferior.h (proceed_to_finish): Delete, unused.
364 (stop_registers): Tweak comment.
365 * infrun.c (stop_registers): Tweak comment.
366
9bc7b6c6
KB
3672008-11-19 Kevin Buettner <kevinb@redhat.com>
368
369 * frv-tdep.c (frv_skip_main_prologue): New function.
370 (frv_gdbarch_init): Register frv_skip_main_prologue.
371 * solib-frv.c (fetch_loadmap): Return early when no segments are
372 found.
373 (frv_relocate_main_executable): Return early when both interpreter
374 and executable loadmap addresses are zero.
375
d0107bb6
BW
3762008-11-19 Bob Wilson <bob.wilson@acm.org>
377
378 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
379 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
380 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
381 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
382 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
383 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
384 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
385 (xtensa_submask15): Adjust register numbers.
386 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
387 (xtensa_regmap_table): Add entry for scompare1.
388 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
389 and scompare1.
390
6e5abd65
PA
3912008-11-19 Pedro Alves <pedro@codesourcery.com>
392
393 * remote.c (escape_buffer): New.
394 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
395 sure debug output printing a packet buffer goes through a single
396 fprintf_unfiltered call.
397 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
398 output with a newline if it wasn't going to already.
399
15c99a44
PP
4002008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
401
402 * maint.c (maintenance_translate_address): Fix a buglet.
403
2c4ad781
TJB
4042008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
405
406 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
407 rs6000/powerpc-isa205-altivec32l-expedite,
408 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
409 rs6000/powerpc-isa205-altivec64l-expedite,
410 powerpc-isa205-vsx64l-expedite): New variables.
411 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
412 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
413 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
414 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
415 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
416 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
417
69abc51c
TJB
4182008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
419
420 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
421 offset for full 64-bit slot of FPSCR when in 32-bits.
422 (ppc_linux_read_description): Return target description with 64-bit
423 FPSCR when inferior is running on an ISA 2.05 or later processor.
424 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
425 initialize_tdec_powerpc_isa205_32l,
426 initialize_tdec_powerpc_isa205_altivec32l,
427 initialize_tdec_powerpc_isa205_vsx32l,
428 initialize_tdec_powerpc_isa205_64l,
429 initialize_tdec_powerpc_isa205_altivec64l and
430 initialize_tdec_powerpc_isa205_vsx64l.
431 * ppc-linux-tdep.h: Add external declaration for
432 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
433 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
434 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
435 * features/rs600/powerpc-fpu-isa205.xml: New file.
436 * features/rs600/powerpc-isa205-32l.xml: New file.
437 * features/rs600/powerpc-isa205-64l.xml: New file.
438 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
439 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
440 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
441 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
442 * features/rs600/powerpc-isa205-32l.c: Generate.
443 * features/rs600/powerpc-isa205-64l.c: Generate.
444 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
445 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
446 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
447 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
448
c14c28ba
PP
4492008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
450
451 * objfiles.h: New MULTI_OBJFILE_P macro.
452 * printcmd.c (sym_info): Print object name.
453 * maint.c (maintenance_translate_address): Likewise.
454
d5cbbe6e
JB
4552008-11-18 Joel Brobecker <brobecker@adacore.com>
456
457 * NEWS: Document the removal of "catch load" and "catch unload".
458
2e74121d
DE
4592008-11-17 Doug Evans <dje@google.com>
460
461 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
462 on error messages.
463
a7212384
UW
4642008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
465
466 PR gdb/2250
467 * infrun.c (clear_proceed_status_thread): New function.
468 (clear_proceed_status_callback): New function.
469 (clear_proceed_status): In all-stop mode, clear per-thread
470 proceed status of *all* threads, not only the current.
471 (handle_inferior_event): In all-stop mode, if we're stepping
472 one thread, but got some inferior event in another thread
473 that does not cause GDB to break to the user interface,
474 ensure the interrupted stepping operation continues in the
475 original thread.
476 (currently_stepping): Move thread-related tests to ...
477 (currently_stepping_thread): ... this new function.
478 (currently_stepping_callback): New function.
479
66bb093b
VP
4802008-11-17 Vladimir Prus <vladimir@codesourcery.com>
481
482 Implement =thread-selected notification.
483
484 * mi/mi-common.h (struct mi_interp): New, moved from ...
485 * mi/mi-interp.c: ...here.
486 * mi/mi-main.c (mi_execute_command): If the thread changed
487 as result of command, report that.
488
8dd4f202
VP
4892008-11-17 Vladimir Prus <vladimir@codesourcery.com>
490
491 Implement continue/interrupt of thread groups.
492
493 * mi/mi-main.c (proceed_thread_callback): New.
494 (mi_cmd_exec_continue): If --thread-group is specified, resume all
495 threads in that group.
496 (interrupt_thread_callback): New.
497 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
498 all threads in that group.
499
6418d433
VP
5002008-11-17 Vladimir Prus <vladimir@codesourcery.com>
501
502 Implement '-target-detach pid'.
503
504 * infcmd.c (detach_command): Make nonstatic.
505 * inferior.h (detach_command): Declare.
506 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
507 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
508 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
509
3d043ef6
VP
5102008-11-17 Vladimir Prus <vladimir@codesourcery.com>
511
512 Include group-id in thread-created notification.
513
514 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
515 group id in the output.
516
4a92f99b
VP
5172008-11-17 Vladimir Prus <vladimir@codesourcery.com>
518
519 Notification for attach/detach.
520
521 * inferior.c: Call the process observers.
522 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
523 (mi_interpreter_init): Register the above.
524
3ee1c036
VP
5252008-11-17 Vladimir Prus <vladimir@codesourcery.com>
526
527 Implement -list-thread-groups.
528
529 * thread.c (print_thread_info): New parameter pid, to print
530 threads of specific process.
531 * gdbthread.h (print_thread_info): New parameter pid.
532 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
533 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
534 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
535 (print_one_process, mi_cmd_list_thread_groups): New.
536
283de25f
JB
5372008-11-16 Joel Brobecker <brobecker@adacore.com>
538
539 Remove some unused macros related to the old load/unload catchpoints.
540
541 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
542 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
543 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
544
533be4dd
JB
5452008-11-16 Joel Brobecker <brobecker@adacore.com>
546
547 Remove support for catch load and catch unload commands.
548
549 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
550 (struct breakpoint): Remove fields dll_pathname and
551 triggered_dll_pathname.
552 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
553 * breakpoint.c (ep_is_catchpoint): Remove handling of
554 bp_catch_load and bp_catch_unload.
555 (print_it_typical, bpstat_check_location, bpstat_what)
556 (print_one_breakpoint_location, print_one_breakpoint_location)
557 (user_settable_breakpoint, allocate_bp_location)
558 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
559 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
560 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
561 (catch_load_command_1, catch_unload_command_1): Delete.
562 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
563 command creation.
564 * infrun.c (handle_inferior_event): Remove the handling of
565 load/unload catchpoint events.
566
59205f5a
JB
5672008-11-15 Joel Brobecker <brobecker@adacore.com>
568
569 From Jerome Guitton <guitton@adacore.com>
570 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
571 New function.
572 (dwarf_decode_lines): Detect null file numbers. Detect the end of
573 the line program sequence when no end sequence is emitted.
574
96967637
JB
5752008-11-15 Joel Brobecker <brobecker@adacore.com>
576
577 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
578 type dereferencing.
579
da8bd9a3
DJ
5802008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
581
582 * NEWS: Mention sparc64-linux-gnu gdbserver support.
583
dfb64f85
DJ
5842008-11-14 Daniel Gutson <dgutson@codesourcery.com>
585
586 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
587 * regformats/reg-sparc64.dat: New file.
588
59669435
TT
5892008-11-14 Tom Tromey <tromey@redhat.com>
590
591 PR mi/2549:
592 * mi/mi-main.c (get_register): Use get_formatted_print_options.
593
06be140c
JB
5942008-11-13 Joel Brobecker <brobecker@adacore.com>
595
596 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
597
759cc328
UW
5982008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
599
600 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
601 AT_EXECFN. Re-sort AT_SECURE.
602
73e113d4
JK
6032008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
606
c31ad2a1
JB
6072008-11-13 Joel Brobecker <brobecker@adacore.com>
608
609 * ia64-tdep.c: Remove commented out #define.
610
84290f2f
JB
6112008-11-12 Joel Brobecker <brobecker@adacore.com>
612
613 From Joel Sherrill <joel.sherrill@oarcorp.com>
614 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
615 instead of the "gdbsim_ops" global.
616
de04a248
DE
6172008-11-11 Doug Evans <dje@google.com>
618
619 * infcall.c (call_function_by_hand): Handle inferior exit.
620
3c8b2eda
TJB
6212008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
622
623 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
624 missing struct target_ops argument.
625
f5d9a292
JS
6262008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
627
628 * MAINTAINERS: Add myself for write after approval privileges.
629
de8ee0e2
TT
6302008-11-10 Tom Tromey <tromey@redhat.com>
631
632 * gdbtypes.c (copy_type_recursive): Clear new fields.
633
b03a6ea4
TT
6342008-11-10 Tom Tromey <tromey@redhat.com>
635
636 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
637 cleanups on early return.
638
136d6dae
VP
6392008-11-09 Vladimir Prus <vladimir@codesourcery.com>
640
641 Kill pthread_ops_hack
642
643 * target.h (struct target_ops): Make to_attach, to_detach,
644 to_create_inferior and to_mourn_inferior accept a pointer
645 to struct target_ops.
646 (target_attach, target_create_inferior, target_create_inferior):
647 Convert from macros to function. Find the right target to
648 invoke a method of.
649 (find_default_attach, find_default_create_inferior): New parameter
650 ops.
651 * corefile.c (core_file_command): Pass target to to_detach.
652 * corelow.c (core_detach): Add 'ops' parameter.
653 * fork-child.c (fork_inferior): Return the pid. Allow
654 init_trace_fun to be NULL.
655 * inf-ptrace (ptrace_ops_hack): Remove.
656 (inf_ptrace_him): Remove, moving all logic into....
657 (inf_ptrace_create_inferior): ... here. Push the target
658 passed as parameter.
659 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
660 Push/pop target passed as parameter, no ptrace_ops_hack.
661 (inf_ptrace_target): Don't remember result.
662 * inferior.h (fork_inferior): Adjust prototype.
663 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
664 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
665 Pass it to linux_ops target.
666 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
667 New parameter ops. Pass it to the target beneath.
668 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
669 (extended_remote_create_inferior): New parameter ops. Pass it
670 further.
671 * target.c (debug_to_attach, debug_to_detach)
672 (debug_to_mourn_inferior): New parameter ops.
673 (target_create_inferior): New.
674 (update_current_target): Do not inherit to_attach, to_detach,
675 to_create_inferiour, to_mourn_inferior. Do not default
676 to_detach and to_mourn_inferior.
677 (target_detach): Find the right target to use.
678 (target_mourn_inferior): New.
679 (find_default_attach, find_default_create_inferior): New parameter
680 ops. Pass the found target when calling its method.
681 (init_dummy_target): Provide fallback definition of to_detach.
682 (target_attach): New.
683 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
684 (debug_to_mourn_inferiour): New parameter ops.
685 * aix-thread.c: Adjust.
686 * bsd-uthread.c: Adjust.
687 * gnu-nat.c: Adjust.
688 * go32-nat.c: Adjust.
689 * hpux-thread.c: Adjust.
690 * inf-ttrace.c: Ajust.
691 * monitor.c: Adjust.
692 * nto-procfs.c: Adjust.
693 * procfs.c: Adjust.
694 * remote-m32r-sdi.c: Adjust.
695 * remote-mips.c: Adjust.
696 * remote-sim.c: Adjust.
697 * rs6000-nat.c: Adjust.
698 * sol-thread.c: Adjust.
699 * win32-nat.c: Adjust.
700 * dec-thread.c: Adjust.
701
ed406532
VP
7022008-11-09 Vladimir Prus <vladimir@codesourcery.com>
703
704 * thread.c (print_thread_info): Eliminate now useless checks
705 for exited threads.
706
48fb2d97
PA
7072008-11-06 Pedro Alves <pedro@codesourcery.com>
708
709 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
710 to 0.
711
29c87f7f
PA
7122008-11-05 Pedro Alves <pedro@codesourcery.com>
713
714 * remote.c (notice_new_inferiors): Add a new inferior only when
715 we're going to add a new thread.
716
e0ba6746
PA
7172008-11-05 Pedro Alves <pedro@codesourcery.com>
718
719 * defs.h (add_inferior_continuation)
720 (do_all_inferior_continuations)
721 (discard_all_inferior_continuations): Declare.
722 * utils.c (add_inferior_continuation)
723 (do_all_inferior_continuations)
724 (discard_all_inferior_continuations): New.
725 * inferior.h (struct inferior) <continuations>: New field.
726 * inferior.c (free_inferior): Discard all the inferior
727 continuations.
728 * inf-loop.c (inferior_event_handler): Do all current inferior
729 continuations.
730 * infcmd.c (attach_command): Register an inferior continuation
731 instead of a thread continuation.
732 * infrun.c (handle_inferior_event): If stop_soon is
733 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
734
d3fd5342
PA
7352008-11-04 Pedro Alves <pedro@codesourcery.com>
736
737 * inf-loop.c (inferior_event_handler): On INF_ERROR and
738 INF_REG_EVENT throwing, don't call target_async or pop_target.
739 Call pop_all_targets_above.
740 * remote.c (remote_close): Call remote_terminal_ours. Don't call
741 signal or target_async.
742
1c9f699c
DJ
7432008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
744
745 * eval.c (evaluate_subexp_standard): Assert that there is at
746 least one array dimension.
747
cb0362bb
VP
7482008-11-03 Vladimir Prus <vladimir@codesourcery.com>
749
750 Make attach_command exception-safe
751 * infcmd.c (attach_command): Call async_enable_stdin
752 if exception is thrown.
753
9bc9e927
PA
7542008-11-03 Pedro Alves <pedro@codesourcery.com>
755
756 * gdbarch.sh (has_global_solist): Mention global breakpoints.
757 * gdbarch.h: Regenerate.
758
50c71eaf
PA
7592008-11-03 Pedro Alves <pedro@codesourcery.com>
760
761 * remote.c (remote_start_remote): If the solib list is global,
762 fetch libraries and insert breakpoints after connecting.
763 * infcmd.c (post_create_inferior): If the solist is shared between
764 inferiors, no need to refetch it on every new inferior.
765 (detach_command): If the shared library list is shared between
766 inferiors, then don't clear it on every inferior detach.
767 * gdbarch.sh (has_global_solist): New.
768 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
769 gdbarch_has_global_solist.
770 * target.c (target_pre_inferior): If the shared library list is
771 shared between inferiors, then don't clear it here, neither
772 invalidate the memory regions or clear the target description.
773 (target_detach): If the shared library list is shared between
774 inferiors, then don't remove breakpoints from the target here.
775 (target_disconnect): Comment.
776 * solib.c (update_solib_list): Check for null_ptid.
777 * breakpoint.c (insert_breakpoints, update_global_location_list):
778 If the shared library list is shared between inferiors, insert
779 breakpoints even if there's no execution.
780 (breakpoint_init_inferior): If the shared library list is shared
781 between inferiors, don't delete breakpoints or mark them
782 uninserted here.
783
784 * gdbarch.c, gdbarch.h: Regenerate.
785
2fdf0e42
PA
7862008-10-31 Pedro Alves <pedro@codesourcery.com>
787
788 * inferior.h (inferior_ignoring_leading_exec_events): Delete
789 declaration.
790
3990c31b
PA
7912008-10-31 Pedro Alves <pedro@codesourcery.com>
792
793 * inferior.h (write_inferior_status_register): Delete.
794 * infrun.c (write_inferior_status_register): Delete.
795
2a2546f0 7962008-10-30 Tom Tromey <tromey@redhat.com>
f3134b88
TT
797
798 * value.c (coerce_array): Use check_typedef.
799
2a2546f0 8002008-10-30 Tom Tromey <tromey@redhat.com>
724b958c
TT
801
802 * cli/cli-logging.c (handle_redirections): Make a cleanup.
803 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
804 * regcache.c (regcache_print): Make a cleanup.
805 * maint.c (maintenance_print_architecture): Make a cleanup.
806 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
807
a05016c0
TT
8082008-10-30 Tom Tromey <tromey@redhat.com>
809
810 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
811 (do_close_cleanup): Don't free 'fd'.
812
2a2546f0 8132008-10-30 Tom Tromey <tromey@redhat.com>
9fe4a216
TT
814
815 * source.c (symtab_to_fullname): Test 'r >= 0'.
816 (psymtab_to_fullname): Likewise.
817 (get_filename_and_charpos): Make a cleanup.
818 (forward_search_command): Likewise.
819 (reverse_search_command): Likewise.
820 * exec.c (exec_file_attach): Close scratch_chan on failure.
821 * nto-procfs.c (procfs_open): Make a cleanup.
822 (procfs_pidlist): Likewise.
823 (do_closedir_cleanup): New function.
824
c2226152
AS
8252008-10-30 Andreas Schwab <schwab@suse.de>
826
827 * infcmd.c (construct_inferior_arguments): Handle newlines
828 specially.
829
fe798b75
JB
8302008-10-30 Joel Brobecker <brobecker@adacore.com>
831
832 * breakpoint.h (enum bptype): Delete bp_catch_exec.
833 * breakpoint.c (insert_catchpoint): Remove handling for
834 bp_catch_exec breakpoint kinds.
835 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
836 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
837 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
838 (print_one_breakpoint_location, user_settable_breakpoint)
839 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
840 (allocate_bp_location, mention, breakpoint_re_set_one)
841 (disable_command, enable_command): Likewise.
842 (create_exec_event_catchpoint): Delete.
843 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
844 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
845 New functions.
846 (catch_exec_breakpoint_ops): New static global.
847 (catch_exec_command_1): Use create_catchpoint instead of
848 create_exec_event_catchpoint to create the exec catchpoint.
849
f154cae1
TT
8502008-10-28 Tom Tromey <tromey@redhat.com>
851
852 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
853 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
854 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
855 (cli-utils.o): Remove.
856 * cli/cli-utils.c: Remove.
857 * cli/cli-utils.h: Remove.
858
79a45b7d
TT
8592008-10-28 Tom Tromey <tromey@redhat.com>
860
861 * varobj.c (value_get_print_value): Include valprint.h.
862 (value_get_print_value): Use get_formatted_print_options.
863 * value.h (struct value_print_options): Declare.
864 (value_print, val_print, common_val_print, val_print_string):
865 Update.
866 * value.c: Include valprint.h.
867 (show_values): Use get_user_print_options.
868 (show_convenience): Likewise.
869 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
870 declare.
871 (struct value_print_options): New type.
872 (vtblprint, unionprint, addressprint, objectprint, print_max,
873 inspect_it, repeat_count_threshold, output_format,
874 stop_print_at_null): Don't declare.
875 (user_print_options, get_user_print_options,
876 get_raw_print_options, get_formatted_print_options): Declare.
877 (print_array_indexes_p): Don't declare.
878 (maybe_print_array_index, val_print_array_elements): Update.
879 * valprint.c (print_max): Remove.
880 (user_print_options): New global.
881 (get_user_print_options, get_raw_print_options,
882 get_formatted_print_options): New functions.
883 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
884 prettyprint_structs, prettyprint_arrays, unionprint,
885 addressprint): Remove.
886 (val_print): Remove format, deref_ref, pretty arguments; add
887 options. Update.
888 (common_val_print): Likewise.
889 (print_array_indexes_p): Remove.
890 (maybe_print_array_index): Remove format, pretty arguments; add
891 options. Update.
892 (val_print_array_elements): Remove format, deref_ref, pretty
893 arguments; add options. Update.
894 (val_print_string): Add options argument. Update.
895 (_initialize_valprint): Use user_print_options.
896 (output_format): Remove.
897 (set_output_radix_1): Use user_print_options.
898 * typeprint.c: Include valprint.h.
899 (objectprint): Don't declare.
900 (whatis_exp): Use get_user_print_options.
901 * tui/tui-regs.c: Include valprint.h.
902 (tui_register_format): Use get_formatted_print_options.
903 * tracepoint.c: Include valprint.h.
904 (addressprint): Don't declare.
905 (trace_mention): Use get_user_print_options.
906 (tracepoints_info): Likewise.
907 * stack.c (print_frame_args): Use get_raw_print_options.
908 (print_frame_info): Use get_user_print_options.
909 (print_frame): Likewise.
910 * sh64-tdep.c: Include valprint.h
911 (sh64_do_register): Use get_formatted_print_options.
912 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
913 pretty arguments; add options.
914 (scm_scmlist_print): Likewise. Update.
915 (scm_scmval_print): Likewise.
916 (scm_val_print): Likewise.
917 (scm_value_print): Remove format, pretty arguments; add options.
918 Update.
919 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
920 Update.
921 * scm-lang.c (scm_printstr): Add options argument.
922 * python/python-value.c: Include valprint.h.
923 (valpy_str): Use get_user_print_options.
924 * printcmd.c: Include valprint.h.
925 (addressprint): Don't declare.
926 (inspect_it): Remove.
927 (print_formatted): Remove format option; add options. Update.
928 (print_scalar_formatted): Likewise.
929 (print_address_demangle): Use get_user_print_options.
930 (do_examine): Use get_formatted_print_options.
931 (print_command_1): Likewise.
932 (output_command): Use get_formatted_print_options.
933 (do_one_display): Likewise.
934 (print_variable_value): Use get_user_print_options.
935 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
936 pretty arguments; add options. Update.
937 (pascal_value_print): Remove format, pretty arguments; add
938 options. Update.
939 (vtblprint, objectprint): Don't declare.
940 (pascal_static_field_print): Remove.
941 (pascal_object_print_value_fields): Remove format, pretty
942 arguments; add options. Update.
943 (pascal_object_print_static_field): Likewise.
944 (_initialize_pascal_valprint): Use user_print_options. Update.
945 * p-lang.h (pascal_val_print, pascal_value_print,
946 pascal_printstr, pascal_object_print_value_fields): Update.
947 (vtblprint, static_field_print): Don't declare.
948 * p-lang.c (pascal_printstr): Add options argument. Update.
949 * objc-lang.c (objc_printstr): Add options argument. Update.
950 * mt-tdep.c: Include valprint.h.
951 (mt_registers_info): Use get_raw_print_options.
952 * mips-tdep.c: Include valprint.h.
953 (mips_print_fp_register): Use get_formatted_print_options.
954 (mips_print_register): Likewise.
955 * mi/mi-main.c: Include valprint.h.
956 (get_register): Use get_user_print_options.
957 (mi_cmd_data_evaluate_expression): Likewise.
958 (mi_cmd_data_read_memory): Use get_formatted_print_options.
959 * mi/mi-cmd-stack.c: Include valprint.h.
960 (list_args_or_locals): Use get_raw_print_options.
961 * m2-valprint.c (print_function_pointer_address): Add addressprint
962 argument.
963 (m2_print_long_set): Remove format, pretty arguments.
964 (m2_print_unbounded_array): Remove format, deref_ref, pretty
965 arguments; add options. Update.
966 (print_unpacked_pointer): Remove format argument; add options.
967 Now static. Update.
968 (print_variable_at_address): Remove format, deref_ref, pretty
969 arguments; add options. Update.
970 (m2_print_array_contents): Likewise.
971 (m2_val_print): Likewise.
972 * m2-lang.h (m2_val_print): Update.
973 * m2-lang.c (m2_printstr): Add options argument. Update.
974 * language.h (struct value_print_options): Declare.
975 (struct language_defn) <la_printstr>: Add options argument.
976 <la_val_print>: Remove format, deref_ref, pretty argument; add
977 options.
978 <la_value_print>: Remove format, pretty arguments; add options.
979 <la_print_array_index>: Likewise.
980 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
981 LA_PRINT_ARRAY_INDEX): Update.
982 (default_print_array_index): Update.
983 * language.c (default_print_array_index): Remove format, pretty
984 arguments; add options. Update.
985 (unk_lang_printstr): Add options argument.
986 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
987 add options.
988 (unk_lang_value_print): Remove format, pretty arguments; add
989 options.
990 * jv-valprint.c (java_value_print): Remove format, pretty
991 arguments; add options. Update.
992 (java_print_value_fields): Likewise.
993 (java_val_print): Remove format, deref_ref, pretty arguments; add
994 options. Update.
995 * jv-lang.h (java_val_print, java_value_print): Declare.
996 * infcmd.c: Include valprint.h.
997 (print_return_value): Use get_raw_print_options.
998 (default_print_registers_info): Use get_user_print_options,
999 get_formatted_print_options.
1000 (registers_info): Use get_formatted_print_options.
1001 * gdbtypes.h (struct value_print_options): Declare.
1002 (print_scalar_formatted): Update.
1003 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
1004 pretty arguments; add options. Update.
1005 (f77_print_array): Likewise.
1006 (f_val_print): Likewise.
1007 * f-lang.h (f_val_print): Update.
1008 * f-lang.c (f_printstr): Add options argument. Update.
1009 (c_value_print): Update declaration.
1010 * expprint.c: Include valprint.h.
1011 (print_subexp_standard): Use get_raw_print_options,
1012 get_user_print_options.
1013 * eval.c: Include valprint.h.
1014 (objectprint): Don't declare.
1015 (evaluate_subexp_standard): Use get_user_print_options.
1016 * cp-valprint.c (vtblprint, objectprint, static_field_print):
1017 Remove.
1018 (cp_print_value_fields): Remove format, pretty arguments; add
1019 options. Update.
1020 (cp_print_value): Likewise.
1021 (cp_print_static_field): Likewise.
1022 (_initialize_cp_valprint): Use user_print_options. Update.
1023 * c-valprint.c (print_function_pointer_address): Add addressprint
1024 argument.
1025 (c_val_print): Remove format, deref_ref, pretty arguments; add
1026 options. Update.
1027 (c_value_print): Add options argument. Update.
1028 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
1029 (vtblprint, static_field_print): Don't declare.
1030 (cp_print_value_fields): Update.
1031 * c-lang.c (c_printstr): Add options argument. Update.
1032 * breakpoint.c: Include valprint.h.
1033 (addressprint): Don't declare.
1034 (watchpoint_value_print): Use get_user_print_options.
1035 (print_one_breakpoint_location): Likewise.
1036 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
1037 print_exception_catchpoint): Likewise.
1038 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
1039 get_user_print_options.
1040 * ada-valprint.c (struct ada_val_print_args): Remove format,
1041 deref_ref, and pretty; add options.
1042 (print_optional_low_bound): Add options argument.
1043 (val_print_packed_array_elements): Remove format and pretty
1044 arguments; add options. Update.
1045 (printstr): Add options argument. Update.
1046 (ada_printstr): Likewise.
1047 (ada_val_print): Remove format, deref_ref, pretty arguments; add
1048 options argument. Update.
1049 (ada_val_print_stub): Update.
1050 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
1051 add options. Update.
1052 (ada_val_print_1): Likewise.
1053 (print_variant_part): Likewise.
1054 (ada_value_print): Remove format, pretty arguments; add options.
1055 Update.
1056 (print_record): Likewise.
1057 (print_field_values): Likewise.
1058 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
1059 Update.
1060 * ada-lang.c (ada_print_array_index): Add options argument; remove
1061 format and pretty arguments.
1062 (print_one_exception): Use get_user_print_options.
1063
7c8a8b04
TT
10642008-10-28 Tom Tromey <tromey@redhat.com>
1065
1066 * cli/cli-script.c (do_fclose_cleanup): Remove.
1067 (script_from_file): Use make_cleanup_fclose.
1068 * xml-tdesc.c (do_cleanup_fclose): Remove.
1069 (fetch_xml_from_file): Use make_cleanup_fclose.
1070 * tracepoint.c (tracepoint_save_command): Use
1071 make_cleanup_fclose. Always free pathname.
1072 * source.c (print_source_lines_base): Use make_cleanup_fclose.
1073 * remote.c (fclose_cleanup): Remove.
1074 (remote_file_put): Use make_cleanup_fclose.
1075 (remote_file_get): Likewise.
1076 * linux-nat.c (linux_nat_find_memory_regions): Use
1077 make_cleanup_fclose.
1078 (linux_nat_info_proc_cmd): Likewise.
1079 (linux_proc_pending_signals): Likewise.
1080 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
1081 Free file name.
1082 * cli/cli-dump.c (do_fclose_cleanup): Remove.
1083 (make_cleanup_fclose): Remove.
1084 * defs.h (make_cleanup_fclose): Declare.
1085 * utils.c (do_fclose_cleanup): New function.
1086 (make_cleanup_fclose): Likewise.
1087
5a55c295
PA
10882008-10-27 Pedro Alves <pedro@codesourcery.com>
1089
1090 * inflow.c (kill_command): If the target claims there is still
1091 execution, don't clear the thread list.
1092
5256a53b
PA
10932008-10-27 Pedro Alves <pedro@codesourcery.com>
1094
1095 * cp-name-parser.y: Include defs.h instead of config.h.
1096 (parse_escape): Rename to ...
1097 (cp_parse_escape): ... this.
1098 (yylex): Update.
1099 (xfree) [TEST_CPNAMES]: New.
1100
e8ecdb5c
PA
11012008-10-27 Pedro Alves <pedro@codesourcery.com>
1102
1103 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
1104 2.13 and configure.in.
1105
8a305172
PA
11062008-10-27 Pedro Alves <pedro@codesourcery.com>
1107
1108 * target.h (struct target_ops) <to_supports_multi_process>: New
1109 field.
1110 (target_supports_multi_process): New define.
1111 * target.c (update_current_target): Inherit and de_fault
1112 to_supports_multi_process.
1113 * infcmd.c (attach_command): Allow attaching to multiple processes
1114 if the target supports it.
1115 (detach_command): If the target claims there is still execution,
1116 don't clear the thread list.
1117 * remote.c (remote_supports_multi_process): New.
1118 (init_remote_ops): Register remote_supports_multi_process.
1119
676e87b3
PA
11202008-10-27 Pedro Alves <pedro@codesourcery.com>
1121
1122 * Makefile.in (.y.c, .l.c): sed free to xfree.
1123
f0323ca0
PA
11242008-10-27 Pedro Alves <pedro@codesourcery.com>
1125
1126 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
1127 $(TM_CLIBS).
1128 (CDEPS): Remove reference to $(TM_CDEPS).
1129
3067f6e5
MS
11302008-10-26 Michael Snyder <msnyder@vmware.com>
1131
1132 * infrun.c (handle_inferior_event): Handle dynamic symbol
1133 resolution in reverse.
1134
6130d0b7
JB
11352008-10-25 Joel Brobecker <brobecker@adacore.com>
1136
1137 * infrun.c: Minor comment reformatting.
1138
bbe2ba60
PA
11392008-10-25 Pedro Alves <pedro@codesourcery.com>
1140
1141 * ada-exp.y (write_object_renaming): Use malloc instead of
1142 xmalloc.
1143 * p-exp.y (pop_current_type): Use free instead of xfree.
1144
2e979b94
PA
11452008-10-24 Pedro Alves <pedro@codesourcery.com>
1146
1147 * fork-child.c (startup_inferior): Only set threads not-executing
1148 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
1149 keep waiting, don't resume. On all other cases but
1150 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
1151 the event ptid.
1152
74531fed
PA
11532008-10-24 Pedro Alves <pedro@codesourcery.com>
1154
1155 Remote non-stop mode support.
1156
1157 * remote.c (pending_stop_reply): New.
1158 (struct remote_state) <non_stop_aware, support_vCont_t>: New
1159 fields.
1160 (remote_async_inferior_event_token)
1161 (remote_async_get_pending_events_token): New.
1162 (notice_new_inferiors): New, abstracted out from record_currthread.
1163 (record_currthread): Call it.
1164 (remote_threads_info): Default threads to running in non-stop
1165 mode. In non-stop mode, only qfThreadInfo is supported.
1166 (remote_close): Discard all pending stop_replies. Close the event
1167 sources.
1168 (set_stop_requested_callback): New.
1169 (remote_start_remote): Implement non-stop mode startup. In
1170 all-stop, don't clear the thread list here.
1171 (remote_non_stop_feature): New.
1172 (remote_protocol_features): Add a "QNonStop" feature.
1173 (remote_open_1): Clear cached_wait_status and non_stop_aware.
1174 Clear the thread list here.
1175 (remote_detach_1): Discard pending stop replies of the process we
1176 detached from.
1177 (extended_remote_attach_1): Implement non-stop mode.
1178 (remote_vcont_probe): Recognize `vCont;t'.
1179 (remote_vcont_resume): Implement non-stop mode.
1180 (remote_resume): Don't set waiting_for_stop_reply in non-stop
1181 mode.
1182 (remote_stop_ns): New.
1183 (remote_stop): Rename to ...
1184 (remote_stop_as): ... this. If we have a cached wait status,
1185 don't bother interrupting the remote.
1186 (remote_stop): Reimplement as wrapper around remote_stop_as and
1187 remote_stop_ns.
1188 (interrupt_query): Don't query in async mode.
1189 (struct cached_reg, cahed_reg_t): New.
1190 (struct stop_reply): New.
1191 (stop_reply_queue): New.
1192 (stop_reply_xmalloc, stop_reply_xfree)
1193 (discard_pending_stop_replies, do_stop_reply_xfree)
1194 (queued_stop_reply, push_stop_reply, peek_stop_reply)
1195 (remote_parse_stop_reply, remote_get_pending_stop_replies)
1196 (process_stop_reply): New.
1197 (remote_wait_ns): New.
1198 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
1199 notion of current general thread is a process exit was reported.
1200 (remote_wait): Call remote_wait_ns in non-stop mode.
1201 (handle_notification): New.
1202 (putpkt_binary): Handle notifications. Don't care for
1203 waiting_for_stop_reply in non-stop mode.
1204 (getpkt_sane): Rename to ...
1205 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
1206 argument. Handle it. Handle notifications.
1207 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
1208 (getpkt_or_notif_sane): New.
1209 (select_new_thread_callback): Check for exited state instead of
1210 comparing the ptid against minus_one_ptid.
1211 (extended_remote_create_inferior_1): Query the remote about the
1212 current thread.
1213 (remote_supports_non_stop): New.
1214 (init_remote_ops): Register it.
1215 (remote_async_inferior_event_handler): New.
1216 (remote_async_get_pending_events_handler): New.
1217
1218 * infcmd.c (proceed_thread_callback): Comment.
1219 (proceed_after_attach_callback, proceed_after_attach): New.
1220 (attach_command_post_wait): In background attach, resume all
1221 threads, but only if they are unsignalled, and not explicitly
1222 stopped. In foreground attach, in non-stop mode, make sure to
1223 stop all threads of the just attached to process.
1224 (attach_command): In non-stop mode: If doing a background attach,
1225 stop at least one thread. If a foreground attach, stop all
1226 threads.
1227
50d01748
PA
12282008-10-24 Pedro Alves <pedro@codesourcery.com>
1229
1230 * event-loop.h: Mention async_event_handlers.
1231 (async_event_handler): Forward declare.
1232 (async_event_handler_func): New typedef.
1233 (create_async_event_handler, delete_async_event_handler)
1234 (mark_async_event_handler): Declare.
1235 * event-loop.c (event_data): New.
1236 (event_handler_func): Take an event_data instead of an integer.
1237 (struct gdb_event): Replace the integer file descriptor by a
1238 generic event_data.
1239 (async_event_handler): New.
1240 (async_handler_ready): Delete.
1241 (async_event_handler_list): New.
1242 (create_event): New.
1243 (create_file_event): Use it.
1244 (process_event): Adjust.
1245 (gdb_do_one_event): Poll from the event sources in round-robin
1246 fashion across calls. Be sure to consult all sources before
1247 blocking.
1248 (handle_file_event): Take an event_data instead of an integer.
1249 Adjust.
1250 (gdb_wait_for_event): Add `block' argument. Handle it.
1251 (mark_async_signal_handler): Remove unneeded cast.
1252 (invoke_async_signal_handler): Rename to ...
1253 (invoke_async_signal_handlres): ... this. Return true if any was
1254 handled.
1255 (check_async_ready): Delete
1256 (create_async_event_handler): New.
1257 (mark_async_event_handler): New.
1258 (struct async_event_handler_data): New.
1259 (invoke_async_event_handler): New.
1260 (check_async_event_handlers): New.
1261 (delete_async_event_handler): New.
1262 (handle_timer_event): Adjust.
1263
6dd47d34
DE
12642008-10-24 Doug Evans <dje@google.com>
1265
1266 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
1267 is NULL. Simplify obs == NULL case.
1268
fff08868
HZ
12692008-10-24 Hui Zhu <teawater@gmail.com>
1270 Pedro Alves <pedro@codesourcery.com>
1271
1272 * infrun.c (can_use_displaced_stepping): Change type to
1273 const char pointer.
1274 (can_use_displaced_stepping_auto): New string.
1275 (can_use_displaced_stepping_on): New string.
1276 (can_use_displaced_stepping_off): New string.
1277 (can_use_displaced_stepping_enum): New array.
1278 (show_can_use_displaced_stepping): In auto mode, also show
1279 the current effect of the option.
1280 (use_displaced_stepping): Return non-zero if displaced
1281 stepping is auto, and can be used with GDBARCH, and in
1282 non-stop mode. Return non-zero if displaced stepping is on,
1283 and can be used with GDBARCH. Return zero otherwise.
1284 (_initialize_infrun): Make the "set displaced-stepping"
1285 command an enum command. Change its class to class_run.
1286 Place it in the top level set list. Extend help to describe
1287 the auto mode.
1288
252fbfc8
PA
12892008-10-23 Pedro Alves <pedro@codesourcery.com>
1290
1291 * defs.h: Mention ptid_is_pid.
1292 * inferior.h (ptid_is_pid): Declare.
1293 * gdbthread.h (struct thread_info) <stop_requested>: New field.
1294 (set_stop_requested): Declare.
1295 * infcmd.c (interrupt_target_1): Call set_stop_requested.
1296 * infrun.c (clear_proceed_status): Clear stop_requested.
1297 (infrun_thread_stop_requested_callback,
1298 infrun_thread_stop_requested): New.
1299 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
1300 thread that had an explicit stop request, pretend we got a
1301 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
1302 request.
1303 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
1304 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
1305 instead of mentioning signal 0.
1306 (ptid_is_pid): New.
1307 * thread.c (set_stop_requested): New.
1308
1309 * linux-nat.c (queued_waitpid): Rename to ...
1310 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
1311 (queued_waitpid): New, as wrapper to queued_waitpid_1.
1312 (push_waitpid): Push the SIGTRAP to the local event queue, to the
1313 kernel's.
1314 (send_sigint_callback): Delete.
1315 (linux_nat_stop_lwp): New.
1316 (linux_nat_stop): Use it.
1317
3c0ed299
PP
13182008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1319
1320 * python/python-value (valpy_getitem): Fix heap corruption.
1321
103fd00d
AR
13222008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1323
1324 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1325 (procfs_create_inferior): Fetch list of threads.
1326
3fdfcbf1
AR
13272008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1328
1329 * nto-procfs.c (procfs_files_info): Fix a typo.
1330 (procfs_create_inferior): Make attach_flag per-inferior.
1331
997339e8
PP
13322008-10-23 Tom Tromey <tromey@redhat.com>
1333
1334 * python/python-value.c (value_to_value_object): Initialize
1335 owned_by_gdb field.
1336 (valpy_new): Likewise.
1337
d6b67a5e
JK
13382008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1339 Joel Brobecker <brobecker@adacore.com>
1340
1341 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1342 initializer. Define the strings as const.
1343 (short_task_info, info_task): Translate the strings above.
1344
aadc346a
JB
13452008-10-22 Joel Brobecker <brobecker@adacore.com>
1346
1347 * NEWS: Add entry for new feature (Ada tasking support).
1348
13492008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
1350
1351 * configure.ac: On alpha-osf, error out if enable_tui is set to
1352 "yes", and set enable_tui to "no" if previously set to "auto".
1353 Check for waddstr only if TUI support was requested. Move the
1354 part of the configure script that updates various Makefile
1355 variables up, together with the check for waddstr.
1356 * configure: Regenerate.
1357
4af88198
JB
13582008-10-22 Joel brobecker <brobecker@adacore.com>
1359
1360 * gdbtypes.c (copy_type): New function.
1361 * gdbtypes.h (copy_type): Add declaration.
1362 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1363 variable, then use it.
1364
0ef643c8
JB
13652008-10-22 Joel Brobecker <brobecker@adacore.com>
1366
1367 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1368 (target_get_ada_task_ptid): New macro.
1369 * target.c (default_get_ada_task_ptid): New function.
1370 (update_current_target): Inherit field default_get_ada_task_ptid.
1371 (update_current_target): Make default_get_ada_task_ptid the default
1372 value for field to_get_ada_task_ptid.
1373 * ada-lang.h (struct task_control_block): Delete. Never used.
1374 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1375 Likewise.
1376 (struct ada_task_info): New.
1377 (ada_task_is_alive, ada_find_printable_frame)
1378 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1379 declarations.
1380 (ada_build_task_list): Update prototype.
1381 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1382 * ada-lang.c (ada_find_printable_frame): Make non-static.
1383 * ada-tasks.c: New file.
1384 * Makefile.in (SFILES): Add ada-tasks.c.
1385 (COMMON_OBS): Add ada-tasks.o.
1386 * linux-thread-db.c (thread_db_find_thread_from_tid)
1387 (thread_db_get_ada_task_ptid): New functions.
1388 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1389
c209f847
TT
13902008-10-22 Tom Tromey <tromey@redhat.com>
1391
1392 PR gdb/2506:
1393 * c-exp.y (string_exp): New production.
1394 (exp): Use it.
1395
5bc60cfb
JK
13962008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1397
1398 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1399 removed before.
1400
7f99b190
JB
14012008-10-20 Joel Brobecker <brobecker@adacore.com>
1402
1403 * NEWS: Add entry mentioning thread-support on Tru64
1404
7a052092
JB
14052008-10-19 Joel Brobecker <brobecker@adacore.com>
1406
1407 * dec-thread.c: New file.
1408 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1409 (NAT_CLIBS): Define.
1410
40e12b06
HZ
14112008-10-19 Hui Zhu <teawater@gmail.com>
1412
1413 * infrun.c (handle_inferior_event): Set "stop_pc" when
1414 TARGET_WAITKIND_NO_HISTORY.
1415
f9176c46
PA
14162008-10-19 Pedro Alves <pedro@codesourcery.com>
1417
1418 * python/python-value.c (value_object_methods)
1419 (value_object_as_number, value_object_as_mapping): Move to bottom
1420 of file.
1421 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1422 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1423 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1424 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1425 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1426 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1427
4058b839
PA
14282008-10-18 Pedro Alves <pedro@codesourcery.com>
1429
1430 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1431 reverse.
1432
f42429a6
PA
14332008-10-17 Pedro Alves <pedro@codesourcery.com>
1434
1435 * infcmd.c (GO_USAGE): Delete.
1436 (go_command): Adjust.
1437
b2175913
MS
14382008-10-17 Michael Snyder <msnyder@vmware.com>
1439 Target interface for reverse debugging.
1440 * target.h (enum target_waitkind):
1441 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1442 (struct target_ops): New method to_can_execute_reverse.
1443 (target_can_execute_reverse): New macro.
1444 * target.c (update_current_target): Inherit to_can_execute_reverse.
1445
1446 Remote interface for reverse debugging.
1447 * remote.c (remote_can_execute_reverse): New target method.
1448 (remote_resume): Check for reverse exec direction, and send
1449 appropriate command to target.
1450 (remote_wait_as): Check target response for NO_HISTORY status.
1451 Also check for empty reply (target doesn't understand "bs" or "bc).
1452 (remote_vcont_resume): Jump out if attempting reverse execution.
1453
1454 Event handling interface for reverse debugging.
1455 * infrun.c (execution_direction): New state variable.
1456 (enum inferior_stop_reason): Add NO_HISTORY reason.
1457 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1458 Handle stepping over a function call in reverse.
1459 Handle stepping thru a line range in reverse.
1460 Handle setting a step-resume breakpoint in reverse.
1461 Handle stepping into a function in reverse.
1462 Handle stepping between line ranges in reverse.
1463 (print_stop_reason): Print reason for NO_HISTORY.
1464 (step_into_function): Rename to handle_step_into_function.
1465 (handle_step_into_function_backward): New function.
1466 (set_exec_direction_func, show_exec_direction_func): New funcs.
1467 (proceed): No need to singlestep over a breakpoint
1468 when resuming in reverse.
1469
1470 * inferior.h (enum exec_direction_kind): New enum.
1471 (execution_direction): Export new execution state variable.
1472
1473 * breakpoint.c (make_breakpoint_silent): New function.
1474 * breakpoint.h (make_breakpoint_silent): Export.
1475 * infcmd.c (finish_command): Check for reverse exec direction.
1476 (finish_backward): New function, handle finish cmd in reverse.
1477
1478 User interface for reverse execution.
1479 * Makefile.in (reverse.c): New file.
1480 * reverse.c: New file. User interface for reverse execution.
1481
153ccabd
PA
14822008-10-17 Pedro Alves <pedro@codesourcery.com>
1483
1484 * remote.c (record_currthread): Add inferior before child threads.
1485 (remote_threads_info): Check for exited threads. Mention
1486 notification order.
1487
ce78b96d
JB
14882008-10-16 Joel Brobecker <brobecker@adacore.com>
1489
1490 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1491 Delete bp_catch_fork and bp_catch_vfork.
1492 (struct breakpoint_ops): Add new methods "insert", "remove"
1493 and "breakpoint_hit".
1494 * breakpoint.c (create_fork_vfork_event_catchpoint)
1495 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1496 (insert_catchpoint): Remove handling of bp_catch_fork and
1497 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1498 catchpoints instead.
1499 (insert_bp_location, update_breakpoints_after_exec)
1500 (remove_breakpoint, bpstat_check_location, bpstat_what)
1501 (allocate_bp_location): Likewise.
1502 (print_it_typical, print_one_breakpoint_location, mention): Remove
1503 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1504 (ep_is_catchpoint, user_settable_breakpoint)
1505 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1506 (breakpoint_re_set_one, disable_command, enable_command):
1507 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1508 bp_catchpoint breakpoints.
1509 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1510 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1511 New functions.
1512 (catch_fork_breakpoint_ops): New static constant.
1513 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1514 (print_it_catch_vfork, print_one_catch_vfork)
1515 (print_mention_catch_vfork): New functions.
1516 (catch_vfork_breakpoint_ops): New static constant.
1517 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1518 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1519 to create the fork and vfork catchpoints.
1520 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1521 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1522 fields.
1523 (catch_exception_unhandled_breakpoint_ops): Likewise.
1524 (catch_assert_breakpoint_ops): Likewise.
1525
3c9c4b83
PA
15262008-10-16 Pedro Alves <pedro@codesourcery.com>
1527
1528 * remote.c (set_general_process): New.
1529 (remote_check_symbols): Use it.
1530
5c952c9b
PA
15312008-10-16 Pedro Alves <pedro@codesourcery.com>
1532
1533 * remote.c (push_remote_target): Delete.
1534 * target.h (push_remote_target): Delete declaration.
1535
ce5ce7ed
PA
15362008-10-15 Pedro Alves <pedro@codesourcery.com>
1537
1538 * remote.c (remote_close): Unregister remote_desc from the event
1539 loop. Always restore the SIGINT handler. Discard all inferiors
1540 here.
1541 (remote_detach_1, remote_disconnect): Don't unregister the file
1542 descriptor from the event loop here.
1543 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1544 of morning the current inferior.
1545 (remote_kill): Don't unregister the file descriptor from the event
1546 loop here.
1547 (remote_mourn_1): Don't discard inferiors here.
1548
1c5cfe86
PA
15492008-10-15 Pedro Alves <pedro@codesourcery.com>
1550
1551 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1552 locations list.
1553 (moribund_breakpoint_here_p): Record the moribund
1554 location in the moribund_locations vector.
1555 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1556 (displaced_step_fixup): Check if the breakpoint the thread was
1557 trying to step over has been removed since having been placed in
1558 the displaced stepping queue.
1559 (adjust_pc_after_break): In non-stop mode, check for a moribund
1560 breakpoint at the stop pc.
1561 (handle_inferior_event): Don't retire moribund breakpoints on
1562 TARGET_WAITKIND_IGNORE.
1563
15642008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
1565
1566 * infrun.c (displaced_step_prepare): Switch thread temporarily
1567 while we're here.
1568 (displaced_step_fixup): Make sure target_resume sees ptid as
1569 inferior_ptid. Add debug output.
1570
63c715c6
PA
15712008-10-14 Pedro Alves <pedro@codesourcery.com>
1572
1573 Remove dead code.
1574
1575 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1576 (print_one_breakpoint_location): Adjust.
1577 (breakpoint_clear_ignore_counts): Delete.
1578 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1579 declaration.
1580 * target.c (generic_mourn_inferior): Don't clear ignore
1581 counts (never reached).
1582
c764a876
DE
15832008-10-10 Doug Evans <dje@google.com>
1584
1585 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1586 for dwarf section offsets and sizes.
1587 (dwarf2_cu): Ditto.
1588 (dwarf2_per_cu_data): Ditto.
1589 (create_all_comp_units): Change offset to unsigned int.
1590 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1591 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1592
1593 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1594 All callers updated.
1595 (read_checked_initial_length_and_offset): New function.
1596 (read_offset_1): New function.
1597 (read_offset): Call it.
1598 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1599 instead of read_initial_length. Call read_offset_1 instead of
1600 read_offset.
1601
1602 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1603 All callers updated.
1604
1605 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1606 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1607 DW_AT_HP_block_index.
1608
5fe04517
PA
16092008-10-10 Pedro Alves <pedro@codesourcery.com>
1610
1611 * remote.c (remote_start_remote): Always tell the stub if we're in
1612 extended-remote.
1613
c8e38a49
PA
16142008-10-09 Pedro Alves <pedro@codesourcery.com>
1615
1616 * remote.c (remote_wait): Rename to...
1617 (remote_wait_as): ... this. Don't loop here. If the remote
1618 didn't stop, return TARGET_WAITKIND_IGNORE.
1619 (remote_wait): New, reimplemented on top of remote_wait_as.
1620
9ca12bbf
TS
16212008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1622
d11d9deb
TS
1623 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1624 is fixed upstream.
1625
20249808
TS
1626 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1627
9ca12bbf
TS
1628 * MAINTAINERS (Write After Approval): Add myself.
1629
0b62613e
PA
16302008-10-09 Pedro Alves <pedro@codesourcery.com>
1631
1632 Make it compile without warnings.
1633
1634 * procfs.c (create_procinfo): Initialize `parent'.
1635 (dead_procinfo): Pass a constant string as format to error.
1636 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1637 (procfs_find_LDT_entry): Adjust format string to long int
1638 ptid.tid.
1639 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1640 (procfs_xfer_memory): Adjust prototype.
1641 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1642 variable as printf_filtered format.
1643 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1644 * Makefile.in: Remove special rule.
1645
c8d104ad
PA
16462008-10-09 Pedro Alves <pedro@codesourcery.com>
1647 Daniel Jacobowitz <dan@codesourcery.com>
1648
1649 * remote.c (remote_open_1): Move acknowledging any pending ack,
1650 querying supported features, activating noack mode, finding the
1651 target description, enabling extended remote, and checking remote
1652 symbols from here ...
1653 (remote_start_remote): ... to here.
1654 (remote_open_1): Don't pop the target if it is already gone.
1655 * target.c (unpush_target): Check for the dummy target.
1656
efdb2a86
PA
16572008-10-09 Pedro Alves <pedro@codesourcery.com>
1658
1659 * ser-mingw.c: Include "command.h".
1660 (pipe_windows_open): Declare locals at the beginning of the scope.
1661
e24a49d8
PA
16622008-10-08 Pedro Alves <pedro@codesourcery.com>
1663
1664 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1665 field.
1666 (remote_open_1): Clear waiting_for_stop_reply.
1667 (remote_resume): Set waiting_for_stop_reply.
1668 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1669 (putpkt_binary): If we're in async mode and waiting for a stop
1670 reply, bail out with an error.
1671 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1672
3084dd77
PA
16732008-10-08 Pedro Alves <pedro@codesourcery.com>
1674
1675 * remote.c (remote_get_thread_info): If the remote doesn't support
1676 the query, bail out.
1677
d6a843b5
JK
16782008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 Convert static_kind into loc_kind enum.
1681 * gdbtypes.h (enum field_loc_kind): New.
1682 (union field_location): New field dwarf_block.
1683 (struct field): Rename static_kind as loc_kind.
1684 (FIELD_STATIC_KIND): Rename to ...
1685 (FIELD_LOC_KIND): ... here.
1686 (TYPE_FIELD_STATIC_KIND): Rename to ...
1687 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1688 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1689 (TYPE_FIELD_STATIC): Remove.
1690 (TYPE_FIELD_BITPOS): Reformat.
1691 (SET_FIELD_BITPOS): New.
1692 (FIELD_PHYSADDR): Rename to ...
1693 (FIELD_STATIC_PHYSADDR): ... here.
1694 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1695 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1696 (FIELD_PHYSNAME): Rename to ...
1697 (FIELD_STATIC_PHYSNAME): ... here.
1698 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1699 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1700 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1701 (field_is_static): New declaration.
1702 * gdbtypes.c (field_is_static): New function.
1703 (copy_type_recursive): Update throughout.
1704 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1705 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1706 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1707
c289427b
PA
17082008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1709 Pedro Alves <pedro@codesourcery.com>
1710
1711 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1712 avoid a name collision.
1713 * gnu-nat.c: Likewise.
1714 * i386gnu-nat.c: Likewise.
1715
8c1c099f
JB
17162008-10-07 Joel Brobecker <brobecker@adacore.com>
1717
1718 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1719 of arguments that are references.
1720
8a498d38
DE
17212008-10-06 Doug Evans <dje@google.com>
1722
d97bc12b
DE
1723 * dwarf2read.c (dwarf2_die_debug): New static global.
1724 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1725 Print to specified file, indented by the specified amount.
1726 (dump_die_for_error): New fn. Point all existing callers of
1727 dump_die here.
1728 (dump_die_die_1,dump_die): New fns, replaces ...
1729 (dump_die_list): ... deleted.
1730 (read_die_and_children_1): Old contents of read_die_and_children
1731 moved here.
1732 (read_die_and_children): Rewrite.
1733 (read_die_and_siblings): Call read_die_and_children_1 instead of
1734 read_die_and_children.
1735 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1736 * gdbinit.in (pdie): New macro.
1737
45452591
DE
1738 * dwarf2read.c (offset_in_cu_p): New function.
1739 (find_partial_die,follow_die_ref): Use it.
1740
8a498d38
DE
1741 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1742 (maintenance_info_psymtabs): Ditto.
1743
360551e4 17442008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
1745
1746 * infrun.c (handle_inferior_event): Fix typo in comment.
1747
c1828f25
VP
17482008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1749
1750 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1751
5ef73790
PP
17522008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1753
1754 PR gdb/2384:
1755 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1756 different lifetimes.
1757
352efb28 17582008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
1759
1760 * solib-osf.c: Include "solib.h".
1761
d1a41061
PP
17622008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1763
1764 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1765 and check for out-of-memory condition.
1766 * exec.c (exec_file_command): Call it.
1767 * infrun.c (handle_command, xdb_handle_command): Likewise.
1768 * interps.c (interpreter_exec_cmd): Likewise.
1769 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1770 * procfs.c (info_proc_cmd): Likewise.
1771 * remote-mips.c (common_open): Likewise.
1772 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1773 (gdbsim_open): Likewise.
1774 * remote.c (extended_remote_run, remote_put_command)
1775 (remote_get_command, remote_delete_command): Likewise.
1776 * ser-mingw.c (pipe_windows_open): Likesise.
1777 * source.c (add_path, show_substitute_path_command)
1778 (unset_substitute_path_command, set_substitute_path_command):
1779 Likewise.
1780 * stack.c (backtrace_command): Likewise.
1781 * symfile.c (symbol_file_command, generic_load)
1782 (add_symbol_file_command): Likesise.
1783 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1784 (maintenance_print_msymbols): Likewise.
1785
d78df370
JK
17862008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1787
1788 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1789 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1790 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1791 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1792 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1793 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1794 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1795 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1796 (f77_get_upperbound): ... this function handling now only
1797 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1798 (f77_get_dynamic_lowerbound): Replace with ...
1799 (f77_get_lowerbound): ... this function handling now only
1800 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1801 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1802 Update their callers.
1803 * eval.c (evaluate_subexp_standard): Update their callers.
1804 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1805 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1806 prototypes.
1807 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1808 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1809 the lower_bound_was_default variable. Update the
1810 f77_get_dynamic_upperbound, f77_get_upperbound and
1811 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1812 * gdbtypes.c (print_bound_type): Remove the function.
1813 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1814 LOWER_BOUND_TYPE.
1815 * gdbtypes.h (enum array_bound_type): Remove.
1816 (struct main_type): Remove the fields upper_bound_type and
1817 lower_bound_type. Comment the new overload of the field artificial.
1818 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1819 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1820 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1821 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1822
40debb5a
TT
18232008-10-02 Tom Tromey <tromey@redhat.com>
1824
1825 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1826
db5f024e
DJ
18272008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1828
1829 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1830 comments.
1831 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1832 (mips_linux_init_abi): Do not override skip_trampoline_code.
1833 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1834 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1835 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1836 (mips_skip_mips16_trampoline_code): Rename from
1837 mips_skip_trampoline_code.
1838 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1839 * infrun.c (handle_inferior_event): Do not pass zero to
1840 in_solib_dynsym_resolve_code.
1841
9f9d052e
PM
18422008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1843 Pedro Alves <pedro@codesourcery.com>
1844
1845 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1846
1847
bd2e94ce
TT
18482008-10-01 Tom Tromey <tromey@redhat.com>
1849
1850 * symtab.c (search_symbols): Update.
1851 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1852
8b41ec65
TT
18532008-10-01 Tom Tromey <tromey@redhat.com>
1854
1855 * symfile.c (syms_from_objfile): Update.
1856 (reread_symbols): Update.
1857 * objfiles.h (OBJF_SYMS): Remove.
1858 (OBJF_REORDERED): Renumber.
1859 (OBJF_SHARED): Likewise.
1860 (OBJF_READNOW): Likewise.
1861 (OBJF_USERLOADED): Likewise.
1862
712f90be
TT
18632008-10-01 Tom Tromey <tromey@redhat.com>
1864
1865 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1866 (find_pc_sect_symtab): Likewise.
1867 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1868 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1869 MSYMBOL_TYPE, not SYMBOL_TYPE.
1870 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1871 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1872 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1873 MSYMBOL_TYPE.
1874 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1875
b887350f
TT
18762008-10-01 Tom Tromey <tromey@redhat.com>
1877
1878 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1879 (scan_xcoff_symtab): Update.
1880 * mdebugread.c (record_minimal_symbol): Update.
1881 (parse_partial_symbols): Update.
1882 * elfread.c (record_minimal_symbol): Update.
1883 * dbxread.c (record_minimal_symbol): Update.
1884 * coffread.c (record_minimal_symbol): Update.
1885 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1886 (sh64_elf_make_msymbol_special): Update.
1887 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1888 MSYMBOL_TARGET_FLAG_1.
1889 (mips_elf_make_msymbol_special): Likewise.
1890 (msymbol_is_special): Likewise.
1891 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1892 (install_minimal_symbols): Likewise.
1893 (prim_record_minimal_symbol): Update.
1894 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1895 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1896 (MSYMBOL_SET_RTI): Redefine.
1897 (MSYMBOL_IS_RTC): Redefine.
1898 (MSYMBOL_IS_RTI): Redefine.
1899 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1900 (MSYMBOL_IS_SPECIAL): Redefine.
1901 * symtab.h (struct minimal_symbol) <info>: Remove.
1902 <target_flag_1, target_flag_2>: New fields.
1903 (MSYMBOL_INFO): Remove.
1904 (MSYMBOL_TARGET_FLAG_1): New macro.
1905 (MSYMBOL_TARGET_FLAG_2): Likewise.
1906 (prim_record_minimal_symbol_and_info): Update.
1907
d35e5795
JB
19082008-09-30 Joel Brobecker <brobecker@adacore.com>
1909
1910 * ada-lang.c (is_digits_suffix): Delete unused function.
1911
d37209fd
JB
19122008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1913
1914 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1915 moduli >= 2**31.
1916
19172008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
1918
1919 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1920 variant branch.
1921 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1922 supposed to be null. Fixes debugger segfaults.
1923 (is_unchecked_variant): New function.
1924 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1925 untouched.
1926 (ada_template_to_fixed_record_type_1): Fix comment.
1927
3d0b0fa3
JB
19282008-09-30 Joel Brobecker <brobecker@adacore.com>
1929
1930 * ada-lang.c (standard_exc): New static constant.
1931 (ada_exception_catchpoint_cond_string): Add special handling
1932 for the predefined exceptions.
1933
cdc7bb92
JB
19342008-09-30 Joel Brobecker <brobecker@adacore.com>
1935
1936 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1937 the code accordingly.
1938
6b0d7253
JB
19392008-09-30 Joel Brobecker <brobecker@adacore.com>
1940
1941 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1942 treatment of expect_type. Return the correct type when dereferencing
1943 an integer.
1944
9a044a89
TT
19452008-09-30 Tom Tromey <tromey@redhat.com>
1946
1947 PR gdb/2484:
1948 * symtab.c (struct add_macro_name_data): New struct.
1949 (add_macro_name): New function.
1950 (default_make_symbol_completion_list): Complete macro names.
1951 * scm-lang.c (scm_language_defn): Update.
1952 * p-lang.c (pascal_language_defn): Update.
1953 * objc-lang.c (objc_language_defn): Update.
1954 * macrotab.h (macro_callback_fn): Add user_data argument.
1955 (macro_for_each): Likewise.
1956 (macro_for_each_in_scope): Declare.
1957 * macrotab.c: (struct macro_for_each_data): New struct.
1958 (foreach_macro): Use it.
1959 (macro_for_each): Likewise.
1960 (foreach_macro_in_scope): New function.
1961 (macro_for_each_in_scope): Likewise.
1962 * macrocmd.c (print_one_macro): Add argument.
1963 (macro_list_command): Pass NULL to macro_for_each.
1964 * m2-lang.c (m2_language_defn): Update.
1965 * language.h (struct language_defn) <la_macro_expansion>: New
1966 field.
1967 (macro_expansion): New enum.
1968 * language.c (unknown_language_defn): Update. Fix order of
1969 initializers.
1970 (auto_language_defn): Likewise.
1971 (local_language_defn): Update.
1972 * jv-lang.c (java_language_defn): Update.
1973 * f-lang.c (f_language_defn): Update.
1974 * c-lang.c (c_language_defn): Update.
1975 (cplus_language_defn): Likewise.
1976 (asm_language_defn): Likewise.
1977 (minimal_language_defn): Likewise.
1978 * ada-lang.c (ada_language_defn): Update.
1979
b084d499
JB
19802008-09-30 Joel Brobecker <brobecker@adacore.com>
1981
1982 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1983 (get_scope_pc_bounds): Use it.
1984
2fae03e8
TT
19852008-09-27 Tom Tromey <tromey@redhat.com>
1986
1987 * NEWS: Update.
1988 * macrocmd.c (extract_identifier): Add is_parameter argument.
1989 (macro_define_command): Update.
1990 (macro_undef_command): Likewise.
1991 * macroexp.c (stringify): New function.
1992 (find_parameter): Likewise.
1993 (gather_arguments): Add nargs argument. Handle varargs.
1994 (substitute_args): Add is_varargs and va_arg_name arguments.
1995 Handle varargs, splicing, stringification. Use find_parameter.
1996 (expand): Handle varargs.
1997
5c6ce71d
TT
19982008-09-27 Tom Tromey <tromey@redhat.com>
1999
2000 * scm-lang.c (scm_language_defn): Update.
2001 * p-typeprint.c (pascal_print_typedef): New function.
2002 * p-lang.h: (pascal_print_typedef): Declare.
2003 * p-lang.c (pascal_language_defn): Update.
2004 * objc-lang.c (objc_language_defn): Update.
2005 * m2-typeprint.c (m2_print_typedef): New function.
2006 * m2-lang.h (m2_print_typedef): Declare.
2007 * m2-lang.c (m2_language_defn): Update.
2008 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
2009 Remove.
2010 (struct language_defn) <la_print_typedef>: New field.
2011 (default_print_typedef): Declare.
2012 (LA_PRINT_TYPEDEF): New define.
2013 * language.c (unknown_language_defn): Update.
2014 (auto_language_defn): Update.
2015 (local_language_defn): Update.
2016 * jv-lang.c (java_language_defn): Update.
2017 * f-lang.c (f_language_defn): Update.
2018 * c-typeprint.c (c_print_typedef): New function.
2019 * c-lang.h (c_print_typedef): Declare.
2020 * c-lang.c (c_language_defn): Update.
2021 (cplus_language_defn): Update.
2022 (asm_language_defn): Update.
2023 (minimal_language_defn): Update.
2024 * ada-lang.c (ada_language_defn): Update.
2025 * typeprint.c (default_print_typedef): New function.
2026
09be204e
TT
20272008-09-27 Tom Tromey <tromey@redhat.com>
2028
2029 * jv-exp.y (insert_exp): Define using ISO syntax.
2030 (copy_exp): Likewise.
2031 (push_expression_name): Likewise.
2032 (push_fieldnames): Likewise.
2033 (java_type_from_name): Likewise.
2034 (yyerror): Likewise.
2035 (yylex): Likewise.
2036 (parse_number): Likewise.
2037
3cd9d164
JB
20382008-09-26 Joel Brobecker <brobecker@adacore.com>
2039
2040 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
2041
e3168615
JB
20422008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
2043
2044 * stack.c (print_frame_args): Fix typos in comments.
2045
8b8655b3
TJB
20462008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
2047
2048 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
2049
6fbd21a1
VP
20502008-09-24 Vladimir Prus <vladimir@codesourcery.com>
2051
2052 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
2053
45ef8ce0
AS
20542008-09-24 Andreas Schwab <schwab@suse.de>
2055
2056 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 2057 account. Avoid excessive function calls.
45ef8ce0 2058
9cbfa09e
DE
20592008-09-23 Doug Evans <dje@google.com>
2060
07128da0
DE
2061 * dcache.c (state_chars): New static global.
2062 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
2063 All uses updated.
2064 (dcache_info): Print cache state as mnemonically useful letters instead
2065 of magic numbers.
2066
9cbfa09e
DE
2067 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
2068
d4c0a7a0
TT
20692008-09-22 Tom Tromey <tromey@redhat.com>
2070
2071 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
2072 printf_filtered.
2073
6ca15a4b
PA
20742008-09-22 Pedro Alves <pedro@codesourcery.com>
2075
2076 * infrun.c (follow_exec): Don't do a generic mourn. Instead
2077 inline the required bits.
2078 * breakpoint.h (enum inf_context): Add inf_execd.
2079
795e548f
PA
20802008-09-22 Pedro Alves <pedro@codesourcery.com>
2081
2082 * infrun.c (handle_inferior_event): In the follow exec case,
2083 context-switch before doing anything else.
2084
54a012c9
PA
20852008-09-22 Pedro Alves <pedro@codesourcery.com>
2086
2087 * top.c (any_thread_of, kill_or_detach): New functions.
2088 (quit_target): Iterate over all inferiors, killing or detaching
2089 accordingly.
2090
181e7f93
PA
20912008-09-22 Pedro Alves <pedro@codesourcery.com>
2092
2093 Remove the attach_flag global, and make it per-inferior.
2094
2095 * inferior.h (attach_flag): Delete.
2096 (inferior_process): Declare.
2097 * solib.c (update_solib_list): Adjust.
2098 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
2099 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2100 (inf_ptrace_files_info): Get it from the current inferior.
2101 * inf-ttrace.c (inf_ttrace_attach): Adjust.
2102 (inf_ttrace_files_info): Get it from the current
2103 inferior.
2104 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
2105 (clear_sigint_trap): Get it from the current process.
2106 * remote.c (extended_remote_attach_1)
2107 (extended_remote_create_inferior_1): Adjust.
2108 * top.c (quit_confirm, quit_target): Get it from the current inferior.
2109 * procfs.c (do_detach): Adjust.
2110 (procfs_wait): Get it from the event inferior.
2111 (procfs_files_info): Get it from the current inferior.
2112 * nto-procfs.c (procfs_files_info): Likewise.
2113 (procfs_attach): Adjust. Set the attach_flag here.
2114 (do_attach): Don't set it here.
2115 (procfs_detach): Don't clear it.
2116 (procfs_mourn_inferior): Don't clear it.
2117 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2118 * target.c (attach_flag): Delete.
2119 (generic_mourn_inferior): Don't clear it.
2120 * win32-nat.c (get_win32_debug_event): Get it from the event
2121 process.
2122 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
2123 in the inferior accordingly.
2124 (win32_attach): Don't set the attach_flag here. Pass 1 to
2125 do_intial_win32_stuff.
2126 (win32_files_info): Get it from the current inferior.
2127 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
2128 do_intial_win32_stuff.
2129
d6b48e9c
PA
21302008-09-22 Pedro Alves <pedro@codesourcery.com>
2131
2132 Make the stop_soon global be per-inferior instead.
2133
2134 * infcmd.c (attach_command_post_wait): Adjust.
2135 (attach_command): Likewise.
2136
2137 * inferior.h (stop_soon): Delete.
2138 (struct inferior): Add stop_soon member.
2139
2140 * infrun.c (stop_soon): Delete.
2141 (clear_proceed_status, start_remote)
2142 (fetch_inferior_event, handle_inferior_event): Adjust.
2143 (signal_stop_state): Don't check stop_soon here. Check in callers
2144 instead.
2145 (save_inferior_status, restore_inferior_status): Adjust.
2146
2147 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
2148 signals to common code if starting up the inferior.
2149
2150 * inferior.h (struct inferior_info): Added stop_soon member.
2151 * inferior.c (add_inferior) Clear stop_soon.
2152
2153 * mips-tdep.c (heuristic_proc_start): Adjust.
2154 * nto-procfs.c (procfs_create_inferior): Adjust.
2155 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2156 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2157 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2158 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2159
2160 * win32-nat.c (do_initial_win32_stuff): Adjust.
2161
2162 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
2163
82f73884
PA
21642008-09-22 Pedro Alves <pedro@codesourcery.com>
2165
2166 Implement remote multi-process extensions.
2167
2168 * remote.c (struct remote_state): Add extended and
2169 multi_process_aware fields.
2170 (remote_multi_process_p): New.
2171 (PACKET_vKill): New.
2172 (record_currthread): Use thread_change_ptid. Notice new
2173 inferiors.
2174 (set_thread, remote_thread_alive): Use write_ptid.
2175 (write_ptid, read_ptid): New.
2176 (remote_current_thread, remote_threads_extra_info): Use them.
2177 (remote_threads_info): Likewise. Detect new inferiors.
2178 (remote_start_remote): Add inferior to inferior list.
2179 (remote_multi_process_feature): New.
2180 (remote_protocol_features): Add "multiprocess" feature.
2181 (remote_query_supported): Pass "multiprocess+" as supported
2182 features.
2183 (remote_open_1): Clear multi_process_aware. Set extended
2184 accordingly.
2185 (remote_detach_1): Detach current process. Use extended packet
2186 format for extended-remote multi-process. Detach process from the
2187 inferior list. Only mourn after printing output.
2188 (extended_remote_attach_1): Add process to the inferior list.
2189 (remote_vcont_resume): Use write_ptid to pass the thread ids.
2190 (remote_wait): Use read_ptid. Implement the extended
2191 multi-process extension format of the 'W' and 'X' reply packets.
2192 Remove exited inferiors from inferior list.
2193 (remote_xfer_memory): Set general thread.
2194 (remote_vkill): New.
2195 (extended_remote_kill): New.
2196 (remote_mourn_1): Discard all inferiors.
2197 (select_new_thread_callback): New.
2198 (extended_remote_mourn_1): If there are more processes to debug,
2199 switch to a thread in another process, and don't pop the target.
2200 (extended_remote_create_inferior_1): Add the new process to the
2201 inferior list.
2202 (remote_stopped_by_watchpoint): Indenting.
2203 (remote_xfer_partial): Set the general thread.
2204 (remote_pid_to_str): If the remote is multi-process aware, print
2205 the process id as well as the thread id.
2206 (remote_get_thread_local_address): Use write_ptid.
2207 (init_extended_remote_ops): Register extended_remote_kill.
2208 (_initialize_remote): Register new packets. Change
2209 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
2210 member to 42000.
2211
2212 * thread.c (thread_change_ptid): Also account for the inferior pid
2213 changing.
2214
2215 * inferior.h (discard_all_inferiors): Declare.
2216 * inferior.c (discard_all_inferiors): New.
2217
7f9f62ba
PA
22182008-09-22 Pedro Alves <pedro@codesourcery.com>
2219
2220 * gnu-nat.c (gnu_attach): Add process to inferiors table.
2221 (gnu_detach): Remove it.
2222 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
2223 table.
2224 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
2225 to inferior table accordingly.
2226 (inf_ptrace_attach): Add new process to inferior table.
2227 (inf_ptrace_detach): Remove it.
2228 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
2229 to inferior table accordingly.
2230 (inf_ttrace_attach): Add process to inferior table.
2231 (inf_ttrace_detach): Remove it.
2232 * linux-fork.c (init_fork_list): Delete any left over inferior.
2233 (linux_fork_mourn_inferior, detach_fork_command): Also delete
2234 processes from inferior list.
2235 * monitor.c (monitor_open): Add process to inferior list.
2236 (monitor_close): Remove it.
2237 * nto-procfs.c (procfs_attach): Add process to inferior list.
2238 Find threads after pushing the target.
2239 (procfs_detach): Remove process from inferior list.
2240 (procfs_create_inferior): Add process to inferior list.
2241 * procfs.c (procfs_detach): Remove process from inferior list.
2242 (do_attach): Add process to inferior list.
2243 * remote-sim.c (sim_create_inferior): Add process to inferior list.
2244 (gdbsim_close): Remove it.
2245 * target.c (generic_mourn_inferior): If inferior_ptid is not
2246 null_ptid, remove the corresponding inferior from inferior list.
2247 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
2248 (win32_detach): Remove it.
2249 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
2250 to inferior list accordingly.
2251 * fork-child.c (fork_inferior): Add process to inferior list.
2252 * corelow.c (CORELOW_PID): Define.
2253 (core_close): Remove core from inferior list.
2254 (core_open): Add it.
2255
b77209e0
PA
22562008-09-22 Pedro Alves <pedro@codesourcery.com>
2257
2258 * inferior.h: Forward declare struct ui_out.
2259 Forward declare struct private_inferior.
2260 (struct inferior): New.
2261 (init_inferior_list, add_inferior, add_inferior_silent)
2262 (delete_inferior, delete_inferior_silent, detach_inferior)
2263 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2264 (valid_inferior_id, find_inferior_pid): New functions.
2265 (inferior_callback_func): New typedef.
2266 (iterate_over_inferiors, print_inferior, have_inferiors)
2267 (current_inferior): New functions.
2268 * inferior.c: New file.
2269
2270 * Makefile.in (SFILES): Add inferior.c.
2271 (COMMON_OBS): Add inferior.o.
2272
d8c3d48d
JL
22732008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
2274
2275 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
2276 instead of determining symbol and line info directly.
2277 * MAINTAINERS: Update my email address.
2278
d54be744
DJ
22792008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
2280
2281 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
2282 at the same address as a prologue marker. Do not skip an entire
2283 function.
2284
26fae1d6
AS
22852008-09-22 Andrew Stubbs <ams@codesourcery.com>
2286
2287 * frame.c (get_frame_register_bytes): Comment improvments.
2288
1ad15515
PA
22892008-09-22 Pedro Alves <pedro@codesourcery.com>
2290
2291 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
2292 all-stop mode.
2293
14fc49fb
AS
22942008-09-19 Andrew Stubbs <ams@codesourcery.com>
2295
2296 * MAINTAINERS: Update my email address.
2297
3f27f2a4
AS
22982008-09-19 Andrew Stubbs <ams@codesourcery.com>
2299
2300 * frame.c (get_frame_register_bytes): Detect bad debug info.
2301
88ed393a
JK
23022008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
2305 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
2306 initialization ...
2307 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
2308 ...
2309 (handle_inferior_event): ... here after the add_thread call together
2310 with the local adjust_pc_after_break and reinit_frame_cache calls.
2311
d832cb68
DD
23122008-09-16 David Daney <ddaney@avtrex.com>
2313
2314 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
2315 all hardware bpstats.
2316
b1e40a6f
JB
23172008-09-16 Joel Brobecker <brobecker@adacore.com>
2318
2319 * gstdint.h: Delete.
2320
50a834af
MK
23212008-09-15 Mark Kettenis <kettenis@gnu.org>
2322
2323 * infcall.c (generic_push_dummy_code): Remove.
2324 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2325
9d25dd43
DE
23262008-09-15 Doug Evans <dje@google.com>
2327
2328 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2329 (struct attribute): Ditto.
2330
85c83e99
DA
23312008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2332
326e541f
DA
2333 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2334 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2335
85c83e99
DA
2336 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2337 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2338 Correct arguments and improve comments.
2339 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2340 disabled code.
2341 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2342 point DBX register, change error to warning, and improve comments.
2343
76815b17
DE
23442008-09-14 Doug Evans <dje@google.com>
2345
2346 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2347
51e753cf
DA
23482008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2349
2350 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2351
06e476f5
JB
23522008-09-13 Joel Brobecker <brobecker@adacore.com>
2353
2354 * defs.h (GCC_GENERATED_STDINT_H): Define.
2355
6c761d9c
TT
23562008-09-13 Tom Tromey <tromey@redhat.com>
2357
2358 * varobj.c (varobj_set_display_format): Use xfree.
2359 * tracepoint.c (stringify_collection_list): Use xfree.
2360 * remote-fileio.c (remote_fileio_reset): Use xfree.
2361 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2362 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2363 asprintf.
2364 * cp-support.c (mangled_name_to_comp): Use xfree.
2365
339c13b6
JB
23662008-09-13 Joel Brobecker <brobecker@adacore.com>
2367
2368 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2369 the associated complete symbol is also in the list.
2370 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2371 extracted out from ada_lookup_symbol_list.
2372 (ada_lookup_symbol_list): Use them. Remove the search through
2373 the minimal symbols.
2374
bc30ff58
JB
23752008-09-13 Joel Brobecker <brobecker@adacore.com>
2376
2377 * dwarf2read.c (add_partial_subprogram): New procedure.
2378 (scan_partial_symbols): Use it.
2379 (load_partial_dies): Read in children of subprogram and lexical
2380 blocks for Ada compilation units.
2381
bb01da77
TT
23822008-09-13 Tom Tromey <tromey@redhat.com>
2383
2384 * symfile.c (build_id_verify): Free 'found'.
2385 (find_separate_debug_file): Use xfree, not free.
2386
d00adf39
DE
23872008-09-12 Doug Evans <dje@google.com>
2388
00630ca8
DE
2389 * corefile.c (write_memory): Remove unnecessary copying.
2390
5d6fa950
DE
2391 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2392 order of _initialize_* fns.
2393
d00adf39
DE
2394 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2395 first_die_offset. All uses updated.
2396 Delete unused members cu_head_ptr, next.
2397 Move members base_known, base_address to ...
2398 (dwarf2_cu) ... here. All uses updated.
2399
3d0bb823
PA
24002008-09-12 Pedro Alves <pedro@codesourcery.com>
2401
2402 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2403 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2404
3c35e65b
UW
24052008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2406
2407 * fork-child.c (startup_inferior): Use target_wait and target_resume
2408 directly instead of calling wait_for_inferior / resume.
2409
2410 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2411 or init_wait_for_inferior.
2412 (run_command_1): Call init_wait_for_inferior.
2413
4cca3ac9
UW
24142008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2415
2416 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2417 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2418 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2419 builtin_type_unsigned_char, builtin_type_unsigned_short,
2420 builtin_type_unsigned_int, builtin_type_unsigned_long,
2421 builtin_type_float, builtin_type_double, builtin_type_long_double,
2422 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2423 builtin_type_bool, builtin_type_long_long,
2424 builtin_type_unsigned_long_long): Remove macros.
2425
2426 (builtin_type_f_character, builtin_type_f_integer,
2427 builtin_type_f_integer_s2, builtin_type_f_logical,
2428 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2429 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2430 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2431 builtin_type_f_complex_s32): Likewise.
2432
2433 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2434 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2435
2436 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2437 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2438
2439 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2440 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2441
b6da22b0
UW
24422008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2443
2444 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2445 target_gdbarch instead of builtin_type_void_data_ptr.
2446 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2447 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2448 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2449 open_symbol_file_object): Likewise.
2450 * nto-tdep.c (LM_ADDR): Likewise.
2451
ff7da468
UW
24522008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2453
2454 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2455 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2456 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2457
4e906f53
UW
24582008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2459
2460 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2461 and its associated types to perform pointer conversion.
2462 (procfs_can_use_hw_breakpoint): Likewise.
2463 (procfs_auxv_parse): Remove unused variable.
2464
ffe5a37e
UW
24652008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2466
2467 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2468 instead of builtin_type_void_data_ptr.
2469 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2470
b806fb9a
UW
24712008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2472
2473 * expprint.c (print_subexp_standard): Compare against builtin type
2474 associated with exp->gdbarch instead of builtin_type_char.
2475
2476 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2477 extract values of arbitrary logical type. Handle arbitrary
2478 complex types.
2479
2480 * printcmd.c (float_type_from_length): New function.
2481 (print_scalar_formatted, printf_command): Use it.
2482
3e3b026f
UW
24832008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2484
2485 * valops.c: Include "objfiles.h" and "symtab.h".
2486 (find_function_in_inferior): New argument OBJF_P. Use it to return
2487 objfile where function is defined. Use per-objfile arch types
2488 instead of builtin_type_ to define default return type.
2489
2490 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2491 architecture to define inferior call argument types.
2492 * gcore.c (derive_heap_segment): Likewise.
2493 * objc-lang.c (value_nsstring): Likewise.
2494 * scm-lang.c (scm_lookup_name): Likewise.
2495 * scm-valprint.c (scm_inferior_print): Likewise.
2496 * valops.c (value_allocate_space_in_inferior): Likewise.
2497
2498 * eval.c (evaluate_subexp_standard): Update calls.
2499 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2500
2501 * linux-fork.c: Include "objfiles.h".
2502 * scm-lang.c: Include "objfiles.h".
2503 * scm-valprint.c: Include "objfiles.h".
2504
f8dcfc0a
UW
25052008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2506
2507 * gdbarch.sh (name_of_malloc): Remove.
2508 * gdbarch.c, gdbarch.h: Re-generate.
2509 * valops.c (value_allocate_space_in_inferior): Do not call
2510 gdbarch_name_of_malloc.
2511
c56324e0
UW
25122008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2513
2514 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2515 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2516 (value_bit_index): Use extract_unsigned_integer
2517 instead of unpack_long to read single byte.
2518
7788af6d
UW
25192008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2520
2521 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2522 associates types instead of builtin_type_ macros.
2523 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2524 (call_function_by_hand): Use per-architecture "int" type as
2525 fall-back if find_function_addr returns NULL VALUE_TYPE.
2526 Update call to value_arg_coerce.
2527
ad4820ab
UW
25282008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2529
2530 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2531 (cplus_make_method_ptr): Add TYPE parameter.
2532 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2533 on to current_cp_abi.method_ptr_size callback.
2534 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2535 current_cp_abi.make_method_ptr callback.
2536
2537 * gdbtypes.c (lookup_methodptr_type): Pass target type
2538 argument to cplus_method_ptr_size.
2539 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2540 (value_struct_elt_for_reference): Likewise.
2541
2542 * gnu-v3-abi.c (get_class_arch): New function.
2543 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2544 instead of current_gdbarch. Update all callers.
2545 (gnuv3_get_vtable): Likewise.
2546 (gnuv3_get_virtual_fn): Likewise.
2547 (gnuv3_decode_method_ptr): Likewise.
2548 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2549 Use it instead of current_gdbarch.
2550 (gnuv3_virtual_fn_field): Likewise.
2551 (gnuv3_baseclass_offset): Likewise.
2552 (gnuv3_print_method_ptr): Likewise.
2553 (gnuv3_method_ptr_to_value): Likewise.
2554 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2555 class architecture. Use architecture types instead of builtin types.
2556 (gnuv3_make_method_ptr): Likewise.
2557
2558 * cp-valprint.c (cp_print_class_member): Expect pointer type
2559 instead of class type. Use its length when extracting value.
2560 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2561
5ed92fa8
UW
25622008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2563
2564 * stack.c (return_command): Use frame architecture to determine
2565 default integer return type.
2566
2567 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2568 to determine pointer types.
2569 (f77_get_dynamic_upperbound): Likewise.
2570
2571 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2572 (resolve_msgsend): Use architecture of current frame to determine
2573 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2574 (resolve_msgsend_stret, resolve_msgsend_super,
2575 resolve_msgsend_super_stret): Likewise.
2576
0dfff4cb
UW
25772008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2578
2579 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2580 instead of builtin_type_ macros.
2581 * amd64-tdep.c (amd64_register_type): Likewise.
2582 (amd64_get_longjmp_target): Likewise.
2583 * arm-tdep.c (arm_register_type): Likewise.
2584 * avr-tdep.c (avr_register_type): Likewise.
2585 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2586 * frv-tdep.c (frv_register_type): Likewise.
2587 * h8300-tdep.c (h8300_register_type): Likewise.
2588 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2589 hppa_skip_trampoline_code): Likewise.
2590 * i386-tdep.c (i386_register_type): Likewise.
2591 (i386_unwind_pc, i386_sse_type): Likewise.
2592 * ia64-tdep.c (ia64_register_type): Likewise.
2593 * m32r-tdep.c (m32r_register_type): Likewise.
2594 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2595 * m88k-tdep.c (m88k_register_type): Likewise.
2596 * mep-tdep.c (mep_register_type): Likewise.
2597 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2598 * mn10300-tdep.c (mn10300_register_type): Likewise.
2599 * mt-tdep.c (mt_copro_register_type): Likewise.
2600 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2601 (rs6000_convert_register_p, rs6000_register_to_value,
2602 rs6000_value_to_register): Likewise.
2603 * s390-tdep.c (s390_register_type): Likewise.
2604 * sh64-tdep.c (sh64_register_type): Likewise.
2605 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2606 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2607 sh_sh4_build_float_register_type, sh_sh4_register_type,
2608 sh_default_register_type): Likewise.
2609 * sparc64-tdep.c (sparc64_register_type): Likewise.
2610 * sparc-tdep.c (sparc32_register_type): Likewise.
2611 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2612 * v850-tdep.c (v850_register_type): Likewise.
2613 * vax-tdep.c (vax_register_type): Likewise.
2614 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2615 xtensa_push_dummy_call): Likewise.
2616
2617 * std-regs.c (value_of_builtin_frame_fp_reg,
2618 value_of_builtin_frame_pc_reg): Likewise.
2619 * target-descriptions.c (tdesc_register_type): Likewise.
2620
6d84d3d8
UW
26212008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2622
2623 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2624 instead of builtin_type_int as default unspecified integral type.
2625 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2626 assign_component, to_fixed_range_type): Likewise.
2627 * ada-typeprint.c (print_range, print_range_bound,
2628 print_range_type_named): Likewise.
2629 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2630 * eval.c (evaluate_subexp_standard): Likewise.
2631 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2632 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2633 build_gdb_vtable_type): Likewise.
2634 * jv-lang.c (java_array_type): Likewise.
2635 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2636 * m2-valprint.c (m2_print_long_set): Likewise.
2637 * parse.c (follow_types): Likewise.
2638 * p-typeprint.c (pascal_type_print_base): Likewise.
2639 * valops.c (value_one, value_array, value_string,
2640 value_bitstring): Likewise.
2641 * value.c (allocate_repeat_value, value_from_string): Likewise.
2642 * varobj.c (c_describe_child): Likewise.
2643 * mt-tdep.c (mt_register_type): Likewise.
2644 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2645 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2646
180b9a0e
UW
26472008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2648
2649 * defs.h (struct gdbarch): Add forward declaration.
2650 (set_next_address): Add GDBARCH argument.
2651 * printcmd.c (set_next_address): Use it to find pointer type.
2652 * breakpoint.c (breakpoint_1): Update call.
2653 * source.c (line_info): Likewise.
2654 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2655
2656 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2657 types for internal variable values.
2658 * infrun.c (handle_inferior_event): Likewise.
2659 * source.c (forward_search_command, reverse_search_command): Likewise.
2660 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2661 set_tracepoint_num, set_traceframe_context): Likewise.
2662
b769d911
UW
26632008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2664
2665 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2666 and builtin_true_unsigned_char.
2667 (builtin_type_true_char): Remove macro, add extern declaration.
2668 (builtin_type_true_unsigned_char): Add extern declaration.
2669 * gdbtypes.c (builtin_type_true_char): New global variable.
2670 (builtin_type_true_unsigned_char): Likewise.
2671 (_initialize_gdbtypes): Initialize them.
2672 (gdbtypes_post_init): Do not initialize builtin_true_char
2673 and builtin_true_unsigned_char members of struct builtin_type.
2674
2675 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2676 use builtin_type_true_unsigned_char instead.
2677
2678 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2679 instead of builtin_type_char for internal string.
2680
fde6c819
UW
26812008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2682
2683 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2684 (builtin_type_f_void): Remove macro.
2685 * gdbtypes.c (builtin_type_void): New global variable.
2686 (_initialize_gdbtypes): Initialize it.
2687
2688 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2689 lookup_pointer_type or lookup_function_type on builtin_type_void.
2690 * printcmd.c (set_next_address): Likewise.
2691 * objc-lang.c (value_nsstring): Likewise.
2692 * mt-tdep.c (mt_copro_register_type): Likewise.
2693 * xtensa-tdep.c (xtensa_register_type): Likewise.
2694
2695 * symfile.c (syms_from_objfile): Remove special handling
2696 of builtin_type_void and builtin_type_char.
2697
d4dbb9c7
UW
26982008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2699
2700 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2701 of builtin_type_ macros when handling OP_OBJC_ operations.
2702 * objc-lang.c (print_object_command): Likewise.
2703
8ca1c40e
UW
27042008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2705
2706 * ada-valprint.c: Include "objfiles.h".
2707 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2708 a System.Address type is defined to retrieve the proper pointer type
2709 to use to print it.
2710
3cb382c9
UW
27112008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2712
2713 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2714 result type instead of builtin_type_int.
2715 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2716 (ada_value_subscript): Update call to value_pos_atr.
2717 (ada_value_ptr_subscript): Likewise.
2718 (ada_evaluate_subexp): Likewise.
2719
a53b7a21
UW
27202008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2721
2722 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2723 (cast_from_fixed_to_double): Rename to ...
2724 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2725 of builtin_type_double.
2726 (ada_value_cast): Use cast_from_fixed instead of casting result
2727 of cast_from_fixed_to_double.
2728 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2729
22fe0fbb
UW
27302008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2731
2732 * valops.c (value_ind): No longer allow dereferencing an
2733 integer type.
2734 * eval.c (evaluate_subexp_standard): Handle deferencing an
2735 integer type here.
2736 * ada-lang.c (ada_evaluate_subexp): Likewise.
2737
d8631d21
UW
27382008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2739
2740 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2741 a reference type, pass the reference type directly to unpack_pointer.
2742 * c-valprint.c (c_val_print): Likewise.
2743 * f-valprint.c (f_val_print): Likewise.
2744 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2745 * p-valprint.c (pascal_val_print): Likewise.
2746
cb18ec49
UW
27472008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2748
2749 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2750 to construct the EVAL_SKIP dummy return value.
2751 * ada-lang.c (ada_evaluate_subexp): Likewise.
2752 * jv-lang.c (evaluate_subexp_java): Likewise.
2753 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2754 * scm-lang.c (evaluate_exp): Likewise.
2755
0ab7ba45
UW
27562008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2757
2758 * value.h (coerce_enum, coerce_number): Remove prototypes.
2759 * value.c (coerce_enum, coerce_number): Remove.
2760 * valarith.c (value_x_binop): Do not call coerce_enum.
2761 (value_x_unop): Likewise.
2762 (value_logical_not): Call coerce_array instead of coerce_number.
2763
f7c79c41
UW
27642008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2765
2766 * ax-gdb.c: Include "language.h".
2767 (gen_frame_args_address): Add GDBARCH parameter; use it
2768 instead of current_gdbarch.
2769 (gen_frame_locals_address): Likewise.
2770 (gen_var_ref): Add GDBARCH parameter. Update calls to
2771 gen_frame_args_address and gen_frame_locals_address. Use
2772 pointer type from gdbarch.
2773 (gen_usual_unary): Add EXP parameter. Use integer type
2774 from exp->gdbarch.
2775 (gen_usual_arithmetic): Likewise.
2776 (gen_integral_promotions): Likewise.
2777 (gen_add, gen_sub): Remove.
2778 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2779 (gen_logical_not): Use passed-in boolean result type
2780 instead of builtin_type_int.
2781 (gen_complement): Do not call gen_usual_unary or
2782 gen_integral_promotions.
2783 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2784 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2785 Use builtin_type_int32 as internal range type.
2786 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2787 as result type. Update call to gen_expr.
2788 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2789 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2790 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2791 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2792 Use exp->gdbarch instead of current_gdbarch.
2793 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2794
f44316fa
UW
27952008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2796
2797 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2798 and unop_promote before calling value_binop et. al.
2799 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2800 and unop_promote before calling value_binop et. al.
2801
2802 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2803 (value_pos): Do not call unop_promote.
2804 (value_neg, value_complement): Likewise.
2805
4066e646
UW
28062008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2807
2808 * value.h (unop_promote, binop_promote): Add prototypes.
2809 * eval.c (unop_promote, binop_promote): New functions.
2810 * valarith.c (unop_result_type, binop_result_type): Remove.
2811 (value_binop): Call binop_promote or unop_promote.
2812 Inline remaining parts of binop_result_type. Remove special
2813 code to truncate integer values for unsigned operations.
2814 (value_pos): Call unop_promote. Inline remaining parts of
2815 unop_result_type.
2816 (value_neg, value_complement): Likewise.
2817
89eef114
UW
28182008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2819
2820 * value.h (value_add, value_sub): Remove.
2821 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2822 * valarith.c (value_add, value_sub): Remove.
2823 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2824 (find_size_for_pointer_math): Add assertion. Update comment.
2825 (value_binop): Update comment.
2826
2827 * eval.c (ptrmath_type_p): New function.
2828 (evaluate_subexp_standard): Replace value_add and value_sub
2829 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2830 Use builtin_type_uint8 instead of builtin_type_char to hold
2831 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2832 * valarith.c (value_subscript): Replace value_add by
2833 value_ptradd. Replace value_sub by value_binop.
2834 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2835 (ada_tag_name_2): Replace value_add by value_ptradd.
2836 (ada_evaluate_subexp): Replace value_add and value_sub by
2837 value_binop.
2838 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2839 by value_ptradd.
2840 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2841 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2842
98b90dd8
UW
28432008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2844
2845 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2846 the expression architecture instead of builtin_type_int as the
2847 sizeof return type.
2848
c806c55a
UW
28492008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2850
2851 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2852 a type parameter as expression element.
2853 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2854 type as expression element.
2855 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2856 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2857
fbb06eb1
UW
28582008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2859
2860 * language.h (struct language_arch_info): New members
2861 bool_type_default and bool_type_symbol.
2862 (lang_bool_type): Remove prototype.
2863 (LA_BOOL_TYPE): Remove macro.
2864 (language_bool_type): Add prototype.
2865 * language.c (lang_bool_type): Remove.
2866 (language_bool_type): New function.
2867
2868 * value.h (value_in): Change return value to int.
2869 * value.c (value_in): Return int instead of struct value *.
2870
2871 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2872 of using LA_BOOL_TYPE. Update call to value_in.
2873 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2874 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2875
2876 * language.c (unknown_language_arch_info): Set bool_type_default member
2877 of struct language_arch_info.
2878 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2879 bool_type_default members of struct language_arch_info.
2880 * c-lang.c (c_language_arch_info): Set bool_type_default member
2881 of struct language_arch_info.
2882 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2883 members of struct language_arch_info.
2884 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2885 bool_type_default members of struct language_arch_info.
2886 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2887 bool_type_default members of struct language_arch_info.
2888 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2889 bool_type_default members of struct language_arch_info.
2890 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2891 bool_type_default members of struct language_arch_info.
2892
de7b6b47
UW
28932008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2894
2895 * jv-lang.c (enum java_primitive_types): New type.
2896 (java_language_arch_info): New function.
2897 (java_language): Use it instead of c_language_arch_info.
2898
afc05acb
UW
28992008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2900
2901 * value.h (value_bitstring_subscript): New prototype.
2902 * valarith.h (value_bitstring_subscript): New function.
2903 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2904 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2905 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2906
3e79cecf
UW
29072008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2908
2909 * expression.h (struct expression): New member GDBARCH.
2910 * parse.c (parse_exp_in_context): Initialize it.
2911 * parser-def.h (parse_gdbarch, parse_language): New macros.
2912
2913 * ada-exp.y (parse_type): New macro.
2914 Replace builtin_type_ macros by using parse_type.
2915 Replace current_language by parse_language.
2916 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2917 Replace builtin_type_ macros.
2918
2919 * c-exp.y (parse_type): New macro.
2920 Replace builtin_type_ macros by using parse_type.
2921 (parse_number): Replace current_gdbarch by parse_gdbarch.
2922 (yylex): Replace current_language by parse_language.
2923
2924 * f-exp.y (parse_type, parse_f_type): New macros.
2925 Replace builtin_type_ macros by using parse_{f_,}type.
2926 (parse_number): Replace current_gdbarch by parse_gdbarch.
2927 (yylex): Replace current_language by parse_language.
2928
2929 * jv-exp.y (parse_type): New macro.
2930 (parse_number): Replace builtin_type_ macros by using parse_type.
2931
2932 * m2-exp.y (parse_type, parse_m2_type): New macros.
2933 Replace builtin_type_ macros by using parse_{m2_,}type.
2934
2935 * objc-exp.y (parse_type): New macro.
2936 Replace builtin_type_ macros by using parse_type.
2937 (parse_number): Replace current_gdbarch by parse_gdbarch.
2938 (yylex): Replace current_language by parse_language.
2939
2940 * p-exp.y (parse_type): New macro.
2941 Replace builtin_type_ macros by using parse_type.
2942 (parse_number): Replace current_gdbarch by parse_gdbarch.
2943 (yylex): Replace current_language by parse_language.
2944
c841afd5
UW
29452008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2946
2947 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2948 and DATA_SYMBOL_TYPE arguments.
2949 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2950 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2951 (write_dollar_variable): Update call.
2952
2953 * ada-exp.y (write_var_or_type): Update call.
2954 * c-exp.y: Likewise.
2955 * f-exp.y: Likewise.
2956 * jv-exp.y: Likewise.
2957 * m2-exp.y: Likewise.
2958 * objc-exp.y: Likewise.
2959 * p-exp.y: Likewise.
2960
0c1f74cf
JB
29612008-09-10 Joel Brobecker <brobecker@adacore.com>
2962
2963 * ada-lang.c (ada_parent_type): Add handling of the case where
2964 the _parent field is a pointer and/or has a parallel XVS type.
2965 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2966 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2967 the type of the tag instead of doing forcing an EVAL_NORMAL
2968 expression evaluation.
2969
5823c3ef
JB
29702008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2971 Joel Brobecker <brobecker@adacore.com>
2972
2973 * ada-lang.c (is_digits_suffix): New function.
2974 (is_dot_digits_suffix): Remove.
2975 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2976 before looking up in symbol table, and do not use wild matches on them.
2977 (wild_match): Reimplement for speed and to allow matching of operator
2978 symbols.
2979 (is_valid_name_for_wild_match): Return zero for names that do not
2980 follow the GNAT encoding.
2981
2982 (is_name_suffix): Fix typo in comment.
2983 (to_record_with_fixed_variant_part): Ditto.
2984
e5fa8013
PA
29852008-09-10 Pedro Alves <pedro@codesourcery.com>
2986
2987 * Makefile.in (gnu-nat.o): New rule.
2988
6d2e05aa
JB
29892008-09-10 Joel Brobecker <brobecker@adacore.com>
2990
2991 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2992 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2993
2ac8a782
JB
29942008-09-10 Joel Brobecker <brobecker@adacore.com>
2995
2996 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2997 Add special handling for pointer types.
2998
b861ac81
PA
29992008-09-10 Pedro Alves <pedro@codesourcery.com>
3000
3001 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
3002 right scope level.
3003 (inf_ttrace_resume, inf_ttrace_wait): Typos.
3004
030b4912
UW
30052008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3006
3007 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
3008 of builtin_type_int.
3009 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
3010 instead of builtin_type_int.
3011
d51fd4c8
PA
30122008-09-09 Pedro Alves <pedro@codesourcery.com>
3013
3014 * infrun.c (normal_stop): Run hook-stop last.
3015
11cb6f65
PA
30162008-09-09 Pedro Alves <pedro@codesourcery.com>
3017
3018 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
3019 (init_gnu_ops): Don't register it.
3020
a9ab7422
PA
30212008-09-09 Pedro Alves <pedro@codesourcery.com>
3022
3023 * gnu-nat.c (gnu_attach): Push target before fetching the list of
3024 threads.
3025
694182d2
DJ
30262008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
3027
3028 * valops.c (value_cast_structs): Return NULL for failure.
3029 (value_cast): Handle NULL from value_cast_structs.
3030 (value_fetch_lazy): Call check_typedef. Remove unused variable.
3031
dcf4fbde
PA
30322008-09-08 Pedro Alves <pedro@codesourcery.com>
3033
3034 * inferior.h (context_switch_to): Delete.
3035 * infrun.c (context_switch): Don't save and load infrun state.
3036 (context_switch_to): Delete.
3037
3038 * infcmd.c (proceed_thread_callback): Replace context_switch_to
3039 calls by switch_to_thread calls.
3040
3041 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
3042 * thread.c (main_thread_state, main_thread_executing): Delete.
3043 (inferior_thread): Delete references to them.
3044 (add_thread_silent): Fix case where we're adding a thread with the
3045 same ptid as an exited thread. Remove references to
3046 context-switching.
3047 (load_infrun_state, save_infrun_state): Delete.
3048 (thread_alive, is_thread_state, any_running, is_executing)
3049 (set_executing): Remove the special handling for targets that
3050 don't register any thread.
3051 (restore_current_thread, thread_apply_all_command)
3052 (do_captured_thread_select): Unconditionally call
3053 switch_to_thread.
3054
3055 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
3056 Call switch_to_thread instead of context_switch_to.
3057
95e54da7
PA
30582008-09-08 Pedro Alves <pedro@codesourcery.com>
3059
3060 Remove global continuations in favour of a per-thread
3061 continuations.
3062
3063 * gdbthread.h (struct thread_info): Add comments around
3064 continuations and intermediate_continuations.
3065 (save_infrun_state, load_infrun_state): Delete continuations and
3066 intermediate_continuations arguments.
fedae5ff 3067 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
3068 * thread.c (clear_thread_inferior_resources): Discard all
3069 continuations of the thread we're clearing.
3070 (save_infrun_state, load_infrun_state): Delete continuations and
3071 intermediate_continuations arguments, and the code referencing
3072 them.
3073 * utils.c: Include "gdbthread.h".
3074 (cmd_continuation, intermediate_continuation): Delete.
3075 (add_continuation): Add thread_info* argument. Install the
3076 continuation on it.
3077 (restore_thread_cleanup): New.
3078 (do_all_continuations_ptid, do_all_continuations_thread_callback):
3079 New.
3080 (do_all_continuations): Reimplement.
3081 (discard_all_continuations_thread_callback,
3082 discard_all_continuations_thread): New.
3083 (discard_all_continuations): Reimplement.
3084 (add_intermediate_continuation): Add thread_info* argument.
3085 Install the continuation on it.
3086 (do_all_intermediate_continuations_thread_callback)
3087 (do_all_intermediate_continuations_thread): New.
3088 (do_all_intermediate_continuations): Reimplement.
3089 (discard_all_intermediate_continuations_thread_callback): New.
3090 (discard_all_intermediate_continuations_thread): New.
3091 (discard_all_intermediate_continuations): Reimplement.
3092
3093 * breakpoint.c (until_break_command): Install the continuation on
3094 the current thread.
3095
3096 * defs.h (cmd_continuation, intermediate_continuation): Delete.
3097 (struct thread_info): Forward declare.
3098 (add_continuation, add_intermediate_continuation): Add
3099 thread_info* argument.
3100 (do_all_continuations_thread, discard_all_continuations_thread)
3101 (do_all_intermediate_continuations_thread)
3102 (discard_all_intermediate_continuations_thread): Declare.
3103 * inf-loop.c (inferior_event_handler): In non-stop only run
3104 continuations on the thread that stopped. In all-stop, run
3105 continuations on all threads.
3106 * infcmd.c (step_once, finish_command): Adjust.
3107
414c69f7
PA
31082008-09-08 Pedro Alves <pedro@codesourcery.com>
3109
3110 Remove the global stop_step in favour of a per-thread
3111 stop_step.
3112
3113 * inferior.h (stop_step): Delete.
3114
3115 * gdbthread.h (struct thread_info): Add comments to stop_step.
3116 (save_infrun_state, load_infrun_state): Remove stop_step argument.
3117 * thread.c (load_infrun_state, save_infrun_state): Remove
3118 stop_step argument, and references to it.
3119
3120 * infrun.c (clear_proceed_status): Clear stop_step.
3121 (fetch_inferior_event): Adjust.
3122 (context_switch): Don't context-switch stop_step.
3123 (handle_inferior_event): Adjust.
3124 (normal_stop): Adjust.
3125 (save_inferior_status, restore_inferior_status): Adjust.
3126
3127 * infcmd.c (stop_step): Delete.
3128 (step_1, step_1_continuation, step_once, until_next_command):
3129 Adjust.
3130
af679fd0
PA
31312008-09-08 Pedro Alves <pedro@codesourcery.com>
3132
3133 Remove the global step_multi in favour of a per-thread
3134 step_multi.
3135
3136 * inferior.h (step_multi): Delete.
3137 * gdbthread.h (struct thread_info): Add comments around
3138 step_multi.
3139 (save_infrun_state, load_infrun_state): Remove step_multi
3140 parameter.
3141 * thread.c (load_infrun_state, save_infrun_state): Remove
3142 step_multi argument, and references to it.
3143 * infcmd.c (step_multi): Delete.
3144 (step_1): Adjust.
3145 (step_1_continuation, until_next_command): Adjust.
3146 * infrun.c (fetch_inferior_event): Adjust.
3147 (context_switch): Don't context-switch step_multi.
3148 (print_stop_reason, normal_stop): Adjust.
3149
2020b7ab
PA
31502008-09-08 Pedro Alves <pedro@codesourcery.com>
3151
3152 Remove the global stop_signal in favour of a per-thread
3153 stop_signal.
3154
3155 * inferior.h (stop_signal): Delete.
3156 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3157 stop_signal argument.
3158 * thread.c (load_infrun_state, save_infrun_state): Remove
3159 stop_signal argument. Don't reference it.
3160
3161 * infcmd.c (stop_signal): Delete.
3162 (program_info): Adjust.
3163 * infrun.c (resume): Clear stop_signal.
3164 (proceed): Adjust. Pass the last stop_signal to the thread we're
3165 resuming.
3166 (context_switch): Don't context-switch stop_signal.
3167 (handle_inferior_event, keep_going): Adjust.
3168 (save_inferior_status, restore_inferior_status): Adjust.
3169
3170 * fbsd-nat.c: Include "gdbthread.h".
3171 (find_signalled_thread, find_stop_signal): New.
3172 (fbsd_make_corefile_notes): Use it.
3173 * fork-child.c (startup_inferior): Adjust.
3174
3175 * linux-nat.c (get_pending_status): Adjust.
3176 (linux_nat_do_thread_registers): Adjust.
3177 (find_signalled_thread, find_stop_signal): New.
3178 (linux_nat_do_thread_registers): Add stop_signal parameter.
3179 (struct linux_nat_corefile_thread_data): Add stop_signal member.
3180 (linux_nat_corefile_thread_callback): Pass stop_signal.
3181 (linux_nat_do_registers): Delete.
3182 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
3183 there's always a thread.
3184
3185 * procfs.c (find_signalled_thread, find_stop_signal): New.
3186 (find_stop_signal): New.
3187 (procfs_do_thread_registers): Add stop_signal parameter.
3188 (struct procfs_corefile_thread_data): Add stop_signal member.
3189 (procfs_corefile_thread_callback): Pass args->stop_signal.
3190 (procfs_make_note_section): Find the last stop_signal.
3191
3192 * solib-irix.c: Include gdbthread.h.
3193 (irix_solib_create_inferior_hook): Adjust.
3194 * solib-osf.c: Include gdbthread.h.
3195 (osf_solib_create_inferior_hook): Adjust.
3196 * solib-sunos.c: Include gdbthread.h.
3197 (sunos_solib_create_inferior_hook): Adjust.
3198 * solib-svr4.c: Include gdbthread.h.
3199 (svr4_solib_create_inferior_hook): Adjust.
3200
3201 * win32-nat.c (do_initial_win32_stuff): Adjust.
3202
32400beb
PA
32032008-09-08 Pedro Alves <pedro@codesourcery.com>
3204
3205 * gdbthread.h (struct thread_info): Add comments around
3206 proceed_to_finish.
3207 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
3208 argument.
3209 * thread.c (load_infrun_state, save_infrun_state): Delete
3210 proceed_to_finish argument and references to it.
3211
3212 * infcall.c (call_function_by_hand): Adjust.
3213 * infcmd.c (finish_command): Adjust.
3214 * infrun.c (proceed_to_finish): Delete.
3215 (clear_proceed_status): Adjust.
3216 (context_switch): Don't context-switch proceed_to_finish.
3217 (normal_stop, save_inferior_status, restore_inferior_status):
3218 Adjust.
3219
347bddb7
PA
32202008-09-08 Pedro Alves <pedro@codesourcery.com>
3221
3222 * inferior.h (stop_bpstat): Delete.
3223
3224 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
3225
3226 * breakpoint.c (bpstat_do_actions): Rename to ...
3227 (bpstat_do_actions_1): ... this. Make static. Change return type
3228 to int. Return true if a breakpoint proceeded.
3229 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
3230 (delete_breakpoint): Don't reference the global stop_bpstat; it's
3231 gone.
3232
3233 * gdbthread.h (struct thread_info): Add stop_bpstat.
3234 (save_infrun_state, load_infrun_state): Remove stop_bpstat
3235 argument.
3236 * thread.c (load_infrun_state, save_infrun_state): Remove
3237 stop_bpstat argument, and the code referencing it.
3238
3239 * infcall.c: Include "gdbthread.h".
3240 (call_function_by_hand): Adjust.
3241 * exceptions.c: Include "gdbthread.h".
3242 (throw_exception): Adjust.
3243 * infcmd.c (stop_bpstat): Delete.
3244 (continue_command): In all-stop, set the ignore count on the
3245 thread that reported the stop. In non-stop, set it on the current
3246 thread.
3247 (finish_command_continuation): Adjust.
3248 (program_info): Adjust.
3249 * infrun.c (clear_proceed_status): Adjust.
3250 (context_switch): Don't context-switch stop_bpstat.
3251 (handle_inferior_event): Adjust.
3252 (normal_stop): Adjust.
3253 (save_inferior_status, restore_inferior_status): Adjust.
3254
3255 * inf-loop.c (inferior_event_handler): Remove parameter to
3256 bpstat_do_actions call.
3257 * top.c (command_loop): Remove parameter to bpstat_do_actions
3258 call. Call it unconditionally.
3259 * event-top.c (command_handler): Ditto.
3260 * python/python.c (execute_gdb_command): Ditto.
3261
078130d0
PA
32622008-09-08 Pedro Alves <pedro@codesourcery.com>
3263
3264 * inferior.h (step_over_calls): Delete.
3265
3266 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3267 step_over_calls argument.
3268 * thread.c (save_infrun_state, load_infrun_state): Remove
3269 step_over_calls argument. Adjust.
3270
3271 * infcmd.c (step_over_calls): Delete.
3272 (step_1): Adjust.
3273 * infrun.c (clear_proceed_status): Adjust.
3274 (context_switch): Don't context-switch step_over_calls.
3275 (handle_inferior_event, save_inferior_status)
3276 (restore_inferior_status): Adjust.
3277
4e1c45ea
PA
32782008-09-08 Pedro Alves <pedro@codesourcery.com>
3279
3280 Remove context switching in favour of accessing thread_info fields
3281 directly.
3282
3283 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
3284 Delete.
3285 (struct thread_stepping_state): Delete.
3286 (gtss, tss): Delete.
3287 (follow_inferior_reset_breakpoints, follow_exec)
3288 (resume, clear_proceed_status): Adjust.
3289 (prev_pc): Delete.
3290 (proceed, start_remote, init_wait_for_inferior): Adjust.
3291 (struct execution_control_state): Add event_thread member.
3292 (delete_step_resume_breakpoint_callback)
3293 (delete_step_thread_step_resume_breakpoint)
3294 (delete_step_thread_step_resume_breakpoint_cleanup)
3295 (delete_step_thread_step_resume_breakpoint): New.
3296 (wait_for_inferior, init_execution_control_state): Use
3297 delete_step_thread_step_resume_breakpoint_cleanup.
3298 (wait_for_inferior): Set the event_thread.
3299 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
3300 with delete_step_thread_step_resume_breakpoint.
3301 (init_thread_stepping_state): Change parameter type to
3302 thread_info. Adjust.
3303 (context_switch): Don't context switch prev_pc,
3304 stepping_over_breakpoint, step_resume_breakpoint,
3305 step_range_start, step_range_end, step_frame_id,
3306 tss->stepping_over_breakpoint,
3307 tss->stepping_through_solib_after_catch,
3308 tss->stepping_through_solib_catchpoints, tss->current_line, or
3309 tss->current_symtab.
3310 (adjust_pc_after_break, handle_inferior_event)
3311 (currently_stepping, step_into_function)
3312 (insert_step_resume_breakpoint_at_sal)
3313 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
3314 (clear_stepping_state): New.
3315 (normal_stop): Adjust.
3316 (save_inferior_status, restore_inferior_status): Adjust.
3317
3318 * gdbthread.h (struct thread_info): Comments describing the
3319 members moved here. Add step_after_step_resume_breakpoint.
3320 (delete_step_resume_breakpoint): Add thread_info argument.
3321 (save_infrun_state, load_infrun_state): Remove prev_pc,
3322 trap_expected, step_resume_breakpoint, step_range_start,
3323 step_range_end, step_frame_id, another_trap,
3324 stepping_through_solib_after_catch,
3325 stepping_through_solib_catchpoints, current_line and
3326 current_symtab function arguments.
3327 (inferior_thread): Declare.
3328
3329 * thread.c (inferior_thread): New.
3330 (delete_step_resume_breakpoint): Add a thread_info parameter and
3331 rewrite.
3332 (load_infrun_state, save_infrun_state): Remove prev_pc,
3333 trap_expected, step_resume_breakpoint, step_range_start,
3334 step_range_end, step_frame_id, stepping_over_breakpoint,
3335 stepping_through_solib_after_catch,
3336 stepping_through_solib_catchpoints, current_line and
3337 current_symtab args. Remove code referencing them.
3338
3339 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3340 Delete.
3341 (step_1, step_once, until_next_command): Adjust.
3342
3343 * inferior.h (step_range_start, step_range_end, step_frame_id):
3344 Delete.
3345
3346 * linux-nat.c (linux_child_follow_fork): If following the child,
3347 move the step state to it. Adjust.
3348 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3349 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3350
757f359d
PA
33512008-09-08 Pedro Alves <pedro@codesourcery.com>
3352
3353 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3354 thread.
3355
0de3b513
PA
33562008-09-08 Pedro Alves <pedro@codesourcery.com>
3357
3358 * corelow.c (add_to_thread_list): If this is the first time we
3359 hear about thread info, update inferior_ptid.
3360 (core_open): Clear the thread list and set inferior_ptid before
3361 acknowledging a new inferior. Find threads before fetching
3362 register info. Give an upper target layer a chance to find and
3363 claim new threads. Print core generation and stop signal info
3364 after finding new threads.
3365 (get_core_register_section): Look at the lwp member of
3366 inferior_ptid for detecting if we have threads info, instead of
3367 the pid member.
3368 (core_pid_to_str): New.
3369 (init_core_ops): Register core_pid_to_str.
3370
4189d2f8
PA
33712008-09-08 Pedro Alves <pedro@codesourcery.com>
3372
3373 * spu-linux-nat.c (spu_child_post_startup_inferior)
3374 (spu_child_post_attach): Don't add the main thread here.
3375
617fd3b5
PA
33762008-09-08 Pedro Alves <pedro@codesourcery.com>
3377
3378 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3379
3380 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3381 seeing a thread id, extend the main thread's ptid. If we still
3382 have pending execs, don't be verbose about new threads.
3383 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3384 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3385 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3386 Adjust.
3387
2689673f
PA
33882008-09-08 Pedro Alves <pedro@codesourcery.com>
3389
3390 * procfs.c (to_attach): Create a procinfo for the current lwp.
3391 Add it to gdb's thread list.
3392 (procfs_fetch_registers, procfs_store_registers): Assume there's
3393 always an lwp.
3394 (procfs_wait): Don't add the main thread here.
3395 (procfs_init_inferior): Create a procinfo for the main lwp here.
3396 Change main thread's ptid with thread_change_ptid.
3397 (procfs_notice_thread): Check for exited threads.
3398 (procfs_corefile_thread_callback): Remove check for the main
3399 process.
3400 (procfs_make_note_section): Assume there is always a thread.
3401
3402 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3403 attaching. Change the main thread ptid with thread_change_ptid.
3404 (sol_thread_detach): Clear sol_thread_active.
3405 (sol_thread_wait): Check for exited threads.
3406 (sol_thread_create_inferior): Clear sol_thread_active before
3407 creating a new inferior. Change the main thread ptid with
3408 thread_change_ptid.
3409 (sol_thread_mourn_inferior): Clear sol_thread_active.
3410 (sol_find_new_threads_callback): Check for exited threads.
3411
62a93fa9
PA
34122008-09-08 Pedro Alves <pedro@codesourcery.com>
3413
3414 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3415 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3416 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3417 process, and return TARGET_WAITKIND_IGNORE.
3418
438ac09b
PA
34192008-09-08 Pedro Alves <pedro@codesourcery.com>
3420
3421 * inf-ttrace.c: Include <signal.h>
3422 (inf_ttrace_delete_dead_threads_callback): New.
3423 (inf_ttrace_resume_lwp): New.
3424 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3425 delete dying threads until they are really dead.
3426 (inf_ttrace_wait): After stopping the whole process, delete any
3427 dying thread that is really dead by now.
3428 (inf_ttrace_thread_alive): Return 1.
3429 (inf_ttrace_extra_thread_info): New.
3430 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3431
2935f27f
PA
34322008-09-08 Pedro Alves <pedro@codesourcery.com>
3433
3434 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3435 of the child fork.
3436 (inf_ttrace_attach): Add the main thread.
3437 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3438 for always a thread.
3439 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3440 using thread_change_ptid, and set its private data. Don't add the
3441 main thread here.
3442 (inf_ttrace_pid_to_str): Adjust.
3443
fb5e7258
PA
34442008-09-08 Pedro Alves <pedro@codesourcery.com>
3445
3446 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3447 thread_change_ptid. Check for exited threads.
3448 (bsd_uthread_find_new_threads): Check for exited threads.
3449
af990527
PA
34502008-09-08 Pedro Alves <pedro@codesourcery.com>
3451
3452 * inf-ptrace.c: Include "gdbthread.h".
3453 (inf_ptrace_attach): Add the main thread here.
3454 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3455 Decorate the main thread id with the lwp id.
3456
27c9d204
PA
34572008-09-08 Pedro Alves <pedro@codesourcery.com>
3458
3459 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3460 thread_change_ptid. Don't add or mark the main thread as running
3461 and executing here.
3462 * fork-child.c (fork_inferior): Add the main thread here.
3463
de9f48f0
JG
34642008-09-08 Jerome Guitton <guitton@adacore.com>
3465
3466 * rs6000-tdep.c (rs6000_fetch_instruction)
3467 (rs6000_skip_stack_check): New functions.
3468 (skip_prologue): Skip stack check sequence.
3469
52163a60
DD
34702008-09-08 David Daney <ddaney@avtrex.com>
3471
3472 * dummy-frame.h (frame.h): Include it.
3473 (struct frame_id): Remove declaration.
3474
87805e63
UW
34752008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3476
3477 * spu-tdep.c (spu_push_dummy_code): New function.
3478 (spu_gdbarch_init): Install it.
3479
0b1553bc
UW
34802008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3481
3482 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3483 instead of paddr_nz.
3484 * gdbarch.c: Regenerate.
3485
3486 * target.c (target_xfer_partial, debug_print_register): Use
3487 core_addr_to_string_nz instead of paddr_nz.
3488
2454a024
UW
34892008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3490
3491 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3492 *before* calling gdbarch_init_osabi.
3493 (rs6000_aix_init_osabi): Disable displaced stepping.
3494
b52323fa
UW
34952008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3496
3497 * target.c (update_current_target): Do not inherit to_open
3498 or to_close.
3499 (pop_target): Call target_close on target_stack instead
3500 of current_target.
3501 (pop_all_targets_above): Likewise.
3502
fead6908
UW
35032008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3504
3505 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3506 (gnuv3_print_method_ptr): Use it.
3507 (gnuv3_method_ptr_to_value): Likewise.
3508
60441ab9
UW
35092008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3510
3511 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3512 register_area callback function.
3513 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3514 Use it instead of current_gdbarch.
3515 * nto-procfs.c (procfs_store_registers): Update call.
3516
bb486190
UW
35172008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3518
3519 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3520 regcache architecture instead of current_gdbarch.
3521
9dacea90
UW
35222008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3523
3524 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3525 (check_for_saved): Use it instead of current_gdbarch.
3526 (is_arg_spill): Add gdbarch paramter. Use it instead
3527 of current_gdbarch.
3528 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3529 to is_arg_spill and check_for_saved.
3530 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3531
5db8bbe5
UW
35322008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3533
3534 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3535 instead of current_gdbarch.
3536
6ba38425
UW
35372008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3538
3539 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3540 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3541 Use it instead of current_gdbarch.
3542 (m68kbsd_supply_fpregset): Update call.
3543 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3544 (m68kbsd_collect_fpregset): Likewise.
3545
35488783
UW
35462008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3547
3548 * cris-tdep.c (cris_version, cris_mode): Remove.
3549 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3550 (cris_breakpoint_from_pc): Likewise.
3551 (cris_frame_unwind_cache): Use tdep->cris_version.
3552 (crisv32_scan_prologue): Likewise.
3553 (cris_spec_reg_applicable): Add gdbarch argument.
3554 Use tdep->cris_version.
3555 (cris_register_size, cris_special_register_name): Update calls.
3556 (cris_special_register_name): Add gdbarch argument.
3557 (cris_register_name, crisv32_register_name): Update calls.
3558
9dae60cc
UW
35592008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3560
3561 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3562 instead of current_gdbarch.
3563
3564 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3565 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3566 * sh-tdep.c (gdb_print_insn_sh): Remove.
3567 (sh_gdbarch_init): Install print_insn_sh directly.
3568
3569 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3570 from current_gdbarch.
3571 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3572 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3573 depending on mips_abi.
3574
24568a2c
UW
35752008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3576
3577 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3578 (smash_text_address): Likewise.
3579 * gdbarch.c, gdbarch.h: Regenerate.
3580
3581 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3582 * arch-utils.h (core_addr_identity): Likewise.
3583 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3584 (arm_smash_text_address): Likewise.
3585 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3586 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3587 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3588
3589 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3590 Use it instead of current_gdbarch.
3591
3592 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3593 arm_dwarf2_prev_register): Update calls.
3594 * m88k-tdep.c (m88k_unwind_pc): Update call.
3595
f7fd4728
UW
35962008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3597
3598 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3599 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3600 Call gdbarch_integer_to_address directly instead of converting
3601 to value and back. Update comment.
3602 (execute_stack_op): Update call site.
3603 * dwarf2loc.c (find_location_expression): Likewise.
3604 (locexpr_describe_location): Update
3605
3606 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3607 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3608 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3609 (dwarf2_loc_desc_needs_frame): Likewise.
3610
714835d5
UW
36112008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3612
3613 * breakpoint.h (struct bp_location): Change type of section
3614 member to "struct obj_section *".
3615 * tracepoint.h (struct tracepoint): Likewise.
3616 * symtab.h (struct general_symbol_info): Replace bfd_section
3617 member with obj_section.
3618 (struct symtab_and_line): Change type of section member to
3619 "struct obj_section *".
3620 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3621 (SYMBOL_OBJ_SECTION): ... this.
3622
3623 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3624 section as obj_section instead of bfd_section.
3625
3626 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3627 directly instead of looking of obj_section from bfd_section.
3628
3629 * objfiles.h (find_pc_sect_section): Remove.
3630 * objfiles.c (find_pc_sect_section): Remove.
3631 (find_pc_section): Inline find_pc_sect_section code.
3632
3633 * symfile.h (find_pc_overlay): Return struct obj_section *.
3634 (find_pc_mapped_section): Likewise.
3635 (section_is_overlay, section_is_mapped): Change type of section
3636 argument to struct obj_section *.
3637 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3638 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3639 (symbol_overlayed_address): Likewise.
3640 * symtab.h (symbol_overlayed_address): Likewise.
3641 * symfile.c (overlay_is_mapped): Remove.
3642 (section_is_mapped): Inline overlay_is_mapped code. Update.
3643 (overlay_invalidate_all): Update.
3644 (section_is_overlay): Change section argument to type
3645 "struct obj_section *". Use bfd_ methods.
3646 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3647 (pc_in_mapped_range): Likewise. Handle relocated sections.
3648 (sections_overlap): Likewise.
3649 (overlay_unmapped_address): Likewise.
3650 (overlay_mapped_address): Likewise.
3651 (symbol_overlayed_address): Likewise.
3652 (find_pc_overlay): Return struct obj_section *.
3653 (find_pc_mapped_section): Likewise.
3654 (list_overlays_command): Update.
3655 (map_overlay_command, unmap_overlay_command): Update.
3656 (simple_overlay_update): Update.
3657
3658 * block.h (blockvector_for_pc_sect): Change section argument
3659 to type "struct obj_section *".
3660 (block_for_pc_sect): Likewise.
3661 * block.c (blockvector_for_pc_sect): Change section argument
3662 to type "struct obj_section *".
3663 (block_for_pc_sect): Likewise.
3664 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3665 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3666 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3667 (matching_bfd_sections): Rename to ...
3668 (matching_obj_sections): ... this. Update argument types.
3669 * blockframe.c (find_pc_sect_function): Likewise.
3670 * breakpoint.c (describe_other_breakpoints): Likewise.
3671 (breakpoint_has_pc, check_duplicates_for): Likewise.
3672 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3673 (lookup_minimal_symbol_by_pc_section): Likewise.
3674 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3675 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3676 find_pc_sect_line, find_function_start_pc): Likewise.
3677 (matching_bfd_sections): Rename to ...
3678 (matching_obj_sections): ... this. Update argument types.
3679
3680 * blockframe.c (find_pc_partial_function): Update to section
3681 type changes. No longer call find_pc_sect_section.
3682 (cache_pc_function_section): Change to type "struct obj_section *".
3683 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3684 * exec.c (xfer_memory): Likewise.
3685 * findvar.c (read_var_value): Likewise.
3686 * infcmd.c (jump_command): Likewise.
3687 * linespec.c (minsym_found): Likewise.
3688 * maint.c (maintenance_translate_address): Likewise.
3689 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3690 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3691 * parse.c (write_exp_msymbol): Likewise.
3692 * printcmd.c (build_address_symbolic): Likewise.
3693 (address_info, sym_info): Likewise.
3694 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3695 * symtab.c (fixup_section): Likewise.
3696 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3697 (find_pc_line, find_function_start_sal): Likewise.
3698 * target.c (memory_xfer_partial): Likewise.
3699 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3700 * spu-tdep.c (spu_overlay_update): Likewise.
3701
623d3eb1
DE
37022008-09-04 Doug Evans <dje@google.com>
3703
3704 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3705 Change argument of pulongest from CORE_ADDR to ULONGEST.
3706 All callers updated.
3707 * utils.c (plongest): Renamed from paddr_d.
3708 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3709 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3710 `CORE_ADDR addr' arg of error message.
3711
8775bb90
MS
37122008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3713
3714 * ser-tcp.c (ser_tcp_send_break): New function.
3715 (_initialize_ser_tcp): Use ser_tcp_send_break.
3716 * ser-tcp.h (ser_tcp_send_break): New prototype.
3717
9ff3afda
UW
37182008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3719
3720 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3721 when allocating stack frame for inferior call.
3722
c4891da7
UW
37232008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3724
3725 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3726 SP or return address if we failed to find a valid frame.
3727
514f746b
AR
37282008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3729
3730 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3731 non-permanent breakpoints.
3732 (bpstat_stop_status): Change enable_state to bp_disabled only for
3733 non-permanent breakpoints.
3734 (bp_loc_is_permanent): New function.
3735 (create_breakpoint): Check if the location points to a permanent
3736 breakpoint and if it does, make breakpoint permanent.
3737 (update_breakpoint_locations): Make sure new locations of permanent
3738 breakpoints are properly initialized.
3739 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3740 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3741
a12654ce
PA
37422008-09-02 Pedro Alves <pedro@codesourcery.com>
3743
3744 * breakpoint.c (insert_breakpoints, update_global_location_list):
3745 Check breakpoints_always_inserted_mode instead of
3746 always_inserted_mode directly.
3747
8b7a6d61
AS
37482008-09-02 Andreas Schwab <schwab@suse.de>
3749
3750 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3751
d68209e4
JK
37522008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 Stay compatible after the GCC PR fortran/29635 fix.
3755 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3756 (process_die <DW_TAG_imported_module>): Do not assert anything about
3757 these unsupported tags.
3758
ef4cb050
TT
37592008-08-29 Tom Tromey <tromey@redhat.com>
3760
3761 * maint.c (_initialize_maint_cmds): Fix typo.
3762
a683b3c0
TT
37632008-08-29 Tom Tromey <tromey@redhat.com>
3764
3765 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3766 obstack.
3767
3e88cf8d
UW
37682008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3769
3770 * remote.c: Include "gdb_stat.h".
3771
a45ae3ed
UW
37722008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3773
3774 * dummy-frame.h (dummy_frame_pop): Add prototype.
3775 * dummy-frame.c: Include "observer.h".
3776 (dummy_frame_push): Do not check for stale frames.
3777 (dummy_frame_pop): New function.
3778 (cleanup_dummy_frames): New function.
3779 (_initialize_dummy_frame): Install it as inferior_created observer.
3780
3781 * frame.h (struct frame_id): Update comments.
3782 (frame_id_inner): Remove prototype.
3783 * frame.c (frame_id_inner): Make static. Add comments.
3784 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3785 false positives for targets using non-contiguous stack ranges.
3786 (get_prev_frame_1): Update frame_id_inner safety net check.
3787 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3788
3789 * stack.c (return_command): Directly pop the selected frame.
3790 * infrun.c (handle_inferior_event): Remove dead code.
3791 * i386-tdep.c (i386_push_dummy_call): Update comment.
3792
879d1e6b
UW
37932008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3794
3795 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3796 breakpoint from shared library.
3797
97ec2c2f
UW
37982008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3799
3800 * solib-svr4.c (read_program_header): New function.
3801 (scan_dyntag_auxv): New function.
3802 (elf_locate_base): Use it if scan_dyntag fails.
3803 (find_program_interpreter): New function.
3804 (enable_break): Use it instead of .interp section.
3805
f1838a98
UW
38062008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3807
3808 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3809 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3810 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3811 remote_bfd_open): New functions.
3812 (remote_hostio_send_command): Fail safely if remote connection
3813 is not set up.
3814
3815 * solist.h (solib_open): Remove prototype.
3816 (solib_bfd_open): Add prototype.
3817 * solib.c: Include "remote.h".
3818 (solib_open): Remove, replace by ...
3819 (solib_bfd_open): ... this new function. Handle remote BFDs.
3820 (solib_map_sections): Replace solib_open by solib_bfd_open.
3821 * solib-frv.c: Include "exceptions.h".
3822 (enable_break2): Replace solib_open by solib_bfd_open.
3823 * solib-svr4.c: Include "exceptions.h".
3824 (enable_break): Replace solib_open by solib_bfd_open.
3825
3826 * symfile.c: Include "remote.h".
3827 (build_id_verify): Handle remote BFDs.
3828 (separate_debug_file_exists): Use BFD to access file. Handle
3829 remote BFDs.
3830 (symfile_bfd_open): Handle remote BFDs.
3831 (reread_symbols): Handle remote BFDs.
3832
3833 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3834
1cf3db46
UW
38352008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3836
3837 * gdbarch.sh (target_gdbarch): New global variable.
3838 (deprecated_current_gdbarch_select_hack): Set it.
3839 * gdbarch.c, gdbarch.h: Regenerate.
3840
3841 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3842 of current_gdbarch.
3843 * target-descriptions.c (target_find_description): Likewise.
3844 * arm-tdep.c (arm_update_current_architecture): Likewise.
3845 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3846 arm_show_force_mode): Likewise.
3847 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3848 show_mips_abi): Likewise.
3849 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3850
3851 * target.c (target_translate_tls_address): Use target_gdbarch
3852 instead of current_gdbarch.
3853 * remote.c (struct packet_reg): Likewise.
3854 (get_remote_arch_state, packet_reg_from_regnum,
3855 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3856 remote_address_masked, remote_insert_breakpoint,
3857 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3858 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3859 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3860 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3861
3862 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3863 solib_add, info_sharedlibrary_command, solib_address,
3864 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3865 solib_global_lookup): Likewise.
3866 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3867 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3868 Likewise.
3869 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3870 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3871 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3872 Likewise.
3873 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3874 nto_truncate_ptr): Likewise.
3875 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3876
6207416c
LM
38772008-08-26 Luis Machado <luisgpm@br.ibm.com>
3878
3879 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3880 (ppc_linux_vmx_regset_sections): New structure.
3881 (ppc_linux_fp_regset_sections): New structure.
3882 (ppc_linux_init_abi): Select core-file regset based on target
3883 features.
3884
0ff58721
UW
38852008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3886
3887 * target.c (debug_print_register): Use regcache_raw_collect
3888 instead of regcache_cooked_read. Only handle raw registers.
3889
6c5561f9
PA
38902008-08-25 Pedro Alves <pedro@codesourcery.com>
3891
3892 * cp-name-parser.y: Include config.h before system headers.
3893
ed0c3906
UW
38942008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3895
3896 * m88k-tdep.c: Update for unwinder changes.
3897
119ac181
TT
38982008-08-24 Tom Tromey <tromey@redhat.com>
3899
3900 * s390-tdep.c (s390_address_class_type_flags): Use
3901 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3902 (s390_address_class_type_flags_to_name): Likewise.
3903 (s390_address_class_name_to_type_flags): Likewise.
3904
803e1097
TT
39052008-08-24 Tom Tromey <tromey@redhat.com>
3906
3907 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3908 TYPE_FLAGS.
3909 * features/rs6000/powerpc-vsx32l.c
3910 (initialize_tdesc_powerpc_vsx32l): Update.
3911 * features/rs6000/powerpc-vsx32.c
3912 (initialize_tdesc_powerpc_vsx32): Update.
3913 * features/rs6000/powerpc-vsx64.c
3914 (initialize_tdesc_powerpc_vsx64): Update.
3915 * features/rs6000/powerpc-vsx64l.c
3916 (initialize_tdesc_powerpc_vsx64l): Update.
3917 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3918 TYPE_VECTOR, not TYPE_FLAGS.
3919
876cecd0
TT
39202008-08-24 Tom Tromey <tromey@redhat.com>
3921
3922 * xml-tdesc.c (tdesc_end_union): Update.
3923 * stabsread.c (define_symbol): Update.
3924 (read_type): Update.
3925 (read_struct_type): Update.
3926 (read_enum_type): Update.
3927 * spu-tdep.c (spu_builtin_type_vec128): Update.
3928 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3929 (sh_push_dummy_call_nofpu): Update.
3930 * mdebugread.c (parse_symbol): Update.
3931 (parse_symbol): Update.
3932 (parse_symbol): Update.
3933 (upgrade_type): Update.
3934 * jv-lang.c (java_lookup_class): Update.
3935 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3936 * i386-tdep.c (i386_mmx_type): Update.
3937 (i386_sse_type): Update.
3938 * gdbtypes.h (enum type_flag_value): New enum.
3939 (enum type_instance_flag_value): New enum.
3940 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3941 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3942 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3943 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3944 TYPE_FLAG_NOTTEXT): Now enum constants.
3945 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3946 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3947 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3948 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3949 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3950 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3951 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3952 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3953 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3954 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3955 TYPE_NOTTEXT): Update.
3956 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3957 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3958 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3959 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3960 TYPE_ADDRESS_CLASS_ALL): Update.
3961 (struct main_type) <flags>: Remove.
3962 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3963 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3964 flag_vector, flag_stub_supported, flag_nottext,
3965 flag_fixed_instance>: New fields.
3966 <nfields, vptr_fieldno>: Move earlier.
3967 (TYPE_FLAGS): Remove.
3968 * gdbtypes.c (make_pointer_type): Update.
3969 (address_space_name_to_int): Update.
3970 (address_space_int_to_name): Update.
3971 (make_type_with_address_space): Update.
3972 (make_cv_type): Update.
3973 (create_range_type): Update.
3974 (get_discrete_bounds): Update.
3975 (create_set_type): Update.
3976 (make_vector_type): Update.
3977 (smash_to_method_type): Update.
3978 (check_typedef): Update.
3979 (check_stub_method): Update.
3980 (init_type): Individually assign flag fields.
3981 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3982 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3983 (copy_type_recursive): Copy the entire main type. Don't use
3984 TYPE_FLAGS.
3985 * features/rs6000/powerpc-altivec64l.c
3986 (initialize_tdesc_powerpc_altivec64l): Update.
3987 * features/rs6000/powerpc-altivec64.c
3988 (initialize_tdesc_powerpc_altivec64): Update.
3989 * features/rs6000/powerpc-altivec32l.c
3990 (initialize_tdesc_powerpc_altivec32l): Update.
3991 * features/rs6000/powerpc-altivec32.c
3992 (initialize_tdesc_powerpc_altivec32): Update.
3993 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3994 Update.
3995 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3996 Update.
3997 * dwarf2read.c (read_structure_type): Update.
3998 (read_enumeration_type): Likewise.
3999 (process_enumeration_scope): Likewise.
4000 (read_tag_pointer_type): Likewise.
4001 (read_subroutine_type): Likewise.
4002 (read_subroutine_type): Likewise.
4003 (read_base_type): Likewise.
4004 * coffread.c (coff_read_enum_type): Update.
4005 * ada-valprint.c (adjust_type_signedness): Update.
4006 * ada-typeprint.c (print_record_field_types): Update.
4007 * ada-lang.c (packed_array_type): Update.
4008 (empty_record): Don't reset TYPE_FLAGS.
4009 (ada_template_to_fixed_record_type_1): Update.
4010 (ada_template_to_fixed_record_type_1): Likewise.
4011 (template_to_static_fixed_type): Likewise.
4012 (to_record_with_fixed_variant_part): Likewise.
4013 (to_fixed_record_type): Likewise.
4014 (to_fixed_array_type): Likewise.
4015 (to_static_fixed_type): Likewise.
4016
d4ce0d3f
TT
40172008-08-23 Jim Blandy <jimb@redhat.com>
4018
4019 PR macros/607:
4020 * symmisc.c (print_symbol_bcache_statistics): Include statistics
4021 for the macro bcache.
4022
2e668a5d
TT
40232008-08-23 Tom Tromey <tromey@redhat.com>
4024
4025 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
4026 (argc): Now 31 bits.
4027
75a2d5e7
TT
40282008-08-22 Tom Tromey <tromey@redhat.com>
4029
4030 * NEWS: Move macro entries back under "New commands".
4031
25db0f1b
UW
40322008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4033
4034 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
4035 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
4036 (create_overlay_event_breakpoint): Loop over all objfiles to install
4037 multiple instances of the overlay event breakpoint if present.
4038
0391f248
UW
40392008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4040
4041 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
4042 (info_spu_event_command): Command only supported on SPU architecture.
4043 (info_spu_signal_command): Likewise.
4044 (info_spu_mailbox_command): Likewise.
4045 (info_spu_dma_command): Likewise.
4046 (info_spu_proxydma_command): Likewise.
4047
24a73cce
UW
40482008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4049
4050 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
4051 if the thread has already exited.
4052
e0bb1c1c
PA
40532008-08-22 Pedro Alves <pedro@codesourcery.com>
4054
4055 * infrun.c (proceed): Move back setting previous_inferior_ptid
4056 from here ...
4057 (wait_for_inferior): ... to here.
4058 (fetch_inferior_event): ... and here.
4059
a3ecef73
UW
40602008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4061
4062 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
4063 (deprecated_current_gdbarch_select_hack): Call registers_changed
4064 instead of reinit_frame_cache.
4065 * gdbarch.c: Regenerate.
4066
45148c2e
UW
40672008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4068
4069 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
4070
6a94242b
DJ
40712008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4072
4073 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
4074
5045add0
UW
40752008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4076
4077 * findvar.c (locate_var_value): Do not call get_frame_arch
4078 with a NULL frame argument.
4079
029a67e4
UW
40802008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4081
4082 * frame.h (frame_map_regnum_to_name): Remove prototype.
4083 (frame_map_name_to_regnum): Remove prototype.
4084 * frame.c (frame_map_regnum_to_name): Remove.
4085 (frame_map_name_to_regnum): Remove.
4086 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
4087 instead of frame_map_regnum_to_name.
4088 * ax-gdb.c: Include "user-regs.h".
4089 (gen_expr): Use user_reg_map_name_to_regnum instead of
4090 frame_map_name_to_regnum.
4091 * eval.c: Include "user-regs.h".
4092 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
4093 instead of frame_map_name_to_regnum.
4094 * infcmd.c (registers_info): Likewise.
4095 * parse.c: Include "user-regs.h".
4096 (write_dollar_variable): Use user_reg_map_name_to_regnum
4097 instead of frame_map_name_to_regnum.
4098 * tracepoint.c: Include "user-regs.h".
4099 (encode_actions): Use user_reg_map_name_to_regnum
4100 instead of frame_map_name_to_regnum.
4101 * valops.c: Include "user-regs.h".
4102 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
4103 of frame_map_regnum_to_name.
4104
e84ee240
UW
41052008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4106
4107 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
4108 and manually relocate .opd contents from BFD instead of reading
4109 them from target memory.
4110
0114d602
DJ
41112008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4112
4113 * dwarf2read.c (processing_current_prefix): Delete static
4114 variable.
4115 (process_full_comp_unit): Do not set processing_current_prefix.
4116 (dwarf2_full_name): New function.
4117 (read_func_scope): Do not set processing_current_prefix. Use
4118 determine_prefix.
4119 (read_structure_type): Do not set processing_current_prefix. Remove
4120 unused inner cleanup.
4121 (process_structure_scope): Do not set processing_current_prefix.
4122 (read_enumeration_type): Use dwarf2_full_name.
4123 (determine_class_name): Return a const char *. Put the result
4124 on the objfile obstack. Use dwarf2_full_name.
4125 (read_namespace_type): New function.
4126 (read_namespace): Do not create the type here. Use
4127 determine_prefix.
4128 (read_typedef): Use dwarf2_full_name. Do not pass the name
4129 to init_type.
4130 (read_base_type): Do not pass the name to init_type. Handle
4131 TYPE_FLAG_NOSIGN.
4132 (read_unspecified_type): Do not pass the name to init_type.
4133 (new_symbol): Use dwarf2_full_name instead of
4134 processing_current_prefix.
4135 (read_type_die): Do not set processing_current_prefix. Handle
4136 DW_TAG_namespace.
4137 (determine_prefix): Handle specifications. Return the result
4138 on the objfile obstack. Handle unions correctly.
4139
df8a16a1
DJ
41402008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4141
4142 * buildsym.c (add_symbol_to_list): Do not call
4143 cp_scan_for_anonymous_namespaces here.
4144 (finish_block): Do not call cp_set_block_scope here.
4145 * cp-namespace.c (processing_has_namespace_info)
4146 (processing_current_prefix): Delete.
4147 (cp_initialize_namespace): Do not initialize
4148 processing_has_namespace_info.
4149 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
4150 not check processing_has_namespace_info.
4151 (cp_set_block_scope): Take prefix and namespace info flag as
4152 arguments. Honor namespaces regardless of a demangled name.
4153 * cp-support.h (processing_has_namespace_info)
4154 (processing_current_prefix): Delete declarations.
4155 (cp_set_block_scope): Update prototype.
4156 * dwarf2read.c (processing_has_namespace_info)
4157 (processing_current_prefix): New static variables.
4158 (read_file_scope): Initialize processing_has_namespace_info.
4159 (read_func_scope): Call cp_set_block_scope for C++.
4160 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
4161 * symtab.c (symbol_demangled_name): Accept a const argument.
4162 * symtab.h (symbol_demangled_name): Update prototype.
4163
3567439c
DJ
41642008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4165
4166 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
4167 * blockframe.c (find_pc_partial_function): Likewise.
4168 * buildsym.c (find_symbol_in_list): Likewise.
4169 * c-valprint.c (c_val_print): Likewise.
4170 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
4171 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
4172 * cp-support.c (cp_remove_params): Renamed from remove_params and
4173 made global.
4174 (overload_list_add_symbol): Update call to remove_params.
4175 * cp-support.h (cp_remove_params): Declare.
4176 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
4177 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
4178 * expprint.c (dump_subexp_body_standard): Likewise.
4179 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
4180 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
4181 for messages.
4182 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
4183 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4184 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4185 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
4186 symbols and SYMBOL_PRINT_NAME for messages.
4187 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4188 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
4189 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
4190 SYMBOL_SET_LINKAGE_NAME.
4191 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
4192 * minsyms.c (add_minsym_to_demangled_hash_table): Use
4193 SYMBOL_SEARCH_NAME.
4194 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
4195 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
4196 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
4197 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
4198 (address_info): Use SYMBOL_PRINT_NAME for messages and
4199 SYMBOL_LINKAGE_NAME for lookups.
4200 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
4201 * stabsread.c (patch_block_stabs, define_symbol)
4202 (read_type, read_enum_type, common_block_end)
4203 (cleanup_undefined_types_1, scan_file_globals): Use
4204 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
4205 and SYMBOL_PRINT_NAME.
4206 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
4207 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
4208 cp_remove_params instead of cplus_demangle.
4209 (print_block_frame_labels, print_frame_arg_vars): Use
4210 SYMBOL_LINKAGE_NAME.
4211 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
4212 SYMBOL_LINKAGE_NAME.
4213 (dump_symtab_1, print_symbol, print_partial_symbols)
4214 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
4215 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
4216 (SYMBOL_SET_LINKAGE_NAME): New.
4217 (SYMBOL_SET_NAMES): Add a comment.
4218 * tracepoint.c (set_traceframe_context, validate_actionline)
4219 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
4220 lookups and SYMBOL_PRINT_NAME for output.
4221 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
4222 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4223
aded6f54
PA
42242008-08-21 Pedro Alves <pedro@codesourcery.com>
4225
4226 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
4227 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
4228 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
4229 obj_section_addr and obj_section_endaddr.
4230 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
4231 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4232 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
4233 (find_extant_func_descr): Likewise.
4234 * solib-frv.c (frv_relocate_main_executable): Use
4235 obj_section_addr.
4236 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
4237 obj_section_addr and obj_section_endaddr.
4238
158c7665
PH
42392008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
4240
4241 * NEWS: Amplify last entry on boolean types in Ada.
4242
f2f0e013
DJ
42432008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4244
4245 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
4246 Make the dwarf2_cu * parameter output as well as input. Update it if
4247 we follow a reference to another CU.
4248 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
4249 (die_type, die_containing_type): Update calls to changed functions.
4250 Use the returned CU along with the returned DIE.
4251 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
4252
03dd20cc
DJ
42532008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4254
4255 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
4256 in the DIEs here.
4257 (process_queue): Do not read in the DIEs here.
4258 (psymtab_to_symtab_1): Update call to queue_comp_unit.
4259 (read_full_die): Do not call queue_comp_unit from here.
4260 (maybe_queue_comp_unit): New function.
4261 (follow_die_ref): Use it.
4262
b60c80d6
DJ
42632008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4264
4265 * dwarf2read.c (struct attribute): Move earlier.
4266 (struct die_info): Change attrs to a trailing array.
4267 (dwarf_alloc_die): Take the number of attributes. Allocate space
4268 for them.
4269 (read_full_die): Update call to dwarf_alloc_die. Do not manually
4270 allocate attributes.
4271
51545339
DJ
42722008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4273
4274 * dwarf2read.c (REF_HASH_SIZE): Delete.
4275 (struct dwarf2_cu): Replace die_ref_table with die_hash.
4276 (struct die_info): Remove next_ref.
4277 (store_in_ref_table): Remove offset argument. Rewrite to use
4278 htab_find_slot_with_hash.
4279 (die_hash, die_eq): New.
4280 (read_comp_unit): Allocate the die_hash.
4281 (read_die_and_children): Update call to store_die_ref.
4282 (follow_die_ref): Rewrite to use htab_find_with_hash.
4283
7475d072
DJ
42842008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4285
4286 * dwarf2read.c (free_die_list, copy_die): Delete.
4287 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
4288 on the obstack.
4289 (read_full_die): Update call to dwarf_alloc_die. Allocate
4290 attributes on the CU obstack.
4291 (free_one_comp_unit): Do not call free_die_list.
4292
1d325ec1
DJ
42932008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4294
4295 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
4296 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
4297 sibling list.
4298 (read_full_die): Do not allocate DIEs for abbrev 0.
4299 (follow_die_ref): Correct error message.
4300
b96e2927
PA
43012008-08-20 Pedro Alves <pedro@codesourcery.com>
4302
4303 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
4304 there are no symbols loaded, instead of throwing a generic error.
4305 (decode_variable): Likewise.
4306
f1f6aadf
PA
43072008-08-20 Pedro Alves <pedro@codesourcery.com>
4308
4309 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
4310 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
4311 macros.
4312 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
4313 and offset. Use size_t instead of unsigned long.
4314 (build_objfile_section_table): Use size_t instead of unsigned
4315 long.
4316 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
4317 gone.
4318 (find_pc_sect_section): Use obj_section_addr and
4319 obj_section_endaddr.
4320 * symfile.c (symfile.c): Remove code that maps sections
4321 offsets in "addr" to the object's sections.
4322 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
4323 * gcore.c (gcore_create_callback): Use obj_section_addr and
4324 obj_section_endaddr.
4325 * maint.c (print_objfile_section_info): Likewise.
4326 * printcmd.c (sym_info): Use obj_section_addr and
4327 obj_section_endaddr.
4328 * symtab.c (fixup_section): Likewise.
4329
3923a2b2
MK
43302008-08-20 Mark Kettenis <kettenis@gnu.org>
4331
4332 * sparc-tdep.c: Make some comments catch up with reality.
4333
b3eb342c
VP
43342008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4335
4336 * NEWS: Mention 'set target-async'
4337
7f7efbd9
VP
43382008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4339
4340 * infrun.c (resume): If the thread is placed to the deferred step
4341 queue, mark it as running.
4342
9908b566
VP
43432008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4344
4345 Make sure target supports non-stop.
4346 * infcmd.c (run_command_1, attach_command): If non-stop mode
4347 is requested, verify the target supports it.
4348 * linux-nat.c (linux_nat_supports_non_stop): New.
4349 (linux_nat_add_target): Register the above.
4350 * target.c (find_default_supports_non_stop)
4351 (target_supports_non_stop): New.
4352 (init_dummy_target): Register find_default_supports_non_stop.
4353 * target.h (struct target_ops): New field to_supports_non_stop.
4354 (target_supports_non_stop): New.
4355
c6ebd6cf
VP
43562008-08-19 Pedro Alves <pedro@codesourcery.com>
4357 Vladimir Prus <vladimir@codesourcery.com>
4358
4359 * target.c (target_async_permitted, target_async_permitted_1)
4360 (set_maintenance_target_async_permitted)
4361 (show_maintenance_target_async_permitted): New.
4362 (initialize_targets): Register 'set target-async'.
4363 * target.h (target_async_permitted): Declare.
4364 * linux-nat.c (linux_nat_async_enabled)
4365 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4366 (show_maintenance_linux_async_permitted): Remove.
4367 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4368 (get_pending_events, linux_nat_async): Use target_async_permitted.
4369 (linux_nat_set_async_mode): Remove, moving the only used bits
4370 into...
4371 (linux_nat_setup_async): This.
4372 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4373 Use linux_nat_setup_async.
4374 * remote.c (remote_async_permitted, remote_async_permitted_set)
4375 (set_maintenance_remote_async_permitted)
4376 (show_maintenance_remote_async_permitted): Remove.
4377 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4378 (remote_is_async_p): Use target_async_permitted.
4379 (_initialize_remote): Don't register 'main set remote-async'.
4380 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4381 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4382 * mi/mi-main.c (mi_cmd_list_target_features): New.
4383
073120b9
VP
43842008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4385
4386 * target.c (maybe_kill_then_attach)
4387 (maybe_kill_then_create_inferior): Remove.
4388 (update_current_target): Do not default to_attach,
4389 to_create_inferiour, to_is_async_p.
4390
690cc4eb 43912008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
4392
4393 Changes for supporting boolean types in debugging data.
690cc4eb
PH
4394 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4395 API to return LONGEST values rather than struct values.
4396 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4397 and discrete_type_high_bound.
4398 (to_fixed_range_type): Create a range type in cases where
4399 argument is base type and its limits are representable as ints.
4400 (ada_is_modular_type): Correct so that base type must be integral.
4401 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4402 keywords when they appear alone, since we are phasing out
bfb8797a 4403 direct representation of these identifiers in debugging data.
690cc4eb
PH
4404 * ada-exp.y: Define 'true' and 'false' as primaries.
4405 (type_boolean): New function.
4406 (type_int,type_long,type_long_long,type_floattype_double)
4407 (type_long_double): Remove uses of current_gdbarch for consistency
4408 with type_boolean.
4409 (write_int): Change comment to indicate that it might write boolean
4410 constant as well.
4411 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4412 type, since will no longer be represented as enumerated type in
4413 debugging data.
4414 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4415 as well.
bfb8797a
PH
4416 * NEWS: Note support boolean types.
4417
39540081
PA
44182008-08-18 Pedro Alves <pedro@codesourcery.com>
4419
4420 * bsd-uthread.c (bsd_uthread_close): New.
4421 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4422 target.
4423 (bsd_uthread_solib_loaded): Fix typo.
4424 (bsd_uthread_target): Register bsd_uthread_close.
4425
87ab71f0
PA
44262008-08-18 Pedro Alves <pedro@codesourcery.com>
4427
4428 * corelow.c (core_open): Assume there was no upper layer left
4429 behind from a previous inferior.
4430 * target.c (pop_all_targets): Rename to ...
4431 (pop_all_targets_above): ... this. Add a target stratum
4432 parameter. Use it instead of hardcoding the dummy_stratum.
4433 (pop_all_targets): New, defer to pop_all_targets_above.
4434 (target_preopen): Use pop_all_targets_above.
4435 * target.h (pop_all_targets_above): Declare.
4436
5231c1fd
PA
44372008-08-18 Pedro Alves <pedro@codesourcery.com>
4438
4439 * gdbthread.h (thread_change_ptid): Declare.
4440 * infrun.c (infrun_thread_ptid_changed): New.
4441 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4442 thread_ptid_changed observer.
4443 * regcache.c (regcache_thread_ptid_changed): New.
4444 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4445 thread_ptid_changed observer.
4446 * thread.c (thread_change_ptid): New.
4447
f98dfd4b
TT
44482008-08-18 Tom Tromey <tromey@redhat.com>
4449
4450 * symfile.c (reread_symbols): Update.
4451 * solib-sunos.c (allocate_rt_common_objfile): Update.
4452 * objfiles.c (allocate_objfile): Update.
4453 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4454 Remove.
4455
d87ecdfb
TT
44562008-08-18 Tom Tromey <tromey@redhat.com>
4457
4458 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4459 obstack.
4460
46a9b8ed
DJ
44612008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4462
4463 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4464 lr_register.
4465 (rs6000_in_function_epilogue_p): Check for bctr.
4466 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4467 number. Set gpr_mask and used_bl. Continue scanning while some
4468 expected registers are not saved. Set lr_register if LR is not
4469 stored.
4470 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4471
44feb3ce
TT
44722008-08-17 Tom Tromey <tromey@redhat.com>
4473
4474 PR gdb/1535:
4475 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4476 (ep_find_event_name_end): Remove.
4477 (catch_fork_temporary, catch_vfork_temporary,
4478 catch_fork_permanent, catch_vfork_permanent): New constants.
4479 (catch_vfork, catch_fork): Remove.
4480 (catch_fork_command_1): Add 'command' argument. Remove
4481 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4482 all cases.
4483 (catch_exec_command_1): Add 'command' argument; remove
4484 'tempflag'. Handle NULL 'arg'.
4485 (catch_load_command_1): Likewise.
4486 (catch_unload_command_1): Likewise.
4487 (catch_ada_exception_command): Likewise.
4488 (catch_assert_command): Likewise.
4489 (catch_catch_command): New function.
4490 (catch_throw_command): Likewise.
4491 (catch_command_1): Remove.
4492 (catch_command): Just call error.
4493 (tcatch_command): Likewise.
4494 (catch_cmdlist): New global.
4495 (tcatch_cmdlist): Likewise.
4496 (add_catch_command): New function.
4497 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4498 commands. Create all catch sub-commands.
4499
0d6431e2
PA
45002008-08-17 Pedro Alves <pedro@codesourcery.com>
4501
4502 * gdbthread.h: Add comments.
4503 * stack.c (get_selected_block): Return 0 on an exited thread.
4504 * top.c (execute_command): Check for is_stopped, not !is_running.
4505 * event-top.c (command_handler): Likewise.
4506
8931f526
PA
45072008-08-16 Pedro Alves <pedro@codesourcery.com>
4508
4509 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4510 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4511 (mi_cmd_exec_finish): Remove "return".
4512
aa76d38d
PA
45132008-08-16 Pedro Alves <pedro@codesourcery.com>
4514
4515 * target.h (pop_all_targets): Declare.
4516 * target.c (pop_all_targets): New.
4517 * top.c (quit_target): Pop all targets instead of just closing the
4518 current.
4519
311a4e6b
TJB
45202008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4521 Thiago Jung Bauermann <bauerman@br.ibm.com>
4522
4523 * cli-script.c (read_next_line): Add parse_commands argument.
4524 (recurse_read_control_structure): Adapt to new read_next_line
4525 signature.
4526 (read_command_lines): Add parse_commands argument.
4527 (define_command): Adapt to new read_command_lines signature.
4528 (document_command): Likewise.
4529 * breakpoint.c (commands_command): Likewise.
4530 * defs.h (read_command_lines): Adjust function prototype.
4531
24209737
PH
45322008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4533
4534 * ada-lang.c (pos_atr): Account for the possibility that the
4535 argument may be a reference.
4536
9f1d5432
PH
45372008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4538
4539 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4540 ('F' format) for @FIX names generated by the loader, retaining only
4541 the minimal symbols (and no partial symbol tables) for these names.
4542 Fixes warning messages about symbols that are found in partial
4543 symbol tables, but not full symbol tables.
4544
83c265ab
PA
45452008-08-16 Pedro Alves <pedro@codesourcery.com>
4546
4547 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4548 stopping quietly.
4549
604c2f83
LM
45502008-08-15 Luis Machado <luisgpm@br.ibm.com>
4551
4552 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4553 Include "features/rs6000/powerpc-vsx64.c".
4554 (ppc_supply_vsxregset): New function.
4555 (ppc_collect_vsxregset): New function.
4556 (IS_VSX_PSEUDOREG): New macro.
4557 (IS_EFP_PSEUDOREG): New macro.
4558 (vsx_register_p): New function.
4559 (ppc_vsx_support_p): New function.
4560 (rs6000_builtin_type_vec128): New function.
4561 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4562 correct names for VSX registers and EFPR registers.
4563 (rs6000_pseudo_register_type): Return correct types for VSX
4564 and EFPR registers.
4565 (rs6000_pseudo_register_reggroup_p): Return correct group for
4566 VSX and EFPR registers.
4567 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4568 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4569 (vsx_pseudo_register_read): New function.
4570 (vsx_pseudo_register_write): New function.
4571 (efpr_pseudo_register_read): New function.
4572 (efpr_pseudo_register_write): New function.
4573 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4574 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4575 (rs6000_gdbarch_init): Declare have_vsx.
4576 Initialize new upper half VSX registers.
4577 Initialize VSX-related and EFPR-related pseudo-registers variables.
4578 Adjust the number of pseudo registers accordingly.
4579
4580 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4581 and SIZEOF_VSRREGS.
4582 (gdb_vsxregset_t): New type.
4583 (have_ptrace_getsetvsxregs): New variable.
4584 (fetch_vsx_register): New function.
4585 (fetch_register): Handle VSX registers.
4586 (fetch_vsx_registers): New function.
4587 (fetch_ppc_registers): Handle VSX registers.
4588 (store_ppc_registers): Handle VSX registers.
4589 (store_vsx_register): New function.
4590 (store_register): Handle VSX registers.
4591 (store_vsx_registers): New function.
4592 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4593 (gdb_vsxregset_t): New type.
4594 (supply_vsxregset): New function.
4595 (fill_vsxregset): New function.
4596
4597 * ppc-tdep.h (vsx_register_p): New prototype.
4598 (vsx_support_p): New prototype.
4599 (ppc_vsr0_regnum): New variable.
4600 (ppc_vsr0_upper_regnum): Likewise.
4601 (ppc_efpr0_regnum): Likewise.
4602 (ppc_builtin_type_vec128): New type.
4603 (ppc_num_vsrs): New constant.
4604 (ppc_num_vshrs): New constant.
4605 (ppc_num_efprs): Likewise.
4606 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4607 (ppc_supply_vsxregset): New prototype.
4608 (ppc_collect_vsxregset): New prototype.
4609
4610 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4611 Include "features/rs6000/powerpc-vsx64l.c".
4612 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4613 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4614 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4615 (ppc_linux_regset_from_core_section): Handle VSX core section.
4616 (ppc_linux_core_read_description): Support VSX-enabled core files.
4617
4618 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4619 Declare tdesc_powerpc_vsx64l
4620
4621 * corelow.c (get_core_register_section): Support VSX-enabled
4622 core files.
4623
4624 * features/rs6000/power-vsx.xml: New VSX descriptions.
4625 * features/rs6000/powerpc-vsx32.xml: New file.
4626 * features/rs6000/powerpc-vsx32l.xml: New file.
4627 * features/rs6000/powerpc-vsx64.xml: New file.
4628 * features/rs6000/powerpc-vsx64l.xml: New file.
4629 * features/rs6000/powerpc-vsx32.c: New file (generated).
4630 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4631 * features/rs6000/powerpc-vsx64.c: New file (generated).
4632 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4633 * features/Makefile: Updated with new descriptions.
4634 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4635 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4636
dde7c0a9
VP
46372008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4638
4639 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4640 call linux_target twice.
4641
ebd67d87
AR
46422008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4643
4644 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4645 solib-svr4.c
4646 (LM_ADDR): Use l_addr if available; if not, use link map and set
4647 l_addr.
4648
886a217c
TT
46492008-08-14 Tom Tromey <tromey@redhat.com>
4650
4651 * macrocmd.c (macro_define_command): Check for NULL argument.
4652 (macro_undef_command): Likewise.
4653
3d488bfc
PA
46542008-08-14 Pedro Alves <pedro@codesourcery.com>
4655
4656 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4657
33e5cbd6
PA
46582008-08-13 Pedro Alves <pedro@codesourcery.com>
4659
4660 * breakpoint.c (always_inserted_auto, always_inserted_on)
4661 (always_inserted_off, always_inserted_enums): New.
4662 (always_inserted_mode): Change type to char* and point to
4663 always_inserted_auto.
4664 (show_always_inserted_mode): In auto mode, also show the current
4665 effect of the option.
4666 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4667 (_initialize_breakpoint): Make the "set breakpoints
4668 always-inserted" command an enum command. Extend help to describe
4669 the auto mode.
4670
8fbde58b
UW
46712008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4672
4673 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4674 query valid) bit. Ignore bits outside the condition field.
4675 (info_spu_proxydma_command): Ignore bits outside the field.
4676
11fa8e43
MS
46772008-08-12 Michael Snyder <msnyder@vmware.com>
4678
4679 * MAINTAINERS: Update my email address.
4680
fcb09a75
UW
46812008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4682
4683 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4684
a6f3e723
SL
46852008-08-12 Pedro Alves <pedro@codesourcery.com>
4686
4687 Add no-ack mode to the remote protocol --- optionally stop ACKing
4688 packets and responses when we have a reliable communication
4689 medium.
4690
4691 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4692
4693 * remote.c (struct remote_state): Add noack_mode field.
4694 (PACKET_QStartNoAckMode): New.
4695 (remote_start_remote): Don't any outstanding packet here.
4696 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4697 here. Activate noack mode if requested.
4698 (remote_protocol_features): Add QStartNoAckMode.
4699 (remote_open_1):
4700 (putpkt_binary): Don't send ack in noack mode.
4701 (read_frame): Don't recompute the checksum in noack mode.
4702 (getpkt_sane): Skip sending ack if in noack mode.
4703 (_initialize_remote): Add set/show remote noack mode.
4704 * NEWS: Note the new features.
4705
8ab3d180
KB
47062008-08-11 Kevin Buettner <kevinb@redhat.com>
4707
4708 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4709 New macros.
4710 (rs6000_skip_main_prologue): New function.
4711 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4712
63a61bf6
SL
47132008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4714
4715 * MAINTAINERS (Write After Approval): Add self.
4716
9d4fde75
SS
47172008-08-11 Stan Shebs <stan@codesourcery.com>
4718
4719 ARM BE8 support.
4720 * disasm.c (gdb_disassemble_info): Set endian_code.
4721 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4722 * gdbarch.h, gdbarch.c: Regenerate.
4723 * arch-utils.c (initialize_current_architecture): Set the
4724 default byte_order_for_code.
4725 (gdbarch_info_init): Ditto.
4726 (gdbarch_info_fill): Ditto.
4727 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4728 (thumb_analyze_prologue): Swap halfword if code endianness is
4729 different from general endianness.
4730 (arm_skip_prologue): Similarly.
4731 (arm_scan_prologue): Ditto.
4732 (thumb_get_next_pc): Ditto.
4733 (arm_get_next_pc): Ditto.
4734 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4735 choose correct endianness for breakpoints.
4736
6c613132
PA
47372008-08-10 Pedro Alves <pedro@codesourcery.com>
4738
4739 * bsd-kvm.c: Include "gdbthread.h".
4740 (bsd_kvm_ptid): New.
4741 (bsd_kvm_open): Add a main thread.
4742 (bsd_kvm_close): Delete it.
4743 (bsd_kvm_thread_alive): New.
4744 (bsd_kvm_pid_to_str): New.
4745 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4746 bsd_kvm_pid_to_str.
4747 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4748
6eb7ee03
PA
47492008-08-09 Pedro Alves <pedro@codesourcery.com>
4750
4751 * buildsym.c (start_subfile): Properly cast sentinel in concat
4752 call.
4753 * cp-name-parser.y: Include "config.h".
4754 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4755 concat call.
4756 * gdb_select.h: Include sys/time.h if sys/select.h is not
4757 available.
4758
444c3224
PA
47592008-08-09 Pedro Alves <pedro@codesourcery.com>
4760
4761 * go32-nat.c: Include "gdbthread.h".
4762 (go32_stop, go32_kill_inferior): Delete the main thread.
4763 (go32_create_inferior): Add it.
4764 (go32_thread_alive, go32_pid_to_str): New.
4765 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4766
9d0b3624
PA
47672008-08-09 Pedro Alves <pedro@codesourcery.com>
4768
4769 * go32-nat.c (fetch_register, store_register): Pass the regcache
4770 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4771 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4772 (struct seg_descr, struct seg_descr): pack the whole struct
4773 instead of each member individually.
4774
509238d6
AS
47752008-08-09 Andreas Schwab <schwab@suse.de>
4776
4777 * python/python.c (_initialize_python): Use unabbreviated commands
4778 in prefix name.
4779
c068b4e8
DJ
47802008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4781
4782 * Makefile.in (stamp-h): Also create .deps.
4783
21374e5f
TT
47842008-08-09 Tom Tromey <tromey@redhat.com>
4785
4786 * Makefile.in (generated_files): Add GNULIB_H.
4787
7be67755
DA
47882008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4789
4790 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4791 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4792 Revise comment.
4793 (pa64_current_sos): Remove map private warning warning.
4794 * solib-som.c: Include string.h and sys/utsname.h.
4795 (get_hpux_major_release): New function.
4796 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4797 about shared library private mapping on HP-UX 11 and later. Only force
4798 private mapping of shared libraries on HP-UX 10 and earlier.
4799 (link_map_start): Delete warning.
4800
e0c62198
L
48012008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4802 H.J. Lu <hongjiu.lu@intel.com>
4803 Mark Kettenis <kettenis@gnu.org>
4804
4805 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4806 (amd64_init_frame_cache): Initialize saved_sp_reg.
4807 (amd64_analyze_stack_align): New.
4808 (amd64_analyze_prologue): Call it.
4809 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4810 %rip to 8 when halfway aligning the stack.
4811
4812 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4813 AMD64_R14_REGNUM.
4814
4815 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4816 saved_sp_reg.
4817 (i386_alloc_frame_cache): Remove stack_align. Initialize
4818 saved_sp_reg to -1.
4819 (i386_analyze_stack_align): Rewrite.
4820 (i386_frame_cache): Use saved_sp_reg if it is valid.
4821
b9db4ced
UW
48222008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4823
4824 * target.c: Include "solib.h".
4825 (target_pre_inferior): Call no_shared_libraries.
4826 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4827 or clear_solib.
4828 (attach_command): Do not call clear_solib.
4829
3979a37f
MK
48302008-08-09 Mark Kettenis <kettenis@gnu.org>
4831
4832 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4833 the %eip register.
4834
2b26d9fa
TT
48352008-08-08 Tom Tromey <tromey@redhat.com>
4836
4837 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4838 POSTCOMPILE.
4839 (python-utils.o): Likewise.
4840
f1648876
AS
48412008-08-08 Andreas Schwab <schwab@suse.de>
4842
4843 * corefile.c (_initialize_core): Remove spurious paren from set
4844 gnutarget doc string.
4845
b7622095
LM
48462008-08-08 Luis Machado <luisgpm@br.ibm.com>
4847
4848 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4849 Define PPC_FEATURE_BOOKE.
b7622095
LM
4850 (ppc_linux_get_hwcap): New function.
4851 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4852 4-bytes alignment restrictions.
4853 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4854 positioning of the read/write flags.
4855 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4856 4-bytes alignment.
4857
2dc38344
PA
48582008-08-08 Pedro Alves <pedro@codesourcery.com>
4859
4860 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4861
4862 * win32-nat.c (win32_add_thread): Change thread argument type to
4863 ptid_t. Adjust.
4864 (win32_add_thread): Adjust.
4865 (win32_delete_thread): Change thread argument type to ptid_t.
4866 Adjust.
4867 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4868 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4869 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4870 (init_win32_ops): Put to_magic last.
4871 (win32_win32_thread_alive): Adjust.
4872
4d6c6261
PA
48732008-08-08 Pedro Alves <pedro@codesourcery.com>
4874
4875 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4876 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4877
e5ef4d75
PA
48782008-08-08 Pedro Alves <pedro@codesourcery.com>
4879
4880 * remote-m32r-sdi.c: Include "gdbthread.h".
4881 (remote_m32r_ptid): New.
4882 (m32r_close): Delete the main thread.
4883 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4884 main thread.
4885 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4886 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4887
a417dc56
RW
48882008-08-07 Tom Tromey <tromey@redhat.com>
4889 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4890
4891 * aclocal.m4, configure: Rebuild.
4892 * configure.in: Call ZW_CREATE_DEPDIR,
4893 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4894 (MAKE, GMAKE): New substs.
4895 * acinclude.m4: Include depstand.m4.
4896 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4897 COMPILE, POSTCOMPILE, depcomp): New variables.
4898 Remove all _h variables.
4899 Remove many .o targets.
4900 ($(srcdir)/copying.c): avoid backslash-newline after comment
4901 sign (@maintainer_mode_true@).
4902 (HFILES_NO_SRCDIR): Regenerate.
4903 (generated_files): New variable.
4904 (all_gdbtk_cflags): Likewise.
4905 (.c.o): Rewrote.
4906 (init.o, version.o, copying.o): Remove.
4907 (distclean): Remove DEPDIR.
4908 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4909 printcmd.o, procfs.o, v850ice.o): Rewrite.
4910 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4911 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4912 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4913 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4914 gdbtk-wrapper.o): Likewise.
4915 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4916 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4917 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4918 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4919 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4920 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4921 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4922 tui-wingeneral.o, tui-winsource.o): Likewise.
4923 (all_object_files): New variable.
4924 ($(all_object_files)): New target.
4925 Include dependency files, when using GNU Make.
4926
12ab8a60
UW
49272008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4928
4929 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4930 the valid bit set. Ensure display order respects partial
4931 order defined by dependency bits.
4932
6536cc32
DA
49332008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4934
4935 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4936 setup.
4937
f73a15e4
MK
49382008-08-06 Mark Kettenis <kettenis@gnu.org>
4939
4940 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4941 OpenBSD 4.3.
4942
d57a3c85
TJB
49432008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4944 Tom Tromey <tromey@redhat.com>
4945 Thiago Jung Bauermann <bauerman@br.ibm.com>
4946 Doug Evans <dje@google.com>
4947
4948 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4949 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4950 PYTHON_CFLAGS): New.
4951 (python_h, python_internal_h): New.
4952 (cli-script.o): Depend on python.h
4953 (python.o, python-utils.o): New.
4954 * cli/cli-script.c (print_command_lines): Handle python_control.
4955 (execute_control_command): Handle python_control.
4956 (execute_control_command_untraced): New function.
4957 (while_command): Call execute_control_command_untraced.
4958 (if_command): Likewise.
4959 (get_command_line): Remove static attribute.
4960 (read_next_line): Handle "python".
4961 (recurse_read_control_structure): Handle python_control.
4962 (read_command_lines): Handle python_control.
4963 Include python.h.
4964 * cli/cli-script.h (get_command_line): Add prototype.
4965 (execute_control_command_untraced): Likewise.
4966 * configure.ac: Add --with-python.
4967 * defs.h (enum command_control_type) <python_control>: New
4968 constant.
4969 * python/python-internal.h: New file.
4970 * python/python.c: New file.
4971 * python/python.h: New file.
4972 * python/python-utils.c: New file.
4973 * NEWS: Mention Python scripting support and its new commands.
4974
5141027d
UW
49752008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4976
4977 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4978
353cfe88
PM
49792008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4980
f1648876 4981 * MAINTAINERS (Write After Approval): Add self.
353cfe88 4982
d6b74ac4
PM
49832008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4984
4985 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4986 (insert_breakpoint_locations): Likewise.
4987
ef0d312a
MS
49882008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4989
4990 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4991 breakpoint.
4992 (set_longjmp_breakpoint): Likewise.
4993
fb6d93b2
UW
49942008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4995
4996 PR build/2490
4997 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4998 defined.
4999
e6ad058a
TT
50002008-08-05 Tom Tromey <tromey@redhat.com>
5001
5002 * bcache.c (deprecated_bcache_added): Initialize obstack.
5003 (bcache_xmalloc): Don't initialize obstack.
5004 (bcache_xfree): Conditionally free obstack.
5005 (bcache_memory_used): Update.
5006
11d31d94
TT
50072008-08-05 Tom Tromey <tromey@redhat.com>
5008
5009 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
5010 bcache_full.
5011 (append_psymbol_to_list): Accept a const pointer.
5012 (add_psymbol_to_list): Fix const correctness.
5013 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
5014 (bcache_full): Declare.
5015 * bcache.c (bcache_data, deprecated_bcache): Remove.
5016 (bcache): Use bcache_full.
5017 (bcache_full): Rename from deprecated_bcache_added. Change return
5018 type.
5019
5be973eb
SS
50202008-08-04 Stan Shebs <stan@codesourcery.com>
5021
5022 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
5023 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
5024 (enable_break): Remove test of BKPT_AT_SYMBOL.
5025
5062cc19
KS
50262008-08-02 Keith Seitz <keiths@redhat.com>
5027
5028 * acinclude.m4: Include ../config/tcl.m4 to pick up
5029 standard Tcl configury bits.
5030 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
5031 * configure.ac: Don't check if ../itcl exists when building
5032 gdbtk. It could be installed.
5033 Rewrite gdbtk configury to allow for using system-supplied
f1648876 5034 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
5035 itcl and itk.
5036 * Makefile.in: Remove everything related to itcl and itk.
5037 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
5038 configure.ac.
5039 Remove v850ice.o build rule.
5040 (ALL_TCL_CFLAGS): New convenience defintion. Change all
5041 gdbtk sources to use it.
5042 * configure: Regenerate.
f1648876 5043
6d76a53d
SS
50442008-07-31 Stan Shebs <stan@codesourcery.com>
5045
5046 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
5047
ed7c5e43
SS
50482008-07-30 Stan Shebs <stan@codesourcery.com>
5049
5050 * objfiles.c (TARGET_KEEP_SECTION): Remove.
5051 (add_to_objfile_sections): Remove use.
5052
22ad7fee
TT
50532008-07-29 Tom Tromey <tromey@redhat.com>
5054
5055 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
5056 (lookup_cmd_composition): Likewise.
5057
d5529a84
TT
50582008-07-29 Tom Tromey <tromey@redhat.com>
5059
5060 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
5061 dead code. Fix indentation.
5062
938f4ca8
SS
50632008-07-29 Stan Shebs <stan@codesourcery.com>
5064
5065 * main.c (captured_main): Remove long-unused #if 0 blocks.
5066
7f4b89d1
TT
50672008-07-28 Tom Tromey <tromey@redhat.com>
5068
5069 * annotate.h (deprecated_annotate_starting_hook): Remove.
5070 (deprecated_annotate_stopped_hook): Remove.
5071 (deprecated_annotate_exited_hook): Remove.
5072 * Makefile.in (annotate.o): Depend on observer_h.
5073 * top.c (deprecated_delete_breakpoint_hook): Remove.
5074 (deprecated_create_breakpoint_hook): Likewise.
5075 (deprecated_modify_breakpoint_hook): Likewise.
5076 * interps.c (clear_interpreter_hooks): Update for removed hooks.
5077 * breakpoint.c (mention): Don't call removed hook.
5078 (delete_breakpoint): Likewise.
5079 (disable_breakpoint): Likewise.
5080 (do_enable_breakpoint): Likewise.
5081 * annotate.c: Include observer.h.
5082 (breakpoint_changed): Change type of argument.
5083 (_initialize_annotate): Register observers.
5084 (deprecated_annotate_starting_hook): Remove.
5085 (deprecated_annotate_stopped_hook): Remove.
5086 (deprecated_annotate_exited_hook): Remove.
5087 (annotate_starting): Update for hook removal.
5088 (annotate_stopped): Likewise.
5089 (annotate_exited): Likewise.
5090 * defs.h (deprecated_delete_breakpoint_hook): Remove.
5091 (deprecated_create_breakpoint_hook): Likewise.
5092 (deprecated_modify_breakpoint_hook): Likewise.
5093
8641e682
TT
50942008-07-28 Tom Tromey <tromey@redhat.com>
5095
5096 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
5097
064ef605
DJ
50982008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5099
5100 * configure.ac: Check for the GNU/Linux ptrace signature.
5101 * configure: Regenerated.
5102
57380f4e
DJ
51032008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5104
5105 * linux-nat.c (resume_callback): Add more debugging output.
5106 (linux_nat_has_pending_sigint): New function, based on
5107 linux_nat_has_pending.
5108 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
5109 (stop_wait_callback): Remove flush_mask handling. Honor
5110 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
5111 to recursive calls.
5112 (linux_nat_has_pending, flush_callback): Remove.
5113 (linux_nat_filter_event): Check for ignore_sigint.
5114 (linux_nat_wait): Remove flush_mask support and call to
5115 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
5116 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
5117
e09490f1
DJ
51182008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5119
5120 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
5121 report events from resumed threads.
5122
e38d4e1a
DJ
51232008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5124
5125 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
5126 (mips_linux_init_abi): Set tdep->syscall_next_pc.
5127 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
5128 mips-tdep.h.
5129 (mips32_next_pc): Handle the syscall instruction.
5130 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
5131 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
5132
fa8de41e
TT
51332008-07-26 Tom Tromey <tromey@redhat.com>
5134
5135 PR gdb/1158:
5136 * valops.c (value_struct_elt): Treat function-valued field as a
5137 static method.
5138
ccb3ac8a
TT
51392008-07-26 Tom Tromey <tromey@redhat.com>
5140
5141 PR gdb/1136:
5142 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
5143 longer tokens first.
5144
d72314c6
VP
51452008-07-26 Vladimir Prus <vladimir@codesourcery.com>
5146
5147 Kill cmd_async_ok.
f1648876
AS
5148 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
5149 (get_cmd_async_ok): Remove.
5150 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
5151 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
5152 * infcmd.c (_initialize_infcmd): Likewise.
5153 * thread.c (_initialize_thread): Likewise.
d72314c6 5154
5b68030f
JM
51552008-07-25 Joseph Myers <joseph@codesourcery.com>
5156
5157 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
5158 128-bit long doubles in even-odd pairs of FPRs. Do not
5159 right-align float arguments for big-endian.
5160 (mips_n32n64_return_value): Apply return value convention for
5161 structs containing one or two floating-point values to soft-float
5162 as well as hard-float. Handle 128-bit long doubles in such
5163 structs.
5164 (mips_o32_push_dummy_call): Only skip one integer register for a
5165 float argument passed in an FPR.
5166
383f836e
TT
51672008-07-25 Tom Tromey <tromey@redhat.com>
5168
5169 * tui/tui-hooks.c: Include observer.h.
5170 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
5171 Remove.
5172 (tui_bp_created_observer, tui_bp_deleted_observer,
5173 tui_bp_modified_observer): New globals.
5174 (tui_install_hooks): Use observers, not events.
5175 (tui_remove_hooks): Likewise.
5176 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
5177 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
5178 globals.
5179 (breakpoint_notify): Check mi_can_breakpoint_notify.
5180 (breakpoint_hooks): Remove.
5181 (mi_cmd_break_insert): Attach observers. Don't use events.
5182 * tracepoint.c: Include observer.h, not gdb-events.h.
5183 (tracepoint_operation, trace_pass_command): Notify observer.
5184 * interps.c: Don't include gdb-events.h.
5185 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
5186 * gdbarch.c: Rebuild.
5187 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
5188 (deprecated_current_gdbarch_select_hack): Notify observer.
5189 * breakpoint.h: Don't include gdb-events.h.
5190 * breakpoint.c: Don't include gdb-events.h.
5191 (condition_command): Notify observer.
5192 (commands_command): Likewise.
5193 (commands_from_control_command): Likewise.
5194 (mention, delete_breakpoint, set_ignore_count): Likewise.
5195 (disable_breakpoint, do_enable_breakpoint): Likewise.
5196 * Makefile.in (gdb_events_h): Remove.
5197 (breakpoint_h): Update.
5198 (COMMON_OBS): Remove gdb-events.o.
5199 (gdb-events.o): Remove.
5200 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
5201 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
5202 * gdb-events.c: Remove.
5203 * gdb-events.h: Remove.
5204 * gdb-events.sh: Remove.
5205
60e569b9
PA
52062008-07-24 Pedro Alves <pedro@codesourcery.com>
5207
5208 * remote.c (remote_threads_extra_info): Don't query the remote
5209 server about info on the internally added main thread.
5210
a6a7f2a5
AR
52112008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
5212
5213 * nto-procfs.c (procfs_attach): Populate initial thread list.
5214 (procfs_wait): Return new pid, built from the inferior status.
5215
e63e4db2
TJB
52162008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
5217
5218 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
5219 * configure: Regenerate.
5220
14ef7606
AR
52212008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
5222
5223 * nto-procfs.c (procfs_xfer_memory): Changed signature.
5224 (procfs_resume): Workaround for dereferencing type-punned pointer
5225 warning.
f1648876 5226 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
5227 correct.
5228 * nto-tdep.h (nto_parse_redirection): Likewise.
5229
cfd8ab24
SS
52302008-07-21 Stan Shebs <stan@codesourcery.com>
5231
5232 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
5233 * gdbarch.sh: Adjust comment to refer to
5234 in_solib_dynsym_resolve_code().
5235 * gdbarch.h, gdbarch.c: Update.
5236 * solib-osf.c: Ditto.
5237 * infrun.c: Ditto.
5238 (handle_inferior_event): Use in_solib_dynsym_resolve_code
5239 unconditionally.
5240 * config/mips/nm-irix5.h: Remove undef of
5241 IN_SOLIB_DYNSYM_RESOLVE_CODE.
5242
781b42b0
TT
52432008-07-21 Tom Tromey <tromey@redhat.com>
5244
5245 * symfile.c (reread_symbols): Don't pass argument to observer.
5246 * exec.c (exec_file_attach): Don't pass argument to observer.
5247 * ada-lang.c (ada_executable_changed_observer): Remove argument.
5248 * symtab.c (symtab_observer_executable_changed): Remove argument.
5249 * observer.sh: Handle functions with no arguments.
5250
a366c65a 52512008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 5252 Chris Demetriou <cgd@google.com>
a366c65a
CD
5253
5254 * elfread.c (elf_symfile_segments): Fix the check that each loadable
5255 section fits within an ELF segment to handle ELF segments that hit
5256 the end of the address space.
5257
073d253f
CD
52582008-07-20 Chris Demetriou <cgd@google.com>
5259
5260 * MAINTAINERS (Write After Approval): Add self.
5261
d7d9f01e
TT
52622008-07-18 Tom Tromey <tromey@redhat.com>
5263
5264 PR gdb/855:
5265 * NEWS: Add entry for macro commands.
5266 * Makefile.in (macrocmd.o): Add gdb_string.h.
5267 * macroscope.h (user_macro_scope): Declare.
5268 (default_macro_scope): Update documentation.
5269 (macro_user_macros): Declare.
5270 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
5271 Use user_macro_scope.
5272 (null_macro_lookup): Remove.
5273 * macrotab.h (macro_callback_fn): Declare.
5274 (macro_for_each): Likewise.
5275 (macro_allow_redefinitions): Likewise.
5276 * macrotab.c (foreach_macro): New function
5277 (macro_for_each): Likewise.
5278 (struct macro_table) <redef_ok>: New field.
5279 (macro_allow_redefinitions): New function.
5280 (new_macro_table): Update.
5281 (macro_define_function): Likewise.
5282 (macro_define_object): Likewise.
5283 * macroscope.c (user_macro_scope): New function.
5284 (default_macro_scope): Use it.
5285 (macro_user_macros): New global.
5286 (standard_macro_lookup): Look in macro_user_macros.
5287 (_initialize_macroscope): New function.
5288 * macroexp.h (macro_is_whitespace, macro_is_digit,
5289 macro_is_identifier_nondigit): Declare.
5290 * macroexp.c (macro_is_whitespace): Rename. No longer static.
5291 (macro_is_digit): Likewise.
5292 (macro_is_identifier_nondigit): Likewise.
5293 (get_identifier): Update.
5294 (get_pp_number): Likewise.
5295 (get_token): Likewise.
5296 * macrocmd.c (skip_ws): New function.
5297 (extract_identifier): Likewise.
5298 (free_macro_definition_ptr): Likewise.
5299 (user_macros): Remove.
5300 (macro_define_command): Implement.
5301 (_initialize_macrocmd): Update.
5302 (macro_undef_command): Implement.
5303 (print_one_macro): New function.
5304 (macro_list_command): Implement.
5305
0f72fb1c
JM
53062008-07-18 Joseph Myers <joseph@codesourcery.com>
5307
5308 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
5309 in BFD ELF check.
5310 * configure: Regenerate.
5311
7c6467a4
PP
53122008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5313
5314 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
5315
680b56ce
AS
53162008-07-15 Andreas Schwab <schwab@suse.de>
5317
5318 * valops.c (value_cast_pointers): Follow typedefs when checking
5319 result of coercion.
5320
7f0df278
DJ
53212008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5322
5323 * block.c (block_function): Renamed to ...
5324 (block_linkage_function): ... this. All callers changed.
5325 * block.h (block_function): Renamed to ...
5326 (block_linkage_function): ... this.
5327
ba2c6aec
DJ
53282008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5329
5330 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5331
d56907c1
DJ
53322008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5333
5334 * frame.c (frame_sp_unwind): Delete.
5335 (get_frame_sp): Do not use it.
5336 * frame.h (frame_sp_unwind): Delete prototype.
5337
f92aeb88
DJ
53382008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5339
5340 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5341
ad1193e7
DJ
53422008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5343
5344 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5345 * frame.c (frame_unwind_address_in_block): Delete.
5346 (get_frame_address_in_block): Do not use it. Check the type
5347 of the next frame first.
5348 (frame_cleanup_after_sniffer): Update comment.
5349 * frame.h (frame_unwind_address_in_block): Delete prototype.
5350 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5351
ef02daa9
DJ
53522008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5353
5354 * frame.c (frame_func_unwind): Delete.
5355 (get_frame_func): Do not use it.
5356 * frame.h (frame_func_unwind): Delete prototype.
5357 * hppa-tdep.c (hppa_frame_cache): Update comment.
5358 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5359
96e32df8
SS
53602008-07-14 Stan Shebs <stan@codesourcery.com>
5361
5362 * remote-sim.c (init_gdbsim_ops): Remove
5363 TARGET_REDEFINE_DEFAULT_OPS.
5364
ab8650a3
DJ
53652008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5366
5367 * findvar.c (read_var_value): Remove unused variable.
5368
8c90c137
LM
53692008-07-15 Luis Machado <luisgpm@br.ibm.com>
5370
5371 * infrun.c (handle_inferior_event): Tag threads as stopped
5372 before inserting breakpoints.
5373
4098af0f
HZ
53742008-07-15 Hui Zhu <teawater@gmail.com>
5375
5376 * MAINTAINERS: Added myself to section Write After Approval.
5377
7093c834
PP
53782008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5379
5380 PR gdb/2477
5381 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 5382
56514771
PA
53832008-07-14 Pedro Alves <pedro@codesourcery.com>
5384
5385 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5386 (i386_dicos_push_dummy_code): New.
5387 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5388 Register i386_dicos_push_dummy_code.
5389
74ed0bb4
MD
53902008-07-14 Markus Deuling <deuling@de.ibm.com>
5391
5392 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5393 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5394 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5395
5396 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5397 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5398 (mips_n32n64_fp_arg_chunk_p): Update caller.
5399
5400 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5401 (mips_n32n64_push_dummy_call): Update caller.
5402
5403 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5404 current_gdbarch.
5405 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5406 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5407
5408
5409 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5410 current_gdbarch.
5411 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5412 (mips_o64_push_dummy_call): Update caller.
5413
5414 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5415 (fp_register_arg_p, mips_dump_tdep): Update caller.
5416
5417 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5418 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5419
5420 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5421 current_gdbarch.
5422 (mips32_scan_prologue): Update caller.
5423
5424 (heuristic_proc_start): Add gdbarch as parameter. Replace
5425 current_gdbarch.
5426 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5427
5428 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5429 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5430 the current architecture. Update call to getregs_supplies.
5431 (getregs_supplies): Add gdbarch as parameter and replace
5432 current_gdbarch.
5433
5434 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5435 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5436 NBSD_MIPS_JB_ELEMENT_SIZE.
5437 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5438 replace current_gdbarch.
5439
5440 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5441 current_gdbarch.
5442 (mips_fetch_registers, mips_store_registers): Update call
5443 to mips_map_regno.
5444 (mips_load): Use get_regcache_arch to get at the current_architecture
5445 and replace current_gdbarch.
5446
0c501536
PA
54472008-07-13 Pedro Alves <pedro@codesourcery.com>
5448
5449 * thread.c (restore_selected_frame): On fail to restore, select
5450 the innermost frame, and don't crash when warning the user.
5451
db009c8a
JB
54522008-07-13 Hui Zhu <teawater@gmail.com>
5453
5454 * symtab.c (expand_line_sal): Fix a memory leak.
5455
0ffe5012
PA
54562008-07-13 Pedro Alves <pedro@codesourcery.com>
5457
5458 * utils.c (struct continuation): Define as inheriting struct
5459 cleanup.
5460 (add_continuation, do_all_continuations)
5461 (discard_all_continuations, add_intermediate_continuation)
5462 (do_all_intermediate_continuations)
5463 (discard_all_intermediate_continuations): Adjust.
5464
dbba8251
VP
54652008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5466
5467 Skip varobj in running threads.
680b56ce
AS
5468 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5469 thread is not stopped, skip the varobj.
5470 * Makefile.in: Update dependencies.
dbba8251 5471
e3d6cd5f
VP
54722008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5473
5474 Enable all commands while inferiour is running
680b56ce
AS
5475 * mi/mi-main.c (mi_cmd_execute): Don't check if
5476 inferiour is executing.
e3d6cd5f 5477
b10a37b1
VP
54782008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5479
5480 Allow all CLI command even if target is executing.
680b56ce
AS
5481 * gdb/top.c (execute_command_1): Don't check if the inferiour
5482 is running.
b10a37b1 5483
ea069267
VP
54842008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5485
5486 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5487 Fix printing of frame, when frame is wrong.
5488
cdc9523a
UW
54892008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5490
5491 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5492 backchain is unreadable.
5493
d5b25491
UW
54942008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5495
5496 * spu-linux-nat.c: Include "gdbthread.h".
5497 (spu_child_post_startup_inferior): Register main thread.
5498 (spu_child_post_attach): Likewise.
5499 * Makefile.in (spu-linux-nat.o): Update dependencies.
5500
604ead4a
PA
55012008-07-12 Pedro Alves <pedro@codesourcery.com>
5502
5503 Rewrite continuations internals on top of cleanups and plug
5504 continuation arguments leaks.
5505
5506 * defs.h (struct continuation): Make it opaque.
5507 (add_continuation, add_intermediate_continuation): Drop the int
5508 argument of the continuation hook argument. Add
5509 continuation_free_args argument.
5510 (do_all_continuations, do_all_intermediate_continuations): Drop
5511 the error_p argument.
5512
5513 * utils.c (add_continuation): Drop the int argument of the
5514 continuation hook argument. Add continuation_free_args argument.
5515 Reimplement on top of cleanups.
5516 (do_all_continuations): Drop error argument. Reimplement on top
5517 of cleanups.
5518 (discard_all_continuations): Reimplement on top of cleanups.
5519 (add_intermediate_continuation): Drop the int argument of the
5520 continuation hook argument. Add continuation_free_args argument.
5521 Reimplement on top of cleanups.
5522 (do_all_intermediate_continuations): Drop error argument.
5523 Reimplement on top of cleanups.
5524 (discard_all_intermediate_continuations): Reimplement on top of
5525 cleanups.
5526
5527 * breakpoint.c (until_break_command_continuation): Drop error
5528 argument. Add xfree as continuation argument deleter.
5529
5530 * inf-loop.c (inferior_event_handler): On error, discard all
5531 continuations. Adjust to new do_all_intermediate_continuations
5532 and do_all_continuations interfaces.
5533
5534 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5535 Pass xfree as continuation argument deleter.
5536 (finish_command_continuation): Drop error_p argument. Adjust.
5537 (finish_command_continuation_free_arg): New.
5538 (finish_command): Pass finish_command_continuation_free_arg as
5539 continuation argument deleter. Adjust to new do_all_continuations
5540 interfaces.
5541 (attach_command_continuation): Drop error_p argument.
5542 (attach_command_continuation_free_args): New.
5543 (attach_command): Pass attach_command_continuation_free_args as
5544 continuation argument deleter.
5545
5546 * interps.c (interp_set): Adjust to new do_all_continuations
5547 interfaces.
5548
5549 * event-top.c (stdin_event_handler): In error, also discard the
5550 intermediate continuations.
5551
bfec99b2
PA
55522008-07-12 Pedro Alves <pedro@codesourcery.com>
5553
5554 Replace struct continuation_args by void* and per command structs.
5555
5556 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5557
5558 * breakpoint.c (struct until_break_command_continuation_args):
5559 New.
5560 (until_break_command_continuation): Take a void* instead of a
5561 continuations_arg. Adjust.
5562 (until_break_command): Adjust to use struct
5563 until_break_command_continuation_args instead of struct
5564 continuation_arg.
5565
5566 * infcmd.c (struct step_1_continuation_args): New.
5567 (step_1_continuation): Take a void* instead of a
5568 continuations_arg. Adjust to use struct step_1_continuation_args.
5569 (step_once): Adjust to use struct step_1_continuation_args.
5570
5571 (struct finish_command_continuation_args): New.
5572 (finish_command_continuation): Take a void* instead of a
5573 continuations_arg. Adjust to use struct
5574 finish_command_continuation_args.
5575 (finish_command): Adjust to use struct
5576 finish_command_continuation_args.
5577 (struct attach_command_continuation_args): New.
5578 (attach_command_continuation): Take a void* instead of a
5579 continuations_arg. Adjust to use struct
5580 attach_command_continuation_args.
5581 (attach_command): Adjust to use struct
5582 attach_command_continuation_args.
5583
5584 * defs.h (struct continuation_arg): Delete.
5585 (struct continuation): Replace the struct continuation_arg*
5586 parameter of continuation_hook by a void*. Replace "arg_list"
5587 member by a new "args" member with void* type.
5588 (add_continuation, add_intermediate_continuation): Replace struct
5589 continuation_arg type usages by void* usages.
5590
5591 * utils.c (add_continuation, do_all_continuations)
5592 (add_intermediate_continuation)
5593 (do_all_intermediate_continuations): Replace struct
5594 continuation_arg type usages by void* usages. Pass "args" instead
5595 of "arg_list".
5596
2afb61aa
PA
55972008-07-12 Pedro Alves <pedro@codesourcery.com>
5598
5599 * infrun.c (struct thread_stepping_state): Delete sal member.
5600 (init_thread_stepping_state): Add local sal. Use it instead of
5601 tss->sal.
5602 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5603 tss->sal.
5604 (step_into_function): Add local stop_func_sal. Use it instead of
5605 tss->sal.
5606
77ebaa5a
VP
56072008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5608
5609 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5610 * infcmd.c (continue_1): New, extracted from
5611 (continue_command): ...here.
5612 (interrupt_target_1): New, extracted from
5613 (interrupt_target_command): ...here.
5614 * inferior.h (continue_1, interrupt_target_1): New.
5615 * mi/mi-main.c (mi_cmd_exec_continue)
5616 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5617
1e92afda
VP
56182008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5619
5620 Implement --thread and --frame.
5621 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5622 * thread.c (find_thread_id): Make non-static.
5623 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5624 thread and frame, if necessary.
5625 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5626 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5627
d56b7306
VP
56282008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5629
5630 * infrun.c (resume): Discard cleanups on early exit path.
5631
b1a268e5
VP
56322008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5633
680b56ce 5634 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5635 were stopped.
5636
90139f7d
VP
56372008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5638
5639 Report thread state in -thread-info output.
680b56ce 5640 * thread.c (print_thread_info): Add new field "state".
90139f7d 5641
a0d21d28
PA
56422008-07-11 Pedro Alves <pedro@codesourcery.com>
5643
5644 * infrun.c (handle_inferior_event): Also ignore a
5645 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5646
14032a66
TT
56472008-07-11 Tom Tromey <tromey@redhat.com>
5648
5649 * completer.c (complete_line_internal): New function, from
5650 complete_line. Add 'for_help' parameter.
5651 (complete_line): Use it.
5652 (command_completer): Move later. Rewrite.
5653
65fc9b77
PA
56542008-07-11 Pedro Alves <pedro@codesourcery.com>
5655
5656 * thread.c (thread_apply_command): Move making the cleanup out of
5657 the loop.
5658
4f8d22e3
PA
56592008-07-11 Pedro Alves <pedro@codesourcery.com>
5660
5661 Exited threads.
5662
5663 * thread.c (enum thread_state): New.
5664 (thread_state main_thread_running): Delete, in favor of...
5665 (thread_state main_thread_state): ... this. Update throughout.
5666 (clear_thread_inferior_resources): New, split from free_thread.
5667 (free_thread): Call clear_thread_inferior_resources.
5668 (init_thread_list): Set main thread to stopped state.
5669 (add_thread_silent): Take care of PTID reuses.
5670 (delete_thread): If deleting inferior_ptid or a thread with
5671 refcount > 0, mark it as exited, but still keep it in the list.
5672 Only notify of thread exits, if we haven't done so yet.
5673 (iterate_over_threads): Make it safe to delete threads while
5674 iterating over them.
5675 (do_captured_list_thread_ids): Don't account for exited threads.
5676 (thread_alive): Check for the THREAD_EXITED state, and don't set
5677 ptid to -1 on exited threads.
5678 (set_running): Update to account for extra possible states.
5679 (is_thread_state): New.
5680 (is_stopped, is_exited): New.
5681 (is_running): Implement in terms of is_thread_state.
5682 (any_running): Update.
5683 (print_thread_info): Update. Account for exited threads. Don't
5684 warn about missed frame restoring here, its done in the cleanup.
5685 (switch_to_thread): Don't read from a thread that has gone.
5686 (restore_current_thread): In non-stop mode, do a full context
5687 switch.
5688 (restore_selected_frame): Add a frame_level argument. Rewrite.
5689 (struct current_thread_cleanup): Add selected_frame_level and
5690 was_stopped members.
5691 (do_restore_current_thread_cleanup): Check if thread was stopped
5692 and still is, and if the target has registers, stack and memory
5693 before restoring the selected frame. Don't delete the cleanup
5694 argument here.
5695 (restore_current_thread_cleanup_dtor): New.
5696 (make_cleanup_restore_current_thread): Remove all arguments.
5697 Rewrite.
5698 (thread_apply_all_command): Update. Prune threads.
5699 (thread_apply_command): Update.
5700 (thread_command): Account for currently selected exited thread.
5701 (do_captured_thread_select): Check for a running thread. Prune
5702 threads.
5703 (_initialize_thread): Make "info threads", "thread", "thread
5704 apply", and "thread apply all" appliable without a selected thread.
5705 * gdbthread.h (struct thread_info): Replace running_ by state_.
5706 Add refcount.
5707 (is_exited, is_stopped): Declare.
5708 (make_cleanup_restore_current_thread): Remove all arguments.
5709 * infrun.c: Include "event-top.h".
5710 (fetch_inferior_event): In non-stop mode, restore selected thread
5711 and frame after handling the event and running breakpoint
5712 commands. Display GDB prompt if needed.
5713 (normal_stop): In non-stop mode, don't print thread switching
5714 notice.
5715 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5716 (get_cmd_no_selected_thread_ok): New.
5717 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5718 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5719 Declare.
5720 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5721 no-selected-thread ok.
5722 * top.c (execute_command): Check for non no-selected-thread-ok
5723 commands.
5724 * linux-nat.c (struct saved_ptids, threads_to_delete)
5725 (record_dead_thread, prune_lwps): Delete.
5726 (exit_lwp): Unconditionally delete thread.
5727 (linux_nat_resume): Remove prune_lwps call.
5728 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5729 of is_running. Adjust to make_cleanup_restore_current_thread
5730 interface change.
5731 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5732 selected thread has exited.
5733 * inf-loop.c (inferior_event_handler): Don't display the prompt
5734 here.
5735 * varobj.c (c_value_of_root): Update.
5736 * defs.h (make_cleanup_dtor): Declare.
5737 * utils.c (make_cleanup_dtor): New.
5738
5739 * Makefile.in (infrun.o): Depend on $(event_top_h).
5740
8cae4b3f
PA
57412008-07-11 Pedro Alves <pedro@codesourcery.com>
5742
5743 Add "continue -a" and "interrupt -a" options for non-stop mode.
5744
5745 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5746 (continue_command): Add "-a" option.
5747 (interrupt_target_command): Add "-a" option.
5748 (_initialize_infcmd): Add extend help of continue and interrupt
5749 command to mention the new "-a" option. Mark "continue" async ok.
5750
bf250677
DE
57512008-07-10 Doug Evans <dje@google.com>
5752
5753 Add "set print symbol-loading on|off".
5754 * NEWS: Document new option.
5755 * symfile.h (print_symbol_loading): Declare.
5756 * symfile.c (print_symbol_loading): New global.
5757 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5758 from ..." if print_symbol_loading.
5759 (_initialize_symfile): Add set/show print symbol-loading.
5760 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5761 if print_symbol_loading.
5762
4c28f408
PA
57632008-07-10 Pedro Alves <pedro@codesourcery.com>
5764
5765 Non-stop linux native.
5766
5767 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5768 here.
5769 (get_pending_status): Implement non-stop mode.
5770 (linux_nat_detach): Stop threads before detaching.
5771 (linux_nat_resume): In non-stop mode, always resume only a single
5772 PTID.
5773 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5774 add new lwp to GDB's thread table, and mark as running, executing
5775 and stopped appropriately.
5776 (linux_nat_filter_event): Don't assume there are other running
5777 threads when a thread exits.
5778 (linux_nat_wait): Mark the main thread as running and executing.
5779 In non-stop mode, don't stop all lwps.
5780 (linux_nat_kill): Stop lwps before killing them.
5781 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5782 alive.
5783 (send_sigint_callback): New.
5784 (linux_nat_stop): New.
5785 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5786
5787 * linux-nat.h (thread_db_attach_lwp): Declare.
5788
5789 * linux-thread-db.c (thread_get_info_callback): Check for new
5790 threads if we have none.
5791 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5792 stopped lwp. Check for new threads if we have none.
5793 (thread_db_attach_lwp): New.
5794 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5795 (check_event): Set proc_handle.pid to the stopped lwp.
5796 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5797 lwp available, bail out if there is none.
5798
5799 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5800 PTRACE_KILL.
5801
0aef6ba2
KB
58022008-07-10 Kevin Buettner <kevinb@redhat.com>
5803
a4fafde3
KB
5804 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5805 `current_pc' from CORE_ADDR to ULONGEST.
5806
0aef6ba2
KB
5807 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5808 gdbsim_stop().
5809
10568435
JK
58102008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5811
5812 * NEWS (New commands): Mention "set disable-randomization".
5813 * configure.ac: Add check for HAVE_PERSONALITY and
5814 HAVE_DECL_ADDR_NO_RANDOMIZE.
5815 * configure, config.in: Regenerate.
5816 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5817 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5818 ADDR_NO_RANDOMIZE.
5819 (disable_randomization, show_disable_randomization)
5820 (set_disable_randomization): New.
5821 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5822 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5823 variable DISABLE_RANDOMIZATION.
5824 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5825 DISABLE_RANDOMIZATION.
5826
f9c72d52
PA
58272008-07-09 Pedro Alves <pedro@codesourcery.com>
5828
5829 Adjust all targets to new target_stop interface.
5830
5831 * gnu-nat.c (gnu_stop): Add ptid argument.
5832 * go32-nat.c (go32_stop): Add ptid argument.
5833 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5834 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5835 * monitor.c (monitor_stop): Add ptid argument.
5836 (monitor_open): Pass inferior_ptid to monitor_stop.
5837 (monitor_interrupt): Pass inferior_ptid to target_stop.
5838 (monitor_stop): Add ptid argument.
5839 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5840 (procfs_create_inferior): Add ptid argument.
5841 * procfs.c (procfs_stop): Add ptid argument.
5842 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5843 * remote-sim.c (gdbsim_stop): Add ptid argument.
5844 * sol-thread.c (sol_thread_stop): Add ptid argument.
5845 * win32-nat.c (win32_stop): Add ptid argument.
5846
94cc34af
PA
58472008-07-09 Pedro Alves <pedro@codesourcery.com>
5848
5849 Non-stop inferior control.
5850
5851 * infrun.c (resume): In non-stop mode, always resume just one
5852 thread.
5853 (proceed): Don't call prepare_to_proceed in non-stop mode.
5854 (fetch_inferior_event): In non-stop mode, switch context before
5855 handling the event.
5856 (error_is_running, ensure_not_running): New.
5857 (handle_inferior_event): In non-stop mode: Mark only the event
5858 thread as stopped. Require that the target module manages adding
5859 threads to the thread list. Assert that there isn't a
5860 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5861 (normal_stop): Only mark not-running if inferior hasn't exited.
5862 In non-stop mode, only mark the event thread.
5863
5864 * thread.c:Include "cli/cli-decode.h".
5865 (print_thread_info): Don't read from a running thread.
5866 Output "(running)" if thread is running.
5867 (switch_to_thread): Don't read stop_pc if thread is executing.
5868 (do_restore_current_thread_cleanup): Don't write to a running
5869 thread.
5870 (thread_apply_all_command): Don't read from a running thread. In
5871 non-stop mode, do a full context-switch instead of just switching
5872 threads.
5873 (thread_apply_command): In non-stop mode, do a full context-switch
5874 instead of just switching threads.
5875 (do_captured_thread_select): Likewise. Inform user if selected
5876 thread is running.
5877 (_initialize_thread): Mark "info threads" and "thread" and
5878 async_ok.
5879
5880 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5881 unregister the target from the event loop.
5882
5883 * infcmd.c (continue_command, step_1, jump_command)
5884 (signal_command): Ensure the selected thread isn't running.
5885 (interrupt_target_command): In non-stop mode, interrupt only the
5886 selected thread.
5887
5888 * inferior.h (error_is_running, ensure_not_running): Declare.
5889
5890 * target.h (struct target_ops): Add ptid argument to the to_stop
5891 member.
5892 (target_stop): Add ptid_t argument.
5893
5894 * target.c (update_current_target): Add ptid argument to to_stop's
5895 type.
5896 (debug_to_stop): Add ptid_t argument.
5897 (debug_to_rcmd): Set to_stop_ptid.
5898
5899 * remote.c (remote_stop): Add ptid_t argument.
5900 (async_remote_interrupt): Add inferior_ptid to target_stop.
5901 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5902
5903 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5904
59f0d5d9
PA
59052008-07-09 Pedro Alves <pedro@codesourcery.com>
5906
5907 Don't rely on ecs->wait_for_more.
5908
5909 * infrun.c (proceed): Clear the stepping state, set
5910 previous_inferior_ptid and clear infwait state.
5911 (wait_for_inferior): Don't clear the stepping state, set
5912 previous_inferior_ptid, or clear the infwait state here.
5913 (fetch_inferior_event): Don't clear the stepping state, set
5914 previous_inferior_ptid, or clear the infwait state here. Don't
5915 condition on wait_for_more.
5916
0d1e5fa7
PA
59172008-07-09 Pedro Alves <pedro@codesourcery.com>
5918
5919 Refactor infrun a bit.
5920
5921 * infrun.c (currently_stepping): Take a struct
5922 thread_stepping_state instead of an execution_control_state.
5923 (struct thread_stepping_state): New, split from
5924 execution_control_state.
5925 (gtss, tss): New globals.
5926 (proceed): Clear the stepping state, set previous_inferior_ptid
5927 and clear infwait state.
5928 (init_wait_for_inferior): Clear the stepping state,
5929 previous_inferior_ptid and infwait state.
5930 (waiton_ptid, infwait_state): New, split from
5931 execution_control_state.
5932 (struct execution_control_state): Members that persist through
5933 events moved out to either struct thred_stepping_state or made
5934 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5935 (wait_for_inferior, fetch_inferior_event): Use local
5936 execution_control_state. Update to execution_control_state split.
5937 (init_execution_control_state): Adjust.
5938 (init_thread_stepping_state): New, extracted from
5939 init_execution_control_state.
5940 (context_switch): Take a ptid instead of an
5941 execution_control_state.
5942 (context_switch_to): Adjust.
5943 (adjust_pc_after_break): Adjust.
5944 (init_infwait_state): New.
5945 (handle_inferior_event): Adjust.
5946
a474d7c2
PA
59472008-07-09 Pedro Alves <pedro@codesourcery.com>
5948 Vladimir Prus <vladimir@codesourcery.com>
5949
5950 Per-thread commands.
5951
5952 * gdbthread.h: Remove unneeded forward declarations.
5953 Include "inferior.h".
5954 (struct thread_info): Add continuations,
5955 intermediate_continuations, proceed_to_finish, step_over_calls,
5956 stop_step, step_multi and stop_signal members.
5957 (save_infrun_state): Add continuations,
5958 intermediate_continuations, proceed_to_finish, step_over_calls,
5959 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5960 (load_infrun_state): Add continuations,
5961 intermediate_continuations, proceed_to_finish, step_over_calls,
5962 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5963
5964 * thread.c (load_infrun_state): In non-stop mode, load
5965 continuations, intermediate_continuations, proceed_to_finish,
5966 step_over_calls, stop_step, step_multi and stop_signal.
5967 (save_infrun_state): Store continuations,
5968 intermediate_continuations, proceed_to_finish, step_over_calls,
5969 stop_step, step_multi, stop_signal and stop_bpstat.
5970 (save_infrun_state): Store continuations,
5971 intermediate_continuations, proceed_to_finish, step_over_calls,
5972 stop_step, step_multi, stop_signal and stop_bpstat.
5973 (free_thread): Clear The thread's stop_bpstat.
5974
5975 * inferior.h (context_switch_to): Declare.
5976
5977 * infrun.c (ecss): New global.
5978 (context_switch): Context switch continuations,
5979 intermediate_continuations, proceed_to_finish, step_over_calls,
5980 stop_step, step_multi, stop_signal and stop_bpstat.
5981 (wait_for_inferior): Use global ecss.
5982 (async_ecss, async_ecs): Delete.
5983 (fetch_inferior_event): Use global ecss.
5984 (context_switch_to): New.
5985
5986 * top.c (execute_command): In non-stop, only check if the current
5987 thread is running, in all-stop, check if there's any thread
5988 running.
5989
5990 * breakpoint.c (bpstat_remove_breakpoint): New.
5991 (bpstat_remove_breakpoint_callback): New.
5992 (delete_breakpoint): Clear the stop_bpstats of all threads.
5993
5994 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5995 current thread is running, in all-stop, check if there's any
5996 thread running.
5997
5998 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5999
ad52ddc6
PA
60002008-07-09 Pedro Alves <pedro@codesourcery.com>
6001
6002 Add non_stop global.
6003
6004 * inferior.h (non_stop): Declare.
6005 * infrun.c (non_stop, non_stop_1): New.
6006 (set_non_stop, show_non_stop): New.
6007 (_initialize_infrun): Add "set/show non-stop" command.
6008
3a3e9ee3
PA
60092008-07-09 Pedro Alves <pedro@codesourcery.com>
6010
6011 Adjust fork/vfork/exec to pass ptids around.
6012
6013 * target.h (struct target_waitstatus): Store related_pid as a ptid.
6014 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
6015 Take a ptid_t.
6016 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
6017 type to ptid.
6018 * breakpoint.c (print_it_typical, bpstat_check_location)
6019 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
6020 (create_fork_vfork_event_catchpoint): Adjust.
6021 * infrun.c (fork_event): Change parent_pid and child_pid types to
6022 ptid.
6023 (follow_exec, inferior_has_forked, inferior_has_vforked)
6024 (inferior_has_execd): Take a ptid_t and don't trim it.
6025 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
6026 * linux-nat.c (linux_child_follow_fork): Adjust.
6027 * inf-ptrace.c (inf_ptrace_wait): Adjust.
6028 * inf-ttrace.c (inf_ttrace_wait): Adjust.
6029 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
6030
8ea051c5
PA
60312008-07-09 Pedro Alves <pedro@codesourcery.com>
6032
6033 Add "executing" property to threads.
6034
6035 * inferior.h (target_executing): Delete.
6036 * gdbthread.h (struct thread_info): Add executing_ field.
6037 (set_executing, is_executing): New.
6038 * thread.c (main_thread_executing): New.
6039 (init_thread_list): Clear it and also main_thread_running.
6040 (is_running): Return false if target has no execution.
6041 (any_running, is_executing, set_executing): New.
6042
6043 * top.c: Include "gdbthread.h".
6044 (target_executing): Delete.
6045 (execute_command): Replace target_executing check by any_running.
6046 * event-top.c: Include "gdbthread.h".
6047 (display_gdb_prompt, command_handler): Replace target_executing by
6048 is_running.
6049 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
6050 here. Replace target_executing by is_running.
6051 * infrun.c (handle_inferior_event): Mark all threads as
6052 not-executing.
6053 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
6054 here.
6055 * stack.c (get_selected_block): Return null if inferior is
6056 executing.
6057 * target.c (target_resume): Mark resumed ptid as executing.
6058 * breakpoint.c (until_break_command): Replace target_executing
6059 check by is_executing.
6060 * remote.c (remote_async_resume): Don't mark inferior as executing
6061 here.
6062 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
6063 by any_running.
680b56ce 6064
8ea051c5
PA
6065 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
6066 (mi_execute_async_cli_command): Replace target_executing by
6067 is_running.
6068
6069 * frame.c (get_current_frame): Error out if the current thread is
6070 executing.
6071 (has_stack_frames): New.
6072 (get_selected_frame, deprecated_safe_get_selected_frame): Check
6073 has_stack_frames.
680b56ce 6074
8ea051c5
PA
6075 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
6076 $(gdbthread_h).
6077
4487aabf
PA
60782008-07-09 Pedro Alves <pedro@codesourcery.com>
6079
6080 * symfile.c (load_command): Reopen the exec file and reread
6081 symbols before anything else.
6082
9de2bdd7
PA
60832008-07-09 Pedro Alves <pedro@codesourcery.com>
6084
6085 * remote-sim.c: Include gdbthread.h.
6086 (remote_sim_ptid): New global.
6087 (gdbsim_create_inferior): Silently add the main task to GDB's
6088 thread list.
6089 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
6090 task from GDB's thread list.
6091 (gdbsim_resume): Adjust to use remote_sim_ptid.
6092 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
6093 (init_gdbsim_ops): Register gdbsim_thread_alive and
6094 gdbsim_pid_to_str.
6095 (_initialize_remote_sim): Initialize remote_sim_ptid.
6096 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
6097
5e0b29c1
PA
60982008-07-09 Pedro Alves <pedro@codesourcery.com>
6099
6100 * monitor (monitor_ptid): New global.
6101 (monitor_open): Silently add the main task to GDB's thread list.
6102 (monitor_close, monitor_mourn_inferior): Silently delete the main
6103 task from GDB's thread list.
6104 (monitor_thread_alive, monitor_pid_to_str): New.
6105 (init_base_monitor_ops): Register monitor_thread_alive and
6106 monitor_pid_to_str.
6107 (_initialize_remote_monitors): Initialize monitor_ptid.
6108
6109 * gdbthread.h (delete_thread_silent): Declare.
6110 * thread.c (delete_thread): Rename to ...
6111 (delete_thread_1): ... this. Add "silent" parameter. If silent,
6112 don't do exit notifications.
6113 (delete_thread, delete_thread_silent): New, as wrappers to
6114 delete_thread_1.
6115
b60e7edf
PA
61162008-07-08 Pedro Alves <pedro@codesourcery.com>
6117
6118 * breakpoint.c (update_global_location_list): Add boolean
6119 "should_insert" argument. Only insert locations if caller told it
6120 too.
6121 (update_global_location_list_nothrow): Add boolean "should_insert"
6122 argument. Pass it to update_global_location_list.
6123 (insert_breakpoints, create_longjmp_breakpoint)
6124 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
6125 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6126 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
6127 (enable_watchpoints_after_interactive_call_stop)
6128 (set_momentary_breakpoint, create_breakpoints)
6129 (break_command_really, watch_command_1)
6130 (create_ada_exception_breakpoint, update_breakpoint_locations)
6131 (do_enable_breakpoint, enable_command): Pass true to
6132 update_global_location_list.
6133 (bpstat_stop_status, disable_overlay_breakpoints)
6134 (disable_watchpoints_before_interactive_call_start)
6135 (delete_breakpoint, disable_breakpoint, disable_command): Pass
6136 false to update_global_location_list.
6137 (update_breakpoints_after_exec): Don't temporarily disable
6138 always-inserted mode.
6139
25b22b0a
PA
61402008-07-08 Pedro Alves <pedro@codesourcery.com>
6141
6142 * breakpoint.c (mark_breakpoints_out): Make public.
6143 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
6144 here. Update comment.
6145 * breakpoint.h (mark_breakpoints_out): Declare.
6146
6147 * linux-nat.c (linux_handle_extended_wait): On
6148 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
6149 * inf-ttrace.c (inf_ttrace_wait): Likewise.
6150
cce9b6bf
PA
61512008-07-08 Pedro Alves <pedro@codesourcery.com>
6152
6153 * infrun.c (follow_exec): Reset shared libraries before adding the
6154 main exec file.
6155
3c3185ac
JK
61562008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6157
6158 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
6159
42f0bc8e
PA
61602008-07-07 Pedro Alves <pedro@codesourcery.com>
6161
6162 * i386-dicos-tdep.c: Include "inferior.h".
6163 (i386_dicos_frame_align): New.
6164 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
6165 dummy location ON_STACK.
6166 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
6167
b7292df3
JB
61682008-07-07 Joel Brobecker <brobecker@adacore.com>
6169
6170 * gstdint.h: New file.
6171
bb599c81
VP
61722008-07-05 Vladimir Prus <vladimir@codesourcery.com>
6173
6174 * mi/mi-interp.c (mi_on_resume): Don't try to report
6175 resumed thread it the thread list is empty.
6176
7f6a6314
PM
61772008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
6178
6179 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
6180 completer for set to filename_completer.
680b56ce 6181
7f6a6314
PM
6182 NEWS: Mention it.
6183
711eabed
VP
61842008-07-04 Vladimir Prus <vladimir@codesourcery.com>
6185
6186 Implement -target-attach.
680b56ce 6187 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 6188
db3b9a10
MS
61892008-06-21 Hui Zhu <teawater@gmail.com>
6190
6191 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
6192
dc177b7a
PA
61932008-07-03 Pedro Alves <pedro@codesourcery.com>
6194
6195 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
6196 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
6197
6198 * target.h (struct target_ops): Add to_attach_no_wait member.
6199 (target_attach_no_wait): New.
6200 * target.c (update_current_target): Inherit to_attach_no_wait.
6201
6202 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
6203 target_attach_no_wait runtime check.
6204
6205 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
6206 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
6207 win32_ops.
6208
caac8896
PA
62092008-07-03 Pedro Alves <pedro@codesourcery.com>
6210
6211 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
6212 on debug_displaced being set.
6213
0d254d6f
DJ
62142008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6215
6216 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
6217 directly instead of get_frame_id.
6218
f74c6cad
LM
62192008-06-30 Luis Machado <luisgpm@br.ibm.com>
6220
6221 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
6222 (deal_with_atomic_sequence): Update BC masks.
6223 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
6224 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
6225
395f2fc2
DJ
62262008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6227
6228 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
6229 register, not the previous frame's.
6230
8340a3fb
LM
62312008-06-30 Luis Machado <luisgpm@br.ibm.com>
6232
6233 * source.c (select_source_symtab): Make sure we skip namespace
6234 symtabs when showing cpp source code.
6235
cfefc99a
HPN
62362008-06-30 Hans-Peter Nilsson <hp@axis.com>
6237
6238 * MAINTAINERS (Authorized committers): Fix my email address.
6239
1b98914a
VP
62402008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6241
6242 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
6243 -target-download and -target-select via CLI, so that
6244 the quoting rules are the same as they were (unfortunately)
6245 in all prior gdb releases.
6246 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
6247 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6248 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
6249 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6250 (mi_cmd_execute): Set current_token even for commands
6251 routed via CLI.
6252
94afd7a6
UW
62532008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
6254
6255 * alphafbsd-tdep.c: Update for unwinder changes.
6256 * alpha-linux-tdep.c: Likewise.
6257 * alphanbsd-tdep.c: Likewise.
6258 * alphaobsd-tdep.c: Likewise.
6259 * avr-tdep.c: Likewise.
6260 * cris-tdep.c: Likewise.
6261 * frv-linux-tdep.c: Likewise.
6262 * frv-tdep.c: Likewise.
6263 * h8300-tdep.c: Likewise.
6264 * hppa-linux-tdep.c: Likewise.
6265 * iq2000-tdep.c: Likewise.
6266 * m32c-tdep.c: Likewise.
6267 * m32r-linux-tdep.c: Likewise.
6268 * m32r-tdep.c: Likewise.
6269 * m68hc11-tdep.c: Likewise.
6270 * mep-tdep.c: Likewise.
6271 * mn10300-tdep.c: Likewise.
6272 * mt-tdep.c: Likewise.
6273 * score-tdep.c: Likewise.
6274 * sh64-tdep.c: Likewise.
6275 * sh-tdep.c: Likewise.
6276 * sparc64fbsd-tdep.c: Likewise.
6277 * sparc64nbsd-tdep.c: Likewise.
6278 * sparc64obsd-tdep.c: Likewise.
6279 * v850-tdep.c: Likewise.
6280 * vaxobsd-tdep.c: Likewise.
6281 * vax-tdep.c: Likewise.
6282 * xstormy16-tdep.c: Likewise.
6283
e111d6c9
VP
62842008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6285
6286 * mi/mi-main.c (enum captured_mi_execute_command_actions)
6287 (captured_mi_execute_command_args): Remove.
6288 (captured_mi_execute_command): Cast the closure to mi_parse
6289 pointer, not to captured_mi_execute_command_args, and don't
6290 set the action field thereof.
6291 (mi_execute_command): Pass struct mi_parse, not
6292 captured_mi_execute_command_args to captured_mi_execute_command.
6293 (mi_execute_command): Remove (dead) code for suppressing
6294 printing prompt.
6295
84e46146
PA
62962008-06-28 Pedro Alves <pedro@codesourcery.com>
6297
6298 * linux-nat.c (enum sigchld_state): New.
6299 (linux_nat_async_events_state): Renamed from
6300 linux_nat_async_events_enabled.
6301 (linux_nat_event_pipe_push, my_waitpid): Adjust.
6302 (sigchld_default_action): New.
6303 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
6304 unconditionally.
6305 (linux_nat_create_inferior): Set events state to sigchld_default
6306 state.
6307 (linux_nat_resume): Adjust.
6308 (linux_nat_wait): Call linux_nat_async_events unconditionally.
6309 (sigchld_handler): Adjust.
6310 (linux_nat_async_mask): Don't set SIGCHLD actions here.
6311 (get_pending_events): Adjust.
6312 (linux_nat_async_events): Rewrite to handle enum sigchld_state
6313 instead of a boolean.
6314 (linux_nat_async): Adjust.
6315 (_initialize_linux_nat): Capture default SIGCHLD action into
6316 sigchld_default_action.
6317
20874c92
VP
63182008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6319
680b56ce
AS
6320 * breakpoint.c (moribund_locations): New.
6321 (bpstat_stop_status): Process moribund locations.
6322 (update_global_location_list): Add removed
6323 locations to moribund_locations.
6324 (breakpoint_retire_moribund): New.
6325 * breakpoint.h (struct bp_location): New field
6326 events_till_retirement.
6327 (breakpoint_retire_moribund): Declare.
6328 * thread.c (thread_count): New.
6329 * infrun.c (handle_inferior_event): Call
6330 breakpoint_retire_moribund.
6331 * gdbthread.h (thread_count): Declare.
20874c92 6332
cd0b43b1
JM
63332008-06-27 Joseph Myers <joseph@codesourcery.com>
6334
6335 * dfp.c (decimal_convert): Call match_endianness before and after
6336 conversion.
6337
7c0f6dcc
JL
63382008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6339
6340 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6341 unsupported and we fall back to memory_insert_breakpoint, we
6342 use the unmodified requested address.
6343
01c66ae6
JB
63442008-06-27 Joel Brobecker <brobecker@adacore.com>
6345
6346 * dwarf2read.c (read_attribute_value): Issue a complaint when
6347 adjusting size attribute values of 0xffffffff as zero.
6348
7ccc1c74
JM
63492008-06-27 Joseph Myers <joseph@codesourcery.com>
6350
6351 * i386-tdep.c (i386_16_byte_align_p): New.
6352 (i386_push_dummy_call): Determine stack space required for
6353 arguments going forwards allowing for 16-byte alignment, then push
6354 arguments going forwards.
6355
c0a2216e
PA
63562008-06-27 Pedro Alves <pedro@codesourcery.com>
6357
6358 * infrun.c (start_remote): Don't clear thread list here.
6359 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6360 list here.
6361 * remote.c (record_currthread): Upgrade the main thread and its
6362 entry in the thread list if this is the first time we hear about
6363 threads.
6364 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6365 a tid member always alive.
6366 (remote_find_new_threads): Don't update the main thread here.
6367 (remote_start_remote): Clear thread list here. Always add the
6368 main thread.
6369 (extended_remote_attach_1): Add the main thread here.
6370 (extended_remote_mourn_1): Re-add the main thread here.
6371 (extended_remote_create_inferior_1): Add a main thread.
6372
6373 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6374
87b0e16e 63752008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
6376
6377 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6378
6379 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6380 globals.
6381 (general_thread, continue_thread): Change type to ptid_t.
6382 (record_currthread): Take a ptid_t parameter instead of an
6383 integer.
6384 (MAGIC_NULL_PID): Delete.
6385 (set_thread): Take a ptid_t parameter and adjust.
6386 (set_general_thread, set_continue_thread): New.
6387 (remote_thread_alive, remote_newthread_step)
6388 (remote_current_thread, remote_find_new_threads)
6389 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6390 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6391 (threadalive_test, remote_pid_to_str)
6392 (remote_get_thread_local_address): Adjust.
6393 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6394 and any_thread_ptid.
6395
3ca64bd3
JK
63962008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6397
6398 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6399 * configure: Regenerated.
6400
28e94949
JB
64012008-06-26 Joel Brobecker <brobecker@adacore.com>
6402
6403 * dwarf2read.c (read_attribute_value): Treat size attribute
6404 values of 0xffffffff as if the attribute value was zero.
6405
8a77dff3
VP
64062008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6407
6408 * linux-nat.c: Add description of overall logic.
6409
d5af19ba
DJ
64102008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6411
6412 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6413 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6414 all dependencies on $(gdb_stdint_h).
6415 (distclean): Do not delete gdb_stdint.h.
6416 * acinclude.m4: Do not use stdint.m4.
6417 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6418 uintptr_t, and gdb_stdint.h.
6419 * defs.h: Include <stdint.h>.
6420 * gdb_thread_db.h: Assume stdint.h is already included.
6421 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6422 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6423 include gdb_stdint.h.
6424 * configure, config.in: Regenerate.
6425
00fbcec4
JM
64262008-06-26 Joseph Myers <joseph@codesourcery.com>
6427
6428 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6429 decimal floating-point values in GPRs for soft-float.
6430 (do_ppc_sysv_return_value): Handle returning decimal
6431 floating-point values in GPRs for soft-float.
6432
d5086790
VP
64332008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6434
6435 * target.c (target_read_until_error): New.
680b56ce
AS
6436 * target.h (target_read_until_error): Declare.
6437 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6438 target_read_until_error.
d5086790 6439
fe9441f6
JK
64402008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6441
6442 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6443 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6444 after the DECFLOAT detection to fix a memory leak. Remove the
6445 redundant NUM initialization. Protect the DECFLOAT detection memory
6446 access before the P block. Restore the P memory content for the
6447 DECFLOAT detection.
6448
ce8f13f8
VP
64492008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6450
6451 Kill the return value for all MI command functions.
6452 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6453 (mi_cmd_argv_ftype): Change return type to void.
6454
6455 * mi/mi-main.c: Adjust all function that implement
6456 MI commands to return nothing.
6457 (struct captured_mi_execute_command_actions):
6458 Remove the rc field.
6459 (mi_cmd_execute): Return nothing.
6460 (mi_execute_async_cli_command): Return nothing.
6461 (mi_cmd_exec_interrupt): Don't print ^done here.
6462 (mi_cmd_target_select): Don't print ^connected here.
6463 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6464 Special-case -target-select and output ^connected, not ^done.
6465
6466 * mi/mi-cmd-break.c: Adjust.
6467 * mi/mi-cmd-disas.c: Adjust.
6468 * mi/mi-cmd-env.c: Adjust.
6469 * mi/mi-cmd-file.c: Adjust.
6470 * mi/mi-cmd-stack.c: Adjust.
6471 * mi/mi-cmd-target.c: Adjust.
6472 * mi/mi-cmd-var.c: Adjust.
6473 * mi/mi-interp.c: Adjust.
6474 * mi/mi-symbol-cmds.c: Adjust.
6475
a2840c35
VP
64762008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6477
6478 Emit ^running via observer.
6479 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6480 ^running here.
6481 (mi_on_resume): Print ^running if not previously output.
6482 * mi/mi-main.c (running_result_record_printed): New.
6483 (captured_mi_execute_command): Reset
6484 running_result_record_printed. Use running_result_record_printed
6485 to decide if we should skip ^done.
6486 (mi_execute_async_cli_command): Don't print ^running here.
6487 * mi/mi-main.h (current_token, running_result_record_printed):
6488 Declare.
a2840c35 6489
1f41b062
MS
64902008-06-24 Michael Snyder <msnyder@specifix.com>
6491
6492 * infrun.c (_initialize_infrun): White space and typo fix.
6493
eff8332b
CF
64942008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6495
6496 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6497 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6498 when first loading DLL with "dll" command.
6499
e50ce6de 65002008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6501
6502 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6503
e50ce6de 65042008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6505
6506 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6507
59ddf1e7
JB
65082008-06-18 Joel Brobecker <brobecker@adacore.com>
6509
680b56ce
AS
6510 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6511 the target cannot run.
59ddf1e7
JB
6512
65132008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6514
6515 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6516 we're attaching to a running process.
6517
e50ce6de 65182008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6519
6520 * win32-nat.c (handle_load_dll): Give dll name and load address
6521 if debug_events is on.
6522 (handle_unload_dll): Likewise.
6523
8f6a8e84
VP
65242008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6525
6526 Don't suppress *running when doing finish.
680b56ce
AS
6527 * infcall.c (call_function_by_hand): Set both
6528 suppress_resume_observer and suppress_stop_observer.
6529 * infcmd.c (suppress_run_stop_observers): Split into...
6530 (suppress_resume_observer, suppress_stop_observer): ...those.
6531 (finish_command_continuation): Clear suppress_stop_observer.
6532 (finish_command): Set suppress_stop_observer.
6533 * inferior.h (suppress_run_stop_observers): Split into...
6534 (suppress_resume_observer, suppress_stop_observer): ...those.
6535 * infrun.c (normal_stop): Check for suppress_stop_observer.
6536 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6537
4309257c
PM
65382008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6539 Pierre Muller <muller@ics.u-strasbg.fr>
6540
6541 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6542 * gdbarch.h, gdbarch.c: Regenerate.
6543 * i386-tdep.h (i386_skip_main_prologue): Declare.
6544 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6545 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6546 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6547 * symtab.c (find_function_start_sal): When pc points at the "main"
6548 function, call gdbarch_skip_main_prologue.
6549
a4e2ee12
DJ
65502008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6551
6552 * value.c (value_primitive_field): Fetch lazy register values.
6553
060871df
PA
65542008-06-11 Pedro Alves <pedro@codesourcery.com>
6555
6556 * NEWS: Mention support removal of undocumented S AA p PID stop
6557 reply packet.
6558
6559 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6560
336de56d
SS
65612008-06-10 Stan Shebs <stan@codesourcery.com>
6562
6563 * MAINTAINERS: Update my affiliation and address.
6564
7949220d
AS
65652008-06-10 Andreas Schwab <schwab@suse.de>
6566
6567 * top.c (print_gdb_version): Don't print final newline.
6568
e1ac3328
VP
65692008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6570
6571 Implement *running.
680b56ce
AS
6572 * Makefile.in: Update dependencies.
6573 * gdbthread.h (struct thread_info): New field
6574 running_.
6575 (set_running, is_running): New.
6576 * thread.c (set_running, is_running): New.
6577 * inferior.h (suppress_normal_stop_observer): Rename to...
6578 (suppress_run_stop_observers): ..this.
6579 * infcmd.c (suppress_normal_stop_observer): Rename to...
6580 (suppress_run_stop_observers): ..this.
6581 (finish_command_continuation, finish_command): Adjust.
6582 * infcall.c (call_function_by_hand): Adjust.
6583 * infrun.c (normal_stop): Call set_running.
6584 * target.c (target_resume): New. Call set_running.
6585 * target.h (target_resume): Convert from macro to
6586 a function.
6587
6588 * mi/mi-interp.c (mi_on_resume): New.
6589 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6590
f7f9a841
VP
65912008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6592
6593 Use observers to report stop events in MI.
680b56ce
AS
6594 * mi/mi-interp.c (mi_on_normal_stop): New.
6595 (mi_interpreter_init): Register mi_on_normal_stop.
6596 (mi_interpreter_exec_continuation): Remove.
6597 (mi_cmd_interpreter_exec): Don't register the above.
6598 * mi/mi-main.c (captured_mi_execute_command): Don't care
6599 about sync_execution.
6600 (mi_execute_async_cli_command): Don't install continuation. Don't
6601 print *stopped.
6602 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6603
f5871ec0
VP
66042008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6605
6606 Suppress normal stop observer when it's problematic.
680b56ce
AS
6607 * inferior.h (suppress_normal_stop_observer): New.
6608 * infcall.c (call_function_by_hand): Disable stop events when
6609 doing function calls.
6610 * infmcd.c (suppress_normal_stop_observer): New.
6611 (finish_command_continuation): Call normal_stop observer
6612 explicitly.
6613 (finish_command): Disable stop events inside proceed.
6614 * infrun.c (normal_stop): Don't call normal stop observer if
6615 suppressed of if multi-step is in progress.
f5871ec0 6616
3d3191a6
VP
66172008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6618
6619 Remove stale code.
680b56ce
AS
6620 * infrun.c (finish_command): Don't pass cleanup
6621 to continuation.
6622 (finish_command_continuation): Don't grab cleanup from
6623 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6624
0b080f59
VP
66252008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6626
6627 Introduce common cleanup for restoring integers.
680b56ce
AS
6628 * defs.h (make_cleanup_restore_integer): New declaration.
6629 (struct cleanup): New field free_arg.
6630 (make_my_cleanup_2): New.
6631 * utils.c (restore_integer_closure, restore_integer)
6632 (make_cleanup_restore_integer): New.
6633 (make_my_cleanup): Initialize the free_arg field and
6634 renamed to make_my_cleanup_2.
6635 (do_my_cleanups): Call free_arg.
6636 (discard_cleanups): Call free_arg.
6637 * breakpoint.c (restore_always_inserted_mode): Remove.
6638 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6639
b4f62b57
DE
66402008-06-09 Doug Evans <dje@google.com>
6641
6642 * remote.c (remote_wait): Include beginning of malformed packet
6643 in error output.
6644
37cd5d19
TT
66452008-06-09 Tom Tromey <tromey@redhat.com>
6646
6647 * completer.c (complete_line): Don't special-case
6648 expression_completer.
6649 (expression_completer): Only pass last word to
6650 location_completer.
6651 * c-exp.y (yylex): Check 'token', not 'operator'.
6652
3526781e
DJ
66532008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6654
6655 * configure.ac (build_warnings): Add -Wno-format for mingw.
6656 * configure: Regenerated.
6657
d001be7a
DJ
66582008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6659
6660 * NEWS: Make indentation consistent. Move exec tracing entry out
6661 of remote packet list.
6662
65d12d83
TT
66632008-06-06 Tom Tromey <tromey@redhat.com>
6664
6665 * value.h (evaluate_subexpression_type, extract_field_op):
6666 Declare.
6667 * printcmd.c (_initialize_printcmd): Use expression_completer for
6668 'p', 'inspect', 'call'.
6669 * parser-defs.h (parse_field_expression): Declare.
6670 * parse.c: Include exceptions.h.
6671 (in_parse_field, expout_last_struct): New globals.
6672 (mark_struct_expression): New function.
6673 (prefixify_expression): Return int.
6674 (prefixify_subexp): Return int. Use expout_last_struct.
6675 (parse_exp_1): Update.
6676 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6677 in_parse_field.
6678 (parse_field_expression): New function.
6679 * expression.h (parse_field_expression): Declare.
6680 (in_parse_field): Likewise.
6681 * eval.c (evaluate_subexpression_type): New function.
6682 (extract_field_op): Likewise.
6683 * completer.h (expression_completer): Declare.
6684 * completer.c (expression_completer): New function.
6685 (count_struct_fields, add_struct_fields): New functions.
6686 * c-exp.y (yyparse): Redefine.
6687 (COMPLETE): New token.
6688 (exp): New productions.
6689 (saw_name_at_eof, last_was_structop): New globals.
6690 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6691 (c_parse): New function.
6692 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6693 for watch, awatch, and rwatch.
6694 * Makefile.in (parse.o): Depend on exceptions_h.
6695
fed27633
PP
66962008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6697
6698 PR gdb/1147
6699 * gdb/valopts.c (find_overload_match): Handle references
6700 to pointers.
6701
aced2898
PH
67022008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6703
6704 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6705 account the bitsize of the 'from' operand.
6706
a2b87ed1
PA
67072008-06-06 Pedro Alves <pedro@codesourcery.com>
6708
6709 * annotate.h (annotate_thread_changed): Declare.
6710
3d6d0b9d
NR
67112008-06-06 Nick Roberts <nickrob@snap.net.nz>
6712
6713 * annotate.c (annotate_thread_changed): New function.
6714 * thread.c (thread_command) : Use it.
6715 * infrun.c (normal_stop): Use it.
6716
c16158bc 67172008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6718 Nathan Sidwell <nathan@codesourcery.com>
6719 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6720
6721 * acinclude.m4: Include ../config/acx.m4.
6722 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6723 * configure, config.in: Regenerate.
6724 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6725 address.
6726 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6727
75c99385
PA
67282008-06-05 Pedro Alves <pedro@codesourcery.com>
6729
6730 Replace 'target async' by 'maintenance set remote-async' and
6731 'target remote' combination.
6732
6733 * remote.c (remote_async_wait): Merge into remote_wait, and
6734 remove.
6735 (remote_async_permitted, remote_async_permitted_set): New
6736 variables.
6737 (set_maintenance_remote_async_permitted)
6738 (show_maintenance_remote_async_permitted): New functions.
6739 (remote_async_ops, extended_async_remote_ops): Delete.
6740 (remote_async_open, extended_remote_async_open): Delete.
6741 (remote_open_1): Drop async_p parameter. Update callers. Replace
6742 async_p with remote_async_permitted checks.
6743 (extended_async_remote_attach): Delete.
6744 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6745 (remote_async_terminal_inferior): Rename to...
6746 (remote_terminal_inferior): ... this, and add
6747 remote_async_termitted check.
6748 (remote_async_terminal_ours): Rename to...
6749 (remote_terminal_ours): ... this, and add remote_async_termitted
6750 check.
6751 (remote_wait, remote_async_wait): Merge and leave remote_wait
6752 only.
6753 (remote_kill, remote_async_kill): Merge and leave remote_kill
6754 only.
6755 (remote_async_mourn, extended_async_remote_mourn): Delete.
6756 (extended_remote_create_inferior_1): Drop async_p parameter.
6757 Update callers. Always use extended_remote_ops.
6758 (extended_remote_async_create_inferior): Delete.
6759 (remote_return_zero): Delete.
6760 (init_remote_ops): Register remote_can_async_p, remote_async,
6761 remote_async_mask, remote_terminal_inferior and
6762 remote_terminal_ours.
6763 (remote_can_async_p, remote_is_async_p): Check for
6764 remote_async_permitted.
6765 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6766 (set_remote_cmd): Don't add async and extended-async targets.
6767 (_initialize_remote): Add set/show remote-async maintenance
6768 commands.
6769
cf30943b
PA
67702008-06-05 Pedro Alves <pedro@codesourcery.com>
6771
6772 * remote.c (kill_kludge): Delete.
6773 (remote_wait, remote_async_wait): Don't set it.
6774 (remote_kill, remote_async_kill): Don't do anything with it.
6775
49fd4a42
PA
67762008-06-05 Pedro Alves <pedro@codesourcery.com>
6777
6778 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6779
2e618c13
AR
67802008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6781
6782 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6783 (deprecated_bcache_added): New function name. Body of function
6784 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6785 * bcache.h (deprecated_bcache_added): New function.
6786 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6787 work from add_psymbol_to_list - initialises partial symbol and stashes
6788 it in objfile's cache.
680b56ce 6789 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6790 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6791 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6792 here. If adding to global list, do not duplicate partial symbols in the
6793 partial symtab.
6794
c0b37c48
AR
67952008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6796
6797 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6798 'exception caught|thrown' message.
6799
1e3a102a
JK
68002008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * Makefile.in: Update dependencies.
6803 * dwarf2expr.c: New include "gdb_assert.h".
6804 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6805 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6806 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6807 Increase/decrease RECURSION_DEPTH around the function.
6808
8d385431
DJ
68092008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6810
6811 * remote.c (get_offsets): Handle a single segment.
6812 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6813 than segments.
6814
93a57060
DJ
68152008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6816
6817 * solib-svr4.c (struct lm_info): Add lm_addr.
6818 (main_lm_addr): New.
6819 (svr4_default_sos): Set lm_addr.
6820 (svr4_current_sos): Set lm_addr and main_lm_addr.
6821 (svr4_fetch_objfile_link_map): Rewrite.
6822 (svr4_clear_solib): Clear main_lm_addr.
6823
609ba780 68242008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6825 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6826
6827 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6828 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6829
c95f5026
JB
68302008-06-02 Roman Zippel <zippel@linux-m68k.org>
6831
6832 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6833
e4d8bc08
JB
68342008-06-02 Roman Zippel <zippel@linux-m68k.org>
6835
6836 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6837
40adab56
JB
68382008-06-01 Joel Brobecker <brobecker@adacore.com>
6839
6840 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6841 treat pointers in data space as function descriptors if the
6842 target address is also in the data space.
6843
bfd66dd9
JB
68442008-05-30 Joel Brobecker <brobecker@adacore.com>
6845
6846 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6847 the trad-frame register value for the SP register.
6848
7ea566be
MK
68492008-05-29 Mark Kettenis <kettenis@gnu.org>
6850
6851 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6852
fcac911a
JB
68532008-05-28 Joel Brobecker <brobecker@adacore.com>
6854
6855 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6856 that identifies function descriptors outside of the .opd section.
6857
ade92717
AR
68582008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6859
6860 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6861 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6862 'bkptno'.
6863 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6864 catchpoints.
6865 (handle_gnu_v3_exceptions): Use tempflag.
6866
f7f9ae2c
VP
68672008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6868
6869 Refactor varobj_update interface.
680b56ce
AS
6870 * varobj.c (varobj_update): Report changes as vector. Also
6871 return not just a list of varobj, but a list of special structures
6872 that tell what exactly has changed.
6873 * varobj.h (enum varobj_update_error): Rename to
6874 varobj_scope_status.
6875 (struct varobj_update_result_t): New.
6876 (varobj_update): Adjust prototype.
6877 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6878
ea56f9c2
VP
68792008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6880
6881 * varobj.c (varobj_update): Fix comment typo.
6882 Fix indentation.
6883
c7efd0b9
JB
68842008-05-26 Joel Brobecker <brobecker@adacore.com>
6885
6886 Set the symtab field of symbols read from ECOFF debugging entries.
6887 * mdebugread.c (add_symbol): Add new parameter symtab.
6888 (parse_symbol): Update calls to add_symbol throughout.
6889
2a2d4dc3
AS
68902008-05-27 Andreas Schwab <schwab@suse.de>
6891
6892 * symtab.h (enum address_class): Remove LOC_REGPARM and
6893 LOC_COMPUTED_ARG.
6894 (struct symbol): Add is_argument.
6895 (SYMBOL_IS_ARGUMENT): Define.
6896
6897 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6898 * buildsym.c (finish_block): Likewise.
6899 * stack.c (print_frame_args, print_block_frame_locals)
6900 (print_frame_arg_vars): Likewise.
6901 * symtab.c (lookup_block_symbol): Likewise.
6902 * tracepoint.c (add_local_symbols): Likewise.
6903 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6904
6905 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6906 * dwarf2read.c (new_symbol): Likewise.
6907 * mdebugread.c (parse_symbol): Likewise.
6908 * stabsread.c (define_symbol): Likewise.
6909
6910 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6911 and LOC_COMPUTED_ARG.
6912 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6913 * ax-gdb.c (gen_var_ref): Likewise.
6914 * eval.c (evaluate_subexp_for_address): Likewise.
6915 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6916 * m2-exp.y (yylex): Likewise.
6917 * printcmd.c (address_info): Likewise.
6918 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6919 * tracepoint.c (collect_symbol, scope_info): Likewise.
6920
17ea7499
CES
69212008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6922
6923 * gdbarch.sh: Added new gdbarch struct
6924 core_regset_sections.
6925 * gdbarch.c: Refreshed.
6926 * gdbarch.h: Refreshed.
6927 * regset.h (core_regset_section): Declared.
6928 * linux-nat.c (linux_nat_do_thread_registers): Added
6929 support for the new gdbarch struct core_regset_sections.
6930 * utils.c (host_address_to_string): New function.
6931 * defs.h (host_address_to_string): New prototype.
6932 * i386-linux-tdep.c (i386_regset_rections): New register
6933 sections list for i386.
6934 (i386_linux_init_abi): Initialized new gdbarch struct
6935 core_regset_sections.
6936 * Makefile.in: Updated to reflect dependency changes.
6937 * ppc-linux-tdep.c (ppc_regset_sections): Register
6938 sections list for ppc.
6939 (ppc_linux_init_abi): Initialized new gdbarch struct
6940 core_regset_sections
6941
c4fc331b
AS
69422008-05-24 Andreas Schwab <schwab@suse.de>
6943
6944 * linespec.c (decode_objc): Save current language around call to
6945 get_selected_block.
6946
e936309c
JB
69472008-05-23 Joel Brobecker <brobecker@adacore.com>
6948
6949 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6950 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6951 Return the proper bound value if the array index type is an
6952 enumerated type. Compute the high bound if requested.
6953 (val_print_array_elements): Handle the case when the array
6954 element has a null size.
6955 * ada-valprint.c (print_optional_low_bound): Add handling
6956 for empty arrays or arrays of zero-size elements.
6957 (ada_val_print_array): New function, extracted out from
6958 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6959 handle empty arrays and arrays of zero-size elements.
6960 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6961 code by call to ada_val_print_array.
6962 (ada_value_print): Remove handling of null array. The handling
6963 was incomplete and is now better handled by ada_val_print_array.
6964
50ee7535
MD
69652008-05-23 Markus Deuling <deuling@de.ibm.com>
6966
6967 * annotate.c (annotate_source, annotate_frame_begin): Replace
6968 deprecated_print_address_numeric with paddress.
6969 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6970 * tui/tui-stack.c (tui_make_status_line): Likewise.
6971
6972 * defs.h (deprecated_print_address_numeric): Remove.
6973 * printcmd.c (deprecated_print_address_numeric): Remove.
6974 * maint.c (maint_print_section_info): Fix comment.
6975
d44e8473
MD
69762008-05-23 Markus Deuling <deuling@de.ibm.com>
6977
6978 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6979 print_binary_chars, print_char_chars): Add byte_order parameter and
6980 replace gdbarch_byte_order.
6981 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6982 expressions and remove them. Remove unused TWO_TO_FOURTH.
6983 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6984 endianness. Update call to print_hex_chars.
6985 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6986 print_binary_chars, print_char_chars): Add byte_order parameter.
6987 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6988 get at the endianness. Update print_*_char calls to use byte_order.
6989
10f4ecb8
UW
69902008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6991
6992 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6993 instead of a union.
6994 (SYMBOL_LOCATION_BATON): Update.
6995
c3b22bd0
UW
69962008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6997
6998 * symtab.h (enum address_class): Remove LOC_BASEREG and
6999 LOC_BASEREG_ARG.
7000 (struct symbol): Remove "basereg" member of "aux_value" union.
7001 (SYMBOL_BASEREG): Remove.
7002
7003 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
7004 or LOC_BASEREG_ARG.
7005 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7006 (ada_add_block_symbols): Likewise.
7007 * ax-gdb.c (gen_var_ref): Likewise.
7008 * buildsym.c (finish_block): Likewise.
7009 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7010 * m2-exp.y (yylex): Likewise.
7011 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7012 * printcmd.c (address_info): Likewise.
7013 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
7014 (print_frame_arg_vars): Likewise.
7015 * symmisc.c (print_symbol): Likewise.
7016 * symtab.c (lookup_block_symbol): Likewise.
7017 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
7018 (scope_info): Likewise.
7019
aa59ba6b
UW
70202008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7021
7022 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
7023
7024 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
7025 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
7026 (ada_add_block_symbols): Likewise.
7027 * ax-gdb.c (gen_var_ref): Likewise.
7028 * buildsyms.c (finish_block): Likewise.
7029 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
7030 * m2-exp.y (yylex): Likewise.
7031 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7032 * printcmd.c (address_info): Likewise.
7033 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
7034 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7035 * symtab.c (lookup_block_symbol): Likewise.
7036 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
7037 (scope_info): Likewise.
7038
0bb4e8c4
UW
70392008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7040
7041 * symtab.h (enum address_class): Remove LOC_INDIRECT and
7042 LOC_HP_THREAD_LOCAL_STATIC.
7043
7044 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
7045 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
7046 (read_var_value): Likewise.
7047 * buildsym.c (finish_block): Likewise.
7048 * objfiles.c (objfile_relocate): Likewise.
7049 * printcmd.c (address_info): Likewise.
7050 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7051 * tracepoint.c (scope_info): Likewise.
7052
9f61f19b
MG
70532008-05-21 Markus Deuling <deuling@de.ibm.com>
7054 Maxim Grigoriev <maxim2405@gmail.com>
7055
7056 * xtensa-tdep.c (xtensa_read_register): Remove.
7057 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
7058 argument litbase to call0_frame_cache().
7059 (call0_track_op, call0_analyze_prologue)
7060 (call0_frame_cache): Use extra argument litbase.
7061
0e479716
JB
70622008-05-21 Joel Brobecker <brobecker@adacore.com>
7063
7064 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
7065
214be669
UW
70662008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7067
7068 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
7069
0cd9ab92
UW
70702008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7071
7072 * alpha-mdebug-tdep.c: Include "trad-frame.h".
7073 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
7074 struct trad_frame_saved_reg *.
7075 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
7076 trad_frame_alloc_saved_regs. Update accesses. Record previous
7077 value of SP as being vfp.
7078 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
7079 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
7080
f52cb1b8
MD
70812008-05-21 Markus Deuling <deuling@de.ibm.com>
7082
7083 * score-tdep.c (score_print_insn): Get the current endianess from
7084 disassemble_info instead of gdbarch_byte_order.
7085
8fa75a5d
PA
70862008-05-21 Pedro Alves <pedro@codesourcery.com>
7087
7088 * frame.c (get_prev_frame_1): Build frame id before setting
7089 this_frame->prev_p, not after.
7090
e8e48118
NR
70912008-05-21 Nick Roberts <nickrob@snap.net.nz>
7092
7093 * annotate.c (annotate_new_thread): New function for new-thread
7094 annotation.
7095 * annotate.h: (annotate_new_thread): New extern.
7096 * thread.c (add_thread_with_info): Use it.
7097 * Makefile.in (thread.o): Add dependency on annotate.h.
7098
c57918b2
JB
70992008-05-20 Joel Brobecker <brobecker@adacore.com>
7100
7101 * win32-nat.c (win32_wait): Block the control-c event while
7102 waiting for a debug event.
7103
6c9353d3
PA
71042008-05-19 Pedro Alves <pedro@codesourcery.com>
7105
7106 * symtab.h (lookup_symbol_in_language): Update comment.
7107 * symtab.c (lookup_symbol_aux_block): Update comment.
7108 * ada-lang.c (ada_lookup_symbol_list): Update comment.
7109
2570f2b7
UW
71102008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7111
7112 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
7113 (lookup_symbol): Likewise.
7114 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
7115 (lookup_symbol): Likewise.
7116 (search_symbols): Update.
7117
7118 * linespec.c (find_methods, collect_methods): Update.
7119 (add_matching_methods, add_constructors): Update.
7120 (decode_compound, decode_dollar, decode_variable): Update.
7121 (lookup_prefix_sym): Update.
7122
7123 (symbol_found): Remove SYM_SYMTAB parameter.
7124 Use SYMBOL_SYMTAB (sym) instead.
7125
7126 * gdbtypes.c (lookup_typename): Update.
7127 (lookup_struct, lookup_union, lookup_enum): Update.
7128 (lookup_template_type): Update.
7129 (check_typedef): Update.
7130 * language.c (lang_bool_type): Update.
7131 * mdebugread.c (parse_procedure): Update.
7132 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7133 * parse.c (write_dollar_variable): Update.
7134 * printcmd.c (address_info): Update.
7135 * source.c (select_source_symtab): Update.
7136 * stack.c (print_frame_args, print_frame_arg_vars): Update.
7137 * valops.c (find_function_in_inferior): Update.
7138 (value_struct_elt_for_reference): Update.
7139 * value.c (value_static_field, value_fn_field): Update.
7140
7141 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7142 * arm-tdep.c (arm_skip_prologue): Update.
7143 * mt-tdep.c (mt_skip_prologue): Update.
7144 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
7145
7146 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
7147 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
7148 (add_defn_to_vec): Likewise.
7149 (ada_add_block_symbols): Likewise.
7150 (lookup_cached_symbol, cache_symbol): Likewise.
7151 (standard_lookup): Update.
7152 (ada_lookup_symbol_list): Update.
7153
7154 * c-valprint.c (c_val_print): Update.
7155 * cp-support.c (cp_lookup_rtti_type): Update.
7156 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
7157 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
7158 * p-valprint.c (pascal_val_print): Update.
7159 * scm-lang.c (scm_lookup_name): Update.
7160
7161 * c-exp.y: Update.
7162 * f-exp.y: Update.
7163 * jv-exp.y: Update.
7164 * m2-exp.y: Update.
7165 * objc-exp.y: Update.
7166 * p-exp.y: Update.
7167
21b556f4
UW
71682008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7169
7170 * language.h (struct language_defn): Remove SYMTAB parameter from
7171 la_lookup_symbol_nonlocal callback function pointer.
7172
7173 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7174 (ada_lookup_encoded_symbol): Likewise.
7175 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7176 Always call fixup_symbol_section.
7177 (ada_lookup_symbol): Remove SYMTAB parameter.
7178 (ada_lookup_symbol_nonlocal): Likewise.
7179 * ada-exp.y (write_object_renaming): Update.
7180 (find_primitive_type): Likewise.
7181
7182 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7183 (cp_lookup_symbol_namespace): Likewise.
7184 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
7185 (lookup_symbol_file): Likewise.
7186 (lookup_possible_namespace_symbol): Likewise.
7187 (cp_lookup_symbol_nonlocal): Likewise.
7188 (cp_lookup_symbol_namespace): Likewise.
7189 (cp_lookup_nested_type): Update.
7190
7191 * scm-valprint.c (scm_inferior_print): Update.
7192 * valops.c (value_maybe_namespace_elt): Update.
7193
7194 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
7195 lookup_lib_global_symbol callback function pointer.
7196 (solib_global_lookup): Remove SYMTAB parameter.
7197 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
7198 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7199
7200 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7201 (lookup_symbol_static): Likewise.
7202 (lookup_symbol_global): Likewise.
7203 (lookup_symbol_aux_block): Likewise.
7204 (lookup_global_symbol_from_objfile): Likewise.
7205 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
7206 (lookup_symbol_aux_local): Likewise.
7207 (lookup_symbol_aux_block): Likewise.
7208 (lookup_symbol_aux_symtabs): Likewise.
7209 (lookup_symbol_aux_psymtabs): Likewise.
7210 (lookup_global_symbol_from_objfile): Likewise.
7211 (basic_lookup_symbol_nonlocal): Likewise.
7212 (lookup_symbol_static): Likewise.
7213 (lookup_symbol_global): Likewise.
7214
7215 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
7216
39237dd1
PA
72172008-05-17 Pedro Alves <pedro@codesourcery.com>
7218
7219 * remote.c (init_extended_remote_ops): Fix typo.
7220
7c0d47a5
PA
72212008-05-16 Pedro Alves <pedro@codesourcery.com>
7222
7223 * NEWS: Mention new DICOS x86 target configuration.
7224
907fc202
UW
72252008-05-16 Pedro Alves <pedro@codesourcery.com>
7226 Ulrich Weigand <uweigand@de.ibm.com>
7227
7228 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
7229 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
7230
7231 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
7232 use it instead of ginfo->value.address. Look up minimal symbol by
7233 address and name. Assume OBJFILE is non-NULL.
7234 (fixup_symbol_section): Ensure we always have an objfile to look
7235 into. Extract and pass to fixup_section the symbol's address that
7236 will match the minimal symbol's address.
7237 (fixup_psymbol_section): Likewise.
7238
7239 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
7240 overlays and the addrmap returned the wrong section.
7241
7242 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
7243 calling fixup_symbol_section.
7244
42848c96
UW
72452008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7246
7247 * minsyms.c: Include "target.h".
7248 (find_solib_trampoline_target): Handle minimal symbols pointing
7249 to function descriptors as well.
7250 * Makefile.in (minsyms.o): Update dependencies.
7251
7252 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
7253 (ppc64_standard_linkage1): ... this. Fix optional instructions.
7254 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
7255 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
7256 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
7257 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
7258 (ppc64_standard_linkage_target): Rename to ...
7259 (ppc64_standard_linkage1_target): ... this.
7260 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
7261 (ppc64_skip_trampoline_code): Support three variants of standard
7262 linkage stubs. Call find_solib_trampoline_target to handle
7263 glink stubs.
7264
74d1f063
UW
72652008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7266
7267 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
7268 ppc64_sysv_abi_adjust_breakpoint_address.
7269 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7270 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7271
8526f328
UW
72722008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7273
7274 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
7275 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
7276 of ppc_linux_skip_trampoline_code.
7277
ba2b1c56
DJ
72782008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
7279
7280 * gdbarch.sh: Delete dwarf_reg_to_regnum.
7281 * gdbarch.c, gdbarch.h: Regenerated.
7282 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
7283 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
7284 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
7285
4fdebdd0
PA
72862008-05-15 Pedro Alves <pedro@codesourcery.com>
7287
7288 * linux-nat.c (trap_ptid): Delete.
7289 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
7290 Adjust.
7291 * linux-thread-db.c (thread_db_wait): Adjust.
7292
bc882aa9
JB
72932008-05-15 Joel Brobecker <brobecker@adacore.com>
7294
7295 * linespec.c (decode_line_1): Fix a couple of comments.
7296
83b94be5
AM
72972008-05-15 Alan Modra <amodra@bigpond.net.au>
7298
7299 * dbxread.c: Formatting.
7300 (INTERNALIZE_SYMBOL): Init n_other.
7301 (set_namestring): Take pointer to nlist arg rather than struct
7302 copy. Update all callers.
7303
87669130
AS
73042008-05-15 Andreas Schwab <schwab@suse.de>
7305
7306 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
7307 (dwarf2read.o): Add $(addrmap_h).
7308
00d5f93a
UW
73092008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7310
7311 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
7312 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
7313 to handle ppc32 PLT entries.
7314 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
7315 only on ppc64.
7316
2eaf8d2a
DJ
73172008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7318
7319 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
7320 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
7321 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
7322 (lookup_minimal_symbol_by_pc_section): Use
7323 lookup_minimal_symbol_by_pc_section_1.
7324 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7325
20c62566
JB
73262008-05-13 Joel Brobecker <brobecker@adacore.com>
7327
7328 * findcmd.c: Add #include "gdb_stdint.h".
7329 * Makefile.in (findcmd.o): Update dependencies.
7330
87a7da84
DM
73312008-05-11 David S. Miller <davem@davemloft.net>
7332
de0c3d9d
DM
7333 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7334 long double size override, Linux does use 128-bit now.
7335
e8467b5a
DM
7336 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7337 (sparc_linux_write_pc): New function.
7338 (sparc32_linux_init_abi): Register it.
7339 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7340 (sparc64_linux_write_pc): New function.
7341 (sparc64_linux_init_abi): Register it.
7342
87a7da84
DM
7343 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7344 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7345
8a4c2d24
UW
73462008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7347
7348 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7349 and info.tdep_info before calling gdbarch_init_osabi.
7350
003f3813
JB
73512008-05-09 Joel Brobecker <brobecker@adacore.com>
7352
7353 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7354 the type of the right hand side of the assignment to the type
7355 of the left hand side if the left hand side is a convenience
7356 variable.
7357
7ae0e2a2
UW
73582008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7359
7360 * NEWS: Mention gdbserver bi-arch capability.
7361
08388c79
DE
73622008-05-09 Doug Evans <dje@google.com>
7363
7364 New "find" command.
7365 * NEWS: Document find command and qSearch:memory packet.
7366 * Makefile.in (SFILES): Add findcmd.c.
7367 (COMMON_OBJS): Add findcmd.o.
7368 (findcmd.o): New rule.
7369 * findcmd.c: New file.
7370 * target.h (target_ops): New member to_search_memory.
7371 (simple_search_memory): Declare.
7372 (target_search_memory): Declare.
7373 * target.c (simple_search_memory): New fn.
7374 (target_search_memory): New fn.
7375 * remote.c (PACKET_qSearch_memory): New packet kind.
7376 (remote_search_memory): New fn.
7377 (init_remote_ops): Init to_search_memory.
7378 (init_extended_remote_ops): Ditto.
7379 (_initialize_remote): Add qSearch:memory packet config command.
7380
11c68c47
EZ
73812008-05-09 Eli Zaretskii <eliz@gnu.org>
7382
7383 * thread.c (_initialize_thread): Don't use commas and periods in
7384 first line of doc string of "set/show print thread-events".
7385
6834c9bb
JB
73862008-05-08 Joel Brobecker <brobecker@adacore.com>
7387
7388 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7389 Update for unwinder changes.
7390
86c31399
JB
73912008-05-08 Joel Brobecker <brobecker@adacore.com>
7392
7393 * frame.c (get_frame_base_address, get_frame_locals_address)
7394 (get_frame_args_address): Pass the correct frame when calling
7395 frame_base_find_by_frame.
7396
96ef3384
UW
73972008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7398
7399 * remote.c (extended_remote_attach_1): Call target_find_description.
7400
45280a52
DJ
74012008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7402
7403 * remote.c (extended_remote_create_inferior_1): Clean up
7404 before marking the target running.
7405
227e86ad
JB
74062008-05-08 Joel Brobecker <brobecker@adacore.com>
7407
7408 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7409 changes.
7410
236369e7
JB
74112008-05-07 Joel Brobecker <brobecker@adacore.com>
7412
7413 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7414 sparc64-sol2-tdep.c: Update for unwinder changes.
7415
de237128
DJ
74162008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7417
7418 * cp-support.c (mangled_name_to_comp): Initialize storage.
7419 (unqualified_name_from_comp): Likewise.
7420
4fff2411
JZ
74212008-05-07 Jie Zhang <jie.zhang@analog.com>
7422
7423 * remote.c (remote_insert_breakpoint): Call get_remote_state
7424 after gdbarch_breakpoint_from_pc is called.
7425 (remote_insert_hw_breakpoint): Likewise.
7426
d8ca156b
JB
74272008-05-06 Joel Brobecker <brobecker@adacore.com>
7428
7429 * valprint.c (val_print): Add new language parameter and use it
7430 instead of using the current_language. Update calls to val_print
7431 throughout.
7432 (common_val_print): Add new langauge parameter and pass it to
7433 val_print.
7434 * value.h (struct language_defn): Add opaque declaration.
7435 (val_print, common_val_print): Update declarations.
7436 * stack.c (print_frame_args): Update call to common_val_print
7437 using the appropriate language.
7438 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7439 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7440 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7441 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7442 #include "language.h" if necessary.
7443 Update calls to val_print and common_val_print.
7444 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7445 Update dependencies.
7446
b1e6fd19
JB
74472008-05-06 Joel Brobecker <brobecker@adacore.com>
7448
7449 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7450 pointing inside a non-executable section as function descriptors.
7451
02b19d84
PA
74522008-05-06 Pedro Alves <pedro@codesourcery.com>
7453
7454 * inf-loop.c (inferior_event_handler): Run all continuations and
7455 print any language change before running the breakpoint commands.
7456
15c1e57f
JB
74572008-05-06 Joel Brobecker <brobecker@adacore.com>
7458
7459 * frame-unwind.c (frame_unwind_got_bytes): New function.
7460 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7461 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7462 for unwinder changes.
7463
d14508fe
DE
74642008-05-05 Doug Evans <dje@google.com>
7465
7466 * NEWS: Mention new /m modifier for disassemble command.
7467 * cli/cli-cmds.c (print_disassembly): New function.
7468 (disassemble_current_function): New function
7469 (disassemble_command): Recognize /m modifier, print mixed
7470 source+assembly.
7471 (init_cli_cmds): Update disassemble help text.
7472
5142f611
MG
74732008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7474
7475 * xtensa-tdep.c: Update for unwinder changes.
7476
f36bf22c
AS
74772008-05-05 Andreas Schwab <schwab@suse.de>
7478
7479 Update m68k port for unwinder changes.
7480 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7481 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7482 (m68k_frame_unwind): Use default_frame_sniffer.
7483 (m68k_frame_sniffer): Remove.
7484 (m68k_frame_base_address): Expect this_frame.
7485 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7486 this_frame.
7487 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7488 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7489 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7490 parameter instead of pc value.
7491 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7492 Expect this_frame.
7493 (m68k_linux_sigtramp_frame_this_id)
7494 (m68k_linux_sigtramp_frame_prev_register)
7495 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7496 (m68k_linux_sigtramp_frame_unwind): Use
7497 m68k_linux_sigtramp_frame_sniffer.
7498 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7499
7500 * m68klinux-nat.c (store_register): Fix typo.
7501
b3dc826b
PA
75022008-05-05 Pedro Alves <pedro@codesourcery.com>
7503
7504 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7505 NULL dereferencing.
7506
6528a9ea
LM
75072008-05-05 Luis Machado <luisgpm@br.ibm.com>
7508
7509 * symfile.c (reread_symbols): Update objfile's entry point.
7510
5eeb2539
AR
75112008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7512 Joel Brobecker <brobecker@adacore.com>
1f906a60 7513
5eeb2539
AR
7514 * ada-lang.c: Update throughout to use symbol_matches_domain
7515 instead of matching the symbol domain explictly.
7516 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7517 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7518 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7519 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7520 symbol for the typedef. See lookup_block_symbol.
7521 * symtab.c (symbol_matches_domain): New function, takes care
7522 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7523 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7524 found psym domain matches the given domain.
7525 (lookup_block_symbol): Likewise.
7526
e2b7ddea
VP
75272008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7528
680b56ce
AS
7529 * top.c (command_line_handler_continuation): Remove.
7530 (execute_command): Do not install the above.
e2b7ddea 7531
fcfb8b02
VP
75322008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7533
7534 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7535 and catch all exceptions from it.
7536 * top.c (command_line_handler_continuation): Don't
7537 call bpstat_do_action here.
7538
f792889a
DJ
75392008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7540
7541 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7542 (struct die_info): Remove type.
7543 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7544 (read_structure_type, read_enumeration_type, read_array_type)
7545 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7546 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7547 (read_tag_string_type, read_subroutine_type, read_set_type)
7548 (read_unspecified_type): Delete prototypes. Remove check for
7549 already-loaded type. Return the new type.
7550 (set_die_type): Return the new type.
7551 (reset_die_and_siblings_types): Delete.
7552 (load_comp_unit, load_full_comp_unit): Set type_hash.
7553 (process_queue): Remove call to reset_die_and_siblings_types.
7554 (process_die): Do not read most types here. Use read_type_die
7555 for others.
7556 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7557 (quirk_gcc_member_function_pointer): Return the new type.
7558 (process_structure_scope, process_enumeration_scope): Use
7559 get_die_type and read the DIE's type.
7560 (read_full_die): Do not initialize die->type.
7561 (tag_type_to_type): Use read_type_die.
7562 (read_type_die): Check for already defined types. Return the
7563 type.
7564 (determine_prefix): Use get_die_type.
7565 (set_die_type): Return the type.
7566 (get_die_type): Take a CU argument. Check for no type_hash.
7567
e7030f15
DJ
75682008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7569
7570 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7571 locals.
7572
611c83ae
PA
75732008-05-04 Pedro Alves <pedro@codesourcery.com>
7574
7575 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7576 and bp_longjmp_resume breakpoints.
7577 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7578 meaningful.
7579 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7580 breakpoints. Create bp_longjmp breakpoints as momentary
7581 breakpoints.
7582 (enable_longjmp_breakpoint): Delete.
7583 (set_longjmp_breakpoint): New.
7584 (disable_longjmp_breakpoint): Delete.
7585 (delete_longjmp_breakpoint): New.
7586 (set_longjmp_resume_breakpoint): Delete.
7587 (set_momentary_breakpoint_at_pc): New.
7588 (breakpoint_re_set_one): Don't delete bp_longjmp and
7589 bp_longjmp_resume breakpoints.
7590 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7591 breakpoints.
7592
7593 * infrun.c (step_resume_breakpoint): Add comment.
7594 (struct execution_control_state): Delete handling_longjmp member.
7595 (init_execution_control_state). Don't clear handling_longjmp.
7596 (context_switch): Don't context switch handling_longjmp.
7597 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7598 create a bp_longjmp_resume breakpoint, and set it as current
7599 step_resume_breakpoint, then step over the longjmp breakpoint. If
7600 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7601 breakpoint, delete the longjmp-resume breakpoint, and stop
7602 stepping.
7603 (currently_stepping): Remove handling_longjmp from expression.
7604 (insert_step_resume_breakpoint_at_sal): Update comment.
7605 (insert_longjmp_resume_breakpoint): New.
7606
7607 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7608 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7609 declarations.
7610 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7611 (set_longjmp_resume_breakpoint): Delete declaration.
7612
7613 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7614 parameter.
7615 (load_infrun_state): Delete *handling_longjmp parameter.
7616 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7617 Update body.
7618 (load_infrun_state): Delete *handling_longjmp parameter. Update
7619 body.
7620
7621 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7622 (delete_longjmp_breakpoint_cleanup): New.
7623 (step_1): Call set_longjmp_breakpoint instead of
7624 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7625 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7626 (step_1_continuation): Pass thread id in the continuation args to
7627 step_once.
7628 (step_once): Add thread parameter. Pass thread id the the
7629 continuation.
7630
85cbf3d3
JK
76312008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7632
7633 Set CU BASE_ADDRESS already from partial DIEs.
7634 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7635 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7636 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7637 from these variables if it was still unset.
7638
ff013f42
JK
7639 * Makefile.in: Update dependencies.
7640 * dwarf2read.c: Include "addrmap.h"
7641 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7642 (dwarf2_ranges_read): New prototype.
7643 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7644 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7645 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7646 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7647 comment for it. Add the found ranges to RANGES_PST. New variable
7648 BASEADDR, initialize it the common way.
7649 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7650 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7651 HAS_RANGES_OFFSET for the later processing.
7652 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7653 * symtab.c: Include "addrmap.h"
7654 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7655 Move the psymtab locator into ...
7656 (find_pc_sect_psymtab_closer): ... a new function.
7657
a7f1256d
UW
76582008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7659
7660 * arch-utils.c (gdbarch_update_p): Use default values for
7661 info.abfd and info.target_desc if they are NULL.
7662 (gdbarch_from_bfd): Remove assertion.
7663 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7664 using the current target description.
7665 (gdbarch_info_fill): Do not use default values for info->abfd
7666 and info->target_desc.
7667
b2de52bb
JK
76682008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7669
7670 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7671
515630c5
UW
76722008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7673
7674 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7675 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7676
7677 * regcache.c (read_pc_pid): Remove, replace by ...
7678 (regcache_read_pc): ... this function.
7679 (write_pc_pid): Remove, replace by ...
7680 (regcache_write_pc): ... this function.
7681 (read_pc, write_pc): Update.
7682
7683 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7684 write_pc_pid by regcache_read_pc and regcache_write_pc.
7685 (displaced_step_fixup): Likewise.
7686 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7687 (prepare_to_proceed): Likewise.
7688 (proceed): Likewise.
7689 (adjust_pc_after_break): Likewise.
7690 (handle_inferior_event): Likewise.
7691
7692 * linux-nat.c (cancel_breakpoint): Likewise.
7693 * linux-thread-db.c (check_event): Likewise.
7694 * aix-thread.c (aix_thread_wait): Likewise.
7695 * tracepoint.c (trace_dump_command): Likewise.
7696
ebd3bcc1
JK
76972008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7698
7699 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7700 SYMBOL_LOCATION_BATON.
7701
c47ffbe3
VP
77022008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7703
f78bff48
VP
7704 * target.h (struct target_ops): New field to_auxv_parse.
7705 * auxv.c (default_auxv_parse): New, renamed from previous
7706 target_auxv_parse.
7707 (target_auxv_parse): Try to call target method. Fallback to
7708 default_auxv_parse if not found.
7709 * procfs.c (procfs_auxv_parse): New.
7710 (init_procfs_ops): On Solaris, in 64-bit mode, install
7711 procfs_auxv_parse.
c47ffbe3 7712
35076fa0
AN
77132008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7714
7715 * symfile.c (add_symbol_file_command): Use paddress rather than
7716 hex_string to print the address.
7717
5b197912
UW
77182008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7719
7720 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7721 return the null frame ID to terminate the backtrace.
7722
4a7622d1
UW
77232008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7724
7725 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7726 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7727 (SIG_FRAME_PC_OFFSET): Likewise.
7728 (SIG_FRAME_LR_OFFSET): Likewise.
7729 (SIG_FRAME_FP_OFFSET): Likewise.
7730 (rs6000_push_dummy_call): Likewise.
7731 (rs6000_return_value): Likewise.
7732 (rs6000_convert_from_func_ptr_addr): Likewise.
7733 (branch_dest, rs6000_software_single_step): Likewise.
7734 (deal_with_atomic_sequence): Rename to ...
7735 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7736 Do not call branch_dest; inline required parts of that function.
7737 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7738 with SYMBOL_LINKAGE_NAME.
7739 (struct reg, regsize): Delete.
7740 (read_memory_addr): Delete; inline into callers.
7741 (rs6000_skip_prologue): Move after skip_prologue.
7742 (skip_prologue): Remove prototype.
7743 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7744 initialization as if this variable were true. Do not install
7745 ppc64_sysv_abi_adjust_breakpoint_address.
7746
7747 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7748 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7749 and "breakpoint.h".
7750 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7751 (SIG_FRAME_PC_OFFSET): Likewise.
7752 (SIG_FRAME_LR_OFFSET): Likewise.
7753 (SIG_FRAME_FP_OFFSET): Likewise.
7754 (rs6000_push_dummy_call): Likewise.
7755 (rs6000_return_value): Likewise.
7756 (rs6000_convert_from_func_ptr_addr): Likewise.
7757 (branch_dest, rs6000_software_single_step): Likewise. Replace
7758 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7759 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7760 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7761 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7762 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7763
7764 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7765 (AIX_TEXT_SEGMENT_BASE): New macro.
7766 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7767 by AIX_TEXT_SEGMENT_BASE.
7768
7769 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7770 (struct gdbarch_tdep): Remove text_segment_base member.
7771 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7772 ppc64_sysv_abi_adjust_breakpoint_address.
7773
7774 * Makefile.in (rs6000-tdep.o): Update dependencies.
7775 (rs6000-aix-tdep.o): Likewise.
7776
938f5214
TJB
77772008-05-03 Luis Machado <luisgpm@br.ibm.com>
7778 Thiago Jung Bauermann <bauerman@br.ibm.com>
7779
7780 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7781 * doublest.c (convert_typed_floating): Fix typo in comment.
7782 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7783 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7784 * frame.c (frame_unwind_address_in_block): Likewise.
7785 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7786 * symtab.h (struct symbol): Likewise.
7787 * tramp-frame.h (struct trad_frame_cache): Likewise.
7788 * value.c (allocate_repeat_value): Likewise.
7789
0b02b92d
UW
77902008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7791
7792 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7793 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7794
d705c43c
PA
77952008-05-03 Pedro Alves <pedro@codesourcery.com>
7796
7797 * parse.c (parse_exp_in_context): Don't override
7798 expression_context_pc if get_selected_block returned a valid
7799 block.
7800
d6350901
DJ
78012008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7802
7803 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7804 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7805 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7806 Delete.
7807 * c-typeprint.c (c_type_print_base): Delete handling of template
7808 instantiations.
7809 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7810 (METHOD_PTR_TO_VOFFSET): Delete.
7811 * defs.h (QUIT_FIXME): Delete.
7812 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7813 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7814 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7815 ninstantiations, and instantiations.
7816 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7817 (TYPE_FN_FIELD_INLINED): Delete.
7818 * srec.h (SREC_BINARY): Delete.
7819 * symtab.c (symbol_init_demangled_name): Delete.
7820 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7821 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7822 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7823 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7824 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7825 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7826 * target.h (enum thread_control_capabilities): Delete tc_switch.
7827 (target_can_switch_threads): Delete.
7828
30510692
DJ
78292008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7830
7831 * Makefile.in (objfiles.o): Update.
7832 * exec.c (exec_set_section_address): Support p->addr != 0.
7833 * objfiles.c (objfile_relocate): Update exec_ops section
7834 addresses.
7835 * symfile.c (place_section): Move exec_set_section_address call...
7836 (default_symfile_offsets): ...to here.
7837
7284e1be
UW
78382008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7839
7840 * Makefile.in (ppc_linux_tdep_h): New macro.
7841 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7842 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7843 (powerpc_e500l_c): Likewise.
7844 (ppc-linux-nat.o): Update dependencies.
7845 (ppc-linux-tdep.o): Update dependencies.
7846 (rs6000-tdep.o): Update dependencies.
7847
7848 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7849 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7850 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7851 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7852 (tdesc_powerpc_e500): Remove.
7853
7854 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7855 and "features/rs6000/powerpc-altivec64.c".
7856 (ppc_supply_reg, ppc_collect_reg): Make global.
7857 (variants): Use tdesc_powerpc_32 for "powerpc" and
7858 tdesc_powerpc_altivec64 for "powerpc64".
7859 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7860
7861 * ppc-linux-tdep.h: New file.
7862
7863 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7864 Include "features/rs6000/powerpc-32l.c".
7865 Include "features/rs6000/powerpc-altivec32l.c".
7866 Include "features/rs6000/powerpc-64l.c".
7867 Include "features/rs6000/powerpc-altivec64l.c".
7868 Include "features/rs6000/powerpc-e500l.c".
7869 (ppc_linux_supply_gregset): New function.
7870 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7871 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7872 (ppc64_linux_gregset): Likewise.
7873 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7874 (ppc_linux_trap_reg_p): New function.
7875 (ppc_linux_write_pc): New function.
7876 (ppc_linux_core_read_description): New function.
7877 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7878 ppc_linux_core_read_description. Install orig_r3 and trap
7879 registers if present in the target description.
7880 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7881
7882 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7883 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7884 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7885 (fetch_ppc_registers): Likewise.
7886 (store_ppc_registers): Likewise.
7887 (store_register): Likewise.
7888 (ppc_linux_read_description): Check whether AltiVec is supported.
7889 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7890 Linux target description.
7891
7892 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7893 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7894 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7895 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7896 rs6000/powerpc-e500. Update -expedite variables accordingly.
7897
7898 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7899 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7900 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7901 * features/rs6000/powerpc-e500.c: Regenerate.
7902 * features/rs6000/powerpc-32.c: Regenerate.
7903 * features/rs6000/powerpc-64.c: Regenerate.
7904
7905 * features/rs6000/power-linux.xml: New file.
7906 * features/rs6000/power64-linux.xml: New file.
7907 * features/rs6000/powerpc-32l.xml: New file.
7908 * features/rs6000/powerpc-altivec32l.xml: New file.
7909 * features/rs6000/powerpc-64l.xml: New file.
7910 * features/rs6000/powerpc-altivec64l.xml: New file.
7911 * features/rs6000/powerpc-e500l.xml: New file.
7912 * features/rs6000/powerpc-32l.c: New (generated) file.
7913 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7914 * features/rs6000/powerpc-64l.c: New (generated) file.
7915 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7916 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7917
7918 * regformats/reg-ppc.dat: Remove.
7919 * regformats/reg-ppc64.dat: Remove.
7920 * regformats/rs6000/powerpc-32.dat: Remove.
7921 * regformats/rs6000/powerpc-64.dat: Remove.
7922 * regformats/rs6000/powerpc-e500.dat: Remove.
7923 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7924 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7925 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7926 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7927 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7928
063bfe2e
VP
79292008-05-03 Pedro Alves <pedro@codesourcery.com>
7930
7931 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
7932 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7933 thread_exit observer.
7934 (mi_thread_exit): New.
063bfe2e 7935
f132ba9d
TJB
79362008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7937
7938 * breakpoint.c (create_exception_catchpoint): Remove prototype
7939 for already deleted function.
7940 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7941 * frame.h (show_stack_frame): Remove prototype.
7942 * stack.c (show_stack_frame): Remove empty, unused function.
7943 * source.c (symtab_to_fullname, print_source_lines): Small fix
7944 in comment.
7945 * value.c (show_values): Update comments to mention "show values"
7946 command instead of "info history".
7947
bccdca4a
UW
79482008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7949
7950 * linespec.c: Include "target.h".
7951 (minsym_found): Handle minimal symbols pointing to function
7952 descriptors. Use find_function_start_pc.
7953 * minsyms.c (msymbol_objfile): New function.
7954 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7955 to function descriptors.
7956 * symtab.c (fixup_section): Only use minimal symbol at the same
7957 address to determine section of a symbol.
7958 (find_function_start_pc): New function.
7959 (find_function_start_sal): Use it.
7960 * symtab.h (msymbol_objfile): Add prototype.
7961 (find_function_start_pc): Likewise.
7962 * value.c: Include "objfiles.h".
7963 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 7964 descriptors.
bccdca4a
UW
7965 * Makefile.in (linespec.o): Update dependencies.
7966 (value.o): Likewise.
7967
de4d072f
JB
79682008-05-02 Joel Brobecker <brobecker@adacore.com>
7969
7970 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7971 inside a PAD type is a bitfield.
7972
93d4208d
UW
79732008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7974
7975 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7976 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7977 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7978 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7979 Allow typedefs when checking for function pointer arguments.
7980 Right-align small structs passed on the stack.
7981 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7982 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7983 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7984
60c5725c
DJ
79852008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7986
7987 * Makefile.in (arm-tdep.o): Update.
7988 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7989 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7990 (arm_pc_is_thumb): Use mapping symbols.
7991 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7992 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7993 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7994 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7995 * gdbarch.sh: Add record_special_symbol.
7996 * gdbarch.c, gdbarch.h: Regenerated.
7997 * objfiles.c (struct objfile_data): Add cleanup member.
7998 (register_objfile_data_with_cleanup): New function, from
7999 register_objfile_data.
8000 (register_objfile_data): Use it.
8001 (objfile_free_data): Call clear_objfile_data.
8002 (clear_objfile_data): Call cleanup functions.
8003 * objfiles.h (register_objfile_data_with_cleanup): Declare.
8004
574dffa2
DJ
80052008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8006
8007 * objfiles.c (init_entry_point_info): Handle shared libraries.
8008
2c404490
DJ
80092008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8010
8011 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
8012 lowest_pc.
8013
237fc4c9
PA
80142008-05-02 Jim Blandy <jimb@codesourcery.com>
8015 Pedro Alves <pedro@codesourcery.com>
8016
8017 Implement displaced stepping.
8018
8019 * gdbarch.sh (max_insn_length): New 'variable'.
8020 (displaced_step_copy, displaced_step_fixup)
8021 (displaced_step_free_closure, displaced_step_location): New
8022 functions.
8023 (struct displaced_step_closure): Add forward declaration.
8024 * gdbarch.c, gdbarch.h: Regenerated.
8025
8026 * arch-utils.c: #include "objfiles.h".
8027 (simple_displaced_step_copy_insn)
8028 (simple_displaced_step_free_closure)
8029 (displaced_step_at_entry_point): New functions.
8030 * arch-utils.h (simple_displaced_step_copy_insn)
8031 (simple_displaced_step_free_closure)
8032 (displaced_step_at_entry_point): New prototypes.
8033
8034 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
8035 (I386_MAX_MATCHED_INSN_LEN): ... this.
8036 (i386_absolute_jmp_p, i386_absolute_call_p)
8037 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
8038 (i386_displaced_step_fixup): New functions.
8039 (struct i386_insn, i386_match_insn): Update.
8040 (i386_gdbarch_init): Set gdbarch_max_insn_length.
8041 * i386-tdep.h (I386_MAX_INSN_LEN): New.
8042 (i386_displaced_step_fixup): New prototype.
8043 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
8044 Register gdbarch_displaced_step_copy,
8045 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
8046 and gdbarch_displaced_step_location functions.
8047
8048 * infrun.c (debug_displaced): New variable.
8049 (show_debug_displaced): New function.
8050 (struct displaced_step_request): New struct.
8051 (displaced_step_request_queue, displaced_step_ptid)
8052 (displaced_step_gdbarch, displaced_step_closure)
8053 (displaced_step_original, displaced_step_copy)
8054 (displaced_step_saved_copy, can_use_displaced_stepping): New
8055 variables.
8056 (show_can_use_displaced_stepping, use_displaced_stepping)
8057 (displaced_step_clear, cleanup_displaced_step_closure)
8058 (displaced_step_dump_bytes, displaced_step_prepare)
8059 (displaced_step_clear_cleanup, write_memory_ptid)
8060 (displaced_step_fixup): New functions.
8061 (resume): Call displaced_step_prepare.
8062 (proceed): Call read_pc once, and remember the value. If using
8063 displaced stepping, don't remove breakpoints.
8064 (handle_inferior_event): Call displaced_step_fixup. Add some
8065 debugging output. When we try to step over a breakpoint, but get
8066 a signal to deliver to the thread instead, ensure the step-resume
8067 breakpoint is actually inserted. If a thread hop is needed, and
8068 displaced stepping is enabled, don't remove breakpoints.
8069 (init_wait_for_inferior): Call displaced_step_clear.
8070 (_initialize_infrun): Add "set debug displaced" command. Add
8071 "maint set can-use-displaced-stepping" command. Clear
8072 displaced_step_ptid.
8073 * inferior.h (debug_displaced): Declare variable.
8074 (displaced_step_dump_bytes): Declare function.
8075
8076 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
8077 dependencies.
8078
0428b8f5
DJ
80792008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8080
8081 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
8082 (arm_force_mode_string, arm_show_fallback_mode)
8083 (arm_show_force_mode): New.
8084 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
8085 arm_frame_is_thumb.
8086 (_initialize_arm_tdep): Add "set arm fallback-mode"
8087 and "set arm force-mode".
8088 * NEWS: Document new commands.
8089
d01a8610
AS
80902008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
8091
8092 * main.h (batch_silent): Declare.
8093 * event-top.c: Include main.h.
8094 (gdb_setup_readline): Remove extern batch_silent declaration.
8095 * infrun.c (normal_stop): Don't print source location when running in
8096 --batch-silent mode.
8097 * Makefile.in (event-top.o): Add main.h dependency.
8098
5009afc5
AS
80992008-05-02 Andreas Schwab <schwab@suse.de>
8100
8101 * target.h (struct target_ops): Add
8102 to_watchpoint_addr_within_range.
8103 (target_watchpoint_addr_within_range): New function.
8104 * target.c (update_current_target): Inherit
8105 to_watchpoint_addr_within_range, defaulting to
8106 default_watchpoint_addr_within_range.
8107 (default_watchpoint_addr_within_range): New function.
8108 (debug_to_watchpoint_addr_within_range): New function.
8109 (setup_target_debug): Set to_watchpoint_addr_within_range.
8110 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
8111 New function.
8112 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
8113 * breakpoint.c (watchpoints_triggered): Use
8114 target_watchpoint_addr_within_range.
8115
a15c5c83
PA
81162008-05-01 Pedro Alves <pedro@codesourcery.com>
8117
8118 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
8119 (i[34567]86-*-dicos*, x86_64-*-dicos*):
8120 Set gdb_osabi to GDB_OSABI_DICOS.
8121
8122 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
8123 * osabi.c (gdb_osabi_name): Add "DICOS".
8124
8125 * i386-dicos-tdep.c: New file.
8126
8127 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
8128 (ALLDEPFILES): Add i386-dicos-tdep.c.
8129 (i386-dicos-tdep.o): New rule.
8130
728c8f58
PA
81312008-05-01 Pedro Alves <pedro@codesourcery.com>
8132
8133 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
8134 and register the fork's PTID as a thread.
8135
604133b5
AR
81362008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
8137
8138 PR gdb/1665
8139 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
8140 assign its value to the breakpoint created.
8141 (create_breakpoints): Add breakpoint_ops argument and pass it
8142 to create_breakpoint call.
8143 (break_command_really): Add breakpoint_ops argument and pass/assign
8144 appropriately.
8145 (break_command_1): Pass NULL as ops argument.
8146 (set_breakpoint): Pass NULL as ops argument.
8147 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
8148 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
8149 catch and throw catchpoints.
5009afc5 8150
1f906a60 81512008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
8152
8153 PR gdb/2343
8154 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
8155 translate signal numeric value from the target to GDB's enum
8156 target_signal.
8157 * gdbarch.c, gdbarch.h: Regenerated.
8158 * gdbarch.sh: Added two new functions target_signal_from_host and
8159 target_signal_to_host.
680b56ce 8160 * target.h (default_target_signal_from_host,
1cded358
AR
8161 default_target_signal_to_host): New functions - declarations.
8162 * signals/signals.c (struct gdbarch): New declaration.
8163 (default_target_signal_to_host, default_target_signal_from_host): New
8164 functions.
8165
ed5e9466
DJ
81662008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8167 Pedro Alves <pedro@codesourcery.com>
8168
8169 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
8170 Johnston <jjohnstn@redhat.com>.
8171
8172 * NEWS: Mention attach to stopped process fix.
8173 * infcmd.c (detach_command, disconnect_command): Discard the thread
8174 list.
8175 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
8176 attaching. Use signal_stop_state.
8177 (signal_stop_state): Check stop_soon.
8178 * linux-nat.c (kill_lwp): Declare earlier.
8179 (pid_is_stopped, linux_nat_post_attach_wait): New.
8180 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
8181 comments.
8182 (linux_nat_attach): Use linux_nat_post_attach_wait.
8183 (detach_callback, linux_nat_detach): Improve handling for signalled
8184 processes.
8185 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
8186 from the process ID.
8187 * Makefile.in (infcmd.o): Update.
8188
b39cc962
DJ
81892008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8190
8191 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
8192 * arm-tdep.c (arm_frame_is_thumb): New.
8193 (arm_pc_is_thumb): Clarify comment.
8194 (thumb_analyze_prologue): Remove PC special case.
8195 (thumb_scan_prologue): Take a block_addr argument. Use it for
8196 find_pc_partial_function. Remove unused variables.
8197 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
8198 for find_pc_partial_function. Remove PC special case.
8199 (arm_prologue_prev_register): Add special handling for PC and CPSR.
8200 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
8201 (arm_get_next_pc): Use arm_frame_is_thumb.
8202 (arm_write_pc): Use CPSR_T instead of 0x20.
8203 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
8204 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
8205 (CPSR_T): Define.
8206 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
8207 DWARF2_FRAME_REG_FN.
8208 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
8209 DWARF2_FRAME_REG_FN.
8210 (struct dwarf2_frame_state_reg): Add FN to loc union.
8211
944f08ab
JB
82122008-05-01 Nick Roberts <nickrob@snap.net.nz>
8213
8214 * exec.c (print_section_info): Add missing '\n'.
8215
cfc01461
VP
82162008-05-01 Vladimir Prus <vladimir@codesourcery.com>
8217
8218 * thread.c (add_thread): Move observer call to ...
680b56ce 8219 (add_thread_silent): ... here.
cfc01461 8220
1af5d7ce
UW
82212008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8222
8223 * rs6000-tdep.c: Update for unwinder changes.
8224 * ppcobsd-tdep.c: Likewise.
8225
f089c433
UW
82262008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8227
8228 * s390-tdep.c: Update for unwinder changes.
8229
8d998b8f
UW
82302008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8231
8232 * spu-tdep.c: Update for unwinder changes.
8233
5366653e
DJ
82342008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8235
8236 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
8237 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
8238 sparc64-linux-tdep.c: Update for unwinder changes.
8239
b8a22b94
DJ
82402008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8241
8242 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
8243 for unwinder changes.
8244 * mips-tdep.c: Likewise.
8245 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
8246 raw one.
8247
a262aec2
DJ
82482008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8249
8250 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
8251 unwinder changes.
8252
10458914
DJ
82532008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8254
8255 Update i386 and amd64 ports for unwinder changes.
8256
8257 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
8258 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
8259 (amd64_frame_unwind): Use default_frame_sniffer.
8260 (amd64_frame_sniffer): Delete.
8261 (amd64_sigtramp_frame_cache): Expect this_frame.
8262 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
8263 (amd64_sigtramp_frame_sniffer): Update signature.
8264 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
8265 (amd64_frame_base_address): Expect this_frame.
8266 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
8267 this_frame.
8268 (amd64_init_abi): Use set_gdbarch_dummy_id and
8269 frame_unwind_append_unwinder.
8270 * i386-tdep.c (i386_frame_cache): Expect this_frame.
8271 (i386_frame_this_id, i386_frame_prev_register): Update signature.
8272 (i386_frame_unwind): Use default_frame_sniffer.
8273 (i386_frame_sniffer): Delete.
8274 (i386_sigtramp_frame_cache): Expect this_frame.
8275 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
8276 (i386_sigtramp_frame_sniffer): Update signature.
8277 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
8278 (i386_frame_base_address): Update signature.
8279 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
8280 (i386_push_dummy_call): Update comment.
8281 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
8282 Expect this_frame.
8283 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
8284 and frame_unwind_append_unwinder.
8285 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
8286 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
8287 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
8288 i386nbsd-tdep.c: Update for unwinder changes.
8289
25492ce3
DJ
82902008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8291
8292 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
8293 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
8294 this_frame.
8295 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
8296 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
8297 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
8298 signature.
8299 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
8300 this_frame.
8301 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
8302 Update signature.
8303 * tramp-frame.h (struct tramp_frame): Update signature of init.
8304 * Makefile.in (trad-frame.o): Update.
8305
4a4e5149
DJ
83062008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8307
8308 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
8309 (execute_stack_op): Put this_frame in the baton.
8310 (execute_cfa_program): Take this_frame.
8311 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
8312 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
8313 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
8314 (dwarf2_frame_this_id): Adjust to work on this_frame.
8315 (dwarf2_signal_frame_this_id): Delete.
8316 (dwarf2_frame_prev_register): Update signature. Use new frame
8317 unwind methods.
8318 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
8319 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
8320 dwarf2_frame_sniffer.
8321 (dwarf2_append_unwinders): New.
8322 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
8323 this_frame.
8324 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8325 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8326 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8327 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8328 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8329 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8330 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8331 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8332 (dwarf2_append_unwinders): Declare.
8333 (dwarf2_frame_base_sniffer): Update declaration.
8334 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8335 this_frame.
8336
669fac23
DJ
83372008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8338
8339 Convert frame unwinders to use the current frame and
8340 "struct value".
8341
8342 * frame.c (frame_debug): Make global.
8343 (get_frame_id): Pass this frame to unwinder routines.
8344 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8345 (do_frame_register_read): Do not discard the return value of
8346 frame_register_read.
8347 (frame_register_unwind): Remove debug messages. Use
8348 frame_unwind_register_value.
8349 (frame_unwind_register_value, get_frame_register_value): New
8350 functions.
8351 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8352 (get_frame_args_address, get_frame_type): Pass this frame to
8353 unwinder routines.
8354 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8355 functions.
8356 * frame.h: Update comments.
8357 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8358 (frame_prepare_for_sniffer): Declare.
8359 * frame-unwind.h: Update comments and parameter names.
8360 (default_frame_sniffer): Declare.
8361 (frame_prev_register_ftype): Return a struct value *.
8362 (struct frame_unwind): Remove prev_pc member.
8363 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8364 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8365 (frame_unwind_got_register, frame_unwind_got_memory)
8366 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8367 * frame-base.h: Update comments and parameter names.
8368 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8369 if necessary. Add debugging output.
8370 * sentinel-frame.c (sentinel_frame_prev_register)
8371 (sentinel_frame_this_id): Update for new signature.
8372 (sentinel_frame_prev_pc): Delete.
8373 (sentinel_frame_unwinder): Remove prev_pc.
8374 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8375 prev_pc.
8376 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8377 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8378 (frame_unwind_append_sniffer): Delete.
8379 (frame_unwind_append_unwinder): New function.
8380 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8381 from unwinders. Use frame_prepare_for_sniffer.
8382 (default_frame_sniffer, frame_unwind_got_optimized)
8383 (frame_unwind_got_register, frame_unwind_got_memory)
8384 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8385 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8386 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8387 signature.
8388 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8389 * gdbarch.c, gdbarch.c: Regenerated.
8390 * frame-base.c (default_frame_base_address)
8391 (default_frame_locals_address, default_frame_args_address): Update
8392 for new signature.
8393 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8394 * infcall.c (call_function_by_hand): Update comments.
8395 * Makefile.in (frame-unwind.o): Update dependencies.
8396
9214ee5f
DJ
83972008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8398
8399 * ada-lang.c (ada_value_primitive_packed_val): Only check
8400 value_lazy for memory lvals.
8401 * findvar.c (value_of_register_lazy): New function.
8402 (locate_var_value): Only check value_lazy for memory lvals.
8403 * valarith.c (value_subscripted_rvalue): Likewise.
8404 * valops.c (value_fetch_lazy): Handle both memory and register
8405 lvals.
8406 (search_struct_field, value_slice): Only check value_lazy for memory
8407 lvals.
8408 * value.c (struct value): Update comment for lazy.
8409 (value_primitive_field): Only check value_lazy for memory lvals.
8410 * value.h (value_lazy): Update comment.
8411 (value_of_register_lazy): Declare.
8412
939643d7
DJ
84132008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8414
8415 * corefile.c (reopen_exec_file): Close any open files.
8416
1de34ab7
JB
84172008-04-29 Joel Brobecker <brobecker@adacore.com>
8418
8419 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8420 show_memory_breakpoints to 1 while reading the instruction bundle.
8421
ea42b34a
JB
84222008-04-29 Joel Brobecker <brobecker@adacore.com>
8423
8424 * gdbarch.sh: Document the return_value method. Explain that
8425 the FUNCTYPE parameter might be NULL.
8426 * gdbarch.h: Regenerated.
8427 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8428 type when calling using_struct_return, as this is unnecessary
8429 on this target.
8430
a0fe373c
JB
84312008-04-28 Joel Brobecker <brobecker@adacore.com>
8432
8433 * terminal.h (create_tty_session): Fix return type.
8434
c6446539
VP
84352008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8436
8437 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8438
2f069f6f
JB
84392008-04-26 Joel Brobecker <brobecker@adacore.com>
8440
8441 * breakpoint.c (condition_command, commands_from_control_command)
8442 (break_command_really): Minor reformatting.
8443
93b5768b
PA
84442008-04-25 Pedro Alves <pedro@codesourcery.com>
8445
8446 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8447
436675d3
PA
84482008-04-25 Pedro Alves <pedro@codesourcery.com>
8449
8450 * amd64-tdep.c (amd64_get_longjmp_target): New.
8451 (amd64_init_abi): Register amd64_get_longjmp_target as
8452 gdbarch_get_longjmp_target callback.
8453 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8454
78b6a731
PA
84552008-04-25 Pedro Alves <pedro@codesourcery.com>
8456
8457 * breakpoint.h (enum bpstat_what_main_action): Delete
8458 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8459
8460 * breakpoint.c (clrs): Delete.
8461 (bpstat_what): Update table.
8462
8463 * infrun.c (handle_inferior_event): Remove
8464 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8465
9e22b03a
VP
84662008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8467
8468 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8469 Adjust all prototypes using mi_cmd_args_ftype to use
8470 mi_cmd_argv_ftype.
8471 (struct mi_cmd): Remove the args_func field.
8472 * mi/mi-cmds.c: Don't provide value for the args_func field.
8473 * mi/mi-main.c (mi_execute_async_cli_command)
8474 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8475 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8476 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8477 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8478 (mi_cmd_target_download): Adjust.
8479 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8480 (mi_cmd_execute): Do not check for args_func.
8481 (mi_execute_async_cli_command): Adjust.
8482 * mi/mi-parse.c: Don't check for args_func.
8483
721c02de 84842008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8485
680b56ce
AS
8486 * breakpoint.c (bpstat_check_location)
8487 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8488 New, extracted from bpstat_stop_status.
8489 (bpstat_stop_status): Use the above.
18a18393
VP
8490
84912008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8492
680b56ce
AS
8493 * mi/mi-main.c (last_async_command): Rename to current_token.
8494 (previous_async_command): Remove.
8495 (mi_cmd_gdb_exit): Adjust.
8496 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8497 (mi_cmd_target_select): Adjust.
8498 (mi_cmd_execute): Don't set previous_async_command. Free token
8499 here even in async mode.
8500 (mi_execute_async_cli_command): Adjust.
8501 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8502 token.
8503 (mi_load_progress): Adjust.
721c02de 8504
f13468d9
VP
85052008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8506
680b56ce
AS
8507 * infcmd.c (step_1_continuation): Always disable longjmp
8508 breakpoint if we're not going to do another step.
f13468d9 8509
f107f563
VP
85102008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8511
8512 exec_cleanup murder.
8513 * breakpoint.c (until_break_command_continuation): Add
8514 the 'error' parameter. Directly delete the breakoint as
8515 opposed to running cleanups.
8516 (until_break_command): Install continuation only
8517 after starting the target. Don't use exec cleanups,
8518 use ordinary cleanups. Discard cleanups is successfully
8519 started the target in async mode.
8520 (make_cleanup_delete_breakpoint): Remove.
8521 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8522 declaration.
8523 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8524 declarations.
8525 (struct continations): Add the 'error' parameter to the
8526 continuation_hook field.
8527 (add_continuation, do_all_continuations)
8528 (add_intermediate_continuation)
8529 (do_all_intermediate_continuations): Add the 'error' parameter.
8530 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8531 * inf-loop.c (inferior_event_handler): Instead of calling
8532 discard_all_continuations, use do_all_continuations with 1 as
8533 'error' parameter. Pass 0 as 'error' parameter in existing uses
8534 of discard_all_continuations.
8535 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8536 cleanups.
8537 (step_once): Install continuation only after resuming the target.
8538 (step_1_continuation): Disable longjmp breakpoint on error.
8539 (finish_command_continuation): Add the error parameter. Delete
8540 the finish breakpoint directly, do not use cleanups.
8541 (finish_command): Do not use exec_cleanups. Always setup
8542 continuation. For sync case, immediately run them.
8543 (attach_command_continuation): Add the error parameter.
8544 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8545 remove step_resume_breakpoint -- adjust delete it directly.
8546 * interps.c (interp_set): Adjust call to do_all_continations.
8547 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8548 do exec cleanups.
8549 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8550 cleanups.
8551 (mi_cmd_execute): Do not use exec_cleanup.
8552 (mi_execute_async_cli_command): Simplify the string concatenation
8553 logic. Do no use exec cleanup.
8554 (mi_exec_async_cli_cmd_continuation): New parameter error.
8555 Free last_async_command.
8556 * top.c (command_line_handler_continuation): New parameter error.
8557 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8558 (do_exec_cleanups): Remove.
8559 (add_continuation, do_all_continations)
8560 (add_intermediate_continuation)
8561 (do_all_intermediate_continuations): New parameter error.
8562
74960c60
VP
85632008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8564
8565 * breakpoint.h (bp_location_p): New typedef.
8566 Register a vector of bp_location_p.
8567 * breakpoint.c (always_inserted_mode)
8568 (show_always_inserted_mode): New.
8569 (unlink_locations_from_global_list): Remove.
8570 (update_global_location_list)
8571 (update_global_location_list_nothrow): New.
8572 (update_watchpoint): Don't free locations.
8573 (should_insert_location): New.
8574 (insert_bp_location): Use should_insert_location.
8575 (insert_breakpoint_locations): Copied from
8576 insert_breakpoints.
8577 (insert_breakpoint): Use insert_breakpoint_locations.
8578 (bpstat_stop_status): Call update_global_location_list
8579 when disabling breakpoint.
8580 (allocate_bp_location): Don't add to bp_location_chain.
8581 (set_raw_breakpoint)
8582 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8583 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8584 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8585 (set_longjmp_resume_breakpoint)
8586 (enable_watchpoints_after_interactive_call_stop)
8587 (disable_watchpoints_before_interactive_call_start)
8588 (create_internal_breakpoint)
8589 (create_fork_vfork_event_catchpoint)
8590 (create_exec_event_catchpoint, set_momentary_breakpoint)
8591 (create_breakpoints, break_command_1, watch_command_1)
8592 (create_exception_catchpoint)
8593 (handle_gnu_v3_exceptions)
8594 (disable_breakpoint, breakpoint_re_set_one)
8595 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8596 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8597 Call update_global_location_list.
8598 (delete_breakpoint): Don't remove locations and don't
8599 try to reinsert them. Call update_global_location_list.
8600 (update_breakpoint_locations): Likewise.
8601 (restore_always_inserted_mode): New.
8602 (update_breakpoints_after_exec): Temporary disable
8603 always inserted mode.
8604 * Makefile.in: Update dependencies.
8605
8606 * infrun.c (proceed): Remove breakpoints while stepping
8607 over breakpoint.
8608 (handle_inferior_event): Don't remove or insert
8609 breakpoints.
8610 * linux-fork.c (checkpoint_command): Remove breakpoints
8611 before fork and insert after.
8612 (linux_fork_context): Remove breakpoints before switch
8613 and insert after.
8614 * target.c (target_disconnect, target_detach): Remove
8615 breakpoints from target.
8616
680b56ce 8617
d24317b4
VP
86182008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8619
8620 * breakpoint.c (print_one_breakpoint_location): In MI
8621 mode, report the location string the breakpoint was
8622 originally created with.
8623
ee967b5f
MG
86242008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8625
8626 * Makefile.in (xtensa-tdep.o): Update dependencies.
8627 * configure.tgt (xtensa*): Update dependencies.
8628 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8629 Local variable areg renamed to arreg.
8630 (areg_number): New function.
8631 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8632 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8633 replaced by arreg_number.
8634 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8635 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8636 (xtensa_scan_prologue): New function.
8637 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8638 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8639 value based on prologue analysis. Fix the bugs preventing WS and
8640 AR4-AR7/A11 registers from getting right values for intermediate frames,
8641 whose registers have been already spilled.
8642 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8643 and arreg_number appropriately.
8644 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8645 svr4_ilp32_fetch_link_map_offsets.
8646
09d71d23
AS
86472008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8648
8649 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8650 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8651
fdc59709
PB
86522008-04-23 Paolo Bonzini <bonzini@gnu.org>
8653
680b56ce
AS
8654 * acinclude.m4: Add override.m4.
8655 * configure: Regenerate.
fdc59709 8656
0bcd0149
JK
86572008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8658
8659 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8660 initialized with a trailing space now. Use PROMPT_ARG of
8661 COMMAND_LINE_INPUT instead of printing it ourselves.
8662
88d8a8e0
JB
86632008-04-22 Joel Brobecker <brobecker@adacore.com>
8664
8665 * NEWS: Document support for 64-bit core file.
8666
c055b101
CV
86672008-04-22 Corinna Vinschen <vinschen@redhat.com>
8668
8669 * NEWS: Add information on calling convention and new SH CLI options.
8670
8671 * sh-tdep.c (sh_cc_gcc): New static string.
8672 (sh_cc_renesas): Ditto.
8673 (sh_cc_enum): New static string array.
8674 (sh_active_calling_convention): New static string pointer denoting
8675 active user chosen ABI.
8676 (sh_is_renesas_calling_convention): New function to return function
8677 specific ABI, or user choice if necessary.
8678 (sh_use_struct_convention): Rename first argument and turn around its
8679 meaning. Check for renesas ABI and return accordingly.
8680 (sh_use_struct_convention_nofpu): New function.
8681 (sh_next_flt_argreg): Get function type as third parameter. Check
8682 for renesas ABI and choose floating registers accordingly.
8683 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8684 struct return slot accordingly.
8685 (sh_push_dummy_call_nofpu): Ditto.
8686 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8687 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8688 (sh_return_value_fpu): Evaluate ABI and give to
8689 sh_use_struct_convention.
8690 (show_sh_command): New function.
8691 (set_sh_command): Ditto.
8692 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8693 CLI command.
8694
8695 * gdbarch.sh (return_value): Add func_type argument.
8696 * gdbarch.c: Regenerate.
8697 * gdbarch.h: Ditto.
8698 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8699 val_type so as not to collide with value_type function. Call
8700 using_struct_return with additional function type argument.
8701 * infcall.c (call_function_by_hand): Call using_struct_return and
8702 gdbarch_return_value with additional function type argument.
8703 * infcmd.c (print_return_value): Take addition func_type argument.
8704 Call gdbarch_return_value with additional function type argument.
8705 (finish_command_continuation): Call print_return_value with additional
8706 function type argument.
8707 (finish_command): Ditto.
8708 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8709 additional function type argument.
8710 * stack.c (return_command): Call using_struct_return and
8711 gdbarch_return_value with additional function type argument.
8712 * value.c (using_struct_return): Take additional function type argument.
8713 * value.h (using_struct_return): Accommodate declaration.
8714 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8715 * amd64-tdep.c (amd64_return_value): Ditto.
8716 * arm-tdep.c (arm_return_value): Ditto.
8717 * avr-tdep.c (avr_return_value): Ditto.
8718 * cris-tdep.c (cris_return_value): Ditto.
8719 * frv-tdep.c (frv_return_value): Ditto.
8720 * h8300-tdep.c (h8300_return_value): Ditto.
8721 (h8300h_return_value): Ditto.
8722 * hppa-tdep.c (hppa32_return_value): Ditto.
8723 (hppa64_return_value): Ditto.
8724 * i386-tdep.c (i386_return_value): Ditto.
8725 * ia64-tdep.c (ia64_return_value): Ditto.
8726 * iq2000-tdep.c (iq2000_return_value): Ditto.
8727 * m32c-tdep.c (m32c_return_value): Ditto.
8728 * m32r-tdep.c (m32r_return_value): Ditto.
8729 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8730 * m68k-tdep.c (m68k_return_value): Ditto.
8731 (m68k_svr4_return_value): Ditto.
8732 * m88k-tdep.c (m88k_return_value): Ditto.
8733 * mep-tdep.c (mep_return_value): Ditto.
8734 * mips-tdep.c (mips_eabi_return_value): Ditto.
8735 (mips_n32n64_return_value): Ditto.
8736 (mips_o32_return_value): Ditto.
8737 (mips_o64_return_value): Ditto.
8738 * mn10300-tdep.c (mn10300_return_value): Ditto.
8739 * mt-tdep.c (mt_return_value): Ditto.
8740 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8741 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8742 (ppc_sysv_abi_broken_return_value): Ditto.
8743 (ppc64_sysv_abi_return_value): Ditto.
8744 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8745 (ppc_sysv_abi_broken_return_value): Ditto.
8746 (ppc64_sysv_abi_return_value): Ditto.
8747 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8748 * rs6000-tdep.c (rs6000_return_value): Ditto.
8749 * s390-tdep.c (s390_return_value): Ditto.
8750 * score-tdep.c (score_return_value): Ditto.
8751 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8752 (sh_return_value_fpu): Ditto.
8753 * sh64-tdep.c (sh64_return_value): Ditto.
8754 * sparc-tdep.c (sparc32_return_value): Ditto.
8755 * sparc64-tdep.c (sparc64_return_value): Ditto.
8756 * spu-tdep.c (spu_return_value): Ditto.
8757 * v850-tdep.c (v850_return_value): Ditto.
8758 * vax-tdep.c (vax_return_value): Ditto.
8759 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8760 * xtensa-tdep.c (xtensa_return_value): Ditto.
8761
8762 * gdbtypes.h (struct type): Add calling_convention member.
8763 * dwarf2read.c (read_subroutine_type): Add calling convention read
8764 from DW_AT_calling_convention attribute to function type.
8765
9eec4d1e
MD
87662008-04-22 Markus Deuling <deuling@de.ibm.com>
8767
8768 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8769 multi_f77_subscript to support values from registers.
8770 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8771 * value.h (value_subscripted_rvalue): Add prototype.
8772
8773 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8774 Fix output.
8775 * f-valprint.c (f_val_print): Likewise.
8776
ef72380d
CS
87772008-04-21 Craig Silverstein <csilvers@google.com>
8778
8779 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8780 !HAVE_ZLIB_H case.
8781
ff8e85c3
PA
87822008-04-21 Pedro Alves <pedro@codesourcery.com>
8783
8784 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8785 section is not a code section.
8786
31fffb02
CS
87872008-04-19 Craig Silverstein <csilvers@google.com>
8788
8789 * NEWS: Add information on compressed debug sections.
8790
8e91f023
VP
87912008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8792
8793 * mi/mi-cmd-var.c (varobj_update_one): Print new
8794 value for variable objects that changed type.
8795
603ba1de
VP
87962008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8797
8798 * varobj.c (varobj_invalidate): Don't touch floating
8799 varobjs.
8800
7fc830e2
MK
88012008-04-19 Mark Kettenis <kettenis@gnu.org>
8802
8803 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8804 (multiple_symbols_cancel): Remove extra const.
8805 * symtab.h: Likewise.
8806
bcbf8b68
NR
88072008-04-19 Nick Roberts <nickrob@snap.net.nz>
8808
8809 * interps.c (top_level_interpreter): Rename static variable...
8810 (top_level_interpreter_ptr): ...to this.
8811 (top_level_interpreter): New function.
8812
8813 * interps.h: New extern for top_level_interpreter.
8814
8815 * linespec.c: Include interps.h and mi/mi-cmds.h.
8816 (decode_line_2): When using MI, always set all breakpoints in menu.
8817
8818 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8819
31fffb02 88202008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8821
8822 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8823 * config.in, configure: Regenerate.
8824 * dwarf2read.c: Include zlib.h if present.
8825 Modified *_SECTION macros.
8826 (section_is_p): New.
8827 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8828 (dwarf2_resize_section): New.
8829 to determine whether a given section has a given name.
8830 (zlib_decompress_section): New.
8831 (dwarf2_read_section): Read the compressed section if present
8832 in the binary.
8833 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8834
a03b3a97
TJB
88352008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8836
8837 * defs.h (exec_set_section_offsets): Remove prototype.
8838 * exec.c (exec_set_section_offsets): Remove function.
8839
9e386756
JB
88402008-04-18 Joel Brobecker <brobecker@adacore.com>
8841
8842 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8843 in the search for the matching symbol.
8844
2ec93238
MK
88452008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8846
8847 * breakpoint.c (update_watchpoint): Always reparse
8848 condition.
8849
e9bbd7c5
JB
88502008-04-17 Joel Brobecker <brobecker@adacore.com>
8851
8852 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8853 the breakpoint address only once.
8854
475bbd17
JB
88552008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8856
8857 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8858 rather than a hard-coded architecture, for xcoff executables.
8859
86991504
DE
88602008-04-17 Doug Evans <dje@google.com>
8861
4584e32e
DE
8862 * buildsym.c (watch_main_source_file_lossage): New fn.
8863 (end_symtab): Call it.
8864
86991504
DE
8865 * source.c (find_and_open_source): Add some comments clarifying
8866 handling of FULLNAME argument. Make static. Remove pointless
8867 xstrdup/xfree.
8868
0a320680
PA
88692008-04-17 Pedro Alves <pedro@codesourcery.com>
8870
8871 * inf-loop.c (inferior_event_handler): Also run the intermediate
8872 continuations in the INF_EXEC_COMPLETE case.
8873
700b53b1
TT
88742008-04-16 Tom Tromey <tromey@redhat.com>
8875
8876 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8877 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8878 * cli/cli-decode.c (set_cmd_async_ok): New function.
8879 (get_cmd_async_ok): New function.
8880 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8881 "show" as async-ok.
8882 * top.c (execute_command): Use get_cmd_async_ok.
8883 * infcmd.c: Include cli/cli-decode.h.
8884 (_initialize_infcmd): Mark "interrupt" as async-ok.
8885 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8886
dacec2a8
DJ
88872008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8888
8889 PR gdb/2445
8890 * exec.c: Correct "arch-utils.h" include.
8891
1f906a60 88922008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
8893
8894 PR gdb/2424
8895 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8896 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8897 * breakpoint.c (bpdisp_texst): New function. The function takes over
8898 the role of bpstats static array in print_one_breakpoint_location.
8899 (print_it_typical): Print "Temporary breakpoint" instead
8900 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8901 protocols, print disp field.
8902 (print_one_breakpoint_location): Removed bpdisps static definition.
8903 Call new bpstat_text function to get value for 'disp' field.
8904 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8905
4d7b71aa
DJ
89062008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8907
8908 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8909 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8910 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8911 * gnulib/Makefile.in: Regenerate.
8912
aa11fd3f
DJ
89132008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8914
8915 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8916 (defs_h): Use $(GNULIB_H).
8917 (all-lib): Depend on gnulib/Makefile.
8918 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8919 * config.in, gnulib/Makefile.in: Regenerated.
8920
e28b3332
DJ
89212008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8922
8923 * Makefile.in (LIBGNU, INCGNU): Define.
8924 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8925 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8926 (CLEANDIRS): New.
8927 ($(LIBGNU), all-lib): New rules.
8928 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8929 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8930 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8931 * gnulib: New directory, from gnulib-tool.
8932 * configure, aclocal.m4: Regenerated.
8933
e3bc4218
DJ
89342008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8935
8936 * linux-thread-db.c (have_threads_callback): Check thread->private.
8937
fcacd99f
VP
89382008-04-13 Nick Roberts <nickrob@snap.net.nz>
8939 Vladimir Prus <vladimir@codesourcery.com>
8940
8941 Fix @-varobjs.
680b56ce
AS
8942 * varobj.c (value_of_root): Update the expression for
8943 floating varobjs.
8944 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8945 report that.
fcacd99f 8946
de051565
MK
89472008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8948
8949 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8950 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8951 (mi_cmd_var_set_format): Use new mi_parse_format.
8952 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8953 format.
8954 * Makefile.in (mi-cmd-var.o): Update dependencies.
8955
8956 * varobj.h (varobj_get_formatted_value): Declare.
8957 * varobj.c (my_value_of_variable): Added format parameter.
8958 (cplus_value_of_variable): Likewise.
8959 (java_value_of_variable): Likewise.
8960 (c_value_of_variable): Likewise. Evaluate expression based
8961 on format parameter.
8962 (struct language_specific): Add format parameter to function member
8963 *value_of_variable.
8964 (varobj_get_formatted_value): New.
8965 (varobj_get_value): Added format parameter to method call.
680b56ce 8966
56953f80
JB
89672008-04-08 Joel Brobecker <brobecker@adacore.com>
8968
8969 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8970 instance flags of the undefined type before calling replace_type.
8971
e4e33b9e
VP
89722008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8973
8974 * target.h (enum strata): Remove the download_stratum.
680b56ce 8975
92b5c263
DE
89762008-04-07 Doug Evans <dje@google.com>
8977
8978 * buildsym.h (last_source_file): Add dwarf info to comment.
8979 (last_source_start_addr): Ditto.
8980
effa26a9
PA
89812008-04-07 Pedro Alves <pedro@codesourcery.com>
8982
8983 * alphanbsd-tdep.c: Include "target.h".
8984 * mn10300-tdep.c: Include "target.h".
8985 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8986
2b2d9e11
VP
89872008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8988
8989 Fix breakpoint condition that use member variables.
680b56ce
AS
8990 * valops.c (check_field): Remove.
8991 (check_field_in): Rename to check_field.
8992 (value_of_this): Use la_name_of_this.
8993 * value.h (check_field): Adjust prototype.
8994
8995 * language.h (la_value_of_this): Rename to la_name_of_this.
8996 * language.c (unknown_language_defn): Specify "this" for
8997 name_of_this.
8998 (auto_language_defn): Likewise.
8999 (local_language_defn): Likewise.
9000 * ada-lang.c (ada_language_defn): Adjust comment.
9001 * c-lang.c (c_language_defn): Adjust comment.
9002 (cplus_language_defn): Specify "this" for name_of_this.
9003 (asm_language_defn): Adjust comment.
9004 (minimal_language_defn): Adjust comment.
9005 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
9006 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
9007 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
9008 * objc-lang.c (objc_language_defn): Specify "self" for
9009 name_of_this.
9010 * p-lang.c (pascal_language_defn): Specify "this" for
9011 name_of_this.
9012 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
9013
9014 * symtab.c (lookup_symbol_aux): Lookup "this" in the
9015 proper scope, and check for field in type of "this", without
9016 trying to create a value.
2b2d9e11 9017
a13e061a
PA
90182008-04-04 Pedro Alves <pedro@codesourcery.com>
9019
9020 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
9021 (mi_error_message): Delete declaration.
9022 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
9023 returning MI_CMD_ERROR.
9024 * mi/mi-main.c (mi_error_message): Delete.
9025 (mi_cmd_exec_interrupt):
9026 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
9027 (mi_cmd_thread_info): Call error instead of returning
9028 MI_CMD_ERROR.
9029 (mi_cmd_data_list_register_values): Call error instead of
9030 returning MI_CMD_ERROR. Adapt to new get_register interface.
9031 (get_register): Change return typo to void. Call error instead of
9032 returning MI_CMD_ERROR.
9033 (mi_cmd_data_write_register_values): Call error instead of
9034 returning MI_CMD_ERROR.
9035 (mi_cmd_list_features): Return MI_CMD_DONE.
9036 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
9037 (mi_execute_command): Always print exceptions with -error.
9038
aad4b048
JB
90392008-04-04 Joel Brobecker <brobecker@adacore.com>
9040
9041 * NEWS: Mention new commands set/show multiple-symbols.
9042
717d2f5a
JB
90432008-04-03 Joel Brobecker <brobecker@adacore.com>
9044
9045 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
9046 (multiple_symbols_cancel): New constants.
9047 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
9048 (multiple_symbols_select_mode): New function.
9049 (_initialize_symtab): Add new set/show multiple-symbols commands.
9050 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
9051 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
9052 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
9053 setting.
9054 * linespec.c (decode_line_2): Likewise.
9055
f73634e5
DE
90562008-04-03 Doug Evans <dje@sebabeach.org>
9057
9058 * symtab.h (enum free_code): Delete free_contents, unused.
9059 * symmisc.c (free_symtab_block): Delete.
9060 (free_symtab, case free_code): Delete.
9061
1f906a60 90622008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
9063
9064 * valops.c (value_cast_structs): New function. Cast related
680b56ce 9065 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
9066 function comes mostly from value_cast_pointers.
9067 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
9068 to value_cast_structs. Now value_cast_pointers needs only create
9069 appropriate reference after using value_cast_structs for actual
9070 casting.
9071 (value_cast): Handle references.
9072
61ad90e1
MK
90732008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
9074
9075 * MAINTAINERS: Added myself to section Write After Approval.
9076
b7d038ae
DJ
90772008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
9078
9079 * ia64-tdep.c (examine_prologue): Correct array access.
9080
1f906a60 90812008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
9082
9083 * cp-support.c (first_component_command): Return if no arguments.
9084
df3ac606
CD
90852008-03-28 Carlos O'Donell <carlos@codesourcery.com>
9086
9087 * ser-mingw.c (ser_windows_open): Open requested name.
9088
ca933485
AR
90892008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
9090
9091 * MAINTAINERS: Added myself.
9092
5f667f2d
PA
90932008-03-28 Pedro Alves <pedro@codesourcery.com>
9094
9095 * target.c (find_default_run_target): Allow a NULL `do_mesg'
9096 parameter. If it is NULL, don't call error.
9097 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
9098 `do_mesg' parameter to find_default_run_target. If no target was
9099 found, return 0.
9100
e741f4d4
DJ
91012008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
9102
9103 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
9104 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
9105 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
9106 Delete.
9107 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
9108
f66d8205 91092008-03-27 Joel Brobecker <brobecker@adacore.com>
9110
9111 GDB 6.8 released.
9112
221c031f
UW
91132008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9114
9115 * features/Makefile (%.dat): Set xmltarget to the base filename
9116 of the XML source, without subdirectory.
9117 * regformats/rs6000/powerpc-32.dat: Regenerate.
9118 * regformats/rs6000/powerpc-64.dat: Regenerate.
9119 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9120
40c58d95
MD
91212008-03-27 Markus Deuling <deuling@de.ibm.com>
9122
9123 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
9124 objfile arch.
9125
bb1ec7d2
NR
91262008-03-27 Nick Roberts <nickrob@snap.net.nz>
9127
9128 * mi/mi-main.c (enum captured_mi_execute_command_actions):
9129 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
9130
5e2b427d
UW
91312008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
9132
9133 * objfiles.h (struct objfile): New GDBARCH member.
9134 (get_objfile_arch): Add prototype.
9135 * objfiles.c: Include "arch-utils.h".
9136 (allocate_objfile): Look up gdbarch associated with bfd.
9137 (get_objfile_arch): New function.
9138 * Makefile (objfiles.o): Update dependencies.
9139
9140 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
9141 by objfile arch.
9142 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
9143 by frame arch.
9144 (locexpr_describe_location): Replace current_gdbarch by
9145 objfile arch.
9146 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
9147 (dwarf2_add_field): Likewise.
9148 (read_tag_pointer_type): Likewise.
9149 (read_base_type): Likewise.
9150 (new_symbol): Likewise.
9151
9152 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
9153 (decode_base_type, decode_function_type): Likewise.
9154 (coff_read_struct_type, coff_read_enum_type): Likewise.
9155 (coff_symtab_read): Replace current_gdbarch by objfile arch.
9156 (decode_base_type): Likewise.
9157 (coff_read_enum_type): Likewise.
9158 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
9159 (coff_read_enum_type): Likewise.
9160
9161 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
9162 (end_psymtab): Likewise.
9163 (process_one_symbol): Likewise.
9164
9165 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
9166 (parse_procedure): Likewise.
9167 (parse_partial_symbols): Likewise.
9168
9169 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
9170
9171 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
9172 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
9173 built-in types.
9174 (read_range_type): Replace current_gdbarch by objfile arch. Replace
9175 static range_index_type by built-in type.
9176 (read_one_struct_field): Replace current_gdbarch by objfile arch.
9177 (read_enum_type): Likewise.
9178
9179 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
9180 objfile arch.
9181
5a413362
VP
91822008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9183
9184 * varobj.h (varobj_floating_p): Declare.
9185 * varobj.c (varobj_floating_p): New.
9186 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
9187 '@' as the name, update all floating varobjs.
9188
a5defcdc
VP
91892008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9190
9191 * varobj.c (struct varobj_root): Rename use_selected_frame to
9192 floating, and clarify the meaning.
9193 (varobj_create, varobj_update, new_root_variable): Adjust.
9194 (value_of_root): Don't use type_changed as in variable,
9195 adjust comment.
9196 (c_value_of_root): Adjust.
5a413362 9197
403fe197
PA
91982008-03-25 Pedro Alves <pedro@codesourcery.com>
9199
9200 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
9201 gdb's thread list.
9202 (linux_nat_wait): Add main lwp to gdb's thread list.
9203 * linux-thread-db.c (find_new_threads_callback): Also attach to
9204 already listed threads which thread_db didn't know about yet.
9205
710151dd
PA
92062008-03-25 Pedro Alves <pedro@codesourcery.com>
9207
9208 * linux-nat.c (drain_queued_events): Fix comment typo.
9209 (linux_nat_attach): In async mode, don't rely on storing a pending
9210 status. Instead place the wait status on the pipe.
9211 (linux_nat_resume): Remove unreacheable shortcut code in async
9212 mode.
9213 (stop_wait_callback): In async mode, don't store pending status.
9214 Instead, cancel breakpoints or resend the signal appropriatelly.
9215 (cancel_breakpoint): New, refactored from
9216 cancel_breakpoints_callback.
9217 (cancel_breakpoints_callback): Call cancel_breakpoint.
9218 (pipe_to_local_event_queue): Remove special token processing.
9219 (linux_nat_wait): Issue an internal error if a pending status is
9220 found in async mode.
9221
807bddf3
DJ
92222008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
9223
9224 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
9225
c5b48eac
VP
92262008-03-24 Nick Roberts <nickrob@snap.net.nz>
9227 Vladimir Prus <vladimir@codesourcery.com>
9228
680b56ce
AS
9229 * varobj.c (struct varobj_root): New component thread_id.
9230 (varobj_get_thread_id, check_scope): New functions.
9231 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
9232 proper thread if necessary.
9233
680b56ce 9234 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 9235
680b56ce 9236 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 9237
12f4afab
DJ
92382008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
9239
9240 PR gdb/544
9241 * top.c: Revert 2008-03-21 changes.
9242
6208b47d
VP
92432008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9244
9245 * thread.c (make_cleanup_restore_current_thread): Make it
9246 globally visible.
9247 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
9248 * varobj.c (varobj_update): Don't save/restore frame.
9249 (c_value_of_root): Save/restore thread and frame here,
9250 using make_cleanup_restore_current_thread.
9251 * Makefile.in: Update dependecies.
9252
44a67aa7
VP
92532008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9254
680b56ce
AS
9255 * varobj.c (struct varobj_root): Clarify
9256 comment on the frame field.
9257 (varobj_create): Don't set frame if we have no
9258 block.
44a67aa7 9259
b562a0cb
DJ
92602008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9261
9262 PR gdb/544
9263 Suggested by Jan Kratochvil:
9264 * top.c (gdb_rl_operate_and_get_next_completion): Call
9265 rl_redisplay_function.
9266 (gdb_rl_redisplay): New.
9267 (init_main): Set rl_redisplay_function.
9268
ed1bd5f5
JB
92692008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
9270
9271 * aix-thread.c (pdc_read_regs): Fix compiler warning.
9272 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
9273 (store_regs_kernel_thread): Likewise.
9274
b84876c2
PA
92752008-03-21 Pedro Alves <pedro@codesourcery.com>
9276
9277 Linux native async support.
9278
9279 * target.h (struct target_ops): Delete to_async_mask_value and add
9280 to_async_mask.
9281 (target_is_async_p, target_async): Formatting.
9282 (target_async_mask_value): Delete.
9283 (target_async_mask): Delete function declaration, and add new
9284 target macro with the same name.
9285
9286 * target.c (update_current_target): Replace to_async_mask_value by
9287 to_async_mask. Default to_async_mask to return_one.
9288 (target_async_mask): Delete.
9289 (find_default_can_async_p, find_default_is_async_p): New.
9290 (init_dummy_target): register find_default_can_async_p and
9291 find_default_is_async_p on the dummy target.
9292
9293 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
9294 (debug_linux_nat_async): New global.
9295 (show_debug_linux_nat_async): New function.
9296 (linux_nat_async_enabled, linux_nat_async_mask_value)
9297 (linux_nat_event_pipe, linux_nat_num_queued_events)
9298 (linux_nat_async_events_enabled): New globals.
9299 (struct waitpid_result): New struct.
9300 (waitpid_queue): New global.
9301 (queued_waitpid, push_waitpid, drain_queued_events): New.
9302 (my_waitpid): Call queued_waitpid.
9303 (linux_child_follow_fork): Disable async events during the call.
9304 (blocked_mask): Delete.
9305 (sync_sigchld_action, async_sigchld_action): New globals.
9306 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
9307 async mode, block events during the call.
9308 (linux_nat_create_inferior): New.
9309 (linux_nat_attach): In sync mode, restore the mask states. In
9310 async mode, wake the event loop immediatelly.
9311 (detach_callback): Drain all queued events of the lwp we're
9312 detaching from.
9313 (linux_nat_detach): Block async mode, and drain events of the main
9314 process.
9315 (linux_nat_resume): If in async mode, mask async events during the
9316 call. If short circuiting, force event loop to wake up. If
9317 resuming, set target_executing, and register target events in the
9318 event loop.
9319 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
9320 (linux_nat_wait): In async mode, block events during the call.
9321 Only enable/disable passing SIGINT to the inferior in sync mode.
9322 Get events from local waitpid queue. If no interesting events was
9323 found, return to events loop. Reregister target events in the
9324 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9325 (linux_nat_kill): Disable events on entry.
9326 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9327 here. Detach async mode from the event loop if there are no more
9328 forks available, otherwise leave it on.
9329 (sigchld_handler): Assure this is called only in sync mode.
9330 (linux_async_permitted, linux_async_permitted_1): New globals.
9331 (set_maintenance_linux_async_permitted)
9332 (show_maintenance_linux_async_permitted): New functions.
9333 (linux_nat_is_async_p, linux_nat_can_async_p)
9334 (linux_nat_async_mask): New.
9335 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9336 (get_pending_events, async_sigchld_handler): New.
9337 (linux_nat_async_events): New.
9338 (async_terminal_is_ours): New global.
9339 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9340 (async_client_callback, async_client_context): New.
9341 (linux_nat_async_file_handler, linux_nat_async)
9342 (linux_nat_disable_async, linux_nat_enable_async): New.
9343 (linux_nat_add_target): Register linux_nat_create_inferior,
9344 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9345 linux_nat_async_mask, linux_nat_terminal_inferior and
9346 linux_nat_terminal_ours.
9347 (_initialize_linux_nat): Remove local action variable, and update
9348 code that used it to use sync_sigchld_action. Add new
9349 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9350 set/show command in the maintenance class. Add new "linux-async"
9351 maintenance set/show command. Block SIGCHLD by default. Setup
9352 async_sichld_action, and sync_sigchld_action. Install the default
9353 async mode.
9354 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9355 the cancel signals.
9356
9357 * linux-thread-db.c (re_check_for_thread_db): New.
9358 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9359 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9360 (thread_db_async_mask): New.
9361 (init_thread_db_ops): Register thread_db_can_async_p,
9362 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9363
9364 * remote.c (remote_async_mask_value): New.
9365 (remote_return_zero): New.
9366 (init_remote_ops): Register remote_return_zero as callbacks of
9367 to_can_async_p and to_is_async_p.
9368 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9369 use remote_async_mask_value.
9370 (remote_async_mask): New.
9371 (init_remote_async_ops): Remove to_async_mask_value setting and
9372 register remote_async_mask as to_async_mask callback in
9373 remote_async_ops.
9374
9375 * Makefile.in (linux-nat.o): Update.
9376
17faa917
DJ
93772008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9378
9379 * gdbthread.h (add_thread_with_info): New.
9380 * linux-thread-db.c: Add some documentation.
9381 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9382 (struct private_thread_info): Remove th_valid and ti_valid.
9383 Replace ti with tid.
9384 (thread_get_info_callback): Do not add TID to the new ptid. Do
9385 not cache th or ti.
9386 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9387 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9388 new PTID.
9389 (attach_thread): Handle an already-existing thread. Use
9390 add_thread_with_info. Cache the th and tid.
9391 (detach_thread): Verify that private was set. Remove verbose
9392 argument and printing. Update caller.
9393 (thread_db_detach): Do not adjust inferior_ptid.
9394 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9395 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9396 (thread_db_wait): Do not use lwp_from_thread.
9397 (thread_db_pid_to_str): Use the cached TID.
9398 (thread_db_extra_thread_info): Check that private is set.
9399 (same_ptid_callback): Delete.
9400 (thread_db_get_thread_local_address): Do not use it or check
9401 is_thread. Check that private is set. Assume that the thread
9402 handle is already cached.
9403 (init_thread_db_ops): Remove to_resume and to_kill.
9404 * thread.c (add_thread_with_info): New.
9405 (add_thread): Use it.
9406 * linux-nat.c (find_thread_from_lwp): Delete.
9407 (exit_lwp): Do not use it. Check print_thread_events. Print before
9408 deleting the thread.
9409 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9410 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9411 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9412 printf_unfiltered for thread exits.
9413 * procfs.c (procfs_wait): Likewise.
9414
6214f497
DJ
94152008-03-21 Chris Demetriou <cgd@google.com>
9416
9417 * symtab.c (rbreak_command): Quote symbol name before passing
9418 it to break_command.
9419
63092375
DJ
94202008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9421
9422 * eval.c (evaluate_subexp_for_address): Clarify error message.
9423 Use value_must_coerce_to_target.
9424 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9425 * valops.c (value_assign): Call value_coerce_to_target when
9426 assigning to anything but internalvars. Leave GDB-side arrays
9427 as arrays when assigning to internalvars.
9428 (value_must_coerce_to_target, value_coerce_to_target): New.
9429 (value_coerce_array, value_addr): Call value_coerce_to_target.
9430 (value_array): Create the array in GDB's memory instead of
9431 the inferior's.
9432 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9433 Declare.
9434
b21991b0
DJ
94352008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9436
9437 * top.c (quit_confirm): Warn that we will kill the program.
9438
49a834f9
PA
94392008-03-19 Pedro Alves <pedro@codesourcery.com>
9440
9441 * inflow.c (terminal_ours_1): Guard access to
9442 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9443
ae0d2f24
UW
94442008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9445 Jim Blandy <jimb@codesourcery.com>
9446 Daniel Jacobowitz <drow@false.org>
9447
9448 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9449 (dwarf2_read_address): Update prototype.
9450
9451 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9452 (signed_address_type): Likewise.
9453 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9454 (execute_stack_op): Update calls to unsigned_address_type,
9455 signed_address_type and dwarf2_read_address. Fix implementation
9456 of DW_OP_deref_size.
9457
9458 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9459 (dwarf2_per_cu_addr_size): Likewise.
9460 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9461 (struct dwarf2_loclist_baton): Likewise.
9462
9463 * dwarf2loc.c (find_location_expression): Update calls to
9464 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9465 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9466 (locexpr_describe_location): Likewise.
9467 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9468 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9469 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9470 to dwarf2_per_cu_addr_size (per_cu).
9471 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9472 (loclist_read_variable): Likewise.
9473 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9474
9475 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9476 instead of baton->objfile.
9477 (dwarf2_per_cu_obfile): New function.
9478 (dwarf2_per_cu_addr_size): Likewise.
9479
9480 * dwarf2-frame.c (struct comp_unit): Move higher.
9481 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9482 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9483 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9484 parameter by using fde->eh_frame_p. Use read_encoded_value
9485 to implement DW_CFA_set_loc.
9486 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9487 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9488 execute_stack_op and execute_cfa_program.
9489 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9490 (size_of_encoded_value): Remove.
9491 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9492 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9493 (add_cie): Set cie->unit backlink.
9494 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9495 read_encoded_value.
9496 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9497
1c8201d1
MD
94982008-03-17 Markus Deuling <deuling@de.ibm.com>
9499
9500 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9501 gdbarch_bfd_arch_info.
9502
46bba1ef
JB
95032008-03-17 Joel Brobecker <brobecker@adacore.com>
9504
9505 * aix-thread.c (pdc_read_regs): Minor reformatting.
9506
0bcd3e20
VP
95072008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9508
9509 * thread.c (print_thread_info): Don't insist
9510 on having current thread if there are no
9511 threads at all.
9512
9356cf8d
PA
95132008-03-17 Pedro Alves <pedro@codesourcery.com>
9514
9515 * infcmd.c (attach_command_post_wait)
9516 (attach_command_continuation): New.
9517 (attach_command): Support background async execution, and async
9518 execution in synchronous mode.
9519
5c3ce3f7
DJ
95202008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9521
9522 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9523 * symmisc.c (dump_symtab_1): Likewise.
9524 * wrapper.c (gdb_value_struct_elt): Likewise.
9525
fa2c6a57
PA
95262008-03-17 Pedro Alves <pedro@codesourcery.com>
9527
9528 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9529
02f3fc28
PA
95302008-03-17 Pedro Alves <pedro@codesourcery.com>
9531
9532 * linux-nat.c (linux_nat_filter_event): New, refactored from
9533 linux_nat_wait.
9534 (linux_nat_wait): Call linux_nat_filter_event.
9535
2f77b315
UW
95362008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9537
9538 * top.c (execute_command): Fix uninitialized variable error.
9539
f01be29b
NH
95402008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9541
680b56ce
AS
9542 * Makefile.in (amd64nbsd-nat.o): New dependency.
9543 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9544 (_initialize_amd64nbsd_nat): Update target vector to use
9545 nbsd_pid_to_exec_file.
9546 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9547
6cf32704
VP
95482008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9549
9550 Remove ignoring leading exec events code.
680b56ce
AS
9551 * fork-child.c (startup_inferior): Do not set
9552 inferior_ignoring_leading_exec_events.
9553 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9554 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9555 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9556 (handle_inferior_event): Remove code for ignoring leading exec
9557 events.
9558 * target.c (update_current_target): Do not inherit, or default,
9559 to_reported_exec_events_per_exec_call.
9560 (debug_to_reported_exec_events_per_exec_call): Remove.
9561 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9562 * target.h (target_reported_exec_events_per_exec_call): Remove.
9563 (struct target): Remove the to_reported_exec_events_per_exec_call
9564 field.
6cf32704 9565
8e8901c5
VP
95662008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9567
9568 Implement -thread-info.
680b56ce 9569 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9570
680b56ce
AS
9571 * thread.c (print_thread_info): New, extracted
9572 from info_threads_command and adjusted to
9573 work for CLI and MI.
9574 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9575 * Makefile.in: Update dependencies.
9576
680b56ce
AS
9577 * mi/mi-cmds.c (mi_cmds): Specify a handler
9578 for -thread-info.
9579 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9580 * mi/mi-main.c (mi_cmd_thread_info): New.
9581 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9582
7d1e6fb8
KB
95832008-03-14 Kevin Buettner <kevinb@redhat.com>
9584
9585 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9586 to decide whether to match instruction patterns using "sw" and "sd".
9587
89113898
PA
95882008-03-14 Pedro Alves <pedro@codesourcery.com>
9589
9590 * infcmd.c (jump_command): Postpone disabling stdin until after
9591 the possible query.
9592
64a0ac84
PA
95932008-03-14 Pedro Alves <pedro@codesourcery.com>
9594
9595 * inflow.c (gdb_getpgrp): New.
9596 (gdb_has_a_terminal): Use get_getpgrp.
9597 (terminal_ours_1): If attach_flag is set, don't refetch
9598 inferior_process_group.
9599
1fddbabb
PA
96002008-03-14 Pedro Alves <pedro@codesourcery.com>
9601
9602 * features/library-list.dtd: Allow "section" elements as children
9603 of "library". Add "section" element and describe its attributes.
9604
9605 * solib-target.c (struct lm_info): Add section_bases member.
9606 (library_list_start_segment): Error out if seen a section element.
9607 (library_list_start_section): New.
9608 (library_list_end_library): New.
9609 (solib_target_free_library_list): Free section_bases.
9610 (section_attributes): New.
9611 (library_children): Make "segment" optional. Add "section" child.
9612 (library_list_children): Register library_list_end_library.
9613 (solib_target_relocate_section_addresses): Handle section bases.
9614
9615 * NEWS: Mention new qXfer:libraries:read section offsets support.
9616
712af3be
VP
96172008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9618
9619 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9620 (make_exec_error_cleanup): Remove declarations.
9621 * utils.c (exec_error_cleanup_chain): Remove.
9622 (do_exec_error_cleanups, discard_exec_error_cleanups)
9623 (make_exec_error_cleanup): Remove.
9624 * event-loop.c (start_event_loop): Adjust call to
9625 async_enable_stdin.
9626 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9627 (async_disable_stdin): Don't register async_enable_stdin via
9628 cleanup.
9629 * inf-loop.c (inferior_event_handler): Don't
9630 call do_exec_error_cleanups. Call async_enable_stdin instead.
9631 * event-loop.c (start_event_loop): Adjust call to
9632 async_enable_stdin.
9633 * tui/tui-interp.c (tui_command_loop): Adjust call to
9634 async_enable_stdin.
9635
32c1e744
VP
96362008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9637
9638 Async mode fixes.
680b56ce
AS
9639 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9640 * breakpoint.c (bpstat_do_actions): In async mode,
9641 don't jump to top expecting stop_bpstat to be already
9642 updated.
9643 * event-loop.c (start_event_loop): Call async_enable_stdin
9644 on exception.
9645 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9646 is not set.
9647 (command_handler): Do not setup continuation here.
9648 (command_line_handler_continuation): Move to...
9649 * top.c (command_line_handler_continuation): ... here.
9650 (execute_command): In async mode, register continuation.
9651 Don't check frame's language in running in async mode.
9652 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9653 * inf-loop.c (complete_execution): Inline into...
9654 (inferior_event_handler): ... here. Clear target_executing before
9655 doing any cleanups. Don't try to show prompt if the target was
9656 resumed.
9657 * infcmd.c (signal_command): Add support for async mode.
9658 (finish_command): Only add continuation if the target was
9659 successfully resumed.
9660 * remote.c (init_async_opts): Register to_get_thread_local_address
9661 handler.
9662 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9663 with sync_execution.
9664 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9665 on exception.
32c1e744 9666
c04ea773
DJ
96672008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9668
9669 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9670 * exec.c (exec_bfd_mtime): Define.
9671 (exec_close): Clear it.
9672 (exec_file_attach): Set it.
9673 * gdbcore.h (exec_bfd_mtime): Declare.
9674 * source.c (find_source_lines): Do not use bfd_get_mtime.
9675
952dc227
VP
96762008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9677
9678 * top.c (simplified_command_loop): Remove.
9679
4cf46804
VP
96802008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9681
9682 Remove unused remote.c hooks.
680b56ce
AS
9683 * remote.c (deprecated_target_resume_hook)
9684 (deprecated_target_wait_loop_hook): Remove.
9685 (remote_resume): Do not call deprecated_target_resume_hook.
9686 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9687 (remote_async_wait): Likewise.
4cf46804 9688
683f2885
VP
96892008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9690
9691 Implement MI notification for new threads.
680b56ce
AS
9692 * doc/observer.texi (new_thread): Document.
9693 * observer.sh: Forward declare struct thread_info.
9694 * thread.c (add_thread): Notify observer.
9695
9696 * interps.h (interp_init_ftype): New parameter
9697 top_level.
9698 (interp_set): Likewise.
9699 (top_level_interpreter_data): Declare.
9700 * interps.c (interp_set): New parameter top_level.
9701 Pass it to interpreter's init function. Remember
9702 top level interpreter.
9703 (interpreter_exec_cmd): Adjust.
9704 (top_level_interpreter_data): New.
9705 * main.c (captured_main): Pass 1 for top_level
9706 parameter of interp_set.
683f2885 9707 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9708 parameter top_level.
9709 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9710
680b56ce
AS
9711 * mi/mi-interp.c (mi_new_thread): New.
9712 (mi_interpreter_init): If top level, register
9713 observer for new threads.
683f2885 9714
680b56ce 9715 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9716
ff9b3928
PA
97172008-03-14 Pedro Alves <pedro@codesourcery.com>
9718
9719 * top.c (execute_command): Disable break and stop
9720 commands in async mode.
9721
b18392ef
PA
97222008-03-14 Pedro Alves <pedro@codesourcery.com>
9723
9724 revert:
9725 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9726 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9727 Call target_stop in the INF_QUIT_REQ case.
9728 * Makefile.in (inf-loop.o): Update.
9729
0aca9f07
PA
97302008-03-14 Pedro Alves <pedro@codesourcery.com>
9731
9732 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9733 Call target_stop in the INF_QUIT_REQ case.
9734 * Makefile.in (inf-loop.o): Update.
9735
0b4e556c
PA
97362008-03-14 Pedro Alves <pedro@codesourcery.com>
9737
9738 * top.c (execute_command): Enable break, info and interrupt
9739 commands in async mode.
9740
8defab1a
DJ
97412008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9742 Daniel Jacobowitz <dan@codesourcery.com>
9743
9744 * breakpoint.h (breakpoint_restore_shadows): New
9745 declaration.
9746 * breakpoint.c (breakpoint_restore_shadows): New.
9747 (read_memory_nobpt): Delete.
9748 * gdbcore.h (read_memory_nobpt): Delete declaration.
9749 * target.c (memory_xfer_partial): Call
9750 breakpoint_restore_shadows.
9751 (restore_show_memory_breakpoints)
2da16c8c 9752 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9753 (show_memory_breakpoints): New.
2da16c8c 9754 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9755 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9756 Make sure we see memory breakpoints when checking if
9757 breakpoint is still there.
9758 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9759 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9760 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9761 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9762
fd532e2e
PA
97632008-03-12 Pedro Alves <pedro@codesourcery.com>
9764
9765 * thread.c (add_thread): Use printf_unfiltered to print.
9766
f749779f 97672008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9768
9769 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9770 that is true only on x86-solaris and x86_64-solaris.
9771 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9772 with proc_get_LDT_entry.
9773
97742008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9775
9776 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9777 * config.in, configure: Regenerate.
9778 * fork-child.c (fork_inferior): Call create_tty_session.
9779 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9780 (create_tty_session): New function.
9781 * terminal.h: Declare create_tty_session.
9782
4fbb74a6
AM
97832008-03-12 Alan Modra <amodra@bigpond.net.au>
9784
9785 PR 5900
9786 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9787 * mipsread.c: Include elf/internal.h.
9788 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9789 to internal range.
9790
20a6ec49
MD
97912008-03-11 Markus Deuling <deuling@de.ibm.com>
9792
9793 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9794 to get at the current architecture and at the target specific vector.
9795 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9796 remove define of I387_ST0_REGNUM.
9797
9798 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9799
9800 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9801 get at the current architecture
9802 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9803 parameter.
9804
9805 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9806 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9807
9808 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9809 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9810 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9811
9812 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9813 at the target specific vector.
9814
9815 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9816 architecture. Use gdbarch_tdep to get at the target specific vector.
9817
9818 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9819 update caller. Use gdbarch_tdep to get at the target specific vector.
9820
9821 (i386_register_to_value: Use get_frame_arch to get at the current
9822 architecture.
9823
9824 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9825 parameter.
9826
9827 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9828 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9829 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9830 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9831
9832 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9833 undef's.
9834
9835 (i387_convert_register_p, i387_register_to_value,
9836 i387_value_to_register): Update call for i386_fp_regnum_p.
9837
9838 * i387-tdep.h: Remove comment.
9839 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9840 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9841 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9842 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9843 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9844
ccd213ac
DJ
98452008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9846
9847 * Makefile.in (fork-child.o): Update.
9848 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9849 argument. Gather all gdbserver features together.
9850 * fork-child.c (exec_wrapper): New variable.
9851 (fork_inferior): Use it.
9852 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9853 (unset_exec_wrapper_command, _initialize_fork_child): New.
9854
98552008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9856
9857 * source.c (directory_command): Modify the determination of
9858 condition of terminal "from_tty".
9859
22566fbd
DJ
98602008-03-10 Matt Rice <ratmice@gmail.com>
9861
9862 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9863
9971ac47
UW
98642008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9865
9866 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9867 of the data passing to strtoulst function.
9868 (info_spu_signal_command): Likewise.
9869
835670cf
VP
98702008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9871
9872 * mi/mi-interp.c (mi_command_loop): Remove
9873 commented-out code.
680b56ce 9874
be86555c
JB
98752008-03-07 Joel Brobecker <brobecker@adacore.com>
9876
9877 * remote.c (extended_remote_attach_1): Make local variable pid an int
9878 instead of a pid_t.
9879
4d7b2d5b
JB
98802008-03-07 Joel Brobecker <brobecker@adacore.com>
9881
9882 * solib-svr4.c (svr4_same_1): New function, originally extracted
9883 from svr4_same and expanded to handle the sparc64 case.
9884 (svr4_same): Move up and reimplement using svr4_same_1.
9885 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9886
61fed90e
RR
98872008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9888
9889 * MAINTAINERS: Move self to Paper trail.
9890
b803fb0f
DJ
98912008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9892
9893 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9894 * event-loop.c (call_async_signal_handler): New.
9895 * event-loop.h (call_async_signal_handler)
9896 (gdb_call_async_signal_handler): Declare.
9897 (mark_async_signal_handler): Add comments.
9898 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9899 * mingw-hdep.c (sigint_event, sigint_handler): New.
9900 (gdb_select): Use them. Wait for the readline signal handler
9901 to finish.
9902 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9903 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9904 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9905 New.
9906 (remote_fileio_ctrl_c_signal_handler): Use
9907 gdb_call_async_signal_handler.
9908 (initialize_remote_fileio): Initialize sigint_fileio_token.
9909 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9910 not initialize tokens here.
9911 (handle_remote_sigint_twice): Likewise. Reinstall
9912 handle_remote_sigint.
9913 (async_remote_interrupt_twice): Just call interrupt_query.
9914 (cleanup_sigint_signal_handler): Do not delete tokens.
9915 (remote_interrupt, remote_interrupt_twice): Use
9916 gdb_call_async_signal_handler.
9917 (interrupt_query): Reinstall the default signal handler.
9918 (_initialize_remote): Initialize tokens here.
9919
8f4d54ed
JB
99202008-03-04 Joel Brobecker <brobecker@adacore.com>
9921
9922 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9923 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9924 Change the type of the lr register to code_ptr.
9925 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9926 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9927 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9928 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9929 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9930 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9931 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9932
95ece428
JW
99332008-03-03 James E. Wilson <wilson@tuliptree.org>
9934
9935 * MAINTAINERS: Update my email address.
9936
686a5eed
KS
99372008-03-03 Keith Seitz <keiths@redhat.com>
9938
9939 From Dave Murphy <davem@devkitpro.org>:
9940 * configure.ac: Set tcl configdir to win under mingw.
9941 * configure: Regenerate.
9942
fa4727a6
DJ
99432008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9944
9945 * breakpoint.c (fetch_watchpoint_value): New function.
9946 (update_watchpoint): Set and clear val_valid. Use
9947 fetch_watchpoint_value. Handle unreadable values on the
9948 value chain. Correct check for user-requested array watchpoints.
9949 (breakpoint_init_inferior): Clear val_valid.
9950 (watchpoint_value_print): New function.
9951 (print_it_typical): Use it. Do not free or clear old_val. Print
9952 watchpoints even if old_val == NULL.
9953 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9954 becoming readable or unreadable.
9955 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9956 (do_enable_watchpoint): Likewise.
9957 * breakpoint.h (struct breakpoint): Update comment for val. Add
9958 val_valid.
9959 * NEWS: Mention watchpoints on inaccessible memory.
9960
9b7d9019 99612008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
9962
9963 * Makefile.in (i386-nat.o): Update.
9964 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9965 i386_use_watchpoints.
9966 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9967 i386_use_watchpoints.
9968 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9969 (i386_stopped_by_watchpoint): Update call.
9970 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9971 * config/i386/nm-i386.h: Conditionalize definitions on
9972 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9973 (i386_use_watchpoints): Declare.
9974 (i386_stopped_data_address): Update.
9975 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9976 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9977
c24d7425 99782008-02-29 Joel Brobecker <brobecker@adacore.com>
9979
9980 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9981 * version.in: Bump version to 6.8.50.20080229-cvs.
9982
a7dfd010
MD
99832008-02-28 Markus Deuling <deuling@de.ibm.com>
9984
9985 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9986 properly.
9987
258c00cc
TT
99882008-02-28 Tom Tromey <tromey@redhat.com>
9989
9990 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9991
8edfe269
DJ
99922008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9993
9994 * infcmd.c (kill_if_already_running): Make static. Use
9995 target_require_runnable.
9996 * target.c (target_require_runnable): New.
9997 * target.h (target_require_runnable): Declare.
9998
0d6ba1b1
DJ
99992008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
10000
10001 * frame.c (reinit_frame_cache): Only annotate if frames were
10002 previously valid.
10003
6fe305f7
UW
100042008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
10005
10006 * regformats/reg-ppc.dat: Rename "ps" to "msr".
10007 * regformats/reg-ppc64.dat: Likewise.
10008
9b4b61c8
UW
100092008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
10010
10011 * features/Makefile (%.dat): Emit xmltarget statement.
10012
10013 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
10014 Generate code to set gdbserver_xmltarget in init_registers_${name}.
10015
10016 * regformats/arm-with-iwmmxt.dat: Regenerate.
10017 * regformats/mips64-linux.dat: Regenerate.
10018 * regformats/mips-linux.dat: Regenerate.
10019 * regformats/rs6000/powerpc-32.dat: Regenerate.
10020 * regformats/rs6000/powerpc-64.dat: Regenerate.
10021 * regformats/rs6000/powerpc-e500.dat: Regenerate.
10022
10023 * regformats/reg-arm.dat: Add xmlarch statement.
10024 * regformats/reg-i386.dat: Likewise.
10025 * regformats/reg-i386-linux.dat: Likewise.
10026 * regformats/reg-x86-64-linux.dat: Likewise.
10027 * regformats/reg-spu.dat: Likewise.
10028
20b4711e
DJ
100292008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
10030
10031 * remote.c (remote_wait, remote_async_wait): Stop if we receive
10032 an error.
10033
1843f87b
DJ
100342008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
10035
10036 * utils.c (debug_timestamp): New.
10037 (vfprintf_unfiltered): Print timestamps if requested.
10038 (show_debug_timestamp): New.
10039 (initialize_utils): Register "set debug timestamp".
10040 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
10041
6a048695
JB
100422008-02-27 Joel Brobecker <brobecker@adacore.com>
10043
10044 * breakpoint.c (skip_prologue_sal): New function.
10045 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
10046 computed from a line number.
10047
0b998f49
JB
100482008-02-27 Joel Brobecker <brobecker@adacore.com>
10049
10050 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
10051 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
10052 Set PC register type to "code_ptr".
10053 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
10054 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
10055 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
10056 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10057 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
10058 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
10059 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
10060 Regenerate.
10061
d05b4ac3
UW
100622008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10063
10064 * regformats/regdat.sh: Rename init_registers function in
10065 generated file to init_registers_${name}.
10066
10067 * regformats/reg-crisv32.dat: Set "name" to crisv32.
10068 * regformats/reg-ppc64.dat: Set "name" to ppc64.
10069 * regformats/reg-s390x.dat: Set "name" to s390x.
10070
a5d9d57d
DJ
100712008-02-26 Greg Law <glaw@undo-software.com>
10072
10073 * regcache.c (registers_changed): Call reinit_frame_cache.
10074
e25c958c
DJ
100752008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
10076
10077 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
10078 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
10079 and svr4_fetch_objfile_link_map.
10080 * Makefile.in (sh-linux-tdep.o): Update.
10081
5daa78cc
TJB
100822008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
10083
10084 * amd64-tdep.c (amd64_classify): Add support for decimal float
10085 types.
10086 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
10087 use the struct return convention.
10088
54e52265
VP
100892008-02-26 Nick Roberts <nickrob@snap.net.nz>
10090
10091 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
10092 to old format. Discard breakpoint address if shared library is
10093 unloaded.
10094 (breakpoint_1): Adjust formatting of table header accordingly.
10095
d8f2712d
VP
100962008-02-25 Vladimir Prus <vladimir@codesourcery.com>
10097
10098 * remote.c (remote_get_threadlist): If the response
10099 is empty, don't try to parse it.
10100
05ce04a4
VP
101012008-02-23 Vladimir Prus <vladimir@codesourcery.com>
10102
10103 Unbreak 'target async'.
680b56ce
AS
10104 * serial.c (serial_async): Set the
10105 handler function before enabling async
10106 mode.
05ce04a4 10107
b36ec657
DJ
101082008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
10109
10110 * solib-svr4.c (enable_break): Convert r_brk to a code address.
10111
df7df359
PA
101122008-02-21 Pedro Alves <pedro@codesourcery.com>
10113
10114 * remote.c (extended_remote_attach_1): Set attach_flag.
10115 (extended_remote_create_inferior_1): Clear attach_flag.
10116
7cd25cfc
DJ
101172008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
10118
10119 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
10120 r_brk_offset.
10121 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
10122 * solib-svr4.c (solib_svr4_r_brk): New.
10123 (open_symbol_file_object, svr4_current_sos): Always check the
10124 debug base.
10125 (svr4_fetch_objfile_link_map): Do not set debug_base.
10126 (enable_break): Use r_brk if it is set.
10127 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
10128 (svr4_lp64_fetch_link_map_offsets): Likewise.
10129 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
10130
07ea644b
MD
101312008-02-20 Markus Deuling <deuling@de.ibm.com>
10132 Mark Kettenis <kettenis@gnu.org>
10133
10134 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
10135 trad_frame_saved_reg.
680b56ce 10136 (trad-frame.h): New include.
07ea644b
MD
10137
10138 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 10139 instead of frame_obstack_zalloc.
07ea644b
MD
10140 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
10141
680b56ce 10142 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 10143
40887e1a
MD
101442008-02-20 Markus Deuling <deuling@de.ibm.com>
10145
10146 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
10147 from disassemble_info instead of gdbarch_byte_order.
10148
10149 * mips-tdep.c (gdb_print_insn_mips): Likewise.
10150 * arm-tdep.c (gdb_print_insn_arm): Likewise.
10151
ae4b2284
MD
101522008-02-20 Markus Deuling <deuling@de.ibm.com>
10153
10154 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
10155 gdbarch as parameter.
10156
10157 * gdbarch.{c,h}: Regenerate.
10158
10159 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10160 parameter.
10161 * mem-break.c (default_memory_insert_breakpoint)
10162 (default_memory_remove_breakpoint): Likewise.
10163 * target.h (default_memory_remove_breakpoint)
10164 (default_memory_insert_breakpoint): Likewise.
10165
10166 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10167 parameter. Replace current_gdbarch by gdbarch.
10168 * m32r-tdep.c (m32r_memory_insert_breakpoint)
10169 (m32r_memory_remove_breakpoint): Likewise.
10170
d9bf65d5
DJ
101712008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
10172
10173 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
10174
b93b6ca7
JB
101752008-02-19 Joel Brobecker <brobecker@adacore.com>
10176
10177 * NEWS: Add entry describing Add support improvements.
10178
4ed226fe
MD
101792008-02-18 Markus Deuling <deuling@de.ibm.com>
10180
10181 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
10182 M68K_FP0_REGNUM.
10183
caaa79ad
MD
101842008-02-18 Markus Deuling <deuling@de.ibm.com>
10185
10186 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
10187 register_offset_hack anymore.
10188
10189 * regcache.{c,h} (register_offset_hack): Remove.
10190
e38c262f
MD
101912008-02-18 Markus Deuling <deuling@de.ibm.com>
10192
10193 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
10194
10195 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
10196 current_gdbarch by gdbarch.
10197 (hppa64_hpux_find_global_pointer): Likewise.
10198 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
10199 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
10200 find_global_pointer.
10201
10202 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
10203 parameter.
10204 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
10205
10206 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
10207 of gdbarch_num_regs.
10208
10209 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 10210 replace current_gdbarch by gdbarch.
e38c262f
MD
10211 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
10212
206988c4
MD
102132008-02-18 Markus Deuling <deuling@de.ibm.com>
10214
10215 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
10216 and replace current_gdbarch by gdbarch.
10217
10218 (store_register): Update call for exec_one_dummy_insn.
10219 (fetch_register, store_register): Update call of regmap.
10220
10221 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
10222 parameter and replace current_gdbarch by gdbarch.
680b56ce 10223
206988c4
MD
10224 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
10225 the current architecture. Update call for getregs_supplies and
10226 getfpregs_supplies.
10227 (ppcnbsd_fetch_inferior_registers): Likewise.
10228
680b56ce 10229 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
10230 replace current_gdbarch by gdbarch.
10231 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
10232 get_regcache_arch to get at the current architecture. Update call for
10233 getfpregs_supplies.
10234
f642be6b
MD
102352008-02-18 Markus Deuling <deuling@de.ibm.com>
10236
10237 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 10238 variables.
f642be6b 10239
b1f2bf01
MD
102402008-02-15 Markus Deuling <deuling@de.ibm.com>
10241
10242 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
10243
ee163bf5
VP
102442008-02-14 Vladimir Prus <vladimir@codesourcery.com>
10245
10246 * NEWS: Mention pending breakpints in MI.
680b56ce 10247
f6fbcbf9
MD
102482008-02-14 Markus Deuling <deuling@de.ibm.com>
10249
10250 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
10251
36af4ef6
MD
102522008-02-13 Markus Deuling <deuling@de.ibm.com>
10253
10254 Add script to build and test GDB using enable-targets=all.
10255
10256 * gdb_buildall.sh: New file.
10257
94a0e877
MG
102582008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
10259
10260 * NEWS (New native configurations): Xtensa GNU/Linux.
10261 (New targets): Xtensa GNU/Linux.
10262 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
10263 xtensa-linux-tdep.o
10264 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
10265 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
10266 * configure.tgt (xtensa*-*-linux*): New entry.
10267 * xtensa-config.c (xtensa_tdep): New variable.
10268 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
10269 (rmap): Change format based on new macro XTREG.
10270 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
10271 * xtensa-linux-nat.c: New.
10272 * xtensa-linux-tdep.c: New.
10273 * xtensa-xtregs.c: New.
10274 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
10275 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
10276 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
10277 (xtensa_register_t): New field coprocessor.
10278 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
10279 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
10280 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
10281 Update to handle privileged registers.
10282 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
10283 (xtensa_push_dummy_call): Set windowstart register correctly.
10284 (call0_analyze_prologue): Initialize xtensa_default_isa.
10285 (xtensa_derive_tdep): New.
10286 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
10287 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
10288 Call xtensa_derive_tdep().
10289 * config/xtensa/linux.mh: New.
10290 * regformats/reg-xtensa.dat: New.
10291
b7ee1b0a 102922008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
10293
10294 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
10295 (filenames.h): New include.
10296 * Makefile.in (corelow.o): Add dependency for filenames.h.
10297
8da2a1df
DJ
102982008-02-08 Doug Evans <dje@google.com>
10299
10300 * source.c (find_and_open_source): Always rewrite absolute filenames.
10301
776592bf
DE
103022008-02-07 Doug Evans <dje@google.com>
10303
10304 * breakpoint.c: #include "hashtab.h".
10305 (ambiguous_names_p): New fn.
10306 (update_breakpoint_locations): When restoring bp enable status, don't
10307 compare function names if any functions have same name.
10308 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
10309
d6565258
JB
103102008-02-07 Joel Brobecker <brobecker@adacore.com>
10311
10312 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
10313 instead of just a VEC*. Update use of SV.
10314 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
10315
6d53d0af
JB
103162007-02-07 Joel Brobecker <brobecker@adacore.com>
10317
10318 * NEWS: Put all new commands since gdb-6.7 together.
10319
2ba95b9b
JB
103202007-02-07 Joel Brobecker <brobecker@adacore.com>
10321
10322 * ada-lang.c: #include "vec.h".
10323 (struct string_vector, new_string_vector, string_vector_append):
10324 Delete.
10325 (char_ptr): New typedef.
10326 (DEF_VEC_P (char_ptr)): New VEC type.
10327 (symbol_completion_add): Update profile to take the new VEC type
10328 instead of the old string_vector structure. Update code accordingly.
10329 (ada_make_symbol_completion_list): Use the new VEC type instead of
10330 the old string_vector structure, and update the code accordingly.
10331 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10332
4ae0885a
PM
103332008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10334
10335 * p-exp.y: Set current_type in missing places.
10336 (leftdiv_is_integer): New static variable.
10337 Typecast right operand of BINOP_DIV to long_double if both operands
10338 are integers.
10339
06b1d59c
MR
103402008-02-06 Maciej W. Rozycki <macro@mips.com>
10341
10342 * remote-mips.c (set_breakpoint): Rename to...
10343 (mips_set_breakpoint): ... this.
10344 (clear_breakpoint): Rename to...
10345 (mips_clear_breakpoint): ... this.
10346 (common_breakpoint): Rename to...
10347 (mips_common_breakpoint): ... this.
10348 (check_lsi_error): Rename to...
10349 (mips_check_lsi_error): ... this.
10350
41d27058
JB
103512007-02-05 Joel Brobecker <brobecker@adacore.com>
10352
10353 * language.h (struct language_defn): Add new field
10354 la_make_symbol_completion_list.
10355 * symtab.c (default_make_symbol_completion_list): Renames
10356 make_symbol_completion_list.
10357 (make_symbol_completion_list): New function.
10358 * symtab.h (default_make_symbol_completion_list): Add declaration.
10359 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10360 (auto_language, local_language): Likewise.
10361 * objc-lang.c (objc_language_defn): Likewise.
10362 * scm-lang.c (scm_language_defn): Likewise.
10363 * m2-lang.c (m2_language_defn): Likewise.
10364 * f-lang.c (f_language_defn): Likewise.
10365 * jv-lang.c (java_language_defn): Likewise.
10366 * p-lang.c (pascal_language_defn): Likewise.
10367 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10368 (minimal_language_defn): Likewise.
10369 * ada-lang.c (struct string_vector): New structure.
10370 (new_string_vector, string_vector_append, ada_unqualified_name)
10371 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10372 (ada_make_symbol_completion_list): New functions.
10373 (ada_language_defn): Set la_make_symbol_completion_list.
10374 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10375 this function is static.
10376
ee3a2f01
KB
103772008-02-05 Kevin Buettner <kevinb@redhat.com>
10378
10379 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10380 to account for call site optimizations.
10381
d844e34b
JB
103822008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10383
10384 * tracepoint.c (read_actions): Handle end-of-text indicator
10385 in action list properly. (Committed by Jim Blandy)
10386
02e4669d
JB
103872008-02-05 Jim Blandy <jimb@red-bean.com>
10388
10389 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10390 pseudoregister, not an internal error.
85ecb32b 10391 Reported by: Andrzej Zaborowski
02e4669d 10392
c39c8256
VP
103932008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10394
10395 * varobj.c (c_value_of_variable): Use xstrdup.
10396
ae7d22a6
VP
103972008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10398
10399 Update stored rendition of varobj value when format changes.
10400 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
10401 print_value.
10402 (c_value_of_variable): Return print_value.
ae7d22a6 10403
81fe8080
DE
104042008-02-03 Doug Evans <dje@google.com>
10405
301f0ecf
DE
10406 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10407 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10408 * valops.c (value_one): New function.
10409 * value.h (value_one): Declare.
10410
10411 Fix argument promotion for binary arithmetic ops for C.
10412 * valarith.c (unop_result_type): New fn.
10413 (binop_result_type): New fn.
10414 (value_binop): Move result type computation to binop_result_type.
10415 (value_pos, value_neg, value_complement): Move result type
10416 computation to unop_result_type.
10417
81fe8080
DE
10418 PR 2384
10419 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10420 Return basetype, fieldno if found. All callers updated.
10421 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10422 objfile.
10423 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10424 * symfile.h (fill_in_vptr_fieldno): Delete.
10425
41808ebe
DE
104262008-02-02 Doug Evans <dje@google.com>
10427
f8597ac3
DE
10428 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10429
41808ebe
DE
10430 * typeprint.c (*): Whitespace cleanup.
10431
f964a756
MK
104322008-02-02 Mark Kettenis <kettenis@gnu.org>
10433 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10434 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10435
10436 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10437 don't fit into registerson the stack the way GCC does.
10438
b06ead72
JB
104392008-02-01 Joel Brobecker <brobecker@adacore.com>
10440
10441 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10442 hash table for Ada symbols. Just store the linkage name as is,
10443 and leave the demangled_name as NULL.
10444
2cfa0c8d
JB
104452007-02-01 Joel Brobecker <brobecker@adacore.com>
10446
10447 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10448 in the global scope.
10449 (new_symbol): Likewise.
10450
98deb0da 104512008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10452
10453 * breakpoint.c (break_command_1): Return void.
10454 (break_command_really): Return void. Rethrow
10455 exceptions instead of returning.
10456 (gdb_breakpoint): Remove the error_message parameter.
10457 Return void. Rename to set_breakpoint.
10458 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10459 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10460 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10461 event hooks even if exception is thrown. Adjust to
10462 gdb_breakpoint interface changes.
10463
98deb0da 10464
ce0451ad
TJB
104652008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10466
10467 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10468 float in both first and second word in the doubleword, to support
10469 old and new ABIs.
10470
723a2275
VP
104712008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10472
10473 Properly rethrow exception. This fixes errors
10474 about non-existent functions for -break-insert.
680b56ce
AS
10475 * breakpoint.c (break_command_really): Use throw_exception
10476 for rethrowing. If rethrowing, don't print the exception.
723a2275 10477
d64a946d
TJB
104782008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10479
10480 * NEWS: Mention Decimal Floating Point support.
10481
02b156f5
JB
104822008-01-31 Joel Brobecker <brobecker@adacore.com>
10483
10484 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10485 value type to builtin_type_void_func_ptr.
10486
a16b8bcd
UW
104872008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10488
10489 * s390-tdep.c (is_float_singleton, is_float_like,
10490 alignment_of, s390_return_value): Make checks for
10491 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10492
f949c649
TJB
104932008-01-31 Luis Machado <luisgpm@br.ibm.com>
10494 Thiago Jung Bauermann <bauerman@br.ibm.com>
10495
10496 * infcmd.c (default_print_registers_info): Also print hex
10497 raw contents for TYPE_CODE_DECFLOAT registers.
10498 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10499 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10500 (rs6000_register_name): Add support for DFP pseudo-registers.
10501 (rs6000_pseudo_register_type): Likewise.
10502 rs6000_pseudo_register_reggroup_p): Likewise.
10503 (ppc_pseudo_register_read): New function.
10504 (ppc_pseudo_register_write): Likewise.
10505 (rs6000_pseudo_register_read): Likewise.
10506 (rs6000_pseudo_register_write): Likewise.
10507 (e500_pseudo_register_read): Move checks to
10508 rs6000_pseudo_register_read.
10509 (e500_pseudo_register_write): Move checks to
10510 rs6000_pseudo_register_write.
10511 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10512 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10513 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10514 num_pseudo_regs to account for DFP pseudo regs.
10515
5a9e69ba
TJB
105162008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10517
10518 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10519 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10520 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10521 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10522 e500_pseudo_register_read, e500_pseudo_register_write): Use
10523 IS_SPE_PSEUDOREG macro.
10524 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10525 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10526 Remove initialization of tdep->ppc_ev31_regnum.
10527
4e885b20
JB
105282008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10529
10530 * printcmd.c (print_formatted): Handle references as for unformatted
10531 prints.
10532
80f064a2
JB
105332008-01-30 Joel Brobecker <brobecker@adacore.com>
10534
10535 * eval.c (evaluate_subexp_standard): Add handling of user
10536 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10537
9b3442ee
PM
105382008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10539
10540 * eval.c (evaluate_subexp_standard): Support
10541 BINOP_INTDIV opcode.
10542
d118ef87
PH
105432008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10544
10545 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10546 BINOP_MAX cases.
10547 For BINOP_EXP, use length and signedness of left operand only for
10548 result, as for shifts.
10549 For integral operands to BINOP_EXP, use new integer_pow and
10550 uinteger_pow functions so as to get full range of results.
10551 (integer_pow): New function.
10552 (uinteger_pow): New function.
10553
d56d46f5
VP
105542008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10555
10556 Use vector for varobj_list_children interface.
680b56ce
AS
10557 * gdb/varobj.c (varobj_list_children): Return vector
10558 of varobjs.
10559 * gdb/varobj.h (varobj_list_children): Adjust
10560 prototype.
10561 (varobj_p): Declare. Declare vector thereof.
10562 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10563 for varobj_list_children change.
d56d46f5
VP
10564 * Makefile.in (varobj_h): Update dependencies.
10565
1300a2f4
TJB
105662008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10567
10568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10569 TYPE_CODE_DECFLOAT arguments.
10570 (ppc64_sysv_abi_push_dummy_call) Likewise.
10571 (get_decimal_float_return_value): New function.
10572 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10573 values by calling get_decimal_float_return_value.
10574 (ppc64_sysv_abi_return_value): Likewise.
10575
95ef687d
NR
105762008-01-30 Nick Roberts <nickrob@snap.net.nz>
10577
10578 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10579 for preprocessor macro information. Formatting changes.
10580
2d717e4f
DJ
105812008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10582
10583 * remote.c (struct remote_state): Add cached_wait_status.
10584 (remote_exec_file): New variable.
10585 (PACKET_vAttach, PACKET_vRun): New constants.
10586 (extended_remote_restart): Do not query for status.
10587 (struct start_remote_args): New.
10588 (remote_start_remote): Take it as a second argument. Check
10589 whether the target is running. Issue an error for non-running
10590 non-extended targets. Cache the wait status. Set inferior_ptid
10591 here.
10592 (remote_open_1): Prompt to disconnect non-running targets. Make
10593 sure the target is marked running. Do not set inferior_ptid here.
10594 Update call to remote_start_remote. Do not call remote_check_symbols
10595 if the target is not running.
10596 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10597 argument. Handle a non-running target.
10598 (remote_detach): Use it.
10599 (extended_remote_detach): New.
10600 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10601 (extended_remote_attach_1, extended_remote_attach)
10602 (extended_async_remote_attach): New.
10603 (remote_vcont_resume): Remove unused variable.
10604 (remote_wait, remote_async_wait): Use any cached wait status.
10605 (putpkt_binary, getpkt): Clear any cached wait status.
10606 (extended_remoute_mourn_1): New.
10607 (extended_remote_mourn): Use it.
10608 (extended_async_remote_mourn, extended_remote_run): New.
10609 (extended_remote_create_inferior_1): New.
10610 (extended_remote_create_inferior): Use it.
10611 (extended_remote_async_create_inferior): Likewise.
10612 (remote_xfer_partial): Skip for non-executing targets.
10613 (init_extended_remote_ops): Set to_detach and to_attach.
10614 (init_extended_async_remote_ops): Likewise. Use
10615 extended_async_remote_mourn.
10616 (_initialize_remote): Register vAttach, vRun, and
10617 set remote exec-file.
10618 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10619
e85a822c
DJ
106202008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10621
10622 * Makefile.in (symfile.o): Update.
10623 * NEWS: Mention exec tracing support.
10624 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10625 exec events.
10626 * infcmd.c (kill_if_already_running, detach_command)
10627 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10628 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10629 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10630 targets. Apply the sysroot path to the loaded executable. Use
10631 no_shared_libraries.
10632 * linux-nat.c (linux_child_follow_fork): Print fork following
10633 messages if verbose.
10634 (kill_wait_callback): Kill again before waiting a second time.
10635 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10636 no_shared_libraries.
10637
9db13498
JB
106382008-01-29 Joel Brobecker <brobecker@adacore.com>
10639
10640 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10641
b4d5ed91
JB
106422008-01-29 Joel Brobecker <brobecker@adacore.com>
10643
10644 * nto-tdep.h: Remove #include "defs.h".
10645 * nto-tdep.c: Add #include "defs.h".
10646 * Makefile.in (nto_tdep_h): Update dependencies.
10647 (nto-tdep.o): Likewise.
10648
107313f7 106492008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10650
10651 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10652 and use it.
10653 (proceed, start_remote): Update call to wait_for_inferior.
10654 * inferior.h (wait_for_inferior): Update declaration.
10655 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10656 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10657 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10658 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10659
3f4178d6
DJ
106602008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10661
680b56ce 10662 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10663 returned value from gdb_value_ind.
10664 (c_describe_child): Likewise.
10665 (cplus_describe_child): Fixed a typo.
10666
5eeba8d4
JB
106672008-01-29 Jim Blandy <jimb@red-bean.com>
10668
10669 * MAINTAINERS: Update my info.
10670
a5606eee
VP
106712008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10672
10673 Use multiple locations for hardware watchpoints.
10674 This eliminates the need to traverse value chain, doing
10675 various checks, in three different places.
10676
680b56ce
AS
10677 * breakpoint.h (struct bp_location): New fields
10678 lengths and watchpoint_type.
10679 (struct breakpoint): Remove the val_chain field.
10680 * breakpoint.c (is_hardware_watchpoint): New.
10681 (free_valchain): Remove.
10682 (update_watchpoint): New.
10683 (insert_bp_location): For hardware watchpoint, just
10684 directly insert it.
10685 (insert_breakpoints): Call update_watchpoint_locations
10686 on all watchpoints. If we have failed to insert
10687 any location of a hardware watchpoint, remove all inserted
10688 locations.
10689 (remove_breakpoint): For hardware watchpoints, directly
10690 remove location.
10691 (watchpoints_triggered): Iterate over locations.
10692 (bpstat_stop_status): Use only first location of
10693 a resource watchpoint.
10694 (delete_breakpoint): Don't call free_valchain.
10695 (print_one_breakpoint): Don't print all
10696 locations for watchpoints.
10697 (breakpoint_re_set_one): Use update_watchpoint for
10698 watchpoints.
a5606eee 10699
0b3de036
VP
107002008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10701
10702 Don't reset watchpoint block on solib load.
10703
680b56ce
AS
10704 * breakpoint.c (insert_bp_location): For watchpoints,
10705 recompute condition.
10706 (breakpoint_re_set_one): Instead of recomputing value
10707 and condition for watchpoints, just reset value and
10708 let insert_breakpoints/insert_bp_location recompute it.
10709 Don't do anything about disabled watchpoint.
0b3de036 10710
c3940723
PM
107112008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10712
10713 * valarith.c (value_binop): Handle unsigned integer
10714 division by zero.
10715
83845630
KB
107162008-01-28 Kevin Buettner <kevinb@redhat.com>
10717
10718 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10719 instruction pattern that appears frequently in position
10720 independent code. Fix bug in code which looks for "fmov" and
10721 backtracks if no "fmov" is found.
10722
9ce5d3bb
DE
107232008-01-28 Doug Evans <dje@google.com>
10724
10725 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10726 Reformat comments to 80 columns.
10727 Move local var def closer to only use.
9ce5d3bb 10728
c78d192c
DJ
107292008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10730
10731 * fork-child.c (SHELL_FILE): Remove #ifndef.
10732 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10733
e11481da
PM
107342008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10735
10736 * i386-tdep.c (i386_skip_noop): New function.
10737 (i386_analyze_prologue): Call i386_skip_noop function.
10738
244e85c8
MS
107392008-01-24 Michael Snyder <msnyder@specifix.com>
10740
10741 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10742 * win32-nat.c (win32_xfer_partial): Ditto.
10743 * target.c (default_xfer_partial): Minor whitespace adjustment.
10744
dd6be234
PA
107452008-01-24 Pedro Alves <pedro@codesourcery.com>
10746
10747 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10748 strip bit 1 even if pc doesn't point to thumb code.
10749
9fa2223d
DJ
107502008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10751
10752 * remote.c (remote_wait): Handle SIGINT between packets.
10753 (remote_async_wait): Likewise.
10754
93815fbf
VP
107552008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10756 Chris Demetriou <cgd@google.com>
10757
680b56ce
AS
10758 * thread.c (add_thread_silent): Renamed
10759 from add_thread.
10760 (print_thread_events): New variable definition.
10761 (show_print_thread_events): New function.
10762 (_initialize_thread): Add "set print thread-events" and
10763 "show print thread-events" commands.
10764 (add_thread): Announce new thread.
10765 * gdbthread.h (add_thread_silent): Declare.
10766 (print_thread_events): New variable declaration.
10767 * inf-ttrace.c (inf_ttrace_wait): Don't
10768 inform about new thread, as add_thread is always
10769 called too, and will take care of that.
10770 * infrun.c (handle_inferior_event): Likewise.
10771 * procfs.c (procfs_wait): Likewise.
10772 * remote.c (remote_currthread): Likewise.
10773 * sol-thread.c (sol_thread_wait): Likewise.
10774 * win32-nat.c (get_win32_debug_event): Likewise.
10775 * linux-thread-db.c (attach_thread): Likewise.
10776 Remove the verbose parameter.
10777 (check_event): Make detach_thread be verbose
10778 only if print_thread_events is set.
10779 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10780 about new thread. This is called only from
10781 linux-thread-db.c:attach_thread, which will take care.
10782 Remove the verbose parameter.
10783 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10784
b4d7c9a6
NR
107852008-01-23 Nick Roberts <nickrob@snap.net.nz>
10786
10787 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10788
60c46647
VP
107892008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10790
10791 * breakpoint.c (break_command_really): New parameter
10792 ignore_count.
10793 (break_command_1): Pass 0 as
10794 ignore_count to break_command_really.
10795 (gdb_breakpoint): Pass ignore_count to
10796 break_command_really.
10797
e84605cd
KB
107982008-01-21 Kevin Buettner <kevinb@redhat.com>
10799
10800 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10801 sigcontext struct via pointer.
10802 (struct sigframe comment): Update to show new field `psc'.
10803
9d9cd7ac
VP
108042008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10805
10806 * infrun.c (handle_inferior_event): If
10807 we failed to remove breakpoints, error,
10808 don't try to increment PC by hand.
10809
af5ca30d
NH
108102008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10811
10812 Add NetBSD/hppa target and host support.
10813
10814 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10815 (hppabsd_gregset): Move to ...
10816 (hppabsd_regset_from_core_section): Rename
10817 hppaobsd_regset_from_core_section and move to ...
10818 (hppabsd_find_global_pointer): Update comment.
10819 (hppabsd_init_abi): Make global. Do not register
10820 hppabsd_regset_from_core_section.
10821 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10822 move to ...
10823 (_initialize_hppabsd_tdep): Move to ...
10824 * hppaobsd-tdep.c: ... here. New file.
10825 * hppnbsd-tdep.c: New file.
10826 * hppnbsd-nat.c: New file.
680b56ce 10827 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10828 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10829 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10830 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10831 * configure.host (hppa*-*-netbsd*): New entry.
10832 * configure.tgt (hppa*-*-netbsd*): New entry.
10833 (hppa*-*-openbsd*): Update.
10834 * NEWS (New native configuration): Mention NetBSD/hppa.
10835 (New targets): Mention NetBSD/hppa.
10836
32c9a795
MD
108372008-01-18 Markus Deuling <deuling@de.ibm.com>
10838
10839 * gdbarch.sh (function_list): Add new property bits_big_endian to
10840 gdbarch structure.
10841 * gdbarch.{c,h}: Regenerate.
10842
10843 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10844 gdbarch_bits_big_endian (comment).
10845 (unpack_field_as_long, modify_field): Likewise.
10846 * value.h: Likewise (comment).
10847 * valops.c (value_slice): Likewise.
10848 * valarith.c (value_subscript, value_bit_index): Likewise.
10849 * gdbtypes.h (field): Likewise (comment).
10850 * eval.c (evaluate_subexp_standard): Likewise.
10851 * dwarf2read.c (dwarf2_add_field): Likewise.
10852 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10853 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10854
32c9a795
MD
10855 * defs.h (BITS_BIG_ENDIAN): Remove.
10856
1e5e79d0
MD
108572008-01-18 Markus Deuling <deuling@de.ibm.com>
10858
10859 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10860 function calls.
10861 * m2-exp.y (yylex): Likewise.
10862 * objc-exp.y (yylex): Likewise.
10863
10864 * defs.h (DEPRECATED_STREQN): Remove.
10865
fabda5a7
L
108662008-01-17 H.J. Lu <hjl.tools@gmail.com>
10867
10868 * MAINTAINERS: Update my email address.
10869
92726479
JB
108702008-01-17 Jim Blandy <jimb@codesourcery.com>
10871
10872 * README: Mention gdbserver/README.
10873
ef80d18e
PM
108742008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10875
10876 * valarith.c (value_binop): Handle BINOP_INTDIV
10877 for unsigned and signed integers.
10878
1de90795
UW
108792008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10880
10881 * s390-tdep.c (s390_gdbarch_init): Set default long double
10882 type to 128-bit IEEE quad.
10883
c70bd6f3
JB
108842008-01-17 Joel Brobecker <brobecker@adacore.com>
10885
10886 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10887
ba759613
MK
108882008-01-16 Mark Kettenis <kettenis@gnu.org>
10889
77d49ac6
MK
10890 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10891
ba759613
MK
10892 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10893 * value.c: All callers changed.
10894
7ecb6532
MD
108952008-01-16 Markus Deuling <deuling@de.ibm.com>
10896
10897 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10898 DEPRECATED_STREQ by its expression.
10899 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10900 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10901 (scan_xcoff_symtab): Likewise.
10902 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10903 * f-lang.c (find_common_for_function): Likewise.
10904 * objc-exp.y (parse_number): Likewise.
10905
10906 * defs.h (DEPRECATED_STREQ): Remove.
10907
d15cf01c
MD
109082008-01-16 Markus Deuling <deuling@de.ibm.com>
10909
10910 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10911 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10912 get_frame_arch to get at the current_architecture. Update AM33_MODE
10913 call.
10914 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10915 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10916 architecture.
10917 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10918
f8028488
MD
109192008-01-16 Markus Deuling <deuling@de.ibm.com>
10920
680b56ce 10921 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
10922 parameter.
10923 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10924
10925 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10926 current_gdbarch by gdbarch. Update caller.
10927
10928 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10929 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10930 the current architecture. Update calls of
10931 amd64_native_gregset_supplies_p.
10932 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10933 (amd64bsd_store_inferior_registers): Likewise.
10934
e101270f
MD
109352008-01-16 Markus Deuling <deuling@de.ibm.com>
10936
10937 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10938 Replace current_gdbarch by gdbarch. Update caller.
10939
063e58ba
MD
109402008-01-16 Markus Deuling <deuling@de.ibm.com>
10941
10942 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10943 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10944 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10945 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10946 (stabsect_build_psymtabs): Fix indentation.
10947
662fb31b
MS
109482008-01-15 Michael Snyder <msnyder@specifix.com>
10949
10950 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10951
c1766e7d
PM
109522008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10953
10954 * win32-nat.c (win32_create_inferior): Restore code calling
10955 CloseHandle on ProcessInformation structure.
10956
5ed10e6e
NH
109572008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10958
10959 * configure.ac: Check for void * as 3 argument of ptrace.
10960 * configure: regenerate.
10961
be8626e0
MD
109622008-01-11 Markus Deuling <deuling@de.ibm.com>
10963
10964 * alpha-tdep.c (alpha_heuristic_proc_start)
10965 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10966 current_gdbarch by gdbarch.
10967
10968 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 10969 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
10970 call.
10971
10972 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10973 get_frame_arch to get at the current architecture by frame_info. Update
10974 alpha_sigtramp_register_address call.
10975
10976 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10977 current_gdbarch by gdbarch. Update caller.
10978 (convert_to_extended, convert_from_extended): Add endianess parameter
10979 for comparison. Update caller.
10980 (arm_extract_return_value, arm_store_return_value): Use
10981 get_regcache_arch to get at the current architecture.
10982
10983 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10984 current_gdbarch by gdbarch. Update caller.
10985 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10986 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10987
10988 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 10989 gdbarch as parameter. Update caller.
be8626e0
MD
10990 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10991 current_gdbarch by gdbarch. Update caller.
10992
680b56ce 10993 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
10994 update caller. Replace current_gdbarch by gdbarch.
10995
10996 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10997 the current architecture. Replace current_gdbarch by gdbarch.
10998 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10999 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
11000 expression. Add gdbarch as parameter and replace current_gdbarch with
11001 it. Update caller.
11002 (M6811_TDEP): Remove.
11003 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
11004 architecture.
680b56ce 11005 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
11006 current_gdbarch by gdbarch. Update caller.
11007
11008 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
11009 update caller.
11010 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
11011 by gdbarch.
11012
11013 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
11014 caller. Relace current_gdbarch by gdbarch.
11015 (altivec_register_p, spe_register_p): Likewise.
11016 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
11017 parameter.
11018 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
11019 altivec_register_p and spe_register_p.
11020
680b56ce 11021 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
11022 caller. Replace current_gdbarch by gdbarch.
11023 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 11024 architecture.
be8626e0
MD
11025
11026 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
11027 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
11028 current_gdbarch by gdbarch. Update caller.
11029 (sparc_frame_cache): Use get_frame_arch to get at the current
11030 architecture.
11031 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
11032 sparc_analyze_prologue.
11033
11034 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
11035 parameter.
11036
ed49a04f
MD
110372008-01-11 Markus Deuling <deuling@de.ibm.com>
11038
11039 * exec.c: #include "arch-utils.h"
11040 (print_section_info): Use gdbarch_from_bfd to get at the
11041 current architecture. Replace current_gdbarch. Fix indention. Replace
11042 deprecated_print_address_numeric by paddress.
11043 * Makefile.in (exec.o) Add dependency to arch-utils.h.
11044
680b56ce 11045 * valprint.c (val_print_string): Replace
ed49a04f
MD
11046 deprecated_print_address_numeric.
11047 * tracepoint.c (trace_mention, scope_info): Likewise.
11048 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
11049 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
11050 (maintenance_check_symtabs): Likewise.
11051 * symfile.c (list_overlays_command): Likewise.
11052 * stack.c (frame_info, print_block_frame_labels): Likewise.
11053 * printcmd.c (print_address, print_address_demangle)
11054 (address_info): Likewise.
11055 * corefile.c (memory_error): Likewise.
11056 * infcmd.c (jump_command): Likewise.
11057 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
11058 (mention, delete_breakpoint): Likewise.
11059 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
11060 * dwarf2read.c (dump_die): Likewise.
11061 * ada-valprint.c (ada_val_print_1): Likewise.
11062 * f-valprint.c (f_val_print): Likewise.
680b56ce 11063 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
11064 * m32r-com.c (m32r_load_section, m32r_load)
11065 (m32r_upload_command): Likewise.
11066
11067 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
11068
6093d2eb
MD
110692008-01-11 Markus Deuling <deuling@de.ibm.com>
11070
11071 * gdbarch.sh (skip_prologue): Add gdbarch
11072 as parameter.
11073 * gdbarch.{c,h}: Regenerate.
11074
11075 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
11076 * amd64-tdep.c (amd64_skip_prologue): Likewise.
11077 * avr-tdep.c (avr_skip_prologue): Likewise.
11078 * cris-tdep.c (cris_skip_prologue): Likewise.
11079 * frv-tdep.c (frv_skip_prologue): Likewise.
11080 * h8300-tdep.c (h8300_skip_prologue): Likewise.
11081 * hppa-tdep.c (hppa_skip_prologue): Likewise.
11082 * i386-tdep.c (i386_skip_prologue): Likewise.
11083 * ia64-tdep.c (ia64_skip_prologue): Likewise.
11084 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
11085 * m32r-tdep.c (m32r_skip_prologue): Likewise.
11086 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
11087 * m68k-tdep.c (m68k_skip_prologue): Likewise.
11088 * m88k-tdep.c (m88k_skip_prologue): Likewise.
11089 * mep-tdep.c (mep_skip_prologue): Likewise.
11090 * mips-tdep.c (mips_skip_prologue): Likewise.
11091 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
11092 * mt-tdep.c (mt_skip_prologue): Likewise.
11093 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
11094 * score-tdep.c (score_skip_prologue): Likewise.
11095 * sh64-tdep.c (sh64_skip_prologue): Likewise.
11096 * sh-tdep.c (sh_skip_prologue): Likewise.
11097 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
11098 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
11099 * spu-tdep.c (spu_skip_prologue): Likewise.
11100 * v850-tdep.c (v850_skip_prologue): Likewise.
11101 * vax-tdep.c (vax_skip_prologue): Likewise.
11102 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
11103 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
11104
11105 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
11106 current_gdbarch by gdbarch.
11107 * m32c-tdep.c (m32c_skip_prologue): Likewise.
11108 * s390-tdep.c (s390_skip_prologue): Likewise.
11109
72f5cf0e
DE
111102008-01-10 Doug Evans <dje@google.com>
11111
11112 * defs.h (struct continuation_arg): Fix typo in comment.
11113 * target.c (target_translate_tls_address): Fix comment spelling error.
11114
689e4e2d
TJB
111152008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
11116
11117 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
11118 (DOUBLEST_SCAN_FORMAT): Likewise.
11119 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
11120 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
11121 * c-exp.y (parse_number): Likewise.
11122 * jv-exp.y (parse_number): Likewise.
11123 * objc-exp.y (parse_number): Likewise.
11124 * p-exp.y (parse_number): Likewise.
11125
ab0d6e0d
JB
111262008-01-09 Joel Brobecker <brobecker@adacore.com>
11127
11128 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
11129 (check_typedef): Likewise.
11130
0aea4bf3
LM
111312008-01-09 Luis Machado <luisgpm@br.ibm.com>
11132
11133 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
11134 seen_double_big_d, treat the new H, D, and DD modifiers as length
11135 modifiers.
11136
137033e9
JB
111372008-01-08 Joel Brobecker <brobecker@adacore.com>
11138
11139 * dwarf2read.c (read_enumeration_type): Add comment.
11140
dda297ec
TJB
111412008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
11142
11143 * config.in: Regenerate.
11144
a93c0eb6
JB
111452008-01-08 Joel Brobecker <brobecker@adacore.com>
11146
11147 * ada-lang.c (ada_convert_actual): Renames convert_actual.
11148 Make non-static.
11149 (ada_convert_actuals): Delete.
11150 * ada-lang.h (ada_convert_actual): Add declaration.
11151 (ada_convert_actuals): Remove declaration.
11152 * infcall.c: #include "ada-lang.h".
11153 (value_arg_coerce): Add new parameter sp. Update function
11154 documetnation. Add handling of Ada function call parameters.
11155 * Makefile.in (infcall.o): Update dependencies.
11156
a84a8a0d
JB
111572008-01-08 Paul Hilfinger <hilfinger@adacore.com>
11158
11159 * ada-lang.c (ensure_lval): Fix value lval kind.
11160 (convert_actual): Add handling for arguments passed by reference.
11161
d7f98cce
DE
111622008-01-08 Doug Evans <dje@google.com>
11163
11164 * dbxread.c (read_dbx_symtab): Fix indentation.
11165
4ef30785
TJB
111662008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
11167
11168 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
11169 (valarith.o): Depend on dfp.h.
11170 (valops.o): Likewise.
11171 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
11172 (set_decnumber_context): New function.
11173 (decimal_check_errors): Likewise.
11174 (decimal_from_number): Likewise.
11175 (decimal_to_number): Likewise.
11176 (decimal_from_string): Use set_decnumber_context and
11177 decimal_check_errors.
11178 (decimal_from_integral): New function.
11179 (decimal_from_floating): Likewise.
11180 (decimal_to_double): Likewise.
11181 (promote_decimal): Likewise.
11182 (decimal_binop): Likewise.
11183 (decimal_is_zero): Likewise.
11184 (decimal_compare): Likewise.
11185 (decimal_convert): Likewise.
11186 * dfp.h (decimal_from_integral): New prototype.
11187 (decimal_from_floating): Likewise.
11188 (decimal_to_double): Likewise.
11189 (decimal_binop): Likewise.
11190 (decimal_is_zero): Likewise.
11191 (decimal_compare): Likewise.
11192 (decimal_convert): Likewise.
11193 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
11194 call to value_from_decfloat.
11195 * valarith.c: Include dfp.h.
11196 (value_args_as_decimal): New function.
11197 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
11198 (value_logical_not): Likewise.
11199 (value_equal): Likewise.
11200 (value_less): Likewise.
11201 (value_pos): Likewise.
11202 (value_neg): Formatting fix.
11203 * valops.c: Include dfp.h.
11204 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
11205 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
11206 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
11207 (value_from_decfloat): Remove expect_type argument.
11208 * value.h (value_from_decfloat): Update prototype.
11209
a7c02bc8
VP
112102008-01-07 Vladimir Prus <vladimir@codesourcery.com>
11211
11212 Ignore change in name of dynamic linker during
11213 execution on Solaris. This also unbreaks pending breakpoints.
11214
11215 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
11216 * solib-svr4.c (svr4_same): New.
11217 (_initialize_svr4_solib): Register svr4_same.
11218 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 11219
610dd7f9
CF
112202008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
11221
11222 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
11223 when using MS-DOS paths.
11224
7a404eba
PA
112252008-01-05 Pedro Alves <pedro@codesourcery.com>
11226
11227 * NEWS: Mention --pid and --core command line behaviour changes.
11228
a4d9b460
PA
112292008-01-05 Pedro Alves <pedro@codesourcery.com>
11230
11231 * main.c (captured_main): Remove 'count' varible and the
11232 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
11233 --pid options were issued simultaneously. If an explicit pid
11234 option was passed, don't fallback to core file. Detect extra
11235 arguments better in the presence of explicit pid or core
11236 arguments.
11237
0c281816
JB
112382008-01-05 Joel Brobecker <brobecker@adacore.com>
11239
11240 * ada-lang.c (ada_which_variant_applies): Correctly compute
11241 the value of the discriminant when the variant record is packed.
11242
babe1480
JB
112432008-01-04 Joel Brobecker <brobecker@adacore.com>
11244
11245 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
11246 that are used to differentiate homonyms.
11247
727e3d2e
JB
112482008-01-04 Jerome Guitton <guitton@adacore.com>
11249
11250 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
11251 when the type is an anonymous pointer type.
11252 (ada_check_typedef): Avoid a seg fault when the type is null.
11253 * ada-typeprint.c (print_array_type): Add support for pointer
11254 to packed arrays.
11255
bb28a9dc
JB
112562008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
11257
680b56ce 11258 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 11259
6799def4
JB
112602008-01-04 Joel Brobecker <brobecker@adacore.com>
11261
11262 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
11263 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
11264
d3353bbd
JB
112652008-01-04 Joel Brobecker <brobecker@adacore.com>
11266
11267 * ada-exp.y (chop_separator): New function.
11268 (write_selectors): Rewrite to re-use chop_separator.
11269 (ada_nget_field_index, get_symbol_field_type): New functions.
11270 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
11271 expressions.
11272
82cf6c60
TJB
112732008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
11274
11275 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
11276 of SYMBOL_VALUE when working with function symbols.
11277
b3dbf008
JB
112782008-01-03 Joel Brobecker <brobecker@adacore.com>
11279
11280 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
11281 expressions. These expressions do not need to be rewriten.
11282
02eb380e
JB
112832008-01-03 Joel Brobecker <brobecker@adacore.com>
11284
11285 * dwarf2read.c (read_enumeration_type): Flag type as stub if
11286 the given die is a declaration.
11287
abb68b3e
JB
112882008-01-03 Joel Brobecker <brobecker@adacore.com>
11289
11290 * ada-lang.c (ada_array_bound_from_type): Make non-static.
11291 Handle properly the case when the index type is an enumerated type.
11292 Do not return the subtype of the bounds type, just return the
11293 bounds type directly - this is not needed and is more consistent
11294 with what we do for arrays when no XA parallel type exists.
11295
f192137b
JB
112962008-01-03 Joel Brobecker <brobecker@adacore.com>
11297
11298 * ada-lang.c (static_unwrap_type): Add forward declaration.
11299 (template_to_static_fixed_type): Fields of dynamic types sometimes
11300 also need to be unwrapped. Take this into account.
11301 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
11302 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
11303 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 11304 the original type, not the base type.
f192137b 11305
1ed6ede0
JB
113062008-01-03 Jerome Guitton <guitton@adacore.com>
11307
11308 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 11309 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
11310 Update calls to ada_to_fixed_type.
11311 (ada_template_to_fixed_record_type_1): Ditto, but without looking
11312 for the tag.
11313 (ada_to_fixed_type): Add check_tag parameter; do not look for
11314 tag if null. When looking for a tag, use a fixed record type.
11315 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
11316 * ada-valprint.c (printable_val_type, ada_value_print): Update
11317 calls to ada_to_fixed_type.
11318
542a88d0
LM
113192008-01-03 Luis Machado <luisgpm@br.ibm.com>
11320
680b56ce 11321 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
11322 floatformat_to_doublest instead of floatformat_to_double and use
11323 DOUBLEST variables.
11324 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11325 instead of floatformat_from_double and use DOUBLEST variables.
11326
dc2bbab2
NH
113272008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11328
11329 * MAINTAINERS (Write After Approval): Add self.
11330
8b60591b
JB
113312008-01-03 Joel Brobecker <brobecker@adacore.com>
11332
11333 * symfile.c (set_initial_language): Make non-static.
11334 * symfile.h (set_initial_language): Add declaration.
11335 * language.c: #include "symfile.h".
11336 (set_language): Call set_initial_language if the frame language
11337 could not be determined.
11338
ceef53c1
JB
113392008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11340
11341 * eval.c (evaluate_subexp_for_address): Provide frame address to
11342 locate_var_value only if it will be needed.
11343
ef29ce1a
JK
113442008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11345
11346 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11347
0a07e705
JB
113482008-01-02 Joel Brobecker <brobecker@adacore.com>
11349
11350 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11351 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11352 This is needed to make sure that any other treatment applied
11353 to the resulting value does not fail for spurious reason,
11354 such as trying to take the address of this value.
11355
f58b38bf
JB
113562008-01-02 Joel Brobecker <brobecker@adacore.com>
11357
11358 * ada-lang.c (ada_value_equal): Dereference reference types when
11359 comparing arrays.
680b56ce 11360
9b254dd1
DJ
113612008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11362
11363 Updated copyright notices for most files.
11364
33605d39
CF
113652008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11366
11367 * win32-nat.c (psapi_module_handle): Remove static.
11368 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11369 return first module found if base_address is zero. Don't initialize
11370 psapi function pointers here. Convert to cygwin paths when
11371 appropriate.
11372 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11373 executable name. Use get_module_name when that fails or when
11374 !__CYGWIN__.
11375 (_initialize_psapi): New function. Initialize psapi stuff before it is
11376 needed or issue a warning if it is not found. Move psapi_module_handle
11377 here.
11378
29480c32
JB
113792008-01-01 Joel Brobecker <brobecker@adacore.com>
11380
11381 * ada-lang.c (ada_remove_trailing_digits): New function.
11382 (ada_remove_po_subprogram_suffix): New function.
11383 (ada_decode): Improve. Move the description of the algorithm
11384 directly inside the code, instead of in the function global
11385 description.
11386
969a1360
JB
113872008-01-01 Joel Brobecker <brobecker@adacore.com>
11388
11389 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11390 and always print the dereferenced value.
11391
b7789565
JB
113922008-01-01 Joel Brobecker <brobecker@adacore.com>
11393
11394 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11395 of the case where the first argument is a reference.
11396 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11397
73fb9985
JB
113982008-01-01 Joel Brobecker <brobecker@adacore.com>
11399
11400 Implement support for Ada interface types.
11401
11402 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11403 (ada_is_ignored_field): Ignore fields that are a dispatch table
11404 of a tagged type.
11405
636265b6
JB
114062008-01-01 Joel Brobecker <brobecker@adacore.com>
11407
11408 * top.c (print_gdb_version): Update copyright year.
11409
9d200a2e 114102008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 11411
9d200a2e
JB
11412 * ChangeLog-2007: New ChangeLog rotation.
11413 * ChangeLog: Reset for 2008.
11414 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11415 ChangeLog-2007.
b7589f7d 11416
9d200a2e 11417For older changes see ChangeLog-2007.
c906108c
SS
11418\f
11419Local Variables:
11420mode: change-log
11421left-margin: 8
11422fill-column: 74
11423version-control: never
57da7796 11424coding: utf-8
c906108c 11425End:
This page took 1.614904 seconds and 4 git commands to generate.