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