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