* gdb.ada/assign_1.exp: New testcase.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
003f3813
JB
12008-05-09 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
4 the type of the right hand side of the assignment to the type
5 of the left hand side if the left hand side is a convenience
6 variable.
7
7ae0e2a2
UW
82008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
9
10 * NEWS: Mention gdbserver bi-arch capability.
11
08388c79
DE
122008-05-09 Doug Evans <dje@google.com>
13
14 New "find" command.
15 * NEWS: Document find command and qSearch:memory packet.
16 * Makefile.in (SFILES): Add findcmd.c.
17 (COMMON_OBJS): Add findcmd.o.
18 (findcmd.o): New rule.
19 * findcmd.c: New file.
20 * target.h (target_ops): New member to_search_memory.
21 (simple_search_memory): Declare.
22 (target_search_memory): Declare.
23 * target.c (simple_search_memory): New fn.
24 (target_search_memory): New fn.
25 * remote.c (PACKET_qSearch_memory): New packet kind.
26 (remote_search_memory): New fn.
27 (init_remote_ops): Init to_search_memory.
28 (init_extended_remote_ops): Ditto.
29 (_initialize_remote): Add qSearch:memory packet config command.
30
11c68c47
EZ
312008-05-09 Eli Zaretskii <eliz@gnu.org>
32
33 * thread.c (_initialize_thread): Don't use commas and periods in
34 first line of doc string of "set/show print thread-events".
35
6834c9bb
JB
362008-05-08 Joel Brobecker <brobecker@adacore.com>
37
38 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
39 Update for unwinder changes.
40
86c31399
JB
412008-05-08 Joel Brobecker <brobecker@adacore.com>
42
43 * frame.c (get_frame_base_address, get_frame_locals_address)
44 (get_frame_args_address): Pass the correct frame when calling
45 frame_base_find_by_frame.
46
96ef3384
UW
472008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
48
49 * remote.c (extended_remote_attach_1): Call target_find_description.
50
45280a52
DJ
512008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * remote.c (extended_remote_create_inferior_1): Clean up
54 before marking the target running.
55
227e86ad
JB
562008-05-08 Joel Brobecker <brobecker@adacore.com>
57
58 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
59 changes.
60
236369e7
JB
612008-05-07 Joel Brobecker <brobecker@adacore.com>
62
63 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
64 sparc64-sol2-tdep.c: Update for unwinder changes.
65
de237128
DJ
662008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
67
68 * cp-support.c (mangled_name_to_comp): Initialize storage.
69 (unqualified_name_from_comp): Likewise.
70
4fff2411
JZ
712008-05-07 Jie Zhang <jie.zhang@analog.com>
72
73 * remote.c (remote_insert_breakpoint): Call get_remote_state
74 after gdbarch_breakpoint_from_pc is called.
75 (remote_insert_hw_breakpoint): Likewise.
76
d8ca156b
JB
772008-05-06 Joel Brobecker <brobecker@adacore.com>
78
79 * valprint.c (val_print): Add new language parameter and use it
80 instead of using the current_language. Update calls to val_print
81 throughout.
82 (common_val_print): Add new langauge parameter and pass it to
83 val_print.
84 * value.h (struct language_defn): Add opaque declaration.
85 (val_print, common_val_print): Update declarations.
86 * stack.c (print_frame_args): Update call to common_val_print
87 using the appropriate language.
88 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
89 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
90 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
91 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
92 #include "language.h" if necessary.
93 Update calls to val_print and common_val_print.
94 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
95 Update dependencies.
96
b1e6fd19
JB
972008-05-06 Joel Brobecker <brobecker@adacore.com>
98
99 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
100 pointing inside a non-executable section as function descriptors.
101
02b19d84
PA
1022008-05-06 Pedro Alves <pedro@codesourcery.com>
103
104 * inf-loop.c (inferior_event_handler): Run all continuations and
105 print any language change before running the breakpoint commands.
106
15c1e57f
JB
1072008-05-06 Joel Brobecker <brobecker@adacore.com>
108
109 * frame-unwind.c (frame_unwind_got_bytes): New function.
110 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
111 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
112 for unwinder changes.
113
d14508fe
DE
1142008-05-05 Doug Evans <dje@google.com>
115
116 * NEWS: Mention new /m modifier for disassemble command.
117 * cli/cli-cmds.c (print_disassembly): New function.
118 (disassemble_current_function): New function
119 (disassemble_command): Recognize /m modifier, print mixed
120 source+assembly.
121 (init_cli_cmds): Update disassemble help text.
122
5142f611
MG
1232008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
124
125 * xtensa-tdep.c: Update for unwinder changes.
126
f36bf22c
AS
1272008-05-05 Andreas Schwab <schwab@suse.de>
128
129 Update m68k port for unwinder changes.
130 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
131 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
132 (m68k_frame_unwind): Use default_frame_sniffer.
133 (m68k_frame_sniffer): Remove.
134 (m68k_frame_base_address): Expect this_frame.
135 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
136 this_frame.
137 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
138 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
139 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
140 parameter instead of pc value.
141 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
142 Expect this_frame.
143 (m68k_linux_sigtramp_frame_this_id)
144 (m68k_linux_sigtramp_frame_prev_register)
145 (m68k_linux_sigtramp_frame_sniffer): Update signature.
146 (m68k_linux_sigtramp_frame_unwind): Use
147 m68k_linux_sigtramp_frame_sniffer.
148 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
149
150 * m68klinux-nat.c (store_register): Fix typo.
151
b3dc826b
PA
1522008-05-05 Pedro Alves <pedro@codesourcery.com>
153
154 * infcmd.c (step_1): Put thread id on the stack to avoid possible
155 NULL dereferencing.
156
6528a9ea
LM
1572008-05-05 Luis Machado <luisgpm@br.ibm.com>
158
159 * symfile.c (reread_symbols): Update objfile's entry point.
160
5eeb2539
AR
1612008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
162 Joel Brobecker <brobecker@adacore.com>
1f906a60 163
5eeb2539
AR
164 * ada-lang.c: Update throughout to use symbol_matches_domain
165 instead of matching the symbol domain explictly.
166 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 167 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 168 class as typedefs. See lookup_partial_symbol function.
f36bf22c 169 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
170 symbol for the typedef. See lookup_block_symbol.
171 * symtab.c (symbol_matches_domain): New function, takes care
172 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
173 (lookup_partial_symbol): Use symbol_matches_domain to see if the
174 found psym domain matches the given domain.
175 (lookup_block_symbol): Likewise.
176
e2b7ddea
VP
1772008-05-05 Vladimir Prus <vladimir@codesourcery.com>
178
179 * top.c (command_line_handler_continuation): Remove.
180 (execute_command): Do not install the above.
181
fcfb8b02
VP
1822008-05-05 Vladimir Prus <vladimir@codesourcery.com>
183
184 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
185 and catch all exceptions from it.
186 * top.c (command_line_handler_continuation): Don't
187 call bpstat_do_action here.
188
f792889a
DJ
1892008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
190
191 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
192 (struct die_info): Remove type.
193 (read_type_die, read_typedef, read_base_type, read_subrange_type)
194 (read_structure_type, read_enumeration_type, read_array_type)
195 (read_tag_pointer_type, read_tag_ptr_to_member_type)
196 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
197 (read_tag_string_type, read_subroutine_type, read_set_type)
198 (read_unspecified_type): Delete prototypes. Remove check for
199 already-loaded type. Return the new type.
200 (set_die_type): Return the new type.
201 (reset_die_and_siblings_types): Delete.
202 (load_comp_unit, load_full_comp_unit): Set type_hash.
203 (process_queue): Remove call to reset_die_and_siblings_types.
204 (process_die): Do not read most types here. Use read_type_die
205 for others.
206 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
207 (quirk_gcc_member_function_pointer): Return the new type.
208 (process_structure_scope, process_enumeration_scope): Use
209 get_die_type and read the DIE's type.
210 (read_full_die): Do not initialize die->type.
211 (tag_type_to_type): Use read_type_die.
212 (read_type_die): Check for already defined types. Return the
213 type.
214 (determine_prefix): Use get_die_type.
215 (set_die_type): Return the type.
216 (get_die_type): Take a CU argument. Check for no type_hash.
217
e7030f15
DJ
2182008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
219
220 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
221 locals.
222
611c83ae
PA
2232008-05-04 Pedro Alves <pedro@codesourcery.com>
224
225 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
226 and bp_longjmp_resume breakpoints.
227 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
228 meaningful.
229 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
230 breakpoints. Create bp_longjmp breakpoints as momentary
231 breakpoints.
232 (enable_longjmp_breakpoint): Delete.
233 (set_longjmp_breakpoint): New.
234 (disable_longjmp_breakpoint): Delete.
235 (delete_longjmp_breakpoint): New.
236 (set_longjmp_resume_breakpoint): Delete.
237 (set_momentary_breakpoint_at_pc): New.
238 (breakpoint_re_set_one): Don't delete bp_longjmp and
239 bp_longjmp_resume breakpoints.
240 (breakpoint_re_set): Don't create longjmp and longjmp-resume
241 breakpoints.
242
243 * infrun.c (step_resume_breakpoint): Add comment.
244 (struct execution_control_state): Delete handling_longjmp member.
245 (init_execution_control_state). Don't clear handling_longjmp.
246 (context_switch): Don't context switch handling_longjmp.
247 (handle_inferior_event): If handling a bp_longjmp breakpoint,
248 create a bp_longjmp_resume breakpoint, and set it as current
249 step_resume_breakpoint, then step over the longjmp breakpoint. If
250 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
251 breakpoint, delete the longjmp-resume breakpoint, and stop
252 stepping.
253 (currently_stepping): Remove handling_longjmp from expression.
254 (insert_step_resume_breakpoint_at_sal): Update comment.
255 (insert_longjmp_resume_breakpoint): New.
256
257 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
258 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
259 declarations.
260 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
261 (set_longjmp_resume_breakpoint): Delete declaration.
262
263 * gdbthread.h (save_infrun_state): Remove handling_longjmp
264 parameter.
265 (load_infrun_state): Delete *handling_longjmp parameter.
266 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
267 Update body.
268 (load_infrun_state): Delete *handling_longjmp parameter. Update
269 body.
270
271 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
272 (delete_longjmp_breakpoint_cleanup): New.
273 (step_1): Call set_longjmp_breakpoint instead of
274 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
275 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
276 (step_1_continuation): Pass thread id in the continuation args to
277 step_once.
278 (step_once): Add thread parameter. Pass thread id the the
279 continuation.
280
85cbf3d3
JK
2812008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
282
283 Set CU BASE_ADDRESS already from partial DIEs.
284 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
285 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
286 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
287 from these variables if it was still unset.
288
ff013f42
JK
289 * Makefile.in: Update dependencies.
290 * dwarf2read.c: Include "addrmap.h"
291 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
292 (dwarf2_ranges_read): New prototype.
293 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
294 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
295 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
296 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
297 comment for it. Add the found ranges to RANGES_PST. New variable
298 BASEADDR, initialize it the common way.
299 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
300 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
301 HAS_RANGES_OFFSET for the later processing.
302 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
303 * symtab.c: Include "addrmap.h"
304 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
305 Move the psymtab locator into ...
306 (find_pc_sect_psymtab_closer): ... a new function.
307
a7f1256d
UW
3082008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
309
310 * arch-utils.c (gdbarch_update_p): Use default values for
311 info.abfd and info.target_desc if they are NULL.
312 (gdbarch_from_bfd): Remove assertion.
313 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
314 using the current target description.
315 (gdbarch_info_fill): Do not use default values for info->abfd
316 and info->target_desc.
317
b2de52bb
JK
3182008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
319
320 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
321
515630c5
UW
3222008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
323
324 * inferior.h (read_pc_pid, write_pc_pid): Remove.
325 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
326
327 * regcache.c (read_pc_pid): Remove, replace by ...
328 (regcache_read_pc): ... this function.
329 (write_pc_pid): Remove, replace by ...
330 (regcache_write_pc): ... this function.
331 (read_pc, write_pc): Update.
332
333 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
334 write_pc_pid by regcache_read_pc and regcache_write_pc.
335 (displaced_step_fixup): Likewise.
336 (resume): Likewise. Use regcache arch instead of current_gdbarch.
337 (prepare_to_proceed): Likewise.
338 (proceed): Likewise.
339 (adjust_pc_after_break): Likewise.
340 (handle_inferior_event): Likewise.
341
342 * linux-nat.c (cancel_breakpoint): Likewise.
343 * linux-thread-db.c (check_event): Likewise.
344 * aix-thread.c (aix_thread_wait): Likewise.
345 * tracepoint.c (trace_dump_command): Likewise.
346
ebd3bcc1
JK
3472008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
348
349 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
350 SYMBOL_LOCATION_BATON.
351
c47ffbe3
VP
3522008-05-04 Vladimir Prus <vladimir@codesourcery.com>
353
f78bff48
VP
354 * target.h (struct target_ops): New field to_auxv_parse.
355 * auxv.c (default_auxv_parse): New, renamed from previous
356 target_auxv_parse.
357 (target_auxv_parse): Try to call target method. Fallback to
358 default_auxv_parse if not found.
359 * procfs.c (procfs_auxv_parse): New.
360 (init_procfs_ops): On Solaris, in 64-bit mode, install
361 procfs_auxv_parse.
c47ffbe3 362
35076fa0
AN
3632008-05-03 Adam Nemet <anemet@caviumnetworks.com>
364
365 * symfile.c (add_symbol_file_command): Use paddress rather than
366 hex_string to print the address.
367
5b197912
UW
3682008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
369
370 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
371 return the null frame ID to terminate the backtrace.
372
4a7622d1
UW
3732008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
374
375 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
376 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
377 (SIG_FRAME_PC_OFFSET): Likewise.
378 (SIG_FRAME_LR_OFFSET): Likewise.
379 (SIG_FRAME_FP_OFFSET): Likewise.
380 (rs6000_push_dummy_call): Likewise.
381 (rs6000_return_value): Likewise.
382 (rs6000_convert_from_func_ptr_addr): Likewise.
383 (branch_dest, rs6000_software_single_step): Likewise.
384 (deal_with_atomic_sequence): Rename to ...
385 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
386 Do not call branch_dest; inline required parts of that function.
387 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
388 with SYMBOL_LINKAGE_NAME.
389 (struct reg, regsize): Delete.
390 (read_memory_addr): Delete; inline into callers.
391 (rs6000_skip_prologue): Move after skip_prologue.
392 (skip_prologue): Remove prototype.
393 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
394 initialization as if this variable were true. Do not install
395 ppc64_sysv_abi_adjust_breakpoint_address.
396
397 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
398 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
399 and "breakpoint.h".
400 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
401 (SIG_FRAME_PC_OFFSET): Likewise.
402 (SIG_FRAME_LR_OFFSET): Likewise.
403 (SIG_FRAME_FP_OFFSET): Likewise.
404 (rs6000_push_dummy_call): Likewise.
405 (rs6000_return_value): Likewise.
406 (rs6000_convert_from_func_ptr_addr): Likewise.
407 (branch_dest, rs6000_software_single_step): Likewise. Replace
408 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
409 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
410 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
411 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
412 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
413
414 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
415 (AIX_TEXT_SEGMENT_BASE): New macro.
416 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
417 by AIX_TEXT_SEGMENT_BASE.
418
419 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
420 (struct gdbarch_tdep): Remove text_segment_base member.
421 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
422 ppc64_sysv_abi_adjust_breakpoint_address.
423
424 * Makefile.in (rs6000-tdep.o): Update dependencies.
425 (rs6000-aix-tdep.o): Likewise.
426
938f5214
TJB
4272008-05-03 Luis Machado <luisgpm@br.ibm.com>
428 Thiago Jung Bauermann <bauerman@br.ibm.com>
429
430 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
431 * doublest.c (convert_typed_floating): Fix typo in comment.
432 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
433 * frame-unwind.h (frame_sniffer_ftype): Likewise.
434 * frame.c (frame_unwind_address_in_block): Likewise.
435 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
436 * symtab.h (struct symbol): Likewise.
437 * tramp-frame.h (struct trad_frame_cache): Likewise.
438 * value.c (allocate_repeat_value): Likewise.
439
0b02b92d
UW
4402008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
441
442 * infrun.c (handle_inferior_event): Do not insert breakpoints at
443 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
444
d705c43c
PA
4452008-05-03 Pedro Alves <pedro@codesourcery.com>
446
447 * parse.c (parse_exp_in_context): Don't override
448 expression_context_pc if get_selected_block returned a valid
449 block.
450
d6350901
DJ
4512008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
452
453 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
454 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
455 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
456 Delete.
457 * c-typeprint.c (c_type_print_base): Delete handling of template
458 instantiations.
459 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
460 (METHOD_PTR_TO_VOFFSET): Delete.
461 * defs.h (QUIT_FIXME): Delete.
462 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
463 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
464 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
465 ninstantiations, and instantiations.
466 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
467 (TYPE_FN_FIELD_INLINED): Delete.
468 * srec.h (SREC_BINARY): Delete.
469 * symtab.c (symbol_init_demangled_name): Delete.
470 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
471 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
472 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
473 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
474 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
475 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
476 * target.h (enum thread_control_capabilities): Delete tc_switch.
477 (target_can_switch_threads): Delete.
478
30510692
DJ
4792008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
480
481 * Makefile.in (objfiles.o): Update.
482 * exec.c (exec_set_section_address): Support p->addr != 0.
483 * objfiles.c (objfile_relocate): Update exec_ops section
484 addresses.
485 * symfile.c (place_section): Move exec_set_section_address call...
486 (default_symfile_offsets): ...to here.
487
7284e1be
UW
4882008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
489
490 * Makefile.in (ppc_linux_tdep_h): New macro.
491 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
492 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
493 (powerpc_e500l_c): Likewise.
494 (ppc-linux-nat.o): Update dependencies.
495 (ppc-linux-tdep.o): Update dependencies.
496 (rs6000-tdep.o): Update dependencies.
497
498 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
499 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
500 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
501 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
502 (tdesc_powerpc_e500): Remove.
503
504 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
505 and "features/rs6000/powerpc-altivec64.c".
506 (ppc_supply_reg, ppc_collect_reg): Make global.
507 (variants): Use tdesc_powerpc_32 for "powerpc" and
508 tdesc_powerpc_altivec64 for "powerpc64".
509 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
510
511 * ppc-linux-tdep.h: New file.
512
513 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
514 Include "features/rs6000/powerpc-32l.c".
515 Include "features/rs6000/powerpc-altivec32l.c".
516 Include "features/rs6000/powerpc-64l.c".
517 Include "features/rs6000/powerpc-altivec64l.c".
518 Include "features/rs6000/powerpc-e500l.c".
519 (ppc_linux_supply_gregset): New function.
520 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
521 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
522 (ppc64_linux_gregset): Likewise.
523 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
524 (ppc_linux_trap_reg_p): New function.
525 (ppc_linux_write_pc): New function.
526 (ppc_linux_core_read_description): New function.
527 (ppc_linux_init_abi): Install ppc_linux_write_pc and
528 ppc_linux_core_read_description. Install orig_r3 and trap
529 registers if present in the target description.
530 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
531
532 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
533 (PT_ORIG_R3, PT_TRAP): Define if necessary.
534 (ppc_register_u_addr): Handle orig_r3 and trap registers.
535 (fetch_ppc_registers): Likewise.
536 (store_ppc_registers): Likewise.
537 (store_register): Likewise.
538 (ppc_linux_read_description): Check whether AltiVec is supported.
539 Check whether inferior is 32-bit or 64-bit. Return the appropriate
540 Linux target description.
541
542 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
543 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
544 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
545 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
546 rs6000/powerpc-e500. Update -expedite variables accordingly.
547
548 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
549 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
550 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
551 * features/rs6000/powerpc-e500.c: Regenerate.
552 * features/rs6000/powerpc-32.c: Regenerate.
553 * features/rs6000/powerpc-64.c: Regenerate.
554
555 * features/rs6000/power-linux.xml: New file.
556 * features/rs6000/power64-linux.xml: New file.
557 * features/rs6000/powerpc-32l.xml: New file.
558 * features/rs6000/powerpc-altivec32l.xml: New file.
559 * features/rs6000/powerpc-64l.xml: New file.
560 * features/rs6000/powerpc-altivec64l.xml: New file.
561 * features/rs6000/powerpc-e500l.xml: New file.
562 * features/rs6000/powerpc-32l.c: New (generated) file.
563 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
564 * features/rs6000/powerpc-64l.c: New (generated) file.
565 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
566 * features/rs6000/powerpc-e500l.xml: New (generated) file.
567
568 * regformats/reg-ppc.dat: Remove.
569 * regformats/reg-ppc64.dat: Remove.
570 * regformats/rs6000/powerpc-32.dat: Remove.
571 * regformats/rs6000/powerpc-64.dat: Remove.
572 * regformats/rs6000/powerpc-e500.dat: Remove.
573 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
574 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
575 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
576 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
577 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
578
063bfe2e
VP
5792008-05-03 Pedro Alves <pedro@codesourcery.com>
580
581 * thread.c (delete_thread): Call observer_notify_thread_exit.
582 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
583 thread_exit observer.
584 (mi_thread_exit): New.
585
f132ba9d
TJB
5862008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
587
588 * breakpoint.c (create_exception_catchpoint): Remove prototype
589 for already deleted function.
590 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
591 * frame.h (show_stack_frame): Remove prototype.
592 * stack.c (show_stack_frame): Remove empty, unused function.
593 * source.c (symtab_to_fullname, print_source_lines): Small fix
594 in comment.
595 * value.c (show_values): Update comments to mention "show values"
596 command instead of "info history".
597
bccdca4a
UW
5982008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
599
600 * linespec.c: Include "target.h".
601 (minsym_found): Handle minimal symbols pointing to function
602 descriptors. Use find_function_start_pc.
603 * minsyms.c (msymbol_objfile): New function.
604 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
605 to function descriptors.
606 * symtab.c (fixup_section): Only use minimal symbol at the same
607 address to determine section of a symbol.
608 (find_function_start_pc): New function.
609 (find_function_start_sal): Use it.
610 * symtab.h (msymbol_objfile): Add prototype.
611 (find_function_start_pc): Likewise.
612 * value.c: Include "objfiles.h".
613 (value_fn_field): Handle minimal symbols pointing to function
614 descriptors.
615 * Makefile.in (linespec.o): Update dependencies.
616 (value.o): Likewise.
617
de4d072f
JB
6182008-05-02 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-lang.c (unwrap_value): Handle the case where the "F" field
621 inside a PAD type is a bitfield.
622
93d4208d
UW
6232008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
624
625 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
626 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
627 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
628 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
629 Allow typedefs when checking for function pointer arguments.
630 Right-align small structs passed on the stack.
631 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
632 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
633 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
634
60c5725c
DJ
6352008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
636
637 * Makefile.in (arm-tdep.o): Update.
638 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
639 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
640 (arm_pc_is_thumb): Use mapping symbols.
641 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
642 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
643 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
644 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
645 * gdbarch.sh: Add record_special_symbol.
646 * gdbarch.c, gdbarch.h: Regenerated.
647 * objfiles.c (struct objfile_data): Add cleanup member.
648 (register_objfile_data_with_cleanup): New function, from
649 register_objfile_data.
650 (register_objfile_data): Use it.
651 (objfile_free_data): Call clear_objfile_data.
652 (clear_objfile_data): Call cleanup functions.
653 * objfiles.h (register_objfile_data_with_cleanup): Declare.
654
574dffa2
DJ
6552008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
656
657 * objfiles.c (init_entry_point_info): Handle shared libraries.
658
2c404490
DJ
6592008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
660
661 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
662 lowest_pc.
663
237fc4c9
PA
6642008-05-02 Jim Blandy <jimb@codesourcery.com>
665 Pedro Alves <pedro@codesourcery.com>
666
667 Implement displaced stepping.
668
669 * gdbarch.sh (max_insn_length): New 'variable'.
670 (displaced_step_copy, displaced_step_fixup)
671 (displaced_step_free_closure, displaced_step_location): New
672 functions.
673 (struct displaced_step_closure): Add forward declaration.
674 * gdbarch.c, gdbarch.h: Regenerated.
675
676 * arch-utils.c: #include "objfiles.h".
677 (simple_displaced_step_copy_insn)
678 (simple_displaced_step_free_closure)
679 (displaced_step_at_entry_point): New functions.
680 * arch-utils.h (simple_displaced_step_copy_insn)
681 (simple_displaced_step_free_closure)
682 (displaced_step_at_entry_point): New prototypes.
683
684 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
685 (I386_MAX_MATCHED_INSN_LEN): ... this.
686 (i386_absolute_jmp_p, i386_absolute_call_p)
687 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
688 (i386_displaced_step_fixup): New functions.
689 (struct i386_insn, i386_match_insn): Update.
690 (i386_gdbarch_init): Set gdbarch_max_insn_length.
691 * i386-tdep.h (I386_MAX_INSN_LEN): New.
692 (i386_displaced_step_fixup): New prototype.
693 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
694 Register gdbarch_displaced_step_copy,
695 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
696 and gdbarch_displaced_step_location functions.
697
698 * infrun.c (debug_displaced): New variable.
699 (show_debug_displaced): New function.
700 (struct displaced_step_request): New struct.
701 (displaced_step_request_queue, displaced_step_ptid)
702 (displaced_step_gdbarch, displaced_step_closure)
703 (displaced_step_original, displaced_step_copy)
704 (displaced_step_saved_copy, can_use_displaced_stepping): New
705 variables.
706 (show_can_use_displaced_stepping, use_displaced_stepping)
707 (displaced_step_clear, cleanup_displaced_step_closure)
708 (displaced_step_dump_bytes, displaced_step_prepare)
709 (displaced_step_clear_cleanup, write_memory_ptid)
710 (displaced_step_fixup): New functions.
711 (resume): Call displaced_step_prepare.
712 (proceed): Call read_pc once, and remember the value. If using
713 displaced stepping, don't remove breakpoints.
714 (handle_inferior_event): Call displaced_step_fixup. Add some
715 debugging output. When we try to step over a breakpoint, but get
716 a signal to deliver to the thread instead, ensure the step-resume
717 breakpoint is actually inserted. If a thread hop is needed, and
718 displaced stepping is enabled, don't remove breakpoints.
719 (init_wait_for_inferior): Call displaced_step_clear.
720 (_initialize_infrun): Add "set debug displaced" command. Add
721 "maint set can-use-displaced-stepping" command. Clear
722 displaced_step_ptid.
723 * inferior.h (debug_displaced): Declare variable.
724 (displaced_step_dump_bytes): Declare function.
725
726 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
727 dependencies.
728
0428b8f5
DJ
7292008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
730
731 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
732 (arm_force_mode_string, arm_show_fallback_mode)
733 (arm_show_force_mode): New.
734 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
735 arm_frame_is_thumb.
736 (_initialize_arm_tdep): Add "set arm fallback-mode"
737 and "set arm force-mode".
738 * NEWS: Document new commands.
739
d01a8610
AS
7402008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
741
742 * main.h (batch_silent): Declare.
743 * event-top.c: Include main.h.
744 (gdb_setup_readline): Remove extern batch_silent declaration.
745 * infrun.c (normal_stop): Don't print source location when running in
746 --batch-silent mode.
747 * Makefile.in (event-top.o): Add main.h dependency.
748
5009afc5
AS
7492008-05-02 Andreas Schwab <schwab@suse.de>
750
751 * target.h (struct target_ops): Add
752 to_watchpoint_addr_within_range.
753 (target_watchpoint_addr_within_range): New function.
754 * target.c (update_current_target): Inherit
755 to_watchpoint_addr_within_range, defaulting to
756 default_watchpoint_addr_within_range.
757 (default_watchpoint_addr_within_range): New function.
758 (debug_to_watchpoint_addr_within_range): New function.
759 (setup_target_debug): Set to_watchpoint_addr_within_range.
760 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
761 New function.
762 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
763 * breakpoint.c (watchpoints_triggered): Use
764 target_watchpoint_addr_within_range.
765
a15c5c83
PA
7662008-05-01 Pedro Alves <pedro@codesourcery.com>
767
768 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
769 (i[34567]86-*-dicos*, x86_64-*-dicos*):
770 Set gdb_osabi to GDB_OSABI_DICOS.
771
772 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
773 * osabi.c (gdb_osabi_name): Add "DICOS".
774
775 * i386-dicos-tdep.c: New file.
776
777 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
778 (ALLDEPFILES): Add i386-dicos-tdep.c.
779 (i386-dicos-tdep.o): New rule.
780
728c8f58
PA
7812008-05-01 Pedro Alves <pedro@codesourcery.com>
782
783 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
784 and register the fork's PTID as a thread.
785
604133b5
AR
7862008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
787
788 PR gdb/1665
789 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
790 assign its value to the breakpoint created.
791 (create_breakpoints): Add breakpoint_ops argument and pass it
792 to create_breakpoint call.
793 (break_command_really): Add breakpoint_ops argument and pass/assign
794 appropriately.
795 (break_command_1): Pass NULL as ops argument.
796 (set_breakpoint): Pass NULL as ops argument.
797 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
798 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
799 catch and throw catchpoints.
5009afc5 800
1f906a60 8012008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
802
803 PR gdb/2343
804 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
805 translate signal numeric value from the target to GDB's enum
806 target_signal.
807 * gdbarch.c, gdbarch.h: Regenerated.
808 * gdbarch.sh: Added two new functions target_signal_from_host and
809 target_signal_to_host.
810 * target.h (default_target_signal_from_host,
811 default_target_signal_to_host): New functions - declarations.
812 * signals/signals.c (struct gdbarch): New declaration.
813 (default_target_signal_to_host, default_target_signal_from_host): New
814 functions.
815
b39cc962
DJ
8162008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
817
818 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
819 * arm-tdep.c (arm_frame_is_thumb): New.
820 (arm_pc_is_thumb): Clarify comment.
821 (thumb_analyze_prologue): Remove PC special case.
822 (thumb_scan_prologue): Take a block_addr argument. Use it for
823 find_pc_partial_function. Remove unused variables.
824 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
825 for find_pc_partial_function. Remove PC special case.
826 (arm_prologue_prev_register): Add special handling for PC and CPSR.
827 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
828 (arm_get_next_pc): Use arm_frame_is_thumb.
829 (arm_write_pc): Use CPSR_T instead of 0x20.
830 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
831 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
832 (CPSR_T): Define.
833 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
834 DWARF2_FRAME_REG_FN.
835 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
836 DWARF2_FRAME_REG_FN.
837 (struct dwarf2_frame_state_reg): Add FN to loc union.
838
944f08ab
JB
8392008-05-01 Nick Roberts <nickrob@snap.net.nz>
840
841 * exec.c (print_section_info): Add missing '\n'.
842
cfc01461
VP
8432008-05-01 Vladimir Prus <vladimir@codesourcery.com>
844
845 * thread.c (add_thread): Move observer call to ...
846 (add_thread_silent): ... here.
847
1af5d7ce
UW
8482008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
849
850 * rs6000-tdep.c: Update for unwinder changes.
851 * ppcobsd-tdep.c: Likewise.
852
f089c433
UW
8532008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
854
855 * s390-tdep.c: Update for unwinder changes.
856
8d998b8f
UW
8572008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
858
859 * spu-tdep.c: Update for unwinder changes.
860
5366653e
DJ
8612008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
862
863 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
864 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
865 sparc64-linux-tdep.c: Update for unwinder changes.
866
b8a22b94
DJ
8672008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
868
869 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
870 for unwinder changes.
871 * mips-tdep.c: Likewise.
872 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
873 raw one.
874
a262aec2
DJ
8752008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
876
877 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
878 unwinder changes.
879
10458914
DJ
8802008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
881
882 Update i386 and amd64 ports for unwinder changes.
883
884 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
885 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
886 (amd64_frame_unwind): Use default_frame_sniffer.
887 (amd64_frame_sniffer): Delete.
888 (amd64_sigtramp_frame_cache): Expect this_frame.
889 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
890 (amd64_sigtramp_frame_sniffer): Update signature.
891 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
892 (amd64_frame_base_address): Expect this_frame.
893 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
894 this_frame.
895 (amd64_init_abi): Use set_gdbarch_dummy_id and
896 frame_unwind_append_unwinder.
897 * i386-tdep.c (i386_frame_cache): Expect this_frame.
898 (i386_frame_this_id, i386_frame_prev_register): Update signature.
899 (i386_frame_unwind): Use default_frame_sniffer.
900 (i386_frame_sniffer): Delete.
901 (i386_sigtramp_frame_cache): Expect this_frame.
902 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
903 (i386_sigtramp_frame_sniffer): Update signature.
904 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
905 (i386_frame_base_address): Update signature.
906 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
907 (i386_push_dummy_call): Update comment.
908 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
909 Expect this_frame.
910 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
911 and frame_unwind_append_unwinder.
912 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
913 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
914 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
915 i386nbsd-tdep.c: Update for unwinder changes.
916
25492ce3
DJ
9172008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
918
919 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
920 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
921 this_frame.
922 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
923 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
924 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
925 signature.
926 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
927 this_frame.
928 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
929 Update signature.
930 * tramp-frame.h (struct tramp_frame): Update signature of init.
931 * Makefile.in (trad-frame.o): Update.
932
4a4e5149
DJ
9332008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
934
935 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
936 (execute_stack_op): Put this_frame in the baton.
937 (execute_cfa_program): Take this_frame.
938 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
939 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
940 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
941 (dwarf2_frame_this_id): Adjust to work on this_frame.
942 (dwarf2_signal_frame_this_id): Delete.
943 (dwarf2_frame_prev_register): Update signature. Use new frame
944 unwind methods.
945 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
946 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
947 dwarf2_frame_sniffer.
948 (dwarf2_append_unwinders): New.
949 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
950 this_frame.
951 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
952 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
953 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
954 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
955 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
956 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
957 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
958 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
959 (dwarf2_append_unwinders): Declare.
960 (dwarf2_frame_base_sniffer): Update declaration.
961 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
962 this_frame.
963
669fac23
DJ
9642008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
965
966 Convert frame unwinders to use the current frame and
967 "struct value".
968
969 * frame.c (frame_debug): Make global.
970 (get_frame_id): Pass this frame to unwinder routines.
971 (frame_pc_unwind): Remove unused unwind->prev_pc support.
972 (do_frame_register_read): Do not discard the return value of
973 frame_register_read.
974 (frame_register_unwind): Remove debug messages. Use
975 frame_unwind_register_value.
976 (frame_unwind_register_value, get_frame_register_value): New
977 functions.
978 (create_new_frame, get_frame_base_address, get_frame_locals_address)
979 (get_frame_args_address, get_frame_type): Pass this frame to
980 unwinder routines.
981 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
982 functions.
983 * frame.h: Update comments.
984 (frame_debug, frame_unwind_register_value, get_frame_register_value)
985 (frame_prepare_for_sniffer): Declare.
986 * frame-unwind.h: Update comments and parameter names.
987 (default_frame_sniffer): Declare.
988 (frame_prev_register_ftype): Return a struct value *.
989 (struct frame_unwind): Remove prev_pc member.
990 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
991 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
992 (frame_unwind_got_register, frame_unwind_got_memory)
993 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
994 * frame-base.h: Update comments and parameter names.
995 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
996 if necessary. Add debugging output.
997 * sentinel-frame.c (sentinel_frame_prev_register)
998 (sentinel_frame_this_id): Update for new signature.
999 (sentinel_frame_prev_pc): Delete.
1000 (sentinel_frame_unwinder): Remove prev_pc.
1001 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
1002 prev_pc.
1003 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
1004 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
1005 (frame_unwind_append_sniffer): Delete.
1006 (frame_unwind_append_unwinder): New function.
1007 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
1008 from unwinders. Use frame_prepare_for_sniffer.
1009 (default_frame_sniffer, frame_unwind_got_optimized)
1010 (frame_unwind_got_register, frame_unwind_got_memory)
1011 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
1012 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
1013 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
1014 signature.
1015 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
1016 * gdbarch.c, gdbarch.c: Regenerated.
1017 * frame-base.c (default_frame_base_address)
1018 (default_frame_locals_address, default_frame_args_address): Update
1019 for new signature.
1020 (frame_base_find_by_frame): Pass this frame to unwinder routines.
1021 * infcall.c (call_function_by_hand): Update comments.
1022 * Makefile.in (frame-unwind.o): Update dependencies.
1023
9214ee5f
DJ
10242008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1025
1026 * ada-lang.c (ada_value_primitive_packed_val): Only check
1027 value_lazy for memory lvals.
1028 * findvar.c (value_of_register_lazy): New function.
1029 (locate_var_value): Only check value_lazy for memory lvals.
1030 * valarith.c (value_subscripted_rvalue): Likewise.
1031 * valops.c (value_fetch_lazy): Handle both memory and register
1032 lvals.
1033 (search_struct_field, value_slice): Only check value_lazy for memory
1034 lvals.
1035 * value.c (struct value): Update comment for lazy.
1036 (value_primitive_field): Only check value_lazy for memory lvals.
1037 * value.h (value_lazy): Update comment.
1038 (value_of_register_lazy): Declare.
1039
939643d7
DJ
10402008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1041
1042 * corefile.c (reopen_exec_file): Close any open files.
1043
1de34ab7
JB
10442008-04-29 Joel Brobecker <brobecker@adacore.com>
1045
1046 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
1047 show_memory_breakpoints to 1 while reading the instruction bundle.
1048
ea42b34a
JB
10492008-04-29 Joel Brobecker <brobecker@adacore.com>
1050
1051 * gdbarch.sh: Document the return_value method. Explain that
1052 the FUNCTYPE parameter might be NULL.
1053 * gdbarch.h: Regenerated.
1054 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
1055 type when calling using_struct_return, as this is unnecessary
1056 on this target.
1057
a0fe373c
JB
10582008-04-28 Joel Brobecker <brobecker@adacore.com>
1059
1060 * terminal.h (create_tty_session): Fix return type.
1061
c6446539
VP
10622008-04-26 Vladimir Prus <vladimir@codesourcery.com>
1063
1064 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
1065
2f069f6f
JB
10662008-04-26 Joel Brobecker <brobecker@adacore.com>
1067
1068 * breakpoint.c (condition_command, commands_from_control_command)
1069 (break_command_really): Minor reformatting.
1070
93b5768b
PA
10712008-04-25 Pedro Alves <pedro@codesourcery.com>
1072
1073 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
1074
436675d3
PA
10752008-04-25 Pedro Alves <pedro@codesourcery.com>
1076
1077 * amd64-tdep.c (amd64_get_longjmp_target): New.
1078 (amd64_init_abi): Register amd64_get_longjmp_target as
1079 gdbarch_get_longjmp_target callback.
1080 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
1081
78b6a731
PA
10822008-04-25 Pedro Alves <pedro@codesourcery.com>
1083
1084 * breakpoint.h (enum bpstat_what_main_action): Delete
1085 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
1086
1087 * breakpoint.c (clrs): Delete.
1088 (bpstat_what): Update table.
1089
1090 * infrun.c (handle_inferior_event): Remove
1091 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
1092
9e22b03a
VP
10932008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1094
1095 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
1096 Adjust all prototypes using mi_cmd_args_ftype to use
1097 mi_cmd_argv_ftype.
1098 (struct mi_cmd): Remove the args_func field.
1099 * mi/mi-cmds.c: Don't provide value for the args_func field.
1100 * mi/mi-main.c (mi_execute_async_cli_command)
1101 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1102 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1103 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
1104 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
1105 (mi_cmd_target_download): Adjust.
1106 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
1107 (mi_cmd_execute): Do not check for args_func.
1108 (mi_execute_async_cli_command): Adjust.
1109 * mi/mi-parse.c: Don't check for args_func.
1110
721c02de 11112008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393
VP
1112
1113 * breakpoint.c (bpstat_check_location)
1114 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
1115 New, extracted from bpstat_stop_status.
1116 (bpstat_stop_status): Use the above.
1117
11182008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1119
721c02de
VP
1120 * mi/mi-main.c (last_async_command): Rename to current_token.
1121 (previous_async_command): Remove.
1122 (mi_cmd_gdb_exit): Adjust.
1123 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
1124 (mi_cmd_target_select): Adjust.
1125 (mi_cmd_execute): Don't set previous_async_command. Free token
1126 here even in async mode.
1127 (mi_execute_async_cli_command): Adjust.
1128 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
1129 token.
1130 (mi_load_progress): Adjust.
1131
f13468d9
VP
11322008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1133
1134 * infcmd.c (step_1_continuation): Always disable longjmp
1135 breakpoint if we're not going to do another step.
1136
f107f563
VP
11372008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1138
1139 exec_cleanup murder.
1140 * breakpoint.c (until_break_command_continuation): Add
1141 the 'error' parameter. Directly delete the breakoint as
1142 opposed to running cleanups.
1143 (until_break_command): Install continuation only
1144 after starting the target. Don't use exec cleanups,
1145 use ordinary cleanups. Discard cleanups is successfully
1146 started the target in async mode.
1147 (make_cleanup_delete_breakpoint): Remove.
1148 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
1149 declaration.
1150 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
1151 declarations.
1152 (struct continations): Add the 'error' parameter to the
1153 continuation_hook field.
1154 (add_continuation, do_all_continuations)
1155 (add_intermediate_continuation)
1156 (do_all_intermediate_continuations): Add the 'error' parameter.
1157 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
1158 * inf-loop.c (inferior_event_handler): Instead of calling
1159 discard_all_continuations, use do_all_continuations with 1 as
1160 'error' parameter. Pass 0 as 'error' parameter in existing uses
1161 of discard_all_continuations.
1162 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
1163 cleanups.
1164 (step_once): Install continuation only after resuming the target.
1165 (step_1_continuation): Disable longjmp breakpoint on error.
1166 (finish_command_continuation): Add the error parameter. Delete
1167 the finish breakpoint directly, do not use cleanups.
1168 (finish_command): Do not use exec_cleanups. Always setup
1169 continuation. For sync case, immediately run them.
1170 (attach_command_continuation): Add the error parameter.
1171 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
1172 remove step_resume_breakpoint -- adjust delete it directly.
1173 * interps.c (interp_set): Adjust call to do_all_continations.
1174 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
1175 do exec cleanups.
1176 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
1177 cleanups.
1178 (mi_cmd_execute): Do not use exec_cleanup.
1179 (mi_execute_async_cli_command): Simplify the string concatenation
1180 logic. Do no use exec cleanup.
1181 (mi_exec_async_cli_cmd_continuation): New parameter error.
1182 Free last_async_command.
1183 * top.c (command_line_handler_continuation): New parameter error.
1184 * utils.c (exec_cleanup_chain, make_exec_cleanup)
1185 (do_exec_cleanups): Remove.
1186 (add_continuation, do_all_continations)
1187 (add_intermediate_continuation)
1188 (do_all_intermediate_continuations): New parameter error.
1189
74960c60
VP
11902008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1191
1192 * breakpoint.h (bp_location_p): New typedef.
1193 Register a vector of bp_location_p.
1194 * breakpoint.c (always_inserted_mode)
1195 (show_always_inserted_mode): New.
1196 (unlink_locations_from_global_list): Remove.
1197 (update_global_location_list)
1198 (update_global_location_list_nothrow): New.
1199 (update_watchpoint): Don't free locations.
1200 (should_insert_location): New.
1201 (insert_bp_location): Use should_insert_location.
1202 (insert_breakpoint_locations): Copied from
1203 insert_breakpoints.
1204 (insert_breakpoint): Use insert_breakpoint_locations.
1205 (bpstat_stop_status): Call update_global_location_list
1206 when disabling breakpoint.
1207 (allocate_bp_location): Don't add to bp_location_chain.
1208 (set_raw_breakpoint)
1209 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
1210 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
1211 (enable_overlay_breakpoints, disable_overlay_breakpoints)
1212 (set_longjmp_resume_breakpoint)
1213 (enable_watchpoints_after_interactive_call_stop)
1214 (disable_watchpoints_before_interactive_call_start)
1215 (create_internal_breakpoint)
1216 (create_fork_vfork_event_catchpoint)
1217 (create_exec_event_catchpoint, set_momentary_breakpoint)
1218 (create_breakpoints, break_command_1, watch_command_1)
1219 (create_exception_catchpoint)
1220 (handle_gnu_v3_exceptions)
1221 (disable_breakpoint, breakpoint_re_set_one)
1222 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1223 (create_ada_exception_breakpoint): : Don't call check_duplicates.
1224 Call update_global_location_list.
1225 (delete_breakpoint): Don't remove locations and don't
1226 try to reinsert them. Call update_global_location_list.
1227 (update_breakpoint_locations): Likewise.
1228 (restore_always_inserted_mode): New.
1229 (update_breakpoints_after_exec): Temporary disable
1230 always inserted mode.
1231 * Makefile.in: Update dependencies.
1232
1233 * infrun.c (proceed): Remove breakpoints while stepping
1234 over breakpoint.
1235 (handle_inferior_event): Don't remove or insert
1236 breakpoints.
1237 * linux-fork.c (checkpoint_command): Remove breakpoints
1238 before fork and insert after.
1239 (linux_fork_context): Remove breakpoints before switch
1240 and insert after.
1241 * target.c (target_disconnect, target_detach): Remove
1242 breakpoints from target.
1243
1244
d24317b4
VP
12452008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1246
1247 * breakpoint.c (print_one_breakpoint_location): In MI
1248 mode, report the location string the breakpoint was
1249 originally created with.
1250
ee967b5f
MG
12512008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
1252
1253 * Makefile.in (xtensa-tdep.o): Update dependencies.
1254 * configure.tgt (xtensa*): Update dependencies.
1255 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
1256 Local variable areg renamed to arreg.
1257 (areg_number): New function.
1258 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1259 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
1260 replaced by arreg_number.
1261 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
1262 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
1263 (xtensa_scan_prologue): New function.
1264 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
1265 when ENTRY instraction hasn't been executed yet. Get the frame pointer
1266 value based on prologue analysis. Fix the bugs preventing WS and
1267 AR4-AR7/A11 registers from getting right values for intermediate frames,
1268 whose registers have been already spilled.
1269 (xtensa_frame_prev_register): Fix WS register value. Use are_number
1270 and arreg_number appropriately.
1271 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1272 svr4_ilp32_fetch_link_map_offsets.
1273
09d71d23
AS
12742008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
1275
1276 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
1277 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
1278
fdc59709
PB
12792008-04-23 Paolo Bonzini <bonzini@gnu.org>
1280
1281 * acinclude.m4: Add override.m4.
1282 * configure: Regenerate.
1283
0bcd0149
JK
12842008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1285
1286 * ada-lang.c (get_selections): Variable PROMPT made non-const and
1287 initialized with a trailing space now. Use PROMPT_ARG of
1288 COMMAND_LINE_INPUT instead of printing it ourselves.
1289
88d8a8e0
JB
12902008-04-22 Joel Brobecker <brobecker@adacore.com>
1291
1292 * NEWS: Document support for 64-bit core file.
1293
c055b101
CV
12942008-04-22 Corinna Vinschen <vinschen@redhat.com>
1295
1296 * NEWS: Add information on calling convention and new SH CLI options.
1297
1298 * sh-tdep.c (sh_cc_gcc): New static string.
1299 (sh_cc_renesas): Ditto.
1300 (sh_cc_enum): New static string array.
1301 (sh_active_calling_convention): New static string pointer denoting
1302 active user chosen ABI.
1303 (sh_is_renesas_calling_convention): New function to return function
1304 specific ABI, or user choice if necessary.
1305 (sh_use_struct_convention): Rename first argument and turn around its
1306 meaning. Check for renesas ABI and return accordingly.
1307 (sh_use_struct_convention_nofpu): New function.
1308 (sh_next_flt_argreg): Get function type as third parameter. Check
1309 for renesas ABI and choose floating registers accordingly.
1310 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
1311 struct return slot accordingly.
1312 (sh_push_dummy_call_nofpu): Ditto.
1313 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
1314 Evaluate ABI and give to sh_use_struct_convention_nofpu.
1315 (sh_return_value_fpu): Evaluate ABI and give to
1316 sh_use_struct_convention.
1317 (show_sh_command): New function.
1318 (set_sh_command): Ditto.
1319 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
1320 CLI command.
1321
1322 * gdbarch.sh (return_value): Add func_type argument.
1323 * gdbarch.c: Regenerate.
1324 * gdbarch.h: Ditto.
1325 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
1326 val_type so as not to collide with value_type function. Call
1327 using_struct_return with additional function type argument.
1328 * infcall.c (call_function_by_hand): Call using_struct_return and
1329 gdbarch_return_value with additional function type argument.
1330 * infcmd.c (print_return_value): Take addition func_type argument.
1331 Call gdbarch_return_value with additional function type argument.
1332 (finish_command_continuation): Call print_return_value with additional
1333 function type argument.
1334 (finish_command): Ditto.
1335 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
1336 additional function type argument.
1337 * stack.c (return_command): Call using_struct_return and
1338 gdbarch_return_value with additional function type argument.
1339 * value.c (using_struct_return): Take additional function type argument.
1340 * value.h (using_struct_return): Accommodate declaration.
1341 * alpha-tdep.c (alpha_return_value): Add func_type argument.
1342 * amd64-tdep.c (amd64_return_value): Ditto.
1343 * arm-tdep.c (arm_return_value): Ditto.
1344 * avr-tdep.c (avr_return_value): Ditto.
1345 * cris-tdep.c (cris_return_value): Ditto.
1346 * frv-tdep.c (frv_return_value): Ditto.
1347 * h8300-tdep.c (h8300_return_value): Ditto.
1348 (h8300h_return_value): Ditto.
1349 * hppa-tdep.c (hppa32_return_value): Ditto.
1350 (hppa64_return_value): Ditto.
1351 * i386-tdep.c (i386_return_value): Ditto.
1352 * ia64-tdep.c (ia64_return_value): Ditto.
1353 * iq2000-tdep.c (iq2000_return_value): Ditto.
1354 * m32c-tdep.c (m32c_return_value): Ditto.
1355 * m32r-tdep.c (m32r_return_value): Ditto.
1356 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
1357 * m68k-tdep.c (m68k_return_value): Ditto.
1358 (m68k_svr4_return_value): Ditto.
1359 * m88k-tdep.c (m88k_return_value): Ditto.
1360 * mep-tdep.c (mep_return_value): Ditto.
1361 * mips-tdep.c (mips_eabi_return_value): Ditto.
1362 (mips_n32n64_return_value): Ditto.
1363 (mips_o32_return_value): Ditto.
1364 (mips_o64_return_value): Ditto.
1365 * mn10300-tdep.c (mn10300_return_value): Ditto.
1366 * mt-tdep.c (mt_return_value): Ditto.
1367 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
1368 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
1369 (ppc_sysv_abi_broken_return_value): Ditto.
1370 (ppc64_sysv_abi_return_value): Ditto.
1371 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1372 (ppc_sysv_abi_broken_return_value): Ditto.
1373 (ppc64_sysv_abi_return_value): Ditto.
1374 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1375 * rs6000-tdep.c (rs6000_return_value): Ditto.
1376 * s390-tdep.c (s390_return_value): Ditto.
1377 * score-tdep.c (score_return_value): Ditto.
1378 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1379 (sh_return_value_fpu): Ditto.
1380 * sh64-tdep.c (sh64_return_value): Ditto.
1381 * sparc-tdep.c (sparc32_return_value): Ditto.
1382 * sparc64-tdep.c (sparc64_return_value): Ditto.
1383 * spu-tdep.c (spu_return_value): Ditto.
1384 * v850-tdep.c (v850_return_value): Ditto.
1385 * vax-tdep.c (vax_return_value): Ditto.
1386 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1387 * xtensa-tdep.c (xtensa_return_value): Ditto.
1388
1389 * gdbtypes.h (struct type): Add calling_convention member.
1390 * dwarf2read.c (read_subroutine_type): Add calling convention read
1391 from DW_AT_calling_convention attribute to function type.
1392
9eec4d1e
MD
13932008-04-22 Markus Deuling <deuling@de.ibm.com>
1394
1395 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1396 multi_f77_subscript to support values from registers.
1397 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1398 * value.h (value_subscripted_rvalue): Add prototype.
1399
1400 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1401 Fix output.
1402 * f-valprint.c (f_val_print): Likewise.
1403
ef72380d
CS
14042008-04-21 Craig Silverstein <csilvers@google.com>
1405
1406 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1407 !HAVE_ZLIB_H case.
1408
ff8e85c3
PA
14092008-04-21 Pedro Alves <pedro@codesourcery.com>
1410
1411 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1412 section is not a code section.
1413
31fffb02
CS
14142008-04-19 Craig Silverstein <csilvers@google.com>
1415
1416 * NEWS: Add information on compressed debug sections.
1417
8e91f023
VP
14182008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1419
1420 * mi/mi-cmd-var.c (varobj_update_one): Print new
1421 value for variable objects that changed type.
1422
603ba1de
VP
14232008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1424
1425 * varobj.c (varobj_invalidate): Don't touch floating
1426 varobjs.
1427
7fc830e2
MK
14282008-04-19 Mark Kettenis <kettenis@gnu.org>
1429
1430 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1431 (multiple_symbols_cancel): Remove extra const.
1432 * symtab.h: Likewise.
1433
bcbf8b68
NR
14342008-04-19 Nick Roberts <nickrob@snap.net.nz>
1435
1436 * interps.c (top_level_interpreter): Rename static variable...
1437 (top_level_interpreter_ptr): ...to this.
1438 (top_level_interpreter): New function.
1439
1440 * interps.h: New extern for top_level_interpreter.
1441
1442 * linespec.c: Include interps.h and mi/mi-cmds.h.
1443 (decode_line_2): When using MI, always set all breakpoints in menu.
1444
1445 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1446
31fffb02 14472008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
1448
1449 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1450 * config.in, configure: Regenerate.
1451 * dwarf2read.c: Include zlib.h if present.
1452 Modified *_SECTION macros.
1453 (section_is_p): New.
1454 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1455 (dwarf2_resize_section): New.
1456 to determine whether a given section has a given name.
1457 (zlib_decompress_section): New.
1458 (dwarf2_read_section): Read the compressed section if present
1459 in the binary.
1460 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 1461
a03b3a97
TJB
14622008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1463
1464 * defs.h (exec_set_section_offsets): Remove prototype.
1465 * exec.c (exec_set_section_offsets): Remove function.
1466
9e386756
JB
14672008-04-18 Joel Brobecker <brobecker@adacore.com>
1468
1469 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1470 in the search for the matching symbol.
1471
2ec93238
MK
14722008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
1473
1474 * breakpoint.c (update_watchpoint): Always reparse
1475 condition.
1476
e9bbd7c5
JB
14772008-04-17 Joel Brobecker <brobecker@adacore.com>
1478
1479 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1480 the breakpoint address only once.
1481
475bbd17
JB
14822008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1483
1484 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1485 rather than a hard-coded architecture, for xcoff executables.
1486
86991504
DE
14872008-04-17 Doug Evans <dje@google.com>
1488
4584e32e
DE
1489 * buildsym.c (watch_main_source_file_lossage): New fn.
1490 (end_symtab): Call it.
1491
86991504
DE
1492 * source.c (find_and_open_source): Add some comments clarifying
1493 handling of FULLNAME argument. Make static. Remove pointless
1494 xstrdup/xfree.
1495
0a320680
PA
14962008-04-17 Pedro Alves <pedro@codesourcery.com>
1497
1498 * inf-loop.c (inferior_event_handler): Also run the intermediate
1499 continuations in the INF_EXEC_COMPLETE case.
1500
700b53b1
TT
15012008-04-16 Tom Tromey <tromey@redhat.com>
1502
1503 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1504 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1505 * cli/cli-decode.c (set_cmd_async_ok): New function.
1506 (get_cmd_async_ok): New function.
1507 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1508 "show" as async-ok.
1509 * top.c (execute_command): Use get_cmd_async_ok.
1510 * infcmd.c: Include cli/cli-decode.h.
1511 (_initialize_infcmd): Mark "interrupt" as async-ok.
1512 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1513
dacec2a8
DJ
15142008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1515
1516 PR gdb/2445
1517 * exec.c: Correct "arch-utils.h" include.
1518
1f906a60 15192008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
1520
1521 PR gdb/2424
1522 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1523 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1524 * breakpoint.c (bpdisp_texst): New function. The function takes over
1525 the role of bpstats static array in print_one_breakpoint_location.
1526 (print_it_typical): Print "Temporary breakpoint" instead
1527 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1528 protocols, print disp field.
1529 (print_one_breakpoint_location): Removed bpdisps static definition.
1530 Call new bpstat_text function to get value for 'disp' field.
1531 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1532
4d7b71aa
DJ
15332008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1534
1535 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1536 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1537 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1538 * gnulib/Makefile.in: Regenerate.
1539
aa11fd3f
DJ
15402008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1541
1542 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1543 (defs_h): Use $(GNULIB_H).
1544 (all-lib): Depend on gnulib/Makefile.
1545 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1546 * config.in, gnulib/Makefile.in: Regenerated.
1547
e28b3332
DJ
15482008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1549
1550 * Makefile.in (LIBGNU, INCGNU): Define.
1551 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1552 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1553 (CLEANDIRS): New.
1554 ($(LIBGNU), all-lib): New rules.
1555 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1556 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1557 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1558 * gnulib: New directory, from gnulib-tool.
1559 * configure, aclocal.m4: Regenerated.
1560
e3bc4218
DJ
15612008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1562
1563 * linux-thread-db.c (have_threads_callback): Check thread->private.
1564
fcacd99f
VP
15652008-04-13 Nick Roberts <nickrob@snap.net.nz>
1566 Vladimir Prus <vladimir@codesourcery.com>
1567
1568 Fix @-varobjs.
1569 * varobj.c (value_of_root): Update the expression for
1570 floating varobjs.
1571 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1572 report that.
1573
de051565
MK
15742008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1575
1576 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1577 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1578 (mi_cmd_var_set_format): Use new mi_parse_format.
1579 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1580 format.
1581 * Makefile.in (mi-cmd-var.o): Update dependencies.
1582
1583 * varobj.h (varobj_get_formatted_value): Declare.
1584 * varobj.c (my_value_of_variable): Added format parameter.
1585 (cplus_value_of_variable): Likewise.
1586 (java_value_of_variable): Likewise.
1587 (c_value_of_variable): Likewise. Evaluate expression based
1588 on format parameter.
1589 (struct language_specific): Add format parameter to function member
1590 *value_of_variable.
1591 (varobj_get_formatted_value): New.
1592 (varobj_get_value): Added format parameter to method call.
1593
56953f80
JB
15942008-04-08 Joel Brobecker <brobecker@adacore.com>
1595
1596 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1597 instance flags of the undefined type before calling replace_type.
1598
e4e33b9e
VP
15992008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1600
1601 * target.h (enum strata): Remove the download_stratum.
1602
92b5c263
DE
16032008-04-07 Doug Evans <dje@google.com>
1604
1605 * buildsym.h (last_source_file): Add dwarf info to comment.
1606 (last_source_start_addr): Ditto.
1607
effa26a9
PA
16082008-04-07 Pedro Alves <pedro@codesourcery.com>
1609
1610 * alphanbsd-tdep.c: Include "target.h".
1611 * mn10300-tdep.c: Include "target.h".
1612 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1613
2b2d9e11
VP
16142008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1615
1616 Fix breakpoint condition that use member variables.
1617 * valops.c (check_field): Remove.
1618 (check_field_in): Rename to check_field.
1619 (value_of_this): Use la_name_of_this.
1620 * value.h (check_field): Adjust prototype.
1621
1622 * language.h (la_value_of_this): Rename to la_name_of_this.
1623 * language.c (unknown_language_defn): Specify "this" for
1624 name_of_this.
1625 (auto_language_defn): Likewise.
1626 (local_language_defn): Likewise.
1627 * ada-lang.c (ada_language_defn): Adjust comment.
1628 * c-lang.c (c_language_defn): Adjust comment.
1629 (cplus_language_defn): Specify "this" for name_of_this.
1630 (asm_language_defn): Adjust comment.
1631 (minimal_language_defn): Adjust comment.
1632 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1633 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1634 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1635 * objc-lang.c (objc_language_defn): Specify "self" for
1636 name_of_this.
1637 * p-lang.c (pascal_language_defn): Specify "this" for
1638 name_of_this.
1639 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1640
1641 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1642 proper scope, and check for field in type of "this", without
1643 trying to create a value.
1644
a13e061a
PA
16452008-04-04 Pedro Alves <pedro@codesourcery.com>
1646
1647 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1648 (mi_error_message): Delete declaration.
1649 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1650 returning MI_CMD_ERROR.
1651 * mi/mi-main.c (mi_error_message): Delete.
1652 (mi_cmd_exec_interrupt):
1653 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1654 (mi_cmd_thread_info): Call error instead of returning
1655 MI_CMD_ERROR.
1656 (mi_cmd_data_list_register_values): Call error instead of
1657 returning MI_CMD_ERROR. Adapt to new get_register interface.
1658 (get_register): Change return typo to void. Call error instead of
1659 returning MI_CMD_ERROR.
1660 (mi_cmd_data_write_register_values): Call error instead of
1661 returning MI_CMD_ERROR.
1662 (mi_cmd_list_features): Return MI_CMD_DONE.
1663 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1664 (mi_execute_command): Always print exceptions with -error.
1665
aad4b048
JB
16662008-04-04 Joel Brobecker <brobecker@adacore.com>
1667
1668 * NEWS: Mention new commands set/show multiple-symbols.
1669
717d2f5a
JB
16702008-04-03 Joel Brobecker <brobecker@adacore.com>
1671
1672 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1673 (multiple_symbols_cancel): New constants.
1674 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1675 (multiple_symbols_select_mode): New function.
1676 (_initialize_symtab): Add new set/show multiple-symbols commands.
1677 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1678 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1679 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1680 setting.
1681 * linespec.c (decode_line_2): Likewise.
1682
f73634e5
DE
16832008-04-03 Doug Evans <dje@sebabeach.org>
1684
1685 * symtab.h (enum free_code): Delete free_contents, unused.
1686 * symmisc.c (free_symtab_block): Delete.
1687 (free_symtab, case free_code): Delete.
1688
1f906a60 16892008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
1690
1691 * valops.c (value_cast_structs): New function. Cast related
1692 STRUCT types up/down and return cast value. The body of this
1693 function comes mostly from value_cast_pointers.
1694 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1695 to value_cast_structs. Now value_cast_pointers needs only create
1696 appropriate reference after using value_cast_structs for actual
1697 casting.
1698 (value_cast): Handle references.
1699
61ad90e1
MK
17002008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1701
1702 * MAINTAINERS: Added myself to section Write After Approval.
1703
b7d038ae
DJ
17042008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1705
1706 * ia64-tdep.c (examine_prologue): Correct array access.
1707
1f906a60 17082008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
1709
1710 * cp-support.c (first_component_command): Return if no arguments.
1711
df3ac606
CD
17122008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1713
1714 * ser-mingw.c (ser_windows_open): Open requested name.
1715
ca933485
AR
17162008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1717
1718 * MAINTAINERS: Added myself.
1719
5f667f2d
PA
17202008-03-28 Pedro Alves <pedro@codesourcery.com>
1721
1722 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1723 parameter. If it is NULL, don't call error.
1724 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1725 `do_mesg' parameter to find_default_run_target. If no target was
1726 found, return 0.
1727
e741f4d4
DJ
17282008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1729
1730 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1731 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1732 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1733 Delete.
1734 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1735
f66d8205 17362008-03-27 Joel Brobecker <brobecker@adacore.com>
1737
1738 GDB 6.8 released.
1739
221c031f
UW
17402008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1741
1742 * features/Makefile (%.dat): Set xmltarget to the base filename
1743 of the XML source, without subdirectory.
1744 * regformats/rs6000/powerpc-32.dat: Regenerate.
1745 * regformats/rs6000/powerpc-64.dat: Regenerate.
1746 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1747
40c58d95
MD
17482008-03-27 Markus Deuling <deuling@de.ibm.com>
1749
1750 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1751 objfile arch.
1752
bb1ec7d2
NR
17532008-03-27 Nick Roberts <nickrob@snap.net.nz>
1754
1755 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1756 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1757
5e2b427d
UW
17582008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1759
1760 * objfiles.h (struct objfile): New GDBARCH member.
1761 (get_objfile_arch): Add prototype.
1762 * objfiles.c: Include "arch-utils.h".
1763 (allocate_objfile): Look up gdbarch associated with bfd.
1764 (get_objfile_arch): New function.
1765 * Makefile (objfiles.o): Update dependencies.
1766
1767 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1768 by objfile arch.
1769 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1770 by frame arch.
1771 (locexpr_describe_location): Replace current_gdbarch by
1772 objfile arch.
1773 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1774 (dwarf2_add_field): Likewise.
1775 (read_tag_pointer_type): Likewise.
1776 (read_base_type): Likewise.
1777 (new_symbol): Likewise.
1778
1779 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1780 (decode_base_type, decode_function_type): Likewise.
1781 (coff_read_struct_type, coff_read_enum_type): Likewise.
1782 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1783 (decode_base_type): Likewise.
1784 (coff_read_enum_type): Likewise.
1785 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1786 (coff_read_enum_type): Likewise.
1787
1788 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1789 (end_psymtab): Likewise.
1790 (process_one_symbol): Likewise.
1791
1792 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1793 (parse_procedure): Likewise.
1794 (parse_partial_symbols): Likewise.
1795
1796 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1797
1798 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1799 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1800 built-in types.
1801 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1802 static range_index_type by built-in type.
1803 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1804 (read_enum_type): Likewise.
1805
1806 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1807 objfile arch.
1808
5a413362
VP
18092008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1810
1811 * varobj.h (varobj_floating_p): Declare.
1812 * varobj.c (varobj_floating_p): New.
1813 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1814 '@' as the name, update all floating varobjs.
1815
a5defcdc
VP
18162008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1817
1818 * varobj.c (struct varobj_root): Rename use_selected_frame to
1819 floating, and clarify the meaning.
1820 (varobj_create, varobj_update, new_root_variable): Adjust.
1821 (value_of_root): Don't use type_changed as in variable,
1822 adjust comment.
1823 (c_value_of_root): Adjust.
5a413362 1824
403fe197
PA
18252008-03-25 Pedro Alves <pedro@codesourcery.com>
1826
1827 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1828 gdb's thread list.
1829 (linux_nat_wait): Add main lwp to gdb's thread list.
1830 * linux-thread-db.c (find_new_threads_callback): Also attach to
1831 already listed threads which thread_db didn't know about yet.
1832
710151dd
PA
18332008-03-25 Pedro Alves <pedro@codesourcery.com>
1834
1835 * linux-nat.c (drain_queued_events): Fix comment typo.
1836 (linux_nat_attach): In async mode, don't rely on storing a pending
1837 status. Instead place the wait status on the pipe.
1838 (linux_nat_resume): Remove unreacheable shortcut code in async
1839 mode.
1840 (stop_wait_callback): In async mode, don't store pending status.
1841 Instead, cancel breakpoints or resend the signal appropriatelly.
1842 (cancel_breakpoint): New, refactored from
1843 cancel_breakpoints_callback.
1844 (cancel_breakpoints_callback): Call cancel_breakpoint.
1845 (pipe_to_local_event_queue): Remove special token processing.
1846 (linux_nat_wait): Issue an internal error if a pending status is
1847 found in async mode.
1848
807bddf3
DJ
18492008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1850
1851 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1852
c5b48eac
VP
18532008-03-24 Nick Roberts <nickrob@snap.net.nz>
1854 Vladimir Prus <vladimir@codesourcery.com>
1855
1856 * varobj.c (struct varobj_root): New component thread_id.
1857 (varobj_get_thread_id, check_scope): New functions.
1858 (c_value_of_root): Use check_scope. Switch to the
1859 proper thread if necessary.
1860
1861 * varobj.h (varobj_get_thread_id): New extern.
1862
1863 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1864
12f4afab
DJ
18652008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1866
1867 PR gdb/544
1868 * top.c: Revert 2008-03-21 changes.
1869
6208b47d
VP
18702008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1871
1872 * thread.c (make_cleanup_restore_current_thread): Make it
1873 globally visible.
1874 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1875 * varobj.c (varobj_update): Don't save/restore frame.
1876 (c_value_of_root): Save/restore thread and frame here,
1877 using make_cleanup_restore_current_thread.
1878 * Makefile.in: Update dependecies.
1879
44a67aa7
VP
18802008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1881
1882 * varobj.c (struct varobj_root): Clarify
1883 comment on the frame field.
1884 (varobj_create): Don't set frame if we have no
1885 block.
1886
b562a0cb
DJ
18872008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1888
1889 PR gdb/544
1890 Suggested by Jan Kratochvil:
1891 * top.c (gdb_rl_operate_and_get_next_completion): Call
1892 rl_redisplay_function.
1893 (gdb_rl_redisplay): New.
1894 (init_main): Set rl_redisplay_function.
1895
ed1bd5f5
JB
18962008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1897
1898 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1899 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1900 (store_regs_kernel_thread): Likewise.
1901
b84876c2
PA
19022008-03-21 Pedro Alves <pedro@codesourcery.com>
1903
1904 Linux native async support.
1905
1906 * target.h (struct target_ops): Delete to_async_mask_value and add
1907 to_async_mask.
1908 (target_is_async_p, target_async): Formatting.
1909 (target_async_mask_value): Delete.
1910 (target_async_mask): Delete function declaration, and add new
1911 target macro with the same name.
1912
1913 * target.c (update_current_target): Replace to_async_mask_value by
1914 to_async_mask. Default to_async_mask to return_one.
1915 (target_async_mask): Delete.
1916 (find_default_can_async_p, find_default_is_async_p): New.
1917 (init_dummy_target): register find_default_can_async_p and
1918 find_default_is_async_p on the dummy target.
1919
1920 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1921 (debug_linux_nat_async): New global.
1922 (show_debug_linux_nat_async): New function.
1923 (linux_nat_async_enabled, linux_nat_async_mask_value)
1924 (linux_nat_event_pipe, linux_nat_num_queued_events)
1925 (linux_nat_async_events_enabled): New globals.
1926 (struct waitpid_result): New struct.
1927 (waitpid_queue): New global.
1928 (queued_waitpid, push_waitpid, drain_queued_events): New.
1929 (my_waitpid): Call queued_waitpid.
1930 (linux_child_follow_fork): Disable async events during the call.
1931 (blocked_mask): Delete.
1932 (sync_sigchld_action, async_sigchld_action): New globals.
1933 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1934 async mode, block events during the call.
1935 (linux_nat_create_inferior): New.
1936 (linux_nat_attach): In sync mode, restore the mask states. In
1937 async mode, wake the event loop immediatelly.
1938 (detach_callback): Drain all queued events of the lwp we're
1939 detaching from.
1940 (linux_nat_detach): Block async mode, and drain events of the main
1941 process.
1942 (linux_nat_resume): If in async mode, mask async events during the
1943 call. If short circuiting, force event loop to wake up. If
1944 resuming, set target_executing, and register target events in the
1945 event loop.
1946 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1947 (linux_nat_wait): In async mode, block events during the call.
1948 Only enable/disable passing SIGINT to the inferior in sync mode.
1949 Get events from local waitpid queue. If no interesting events was
1950 found, return to events loop. Reregister target events in the
1951 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1952 (linux_nat_kill): Disable events on entry.
1953 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1954 here. Detach async mode from the event loop if there are no more
1955 forks available, otherwise leave it on.
1956 (sigchld_handler): Assure this is called only in sync mode.
1957 (linux_async_permitted, linux_async_permitted_1): New globals.
1958 (set_maintenance_linux_async_permitted)
1959 (show_maintenance_linux_async_permitted): New functions.
1960 (linux_nat_is_async_p, linux_nat_can_async_p)
1961 (linux_nat_async_mask): New.
1962 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1963 (get_pending_events, async_sigchld_handler): New.
1964 (linux_nat_async_events): New.
1965 (async_terminal_is_ours): New global.
1966 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1967 (async_client_callback, async_client_context): New.
1968 (linux_nat_async_file_handler, linux_nat_async)
1969 (linux_nat_disable_async, linux_nat_enable_async): New.
1970 (linux_nat_add_target): Register linux_nat_create_inferior,
1971 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1972 linux_nat_async_mask, linux_nat_terminal_inferior and
1973 linux_nat_terminal_ours.
1974 (_initialize_linux_nat): Remove local action variable, and update
1975 code that used it to use sync_sigchld_action. Add new
1976 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1977 set/show command in the maintenance class. Add new "linux-async"
1978 maintenance set/show command. Block SIGCHLD by default. Setup
1979 async_sichld_action, and sync_sigchld_action. Install the default
1980 async mode.
1981 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1982 the cancel signals.
1983
1984 * linux-thread-db.c (re_check_for_thread_db): New.
1985 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1986 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1987 (thread_db_async_mask): New.
1988 (init_thread_db_ops): Register thread_db_can_async_p,
1989 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1990
1991 * remote.c (remote_async_mask_value): New.
1992 (remote_return_zero): New.
1993 (init_remote_ops): Register remote_return_zero as callbacks of
1994 to_can_async_p and to_is_async_p.
1995 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1996 use remote_async_mask_value.
1997 (remote_async_mask): New.
1998 (init_remote_async_ops): Remove to_async_mask_value setting and
1999 register remote_async_mask as to_async_mask callback in
2000 remote_async_ops.
2001
2002 * Makefile.in (linux-nat.o): Update.
2003
17faa917
DJ
20042008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2005
2006 * gdbthread.h (add_thread_with_info): New.
2007 * linux-thread-db.c: Add some documentation.
2008 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
2009 (struct private_thread_info): Remove th_valid and ti_valid.
2010 Replace ti with tid.
2011 (thread_get_info_callback): Do not add TID to the new ptid. Do
2012 not cache th or ti.
2013 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
2014 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
2015 new PTID.
2016 (attach_thread): Handle an already-existing thread. Use
2017 add_thread_with_info. Cache the th and tid.
2018 (detach_thread): Verify that private was set. Remove verbose
2019 argument and printing. Update caller.
2020 (thread_db_detach): Do not adjust inferior_ptid.
2021 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
2022 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
2023 (thread_db_wait): Do not use lwp_from_thread.
2024 (thread_db_pid_to_str): Use the cached TID.
2025 (thread_db_extra_thread_info): Check that private is set.
2026 (same_ptid_callback): Delete.
2027 (thread_db_get_thread_local_address): Do not use it or check
2028 is_thread. Check that private is set. Assume that the thread
2029 handle is already cached.
2030 (init_thread_db_ops): Remove to_resume and to_kill.
2031 * thread.c (add_thread_with_info): New.
2032 (add_thread): Use it.
2033 * linux-nat.c (find_thread_from_lwp): Delete.
2034 (exit_lwp): Do not use it. Check print_thread_events. Print before
2035 deleting the thread.
2036 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
2037 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
2038 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
2039 printf_unfiltered for thread exits.
2040 * procfs.c (procfs_wait): Likewise.
2041
6214f497
DJ
20422008-03-21 Chris Demetriou <cgd@google.com>
2043
2044 * symtab.c (rbreak_command): Quote symbol name before passing
2045 it to break_command.
2046
63092375
DJ
20472008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2048
2049 * eval.c (evaluate_subexp_for_address): Clarify error message.
2050 Use value_must_coerce_to_target.
2051 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
2052 * valops.c (value_assign): Call value_coerce_to_target when
2053 assigning to anything but internalvars. Leave GDB-side arrays
2054 as arrays when assigning to internalvars.
2055 (value_must_coerce_to_target, value_coerce_to_target): New.
2056 (value_coerce_array, value_addr): Call value_coerce_to_target.
2057 (value_array): Create the array in GDB's memory instead of
2058 the inferior's.
2059 * value.h (value_must_coerce_to_target, value_coerce_to_target):
2060 Declare.
2061
b21991b0
DJ
20622008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2063
2064 * top.c (quit_confirm): Warn that we will kill the program.
2065
49a834f9
PA
20662008-03-19 Pedro Alves <pedro@codesourcery.com>
2067
2068 * inflow.c (terminal_ours_1): Guard access to
2069 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
2070
ae0d2f24
UW
20712008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
2072 Jim Blandy <jimb@codesourcery.com>
2073 Daniel Jacobowitz <drow@false.org>
2074
2075 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
2076 (dwarf2_read_address): Update prototype.
2077
2078 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
2079 (signed_address_type): Likewise.
2080 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
2081 (execute_stack_op): Update calls to unsigned_address_type,
2082 signed_address_type and dwarf2_read_address. Fix implementation
2083 of DW_OP_deref_size.
2084
2085 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
2086 (dwarf2_per_cu_addr_size): Likewise.
2087 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
2088 (struct dwarf2_loclist_baton): Likewise.
2089
2090 * dwarf2loc.c (find_location_expression): Update calls to
2091 dwarf2_read_address. Use dwarf2_per_cu_objfile and
2092 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
2093 (locexpr_describe_location): Likewise.
2094 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
2095 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
2096 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
2097 to dwarf2_per_cu_addr_size (per_cu).
2098 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
2099 (loclist_read_variable): Likewise.
2100 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
2101
2102 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
2103 instead of baton->objfile.
2104 (dwarf2_per_cu_obfile): New function.
2105 (dwarf2_per_cu_addr_size): Likewise.
2106
2107 * dwarf2-frame.c (struct comp_unit): Move higher.
2108 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
2109 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
2110 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
2111 parameter by using fde->eh_frame_p. Use read_encoded_value
2112 to implement DW_CFA_set_loc.
2113 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
2114 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
2115 execute_stack_op and execute_cfa_program.
2116 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
2117 (size_of_encoded_value): Remove.
2118 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
2119 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
2120 (add_cie): Set cie->unit backlink.
2121 (decode_frame_entry_1): Set cie->addr_size. Update calls to
2122 read_encoded_value.
2123 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
2124
1c8201d1
MD
21252008-03-17 Markus Deuling <deuling@de.ibm.com>
2126
2127 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
2128 gdbarch_bfd_arch_info.
2129
46bba1ef
JB
21302008-03-17 Joel Brobecker <brobecker@adacore.com>
2131
2132 * aix-thread.c (pdc_read_regs): Minor reformatting.
2133
0bcd3e20
VP
21342008-03-17 Vladimir Prus <vladimir@codesourcery.com>
2135
2136 * thread.c (print_thread_info): Don't insist
2137 on having current thread if there are no
2138 threads at all.
2139
9356cf8d
PA
21402008-03-17 Pedro Alves <pedro@codesourcery.com>
2141
2142 * infcmd.c (attach_command_post_wait)
2143 (attach_command_continuation): New.
2144 (attach_command): Support background async execution, and async
2145 execution in synchronous mode.
2146
5c3ce3f7
DJ
21472008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2148
2149 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
2150 * symmisc.c (dump_symtab_1): Likewise.
2151 * wrapper.c (gdb_value_struct_elt): Likewise.
2152
fa2c6a57
PA
21532008-03-17 Pedro Alves <pedro@codesourcery.com>
2154
2155 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
2156
02f3fc28
PA
21572008-03-17 Pedro Alves <pedro@codesourcery.com>
2158
2159 * linux-nat.c (linux_nat_filter_event): New, refactored from
2160 linux_nat_wait.
2161 (linux_nat_wait): Call linux_nat_filter_event.
2162
2f77b315
UW
21632008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
2164
2165 * top.c (execute_command): Fix uninitialized variable error.
2166
f01be29b
NH
21672008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
2168
2169 * Makefile.in (amd64nbsd-nat.o): New dependency.
2170 * amd64nbsd-nat.c: Include "nbsd-nat.h".
2171 (_initialize_amd64nbsd_nat): Update target vector to use
2172 nbsd_pid_to_exec_file.
2173 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
2174
6cf32704
VP
21752008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2176
2177 Remove ignoring leading exec events code.
2178 * fork-child.c (startup_inferior): Do not set
2179 inferior_ignoring_leading_exec_events.
2180 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
2181 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
2182 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
2183 (handle_inferior_event): Remove code for ignoring leading exec
2184 events.
2185 * target.c (update_current_target): Do not inherit, or default,
2186 to_reported_exec_events_per_exec_call.
2187 (debug_to_reported_exec_events_per_exec_call): Remove.
2188 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
2189 * target.h (target_reported_exec_events_per_exec_call): Remove.
2190 (struct target): Remove the to_reported_exec_events_per_exec_call
2191 field.
2192
8e8901c5
VP
21932008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2194
2195 Implement -thread-info.
2196 * gdbthread.h (print_thread_info): Declare.
2197
2198 * thread.c (print_thread_info): New, extracted
2199 from info_threads_command and adjusted to
2200 work for CLI and MI.
2201 (info_threads_command): Use print_thread_info.
2202 * Makefile.in: Update dependencies.
2203
2204 * mi/mi-cmds.c (mi_cmds): Specify a handler
2205 for -thread-info.
2206 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
2207 * mi/mi-main.c (mi_cmd_thread_info): New.
2208 (mi_cmd_list_features): Include 'thread-info'.
2209
7d1e6fb8
KB
22102008-03-14 Kevin Buettner <kevinb@redhat.com>
2211
2212 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
2213 to decide whether to match instruction patterns using "sw" and "sd".
2214
89113898
PA
22152008-03-14 Pedro Alves <pedro@codesourcery.com>
2216
2217 * infcmd.c (jump_command): Postpone disabling stdin until after
2218 the possible query.
2219
64a0ac84
PA
22202008-03-14 Pedro Alves <pedro@codesourcery.com>
2221
2222 * inflow.c (gdb_getpgrp): New.
2223 (gdb_has_a_terminal): Use get_getpgrp.
2224 (terminal_ours_1): If attach_flag is set, don't refetch
2225 inferior_process_group.
2226
1fddbabb
PA
22272008-03-14 Pedro Alves <pedro@codesourcery.com>
2228
2229 * features/library-list.dtd: Allow "section" elements as children
2230 of "library". Add "section" element and describe its attributes.
2231
2232 * solib-target.c (struct lm_info): Add section_bases member.
2233 (library_list_start_segment): Error out if seen a section element.
2234 (library_list_start_section): New.
2235 (library_list_end_library): New.
2236 (solib_target_free_library_list): Free section_bases.
2237 (section_attributes): New.
2238 (library_children): Make "segment" optional. Add "section" child.
2239 (library_list_children): Register library_list_end_library.
2240 (solib_target_relocate_section_addresses): Handle section bases.
2241
2242 * NEWS: Mention new qXfer:libraries:read section offsets support.
2243
712af3be
VP
22442008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2245
2246 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
2247 (make_exec_error_cleanup): Remove declarations.
2248 * utils.c (exec_error_cleanup_chain): Remove.
2249 (do_exec_error_cleanups, discard_exec_error_cleanups)
2250 (make_exec_error_cleanup): Remove.
2251 * event-loop.c (start_event_loop): Adjust call to
2252 async_enable_stdin.
2253 * event-top.c (async_enable_stdin): Remove the paramater dummy.
2254 (async_disable_stdin): Don't register async_enable_stdin via
2255 cleanup.
2256 * inf-loop.c (inferior_event_handler): Don't
2257 call do_exec_error_cleanups. Call async_enable_stdin instead.
2258 * event-loop.c (start_event_loop): Adjust call to
2259 async_enable_stdin.
2260 * tui/tui-interp.c (tui_command_loop): Adjust call to
2261 async_enable_stdin.
2262
32c1e744
VP
22632008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2264
2265 Async mode fixes.
2266 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
2267 * breakpoint.c (bpstat_do_actions): In async mode,
2268 don't jump to top expecting stop_bpstat to be already
2269 updated.
2270 * event-loop.c (start_event_loop): Call async_enable_stdin
2271 on exception.
2272 * event-top.c (async_enable_stdin): Do nothing if sync_execution
2273 is not set.
2274 (command_handler): Do not setup continuation here.
2275 (command_line_handler_continuation): Move to...
2276 * top.c (command_line_handler_continuation): ... here.
2277 (execute_command): In async mode, register continuation.
2278 Don't check frame's language in running in async mode.
2279 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
2280 * inf-loop.c (complete_execution): Inline into...
2281 (inferior_event_handler): ... here. Clear target_executing before
2282 doing any cleanups. Don't try to show prompt if the target was
2283 resumed.
2284 * infcmd.c (signal_command): Add support for async mode.
2285 (finish_command): Only add continuation if the target was
2286 successfully resumed.
2287 * remote.c (init_async_opts): Register to_get_thread_local_address
2288 handler.
2289 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
2290 with sync_execution.
2291 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
2292 on exception.
2293
c04ea773
DJ
22942008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2295
2296 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
2297 * exec.c (exec_bfd_mtime): Define.
2298 (exec_close): Clear it.
2299 (exec_file_attach): Set it.
2300 * gdbcore.h (exec_bfd_mtime): Declare.
2301 * source.c (find_source_lines): Do not use bfd_get_mtime.
2302
952dc227
VP
23032008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2304
2305 * top.c (simplified_command_loop): Remove.
2306
4cf46804
VP
23072008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2308
2309 Remove unused remote.c hooks.
2310 * remote.c (deprecated_target_resume_hook)
2311 (deprecated_target_wait_loop_hook): Remove.
2312 (remote_resume): Do not call deprecated_target_resume_hook.
2313 (remote_wait): Do not call deprecated_target_wait_loop_hook.
2314 (remote_async_wait): Likewise.
2315
683f2885
VP
23162008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2317
2318 Implement MI notification for new threads.
2319 * doc/observer.texi (new_thread): Document.
2320 * observer.sh: Forward declare struct thread_info.
2321 * thread.c (add_thread): Notify observer.
2322
2323 * interps.h (interp_init_ftype): New parameter
2324 top_level.
2325 (interp_set): Likewise.
2326 (top_level_interpreter_data): Declare.
2327 * interps.c (interp_set): New parameter top_level.
2328 Pass it to interpreter's init function. Remember
2329 top level interpreter.
2330 (interpreter_exec_cmd): Adjust.
2331 (top_level_interpreter_data): New.
2332 * main.c (captured_main): Pass 1 for top_level
2333 parameter of interp_set.
2334 * cli/cli-interp.c (cli_interpreter_init): New
2335 parameter top_level.
2336 * tui/tui-interp.c (tui_init): New parameter top_level.
2337
2338 * mi/mi-interp.c (mi_new_thread): New.
2339 (mi_interpreter_init): If top level, register
2340 observer for new threads.
2341
2342 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
2343
ff9b3928
PA
23442008-03-14 Pedro Alves <pedro@codesourcery.com>
2345
2346 * top.c (execute_command): Disable break and stop
2347 commands in async mode.
2348
b18392ef
PA
23492008-03-14 Pedro Alves <pedro@codesourcery.com>
2350
2351 revert:
2352 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2353 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2354 Call target_stop in the INF_QUIT_REQ case.
2355 * Makefile.in (inf-loop.o): Update.
2356
0aca9f07
PA
23572008-03-14 Pedro Alves <pedro@codesourcery.com>
2358
2359 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2360 Call target_stop in the INF_QUIT_REQ case.
2361 * Makefile.in (inf-loop.o): Update.
2362
0b4e556c
PA
23632008-03-14 Pedro Alves <pedro@codesourcery.com>
2364
2365 * top.c (execute_command): Enable break, info and interrupt
2366 commands in async mode.
2367
8defab1a
DJ
23682008-03-13 Vladimir Prus <vladimir@codesourcery.com>
2369 Daniel Jacobowitz <dan@codesourcery.com>
2370
2371 * breakpoint.h (breakpoint_restore_shadows): New
2372 declaration.
2373 * breakpoint.c (breakpoint_restore_shadows): New.
2374 (read_memory_nobpt): Delete.
2375 * gdbcore.h (read_memory_nobpt): Delete declaration.
2376 * target.c (memory_xfer_partial): Call
2377 breakpoint_restore_shadows.
2378 (restore_show_memory_breakpoints)
2379 (make_show_memory_beakpoints_cleanup): New.
2380 (show_memory_breakpoints): New.
2381 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2382 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2383 Make sure we see memory breakpoints when checking if
2384 breakpoint is still there.
2385 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2386 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2387 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2388 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2389
fd532e2e
PA
23902008-03-12 Pedro Alves <pedro@codesourcery.com>
2391
2392 * thread.c (add_thread): Use printf_unfiltered to print.
2393
f749779f 23942008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
2395
2396 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2397 that is true only on x86-solaris and x86_64-solaris.
2398 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2399 with proc_get_LDT_entry.
2400
24012008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
2402
2403 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2404 * config.in, configure: Regenerate.
2405 * fork-child.c (fork_inferior): Call create_tty_session.
2406 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2407 (create_tty_session): New function.
2408 * terminal.h: Declare create_tty_session.
2409
4fbb74a6
AM
24102008-03-12 Alan Modra <amodra@bigpond.net.au>
2411
2412 PR 5900
2413 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2414 * mipsread.c: Include elf/internal.h.
2415 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2416 to internal range.
2417
20a6ec49
MD
24182008-03-11 Markus Deuling <deuling@de.ibm.com>
2419
2420 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2421 to get at the current architecture and at the target specific vector.
2422 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2423 remove define of I387_ST0_REGNUM.
2424
2425 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2426
2427 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2428 get at the current architecture
2429 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2430 parameter.
2431
2432 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2433 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2434
2435 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2436 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2437 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2438
2439 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2440 at the target specific vector.
2441
2442 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2443 architecture. Use gdbarch_tdep to get at the target specific vector.
2444
2445 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2446 update caller. Use gdbarch_tdep to get at the target specific vector.
2447
2448 (i386_register_to_value: Use get_frame_arch to get at the current
2449 architecture.
2450
2451 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2452 parameter.
2453
2454 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2455 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2456 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2457 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2458
2459 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2460 undef's.
2461
2462 (i387_convert_register_p, i387_register_to_value,
2463 i387_value_to_register): Update call for i386_fp_regnum_p.
2464
2465 * i387-tdep.h: Remove comment.
2466 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2467 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2468 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2469 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2470 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2471
ccd213ac
DJ
24722008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2473
2474 * Makefile.in (fork-child.o): Update.
2475 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2476 argument. Gather all gdbserver features together.
2477 * fork-child.c (exec_wrapper): New variable.
2478 (fork_inferior): Use it.
2479 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2480 (unset_exec_wrapper_command, _initialize_fork_child): New.
2481
24822008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
2483
2484 * source.c (directory_command): Modify the determination of
2485 condition of terminal "from_tty".
2486
22566fbd
DJ
24872008-03-10 Matt Rice <ratmice@gmail.com>
2488
2489 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2490
9971ac47
UW
24912008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2492
2493 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2494 of the data passing to strtoulst function.
2495 (info_spu_signal_command): Likewise.
2496
835670cf
VP
24972008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2498
2499 * mi/mi-interp.c (mi_command_loop): Remove
2500 commented-out code.
2501
be86555c
JB
25022008-03-07 Joel Brobecker <brobecker@adacore.com>
2503
2504 * remote.c (extended_remote_attach_1): Make local variable pid an int
2505 instead of a pid_t.
2506
4d7b2d5b
JB
25072008-03-07 Joel Brobecker <brobecker@adacore.com>
2508
2509 * solib-svr4.c (svr4_same_1): New function, originally extracted
2510 from svr4_same and expanded to handle the sparc64 case.
2511 (svr4_same): Move up and reimplement using svr4_same_1.
2512 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2513
61fed90e
RR
25142008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2515
2516 * MAINTAINERS: Move self to Paper trail.
2517
b803fb0f
DJ
25182008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2519
2520 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2521 * event-loop.c (call_async_signal_handler): New.
2522 * event-loop.h (call_async_signal_handler)
2523 (gdb_call_async_signal_handler): Declare.
2524 (mark_async_signal_handler): Add comments.
2525 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2526 * mingw-hdep.c (sigint_event, sigint_handler): New.
2527 (gdb_select): Use them. Wait for the readline signal handler
2528 to finish.
2529 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2530 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2531 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2532 New.
2533 (remote_fileio_ctrl_c_signal_handler): Use
2534 gdb_call_async_signal_handler.
2535 (initialize_remote_fileio): Initialize sigint_fileio_token.
2536 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2537 not initialize tokens here.
2538 (handle_remote_sigint_twice): Likewise. Reinstall
2539 handle_remote_sigint.
2540 (async_remote_interrupt_twice): Just call interrupt_query.
2541 (cleanup_sigint_signal_handler): Do not delete tokens.
2542 (remote_interrupt, remote_interrupt_twice): Use
2543 gdb_call_async_signal_handler.
2544 (interrupt_query): Reinstall the default signal handler.
2545 (_initialize_remote): Initialize tokens here.
2546
8f4d54ed
JB
25472008-03-04 Joel Brobecker <brobecker@adacore.com>
2548
2549 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2550 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2551 Change the type of the lr register to code_ptr.
2552 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2553 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2554 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2555 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2556 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2557 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2558 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2559
95ece428
JW
25602008-03-03 James E. Wilson <wilson@tuliptree.org>
2561
2562 * MAINTAINERS: Update my email address.
2563
686a5eed
KS
25642008-03-03 Keith Seitz <keiths@redhat.com>
2565
2566 From Dave Murphy <davem@devkitpro.org>:
2567 * configure.ac: Set tcl configdir to win under mingw.
2568 * configure: Regenerate.
2569
fa4727a6
DJ
25702008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2571
2572 * breakpoint.c (fetch_watchpoint_value): New function.
2573 (update_watchpoint): Set and clear val_valid. Use
2574 fetch_watchpoint_value. Handle unreadable values on the
2575 value chain. Correct check for user-requested array watchpoints.
2576 (breakpoint_init_inferior): Clear val_valid.
2577 (watchpoint_value_print): New function.
2578 (print_it_typical): Use it. Do not free or clear old_val. Print
2579 watchpoints even if old_val == NULL.
2580 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2581 becoming readable or unreadable.
2582 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2583 (do_enable_watchpoint): Likewise.
2584 * breakpoint.h (struct breakpoint): Update comment for val. Add
2585 val_valid.
2586 * NEWS: Mention watchpoints on inaccessible memory.
2587
c03374d5
DJ
25882007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2589
2590 * Makefile.in (i386-nat.o): Update.
2591 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2592 i386_use_watchpoints.
2593 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2594 i386_use_watchpoints.
2595 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2596 (i386_stopped_by_watchpoint): Update call.
2597 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2598 * config/i386/nm-i386.h: Conditionalize definitions on
2599 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2600 (i386_use_watchpoints): Declare.
2601 (i386_stopped_data_address): Update.
2602 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2603 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2604
c24d7425 26052008-02-29 Joel Brobecker <brobecker@adacore.com>
2606
2607 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2608 * version.in: Bump version to 6.8.50.20080229-cvs.
2609
a7dfd010
MD
26102008-02-28 Markus Deuling <deuling@de.ibm.com>
2611
2612 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2613 properly.
2614
258c00cc
TT
26152008-02-28 Tom Tromey <tromey@redhat.com>
2616
2617 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2618
8edfe269
DJ
26192008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2620
2621 * infcmd.c (kill_if_already_running): Make static. Use
2622 target_require_runnable.
2623 * target.c (target_require_runnable): New.
2624 * target.h (target_require_runnable): Declare.
2625
0d6ba1b1
DJ
26262008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2627
2628 * frame.c (reinit_frame_cache): Only annotate if frames were
2629 previously valid.
2630
6fe305f7
UW
26312008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2632
2633 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2634 * regformats/reg-ppc64.dat: Likewise.
2635
9b4b61c8
UW
26362008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2637
2638 * features/Makefile (%.dat): Emit xmltarget statement.
2639
2640 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2641 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2642
2643 * regformats/arm-with-iwmmxt.dat: Regenerate.
2644 * regformats/mips64-linux.dat: Regenerate.
2645 * regformats/mips-linux.dat: Regenerate.
2646 * regformats/rs6000/powerpc-32.dat: Regenerate.
2647 * regformats/rs6000/powerpc-64.dat: Regenerate.
2648 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2649
2650 * regformats/reg-arm.dat: Add xmlarch statement.
2651 * regformats/reg-i386.dat: Likewise.
2652 * regformats/reg-i386-linux.dat: Likewise.
2653 * regformats/reg-x86-64-linux.dat: Likewise.
2654 * regformats/reg-spu.dat: Likewise.
2655
20b4711e
DJ
26562008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2657
2658 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2659 an error.
2660
1843f87b
DJ
26612008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2662
2663 * utils.c (debug_timestamp): New.
2664 (vfprintf_unfiltered): Print timestamps if requested.
2665 (show_debug_timestamp): New.
2666 (initialize_utils): Register "set debug timestamp".
2667 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2668
6a048695
JB
26692008-02-27 Joel Brobecker <brobecker@adacore.com>
2670
2671 * breakpoint.c (skip_prologue_sal): New function.
2672 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2673 computed from a line number.
2674
0b998f49
JB
26752008-02-27 Joel Brobecker <brobecker@adacore.com>
2676
2677 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2678 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2679 Set PC register type to "code_ptr".
2680 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2681 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2682 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2683 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2684 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2685 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2686 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2687 Regenerate.
2688
d05b4ac3
UW
26892008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2690
2691 * regformats/regdat.sh: Rename init_registers function in
2692 generated file to init_registers_${name}.
2693
2694 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2695 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2696 * regformats/reg-s390x.dat: Set "name" to s390x.
2697
a5d9d57d
DJ
26982008-02-26 Greg Law <glaw@undo-software.com>
2699
2700 * regcache.c (registers_changed): Call reinit_frame_cache.
2701
e25c958c
DJ
27022008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2703
2704 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2705 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2706 and svr4_fetch_objfile_link_map.
2707 * Makefile.in (sh-linux-tdep.o): Update.
2708
5daa78cc
TJB
27092008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2710
2711 * amd64-tdep.c (amd64_classify): Add support for decimal float
2712 types.
2713 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2714 use the struct return convention.
2715
54e52265
VP
27162008-02-26 Nick Roberts <nickrob@snap.net.nz>
2717
2718 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2719 to old format. Discard breakpoint address if shared library is
2720 unloaded.
2721 (breakpoint_1): Adjust formatting of table header accordingly.
2722
d8f2712d
VP
27232008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2724
2725 * remote.c (remote_get_threadlist): If the response
2726 is empty, don't try to parse it.
2727
05ce04a4
VP
27282008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2729
2730 Unbreak 'target async'.
2731 * serial.c (serial_async): Set the
2732 handler function before enabling async
2733 mode.
2734
b36ec657
DJ
27352008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2736
2737 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2738
df7df359
PA
27392008-02-21 Pedro Alves <pedro@codesourcery.com>
2740
2741 * remote.c (extended_remote_attach_1): Set attach_flag.
2742 (extended_remote_create_inferior_1): Clear attach_flag.
2743
7cd25cfc
DJ
27442008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2745
2746 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2747 r_brk_offset.
2748 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2749 * solib-svr4.c (solib_svr4_r_brk): New.
2750 (open_symbol_file_object, svr4_current_sos): Always check the
2751 debug base.
2752 (svr4_fetch_objfile_link_map): Do not set debug_base.
2753 (enable_break): Use r_brk if it is set.
2754 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2755 (svr4_lp64_fetch_link_map_offsets): Likewise.
2756 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2757
07ea644b
MD
27582008-02-20 Markus Deuling <deuling@de.ibm.com>
2759 Mark Kettenis <kettenis@gnu.org>
2760
2761 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2762 trad_frame_saved_reg.
2763 (trad-frame.h): New include.
2764
2765 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2766 instead of frame_obstack_zalloc.
2767 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2768
2769 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2770
40887e1a
MD
27712008-02-20 Markus Deuling <deuling@de.ibm.com>
2772
2773 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2774 from disassemble_info instead of gdbarch_byte_order.
2775
2776 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2777 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2778
ae4b2284
MD
27792008-02-20 Markus Deuling <deuling@de.ibm.com>
2780
2781 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2782 gdbarch as parameter.
2783
2784 * gdbarch.{c,h}: Regenerate.
2785
2786 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2787 parameter.
2788 * mem-break.c (default_memory_insert_breakpoint)
2789 (default_memory_remove_breakpoint): Likewise.
2790 * target.h (default_memory_remove_breakpoint)
2791 (default_memory_insert_breakpoint): Likewise.
2792
2793 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2794 parameter. Replace current_gdbarch by gdbarch.
2795 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2796 (m32r_memory_remove_breakpoint): Likewise.
2797
d9bf65d5
DJ
27982008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2799
2800 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2801
b93b6ca7
JB
28022008-02-19 Joel Brobecker <brobecker@adacore.com>
2803
2804 * NEWS: Add entry describing Add support improvements.
2805
4ed226fe
MD
28062008-02-18 Markus Deuling <deuling@de.ibm.com>
2807
2808 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2809 M68K_FP0_REGNUM.
2810
caaa79ad
MD
28112008-02-18 Markus Deuling <deuling@de.ibm.com>
2812
2813 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2814 register_offset_hack anymore.
2815
2816 * regcache.{c,h} (register_offset_hack): Remove.
2817
e38c262f
MD
28182008-02-18 Markus Deuling <deuling@de.ibm.com>
2819
2820 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2821
2822 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2823 current_gdbarch by gdbarch.
2824 (hppa64_hpux_find_global_pointer): Likewise.
2825 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2826 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2827 find_global_pointer.
2828
2829 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2830 parameter.
2831 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2832
2833 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2834 of gdbarch_num_regs.
2835
2836 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2837 replace current_gdbarch by gdbarch.
2838 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2839
206988c4
MD
28402008-02-18 Markus Deuling <deuling@de.ibm.com>
2841
2842 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2843 and replace current_gdbarch by gdbarch.
2844
2845 (store_register): Update call for exec_one_dummy_insn.
2846 (fetch_register, store_register): Update call of regmap.
2847
2848 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2849 parameter and replace current_gdbarch by gdbarch.
2850
2851 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2852 the current architecture. Update call for getregs_supplies and
2853 getfpregs_supplies.
2854 (ppcnbsd_fetch_inferior_registers): Likewise.
2855
2856 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2857 replace current_gdbarch by gdbarch.
2858 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2859 get_regcache_arch to get at the current architecture. Update call for
2860 getfpregs_supplies.
2861
f642be6b
MD
28622008-02-18 Markus Deuling <deuling@de.ibm.com>
2863
2864 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2865 variables.
2866
b1f2bf01
MD
28672008-02-15 Markus Deuling <deuling@de.ibm.com>
2868
2869 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2870
ee163bf5
VP
28712008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2872
2873 * NEWS: Mention pending breakpints in MI.
2874
f6fbcbf9
MD
28752008-02-14 Markus Deuling <deuling@de.ibm.com>
2876
2877 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2878
36af4ef6
MD
28792008-02-13 Markus Deuling <deuling@de.ibm.com>
2880
2881 Add script to build and test GDB using enable-targets=all.
2882
2883 * gdb_buildall.sh: New file.
2884
94a0e877
MG
28852008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2886
2887 * NEWS (New native configurations): Xtensa GNU/Linux.
2888 (New targets): Xtensa GNU/Linux.
2889 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2890 xtensa-linux-tdep.o
2891 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2892 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2893 * configure.tgt (xtensa*-*-linux*): New entry.
2894 * xtensa-config.c (xtensa_tdep): New variable.
2895 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2896 (rmap): Change format based on new macro XTREG.
2897 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2898 * xtensa-linux-nat.c: New.
2899 * xtensa-linux-tdep.c: New.
2900 * xtensa-xtregs.c: New.
2901 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2902 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2903 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2904 (xtensa_register_t): New field coprocessor.
2905 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2906 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2907 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2908 Update to handle privileged registers.
2909 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2910 (xtensa_push_dummy_call): Set windowstart register correctly.
2911 (call0_analyze_prologue): Initialize xtensa_default_isa.
2912 (xtensa_derive_tdep): New.
2913 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2914 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2915 Call xtensa_derive_tdep().
2916 * config/xtensa/linux.mh: New.
2917 * regformats/reg-xtensa.dat: New.
2918
b7ee1b0a 29192008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
2920
2921 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2922 (filenames.h): New include.
2923 * Makefile.in (corelow.o): Add dependency for filenames.h.
2924
8da2a1df
DJ
29252008-02-08 Doug Evans <dje@google.com>
2926
2927 * source.c (find_and_open_source): Always rewrite absolute filenames.
2928
776592bf
DE
29292008-02-07 Doug Evans <dje@google.com>
2930
2931 * breakpoint.c: #include "hashtab.h".
2932 (ambiguous_names_p): New fn.
2933 (update_breakpoint_locations): When restoring bp enable status, don't
2934 compare function names if any functions have same name.
2935 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2936
d6565258
JB
29372008-02-07 Joel Brobecker <brobecker@adacore.com>
2938
2939 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2940 instead of just a VEC*. Update use of SV.
2941 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2942
6d53d0af
JB
29432007-02-07 Joel Brobecker <brobecker@adacore.com>
2944
2945 * NEWS: Put all new commands since gdb-6.7 together.
2946
2ba95b9b
JB
29472007-02-07 Joel Brobecker <brobecker@adacore.com>
2948
2949 * ada-lang.c: #include "vec.h".
2950 (struct string_vector, new_string_vector, string_vector_append):
2951 Delete.
2952 (char_ptr): New typedef.
2953 (DEF_VEC_P (char_ptr)): New VEC type.
2954 (symbol_completion_add): Update profile to take the new VEC type
2955 instead of the old string_vector structure. Update code accordingly.
2956 (ada_make_symbol_completion_list): Use the new VEC type instead of
2957 the old string_vector structure, and update the code accordingly.
2958 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2959
4ae0885a
PM
29602008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2961
2962 * p-exp.y: Set current_type in missing places.
2963 (leftdiv_is_integer): New static variable.
2964 Typecast right operand of BINOP_DIV to long_double if both operands
2965 are integers.
2966
06b1d59c
MR
29672008-02-06 Maciej W. Rozycki <macro@mips.com>
2968
2969 * remote-mips.c (set_breakpoint): Rename to...
2970 (mips_set_breakpoint): ... this.
2971 (clear_breakpoint): Rename to...
2972 (mips_clear_breakpoint): ... this.
2973 (common_breakpoint): Rename to...
2974 (mips_common_breakpoint): ... this.
2975 (check_lsi_error): Rename to...
2976 (mips_check_lsi_error): ... this.
2977
41d27058
JB
29782007-02-05 Joel Brobecker <brobecker@adacore.com>
2979
2980 * language.h (struct language_defn): Add new field
2981 la_make_symbol_completion_list.
2982 * symtab.c (default_make_symbol_completion_list): Renames
2983 make_symbol_completion_list.
2984 (make_symbol_completion_list): New function.
2985 * symtab.h (default_make_symbol_completion_list): Add declaration.
2986 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2987 (auto_language, local_language): Likewise.
2988 * objc-lang.c (objc_language_defn): Likewise.
2989 * scm-lang.c (scm_language_defn): Likewise.
2990 * m2-lang.c (m2_language_defn): Likewise.
2991 * f-lang.c (f_language_defn): Likewise.
2992 * jv-lang.c (java_language_defn): Likewise.
2993 * p-lang.c (pascal_language_defn): Likewise.
2994 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2995 (minimal_language_defn): Likewise.
2996 * ada-lang.c (struct string_vector): New structure.
2997 (new_string_vector, string_vector_append, ada_unqualified_name)
2998 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2999 (ada_make_symbol_completion_list): New functions.
3000 (ada_language_defn): Set la_make_symbol_completion_list.
3001 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
3002 this function is static.
3003
ee3a2f01
KB
30042008-02-05 Kevin Buettner <kevinb@redhat.com>
3005
3006 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
3007 to account for call site optimizations.
3008
d844e34b
JB
30092008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
3010
3011 * tracepoint.c (read_actions): Handle end-of-text indicator
3012 in action list properly. (Committed by Jim Blandy)
3013
02e4669d
JB
30142008-02-05 Jim Blandy <jimb@red-bean.com>
3015
3016 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
3017 pseudoregister, not an internal error.
85ecb32b 3018 Reported by: Andrzej Zaborowski
02e4669d 3019
c39c8256
VP
30202008-02-04 Vladimir Prus <vladimir@codesourcery.com>
3021
3022 * varobj.c (c_value_of_variable): Use xstrdup.
3023
ae7d22a6
VP
30242008-02-04 Vladimir Prus <vladimir@codesourcery.com>
3025
3026 Update stored rendition of varobj value when format changes.
3027 * varobj.c (varobj_set_display_format): Recomputed
3028 print_value.
3029 (c_value_of_variable): Return print_value.
3030
81fe8080
DE
30312008-02-03 Doug Evans <dje@google.com>
3032
301f0ecf
DE
3033 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
3034 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
3035 * valops.c (value_one): New function.
3036 * value.h (value_one): Declare.
3037
3038 Fix argument promotion for binary arithmetic ops for C.
3039 * valarith.c (unop_result_type): New fn.
3040 (binop_result_type): New fn.
3041 (value_binop): Move result type computation to binop_result_type.
3042 (value_pos, value_neg, value_complement): Move result type
3043 computation to unop_result_type.
3044
81fe8080
DE
3045 PR 2384
3046 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3047 Return basetype, fieldno if found. All callers updated.
3048 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
3049 objfile.
3050 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3051 * symfile.h (fill_in_vptr_fieldno): Delete.
3052
41808ebe
DE
30532008-02-02 Doug Evans <dje@google.com>
3054
f8597ac3
DE
3055 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
3056
41808ebe
DE
3057 * typeprint.c (*): Whitespace cleanup.
3058
f964a756
MK
30592008-02-02 Mark Kettenis <kettenis@gnu.org>
3060 Luis Machado <luisgpm@br.ibm.com>
3061 Thiago Jung Bauermann <bauerman@br.ibm.com>
3062
3063 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
3064 don't fit into registerson the stack the way GCC does.
3065
b06ead72
JB
30662008-02-01 Joel Brobecker <brobecker@adacore.com>
3067
3068 * symtab.c (symbol_set_names): Do not add an entry in the demangling
3069 hash table for Ada symbols. Just store the linkage name as is,
3070 and leave the demangled_name as NULL.
3071
2cfa0c8d
JB
30722007-02-01 Joel Brobecker <brobecker@adacore.com>
3073
3074 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
3075 in the global scope.
3076 (new_symbol): Likewise.
3077
98deb0da
VP
30782008-02-01 Vladimir Prus <vladimir@codesourcery.com>
3079
3080 * breakpoint.c (break_command_1): Return void.
3081 (break_command_really): Return void. Rethrow
3082 exceptions instead of returning.
3083 (gdb_breakpoint): Remove the error_message parameter.
3084 Return void. Rename to set_breakpoint.
3085 * gdb.h (gdb_breakpoint): Rename and move to...
3086 * breakpoint.h (set_breakpoint): ...here.
3087 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
3088 event hooks even if exception is thrown. Adjust to
3089 gdb_breakpoint interface changes.
3090
3091
ce0451ad
TJB
30922008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3093
3094 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
3095 float in both first and second word in the doubleword, to support
3096 old and new ABIs.
3097
723a2275
VP
30982008-02-01 Vladimir Prus <vladimir@codesourcery.com>
3099
3100 Properly rethrow exception. This fixes errors
3101 about non-existent functions for -break-insert.
3102 * breakpoint.c (break_command_really): Use throw_exception
3103 for rethrowing. If rethrowing, don't print the exception.
3104
d64a946d
TJB
31052008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3106
3107 * NEWS: Mention Decimal Floating Point support.
3108
02b156f5
JB
31092008-01-31 Joel Brobecker <brobecker@adacore.com>
3110
3111 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
3112 value type to builtin_type_void_func_ptr.
3113
a16b8bcd
UW
31142008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
3115
3116 * s390-tdep.c (is_float_singleton, is_float_like,
3117 alignment_of, s390_return_value): Make checks for
3118 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
3119
f949c649
TJB
31202008-01-31 Luis Machado <luisgpm@br.ibm.com>
3121 Thiago Jung Bauermann <bauerman@br.ibm.com>
3122
3123 * infcmd.c (default_print_registers_info): Also print hex
3124 raw contents for TYPE_CODE_DECFLOAT registers.
3125 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
3126 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
3127 (rs6000_register_name): Add support for DFP pseudo-registers.
3128 (rs6000_pseudo_register_type): Likewise.
3129 rs6000_pseudo_register_reggroup_p): Likewise.
3130 (ppc_pseudo_register_read): New function.
3131 (ppc_pseudo_register_write): Likewise.
3132 (rs6000_pseudo_register_read): Likewise.
3133 (rs6000_pseudo_register_write): Likewise.
3134 (e500_pseudo_register_read): Move checks to
3135 rs6000_pseudo_register_read.
3136 (e500_pseudo_register_write): Move checks to
3137 rs6000_pseudo_register_write.
3138 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
3139 rs6000_pseudo_register_read and rs6000_pseudo_register_write
3140 in gdbarch if SPE or DFP is available. Adjust gdbarch's
3141 num_pseudo_regs to account for DFP pseudo regs.
3142
5a9e69ba
TJB
31432008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3144
3145 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
3146 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
3147 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
3148 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
3149 e500_pseudo_register_read, e500_pseudo_register_write): Use
3150 IS_SPE_PSEUDOREG macro.
3151 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
3152 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
3153 Remove initialization of tdep->ppc_ev31_regnum.
3154
4e885b20
JB
31552008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3156
3157 * printcmd.c (print_formatted): Handle references as for unformatted
3158 prints.
3159
80f064a2
JB
31602008-01-30 Joel Brobecker <brobecker@adacore.com>
3161
3162 * eval.c (evaluate_subexp_standard): Add handling of user
3163 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
3164
9b3442ee
PM
31652008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
3166
3167 * eval.c (evaluate_subexp_standard): Support
3168 BINOP_INTDIV opcode.
3169
d118ef87
PH
31702008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
3171
3172 * valarith.c (value_binop): Add floating-point BINOP_MIN and
3173 BINOP_MAX cases.
3174 For BINOP_EXP, use length and signedness of left operand only for
3175 result, as for shifts.
3176 For integral operands to BINOP_EXP, use new integer_pow and
3177 uinteger_pow functions so as to get full range of results.
3178 (integer_pow): New function.
3179 (uinteger_pow): New function.
3180
d56d46f5
VP
31812008-01-30 Vladimir Prus <vladimir@codesourcery.com>
3182
3183 Use vector for varobj_list_children interface.
3184 * gdb/varobj.c (varobj_list_children): Return vector
3185 of varobjs.
3186 * gdb/varobj.h (varobj_list_children): Adjust
3187 prototype.
3188 (varobj_p): Declare. Declare vector thereof.
3189 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
3190 for varobj_list_children change.
3191 * Makefile.in (varobj_h): Update dependencies.
3192
1300a2f4
TJB
31932008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3194
3195 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
3196 TYPE_CODE_DECFLOAT arguments.
3197 (ppc64_sysv_abi_push_dummy_call) Likewise.
3198 (get_decimal_float_return_value): New function.
3199 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
3200 values by calling get_decimal_float_return_value.
3201 (ppc64_sysv_abi_return_value): Likewise.
3202
95ef687d
NR
32032008-01-30 Nick Roberts <nickrob@snap.net.nz>
3204
3205 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
3206 for preprocessor macro information. Formatting changes.
3207
2d717e4f
DJ
32082008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3209
3210 * remote.c (struct remote_state): Add cached_wait_status.
3211 (remote_exec_file): New variable.
3212 (PACKET_vAttach, PACKET_vRun): New constants.
3213 (extended_remote_restart): Do not query for status.
3214 (struct start_remote_args): New.
3215 (remote_start_remote): Take it as a second argument. Check
3216 whether the target is running. Issue an error for non-running
3217 non-extended targets. Cache the wait status. Set inferior_ptid
3218 here.
3219 (remote_open_1): Prompt to disconnect non-running targets. Make
3220 sure the target is marked running. Do not set inferior_ptid here.
3221 Update call to remote_start_remote. Do not call remote_check_symbols
3222 if the target is not running.
3223 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
3224 argument. Handle a non-running target.
3225 (remote_detach): Use it.
3226 (extended_remote_detach): New.
3227 (remote_disconnect): Fix typo. Use remoute_mourn_1.
3228 (extended_remote_attach_1, extended_remote_attach)
3229 (extended_async_remote_attach): New.
3230 (remote_vcont_resume): Remove unused variable.
3231 (remote_wait, remote_async_wait): Use any cached wait status.
3232 (putpkt_binary, getpkt): Clear any cached wait status.
3233 (extended_remoute_mourn_1): New.
3234 (extended_remote_mourn): Use it.
3235 (extended_async_remote_mourn, extended_remote_run): New.
3236 (extended_remote_create_inferior_1): New.
3237 (extended_remote_create_inferior): Use it.
3238 (extended_remote_async_create_inferior): Likewise.
3239 (remote_xfer_partial): Skip for non-executing targets.
3240 (init_extended_remote_ops): Set to_detach and to_attach.
3241 (init_extended_async_remote_ops): Likewise. Use
3242 extended_async_remote_mourn.
3243 (_initialize_remote): Register vAttach, vRun, and
3244 set remote exec-file.
3245 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
3246
e85a822c
DJ
32472008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3248
3249 * Makefile.in (symfile.o): Update.
3250 * NEWS: Mention exec tracing support.
3251 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
3252 exec events.
3253 * infcmd.c (kill_if_already_running, detach_command)
3254 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
3255 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
3256 (follow_exec): Do not check may_follow_exec. Do not mourn and push
3257 targets. Apply the sysroot path to the loaded executable. Use
3258 no_shared_libraries.
3259 * linux-nat.c (linux_child_follow_fork): Print fork following
3260 messages if verbose.
3261 (kill_wait_callback): Kill again before waiting a second time.
3262 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
3263 no_shared_libraries.
3264
9db13498
JB
32652008-01-29 Joel Brobecker <brobecker@adacore.com>
3266
3267 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
3268
b4d5ed91
JB
32692008-01-29 Joel Brobecker <brobecker@adacore.com>
3270
3271 * nto-tdep.h: Remove #include "defs.h".
3272 * nto-tdep.c: Add #include "defs.h".
3273 * Makefile.in (nto_tdep_h): Update dependencies.
3274 (nto-tdep.o): Likewise.
3275
107313f7 32762008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
3277
3278 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
3279 and use it.
3280 (proceed, start_remote): Update call to wait_for_inferior.
3281 * inferior.h (wait_for_inferior): Update declaration.
3282 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
3283 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
3284 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
3285 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
3286
3f4178d6
DJ
32872008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
3288
3289 * varobj (adjust_value_for_child_access): Added checking for
3290 returned value from gdb_value_ind.
3291 (c_describe_child): Likewise.
3292 (cplus_describe_child): Fixed a typo.
3293
5eeba8d4
JB
32942008-01-29 Jim Blandy <jimb@red-bean.com>
3295
3296 * MAINTAINERS: Update my info.
3297
a5606eee
VP
32982008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3299
3300 Use multiple locations for hardware watchpoints.
3301 This eliminates the need to traverse value chain, doing
3302 various checks, in three different places.
3303
3304 * breakpoint.h (struct bp_location): New fields
3305 lengths and watchpoint_type.
3306 (struct breakpoint): Remove the val_chain field.
3307 * breakpoint.c (is_hardware_watchpoint): New.
3308 (free_valchain): Remove.
3309 (update_watchpoint): New.
3310 (insert_bp_location): For hardware watchpoint, just
3311 directly insert it.
3312 (insert_breakpoints): Call update_watchpoint_locations
3313 on all watchpoints. If we have failed to insert
3314 any location of a hardware watchpoint, remove all inserted
3315 locations.
3316 (remove_breakpoint): For hardware watchpoints, directly
3317 remove location.
3318 (watchpoints_triggered): Iterate over locations.
3319 (bpstat_stop_status): Use only first location of
3320 a resource watchpoint.
3321 (delete_breakpoint): Don't call free_valchain.
3322 (print_one_breakpoint): Don't print all
3323 locations for watchpoints.
3324 (breakpoint_re_set_one): Use update_watchpoint for
3325 watchpoints.
3326
0b3de036
VP
33272008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3328
3329 Don't reset watchpoint block on solib load.
3330
3331 * breakpoint.c (insert_bp_location): For watchpoints,
3332 recompute condition.
3333 (breakpoint_re_set_one): Instead of recomputing value
3334 and condition for watchpoints, just reset value and
3335 let insert_breakpoints/insert_bp_location recompute it.
3336 Don't do anything about disabled watchpoint.
3337
c3940723
PM
33382008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
3339
3340 * valarith.c (value_binop): Handle unsigned integer
3341 division by zero.
3342
83845630
KB
33432008-01-28 Kevin Buettner <kevinb@redhat.com>
3344
3345 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
3346 instruction pattern that appears frequently in position
3347 independent code. Fix bug in code which looks for "fmov" and
3348 backtracks if no "fmov" is found.
3349
9ce5d3bb
DE
33502008-01-28 Doug Evans <dje@google.com>
3351
3352 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
3353 Reformat comments to 80 columns.
3354 Move local var def closer to only use.
9ce5d3bb 3355
c78d192c
DJ
33562008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3357
3358 * fork-child.c (SHELL_FILE): Remove #ifndef.
3359 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
3360
e11481da
PM
33612008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
3362
3363 * i386-tdep.c (i386_skip_noop): New function.
3364 (i386_analyze_prologue): Call i386_skip_noop function.
3365
244e85c8
MS
33662008-01-24 Michael Snyder <msnyder@specifix.com>
3367
3368 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
3369 * win32-nat.c (win32_xfer_partial): Ditto.
3370 * target.c (default_xfer_partial): Minor whitespace adjustment.
3371
dd6be234
PA
33722008-01-24 Pedro Alves <pedro@codesourcery.com>
3373
3374 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3375 strip bit 1 even if pc doesn't point to thumb code.
3376
9fa2223d
DJ
33772008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
3378
3379 * remote.c (remote_wait): Handle SIGINT between packets.
3380 (remote_async_wait): Likewise.
3381
93815fbf
VP
33822008-01-23 Vladimir Prus <vladimir@codesourcery.com>
3383 Chris Demetriou <cgd@google.com>
3384
3385 * thread.c (add_thread_silent): Renamed
3386 from add_thread.
3387 (print_thread_events): New variable definition.
3388 (show_print_thread_events): New function.
3389 (_initialize_thread): Add "set print thread-events" and
3390 "show print thread-events" commands.
3391 (add_thread): Announce new thread.
3392 * gdbthread.h (add_thread_silent): Declare.
3393 (print_thread_events): New variable declaration.
3394 * inf-ttrace.c (inf_ttrace_wait): Don't
3395 inform about new thread, as add_thread is always
3396 called too, and will take care of that.
3397 * infrun.c (handle_inferior_event): Likewise.
3398 * procfs.c (procfs_wait): Likewise.
3399 * remote.c (remote_currthread): Likewise.
3400 * sol-thread.c (sol_thread_wait): Likewise.
3401 * win32-nat.c (get_win32_debug_event): Likewise.
3402 * linux-thread-db.c (attach_thread): Likewise.
3403 Remove the verbose parameter.
3404 (check_event): Make detach_thread be verbose
3405 only if print_thread_events is set.
3406 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3407 about new thread. This is called only from
3408 linux-thread-db.c:attach_thread, which will take care.
3409 Remove the verbose parameter.
3410 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3411
b4d7c9a6
NR
34122008-01-23 Nick Roberts <nickrob@snap.net.nz>
3413
3414 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3415
60c46647
VP
34162008-01-22 Vladimir Prus <vladimir@codesourcery.com>
3417
3418 * breakpoint.c (break_command_really): New parameter
3419 ignore_count.
3420 (break_command_1): Pass 0 as
3421 ignore_count to break_command_really.
3422 (gdb_breakpoint): Pass ignore_count to
3423 break_command_really.
3424
e84605cd
KB
34252008-01-21 Kevin Buettner <kevinb@redhat.com>
3426
3427 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3428 sigcontext struct via pointer.
3429 (struct sigframe comment): Update to show new field `psc'.
3430
9d9cd7ac
VP
34312008-01-21 Vladimir Prus <vladimir@codesourcery.com>
3432
3433 * infrun.c (handle_inferior_event): If
3434 we failed to remove breakpoints, error,
3435 don't try to increment PC by hand.
3436
af5ca30d
NH
34372008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
3438
3439 Add NetBSD/hppa target and host support.
3440
3441 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3442 (hppabsd_gregset): Move to ...
3443 (hppabsd_regset_from_core_section): Rename
3444 hppaobsd_regset_from_core_section and move to ...
3445 (hppabsd_find_global_pointer): Update comment.
3446 (hppabsd_init_abi): Make global. Do not register
3447 hppabsd_regset_from_core_section.
3448 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3449 move to ...
3450 (_initialize_hppabsd_tdep): Move to ...
3451 * hppaobsd-tdep.c: ... here. New file.
3452 * hppnbsd-tdep.c: New file.
3453 * hppnbsd-nat.c: New file.
3454 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3455 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3456 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3457 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3458 * configure.host (hppa*-*-netbsd*): New entry.
3459 * configure.tgt (hppa*-*-netbsd*): New entry.
3460 (hppa*-*-openbsd*): Update.
3461 * NEWS (New native configuration): Mention NetBSD/hppa.
3462 (New targets): Mention NetBSD/hppa.
3463
32c9a795
MD
34642008-01-18 Markus Deuling <deuling@de.ibm.com>
3465
3466 * gdbarch.sh (function_list): Add new property bits_big_endian to
3467 gdbarch structure.
3468 * gdbarch.{c,h}: Regenerate.
3469
3470 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3471 gdbarch_bits_big_endian (comment).
3472 (unpack_field_as_long, modify_field): Likewise.
3473 * value.h: Likewise (comment).
3474 * valops.c (value_slice): Likewise.
3475 * valarith.c (value_subscript, value_bit_index): Likewise.
3476 * gdbtypes.h (field): Likewise (comment).
3477 * eval.c (evaluate_subexp_standard): Likewise.
3478 * dwarf2read.c (dwarf2_add_field): Likewise.
3479 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3480 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3481
3482 * defs.h (BITS_BIG_ENDIAN): Remove.
3483
1e5e79d0
MD
34842008-01-18 Markus Deuling <deuling@de.ibm.com>
3485
3486 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3487 function calls.
3488 * m2-exp.y (yylex): Likewise.
3489 * objc-exp.y (yylex): Likewise.
3490
3491 * defs.h (DEPRECATED_STREQN): Remove.
3492
fabda5a7
L
34932008-01-17 H.J. Lu <hjl.tools@gmail.com>
3494
3495 * MAINTAINERS: Update my email address.
3496
92726479
JB
34972008-01-17 Jim Blandy <jimb@codesourcery.com>
3498
3499 * README: Mention gdbserver/README.
3500
ef80d18e
PM
35012008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3502
3503 * valarith.c (value_binop): Handle BINOP_INTDIV
3504 for unsigned and signed integers.
3505
1de90795
UW
35062008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3507
3508 * s390-tdep.c (s390_gdbarch_init): Set default long double
3509 type to 128-bit IEEE quad.
3510
c70bd6f3
JB
35112008-01-17 Joel Brobecker <brobecker@adacore.com>
3512
3513 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3514
ba759613
MK
35152008-01-16 Mark Kettenis <kettenis@gnu.org>
3516
77d49ac6
MK
3517 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3518
ba759613
MK
3519 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3520 * value.c: All callers changed.
3521
7ecb6532
MD
35222008-01-16 Markus Deuling <deuling@de.ibm.com>
3523
3524 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3525 DEPRECATED_STREQ by its expression.
3526 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3527 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3528 (scan_xcoff_symtab): Likewise.
3529 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3530 * f-lang.c (find_common_for_function): Likewise.
3531 * objc-exp.y (parse_number): Likewise.
3532
3533 * defs.h (DEPRECATED_STREQ): Remove.
3534
d15cf01c
MD
35352008-01-16 Markus Deuling <deuling@de.ibm.com>
3536
3537 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3538 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3539 get_frame_arch to get at the current_architecture. Update AM33_MODE
3540 call.
3541 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3542 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3543 architecture.
3544 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3545
f8028488
MD
35462008-01-16 Markus Deuling <deuling@de.ibm.com>
3547
3548 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3549 parameter.
3550 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3551
3552 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3553 current_gdbarch by gdbarch. Update caller.
3554
3555 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3556 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3557 the current architecture. Update calls of
3558 amd64_native_gregset_supplies_p.
3559 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3560 (amd64bsd_store_inferior_registers): Likewise.
3561
e101270f
MD
35622008-01-16 Markus Deuling <deuling@de.ibm.com>
3563
3564 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3565 Replace current_gdbarch by gdbarch. Update caller.
3566
063e58ba
MD
35672008-01-16 Markus Deuling <deuling@de.ibm.com>
3568
3569 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3570 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3571 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3572 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3573 (stabsect_build_psymtabs): Fix indentation.
3574
662fb31b
MS
35752008-01-15 Michael Snyder <msnyder@specifix.com>
3576
3577 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3578
c1766e7d
PM
35792008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3580
3581 * win32-nat.c (win32_create_inferior): Restore code calling
3582 CloseHandle on ProcessInformation structure.
3583
5ed10e6e
NH
35842008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3585
3586 * configure.ac: Check for void * as 3 argument of ptrace.
3587 * configure: regenerate.
3588
be8626e0
MD
35892008-01-11 Markus Deuling <deuling@de.ibm.com>
3590
3591 * alpha-tdep.c (alpha_heuristic_proc_start)
3592 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3593 current_gdbarch by gdbarch.
3594
3595 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3596 current architecture by frame_info. Update alpha_heuristic_proc_start
3597 call.
3598
3599 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3600 get_frame_arch to get at the current architecture by frame_info. Update
3601 alpha_sigtramp_register_address call.
3602
3603 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3604 current_gdbarch by gdbarch. Update caller.
3605 (convert_to_extended, convert_from_extended): Add endianess parameter
3606 for comparison. Update caller.
3607 (arm_extract_return_value, arm_store_return_value): Use
3608 get_regcache_arch to get at the current architecture.
3609
3610 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3611 current_gdbarch by gdbarch. Update caller.
3612 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3613 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3614
3615 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3616 gdbarch as parameter. Update caller.
3617 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3618 current_gdbarch by gdbarch. Update caller.
3619
3620 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3621 update caller. Replace current_gdbarch by gdbarch.
3622
3623 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3624 the current architecture. Replace current_gdbarch by gdbarch.
3625 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3626 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3627 expression. Add gdbarch as parameter and replace current_gdbarch with
3628 it. Update caller.
3629 (M6811_TDEP): Remove.
3630 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3631 architecture.
3632 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3633 current_gdbarch by gdbarch. Update caller.
3634
3635 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3636 update caller.
3637 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3638 by gdbarch.
3639
3640 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3641 caller. Relace current_gdbarch by gdbarch.
3642 (altivec_register_p, spe_register_p): Likewise.
3643 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3644 parameter.
3645 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3646 altivec_register_p and spe_register_p.
3647
3648 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3649 caller. Replace current_gdbarch by gdbarch.
3650 (score_analyze_prologue): use get_frame_arch to get at the current
3651 architecture.
3652
3653 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3654 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3655 current_gdbarch by gdbarch. Update caller.
3656 (sparc_frame_cache): Use get_frame_arch to get at the current
3657 architecture.
3658 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3659 sparc_analyze_prologue.
3660
3661 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3662 parameter.
3663
ed49a04f
MD
36642008-01-11 Markus Deuling <deuling@de.ibm.com>
3665
3666 * exec.c: #include "arch-utils.h"
3667 (print_section_info): Use gdbarch_from_bfd to get at the
3668 current architecture. Replace current_gdbarch. Fix indention. Replace
3669 deprecated_print_address_numeric by paddress.
3670 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3671
3672 * valprint.c (val_print_string): Replace
3673 deprecated_print_address_numeric.
3674 * tracepoint.c (trace_mention, scope_info): Likewise.
3675 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3676 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3677 (maintenance_check_symtabs): Likewise.
3678 * symfile.c (list_overlays_command): Likewise.
3679 * stack.c (frame_info, print_block_frame_labels): Likewise.
3680 * printcmd.c (print_address, print_address_demangle)
3681 (address_info): Likewise.
3682 * corefile.c (memory_error): Likewise.
3683 * infcmd.c (jump_command): Likewise.
3684 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3685 (mention, delete_breakpoint): Likewise.
3686 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3687 * dwarf2read.c (dump_die): Likewise.
3688 * ada-valprint.c (ada_val_print_1): Likewise.
3689 * f-valprint.c (f_val_print): Likewise.
3690 * linux-fork.c (info_forks_command): Likewise.
3691 * m32r-com.c (m32r_load_section, m32r_load)
3692 (m32r_upload_command): Likewise.
3693
3694 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3695
6093d2eb
MD
36962008-01-11 Markus Deuling <deuling@de.ibm.com>
3697
3698 * gdbarch.sh (skip_prologue): Add gdbarch
3699 as parameter.
3700 * gdbarch.{c,h}: Regenerate.
3701
3702 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3703 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3704 * avr-tdep.c (avr_skip_prologue): Likewise.
3705 * cris-tdep.c (cris_skip_prologue): Likewise.
3706 * frv-tdep.c (frv_skip_prologue): Likewise.
3707 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3708 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3709 * i386-tdep.c (i386_skip_prologue): Likewise.
3710 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3711 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3712 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3713 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3714 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3715 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3716 * mep-tdep.c (mep_skip_prologue): Likewise.
3717 * mips-tdep.c (mips_skip_prologue): Likewise.
3718 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3719 * mt-tdep.c (mt_skip_prologue): Likewise.
3720 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3721 * score-tdep.c (score_skip_prologue): Likewise.
3722 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3723 * sh-tdep.c (sh_skip_prologue): Likewise.
3724 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3725 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3726 * spu-tdep.c (spu_skip_prologue): Likewise.
3727 * v850-tdep.c (v850_skip_prologue): Likewise.
3728 * vax-tdep.c (vax_skip_prologue): Likewise.
3729 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3730 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3731
3732 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3733 current_gdbarch by gdbarch.
3734 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3735 * s390-tdep.c (s390_skip_prologue): Likewise.
3736
72f5cf0e
DE
37372008-01-10 Doug Evans <dje@google.com>
3738
3739 * defs.h (struct continuation_arg): Fix typo in comment.
3740 * target.c (target_translate_tls_address): Fix comment spelling error.
3741
689e4e2d
TJB
37422008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3743
3744 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3745 (DOUBLEST_SCAN_FORMAT): Likewise.
3746 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3747 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3748 * c-exp.y (parse_number): Likewise.
3749 * jv-exp.y (parse_number): Likewise.
3750 * objc-exp.y (parse_number): Likewise.
3751 * p-exp.y (parse_number): Likewise.
3752
ab0d6e0d
JB
37532008-01-09 Joel Brobecker <brobecker@adacore.com>
3754
3755 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3756 (check_typedef): Likewise.
3757
0aea4bf3
LM
37582008-01-09 Luis Machado <luisgpm@br.ibm.com>
3759
3760 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3761 seen_double_big_d, treat the new H, D, and DD modifiers as length
3762 modifiers.
3763
137033e9
JB
37642008-01-08 Joel Brobecker <brobecker@adacore.com>
3765
3766 * dwarf2read.c (read_enumeration_type): Add comment.
3767
dda297ec
TJB
37682008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3769
3770 * config.in: Regenerate.
3771
a93c0eb6
JB
37722008-01-08 Joel Brobecker <brobecker@adacore.com>
3773
3774 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3775 Make non-static.
3776 (ada_convert_actuals): Delete.
3777 * ada-lang.h (ada_convert_actual): Add declaration.
3778 (ada_convert_actuals): Remove declaration.
3779 * infcall.c: #include "ada-lang.h".
3780 (value_arg_coerce): Add new parameter sp. Update function
3781 documetnation. Add handling of Ada function call parameters.
3782 * Makefile.in (infcall.o): Update dependencies.
3783
a84a8a0d
JB
37842008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3785
3786 * ada-lang.c (ensure_lval): Fix value lval kind.
3787 (convert_actual): Add handling for arguments passed by reference.
3788
d7f98cce
DE
37892008-01-08 Doug Evans <dje@google.com>
3790
3791 * dbxread.c (read_dbx_symtab): Fix indentation.
3792
4ef30785
TJB
37932008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3794
3795 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3796 (valarith.o): Depend on dfp.h.
3797 (valops.o): Likewise.
3798 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3799 (set_decnumber_context): New function.
3800 (decimal_check_errors): Likewise.
3801 (decimal_from_number): Likewise.
3802 (decimal_to_number): Likewise.
3803 (decimal_from_string): Use set_decnumber_context and
3804 decimal_check_errors.
3805 (decimal_from_integral): New function.
3806 (decimal_from_floating): Likewise.
3807 (decimal_to_double): Likewise.
3808 (promote_decimal): Likewise.
3809 (decimal_binop): Likewise.
3810 (decimal_is_zero): Likewise.
3811 (decimal_compare): Likewise.
3812 (decimal_convert): Likewise.
3813 * dfp.h (decimal_from_integral): New prototype.
3814 (decimal_from_floating): Likewise.
3815 (decimal_to_double): Likewise.
3816 (decimal_binop): Likewise.
3817 (decimal_is_zero): Likewise.
3818 (decimal_compare): Likewise.
3819 (decimal_convert): Likewise.
3820 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3821 call to value_from_decfloat.
3822 * valarith.c: Include dfp.h.
3823 (value_args_as_decimal): New function.
3824 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3825 (value_logical_not): Likewise.
3826 (value_equal): Likewise.
3827 (value_less): Likewise.
3828 (value_pos): Likewise.
3829 (value_neg): Formatting fix.
3830 * valops.c: Include dfp.h.
3831 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3832 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3833 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3834 (value_from_decfloat): Remove expect_type argument.
3835 * value.h (value_from_decfloat): Update prototype.
3836
a7c02bc8
VP
38372008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3838
3839 Ignore change in name of dynamic linker during
3840 execution on Solaris. This also unbreaks pending breakpoints.
3841
3842 * solist.h (struct target_so_ops): New field same.
3843 * solib-svr4.c (svr4_same): New.
3844 (_initialize_svr4_solib): Register svr4_same.
3845 * solib.c (update_solib_list): Use ops->same, if available.
3846
610dd7f9
CF
38472008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3848
3849 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3850 when using MS-DOS paths.
3851
7a404eba
PA
38522008-01-05 Pedro Alves <pedro@codesourcery.com>
3853
3854 * NEWS: Mention --pid and --core command line behaviour changes.
3855
a4d9b460
PA
38562008-01-05 Pedro Alves <pedro@codesourcery.com>
3857
3858 * main.c (captured_main): Remove 'count' varible and the
3859 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3860 --pid options were issued simultaneously. If an explicit pid
3861 option was passed, don't fallback to core file. Detect extra
3862 arguments better in the presence of explicit pid or core
3863 arguments.
3864
0c281816
JB
38652008-01-05 Joel Brobecker <brobecker@adacore.com>
3866
3867 * ada-lang.c (ada_which_variant_applies): Correctly compute
3868 the value of the discriminant when the variant record is packed.
3869
babe1480
JB
38702008-01-04 Joel Brobecker <brobecker@adacore.com>
3871
3872 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3873 that are used to differentiate homonyms.
3874
727e3d2e
JB
38752008-01-04 Jerome Guitton <guitton@adacore.com>
3876
3877 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3878 when the type is an anonymous pointer type.
3879 (ada_check_typedef): Avoid a seg fault when the type is null.
3880 * ada-typeprint.c (print_array_type): Add support for pointer
3881 to packed arrays.
3882
bb28a9dc
JB
38832008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3884
3885 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3886
6799def4
JB
38872008-01-04 Joel Brobecker <brobecker@adacore.com>
3888
3889 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3890 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3891
d3353bbd
JB
38922008-01-04 Joel Brobecker <brobecker@adacore.com>
3893
3894 * ada-exp.y (chop_separator): New function.
3895 (write_selectors): Rewrite to re-use chop_separator.
3896 (ada_nget_field_index, get_symbol_field_type): New functions.
3897 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3898 expressions.
3899
82cf6c60
TJB
39002008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3901
3902 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3903 of SYMBOL_VALUE when working with function symbols.
3904
b3dbf008
JB
39052008-01-03 Joel Brobecker <brobecker@adacore.com>
3906
3907 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3908 expressions. These expressions do not need to be rewriten.
3909
02eb380e
JB
39102008-01-03 Joel Brobecker <brobecker@adacore.com>
3911
3912 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3913 the given die is a declaration.
3914
abb68b3e
JB
39152008-01-03 Joel Brobecker <brobecker@adacore.com>
3916
3917 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3918 Handle properly the case when the index type is an enumerated type.
3919 Do not return the subtype of the bounds type, just return the
3920 bounds type directly - this is not needed and is more consistent
3921 with what we do for arrays when no XA parallel type exists.
3922
f192137b
JB
39232008-01-03 Joel Brobecker <brobecker@adacore.com>
3924
3925 * ada-lang.c (static_unwrap_type): Add forward declaration.
3926 (template_to_static_fixed_type): Fields of dynamic types sometimes
3927 also need to be unwrapped. Take this into account.
3928 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3929 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3930 * ada-typeprint.c (ada_print_type): Get the typename from
3931 the original type, not the base type.
3932
1ed6ede0
JB
39332008-01-03 Jerome Guitton <guitton@adacore.com>
3934
3935 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3936 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3937 Update calls to ada_to_fixed_type.
3938 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3939 for the tag.
3940 (ada_to_fixed_type): Add check_tag parameter; do not look for
3941 tag if null. When looking for a tag, use a fixed record type.
3942 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3943 * ada-valprint.c (printable_val_type, ada_value_print): Update
3944 calls to ada_to_fixed_type.
3945
542a88d0
LM
39462008-01-03 Luis Machado <luisgpm@br.ibm.com>
3947
3948 * doublest.c (convert_floatformat_to_doublest): Call
3949 floatformat_to_doublest instead of floatformat_to_double and use
3950 DOUBLEST variables.
3951 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3952 instead of floatformat_from_double and use DOUBLEST variables.
3953
dc2bbab2
NH
39542008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3955
3956 * MAINTAINERS (Write After Approval): Add self.
3957
8b60591b
JB
39582008-01-03 Joel Brobecker <brobecker@adacore.com>
3959
3960 * symfile.c (set_initial_language): Make non-static.
3961 * symfile.h (set_initial_language): Add declaration.
3962 * language.c: #include "symfile.h".
3963 (set_language): Call set_initial_language if the frame language
3964 could not be determined.
3965
ceef53c1
JB
39662008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3967
3968 * eval.c (evaluate_subexp_for_address): Provide frame address to
3969 locate_var_value only if it will be needed.
3970
ef29ce1a
JK
39712008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3972
3973 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3974
0a07e705
JB
39752008-01-02 Joel Brobecker <brobecker@adacore.com>
3976
3977 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3978 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3979 This is needed to make sure that any other treatment applied
3980 to the resulting value does not fail for spurious reason,
3981 such as trying to take the address of this value.
3982
f58b38bf
JB
39832008-01-02 Joel Brobecker <brobecker@adacore.com>
3984
3985 * ada-lang.c (ada_value_equal): Dereference reference types when
3986 comparing arrays.
3987
9b254dd1
DJ
39882008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3989
3990 Updated copyright notices for most files.
3991
33605d39
CF
39922008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3993
3994 * win32-nat.c (psapi_module_handle): Remove static.
3995 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3996 return first module found if base_address is zero. Don't initialize
3997 psapi function pointers here. Convert to cygwin paths when
3998 appropriate.
3999 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
4000 executable name. Use get_module_name when that fails or when
4001 !__CYGWIN__.
4002 (_initialize_psapi): New function. Initialize psapi stuff before it is
4003 needed or issue a warning if it is not found. Move psapi_module_handle
4004 here.
4005
29480c32
JB
40062008-01-01 Joel Brobecker <brobecker@adacore.com>
4007
4008 * ada-lang.c (ada_remove_trailing_digits): New function.
4009 (ada_remove_po_subprogram_suffix): New function.
4010 (ada_decode): Improve. Move the description of the algorithm
4011 directly inside the code, instead of in the function global
4012 description.
4013
969a1360
JB
40142008-01-01 Joel Brobecker <brobecker@adacore.com>
4015
4016 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
4017 and always print the dereferenced value.
4018
b7789565
JB
40192008-01-01 Joel Brobecker <brobecker@adacore.com>
4020
4021 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
4022 of the case where the first argument is a reference.
4023 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
4024
73fb9985
JB
40252008-01-01 Joel Brobecker <brobecker@adacore.com>
4026
4027 Implement support for Ada interface types.
4028
4029 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
4030 (ada_is_ignored_field): Ignore fields that are a dispatch table
4031 of a tagged type.
4032
636265b6
JB
40332008-01-01 Joel Brobecker <brobecker@adacore.com>
4034
4035 * top.c (print_gdb_version): Update copyright year.
4036
9d200a2e 40372008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 4038
9d200a2e
JB
4039 * ChangeLog-2007: New ChangeLog rotation.
4040 * ChangeLog: Reset for 2008.
4041 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
4042 ChangeLog-2007.
b7589f7d 4043
9d200a2e 4044For older changes see ChangeLog-2007.
c906108c
SS
4045\f
4046Local Variables:
4047mode: change-log
4048left-margin: 8
4049fill-column: 74
4050version-control: never
57da7796 4051coding: utf-8
c906108c 4052End:
This page took 1.092443 seconds and 4 git commands to generate.