]> Git Repo - binutils.git/blame - gdb/ChangeLog
gdb
[binutils.git] / gdb / ChangeLog
CommitLineData
c92817ce
TT
12010-08-18 Tom Tromey <[email protected]>
2
3 PR symtab/11919:
4 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
5 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
6 name-copying lower. Document exception behavior.
7 * completer.c (expression_completer): Catch exceptions from
8 parse_field_expression.
9
856d6f99
PA
102010-08-18 Pedro Alves <[email protected]>
11
12 PR corefile/8210
13
14 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
15 workaround on core files.
16 (try_thread_db_load_1): Don't try enabling thread event reporting
17 on core files.
18 (thread_db_load): Allow thread_db on core files.
19 (attach_thread): Don't check thread signals on core files, nor try
20 really attaching to the thread, nor enabling thread event event
21 reporting.
22 (thread_db_detach): Don't try disabing thread event reporting or
23 removing thread event breakpoints when debugging a core file.
24 (find_new_threads_callback): Don't try enabling thread event
25 reporting on core files.
26 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
27 debugging a core file.
28 (thread_db_find_new_threads): Don't update thread
29 cores (processors) when debugging a core (dump).
30
261b8d08
PA
312010-08-18 Pedro Alves <[email protected]>
32
33 PR corefile/8210
34
35 * corelow.c (add_to_thread_list): Don't use
36 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
37 (get_core_register_section): Don't use
38 gdbarch_core_reg_section_encodes_pid.
39
40 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
41 * gdbarch.h, gdbarch.c: Regenerate.
42 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
43 gdbarch_core_reg_section_encodes_pid.
44 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
45 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
46 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
47
f9b42018
YQ
482010-08-18 Yao Qi <[email protected]>
49
50 * MAINTAINERS : Add myself under Write After Approval.
51
def98928
TT
522010-08-17 Tom Tromey <[email protected]>
53
54 * NEWS: Mention template parameter support.
55
0807b50c
PA
562010-08-17 Pedro Alves <[email protected]>
57
58 PR breakpoints/11371
59
60 * breakpoint.c (decref_bp_location): Assert the reference count is
61 sane.
62
f431efe5
PA
632010-08-17 Pedro Alves <[email protected]>
64
65 PR breakpoints/11371
66
67 * breakpoint.c (breakpoint_init_inferior): Decrement the
68 location's reference count instead of deleting right away.
69 (bpstat_free): Decrement the location's reference count. Make
70 static.
71 (bpstat_copy): Increment the location's reference count.
72 (bpstat_find_breakpoint): Adjust.
73 (bpstat_num): Adjust.
74 (print_it_typical): Adjust. Use the breakpoint pointer in the
75 bpstat instead of the location's owner.
76 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
77 Adjust to record the location's owner in the bpstat.
78 (watchpoint_check): Use the breakpoint pointer in the bpstat
79 instead of the location's owner.
80 (bpstat_check_breakpoint_conditions): Don't handle
81 bp_watchpoint_scope here. Use the breakpoint pointer in the
82 bpstat instead of the location's owner.
83 (bpstat_stop_status): Defer inferior function calls to after
84 building the bpstat list. Handle bp_watchpoint_scope here. Use
85 the breakpoint pointer in the bpstat instead of the location's
86 owner.
87 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
88 the location's owner.
89 (free_bp_location): Don't walk bpstats clearing locations.
90 (incref_bp_location): New.
91 (decref_bp_location): New.
92 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
93 instead of the location's owner.
94 (update_global_location_list): Clear the location's owner, and
95 decrement the location's reference count instead of deleting it
96 right away.
97 (breakpoint_retire_moribund): Decrement the location's reference
98 count instead of deleting it right away.
99 (bpstat_remove_bp_location): Delete.
100 (bpstat_remove_breakpoint): New.
101 (bpstat_remove_bp_location_callback): Delete.
102 (bpstat_remove_breakpoint_callback): New.
103 (delete_breakpoint): Iterate over all threads' stop_bpstat's
104 clearing references to the breakpoint that is being deleted.
105
106 * breakpoint.h (struct bp_location) <refc>: New field.
107 <owner>: Update comments.
108 (bpstat_free): Delete declaration.
109 (struct bpstats): Change the type of the breakpoint_at field to
110 struct breakpoint point, from struct bp_location pointer. Add new
111 field bp_location_at.
112
14c0d4e1
TT
1132010-08-16 Tom Tromey <[email protected]>
114
115 * NEWS: Fix typo.
116
b56df873
TT
1172010-08-16 Tom Tromey <[email protected]>
118
119 * NEWS: Mention watch -location.
120
d63d0675
JK
1212010-08-16 Jan Kratochvil <[email protected]>
122
123 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
124 EXP_STRING_REPARSE to EXP_STRING.
125 (watch_command_1): Set also EXP_STRING_REPARSE.
126 (delete_breakpoint): Free also EXP_STRING_REPARSE.
127 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
128 Update comment for exp_string.
129
06a64a0b
TT
1302010-08-16 Tom Tromey <[email protected]>
131
132 * value.c (release_value): Clear 'next' pointer.
133 * breakpoint.c (watch_command_1): Add 'just_location' argument.
134 (watch_command_wrapper): Update.
135 (watch_maybe_just_location): New function.
136 (watch_command): Update.
137 (rwatch_command_wrapper): Update.
138 (rwatch_command): Update.
139 (awatch_command_wrapper): Update.
140 (awatch_command): Update.
141 (check_for_argument): New function.
142 (_initialize_breakpoint): Update help text.
143
f96b8fa0
UW
1442010-08-14 Ulrich Weigand <[email protected]>
145
146 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
147 typedef'ed function types correctly.
148
4eb54052
TT
1492010-08-13 Tom Tromey <[email protected]>
150
151 * python/python-internal.h (gdbpy_get_hook_function): Don't
152 declare.
153
44be957e
JK
1542010-08-13 Jan Kratochvil <[email protected]>
155
156 * cli-logging.c (logging_overwrite, logging_redirect): Make them
157 static.
158
76d8b686
KW
1592010-08-13 Ken Werner <[email protected]>
160
161 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
162 the format strings to be compatible with Python 2.4.
163
8dedea02
VP
1642010-08-13 Vladimir Prus <[email protected]>
165
166 Easier and more stubborn MI memory read commands.
167
168 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
169 and data-write-memory-bytes.
170 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
171 (mi_cmd_data_write_memory_bytes): New.
172 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
173 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
174 New.
175 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
176 * target.c (target_read_until_error): Remove.
177 (read_whatever_is_readable, free_memory_read_result_vector)
178 (read_memory_robust): New.
179 * target.h (target_read_until_error): Remove.
180 (struct memory_read_result, free_memory_read_result_vector)
181 (read_memory_robust): New.
182
1d9ec526
HZ
1832010-08-13 Hui Zhu <[email protected]>
184
185 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
186 (read_comp_unit): Initialize back_to.
187
98bfdba5
PA
1882010-08-12 Daniel Jacobowitz <[email protected]>
189 Pedro Alves <[email protected]>
190
191 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
192 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
193 (struct partial_die_info) <has_template_arguments>: New field.
194 <num_attrs>: Change type to unsigned char.
195 <building_fullname>: New field.
196 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
197 allocate a CU if we don't have one already. Add a cleanup for the
198 CU.
199 (partial_die_full_name): Handle template arguments not in
200 DW_AT_name.
201 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
202 (load_full_comp_unit): Only allocate a CU if we don't have one
203 already.
204 (do_ui_file_peek_last): New.
205 (dwarf2_compute_name): Handle template parameters not in
206 DW_AT_name.
207 (read_comp_unit): Read and free abbrevs if not read yet.
208 (load_partial_dies): Handle template arguments not in DW_AT_name.
209 (find_partial_die): If we have a CU, but no a partial dies yet,
210 also read in the CU.
211 (dwarf2_const_value_attr): New, abstracted out from
212 dwarf2_const_value.
213 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
214 dwarf2_const_value_attr.
215 (determine_prefix): Detect and break loops created by RCVT's debug
216 info.
217 (maybe_queue_comp_unit): Bail out early if reading partial
218 symbols.
219 (follow_die_offset): Load full CU if we have no dies.
220 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
221 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
222
ca5c20b6
PM
2232010-08-11 Tom Tromey <[email protected]>
224 Phil Muldoon <[email protected]>
225
226 * python/python.c (gdbpy_run_events): New function.
227 (gdbpy_post_event): Likewise.
228 (gdbpy_initialize_events): Likewise.
229 (_initialize_python): Call gdbpy_initialize_events.
230
7346b668
KW
2312010-08-11 Ken Werner <[email protected]>
232
233 * gdb/valarith.c (vector_binop): New function.
234 (scalar_binop): Likewise.
235 (value_binop): Call scalar_binop or vector_binop depending on the types.
236 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
237 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
238 to pointers.
239 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
240
62183e15
TT
2412010-08-11 Brad Roberts <[email protected]>
242
243 * d-lang.c (extract_identifiers): Handle multiple digits.
244
39d7b0e2
JK
2452010-08-11 Jan Kratochvil <[email protected]>
246
247 Code cleanup.
248 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
249 Rename to dummy_frame_unwind.
250 (dummy_frame_unwind): Remove.
251 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
252 * frame-unwind.c (frame_unwind_init): Use address of
253 dummy_frame_unwind and inline_frame_unwind.
254 * frame.c (create_sentinel_frame): Use address of
255 sentinel_frame_unwind.
256 * inline-frame.c (inline_frame_unwinder): Rename to
257 inline_frame_unwind.
258 (inline_frame_unwind): Remove.
259 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
260 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
261 sentinel_frame_unwind.
262 (sentinel_frame_unwind): Remove.
263 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
264 struct.
265
9f9a8002
JK
2662010-08-11 Jan Kratochvil <[email protected]>
267
268 Code cleanup.
269 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
270 and returned value. New comment from frame-unwind.h.
271 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
272 Extend the comment.
273 * frame.c (get_frame_id, frame_unwind_register_value)
274 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
275 (get_frame_type, frame_unwind_arch): Do not use the return value of
276 frame_unwind_find_by_frame.
277
cb2e07a6
PM
2782010-08-11 Phil Muldoon <[email protected]>
279 Thiago Jung Bauermann <[email protected]>
280 Tom Tromey <[email protected]>
281
282 * python/python.c (gdbpy_solib_address): New function.
283 (gdbpy_decode_line): Likewise.
284
c29c521f
TT
2852010-08-10 Tom Tromey <[email protected]>
286
287 Revert gdb-add-index addition:
288 * Makefile.in (install-only): Don't install gdb-add-index.
289 * gdb-add-index.sh: Remove.
290
0c012db1
KB
2912010-08-09 Kevin Buettner <[email protected]>
292
293 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
294 `target_has_execution' check with `to_has_memory' check.
295 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
296 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
297 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
298
db04efe6
KB
2992010-08-09 Kevin Buettner <[email protected]>
300
301 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
302 (resume_siggnal, resume_step): Move these static globals...
303 (struct sim_inferior_data): ...into this new struct.
304 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
305 New static globals.
306 (gdb_callback, callbacks_initialized): Move these globals to
307 a point earlier in the file.
308 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
309 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
310 (gdbsim_close_inferior, gdbsim_resume_inferior)
311 (gdbsim_stop_inferior): New functions.
312 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
313 New constants.
314 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
315 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
316 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
317 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
318 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
319 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
320 new local variable `sim_data' in each of these functions. Use
321 `sim_data' to reference former globals `program_loaded',
322 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
323 `resume_step'.
324 (gdbsim_open): Remove local variable `argv'. Put results of call
325 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
326 make a cleanup for it. Free it though when a sim instance cannot
327 be obtained.
328 (gdbsim_close): Free sim_argv and null it out as appropriate.
329 Close sim instances in all inferiors.
330 (gdbsim_cntrl_c): Stop all inferiors.
331 (gdbsim_wait):
332 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
333
e37fd15a
SW
3342010-08-09 Sami Wagiaalla <[email protected]>
335
336 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
337 function after symbol construction is complete.
338 Do the same for template symbol addition to template_symbols list.
339
45c58896
SW
3402010-08-09 Sami Wagiaalla <[email protected]>
341
342 * symtab.c (symbol_get_demangled_name): Remove assertion and
343 return NULL when language_specific.cplus_specific is not initialized.
344 * stabsread.c (define_symbol): Set the name before calling
345 cp_scan_for_anonymous_namespaces.
346
33e5013e
SW
3472010-08-09 Sami Wagiaalla <[email protected]>
348
349 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
350 SYMBOL_SET_LANGUAGE.
351 (symbol_init_language_specific): Renamed to symbol_set_language.
352 * symtab.c (symbol_init_language_specific): Removed redundant check
353 for language_cplus.
354 Renamed to symbol_set_language.
355 * stabsread.c (define_symbol): Updated.
356 (read_enum_type): Updated
357 * psymtab.c (add_psymbol_to_bcache): Updated.
358 * minsyms.c (install_minimal_symbols): Updated.
359 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
360 SYMBOL_LANGUAGE to set the language.
361 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
362 * mdebugread.c (new_symbol): Ditto.
363 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
364 * dwarf2read.c (new_symbol_full): Ditto.
365 * jv-lang.c (add_class_symbol): Ditto.
366
5da1313b
JK
3672010-08-07 Jan Kratochvil <[email protected]>
368
369 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
370 (make_cleanup_restore_page_info)
371 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
372 * gdbcmd.h (execute_command_to_string): New declaration.
373 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
374 (make_cleanup_restore_ui_file): Move to utils.c
375 (execute_gdb_command) <to_string>: Move ...
376 * top.c (execute_command_to_string): ... here. Call
377 set_batch_flag_and_make_cleanup_restore_page_info.
378 * utils.c (make_cleanup_restore_integer): New source file blank line.
379 (make_cleanup_restore_uinteger): New.
380 (struct restore_ui_file_closure, do_restore_ui_file)
381 (make_cleanup_restore_ui_file): Move here from python/python.c.
382 (init_page_info) <batch_flag>
383 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
384 (set_batch_flag_and_make_cleanup_restore_page_info): New.
385
c820c52a
PA
3862010-08-06 Maciej W. Rozycki <[email protected]>
387
388 * thread.c (add_thread_silent): Use null_ptid instead of
389 minus_one_ptid while getting rid of stale inferior_ptid.
390
8da614df
CV
3912010-08-06 Corinna Vinschen <[email protected]>
392
393 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
394 Throughout, call read_encoded_value with ptr_size rather than addr_size.
395 (decode_frame_entry_1): Remove redundant setting of
396 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
397 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
398 on examined frame section. Add comment to explain why.
399 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
400 comment to explain usage.
401 * gdbarch.c: Regenerate.
402 * gdbarch.h: Regenerate.
403
404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
405
e4195b40
JK
4062010-08-06 Jan Kratochvil <[email protected]>
407
408 Code cleanup.
409 * varobj.c (varobj_create): Move variables fi, old_fi and block to
410 a more inner block.
411
a3217aa0
PA
4122010-08-05 Pedro Alves <[email protected]>
413
414 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
415 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
416 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
417 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
418 linux-tdep.o to gdb_target_obs.
419
e2b4a699
MK
4202010-08-05 Marc Khouzam <[email protected]>
421
422 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
423 argument.
424
50e8a0d5
HZ
4252010-08-05 Hui Zhu <[email protected]>
426
427 * mips-linux-tdep.c(regset.h): New include.
428 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
429 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
430 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
431 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
432 mips_linux_regset_from_core_section): New functions.
433 (fetch_core_registers, regset_core_fns): Deleted.
434 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
435 Deleted regset_core_fns.
436 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
437 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
438 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
439 and fpregset64.
440
70728992
PA
4412010-08-04 Pedro Alves <[email protected]>
442
443 * s390-tdep.c: Include linux-tdep.h.
444 (s390_gdbarch_init): Call linux_init_abi.
445
a5ee0f0c
PA
4462010-08-04 Pedro Alves <[email protected]>
447
448 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
449 instead of printing "Thread" here.
450 * linux-tdep.c: Include inferior.h.
451 (linux_core_pid_to_str): New.
452 (linux_init_abi): New.
453 * linux-tdep.h (linux_init_abi): Declare.
454 * alpha-linux-tdep.c: Include linux-tdep.h.
455 (alpha_linux_init_abi): Call linux_init_abi.
456 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
457 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
458 * frv-linux-tdep.c: Include linux-tdep.h
459 (frv_linux_init_abi): Call linux_init_abi.
460 * hppa-linux-tdep.c: Include linux-tdep.h
461 (hppa_linux_init_abi): Call linux_init_abi.
462 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
463 * ia64-linux-tdep.c: Include linux-tdep.h.
464 (ia64_linux_init_abi): Call linux_init_abi.
465 * m32r-linux-tdep.c: Include linux-tdep.h.
466 (m32r_linux_init_abi): Call linux_init_abi.
467 * m68klinux-tdep.c: Include linux-tdep.h.
468 (m68k_linux_init_abi): Call linux_init_abi.
469 * microblaze-linux-tdep.c: Include linux-tdep.h.
470 (microblaze_linux_init_abi): Call linux_init_abi.
471 * mips-linux-tdep.c: Include linux-tdep.h.
472 (mips_linux_init_abi): Call linux_init_abi.
473 * mn10300-linux-tdep.c: Include linux-tdep.h.
474 (am33_linux_init_osabi): Call linux_init_abi. Rename the
475 'gdbinfo' parameter to 'info'.
476 * ppc-linux-tdep.c: Include linux-tdep.h.
477 (ppc_linux_init_abi): Call linux_init_abi.
478 * sh-linux-tdep.c: Include linux-tdep.h.
479 (sh_linux_init_abi): Call linux_init_abi.
480 * sparc-linux-tdep.c: Include linux-tdep.h.
481 (sparc32_linux_init_abi): Call linux_init_abi.
482 * sparc64-linux-tdep.c: Include linux-tdep.h.
483 (sparc64_linux_init_abi): Call linux_init_abi.
484 * xtensa-linux-tdep.c: Include linux-tdep.h.
485 (xtensa_linux_init_abi): Call linux_init_abi.
486 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
487 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
488 callback.
489
bc043ef3
DE
4902010-08-03 Doug Evans <[email protected]>
491
492 * breakpoint.c (bpdisp_text): Constify bpdisps.
493 * solib-svr4.c (solib_break_names): Constify.
494 (bkpt_names, main_name_list): Constify.
495 (match_main): Constify soname arg.
63cdd227
DE
496 (bfd_lookup_symbol): Remove unnecessary forward decl.
497 Constify symname arg.
bc043ef3
DE
498 (enable_break): Constify bkpt_namep.
499 * symtab.c (search_symbols): Constify types, types2, types3, types4.
500 (symtab_symbol_info): Constify classnames.
501
585d1eb8
PM
5022010-08-03 Phil Muldoon <[email protected]>
503
504 * NEWS: Document Python value inferior function calls.
505
2de00c64
DE
5062010-08-02 Doug Evans <[email protected]>
507
508 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
509
02d868e8
PP
5102010-07-31 Paul Pluzhnikov <[email protected]>
511
512 * linux-thread-db.c (libthread_db_debug): New variable.
513 (thread_db_find_new_threads_silently): Control verbosity with it.
514 (try_thread_db_load_1, try_thread_db_load): Likewise.
515 (find_new_threads_once): Likewise.
516 (_initialize_thread_db): Set/show it.
517
a19cae16
JK
5182010-07-31 Jan Kratochvil <[email protected]>
519
520 * common/signals.c (signals): Move the content to signals.def.
521 Include it. Remove the INDENT comments.
522
c2bbed2a
TT
5232010-07-30 Tom Tromey <[email protected]>
524
525 * Makefile.in (install-only): Install gdb-add-index.
526 * gdb-add-index.sh: New file.
527
f32b2f09
CR
5282010-07-31 Renquan Cheng <[email protected]>
529
530 * MAINTAINERS: Add myself for write after approval privileges.
531
1276c759
JK
5322010-07-30 Jan Kratochvil <[email protected]>
533
534 * symfile.c (addr_section_name): New function.
535 (addrs_section_compar): Use it.
536 (addr_info_make_relative): Use it. Move variable sect_name into a more
537 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
538
420697bb
TT
5392010-07-30 Tom Tromey <[email protected]>
540
541 * configure: Rebuild.
542 * configure.ac: Add missing case for Python 2.7.
543
d0d99561
DD
5442010-07-29 DJ Delorie <[email protected]>
545
546 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
547 conditions.
548
0b29bdde
PA
5492010-07-29 Pedro Alves <[email protected]>
550
551 * PROBLEMS: Remove mention of all problems.
552
110ed339
PA
5532010-07-28 Pedro Alves <[email protected]>
554
555 PR build/11848
556 * configure.ac: Check for wresize.
557 * configure, config.in: Regenerate.
558 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
559 with HAVE_WRESIZE.
560
326fd672
TT
5612010-07-28 Tom Tromey <[email protected]>
562
563 PR python/11060:
564 * python/py-type.c (typy_legacy_template_argument): New function,
565 extracted from typy_template_argument.
566 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
567 value when needed.
568
4ac8c4da
TT
5692010-07-28 Oleg Nesterov <[email protected]>
570
571 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
572
053315c2
TT
5732010-07-27 Tom Tromey <[email protected]>
574
575 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
576
3ce3b1ba
PA
5772010-07-28 Daniel Jacobowitz <[email protected]>
578
579 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
580 handling DW_AT_object_pointer, and workaround GCC PR 43053.
581
2bb4f988
TT
5822010-07-28 Tom Tromey <[email protected]>
583
584 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
585
74232302
JB
5862010-07-28 Joel Brobecker <[email protected]>
587
588 * remote.c (remote_download_tracepoint): Add missing gettext markup.
589 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
590
385d04dc
JB
5912010-07-28 Joel Brobecker <[email protected]>
592
593 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
594 down, just before the block that parse the breakpoint addr_string.
595
34eaf542
TT
5962010-07-28 Tom Tromey <[email protected]>
597
598 PR c++/9946:
599 * symfile.c (reread_symbols): Clear template_symbols.
600 * symtab.h (struct symbol) <is_cplus_template_function>: New
601 field.
602 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
603 (struct template_symbol): New.
604 * symtab.c (lookup_symbol_aux_local): Use
605 cp_lookup_symbol_imports_or_template.
606 * objfiles.h (struct objfile) <template_symbols>: New field.
607 * objfiles.c (relocate_one_symbol): New function.
608 (objfile_relocate1): Use it. Relocate isolated symbols.
609 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
610 template_arguments>: New fields.
611 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
612 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
613 (TYPE_TEMPLATE_ARGUMENT): Likewise.
614 (lookup_typename): Update.
615 * gdbtypes.c (lookup_typename): Constify "block" argument.
616 * dwarf2read.c: Include vec.h.
617 (symbolp): New typedef.
618 (read_func_scope): Read template arguments. Allocate a
619 template_symbol when needed.
620 (read_structure_type): Read template arguments.
621 (new_symbol_full): New function, from new_symbol. Handle
622 DW_TAG_template_type_param and DW_TAG_template_value_param.
623 (new_symbol): Rewrite as wrapper.
624 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
625 * cp-namespace.c: Include language.h.
626 (search_symbol_list): New function.
627 (cp_lookup_symbol_imports_or_template): Likewise.
628
d27b3be4
PA
6292010-07-28 Balazs Kezes <[email protected]>
630
631 * tui/tui-win.c (make_visible_with_new_height): Resize and move
632 the command window to the new size and position.
633
0036e657
PA
6342010-07-28 Balazs Kezes <[email protected]>
635
a782f43e 636 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
637 coordinates.
638
36900355
PA
6392010-07-28 Balazs Kezes <[email protected]>
640
a782f43e 641 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 642 after a detecting a resize.
a782f43e 643 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
644 call.
645
db5e03ae
PA
6462010-07-28 Pedro Alves <[email protected]>
647
648 * configure.ac: Check for resize_term.
649 * configure, config.in: Regenerate.
650
b71fff68
JB
6512010-07-27 Joel Brobecker <[email protected]>
652
653 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
654
9b1c24c8
PA
6552010-07-27 Daniel Jacobowitz <[email protected]>
656
657 * dwarf2read.c (read_string): Rename to ...
658 (read_direct_string): ... this.
659 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
660 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
661
00390b84
JK
6622010-07-27 Jan Kratochvil <[email protected]>
663
664 * linux-nat.c (linux_nat_lp_status_is_event): New function.
665 (count_events_callback, select_event_lwp_callback)
666 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
667
26ab7092
JK
6682010-07-27 Jan Kratochvil <[email protected]>
669
670 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
671 (_initialize_ia64_linux_nat): Install it.
672 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
673 (linux_nat_set_status_is_event): New.
674 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
675 cancel_breakpoints_callback, linux_nat_filter_event)
676 (linux_nat_wait_1): Use linux_nat_status_is_event.
677 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
678
283e6a52
TT
6792010-07-27 Tom Tromey <[email protected]>
680
681 * NEWS: Mention labels, .gdb_index.
682
53a71c06
CR
6832010-07-28 CHENG Renquan <[email protected]>
684
685 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 686 "start,+length" form of arguments.
53a71c06
CR
687 * NEWS: Add "Changed commands" (disassemble) section for "Changes
688 since GDB 7.1"; and merge two separated paragraphs of disassemble
689 description in "Changes in GDB 7.0".
690
c63a1f86
JK
6912010-07-27 Jan Kratochvil <[email protected]>
692
693 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
694 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
695 (fputs_maybe_filtered): Do not do filtering also on
696 ! INPUT_FROM_TERMINAL_P.
697
abebb8b0
JB
6982010-07-27 Joel Brobecker <[email protected]>
699
700 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
701 in warning message.
702
5374244e
PM
7032010-07-27 Phil Muldoon <[email protected]>
704
705 * python/py-value.c (valpy_call): New Function.
706
ac0b195c
KW
7072010-07-27 Ken Werner <[email protected]>
708
872e696d 709 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
710 types_list_elements variables.
711
09d8bd00
TT
7122010-07-26 Tom Tromey <[email protected]>
713
714 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
715 TLS with DW_OP_const4u or DW_OP_const8u.
716
9fe70b4f
TJB
7172010-07-26 Thiago Jung Bauermann <[email protected]>
718
719 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
720 VSX registers contents.
721
caac4577
JG
7222010-07-26 Jerome Guitton <[email protected]>
723
724 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
725 its adress is null. Add comment to explain why.
726 (new_symbol): Ditto.
727
857d11d0
JK
7282010-07-25 Jan Kratochvil <[email protected]>
729
730 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
731 the host signal first.
732
1fd400ff
TT
7332010-07-23 Tom Tromey <[email protected]>
734
735 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
736 type_comp_units>: New fields.
737 (dw2_get_cu): New function.
738 (create_cus_from_index): Remove unused argument.
739 (create_signatured_type_hash_from_index): New function.
740 (create_addrmap_from_index): Update.
741 (dwarf2_read_index): Handle version 2.
742 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
743 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
744 (dw2_print_stats, dw2_expand_all_symtabs)
745 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
746 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
747 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
748 (allocate_signatured_type_hash_table): New function.
749 (add_signatured_type_cu_to_list): Likewise.
750 (create_debug_types_hash_table): Use them. Set type_comp_units.
751 (read_signatured_type): Ensure section data is available.
752 (add_address_entry): Don't record empty ranges.
753 (struct signatured_type_index_data): New.
754 (write_one_signatured_type): New function.
755 (write_psymtabs_to_index): Write type CUs.
756 (save_gdb_index_command): Update comment.
757 (process_type_comp_unit): Move inititalization of
758 from_debug_types...
759 (create_debug_types_hash_table): ... here.
760
3a674486
JK
7612010-07-23 Jan Kratochvil <[email protected]>
762
763 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
764 cleanup and generating of gdb script to it.
765 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
766 and terminal size. Convert $tmpfile to a series of -ex-es.
767
54ec275a
KS
7682010-07-23 Keith Seitz <[email protected]>
769
770 * symtab.c (basic_lookup_transparent_type): Call pre-expand
771 hook for STATIC_BLOCK types, too.
772
8fd447e6
KS
7732010-07-23 Keith Seitz <[email protected]>
774
775 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
776 and vector definition.
777
25b72dde
JK
7782010-07-23 Jan Kratochvil <[email protected]>
779
780 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
781
96d19272
JK
7822010-07-22 Jan Kratochvil <[email protected]>
783
784 * dwarf2read.c: Include completer.h.
785 (save_gdb_index_command): Use matching usage command name.
786 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
787 Set filename_completer for it.
788
ca1f3406
TT
7892010-07-22 Tom Tromey <[email protected]>
790
791 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
792 type signature's per-CU data.
793
ba25b921
PA
7942010-07-22 Pedro Alves <[email protected]>
795
796 * NEWS: Mention target reported shared libraries support by
797 default.
798
23bd0f7c
PA
7992010-07-21 Pedro Alves <[email protected]>
800
801 PR symtab/11827
802
803 Revert:
804 2010-05-21 Pierre Muller <[email protected]>
805 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
806 and DW_TAG_volatile_type.
807 (new_symbol): Likewise.
808
883df6dd
SW
8092010-07-21 Sami Wagiaalla <[email protected]>
810
811 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
812 function symbols before overload resolution.
813
269b11a2
PA
8142010-07-21 Pedro Alves <[email protected]>
815
816 * breakpoint.c (bptype_string): New, abstracted out from
817 print_one_breakpoint_location.
818 (print_one_breakpoint_location): Adjust.
819 (breakpoint_1): Adjust the type column width dynamically.
820
569b05a5
JK
8212010-07-20 Jan Kratochvil <[email protected]>
822
823 * symfile.c (find_separate_debug_file_by_debuglink): Remove
824 a gdb_assert call, new comment.
825
ad34eb2f
JK
8262010-07-20 Jan Kratochvil <[email protected]>
827
828 * linux-nat.c (linux_handle_extended_wait): Handle case when
829 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
830
33355866
JK
8312010-07-20 Jan Kratochvil <[email protected]>
832
833 Code cleanup.
834 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
835 linux_nat_wait_1. Use always LP->STATUS afterwards.
836
26590820
HZ
8372010-07-20 Hui Zhu <[email protected]>
838
839 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
840 (inf_ptrace_attach): Ditto.
841
c0edd9ed
JK
8422010-07-19 Jan Kratochvil <[email protected]>
843
844 Make core files the process_stratum.
845 * corefile.c (core_target): New variable.
846 (core_file_command): Remove variable t, use core_target.
847 * corelow.c (core_ops): Make it static.
848 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
849 * defs.h (make_cleanup_unpush_target): New prototype.
850 * gdbarch.h: Regenerate.
851 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
852 * gdbcore.h (core_target): New declaration.
853 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
854 variables ops_already_pushed and back_to. Use push_target,
855 make_cleanup_unpush_target and discard_cleanups calls.
856 * record.c (record_open): Replace core_stratum by a core_bfd check.
857 * target.c (target_is_pushed): New function.
858 (find_core_target): Remove.
859 * target.h (enum strata) <core_stratum>: Remove.
860 (target_is_pushed): New declaration.
861 (find_core_target): Remove declaration.
862 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
863 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
864
f02253f1
HZ
8652010-07-19 Hui Zhu <[email protected]>
866
867 * breakpoint.c (single_step_breakpoints_inserted): New
868 function.
869 * breakpoint.h (single_step_breakpoints_inserted): Extern.
870 * infrun.c (maybe_software_singlestep): Add check code.
871 * record.c (record_resume): Add code for software single step.
872 (record_wait): Ditto.
873
78768c4a
JK
8742010-07-18 Jan Kratochvil <[email protected]>
875
876 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
877 a more inner block. Remove its unused declaration initializer.
878
431e49aa
TJB
8792010-07-16 Thiago Jung Bauermann <[email protected]>
880
881 * NEWS: Mention support for the new ptrace interface and hardware
882 accelerated watchpoint conditions on powerpc-linux.
883
bd91e7ae
OS
8842010-07-16 Ozkan Sezer <[email protected]>
885
886 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
887 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
888 and host_address_to_string() and %s for pointers.
889 (debug_to_remove_breakpoint): Likewise.
890 (debug_to_region_ok_for_hw_watchpoint): Likewise.
891 (debug_to_can_accel_watchpoint_condition): Likewise.
892 (debug_to_stopped_data_address): Likewise.
893 (debug_to_watchpoint_addr_within_range): Likewise.
894 (debug_to_insert_hw_breakpoint): Likewise.
895 (debug_to_remove_hw_breakpoint): Likewise.
896 (debug_to_insert_watchpoint): Likewise.
897 (debug_to_remove_watchpoint): Likewise.
898
29df156d
SW
8992010-07-16 Sami Wagiaalla <[email protected]>
900
901 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
902 argument.
903 (cplus_specific): New struct.
904 * symtab.c (symbol_set_demangled_name): Updated.
905 Use cplus_specific for cplus symbols.
906 (symbol_get_demangled_name): Retrive the name from the cplus_specific
907 struct for cplus symbols.
908 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
909 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
910 * symtab.c (symbol_init_cplus_specific): New function.
911
b250c185
SW
9122010-07-16 Sami Wagiaalla <[email protected]>
913
914 * symtab.h (symbol_set_demangled_name): New function.
915 (symbol_get_demangled_name): New function.
916 * symtab.c (symbol_set_demangled_name): New function.
917 (symbol_get_demangled_name): New function.
918 (symbol_init_language_specific): Use demangled_name setter and getter.
919 (symbol_set_names): Ditto.
920 (symbol_natural_name): Ditto.
921 (symbol_demangled_name): Ditto.
922 * dwarf2read.c (new_symbol): Ditto.
923
afa16725
SW
9242010-07-16 Sami Wagiaalla <[email protected]>
925
926 * symtab.h: Renamed cplus_specific to mangled_lang.
927 * symtab.c (symbol_init_language_specific): Updated.
928 (symbol_set_names): Updated.
929 (symbol_natural_name): Updated.
930 (symbol_demangled_name): Updated.
931 * ada-lang.c (ada_decode_symbol): Updated.
932 * dwarf2read.c (new_symbol): Updated.
933
3cbaedff
KW
9342010-07-14 Ken Werner <[email protected]>
935
936 * valops.c (value_assign): Do not call to value_coerce_to_target.
937 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
938
c932f1be
KW
9392010-07-14 Ken Werner <[email protected]>
940
941 * MAINTAINERS: Add myself for write after approval privileges.
942
91158a56
TT
9432010-07-13 Emmanuel Thomé <[email protected]>
944
945 * c-valprint.c (c_val_print): Add embedded_offset to address in
946 call to val_print_array_elements.
947
b3b272e1
TT
9482010-07-13 Tom Tromey <[email protected]>
949
950 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
951
bb3fa9d0
TT
9522010-07-13 Tom Tromey <[email protected]>
953
954 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
955 objfile.
956
dd786858
TT
9572010-07-13 Tom Tromey <[email protected]>
958
959 * symfile.c (set_initial_language): Update.
960 (deduce_language_from_filename): Argument type now const.
961 * symtab.h (find_main_filename): Update.
962 (deduce_language_from_filename): Update.
963 * symtab.c (find_main_filename): Make result const.
964 * dwarf2read.c (dw2_find_symbol_file): Change return type.
965 * psymtab.c (find_symbol_file_from_partial): Change return type.
966 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
967 Make result const.
968
9291a0cd
TT
9692010-07-13 Tom Tromey <[email protected]>
970
971 * breakpoint.c (save_cmdlist): No longer static.
972 * gdbcmd.h (save_cmdlist): Declare.
973 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
974 OBJF_READNOW on objfile if readnow_symbol_files.
975 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
976 (elf_sym_fns_gdb_index): New global.
977 * dwarf2read.c: Include exceptions.h.
978 (offset_type): New.
979 (struct mapped_index): New.
980 (dwarf2_per_cu_data_ptr): New typedef.
981 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
982 New fields.
983 (GDB_INDEX_SECTION): New define.
984 (struct dwarf2_per_cu_quick_data): New.
985 (struct dwarf2_per_cu_data) <objfile>: New field.
986 <psymtab>: Removed.
987 <v>: New field.
988 (byte_swap): New function.
989 (MAYBE_SWAP): New macro.
990 (INDEX_SUFFIX): New macro.
991 (dw2_do_instantiate_symtab): New function.
992 (dw2_instantiate_symtab): Likewise.
993 (create_cus_from_index): Likewise.
994 (create_addrmap_from_index): Likewise.
995 (mapped_index_string_hash): Likewise.
996 (find_slot_in_mapped_hash): Likewise.
997 (dwarf2_read_index): Likewise.
998 (dw2_setup): Likewise.
999 (dw2_require_line_header): Likewise.
1000 (dw2_require_full_path): Likewise.
1001 (dw2_find_last_source_symtab): Likewise.
1002 (dw2_forget_cached_source_info): Likewise.
1003 (dw2_lookup_symtab): Likewise.
1004 (dw2_lookup_symbol): Likewise.
1005 (dw2_do_expand_symtabs_matching): Likewise.
1006 (dw2_pre_expand_symtabs_matching): Likewise.
1007 (dw2_print_stats): Likewise.
1008 (dw2_dump): Likewise.
1009 (dw2_relocate): Likewise.
1010 (dw2_expand_symtabs_for_function): Likewise.
1011 (dw2_expand_all_symtabs): Likewise.
1012 (dw2_expand_symtabs_with_filename): Likewise.
1013 (dw2_find_symbol_file): Likewise.
1014 (dw2_map_ada_symtabs): Likewise.
1015 (dw2_expand_symtabs_matching): Likewise.
1016 (dw2_find_pc_sect_symtab): Likewise.
1017 (dw2_map_symbol_names): Likewise.
1018 (dw2_map_symbol_filenames): Likewise.
1019 (dw2_has_symbols): Likewise.
1020 (dwarf2_gdb_index_functions): New global.
1021 (dwarf2_initialize_objfile): New function.
1022 (process_psymtab_comp_unit): Update.
1023 (add_partial_subprogram): Likewise.
1024 (dwarf2_psymtab_to_symtab): Likewise.
1025 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1026 (process_full_comp_unit): Update.
1027 (find_file_and_directory): New function.
1028 (read_file_scope): Use find_file_and_directory.
1029 (dwarf2_per_cu_objfile): Update.
1030 (dwarf2_per_cu_addr_size): Update.
1031 (dwarf2_per_cu_offset_size): Update.
1032 (dwarf2_free_objfile): Free the index, if needed.
1033 (dwarf2_per_objfile_free): Unmap the index, if needed.
1034 (struct strtab_entry): New.
1035 (hash_strtab_entry): New function.
1036 (eq_strtab_entry): Likewise.
1037 (create_strtab): Likewise.
1038 (add_string): Likewise.
1039 (struct symtab_index_entry): New.
1040 (struct mapped_symtab): New.
1041 (hash_symtab_entry): New function.
1042 (eq_symtab_entry): Likewise.
1043 (delete_symtab_entry): Likewise.
1044 (create_index_table): Likewise.
1045 (create_mapped_symtab): Likewise.
1046 (cleanup_mapped_symtab): Likewise.
1047 (find_slot): Likewise.
1048 (hash_expand): Likewise.
1049 (add_index_entry): Likewise.
1050 (add_indices_to_cpool): Likewise.
1051 (write_hash_table): Likewise.
1052 (add_address_entry): Likewise.
1053 (write_psymbols): Likewise.
1054 (write_obstack): Likewise.
1055 (unlink_if_set): Likewise.
1056 (write_psymtabs_to_index): Likewise.
1057 (save_gdb_index_command): Likewise.
1058 (_initialize_dwarf2_read): Install "save gdb-index"
1059 command.
1060 (create_all_comp_units): Initialize 'objfile' field of CU.
1061 (dwarf2_locate_sections): Check for .gdb_index.
1062 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1063 * symfile.h (dwarf2_initialize_objfile): Declare.
1064
58b6ab13
TT
10652010-07-13 Tom Tromey <[email protected]>
1066
1067 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1068 (basic_lookup_transparent_type): Likewise.
1069 * symfile.h (struct quick_symbol_functions)
1070 <pre_expand_symtabs_matching>: New field.
1071 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1072 (psym_functions): Update.
1073
0f5238ed
TT
10742010-07-13 Tom Tromey <[email protected]>
1075
1076 PR breakpoints/8357:
1077 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1078 * linespec.c (decode_line_1): Update comment. Call decode_label.
1079 (decode_label): New function.
1080 (symbol_found): Handle LOC_LABEL.
1081 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1082 domain. Call add_symbol_to_list.
1083
9aa1f1e3
TT
10842010-07-13 Tom Tromey <[email protected]>
1085
1086 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1087 * dwarf2loc.c (find_location_expression): Use
1088 dwarf2_per_cu_text_offset.
1089 (dwarf2_evaluate_loc_desc): Likewise.
1090 (dwarf2_loc_desc_needs_frame): Likewise.
1091 (compile_dwarf_to_ax): Likewise.
1092 (loclist_describe_location): Likewise.
1093 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1094 (dwarf2_per_cu_objfile): Update comment.
1095
953ac07e
JK
10962010-07-12 Jan Kratochvil <[email protected]>
1097
1098 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1099 * p-lang.c (pascal_printstr): Likewise.
1100
f04e4012
TT
11012010-07-09 Tom Tromey <[email protected]>
1102
1103 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1104 'hint' if it is NULL.
1105
f4dfd9c0
HZ
11062010-07-09 Hui Zhu <[email protected]>
1107
1108 * source.c (print_source_lines_base): Add check for noprint.
1109
7e6e39e5
JB
11102010-07-08 Joel Brobecker <[email protected]>
1111
1112 * python/python-config.py: Resync with Python 2.7 version of this
1113 script.
1114
76b8507d
JB
11152010-07-08 Joel Brobecker <[email protected]>
1116
1117 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1118
797054e6
JB
11192010-07-07 Joel Brobecker <[email protected]>
1120
1121 * NEWS: Create a new section for the next release branch.
1122 Rename the section of the current branch, now that it has
1123 been cut.
1124
c80befee 11252010-07-07 Joel Brobecker <[email protected]>
1126
1127 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1128 * version.in: Bump version to 7.2.50.20100707-cvs.
1129
ac56253d
TT
11302010-07-07 Tom Tromey <[email protected]>
1131
1132 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1133 LOC_COMPUTED symbol.
1134 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1135 (dwarf2_loc_desc_needs_frame): Likewise.
1136 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1137 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1138 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1139 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1140 'offset' argument.
1141 (struct dwarf2_frame_cache) <text_offset>: New field.
1142 (dwarf2_frame_cache): Set new field.
1143 (dwarf2_frame_prev_register): Update.
1144 (dwarf2_frame_sniffer): Update.
1145 (dwarf2_frame_base_sniffer): Update.
1146 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1147
0cf6dd15
TJB
11482010-07-07 Sergio Durigan Junior <[email protected]>
1149 Thiago Jung Bauermann <[email protected]>
1150
1151 Support for hw accelerated condition watchpoints in booke powerpc.
1152
1153 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1154 and move to eval.c. Change callers.
1155 (insert_bp_location): Pass watchpoint condition in
1156 target_insert_watchpoint.
1157 (remove_breakpoint_1) Pass watchpoint condition in
1158 target_remove_watchpoint.
1159 (watchpoint_locations_match): Call
1160 target_can_accel_watchpoint_condition.
1161 * eval.c: Include wrapper.h.
1162 (fetch_subexp_value): Moved from breakpoint.c.
1163 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1164 Formatting fix.
1165 (can_use_watchpoint_cond_accel): New function.
1166 (calculate_dvc): Likewise.
1167 (num_memory_accesses): Likewise.
1168 (check_condition): Likewise.
1169 (ppc_linux_can_accel_watchpoint_condition): Likewise
1170 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1171 check_condition and calculate_dvc.
1172 (ppc_linux_remove_watchpoint): Likewise.
1173 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1174 ppc_linux_can_accel_watchpoint_condition
1175 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1176 condition.
1177 (debug_to_remove_watchpoint): Likewise.
1178 (debug_to_can_accel_watchpoint_condition): New function.
1179 (update_current_target): Set to_can_accel_watchpoint_condition.
1180 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1181 * target.h: Add opaque declaration for struct expression.
1182 (struct target_ops) <to_insert_watchpoint>,
1183 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1184 <to_can_accel_watchpoint_condition>: New member.
1185 condition. Update all callers and implementations.
1186 (target_can_accel_watchpoint_condition): New macro.
1187 * value.c (free_value_chain): New function.
1188 * value.h (fetch_subexp_value): New prototype.
1189 (free_value_chain): Likewise.
1190
2f2241f1
UW
11912010-07-07 Ulrich Weigand <[email protected]>
1192
1193 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1194 from gdbarch_core_regset_sections also for .reg if present.
1195
1196 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1197 section size for .reg.
1198 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1199 (ppc_linux_vmx_regset_sections): Likewise.
1200 (ppc_linux_fp_regset_sections): Likewise.
1201 (ppc64_linux_vsx_regset_sections): New variable.
1202 (ppc64_linux_vmx_regset_sections): Likewise.
1203 (ppc64_linux_fp_regset_sections): Likewise.
1204 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1205 for current word size.
1206
1fd7cdc2
JB
12072010-07-06 Joel Brobecker <[email protected]>
1208
1209 * server.c (myresume): Make static.
1210
11763c18
TT
12112010-07-06 Tom Tromey <[email protected]>
1212
1213 * configure, config.in: Rebuild.
1214 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1215 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1216
a6cc4789
AS
12172010-07-06 Andreas Schwab <[email protected]>
1218
1219 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1220 "clear".
1221
f9e9243a
UW
12222010-07-06 Ken Werner <[email protected]>
1223
1224 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1225 * gdbtypes.c (floatformats_ieee_half): New variable.
1226 * doublest.c (floatformat_from_length): Set format to
1227 gdbarch_half_format if length matches.
1228 * gdbarch.sh (half_bit): New architecture method.
1229 (half_format): Likewise.
1230 * gdbarch.h: Regenerate.
1231 * gdbarch.c: Likewise.
1232
4e5799b6
JK
12332010-07-05 Jan Kratochvil <[email protected]>
1234 Joel Brobecker <[email protected]>
1235
1236 Fix re-run of PIE executable, PR shlibs/11776.
1237 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1238 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1239
86e4bafc
JK
12402010-07-05 Jan Kratochvil <[email protected]>
1241 Joel Brobecker <[email protected]>
1242
1243 * auxv.c (memory_xfer_auxv): Update attach comment.
1244 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1245 svr4_relocate_main_executable.
1246 (svr4_solib_create_inferior_hook): Make the call to
1247 svr4_relocate_main_executable unconditional.
1248
3cd07d20
JK
12492010-07-05 Jan Kratochvil <[email protected]>
1250 Joel Brobecker <[email protected]>
1251
1252 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1253
0a1e94c7
JK
12542010-07-05 Jan Kratochvil <[email protected]>
1255 Joel Brobecker <[email protected]>
1256
1257 Fix attaching to PIEs prelinked on the disk after the process was
1258 started.
1259 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1260 Verify it against bfd_get_arch_size. Try to match arbitrary
1261 displacement for the phdrs comparison.
1262
5387647f
TT
12632010-07-02 Tom Tromey <[email protected]>
1264
1265 PR exp/11780:
1266 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1267 value as optimized-out.
1268
38b6c3b3
TJB
12692010-07-02 Ulrich Weigand <[email protected]>
1270 Thiago Jung Bauermann <[email protected]>
1271
1272 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1273 represent?" question in comment. Change comment to a proper sentence.
1274
a17ac5b0
TT
12752010-07-02 Ken Werner <[email protected]>
1276
1277 * c-valprint.c (c_val_print): Fix printing of character vectors.
1278
bddaafad
JK
12792010-07-02 Jan Kratochvil <[email protected]>
1280
1281 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1282 create_breakpoint prototype.
1283
d41c0fc8
PA
12842010-07-01 Pedro Alves <[email protected]>
1285
1286 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1287 usefulness suggestion of multiple breakpoints at same location.
1288
dc10affe
PA
12892010-07-01 Pedro Alves <[email protected]>
1290
1291 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1292
cabe9ab6
PA
12932010-07-01 Pedro Alves <[email protected]>
1294
1295 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1296 (loclist_tracepoint_var_ref): Handle optimized out values.
1297
cce7e648
PA
12982010-07-01 Pedro Alves <[email protected]>
1299
1300 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1301 unnecessary space in string.
1302 * filesystem.c (_initialize_filesystem): Ditto.
1303 * frame.c (_initialize_frame): Ditto.
1304 * infcmd.c (step_once): Ditto.
1305 * infrun.c (_initialize_infrun): Ditto.
1306 * linux-nat.c (linux_child_follow_fork): Ditto.
1307 * maint.c (maintenance_deprecate): Ditto.
1308 * memattr.c (_initialize_mem): Ditto.
1309 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1310 * monitor.c (monitor_open): Ditto.
1311 * procfs.c (procfs_xfer_memory): Ditto.
1312 * reverse.c (bookmarks_info): Ditto.
1313 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1314 * stack.c (_initialize_stack): Ditto.
1315 * tracepoint.c (_initialize_tracepoint): Ditto.
1316 * xtensa-tdep.c (xtensa_supply_gregset,
1317 xtensa_regset_from_core_section): Ditto.
1318
b65c7efe
TT
13192010-07-01 Tom Tromey <[email protected]>
1320
1321 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1322 check_all_valid.
1323 * value.c (value_entirely_optimized_out): Invert result. Update
1324 for new function name.
1325
0fb4aa4b
PA
13262010-07-01 Pedro Alves <[email protected]>
1327
1328 Static tracepoints support.
1329
1330 * NEWS: Mention new support for static tracepoints.
1331 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1332 qXfer:statictrace:read.
1333 (New features in the GDB remote stub, GDBserver): Mention static
1334 tracepoints support using an UST based backend.
1335 (New commands): Mention "info static-tracepoint-markers" and
1336 "strace".
1337 * breakpoint.c (is_marker_spec): New.
1338 (is_tracepoint): Handle static tracepoints.
1339 (validate_commands_for_breakpoint): Static tracepoints can't do
1340 while-stepping.
1341 (static_tracepoints_here): New.
1342 (bpstat_what): Handle static tracepoints.
1343 (print_one_breakpoint_location, allocate_bp_location, mention):
1344 Ditto.
1345 (create_breakpoint_sal): Ditto.
1346 (decode_static_tracepoint_spec): New.
1347 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1348 `type_wanted'. Adjust. Handle static tracepoint marker
1349 locations.
1350 (break_command_1): Adjust.
1351 (update_static_tracepoint): New.
1352 (update_breakpoint_locations): Handle static tracepoints.
1353 (breakpoint_re_set_one): Handle static tracepoint marker
1354 locations.
1355 (disable_command, enable_command): Handle static tracepoints.
1356 (trace_command, ftrace_command): Adjust.
1357 (strace_command): New.
1358 (create_tracepoint_from_upload): Adjust.
1359 (save_breakpoints): Handle static tracepoints.
1360 (_initialize_breakpoint): Install the "strace" command.
1361 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1362 (struct breakpoint): New fields static_trace_marker_id and
1363 static_trace_marker_id_idx.
1364 (breakpoints_here_p): Declare.
1365 (create_breakpoint): Adjust.
1366 (static_tracepoints_here): Declare.
1367 * remote.c (struct remote_state) <static_tracepoints>: New field.
1368 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1369 (remote_static_tracepoint_marker_at): New.
1370 (remote_static_tracepoint_markers_by_strid): New.
1371 (remote_static_tracepoint_feature): New.
1372 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1373 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1374 (remote_supports_static_tracepoints): New.
1375 (remote_download_tracepoint): Download static tracepoints.
1376 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1377 remote_static_tracepoint_markers_by_strid.
1378 (_initialize_remote): Install set|show remote static-tracepoints,
1379 and set|show remote read-sdata-object commands.
1380 * target.c (update_current_target): Inherit and default
1381 to_static_tracepoint_marker_at, and
1382 to_static_tracepoint_markers_by_strid.
1383 * target.h (static_tracepoint_marker): Forward declare.
1384 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1385 (static_tracepoint_marker_p): New typedef.
1386 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1387 (struct target_ops): New fields to_static_tracepoint_marker_at and
1388 to_static_tracepoint_markers_by_strid.
1389 (target_static_tracepoint_marker_at)
1390 (target_static_tracepoint_markers_by_strid): New.
1391 * tracepoint.c: Include source.h.
1392 (validate_actionline): Handle $_sdata.
1393 (struct collection_list): New field strace_data.
1394 (add_static_trace_data): New.
1395 (clear_collection_list): Clear strace_data.
1396 (stringify_collection_list): Account for a possible static trace
1397 data collection.
1398 (encode_actions_1): Encode an $_sdata collection.
1399 (parse_tracepoint_definition): Handle static tracepoints.
1400 (parse_static_tracepoint_marker_definition): New.
1401 (release_static_tracepoint_marker): New.
1402 (print_one_static_tracepoint_marker): New.
1403 (info_static_tracepoint_markers_command): New.
1404 (sdata_make_value): New.
1405 (_initialize_tracepoint): Create the $_sdata convenience variable.
1406 Add the "info static-tracepoint-markers" command.
1407 Mention $_sdata in the "collect" command's help output.
1408 * tracepoint.h (struct static_tracepoint_marker): New.
1409 (parse_static_tracepoint_marker_definition)
1410 (release_static_tracepoint_marker): Declare.
1411 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1412 * python/py-breakpoint.c (bppy_new): Adjust.
1413
aac63f0f
JB
14142010-06-30 Joel Brobecker <[email protected]>
1415
1416 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1417 including Python.h.
1418
e68994a7
DE
14192010-06-29 Doug Evans <[email protected]>
1420
3863f96c
DE
1421 PR gdb/11702
1422 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1423 DW_AT_external is present.
1424
254e6b9e
DE
1425 PR gdb/11702
1426 * NEWS: Add entry.
1427 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1428 create a symbol for the field and record the value.
1429 (new_symbol): Handle DW_TAG_member.
1430 * gdbtypes.c (field_is_static): Remove FIXME.
1431 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1432 only ignore LOC_CONST symbols that are enums.
1433
6e70227d
DE
1434 * dwarf2read.c: Remove trailing whitespace.
1435
e68994a7
DE
1436 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1437 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1438 (struct main_type, field loc): Delete dwarf_block.
1439 (FIELD_DWARF_BLOCK): Delete.
1440 (SET_FIELD_DWARF_BLOCK): Delete.
1441 (TYPE_FIELD_DWARF_BLOCK): Delete.
1442 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1443 Update.
1444
a480d2f6
HZ
14452010-06-29 Hui Zhu <[email protected]>
1446
1447 * record.c (set_record_pic_cmdlist,
1448 show_record_pic_cmdlist): New variables.
1449 (set_record_pic_command,
1450 show_record_pic_command): New functions.
1451 (record_pic_function, record_pic_line, record_pic_enum,
1452 set_record_pic_type, record_pic_hide_nofunction,
1453 record_pic_hide_nosource, record_pic_hide_same): New variables.
1454 (record_pic_fputs): New function.
1455 (function_list, node_list, edge_list): New struct.
1456 (function_list, node_list, edge_list): New variables.
1457 (record_pic_cleanups, record_pic_node,
1458 record_pic_edge, cmd_record_pic): New functions.
1459 (_initialize_record): Add new commands for record pic.
1460
a0d7a4ff
JK
14612010-06-28 Jan Kratochvil <[email protected]>
1462
1463 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1464 ALLOCATE_CPLUS_STRUCT_TYPE.
1465
595939de
PM
14662010-06-28 Phil Muldoon <[email protected]>
1467 Tom Tromey <[email protected]>
1468 Thiago Jung Bauermann <[email protected]>
1469
1470 * value.c (pack_unsigned_long): New function.
1471 (value_from_ulongest): New function.
1472 * value.h (value_from_ulongest): Declare.
1473 * python/python.c (_initialize_python): Call
1474 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1475 * python/python-internal.h: Define thread_object.
1476 (gdbpy_inferiors, gdbpy_selected_thread)
1477 (frame_info_to_frame_object, create_thread_object)
1478 (find_thread_object, find_inferior_object)
1479 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1480 (gdbpy_is_value_object, get_addr_from_python): Declare.
1481 * python/py-value.c (builtin_type_upylong): Define.
1482 (convert_value_from_python): Add logic for ulongest.
1483 (gdbpy_is_value_object): New function.
1484 * python/py-utils.c (get_addr_from_python): New function.
1485 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1486 (gdbpy_selected_frame): Use PyObject over frame_info.
1487 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1488 py-infthread.
1489 (SUBDIR_PYTHON_SRCS): Likewise.
1490 (py-inferior.o): New Rule.
1491 (py-infthread.o): New Rule.
1492 * python/py-inferior.c: New File.
1493 * python/py-infthread.c: New File.
1494
98751a41
JK
14952010-06-28 Jan Kratochvil <[email protected]>
1496
1497 * c-typeprint.c (c_type_print_base): For no fields check include also
1498 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1499 * dwarf2read.c (struct typedef_field_list)
1500 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1501 (dwarf2_add_typedef): New.
1502 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1503 Copy also FI.TYPEDEF_FIELD_LIST.
1504 * gdbtypes.h (struct typedef_field)
1505 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1506 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1507 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1508
41f62f39
JK
15092010-06-28 Jan Kratochvil <[email protected]>
1510
1511 * cp-namespace.c (cp_lookup_nested_type): New variable
1512 concatenated_name. Turn the current return condition into a reverse
1513 one. Call also lookup_static_symbol_aux on the constructed qualified
1514 name.
1515 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1516 other files into a called ...
1517 (lookup_static_symbol_aux): ... new function here.
1518 * symtab.h (lookup_static_symbol_aux): New prototype.
1519 * valops.c (value_maybe_namespace_elt): Call also
1520 lookup_static_symbol_aux if we failed otherwise.
1521
af53d231
JK
15222010-06-28 Jan Kratochvil <[email protected]>
1523
1524 Fix PR c++/11703 and PR gdb/1448.
1525 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1526 FIRST_ITER check.
1527
9655fd1a
JK
15282010-06-28 Jan Kratochvil <[email protected]>
1529
1530 Fix modification of cplus_struct_default.
1531 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1532 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1533 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1534
9279c692
JB
15352010-06-28 Joel Brobecker <[email protected]>
1536
1537 * NEWS: Add entry announcing the python directory.
1538
d3f41bb1
TT
15392010-06-28 Tom Tromey <[email protected]>
1540
1541 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1542
23e7acfb
DE
15432010-06-28 Doug Evans <[email protected]>
1544
1545 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1546 All callers updated.
1547
6036c742
JK
15482010-06-28 Jan Kratochvil <[email protected]>
1549
1550 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1551 obstack_begin after each obstack_free.
1552
9f18a3b3
DE
15532010-06-27 Doug Evans <[email protected]>
1554
1596cb5d
DE
1555 * value.c (value_static_field): Use `switch' instead of `if'.
1556 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1557
9f18a3b3
DE
1558 * valops.c (search_struct_field): Fix typo in error message.
1559
43dabe42
UW
15602010-06-26 Ulrich Weigand <[email protected]>
1561
1562 * dwarf2expr.c (execute_stack_op): Place preprocessor
1563 directives at the start of the source line.
1564
0f3bb72e
PH
15652010-06-25 Paul Hilfinger <[email protected]>
1566
6036c742
JK
1567 * defs.h (make_command_stats_cleanup): Declare.
1568 (set_display_time): Declare.
1569 (set_display_space): Declare.
1570 * event-top.c (command_handler): Use make_command_stats_cleanup.
1571 * main.c (display_time, display_space): Move definitions to utils.c.
1572 (captured_main): Use make_command_stats_cleanup to get start-up
1573 statistics.
1574 Use set_display_time and set_display_space for processing OPT_STATISTICS
1575 case.
1576 * maint.c (maintenance_time_display): Use set_display_time.
1577 (maintenance_space_display): Use set_display_space.
1578 * top.c (execute_command): Remove obsolete 'maint time' code.
1579 (command_loop): Use make_command_stats_cleanup.
1580 * utils.c (struct cmd_stats): Structure for storing initial time
1581 and space usage.
1582 (display_time, display_space): Move definitions here from utils.c.
1583 (set_display_time): New function.
1584 (set_display_space): New function.
1585 (make_command_stats_cleanup): New function.
1586 (report_command_stats): New auxiliary function for
1587 make_command_stats_cleanup.
0f3bb72e 1588
070c8028
UW
15892010-06-25 Ulrich Weigand <[email protected]>
1590
1591 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1592 hosts where CORE_ADDR is long long.
1593
bc9f0842
TT
15942010-06-25 Tom Tromey <[email protected]>
1595
1596 PR python/10808:
1597 * python/python.c (execute_gdb_command): Add keywords. Accept
1598 "to_string" argument.
1599 (struct restore_ui_file_closure): New.
1600 (restore_ui_file): New function.
1601 (make_cleanup_restore_ui_file): Likewise.
1602 (GdbMethods) <execute>: Update.
1603
c0cc4c83
UW
16042010-06-25 Ulrich Weigand <[email protected]>
1605
1606 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
1607 during inferior call stack frame setup.
1608
f1d8ee66
UW
16092010-06-25 Ken Werner <[email protected]>
1610
1611 * solib-spu.c: Include "exception.h".
1612 (ocl_program_data_key): New variable.
1613 (append_ocl_sos): New function.
1614 (ocl_enable_break): Likewise.
1615 (spu_current_sos): Call append_ocl_sos.
1616 (spu_solib_loaded): Call ocl_enable_break.
1617 (_initialize_spu_solib): Register ocl_program_data_key.
1618
19c0c0f8
UW
16192010-06-25 Ulrich Weigand <[email protected]>
1620
1621 * cp-support.c (reset_directive_searched): New function.
1622 (make_symbol_overload_list_using): Prevent recursive calls.
1623
0f6a939d
PM
16242010-06-25 Phil Muldoon <[email protected]>
1625
1626 * printcmd.c (print_variable_and_value): Print error message on
1627 caught exception.
1628
f2c7657e
UW
16292010-06-25 Ulrich Weigand <[email protected]>
1630
1631 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
1632 of stack values.
1633 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
1634 "value" member.
1635 (dwarf_expr_push): Change input type to ULONGEST.
1636 (dwarf_expr_fetch): Change return type to ULONGEST.
1637 (dwarf_expr_fetch_address): Add prototype.
1638 (dwarf2_read_address): Remove prototype.
1639 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
1640 Truncate stack values to ctx->addr_size bytes.
1641 (dwarf_expr_fetch): Change return value to ULONGEST.
1642 (dwarf_expr_fetch_address): New function.
1643 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
1644 when appropriate. Update for struct dwarf_expr_piece changes.
1645 (dwarf2_read_address): Remove.
1646 (unsigned_address_type): Remove.
1647 (signed_address_type): Remove.
1648 (execute_stack_op): Use dwarf_expr_fetch_address instead of
1649 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
1650 values. Perform operations on ULONGEST instead of on GDB values,
1651 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
1652 values and DW_OP_deref results as unsigned integers.
1653 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
1654 changes.
1655 (write_pieced_value): Likewise.
1656 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
1657 dwarf_expr_fetch when appropriate.
1658 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
1659 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
1660 instead of dwarf_expr_fetch when appropriate.
1661
b1d61bc9
PM
16622010-06-25 Pierre Muller <[email protected]>
1663
1664 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
1665
b14285f6
JB
16662010-06-24 Joel Brobecker <[email protected]>
1667
1668 * python/python.c (_initialize_python): Add new "constant"
1669 PYTHONDIR in gdb module. Insert this path at the head of
1670 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
1671 exec its __init__.py script if it exists in that directory.
1672
fd60dc69
KB
16732010-06-24 Kevin Buettner <[email protected]>
1674
1675 * rx-tdep.c (RX_ACC_REGNUM): Define.
1676 (RX_NUM_REGS): Redefine to 26.
1677 (rx_register_name): Add register "acc". Change order of several
1678 registers. Change name of "vct" register to "fintv" to match RX
1679 documentation.
1680 (rx_register_type): Add case for RX_ACC_REGNUM.
1681
18430289
TT
16822010-06-24 Tom Tromey <[email protected]>
1683
1684 * psymtab.c (lookup_partial_symbol): Mark definition as static.
1685
40618926
JK
16862010-06-24 Jan Kratochvil <[email protected]>
1687 Tom Tromey <[email protected]>
1688
1689 Fix GDB startup on readonly filesystem.
1690 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
1691
628fe4e4
JK
16922010-06-24 Jan Kratochvil <[email protected]>
1693 Pedro Alves <[email protected]>
1694
1695 Fix PR 9436.
1696 * breakpoint.c (handle_jit_event): New function.
1697 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
1698 jit, err, table and bs_class. New variables shlib_event, jit_event,
1699 this_action and bptype. Change bs_class assignments to this_action
1700 assignments. new unhandled bptype internal error. Move here
1701 shlib_event and jit_event handling from handle_inferior_event.
1702 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
1703 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
1704 BPSTAT_WHAT_CHECK_JIT.
1705 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
1706 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
1707 (handle_inferior_event): Reinitialize frame and gdbarch after
1708 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
1709 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
1710 gdbarch when frame gets reinitialized.
1711
f1421989
HZ
17122010-06-24 Hui Zhu <[email protected]>
1713
1714 * printcmd.c (ui_printf): New function.
1715 (printf_command): Call ui_printf.
1716 (_initialize_printcmd): New command "eval".
1717
d03285ec
UW
17182010-06-23 Ulrich Weigand <[email protected]>
1719
1720 * infrun.c (handle_inferior_event): Handle presence of single-step
1721 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
1722 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
1723 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
1724 * breakpoint.c (detach_single_step_breakpoints): New function.
1725 (detach_breakpoints): Call it.
1726 (cancel_single_step_breakpoints): New function.
1727 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
1728
1729 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
1730 (spu_gdbarch_init): Install it.
1731
38f6b338
JK
17322010-06-23 Jan Kratochvil <[email protected]>
1733
1734 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
1735 * configure: Regenerate.
1736
bb08c432
HZ
17372010-06-22 Hui Zhu <[email protected]>
1738
1739 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
1740 (i386_process_record): Ditto.
1741 * record.c (record_memory_query): New variable.
1742 (_initialize_record): New command "set record memory-query".
1743 * record.h (record_memory_query): New extern.
1744
b55078be
DE
17452010-06-21 Doug Evans <[email protected]>
1746
1747 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
1748 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
1749 (i386_syscall_p): Change type of lengthp to int.
1750 (i386_displaced_step_fixup): Handle kernels that run one past a
1751 syscall insn.
1752 * i386-linux-tdep.c (i386_linux_init_abi): Use
1753 i386_displaced_step_copy_insn instead of
1754 simple_displaced_step_copy_insn.
1755
75079b2b
TT
17562010-06-21 Tom Tromey <[email protected]>
1757
1758 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
1759 (dwarf_type_encoding_name): Likewise.
1760
b00fdb78
TT
17612010-06-21 Tom Tromey <[email protected]>
1762
1763 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
1764 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
1765 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
1766 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
1767 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
1768 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
1769 * dwarf2read.c (tag_type_to_type): Create a new error type on
1770 failure.
1771 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
1772 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
1773
84951ab5
MS
17742010-06-21 Michael Snyder <[email protected]>
1775
1776 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
1777 not add_abbrev_prefix_cmd, for "enable breakpoints".
1778
d4a087c7
UW
17792010-06-21 Ulrich Weigand <[email protected]>
1780
1781 * dwarf2loc.c (find_location_expression): Add relocation offset
1782 to base-address-selection entry base addresses. Read addresses
1783 (and offsets) as signed/unsigned integers, depending on the
1784 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
1785 (loclist_describe_location): Likewise.
1786 (disassemble_dwarf_expression): Read DW_OP_addr operand as
1787 unsigned integer. Do not call dwarf2_read_address.
1788 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
1789
13def385
UW
17902010-06-19 Ulrich Weigand <[email protected]>
1791
1792 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
1793 value instead of hard-coded SPU_LS_SIZE.
1794 (spu_software_single_step): Likewise.
1795 * spu-tdep.h (SPU_LS_SIZE): Remove.
1796
d2ed6730
UW
17972010-06-19 Ulrich Weigand <[email protected]>
1798
1799 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
1800 limit on local store memory accesses.
1801 * spu-linux-nat.c (spu_xfer_partial): Likewise.
1802 * spu-tdep.c (spu_lslr): Remove.
1803 (spu_pointer_to_address): Do not truncate addresses.
1804 (spu_integer_to_address): Likewise.
1805 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
1806 * spu-tdep.h: Add comments.
1807 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
1808 (SPU_OVERLAY_LMA): Define.
1809
6aed2dbc
SS
18102010-06-18 Stan Shebs <[email protected]>
1811
a61408f8
SS
1812 * osdata.c (get_osdata): Warn separately if target does not report
1813 type list.
1814 (info_osdata_command): Allow empty type, report error if target
1815 does not return available types of OS data.
1816 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
1817 types if no annex supplied.
1818
6aed2dbc
SS
1819 * thread.c (thread_id_make_value): Make a value representing the
1820 current thread.
1821 (_initialize_thread): Create $_thread.
1822
ec61707d
JB
18232010-06-17 Joel Brobecker <[email protected]>
1824
1825 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
1826 last local variable declaration. No real code change.
1827
60606b2c
TT
18282010-06-17 Tom Tromey <[email protected]>
1829
1830 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
1831 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
1832 temporary obstack.
1833
65d79d4b
SDJ
18342010-06-16 Sergio Durigan Junior <[email protected]>
1835 Jan Kratochvil <[email protected]>
1836
1837 * breakpoint.c: Include parser-defs.h.
1838 (watchpoint_exp_is_const): New function.
1839 (watch_command_1): Call watchpoint_exp_is_const to check
1840 if the expression is constant.
1841
0407b3f1
AS
18422010-06-15 Andreas Schwab <[email protected]>
1843
1844 * configure.ac: Check for RDYNAMIC also for cross builds.
1845 * configure: Regenerate.
1846
98d64339
PA
18472010-06-15 Pedro Alves <[email protected]>
1848
1849 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1850 (SFILES): Remove solib-null.c, add solib-target.c.
1851 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
1852 (ALLDEPFILES): Remove solib-target.c.
1853 * solib-target.c (_initialize_solib_target): Set
1854 current_target_so_ops to solib_target_so_ops if not already set.
1855 * solib-null.c: Delete.
1856
6a271cae
PA
18572010-06-14 Pedro Alves <[email protected]>
1858
1859 * NEWS: Mention GDBserver's JIT compilation of tracepoint
1860 bytecode.
1861
1e9beacb
UW
18622010-06-14 Ulrich Weigand <[email protected]>
1863
1864 * cp-valprint.c (cp_print_static_field): Members of
1865 dont_print_stat_array_obstack are of type "struct type *".
1866 (_initialize_cp_valprint): Likewise.
1867
21a176fb
UW
18682010-06-14 Ulrich Weigand <[email protected]>
1869
1870 * frame.c (frame_register_unwind): Do not access contents
1871 of "optimized out" unwound register value.
1872
25b524e8
JK
18732010-06-14 Jan Kratochvil <[email protected]>
1874
1875 * ada-lang.h (ada_print_type): Make varstring const.
1876 * ada-typeprint.c (print_func_type): Make name const.
1877 (ada_print_type): Make varstring const.
1878 * c-lang.h (c_print_type): Make varstring const.
1879 * c-typeprint.c (c_print_type): Likewise.
1880 * f-lang.h (f_print_type): Likewise.
1881 * f-typeprint.c (f_print_type): Likewise.
1882 * jv-lang.h (java_print_type): Likewise.
1883 * jv-typeprint.c (java_print_type): Likewise.
1884 * language.c (unk_lang_print_type): Likewise.
1885 * language.h (struct language_defn) <la_print_type>: Likewise.
1886 * m2-lang.h (m2_print_type): Likewise.
1887 * m2-typeprint.c (m2_print_type): Likewise.
1888 * p-lang.h (pascal_print_type): Likewise.
1889 * p-typeprint.c (pascal_print_type): Likewise.
1890
d914c394
SS
18912010-06-11 Stan Shebs <[email protected]>
1892
1893 Add per-operation permission flags.
1894
1895 * target.h (struct target_ops): New method to_set_permissions.
1896 (target_set_permissions): New macro.
1897 (target_insert_breakpoint): Change macro to function.
1898 (target_remove_breakpoint): Ditto.
1899 (target_stop): Ditto.
1900 (may_write_registers): Declare.
1901 (may_write_memory): Declare.
1902 (may_insert_breakpoints): Declare.
1903 (may_insert_tracepoints): Declare.
1904 (may_insert_fast_tracepoints): Declare.
1905 (may_stop): Declare.
1906 * target.c (may_write_registers, may_write_registers_1): New globals.
1907 (may_write_memory, may_write_memory_1): New globals.
1908 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
1909 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
1910 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
1911 globals.
1912 (may_stop, may_stop_1): New global.
1913 (target_xfer_partial): Test for write permission.
1914 (target_store_registers): Ditto.
1915 (target_insert_breakpoint): New function.
1916 (target_remove_breakpoint): New function.
1917 (target_stop): New function.
1918 (_initialize_targets): Add new set/show variables.
1919 (set_write_memory_permission): New function.
1920 (update_target_permissions): New function.
1921 (set_target_permissions): New function.
1922 (update_current_target): Default to_set_permissions.
1923 (_initialize_targets): Use new globals and setter function.
1924 * tracepoint.c (start_tracing): Test for permission.
1925 * inferior.h (update_observer_mode): Declare.
1926 * infrun.c (non_stop_1): Define earlier.
1927 (observer_mode, observer_mode_1): New globals.
1928 (set_observer_mode, show_observer_mode): New functions.
1929 (update_observer_mode): New function.
1930 (_initialize_infrun): Define "set observer" command.
1931 * remote.c (PACKET_QAllow): New optional packet.
1932 (remote_protocol_features): Add QAllow.
1933 (remote_set_permissions): New function.
1934 (remote_start_remote): Call it.
1935 (init_remote_ops): Add it to target vector.
1936 (_initialize_remote): Add config command for QAllow.
1937
aec5aa8b
TT
19382010-06-11 Tom Tromey <[email protected]>
1939
1940 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
1941 DW_AT_vtable_elem_location even when GCC extension is seen.
1942
0e03807e
TT
19432010-06-11 Tom Tromey <[email protected]>
1944
1945 PR gdb/9977, PR exp/11636:
1946 * value.h (value_offset): Update.
1947 (struct lval_funcs) <check_validity>: New field.
1948 <copy_closure>: Make argument const.
1949 (value_computed_closure): Update.
1950 (value_contents_for_printing): Declare.
1951 (value_bits_valid): Likewise.
1952 (val_print): Likewise.
1953 (set_value_component_location): Update.
1954 (value_entirely_optimized_out): Declare.
1955 * value.c (value_offset): Argument now const.
1956 (require_not_optimized_out): New function.
1957 (value_contents_for_printing): New function.
1958 (value_contents_all): Call require_not_optimized_out.
1959 (value_contents): Likewise.
1960 (value_bits_valid): New function.
1961 (value_computed_closure): Argument now const.
1962 (set_value_component_location): Make 'whole' argument const.
1963 (value_entirely_optimized_out): New function.
1964 (value_bitsize): Argument now 'const'.
1965 (value_bitpos): Likewise.
1966 (value_type): Likewise.
1967 * valprint.h (val_print_array_elements): Update.
1968 * valprint.c (val_print): Add 'val' argument. Use
1969 valprint_check_validity.
1970 (valprint_check_validity): New function.
1971 (value_check_printable): Use value_entirely_optimized_out.
1972 (common_val_print): Update.
1973 (value_print): Likewise.
1974 (val_print_array_elements): Add 'val' argument.
1975 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
1976 value_bits_valid. Reinit frame cache for lval_computed.
1977 * sh64-tdep.c (sh64_do_register): Update.
1978 * scm-valprint.c (scm_val_print): Add 'val' argument.
1979 * scm-lang.h (scm_val_print): Update.
1980 * python/python.h (apply_val_pretty_printer): Update.
1981 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
1982 argument. Call set_value_component_location.
1983 * printcmd.c (print_scalar_formatted): Update.
1984 * p-valprint.c (pascal_val_print): Add 'val' argument.
1985 (pascal_object_print_value_fields): Likewise.
1986 (pascal_object_print_value): Likewise.
1987 (pascal_object_print_static_field): Update.
1988 * p-lang.h (pascal_val_print): Update.
1989 (pascal_object_print_value_fields): Update.
1990 * mt-tdep.c (mt_registers_info): Update.
1991 * mi/mi-main.c (get_register): Update.
1992 (mi_cmd_data_evaluate_expression): Use common_val_print.
1993 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
1994 (m2_print_unbounded_array): Likewise.
1995 (m2_val_print): Likewise.
1996 * m2-lang.h (m2_val_print): Update.
1997 * language.h (struct language_defn) <la_val_print>: Add 'val'
1998 argument.
1999 (LA_VAL_PRINT): Likewise.
2000 * language.c (unk_lang_val_print): Add 'val' argument.
2001 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2002 (java_val_print): Likewise.
2003 * jv-lang.h (java_val_print): Add 'val' argument.
2004 * infcmd.c (default_print_registers_info): Update.
2005 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2006 (f77_print_array): Likewise.
2007 (f_val_print): Likewise.
2008 * f-lang.h (f_val_print): Add 'val' argument.
2009 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2010 value_bitpos.
2011 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2012 set_value_optimized_out.
2013 (write_pieced_value): Use value_bitsize and value_bitpos.
2014 <default>: Don't exit loop.
2015 (check_pieced_value_validity): New function.
2016 (pieced_value_funcs): Reference check_pieced_value_validity,
2017 check_pieced_value_invalid.
2018 (copy_pieced_value_closure): Update.
2019 (check_pieced_value_bits): New function.
2020 (check_pieced_value_invalid): New function.
2021 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2022 (d_val_print): Likewise.
2023 * d-lang.h (d_val_print): Update.
2024 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2025 (cp_print_value_fields_rtti): Likewise.
2026 (cp_print_value): Likewise.
2027 (cp_print_static_field): Update.
2028 * c-valprint.c (c_val_print): Add 'val' argument.
2029 (c_value_print): Update.
2030 * c-lang.h (c_val_print): Update.
2031 (cp_print_value_fields): Likewise.
2032 (cp_print_value_fields_rtti): Likewise.
2033 * ada-valprint.c (struct ada_val_print_args): Remove.
2034 (val_print_packed_array_elements): Add 'val' argument.
2035 (ada_val_print): Likewise. Rewrite.
2036 (ada_val_print_stub): Remove.
2037 (ada_val_print_array): Add 'val' argument.
2038 (ada_val_print_1): Likewise.
2039 (print_variant_part): Likewise.
2040 (ada_value_print): Update.
2041 (print_record): Add 'val' argument.
2042 (print_field_values): Likewise.
2043 * ada-lang.h (ada_val_print): Update.
2044
3cf03773
TT
20452010-06-11 Tom Tromey <[email protected]>
2046
2047 * vec.h (VEC_cleanup): New macro.
2048 (DEF_VEC_ALLOC_FUNC_I): Update.
2049 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2050 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2051 * dwarf2loc.c (struct axs_var_loc): Remove.
2052 (unimplemented): New function.
2053 (translate_register): Likewise.
2054 (access_memory): Likewise.
2055 (compile_dwarf_to_ax): Likewise.
2056 (dwarf2_tracepoint_var_loc): Remove.
2057 (dwarf2_tracepoint_var_access): Likewise.
2058 (dwarf2_tracepoint_var_ref): Likewise.
2059 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2060 (loclist_tracepoint_var_ref): Likewise.
2061 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2062 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2063 require_composition. No longer static.
2064 (execute_stack_op): Update.
2065 * ax-gdb.h (trace_kludge): Declare.
2066
2bdf28a0
JK
20672010-06-11 Jan Kratochvil <[email protected]>
2068
2069 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2070 (should_be_inserted): Return zero also on NULL OWNER.
2071 (breakpoint_program_space_exit): New OWNER comment.
2072 (insert_breakpoint_locations): Extend comment for OWNER.
2073 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2074 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2075 New OWNER comment.
2076 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2077 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2078 (bpstat_check_location): New assert on OWNER.
2079 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2080 and B initializations to the code block. New assert on them.
2081 (print_one_breakpoint_location): New OWNER comment.
2082 (watchpoint_locations_match): Assert on OWNER.
2083 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2084 initializations to the code block. New assert on OWNER.
2085 (set_breakpoint_location_function): New assert on OWNER.
2086 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2087 (bp_location_compare, update_global_location_list)
2088 (update_global_location_list): New OWNER comment.
2089
5b9a19af
UW
20902010-06-09 Ulrich Weigand <[email protected]>
2091
2092 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2093
669211f5
UW
20942010-06-09 Ulrich Weigand <[email protected]>
2095
2096 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2097 (lin_thread_get_thread_signals): Remove prototype.
2098 (GET_THREAD_SIGNALS): Remove.
2099 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2100 * linux-thread-db.c (check_thread_signals): Directly call
2101 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2102
b7a8b4ef
UW
21032010-06-09 Ulrich Weigand <[email protected]>
2104
2105 * gregset.h (GDB_FPXREGSET_T): Remove.
2106 (gdb_fpxregset_t): Likewise.
2107 (supply_fpxregset): Remove prototype.
2108 (fill_fpxregset): Likewise.
2109 * i386-linux-nat.c (supply_fpxregset): Remove.
2110 (fill_fpxregset): Likewise.
2111 (fetch_fpxregs): Inline supply_fpxregset call.
2112 (store_fpxregs): Inline fill_fpxregset call.
2113
2114 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2115 * config/i386/nm-linux.h: Remove file.
2116
82892036
MS
21172010-06-09 Michael Snyder <[email protected]>
2118
2119 * target.c (update_current_target): Fix spelling error in comment.
2120 (target_mourn_inferior): Fix spelling error in error message.
2121
5ddb52fa
PH
21222010-06-08 Paul Hilfinger <[email protected]>
2123
2124 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2125 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2126
0f2caa1b
MS
21272010-06-08 Michael Snyder <[email protected]>
2128
2129 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2130
3bebe2f2
JK
21312010-06-08 Jan Kratochvil <[email protected]>
2132
2133 * configure.ac <"${have_libpython}" != no>: New workaround of
2134 python#4434.
2135 * configure: Regenerate.
2136
eaaffdf4
HZ
21372010-06-08 Hui Zhu <[email protected]>
2138
2139 * record.c (record_wait): Move signal out of replay code.
2140
5c631832
JK
21412010-06-07 Jan Kratochvil <[email protected]>
2142
2143 Fix PR 10640.
2144 * dwarf2-frame.c (no_dwarf_call): New function.
2145 (execute_stack_op): Set CTX->DWARF_CALL.
2146 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2147 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2148 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2149 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2150 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2151 (needs_frame_dwarf_call): New function.
2152 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2153 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2154 Update the comment. Move variables die, offset and error call to ...
2155 (follow_die_ref): ... a new function.
2156 (dwarf2_fetch_die_location_block): New function.
2157 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2158
17ea53c3
JK
21592010-06-07 Jan Kratochvil <[email protected]>
2160
2161 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2162 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2163 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2164 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2165 this change.
2166 (struct needs_frame_baton): New field per_cu.
2167 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2168 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2169
245040d7
SW
21702010-06-07 Sami Wagiaalla <[email protected]>
2171
2172 * cp-support.c (make_symbol_overload_list_namespace): Only search
2173 static and global blocks.
2174 (make_symbol_overload_list_block): New function.
2175 (make_symbol_overload_list): Separate namespace search from block
2176 search.
2177 (make_symbol_overload_list_qualified): Use
2178 make_symbol_overload_list_block.
2179
4c3376c8
SW
21802010-06-07 Sami Wagiaalla <[email protected]>
2181
2182 * value.h: Created oload_search_type enum.
2183 (find_overload_match): Use oload_search_type enum.
2184 * valops.c (find_overload_match): Support combined member and
2185 non-member search.
2186 * eval.c (evaluate_subexp_standard): Calls to
2187 find_overload_match now use oload_search_type enum.
2188 (oload_method_static): Verify index is a proper value.
2189 * valarith.c (value_user_defined_cpp_op): Search for and handle
2190 both member and non-member operators.
2191 (value_user_defined_cpp_op): New function.
2192 (value_user_defined_op): New function.
2193 (value_x_unop): Use value_user_defined_op.
2194 (value_x_binop): Ditto.
2195 * cp-support.c (make_symbol_overload_list_using): Added block
2196 iteration.
2197 Add check for namespace aliases and imported declarations.
2198
ee55da67
JK
21992010-06-07 Jan Kratochvil <[email protected]>
2200
2201 * breakpoint.h (owner): Extend the comment.
2202
1a2ab13a
JK
22032010-06-07 Jan Kratochvil <[email protected]>
2204
2205 Clear stale specific bp_location from former whole breakpoint.
2206 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2207 code ...
2208 (free_bp_location): ... here. Rename there the called function to
2209 bpstat_remove_bp_location_callback.
2210 (bpstat_remove_breakpoint_callback): Rename to ...
2211 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2212 to struct bp_location. Change the called function to
2213 bpstat_remove_bp_location. Create new declaration for the function.
2214 (bpstat_remove_breakpoint): Rename to ...
2215 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2216 code for the new parameter type.
2217
16d6b4b7
NS
22182010-06-07 Nathan Sidwell <[email protected]>
2219
2220 * README: Make version-agnostic.
2221
7e314c57
JK
22222010-06-05 Jan Kratochvil <[email protected]>
2223
2224 Fix duplicate types for single DIE.
2225 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2226 set_die_type.
2227 (read_array_type): Remove type initialization. Recheck get_die_type
2228 after initial die_type. Move set_die_type before set_descriptive_type.
2229 (read_set_type): New variable domain_type. Recheck get_die_type after
2230 initial die_type. Move attr initialization later.
2231 (read_tag_pointer_type, read_tag_reference_type): New variable
2232 target_type. Recheck get_die_type after initial die_type.
2233 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2234 die_type and die_containing_type.
2235 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2236 Recheck get_die_type after initial die_type.
2237 (read_subrange_type): Recheck get_die_type after initial die_type.
2238 Move set_die_type before set_descriptive_type.
2239 (set_die_type): Extend the function comment. Call complaint if DIE has
2240 some type already set.
2241
2f296114
VP
22422010-06-05 Vladimir Prus <[email protected]>
2243
2244 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2245 for current naming of thread groups (iN, not N).
2246
554794dc
SDJ
22472010-06-04 Sergio Durigan Junior <[email protected]>
2248
2249 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2250 * parse.c (operator_length): Likewise.
2251 (operator_length_standard): Likewise.
2252 * parser-defs.h (operator_length): Likewise.
2253 (operator_length_standard): Likewise.
2254 (struct exp_descriptor <operator_length>): Likewise.
2255
967cf477
DE
22562010-06-04 Doug Evans <[email protected]>
2257
bddaacb9 2258 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
2259 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2260 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2261 * python/python.c (gdbpy_enabled_cst): Define.
2262 (_initialize_python): Initialize gdbpy_enabled_cst.
2263 * NEWS: Add entry.
2264
2dec564e
JK
22652010-06-04 Jan Kratochvil <[email protected]>
2266
2267 * breakpoint.c (update_global_location_list): Fix comment typo.
2268
44b5680a
HZ
22692010-06-04 Hui Zhu <[email protected]>
2270
2271 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2272
e7a30f46
DE
22732010-06-03 Doug Evans <[email protected]>
2274
2275 * configure.ac: Don't fail if python is unusable when
2276 configured with --with-python=auto.
2277 * configure: Regenerate.
2278
84b4420f
SW
22792010-06-03 Sami Wagiaalla <[email protected]>
2280
2281 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2282
df178451
PM
22832010-06-03 Pierre Muller <[email protected]>
2284
2285 * valprint.h (get_array_bounds): Change low and high parameter types
2286 to LONGEST *.
0407b3f1 2287 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
2288 compute bounds.
2289 (val_print_array_elements): Adapt to change above.
2290 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2291 * p-valprint.c (pascal_val_print): Likewise.
2292
fd5700c7
JK
22932010-06-02 Jan Kratochvil <[email protected]>
2294
2295 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2296 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2297 .F08.
2298
f55ee35c
JK
22992010-06-02 Jan Kratochvil <[email protected]>
2300
2301 Support DW_TAG_module as separate namespaces.
2302 * dwarf2read.c (typename_concat): New parameter physname.
2303 (read_module_type): New function and declaration.
2304 (scan_partial_symbols): Scan also DW_TAG_module children.
2305 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2306 to typename_concat backward compatible physname value 0.
2307 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2308 backward compatible physname value 0.
2309 (add_partial_module, read_module): Remove FIXME comment.
2310 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2311 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2312 DIEs under DW_TAG_module.
2313 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2314 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2315 && physname and return there instead of just setting NAME. Extend
2316 the main block for language_fortran. Pass physname parameter to the
2317 typename_concat call.
2318 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2319 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2320 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2321 missing from SYMBOL_SET_NAMES in the language_fortran case.
2322 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2323 variables.
2324 (read_type_die) <DW_TAG_module>: New.
2325 (MAX_SEP_LEN): Increase to 7.
2326 (typename_concat): New parameter physname. New variable lead. Support
2327 also language_fortran.
2328 * f-exp.y (yylex): Consider : also as a symbol name character class.
2329 * f-lang.c: Include cp-support.h.
2330 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2331 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2332 f_word_break_characters and f_make_symbol_completion_list.
2333 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2334 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2335 * symtab.c (symbol_init_language_specific): Support language_fortran.
2336 (symbol_find_demangled_name): New comment on language_fortran.
2337 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2338 for language_fortran.
2339 (lookup_symbol_aux_local): Check imports also for language_fortran.
2340 (default_make_symbol_completion_list): Rename to ...
2341 (default_make_symbol_completion_list_break_on): ... this name. New
2342 parameter break_on, use it.
2343 (default_make_symbol_completion_list): New stub.
2344 * symtab.h (default_make_symbol_completion_list_break_on): New
2345 prototype.
2346
cb91c06a
JB
23472010-06-02 Joel Brobecker <[email protected]>
2348
2349 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2350 to error.
2351
5c315b68
JK
23522010-06-02 Jan Kratochvil <[email protected]>
2353
2354 * dwarf2read.c (typename_concat): Add const to the variable sep.
2355
9eae7c52
TT
23562010-06-02 Tom Tromey <[email protected]>
2357
2358 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2359 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2360 type is const. Add 'def' argument. Add missing operators, remove
2361 unhandled ones.
2362 (decode_locdesc): Update.
2363 (dwarf2_always_disassemble): New global.
2364 (show_dwarf2_always_disassemble): New function.
2365 (_initialize_dwarf2_read): Add always-disassemble.
2366 (dwarf2_per_cu_offset_size): New function.
2367 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2368 (piece_end_p): New function.
2369 (locexpr_describe_location_piece): Replace 'size' argument with
2370 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2371 some constants. Remove errors.
2372 (disassemble_dwarf_expression): New function.
2373 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2374 Add 'offset_size' argument.
2375 (loclist_describe_location): Change output formatting.
2376 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2377
7d3fe98e
SW
23782010-06-02 Sami Wagiaalla <[email protected]>
2379
2380 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2381 anonymous type case.
2382
e77813c8
PM
23832010-06-02 Pierre Muller <[email protected]>
2384
2385 * dwarf2read.c (read_subrange_type): Handle missing base type
2386 according to Dwarf-2 specifications.
2387
7cf3118a
SDJ
23882010-06-01 Sergio Durigan Junior <[email protected]>
2389
2390 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2391 BINOP_EXCL.
2392 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2393 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2394 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2395 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2396 UNOP_CHMAX, UNOP_CHMIN.
2397 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2398 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2399 UNOP_CHMIN>: Remove opcodes.
2400
ae4d0c03
PM
24012010-06-01 Pierre Muller <[email protected]>
2402
2403 * dwarf2read.c (read_func_scope): Do not complain for
2404 external function if bounds are not found.
2405
fa593d66
PA
24062010-06-01 Pedro Alves <[email protected]>
2407
2408 * NEWS: Mention gdbserver fast tracepoints support.
2409
cd44747c
PM
24102010-05-31 Pierre Muller <[email protected]>
2411
2412 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2413 New macros.
2414 (windows_set_console_info): New function.
2415 (windows_create_inferior): Call windows_set_console_info
2416 if NEW_CONSOLE is true.
2417 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2418 (_initialize_loadable): Initialize GetConsoleFontSize and
2419 GetCurrentConsoleFont.
2420
f6528abd
JK
24212010-05-28 Jan Kratochvil <[email protected]>
2422
2423 * Makefile.in (RDYNAMIC): New.
2424 (SFILES): Add proc-service.list.
2425 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2426 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2427 * config/arm/linux.mh: Likewise.
2428 * config/i386/linux.mh: Likewise.
2429 * config/i386/linux64.mh: Likewise.
2430 * config/ia64/linux.mh: Likewise.
2431 * config/m32r/linux.mh: Likewise.
2432 * config/m68k/linux.mh: Likewise.
2433 * config/mips/linux.mh: Likewise.
2434 * config/pa/linux.mh: Likewise.
2435 * config/powerpc/linux.mh: Likewise.
2436 * config/powerpc/ppc64-linux.mh: Likewise.
2437 * config/s390/s390.mh: Likewise.
2438 * config/sparc/linux.mh: Likewise.
2439 * config/sparc/linux64.mh: Likewise.
2440 * config/xtensa/linux.mh: Likewise.
2441 * configure.ac: New RDYNAMIC on native host and GCC.
2442 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2443 * configure: Regenerate.
2444 * proc-service.list: New.
2445
ca2a87a0
JK
24462010-05-28 Jan Kratochvil <[email protected]>
2447
2448 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2449 CONTENT.
2450
1e225492
JK
24512010-05-28 Jan Kratochvil <[email protected]>
2452
2453 * linux-nat.c (linux_nat_wait_1): Do not call
2454 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2455 TARGET_WAITKIND_SIGNALLED.
2456
e802dbe0
JB
24572010-05-27 Joel Brobecker <[email protected]>
2458
2459 * ada-lang.c (ada_inferior_data): New struct.
2460 (ada_inferior_data): New static global.
2461 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2462 (ada_get_tsd_type): New functions.
2463 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2464 to look the tsd type up.
2465 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2466 event. Set ada_inferior_data.
2467
176a6961
PA
24682010-05-27 Pedro Alves <[email protected]>
2469
2470 * remote.c (unpack_varlen_hex): Remove forward declaration.
2471 (remote_console_output): Make static, and add forward declaration.
2472 * remote.h: Drop FIXME comment.
2473 (unpack_varlen_hex): Declare.
2474 (remote_console_output, remote_cisco_objfile_relocate)
2475 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2476 Delete declarations.
2477 * tracepoint.c: Include "remote.h".
2478 (unpack_varlen_hex): Delete declaration.
2479
88bfdde4
TT
24802010-05-27 Tom Tromey <[email protected]>
2481
2482 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2483 (allocate_piece_closure): Initialize refc.
2484 (copy_pieced_value_closure): Use refc.
2485 (free_pieced_value_closure): Likewise.
2486
8c6363cf
TT
24872010-05-27 Tom Tromey <[email protected]>
2488
2489 * arm-tdep.c (push_stack_item): 'contents' now const.
2490 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2491 value_contents_writeable. Introduce new temporary.
2492
7ecb917e
TT
24932010-05-27 Tom Tromey <[email protected]>
2494
2495 * findcmd.c (parse_find_args): Use value_contents, not
2496 value_contents_raw.
2497
f42a0a33
TT
24982010-05-27 Tom Tromey <[email protected]>
2499
2500 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2501 const. Use value_contents, not value_contents_writeable.
2502
12b795ad
JB
25032010-05-27 Joel Brobecker <[email protected]>
2504
2505 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2506 by call to value_contents.
2507
5a2e11c7
OS
25082010-05-27 Ozkan Sezer <[email protected]>
2509
2510 * MAINTAINERS: Add myself for write after approval privileges.
2511
ec685c5e
DE
25122010-05-26 Doug Evans <[email protected]>
2513
0c4a4063
DE
2514 Allow python to find its files if moved from original location.
2515 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2516 (GDB_AC_WITH_DIR): Call it.
2517 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2518 python installation directory.
2519 * config.in: Regenerate.
2520 * configure: Regenerate.
2521 * defs.h (python_libdir): Declare.
2522 * main.c (python_libdir): Define.
2523 (captured_main): Initialize python_libdir.
2524 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2525 call Py_SetProgramName to make sure python can find its libraries
2526 and modules.
2527
ec685c5e
DE
2528 * configure.ac: Try to use python's distutils to fetch compilation
2529 parameters.
2530 * configure: Regenerate.
2531 * python/python-config.py: New file.
2532
363a6e9f
OS
25332010-05-26 Ozkan Sezer <[email protected]>
2534
2535 * ser-tcp.c (net_open): Check error return from socket() call by its
2536 equality to -1 not by it being negative.
2537 (net_close): Likewise.
2538
dde08ee1
PA
25392010-05-26 Pedro Alves <[email protected]>
2540
2541 * NEWS: Mention the `qRelocInsn' feature.
2542 * gdbarch.sh (relocate_instruction): New.
2543 * amd64-tdep.c (rip_relative_offset): New.
2544 (append_insns): New.
2545 (amd64_relocate_instruction): New.
2546 (amd64_init_abi): Install it.
2547 * i386-tdep.c (append_insns): New.
2548 (i386_relocate_instruction): New.
2549 (i386_gdbarch_init): Install it.
2550 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2551 * gdbarch.h, gdbarch.c: Regenerate.
2552
947bb88f
TT
25532010-05-26 Tom Tromey <[email protected]>
2554
2555 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2556 (struct dwarf2_loclist_baton) <data>: Likewise.
2557 * dwarf2loc.c (find_location_expression): Constify return type.
2558 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2559 (dwarf2_loc_desc_needs_frame): Likewise.
2560 (loclist_read_variable): Constify.
2561 (loclist_describe_location): Likewise.
2562 (loclist_tracepoint_var_ref): Likewise.
2563
0d45f56e
TT
25642010-05-25 Tom Tromey <[email protected]>
2565
2566 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2567 (dwarf_expr_frame_base_1): Likewise.
2568 (read_pieced_value): Update.
2569 (needs_frame_frame_base): Constify.
2570 (dwarf2_tracepoint_var_loc): Likewise.
2571 (dwarf2_tracepoint_var_access): Likewise.
2572 (locexpr_describe_location_piece): Likewise.
2573 (locexpr_describe_location_1): Likewise.
2574 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2575 Constify.
2576 (data): Now const.
2577 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2578 (dwarf_expr_eval, read_uleb128, read_sleb128)
2579 (dwarf2_read_address): Update.
2580 * dwarf2expr.c (dwarf_expr_eval): Constify.
2581 (read_uleb128): Likewise.
2582 (read_sleb128): Likewise.
2583 (dwarf2_read_address): Likewise.
2584 (require_composition): Likewise.
2585 (execute_stack_op): Likewise.
2586 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2587 "const gdb_byte *".
2588 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2589 Now const.
2590 (no_get_frame_base): Constify.
2591 (execute_stack_op): Likewise.
2592 (execute_cfa_program): Likewise.
2593 (read_encoded_value): Likewise.
2594
07ca107c
DE
25952010-05-25 Doug Evans <[email protected]>
2596
e34838f0
DE
2597 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2598
01f69b38
DE
2599 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
2600 * event-loop.c: ... here.
2601 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
2602 `error' for clarity.
2603 (tui_getc): Pass correct value for `error' parameter to
2604 tui_readline_output.
2605
07ca107c
DE
2606 Add python gdb.GdbError and gdb.string_to_argv.
2607 * NEWS: Document them.
2608 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
2609 the exception is gdb.GdbError. Print a second traceback if there's
2610 an error computing the error message.
2611 (gdbpy_string_to_argv): New function.
2612 * python/py-utils.c (gdbpy_obj_to_string): New function.
2613 (gdbpy_exception_to_string): New function.
2614 * python/python-internal.h (gdbpy_string_to_argv): Declare.
2615 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
2616 (gdbpy_gdberror_exc): Declare.
2617 * python/python.c (gdbpy_gdberror_exc): New global.
2618 (_initialize_python): Initialize gdbpy_gdberror_exc and create
2619 gdb.GdbError.
2620 (GdbMethods): Add string_to_argv.
2621
5572ce1f
PM
26222010-05-21 Pierre Muller <[email protected]>
2623
2624 * windows-nat.c (display_selector): Call GetLastError to give better
2625 failure explanation.
2626
acd5838a
PA
26272010-05-24 Pedro Alves <[email protected]>
2628
2629 * config.in: Regenerate.
2630
b26a4dcb
JK
26312010-05-23 Jan Kratochvil <[email protected]>
2632
2633 Code cleanup.
2634 * target.c (push_target): Return only void. Remove the return value
2635 comment.
2636 * target.h (push_target): Return only void.
2637
f434ba03
PA
26382010-05-23 Pedro Alves <[email protected]>
2639
2640 Update gnulib from latest git.
2641 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2642
2643 * gnulib/memcmp.c: Removed.
2644 * gnulib/memchr.valgrind: New.
2645 * gnulib/stddef.in.h: New.
2646 * gnulib/Makefile.am: Updated.
2647 * gnulib/memchr.c: Updated.
2648 * gnulib/memmem.c: Updated.
2649 * gnulib/stdint.in.h: Updated.
2650 * gnulib/str-two-way.h: Updated.
2651 * gnulib/string.in.h: Updated.
2652 * gnulib/wchar.in.h: Updated.
2653
2654 * gnulib/extra/link-warning.h: Removed.
2655 * gnulib/extra/c++defs.h: New.
2656 * gnulib/extra/warn-on-use.h: New.
2657 * gnulib/extra/arg-nonnull.h: Updated.
2658
2659 * gnulib/m4/extensions.m4: Updated.
2660 * gnulib/m4/gnulib-cache.m4: Updated.
2661 * gnulib/m4/gnulib-common.m4: Updated.
2662 * gnulib/m4/gnulib-comp.m4: Updated.
2663 * gnulib/m4/gnulib-tool.m4: Updated.
2664 * gnulib/m4/include_next.m4: Updated.
2665 * gnulib/m4/longlong.m4: Updated.
2666 * gnulib/m4/memchr.m4: Updated.
2667 * gnulib/m4/memmem.m4: Updated.
2668 * gnulib/m4/stdint.m4: Updated.
2669 * gnulib/m4/string_h.m4: Updated.
2670 * gnulib/m4/memcmp.m4: Removed.
2671 * gnulib/m4/onceonly_2_57.m4: Removed.
2672 * gnulib/m4/00gnulib.m4: New.
2673 * gnulib/m4/mmap-anon.m4: New.
2674 * gnulib/m4/multiarch.m4: New.
2675 * gnulib/m4/onceonly.m4: New.
2676 * gnulib/m4/stddef_h.m4: New.
2677 * gnulib/m4/warn-on-use.m4: New.
2678 * gnulib/m4/wchar.m4: Removed.
2679 * gnulib/m4/wchar_h.m4: New.
2680 * gnulib/m4/wchar_t.m4: New.
2681 * gnulib/m4/wint_t.m4: New.
2682
2683 * aclocal.m4: Regenerate.
2684 * config.in: Likewise.
2685 * configure: Likewise.
2686 * gnulib/Makefile.in: Likewise.
2687
d3b1e874
TT
26882010-05-21 Tom Tromey <[email protected]>
2689
2690 * dwarf2loc.c (extract_bits_primitive): New function.
2691 (extract_bits): Likewise.
2692 (insert_bits): Likewise.
2693 (copy_bitwise): Likewise.
2694 (read_pieced_value): Do all operations in bits.
2695 (write_pieced_value): Likewise.
2696 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
2697 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
2698 Always use xrealloc to resize piece array.
2699 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
2700 <DW_OP_piece>: Update.
2701 <DW_OP_bit_piece>: New case.
2702
cb826367
TT
27032010-05-21 Tom Tromey <[email protected]>
2704
2705 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
2706 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
2707 * dwarf2expr.h (enum dwarf_value_location)
2708 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
2709 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
2710 (add_piece): Handle empty piece.
2711 (execute_stack_op) <DW_OP_piece>: Handle
2712 DWARF_VALUE_OPTIMIZED_OUT.
2713
74de6778
TT
27142010-05-21 Tom Tromey <[email protected]>
2715
2716 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
2717 evaluate_subexp, not evaluate_subexp_with_coercion.
2718
f346a30d
PM
27192010-05-21 Pierre Muller <[email protected]>
2720
2721 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2722 attribute.
2723
afd74c5f
TT
27242010-05-21 Tom Tromey <[email protected]>
2725
2726 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
2727 offset.
2728 (write_pieced_value): Likewise.
2729
90e7c2c5
PM
27302010-05-21 Pierre Muller <[email protected]>
2731
2732 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2733 and DW_TAG_volatile_type.
2734 (new_symbol): Likewise.
2735
8148cf8d
PM
27362010-05-20 Pierre Muller <[email protected]>
2737
2738 * p-valprint.c (pascal_val_print): Call get_array_bounds
2739 to obtain the number of elements in an array.
2740
3a1d4620
DE
27412010-05-19 Doug Evans <[email protected]>
2742
0bf0f8c4
DE
2743 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
2744
3a1d4620
DE
2745 * python.c (source_python_script): Add comment.
2746 (source_python_script_for_objfile): Remove unnecessary call to
2747 gdbpy_print_stack.
2748
dc21167c
JK
27492010-05-18 Jan Kratochvil <[email protected]>
2750 Sergio Durigan Junior <[email protected]>
2751
2752 Code cleanup.
2753 * parse.c (exp_iterate): Use operator_length wrapper function.
2754
5b4ee69b
MS
27552010-05-18 Michael Snyder <[email protected]>
2756
2757 * ada-lang.c: White space.
2758 * ada-typeprint.c: White space.
2759 * ada-valprint.c: White space.
2760 * addrmap.c: White space.
2761 * auxv.c: White space.
2762 * ax-gdb.c: White space.
2763
e17c9e56
HZ
27642010-05-18 Hui Zhu <[email protected]>
2765
2766 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
2767 for oldfp.
2768 (inferior_call_waitpid): Move make_cleanup out of check.
2769 Check the return of waitpid.
2770 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
2771
a109c7c1
MS
27722010-05-17 Michael Snyder <[email protected]>
2773
1c5313c5
MS
2774 * tui/tui.c: White space.
2775 * tui/tui-data.c: White space.
2776 * tui/tui-disasm.c: White space.
2777 * tui/tui-file.c: White space.
2778 * tui/tui-interp.c: White space.
2779 * tui/tui-main.c: White space.
2780 * tui/tui-out.c: White space.
2781 * tui/tui-regs.c: White space.
2782 * tui/tui-source.c: White space.
2783 * tui/tui-stack.c: White space.
2784 * tui/tui-win.c: White space.
2785 * tui/tui-winsource.c: White space.
2786
f4a14ae6
MS
2787 * procfs.c: White space.
2788
d59b6f6c
MS
2789 * python/py-auto-load.c: White space.
2790 * python/py-block.c: White space.
2791 * python/py-breakpoint.c: White space.
2792 * python/py-cmd.c: White space.
2793 * python/py-function.c: White space.
2794 * python/py-lazy-string.c: White space.
2795 * python/py-objfile.c: White space.
2796 * python/py-param.c: White space.
2797 * python/py-prettyprint.c: White space.
2798 * python/py-progspace.c: White space.
2799 * python/py-symtab.c: White space.
2800 * python/python.c: White space.
2801 * python/py-type.c: White space.
2802 * python/py-utils.c: White space.
2803 * python/py-value.c: White space.
2804
102040f0
MS
2805 * mi/mi-cmd-break.c: White space.
2806 * mi/mi-cmd-env.c: White space.
2807 * mi/mi-cmds.c: White space.
2808 * mi/mi-cmd-stack.c: White space.
2809 * mi/mi-cmd-var.c: White space.
2810 * mi/mi-console.c: White space.
2811 * mi/mi-getopt.c: White space.
2812 * mi/mi-interp.c: White space.
2813 * mi/mi-main.c: White space.
2814 * mi/mi-out.c: White space.
2815 * mi/mi-parse.c: White space.
2816
cdb27c12
MS
2817 * cli/cli-cmds.c: White space.
2818 * cli/cli-decode.c: White space.
2819 * cli/cli-dump.c: White space.
2820 * cli/cli-interp.c: White space.
2821 * cli/cli-logging.c: White space.
2822 * cli/cli-script.c: White space.
2823 * cli/cli-setshow.c: White space.
2824
a109c7c1
MS
2825 * valarith.c: White space.
2826 * valops.c: White space.
2827 * valprint.c: White space.
2828 * value.c: White space.
2829 * varobj.c: White space.
2830 * xcoffread.c: White space.
2831 * xml-support.c: White space.
2832 * xml-tdesc.c: White space.
2833
3872d37d
AS
28342010-05-17 Andreas Schwab <[email protected]>
2835
2836 PR gdb/11092
2837 * c-lang.c (c_printstr): Compute real length of NUL terminated
2838 string at first.
2839
0cce5bd9
JB
28402010-05-17 Joel Brobecker <[email protected]>
2841
2842 * parse.c (parse_exp_in_context): When block is not NULL, use
2843 its associated language to parse the expression instead of
2844 the current_language.
2845
5f19d646
JB
28462010-05-17 Joel Brobecker <[email protected]>
2847
2848 * jv-lang.c (java_lookup_class): Remove commented out code.
2849 (type_from_class): Likewise.
2850 (java_op_print_tab): Remove commented-out elements.
2851
28c85d6c
JB
28522010-05-17 Joel Brobecker <[email protected]>
2853
2854 * ada-lang.c (to_fixed_range_type): The the raw index type as
2855 argument instead of the raw type name. Remove orig_type parameter.
2856 Update calls throughout.
2857 (ada_fixup_array_indexes_type): New function.
2858 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
2859 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
2860 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
2861 Remove name parameter.
2862 (print_array_type): Add call to ada_fixup_array_indexes_type.
2863 Update calls to print_range_type.
2864 (ada_print_type): Update calls to print_range_type.
2865
d09039dd
PM
28662010-05-17 Pierre Muller <[email protected]>
2867
2868 * dwarf2read.c (read_set_type): Set type length if
2869 DW_AT_byte_size attribute is present.
2870
7a081a30
PM
28712010-05-17 Pierre Muller <[email protected]>
2872
2873 * p-valprint.c (pascal_val_print): Handle set type if range limits
2874 are undefined but size is known.
2875
77382aee
PA
28762010-05-17 Pedro Alves <[email protected]>
2877
2878 * procfs.c: Reformat.
2879
433759f7
MS
28802010-05-16 Michael Snyder <[email protected]>
2881
5d502164
MS
2882 * target.c: White space.
2883 * target-descriptions.c: White space.
2884 * target-memory.c: White space.
2885 * thread.c: White space.
2886 * top.c: White space.
2887 * tracepoint.c: White space.
2888 * trad-frame.c: White space.
2889 * tramp-frame.c: White space.
2890 * ui-file.c: White space.
2891 * ui-out.c: White space.
2892 * user-regs.c: White space.
2893 * utils.c: White space.
2894
433759f7
MS
2895 * scm-exp.c: White space.
2896 * scm-lang.c: White space.
2897 * scm-valprint.c: White space.
2898 * sentinel-frame.c: White space.
2899 * ser-base.c: White space.
2900 * ser-go32.c: White space.
2901 * serial.c: White space.
2902 * ser-mingw.c: White space.
2903 * ser-pipe.c: White space.
2904 * ser-tcp.c: White space.
2905 * ser-unix.c: White space.
2906 * solib.c: White space.
2907 * solib-darwin.c: White space.
2908 * solib-frv.c: White space.
2909 * solib-irix.c: White space.
2910 * solib-osf.c: White space.
2911 * solib-pa64.c: White space.
2912 * solib-som.c: White space.
2913 * solib-spu.c: White space.
2914 * solib-svr4.c: White space.
2915 * solib-target.c: White space.
2916 * source.c: White space.
2917 * stabsread.c: White space.
2918 * stack.c: White space.
2919 * std-regs.c: White space.
2920 * symfile.c: White space.
2921 * symmisc.c: White space.
2922 * symtab.c: White space.
2923
dd304d53
MS
29242010-05-16 Michael Snyder <[email protected]>
2925
2926 * source.c (_initialize_source): Add "rev" as an abbreviation
2927 for the "reverse-search" command.
2928
a744cf53
MS
29292010-05-16 Michael Snyder <[email protected]>
2930
123f5f96
MS
2931 * record.c: White space.
2932 * regcache.c: White space.
2933 * reggroups.c: White space.
2934 * remote-fileio.c: White space.
2935 * remote-m32r-sdi.c: White space.
2936 * remote-mips.c: White space.
2937 * remote-sim.c: White space.
a744cf53
MS
2938 * remote.c: White space.
2939 (process_g_packet): Remove orphan braces.
2940
b8d56208
MS
29412010-05-15 Michael Snyder <[email protected]>
2942
ad3bbd48
MS
2943 * parse.c: White space.
2944 * p-lang.c: White space.
2945 * posix-hdep.c: White space.
2946 * printcmd.c: White space.
2947 * progspace.c: White space.
2948 * prologue-value.c: White space.
2949 * psymtab.c: White space.
2950 * p-typeprint.c: White space.
2951 * p-valprint.c: White space.
2952
5cc80db3
MS
2953 * objc-lang.c: White space.
2954 * objfiles.c: White space.
2955 * observer.c: White space.
2956 * osabi.c: White space.
2957 * osdata.c: White space.
2958
b8d56208
MS
2959 * m2-lang.c: White space.
2960 * m2-valprint.c: White space.
2961 * macrocmd.c: White space.
2962 * macroexp.c: White space.
2963 * macroscope.c: White space.
2964 * macrotab.c: White space.
2965 * main.c: White space.
2966 * maint.c: White space.
2967 * mdebugread.c: White space.
2968 * memattr.c: White space.
2969 * minsyms.c: White space.
2970 * monitor.c: White space.
2971
9a619af0
MS
29722010-05-14 Michael Snyder <[email protected]>
2973
e0881a8e
MS
2974 * jv-lang.c: White space.
2975 * jv-typeprint.c: White space.
2976 * jv-valprint.c: White space.
2977 * language.c: White space.
2978 * libunwind-frame.c: White space.
2979 * linespec.c: White space.
2980 * linux-nat.c: White space.
2981 * linux-record.c: White space.
2982 * linux-thread-db.c: White space.
2983
abbb1732
MS
2984 * infcall.c: White space.
2985 * inf-child.c: White space.
2986 * infcmd.c: White space.
2987 * inferior.c: White space.
2988 * inf-loop.c: White space.
2989 * inflow.c: White space.
2990 * inline-frame.c: White space.
2991 * interps.c: White space.
2992
d8734c88
MS
2993 * gcore.c: White space.
2994 * gdb.c: White space.
2995 * gdbtypes.c: White space.
2996 * gnu-nat.c: White space.
2997 * gnu-v2-abi.c: White space.
2998 * gnu-v3-abi.c: White space.
2999
bb9bcb69
MS
3000 * findcmd.c: White space.
3001 * findvar.c: White space.
3002 * fork-child.c: White space.
3003 * frame-base.c: White space.
3004 * frame.c: White space.
3005 * frame-unwind.c: White space.
3006 * f-valprint.c: White space.
3007
d7f9d729
MS
3008 * elfread.c: White space.
3009 * environ.c: White space.
3010 * eval.c: White space.
3011 * event-loop.c: White space.
3012 * event-top.c: White space.
3013 * exceptions.c: White space.
3014 * exec.c: White space.
3015 * expprint.c: White space.
3016
9a619af0
MS
3017 * dbxread.c: White space.
3018 * dcache.c: White space.
3019 * disasm.c: White space.
3020 * doublest.c: White space.
3021 * dsrec.c: White space.
3022 * dummy-frame.c: White space.
3023 * dwarf2expr.c: White space.
3024 * dwarf2-frame.c: White space.
3025 * dwarf2loc.c: White space.
3026 * dwarf2read.c: White space.
3027
88d4aea7
PM
30282010-05-14 Phil Muldoon <[email protected]>
3029
3030 PR python/11482
3031
3032 * python/py-value.c (valpy_hash): New function.
3033 (value_object_type): Register valpy_hash.
3034
7a298875 30352010-05-14 Hui Zhu <[email protected]>
0407b3f1 3036 Michael Snyder <[email protected]>
7a298875
HZ
3037
3038 * linux-fork.c (gdbthread.h): New include.
3039 (fork_info): Add parent_ptid.
3040 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3041 functions.
3042 (delete_checkpoint_command): Call inferior_call_waitpid.
3043 (checkpoint_command): Set parent_ptid.
3044
c14feecc
MS
30452010-05-13 Michael Snyder <[email protected]>
3046
6595d32b
MS
3047 * dictionary.c: Re-indent to GNU coding standard.
3048
c5504eaf
MS
3049 * charset.c: White space.
3050 * c-lang.c: White space.
3051 * cli-out.c: White space.
3052 * coffread.c: White space.
3053 * complaints.c: White space.
3054 * completer.c: White space.
3055 * corefile.c: White space.
3056 * corelow.c: White space.
3057 * cp-abi.c: White space.
3058 * cp-namespace.c: White space.
3059 * cp-support.c: White space.
3060 * cp-valprint.c: White space.
3061 * c-typeprint.c: White space.
3062 * c-valprint.c: White space.
cc59ec59
MS
3063 * blockframe.c: White space.
3064 * breakpoint.c: White space.
3065 * buildsym.c: White space.
3066 * blockframe.c: White space.
b6de9da4 3067 * bcache.c: White space.
05c547f6
MS
3068 * gdbarch.sh: White space, add blank lines.
3069 * arch-utils.c: Ditto.
3070 * gdbarch.c: Regenerate.
1c4d3f96 3071 * frame.c: White space, add blank lines.
f89b749f
MS
3072 * stack.c: White space, add blank lines.
3073 (initialize_stack): Remove long-dead code.
c14feecc 3074
a2d33775
JK
30752010-05-13 Jan Kratochvil <[email protected]>
3076
3077 Code cleanup.
3078 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3079 (locexpr_read_variable, loclist_read_variable): Update the callers.
3080
33ac96f0
JK
30812010-05-13 Jan Kratochvil <[email protected]>
3082
3083 Code cleanup.
3084 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3085 Remove check of NULL returned by tag_type_to_type.
3086 (die_containing_type): Remove variable type. Remove type_die variable
3087 initialization. Remove check of NULL returned by tag_type_to_type.
3088
f5a010c0
PM
30892010-05-11 Pierre Muller <[email protected]>
3090
3091 PR exp/11530.
3092 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3093 names of unnamed structures or unions.
3094
bf701c2c
PM
30952010-05-11 Pierre Muller <[email protected]>
3096
3097 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 3098 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
3099 find_procinfo_or_die call.
3100 (procfs_stopped_data_address): New function.
3101 (procfs_use_watchpoints): Register new watchpoint related function.
3102
d02691ef
TT
31032010-05-11 Tom Tromey <[email protected]>
3104
3105 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3106
e0627e85
MS
31072010-05-10 Michael Snyder <[email protected]>
3108
3109 * utils.c: White space cleanup.
3110
cc73bb8c
TT
31112010-05-10 Tom Tromey <[email protected]>
3112
3113 * eval.c (ptrmath_type_p): Add 'lang' argument.
3114 (evaluate_subexp_standard): Update.
3115 (evaluate_subexp_with_coercion): Update.
3116 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3117
c02866a0
MS
31182010-05-10 Michael Snyder <[email protected]>
3119
3120 * utils.c (do_fclose_cleanup) Restore local variable.
3121
06280d23
DE
31222010-05-09 Doug Evans <[email protected]>
3123
3124 * record.c (init_record_core_ops): Rename record_core to record-core.
3125
fa07e785
JB
31262010-05-08 Joel Brobecker <[email protected]>
3127
3128 Implement task switching on pa-hpux.
3129 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3130 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3131
4c680d1d
PM
31322010-05-08 Pierre Muller <[email protected]>
3133
3134 * valops.c (find_overload_match): Add missing i18n markup.
3135
28e176a6
PM
31362010-05-08 Pierre Muller <[email protected]>
3137
3138 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3139
48cb83fd
JK
31402010-05-08 Jan Kratochvil <[email protected]>
3141
3142 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3143 list for the obconcat call.
3144 * mdebugread.c (parse_symbol): Likewise.
3145 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3146 Likewise.
3147 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3148 New variable ap. Remove variables len and val.
3149 * symfile.h (obconcat): Likewise for the prototype.
3150
f92adf3c
MS
31512010-05-07 Michael Snyder <[email protected]>
3152
3153 * python/python.c (execute_gdb_command): Remove unused variables.
3154 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 3155 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
3156 Remove unused variable.
3157 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3158 (cmdpy_completer): Remove unused variable.
3159 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3160 * python/py-function.c (fnpy_call): Remove unused variable.
3161 * python/py-objfile.c (objfile_to_objfile_object):
3162 Remove unused variable.
3163 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 3164 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
3165 Remove unused variable.
3166 (gdbpy_default_visualizer): Remove unused variable.
3167 * python/py-progspace.c (pspace_to_pspace_object):
3168 Remove unused variable.
0407b3f1 3169 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 3170 Remove unused variable.
0407b3f1 3171 * python/py-type.c (typy_template_argument):
f92adf3c
MS
3172 Remove unused variable.
3173 * python/py-value.c (valpy_string): Remove unused variable.
3174 (convert_value_from_python): Remove unused variables.
3175
d160942f
MS
31762010-05-07 Michael Snyder <[email protected]>
3177
3178 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3179 and use it to compute variable 't1'.
3180
587542ab
JB
31812010-05-07 Joel Brobecker <[email protected]>
3182
3183 * ada-lang.c (assign_aggregate): Remove unused variable.
3184
7322dca9
SW
31852010-05-07 Sami Wagiaalla <[email protected]>
3186
3187 PR C++/7943:
3188 * valops.c (find_overload_match): Handle fsym == NULL case.
3189 Add int no_adl argument.
3190 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3191 when appropriate.
3192 Add int no_adl argument.
3193 (find_oload_champ_namespace): Add int no_adl argument.
3194 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3195 expression.
3196 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3197 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3198 Evaluate arguments and use them to perform ADL lookup.
3199 Pass no_adl argument to find_overload_match.
3200 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3201 * cp-support.h: Added prototype for
3202 make_symbol_overload_list_namespace.
3203 * cp-support.c (make_symbol_overload_list_namespace): New function.
3204 (make_symbol_overload_list_adl_namespace): New function.
3205 (make_symbol_overload_list_adl): New function.
3206 (make_symbol_overload_list_using): Moved code to add function to
3207 overload set to make_symbol_overload_list_namespace.
3208 * c-exp.y: create UNKNOWN_CPP_NAME token.
3209 Add parse rule for ADL functions.
3210 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3211
3f1f6884
JK
32122010-05-07 Jan Kratochvil <[email protected]>
3213
3214 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3215 sentinel.
3216
3caf13b4
JB
32172010-05-07 Joel Brobecker <[email protected]>
3218
3219 Implement task switching on solaris targets.
3220 * sol-thread.c (thread_db_find_thread_from_tid)
3221 (sol_get_ada_task_ptid): New functions.
3222 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3223
94b0dee1
PA
32242010-05-07 Pedro Alves <[email protected]>
3225
3226 * remote.c (remote_query_supported_append): Use reconcat.
3227 (remote_query_supported): Install a cleanup. Use reconcat.
3228
1408c251
PA
32292010-05-07 Pedro Alves <[email protected]>
3230
3231 * gdbarch.sh (qsupported): Delete.
3232 * gdbarch.h, gdbarch.c: Regenerate.
3233 * remote.c (remote_query_supported): Remove use of
3234 gdbarch_qsupported.
3235
f8e50cfe
SDJ
32362010-05-06 Sergio Durigan Junior <[email protected]>
3237
3238 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3239 function.
3240
8ea13695
MS
32412010-05-06 Michael Snyder <[email protected]>
3242
c6913b7d
MS
3243 * xml-support.c (xinclude_start_include): Delete unused variable.
3244 (xml_process_xincludes): Delete unused variable.
3245 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3246 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3247 (tdesc_find_arch_register): Delete unused variable.
3248 (tdesc_use_registers): Delete unused variable.
3249 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3250 * inferior.c (print_inferior): Delete unused variable.
3251 * record.c (record_open_1): Delete unused variable.
3252 (record_restore): Delete unused variable.
3253 (cmd_record_save): Delete unused variable.
3254 * gcore.c (derive_heap_segment): Delete unused variable.
3255 (objfile_find_memory_regions): Use unused variable.
3256 * jit.c (jit_inferior_init): Delete unused variable.
3257 * progspace.c (clone_program_space): Delete unused variable.
3258 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
3259
3260 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
3261 Delete unused variable.
3262 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3263 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3264 (method_name_from_physname): Delete unused variable.
3265 (cp_func_name): Delete unused variable.
3266 (cp_validate_operator): Delete unused variable.
0407b3f1 3267 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 3268 Delete unused variable.
0407b3f1 3269 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
3270 Delete unused variable.
3271 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3272
1be757cf
MS
3273 * serial.c (serial_for_fd): Delete unused variable.
3274 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3275 * top.c (execute_command): Delete unused variable.
3276 (init_main): Delete unused variable.
3277 * utils.c (do_fclose_cleanup): Delete unused variable.
3278 (do_all_inferior_continuations): Delete unused variable.
3279 (initialize_utils): Delete unused variable.
3280 (internal_problem_mode): Delete unused global.
3281 * frame.c (get_prev_frame): Delete unused global.
3282 (get_frame_locals_address): Delete unused global.
3283 (get_frame_args_address): Delete unused global.
3284
9216103f
MS
3285 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3286 (pascal_type_print_varspec_prefix): Delete unused variable.
3287 * f-typeprint.c (f_type_print_base): Delete unused variable.
3288 (f_type_print_varspec_suffix): Delete unused variable.
3289 * m2-typeprint.c (m2_print_type): Delete unused variable.
3290 (m2_long_set): Delete unused variable.
3291 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3292 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 3293 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
3294 Delete unused variable.
3295 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3296 * m2-valprint.c (m2_val_print): Delete unused variable.
3297
34fa1d9d
MS
3298 * ui-out.c (ui_out_field_int): Delete unused variable.
3299 (ui_out_field_fmt_int): Delete unused variable.
3300 * varobj.c (varobj_list_children): Delete unused variable.
3301 (varobj_set_value): Delete unused variable.
3302 (install_new_value_visualizer): Delete unused variable.
3303 (varobj_set_visualizer): Delete unused variable.
3304 (varobj_update): Delete unused variable.
3305 (varobj_editable_p): Delete unused variable.
3306 (c_value_of_root): Delete unused variable.
3307 (cplus_describe_child): Delete unused variable.
3308
b5385fc0
MS
3309 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3310 (decode_constrained_packed_array_type): Delete unused variable.
3311 (add_defn_to_vec): Delete unused variable.
3312 (symbol_completion_match): Delete unused variable.
3313 (value_tag_from_contents_and_address): Delete unused variable.
3314 (ada_evaluate_subexp): Delete unused variable.
3315 * c-lang.c (classify_type): Delete unused variable.
3316 * f-lang.c (f_printstr): Delete unused variable.
3317 * objc-lang.c (objc_printstr): Delete unused variable.
3318 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3319 * jv-lang.c (type_from_class): ifdef unused variable.
3320 (java_class_name_from_physname): Delete unused variable.
3321 * m2-lang.c (m2_printstr): Delete unused variable.
3322
4fc06681
MS
3323 * objfiles.c (objfile_relocate): Delete unused variable.
3324 * maint.c (_initialize_maint_cmds): Delete unused variable.
3325 * demangle.c (_initialize_demangler): Delete unused variable.
3326 * corefile.c (reopen_exec_file): Delete unused variable.
3327 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3328 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3329
6b4398f7
MS
3330 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3331 * memattr.c (mem_delete): Delete unused variable.
3332 (invalidate_target_mem_regions): Delete unused variable.
3333 * mem-break.c (default_memory_insert_breakpoint):
3334 Delete unused variable.
3335 * target.c (target_get_osdata): Delete unused variable.
3336 * parse.c (length_of_subexp): Delete unused variable.
3337 (prefixify_subexp): Delete unused variable.
3338 (exp_iterate): Delete unused variable.
3339 * reverse.c (delete_bookmark_command): Delete unused variable.
3340
308d96ed
MS
3341 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3342 * macroexp.c (gather_arguments): Delete unused variable.
3343 (substitute_args): Delete unused variable.
3344 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3345 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3346 (_initialize_gdbarch): Delete unused variable.
3347 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 3348 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
3349 Delete unused variable.
3350 (_initialize_gdbarch_utils): Delete unused variable.
3351 * gdbtypes.c (make_cv_type): Delete unused variable.
3352 (make_type_with_address_space): Delete unused variable.
3353
167e4384
MS
3354 * linespec.c (decode_compound): Delete unused variable.
3355 * dictionary.c (iterator_next_hashed): Delete unused variable.
3356 * infcall.c (call_function_by_hand): Delete unused variable.
3357 * infcmd.c (step_1): Delete unused variable.
3358 (registers_info): Delete unused variable.
3359 (attach_command): Delete unused variable.
3360 * infrun.c (follow_exec): Delete unused variable.
3361 (handle_step_into_function_backwards): Delete unused variable.
3362 (_initialize_infrun): Delete unused variable.
3363 * stack.c (parse_frame_specification_1): Delete unused variable.
3364 (frame_info): Delete unused variable.
3365 (backtrace_command_1): Delete unused variable.
3366 (catch_info): Delete unused variable.
3367
8f78b329
MS
3368 * eval.c (evaluate_subexp_standard): Delete unused variable.
3369 * valops.c (value_cast_pointers): Delete unused variable.
3370 (value_dynamic_cast): Delete unused variable.
3371 (value_array): Delete unused variable.
3372 (find_overload_match): Delete unused variable.
3373 * valarith.c (value_subscript): Delete unused variable.
3374 (value_binop): Delete unused variable.
3375 * valprint.c (_initialize_valprint): Delete unused variable.
3376 * printcmd.c (print_command_1): Delete unused variable.
3377 (address_info): Delete unused variable.
3378 (printf_command): Delete unused variable.
3379
8ea13695
MS
3380 * auxv.c (target_auxv_search): Delete unused variable.
3381 * blockframe.c (get_frame_block): Delete unused variable.
3382 * regcache.c (regcache_cpy): Delete unused variable.
3383 (regcache_cpy_no_passthrough): Delete unused variable.
3384 * charset.c (wchar_iterate): Delete unused variable.
3385 (find_charset_names): Delete unused variable.
3386 (_initialize_charset): Delete unused variable.
0407b3f1 3387 * disasm.c (do_mixed_source_and_assembly):
8ea13695 3388 Delete unused variable.
0407b3f1 3389 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
3390 Delete unused variable.
3391 (set_substitute_path_command): Delete unused variable.
3392 * value.c (preserve_values): Delete unused variable.
3393 (value_from_double): Delete unused variable.
3394
afe38095
MS
33952010-05-05 Michael Snyder <[email protected]>
3396
952a6d41
MS
3397 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3398 (find_last_source_symtab_from_partial): Delete unused variable.
3399 * symfile.c (place_section): Delete unused variable.
3400 (default_symfile_offsets): Delete unused variable.
3401 (get_debug_link_info): Delete unused variable.
3402 (find_separate_debug_file_by_debuglink): Delete unused variable.
3403 (add_symbol_file_command): Delete unused variable.
3404 (symfile_find_segment_sections): Delete unused variable.
3405 * symmisc.c (free_symtab): Delete unused variable.
3406 (dump_symtab_1): Delete unused variable.
3407 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3408 (find_pc_sect_symtab): Delete unused variable.
3409 (skip_prologue_using_lineinfo): Delete unused variable.
3410 (sources_info): Delete unused variable.
3411 (completion_list_add_name): Delete unused variable.
3412 (expand_line_sal): Delete unused variable.
3413
0407b3f1 3414 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
3415 Delete unused variables.
3416 (insert_catchpoint): Delete unused variable.
3417 (update_watchpoint): Delete unused variable.
3418 (insert_bp_location): Delete unused variable.
3419 (insert_breakpoint_locations): Delete unused variable.
3420 (remove_breakpoint_1): Delete unused variable.
3421 (software_breakpoint_inserted_here_p): Delete unused variable.
3422 (watchpoints_triggered): Delete unused variable.
3423 (bpstat_check_watchpoint): Delete unused variable.
3424 (bpstat_stop_status): Delete unused variable.
3425 (print_one_breakpoint_location): Delete unused variable.
3426 (allocate_bp_location): Delete unused variable.
3427 (create_breakpoint): Delete unused variable.
3428 (watch_command_1): Delete unused variable.
3429 (catch_exception_command_1): Delete unused variable.
3430 (catch_ada_exception_command): Delete unused variable.
3431 (delete_breakpoint): Delete unused variable.
3432 (breakpoint_re_set_one): Delete unused variable.
3433 (do_enable_breakpoint): Delete unused variable.
3434
eda5a4d7
PA
34352010-05-06 Pedro Alves <[email protected]>
3436
3437 * amd64-tdep.c: Include disasm.h.
3438 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3439 (amd64_insn_length): Moved to disasm.c and renamed.
3440 (fixup_riprel): Adjust.
3441 * disasm.c (do_ui_file_delete): New.
3442 (gdb_insn_length): New.
3443 (gdb_buffered_insn_length_fprintf)
3444 (gdb_buffered_insn_length_init_dis)
3445 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3446 renamed.
3447 * disasm.h (gdb_insn_length): Declare.
3448 (gdb_buffered_insn_length): Declare.
3449
02357a4a
PA
34502010-05-06 Pedro Alves <[email protected]>
3451
3452 * remote.c (clear_threads_parsing_context): New.
3453 (remote_threads_info): Delete unused null_cleanup. Install a
3454 cleanup to clear the threads_parsing_context in case parsing
3455 throws.
3456
8c5630cb
MS
34572010-05-05 Michael Snyder <[email protected]>
3458
3459 * c-exp.y (parse_string_or_char): Delete unused variable.
3460 (c_lex): Delete unused variable.
3461 * cp-name-parser.y (cpname_lex): Delete unused variable.
3462 * ada-exp.y (find_primitive_type): Delete unused variable.
3463 (write_var_or_type): Delete unused variable.
3464 * jv-exp.y (java_parse): Delete unused variable.
3465 (push_expression_name): Delete unused variable.
3466 * p-exp.y (pascal_lex): Delete unused variable.
3467
46c162d4
PA
34682010-05-05 Pedro Alves <[email protected]>
3469
3470 * remote.c (remote_threads_info): Really revert previous previous
3471 change.
3472
0043e6a5
MS
34732010-05-05 Michael Snyder <[email protected]>
3474
fa238c03
MS
3475 * elfread.c (elf_symtab_read): Delete unused variable.
3476 (find_separate_debug_file_by_buildid): Delete unused variables.
3477 (elf_symfile_read): Delete unused variable.
3478
3479 * coffread.c (coff_symfile_read): Delete unused variables.
3480
3481 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3482 (read_pe_exported_syms): Delete unused variable.
3483
3484 * stabsread.c (define_symbol): Delete unused variable.
3485
3486 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3487 (process_psymtab_comp_unit): Delete unused variable.
3488 (dwarf2_build_psymtabs_hard): Delete unused variable.
3489 (load_partial_comp_unit): Delete unused variable.
3490 (create_all_comp_units): Delete unused variable.
3491 (scan_partial_symbols): Delete unused variable.
3492 (add_partial_symbol): Delete unused variable.
3493 (add_partial_namespace): Delete unused variable.
3494 (add_partial_enumeration): Delete unused variable.
3495 (load_full_comp_unit): Delete unused variable.
3496 (process_full_comp_unit): Delete unused variable.
3497 (read_file_scope): Delete unused variable.
3498 (read_type_unit_scope): Delete unused variable.
3499 (process_structure_scope): Delete unused variable.
3500 (process_enumeration_scope): Delete unused variable.
3501 (read_tag_ptr_to_member_type): Delete unused variable.
3502 (read_typedef): Delete unused variable.
3503 (read_partial_die): Delete unused variable.
3504 (decode_locdesc): Delete unused variable.
3505 (zeroed_partial_die): Delete unused global variable.
3506
0407b3f1 3507 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 3508 Delete unused variable.
0407b3f1 3509 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
3510 Delete unused variable.
3511 (tui_check_register_values): Delete unused variable.
3512 (tui_register_format): Delete unused variable.
3513 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 3514 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
3515 Delete unused variables.
3516 (tui_vertical_data_scroll): Delete unused variables.
3517
75721c66
MS
35182010-05-05 Michael Snyder <[email protected]>
3519
c31a71f4
MS
3520 * remote.c (remote_threads_info): Revert questionable part of
3521 the previous change.
3522
35232010-05-05 Michael Snyder <[email protected]>
3524
3525 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3526 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3527 (mi_cmd_var_list_children): Delete unused variable.
3528 (varobj_update_one): Delete unused variable.
3529 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 3530 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
3531 Delete unused variable.
3532 (mi_cmd_stack_list_variables): Delete unused variable.
3533 (list_args_or_locals): Delete unused variable.
0407b3f1 3534 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
3535 Delete unused variables.
3536 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 3537 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
3538 Delete unused variable.
3539 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3540 (mi_cmd_interpreter_exec): Delete unused variable.
3541 (mi_on_normal_stop): Delete unused variable.
3542 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3543 (print_one_inferior): Delete unused variables.
3544 (mi_execute_command): Delete unused variable.
3545 (mi_cmd_execute): Delete unused variable.
3546 (timestamp): Delete unused variable.
3547
3548 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 3549 (restore_binary_file): Delete unused variable.
c31a71f4
MS
3550 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3551 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
3552 (recurse_read_control_structure): Delete unused variable.
3553 (script_from_file): Delete unused variable.
c31a71f4 3554 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
3555 (disassemble_command): Delete unused variable.
3556
3557 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 3558 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
3559 Delete unused variables.
3560 (encode_actions_1): Delete unused variables.
3561 (start_tracing): Delete unused variable.
3562 (trace_status_mi): Delete unused variable.
3563 (tfind_1): Delete unused variable.
3564 (trace_find_pc_command): Delete unused variable.
3565 (trace_find_line_command): Delete unused variables.
3566 (trace_find_range_command): Delete unused variables.
3567 (trace_find_outside_command): Delete unused variables.
3568 (parse_tracepoint_definition): Delete unused variables.
3569 (tfile_fetch_registers): Delete unused variable.
3570
9128a503
MS
3571 * dcache.c (dcache_init): Delete unused variable.
3572 (dcache_info): Delete unused variable.
3573
aa369b55 3574 * remote.c (remote_threads_info): Delete unused variable.
9128a503 3575 (process_stop_reply) :Delete unused variable.
aa369b55
MS
3576 (remote_get_trace_status): Delete unused variables.
3577
9e9547e4
MS
3578 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3579 (thread_from_lwp): Delete unused variable.
3580 (enable_thread_event_reporting): Delete unused variable.
3581 (check_for_thread_db): Delete unused variables.
3582 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 3583
9e9547e4
MS
3584 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3585 (checkpoint_command): Delete unused variable.
3586 (linux_fork_context): Delete unused variables.
3587
fa238c03 3588 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
3589 (linux_tracefork_child): Delete unused variable.
3590 (linux_child_follow_fork): Delete unused variable.
3591 (linux_nat_detach): Delete unused variable.
3592 (linux_handle_extended_wait): Delete unused variable.
3593 (linux_nat_has_pending_sigint): Delete unused variable.
3594 (linux_nat_find_memory_regions): Delete unused variable.
3595 (linux_nat_make_corefile_notes): Delete unused variables.
3596 (linux_nat_info_proc_cmd): Delete unused variable.
3597 (linux_proc_pending_signals): Delete unused variable.
3598 (linux_nat_stop_lwp): Delete unused variables.
3599 (_initialize_linux_nat): Delete unused variable.
3600
fa238c03 3601 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 3602
0407b3f1 3603 * linux-record.c (record_linux_system_call):
e0f069a3
MS
3604 Delete unused variables.
3605
789d24f0
MS
3606 * corelow.c (core_xfer_partial): Delete unused variables.
3607
1cd337a5 3608 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 3609 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
3610 conditionally-used variable declarations.
3611
b00e3f56
MS
3612 * solib.c (solib_find): Delete unused variable.
3613 (free_so_symbols): Delete unused variable.
3614 (info_sharedlibrary_command): Delete unused variable.
3615 (reload_shared_libraries_1): Delete unused variable.
3616 (_initialize_solib): Delete unused variable.
3617
90f62196
MS
3618 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
3619 (i386_collect_xstateregset): Delete unused variable.
3620 * i387-tdep.c (i387_print_float_info): Delete unused variable.
3621
75721c66
MS
3622 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
3623 Delete unused variable 'type'.
3624
af33db37
JB
36252010-05-05 Joel Brobecker <[email protected]>
3626
90f62196 3627 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
3628 ada-lang.c: Remove comment mentioning these macros.
3629 * m2-exp.y: Delete commented out code.
af33db37 3630
0497f5b0
JB
36312010-05-05 Joel Brobecker <[email protected]>
3632
3633 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
3634 for array types.
3635 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
3636
6e39997a
PM
36372010-05-04 Pierre Muller <[email protected]>
3638
3639 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 3640 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
3641 ATTRIBUTE_UNUSED.
3642 (cleanup_kernel_helper_return): Likewise.
3643 * arm-tdep.c (copy_unmodified): Likewise.
3644 (copy_preload): Likewise.
3645 (copy_copro_load_store): Likewise.
3646 (cleanup_branch): Likewise.
3647 (copy_b_bl_blx): Likewise.
3648 (copy_bx_blx_reg): Likewise.
3649 (copy_alu_imm): Likewise.
3650 (copy_alu_reg): Likewise.
3651 (copy_alu_shifted_reg): Likewise.
3652 (cleanup_load): Likewise.
3653 (cleanup_store): Likewise.
3654 (cleanup_block_load_pc): Likewise.
3655 (cleanup_svc): Likewise.
3656 (copy_undef): Likewise.
3657 (copy_unpred): Likewise.
3658 * remote.c (register_remote_support_xml): Likewise.
3659
1412f70b
HZ
36602010-05-05 Hui Zhu <[email protected]>
3661
3662 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
3663
c4f7c687
MK
36642010-05-04 Mark Kettenis <[email protected]>
3665
3666 * remote.c (register_remote_support_xml)
3667 (remote_query_supported_append, remote_query_supported): Add cast
3668 to NULL used as sentinel.
3669 * tracepoint.c (tvariables_info_1): Likewise.
3670 * utils.c (add_internal_problem_command): Likewise.
3671
63b4f126
MGD
36722010-05-04 Matthew Gretton-Dann <[email protected]>
3673
3674 * dwarf2loc.c (read_pieced_value, write_pieced_value,
3675 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
3676 registers gracefully.
3677
2f1bdd26
MGD
36782010-05-04 Matthew Gretton-Dann <[email protected]>
3679
0407b3f1 3680 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
3681 specific parts.
3682
e1c34c5d
PM
36832010-05-04 Pierre Muller <[email protected]>
3684
3685 PR exp/11349.
3686 * printcmd.c (x_command): Only dereference once implicitly for
3687 TYPE_CODE_REF.
3688
ae462839
DE
36892010-05-03 Doug Evans <[email protected]>
3690
3691 * event-loop.c (gdb_timer): Delete unused global.
3692 (create_timer): Update.
3693
1ac77ea1
JK
36942010-05-03 Jan Kratochvil <[email protected]>
3695
3696 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
3697 CURRENT->DECLARATION case.
3698 * cp-support.h (struct using_direct): Provide extended comment.
3699
7c54a108
MK
37002010-05-03 Mark Kettenis <[email protected]>
3701
3702 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
3703 HPPABSD_SIZEOF_GREGS.
3704 (HPPAOBSD_SIZEOF_FPREGS): New define.
3705 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
3706 (hppaobsd_supply_fpregset): New function.
3707 (hppaobsd_gregset): Renamed from hppabsd_gregset.
3708 (hppaobsd_fpregset): New variable.
3709 (hppaobsd_regset_from_core_section): Handle floating-point registers.
3710 (_initialize_hppabsd_tdep): Remove spurious blank line.
3711
278582cb
PM
37122010-05-03 Pierre Muller <[email protected]>
3713
3714 PR pascal/11349.
3715 * p-valprint.c (pascal_value_print): Always dereference a value with
3716 type code TYPE_CODE_REF.
0407b3f1 3717
f0223081
PA
37182010-05-03 Pedro Alves <[email protected]>
3719
3720 * remote.c (remote_notice_signals): New.
3721 (remote_start_remote): In non-stop mode, update the remote end on
3722 which signals it can silently pass.
3723 (init_remote_ops): Install remote_notice_signals.
3724
c25c4a8b
JK
37252010-05-02 Jan Kratochvil <[email protected]>
3726
3727 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
3728 * command.h (error_no_arg): ... here. Remove NORETURN, change
3729 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3730 * defs.h (NORETURN, ATTR_NORETURN): Remove.
3731 (perror_with_name, verror, error, error_stream, vfatal, fatal)
3732 (internal_verror, internal_error, nomem): Remove NORETURN, change
3733 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3734 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
3735 (throw_vfatal, throw_error): Remove NORETURN.
3736 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
3737 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
3738 (throw_error, deprecated_throw_reason): Remove NORETURN, change
3739 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3740 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
3741 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
3742 NORETURN.
3743 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
3744 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
3745 ATTRIBUTE_NORETURN.
3746 * target.c (tcomplain): Likewise.
3747 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
3748 ATTRIBUTE_NORETURN.
3749 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
3750 (internal_error, perror_with_name, nomem): Remove NORETURN.
3751 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
3752 ATTRIBUTE_NORETURN.
3753
a0b31db1
JK
37542010-05-02 Jan Kratochvil <[email protected]>
3755
3756 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3757 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
3758 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
3759 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3760 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
3761 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3762 * complaints.h (complaint, internal_complaint): Likewise.
3763 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
3764 (ATTR_FORMAT): Remove.
3765 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
3766 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
3767 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
3768 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
3769 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
3770 (internal_error, internal_vwarning, internal_warning, warning)
3771 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3772 * disasm.c (fprintf_disasm): Likewise.
3773 * exceptions.c (throw_it): Likewise.
3774 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
3775 (throw_error): Likewise.
3776 * language.h (type_error, range_error): Likewise.
3777 * linespec.c (cplusplus_error): Likewise.
3778 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
3779 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
3780 * monitor.c (monitor_debug): Likewise.
3781 * parser-defs.h (parser_fprintf): Likewise.
3782 * serial.h (serial_printf): Likewise.
3783 * tui/tui-hooks.c (tui_query_hook): Likewise.
3784 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
3785 (uo_message): Likewise.
3786 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
3787 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
3788 Likewise.
3789 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
3790
02a45ac0
PA
37912010-05-02 Pedro Alves <[email protected]>
3792
3793 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
3794 (cli_table_header, cli_begin, cli_end, cli_field_int)
3795 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
3796 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
3797 Delete forward declarations.
3798 (cli_ui_out_impl): Move below the callbacks.
3799 (_initialize_cli_out): Delete.
3800
1915ef4f
PA
38012010-05-02 Pedro Alves <[email protected]>
3802
3803 * README: Use consistent `GDB' and `GDBserver' spellings.
3804
0dfb946f
JK
38052010-05-02 Jan Kratochvil <[email protected]>
3806
3807 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
3808
4d533103
PA
38092010-05-01 Pedro Alves <[email protected]>
3810
3811 * infrun.c (prepare_for_detach): In non-stop, context switch to
3812 the thread that got the event before handling the event.
3813
705b5767
TT
38142010-04-30 Tom Tromey <[email protected]>
3815
3816 * symtab.c (symbol_set_names): Fix typo.
3817
3c0ee1a4
PM
38182010-04-30 Pierre Muller <[email protected]>
3819
3820 * python/py-param.c (parm_constants): Avoid ARI warning
3821 by adding ARI comment.
3822 (parmpy_init): Likewise.
3823
ea1fae46
PM
38242010-04-30 Pierre Muller <[email protected]>
3825
3826 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
3827 and created type for re-use.
3828
c24d0242
PM
38292010-04-30 Pierre Muller <[email protected]>
3830
3831 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
3832
a26d8d11
DE
38332010-04-29 Doug Evans <[email protected]>
3834
3835 * ser-base.h (reschedule): Delete prototype.
3836 * ser-base.c (reschedule): Make static.
3837
f8624c62
MGD
38382010-04-29 Matthew Gretton-Dann <[email protected]>
3839
3840 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
3841 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 3842 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 3843 EABI.
0407b3f1 3844 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
3845 use.
3846
e66408ed
PA
38472010-04-29 Pedro Alves <[email protected]>
3848
3849 PR gdb/11557
3850
3851 * regcache.c (registers_changed): Rename to ...
3852 (registers_changed_ptid): ... this, and only delete register cache
3853 entries matching the ptid filter argument.
3854 (registers_changed): Reimplement on top of registers_changed_ptid.
3855 * regcache.h (registers_changed_ptid): Declare.
3856 * target.c (target_resume): Flush register caches.
3857
d7b32ed3 38582010-04-29 Phil Muldoon <[email protected]>
0407b3f1
AS
3859 Tom Tromey <[email protected]>
3860 Thiago Jung Bauermann <[email protected]>
3861
3862 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
3863 (SUBDIR_PYTHON_SRCS): Likewise.
3864 (py-parameter.o): New rule.
3865 * python/py-parameter.c: New file.
3866 * python/python-internal.h (gdbpy_initialize_parameter)
3867 (gdbpy_parameter, gdbpy_parameter_value)
3868 (gdbpy_parse_command_name): Declare.
3869 * python/py-cmd.c (parse_command_name): Rename to
3870 gdbpy_parse_command_name.
3871 (gdbpy_parse_command_name): Accept a starting list parameter and
3872 use over cmdlist.
3873 (cmdpy_init): Use gdbpy_parse_command_name.
3874 * python/python.c (parameter_to_python): Rename to
3875 gdbpy_parameter_to_python. Accept enum var_types and value.
3876 (gdbpy_parameter): Use gdbpy_parameter_value.
3877 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 3878
ce72ce41
MGD
38792010-04-29 Matthew Gretton-Dann <[email protected]>
3880
3881 * MAINTAINERS: Add myself for write after approval privileges.
3882
6aecb9c2
JB
38832010-04-29 Mihail Zenkov <[email protected]>
3884
3885 D language support.
3886 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
3887 (COMMON_OBS): Add d-lang.o d-valprint.o.
3888 (HFILES_NO_SRCDIR): Add d-lang.h.
3889 * NEWS: Mention D language support.
3890 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
3891 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
3892 * d-lang.c: New file.
3893 * d-lang.h: New file.
3894 * d-valprint.c: New file.
3895 * defs.h (enum language): Add language_d.
3896 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
3897 * language.c (binop_result_type, integral_type, character_type)
3898 (string_type, boolean_type, structured_type): Add language_d.
3899 * symfile.c (init_filename_language_table): Add language_d.
3900 * symtab.c: Include d-lang.h.
3901 (symbol_init_language_specific, symbol_find_demangled_name)
3902 (symbol_natural_name, lookup_symbol_in_language)
3903 (symbol_demangled_name, symbol_matches_domain): Add language_d.
3904
6f992fbf
JB
39052010-04-27 Joel Brobecker <[email protected]>
3906
3907 * solib-svr4.c (solib_svr4_r_map): Expand function description.
3908
dde59185
JB
39092010-04-27 Joel Brobecker <[email protected]>
3910
3911 * symfile.c (init_filename_language_table): Register .dg files
3912 with language_ada.
3913
d09ce91e
JB
39142010-04-27 Joel Brobecker <[email protected]>
3915
3916 * gdbtypes.h (struct main_type): Expand comment about target_type
3917 field.
3918
67f1675e
JB
39192010-04-27 Pedro Alves <[email protected]>
3920 Tristan Gingold <[email protected]>
02aeec7b
JB
3921
3922 * symfile.c (reread_symbols): Also search for file in libraries.
3923 Update comment.
3924
dfd0fe27
JB
39252010-04-27 Joel Brobecker <[email protected]>
3926
3927 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
3928 in terms of configuration.
3929
0133421a
JK
39302010-04-27 Jan Kratochvil <[email protected]>
3931
3932 * objfiles.c: Include solist.h.
3933 (free_all_objfiles): New variable so. Check stale solist objfiles.
3934 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
3935 and no_shared_libraries.
3936
e78f4312
JB
39372010-04-27 Joel Brobecker <[email protected]>
3938
3939 ARI warning fix.
3940 * python/py-auto-load.c (source_section_scripts): Remove trailing
3941 new-line in i18n string.
3942
9214d371
DE
39432010-04-26 Doug Evans <[email protected]>
3944
3945 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
3946
3f172e24
TT
39472010-04-26 Tom Tromey <[email protected]>
3948
3949 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
3950 command list.
3951
e790e06e
PM
39522010-04-26 Pierre Muller <[email protected]>
3953
3954 Removal of config/i386/nm-i386sol2.h native configuration file.
3955 * config/i386/nm-i386sol2.h: Remove file.
3956 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
3957 * config/i386/sol2-64.mh: Idem.
88562582
PM
3958 * config/djgpp/fnchange.lst: Remove reference to that file.
3959 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 3960
b7da9e9f
PM
39612010-04-26 Pierre Muller <[email protected]>
3962
3963 PR breakpoints/11531.
3964 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
3965 macro definition and related comment.
3966 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
3967 (resume): Remove code and comment related to this macro.
3968
72f6eb52
JK
39692010-04-26 Jan Kratochvil <[email protected]>
3970
3971 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
3972 Fix whitespace.
3973
ab38a727
PA
39742010-04-24 Pedro Alves <[email protected]>
3975
3976 * defs.h: Adjust comment.
3977 * filesystem.h, filesystem.c: New files.
3978 * Makefile.in (SFILES): Add filesystem.c.
3979 (COMMON_OBS): Add filesystem.o.
3980 * solib.c (solib_find): Handle DOS-based filesystems. Handle
3981 different target and host path flavours.
3982 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
3983 has_dos_based_file_system on the gdbarch.
3984 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
3985 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
3986 * i386-tdep.c (i386_go32_init_abi): Ditto.
3987 * gdbarch.sh (has_dos_based_file_system): New.
3988 * gdbarch.h, gdbarch.c: Regenerate.
3989 * NEWS: Mention improved support for remote targets with DOS-based
3990 filesystems. Mention new `set/show target-file-system-kind'
3991 commands.
3992
35c9c7ba
SS
39932010-04-23 Stan Shebs <[email protected]>
3994
3995 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
3996 comments.
3997 (struct agent_reqs): Remove.
3998 (ax_reg_mask): Declare.
3999 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4000 (free_agent_expr): Free reg_mask.
4001 (ax_print): Add scope and register mask info.
4002 (ax_reqs): Remove agent_reqs argument, use agent expression
4003 fields, and move part of register mask computation to...
4004 (ax_reg_mask): New function.
4005 * ax-gdb.c (gen_trace_static_fields): Call it.
4006 (gen_traced_pop): Ditto.
4007 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4008 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4009 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4010 (gen_eval_for_expr): Ditto, and require an rvalue.
4011 (agent_command): Call ax_reqs.
4012 (agent_eval_command): Ditto.
4013 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4014 (validate_action_line): Ditto.
4015 (collect_symbol): Ditto.
4016 (encode_actions_1): Ditto.
4017
492928e4
JK
40182010-04-23 Daniel Jacobowitz <[email protected]>
4019 Paul Pluzhnikov <[email protected]>
4020 Jan Kratochvil <[email protected]>
4021
4022 Fix deadlock on looped list of loaded shared objects.
4023 * solib-svr4.c (LM_PREV): New function.
4024 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4025 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4026 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4027 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4028
66d09542
DE
40292010-04-23 Doug Evans <[email protected]>
4030
88a1906b
DE
4031 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4032 python.
4033 * configure: Regenerate.
4034 * main.c: #include "python/python.h".
4035 (captured_main): Defer loading auto-loaded scripts until after
4036 local_gdbinit has been sourced.
4037 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4038 (load_auto_scripts_for_objfile): New function.
4039 (auto_load_new_objfile): Call it.
4040 * python/python.h (gdbpy_global_auto_load): Declare.
4041 (load_auto_scripts_for_objfile): Declare.
4042
66d09542
DE
4043 Add support for auto-loading scripts from .debug_gdb_scripts section.
4044 * NEWS: Add entry for .debug_gdb_scripts.
4045 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4046 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4047 (py-auto-load.o): New rule.
4048 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4049 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4050 * python/py-auto-load.c: New file.
4051 * python/python-internal.h: #include <stdio.h>.
4052 (set_python_list, show_python_list): Declare.
4053 (gdbpy_initialize_auto_load): Declare.
4054 (source_python_script_for_objfile): Declare.
4055 * python/python.c: Remove #include of observer.h.
4056 (gdbpy_auto_load): Moved to py-auto-load.c.
4057 (GDBPY_AUTO_FILENAME): Ditto.
4058 (gdbpy_new_objfile): Delete.
4059 (source_python_script_for_objfile): New function.
4060 (set_python_list, show_python_list): Make externally visible.
4061 (_initialize_python): Move "auto-load" command to py-auto-load.c
4062 and observer_attach_new_objfile to py-auto-load.c.
4063
3a48e6ff 40642010-04-23 Jerome Guitton <[email protected]>
0407b3f1 4065
3a48e6ff
JG
4066 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4067 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4068 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4069 New constants.
4070 (alpha_heuristic_analyze_probing_loop): New function.
4071 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4072 and handle cases when a stack probe loop is generated.
4073 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4074 (alpha_mdebug_max_frame_size_exceeded): New function.
4075 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4076 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4077 Return 0 when the maximum debuggable frame size has been exceeded.
4078
e4166a49
JB
40792010-04-23 Joel Brobecker <[email protected]>
4080
4081 Fix ARI warning.
4082 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4083
8bd10a10
CM
40842010-04-20 Chris Moller <[email protected]>
4085
4086 PR 10179
4087
4088 * symtab.c (rbreak_command): Added code to include a filename
4089 specification in the rbreak argument.
4090 * NEWS: Added a brief description of filename-qualified rbreak.
4091
c0201579
JK
40922010-04-22 Jan Kratochvil <[email protected]>
4093
4094 Fix crashes on dangling display expressions.
4095 * ada-lang.c (ada_operator_check): New function.
4096 (ada_exp_descriptor): Fill-in the field operator_check.
4097 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4098 * jv-lang.c (exp_descriptor_java): Likewise.
4099 * m2-lang.c (exp_descriptor_modula2): Likewise.
4100 * scm-lang.c (exp_descriptor_scm): Likewise.
4101 * parse.c (exp_descriptor_standard): Likewise.
4102 (operator_check_standard): New function.
4103 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4104 * parser-defs.h (struct exp_descriptor): New field operator_check.
4105 (operator_check_standard, exp_uses_objfile): New declarations.
4106 * printcmd.c: Remove the inclusion of solib.h.
4107 (display_uses_solib_p): Remove the function.
4108 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4109 and exp_uses_objfile instead of display_uses_solib_p.
4110 * solist.h (struct so_list) <objfile>: New comment.
4111 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4112 * symtab.h (lookup_objfile_from_block): New declaration.
4113 (struct general_symbol_info) <obj_section>: Extend the comment.
4114
6ffbb7ab
TJB
41152010-04-22 Sergio Durigan Junior <[email protected]>
4116 Thiago Jung Bauermann <[email protected]>
4117
4118 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4119 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4120 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4121 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4122 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4123 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4124 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4125 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4126 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4127 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4128 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4129 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4130 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4131 Define, in case <ptrace.h> doesn't provide it.
4132 (booke_debug_info): New variable.
4133 (max_slots_number): Ditto.
4134 (hw_break_tuple): New struct.
4135 (thread_points): Ditto.
4136 (ppc_threads): New variable.
4137 (PPC_DEBUG_CURRENT_VERSION): New define.
4138 (have_ptrace_new_debug_booke): New function.
4139 (ppc_linux_check_watch_resources): Renamed to ...
4140 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4141 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4142 (booke_cmp_hw_point): New function.
4143 (booke_find_thread_points_by_tid): Ditto.
4144 (booke_insert_point): Ditto.
4145 (booke_remove_point): Ditto.
4146 (ppc_linux_insert_hw_breakpoint): Ditto.
4147 (ppc_linux_remove_hw_breakpoint): Ditto.
4148 (get_trigger_type): Ditto.
4149 (ppc_linux_insert_watchpoint): Handle BookE processors.
4150 (ppc_linux_remove_watchpoint): Ditto.
4151 (ppc_linux_new_thread): Ditto.
4152 (ppc_linux_thread_exit): New function..
4153 (ppc_linux_stopped_data_address): Handle BookE processors.
4154 (ppc_linux_watchpoint_addr_within_range): Ditto.
4155 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4156 to_remove_hw_breakpoint fields of the target operations struct.
4157 Add observe for the thread_exit event.
4158
be0d2954
L
41592010-04-22 H.J. Lu <[email protected]>
4160
4161 * i386-linux-nat.c (regmap): Removed.
4162 (fetch_register): Replace regmap with
4163 i386_linux_gregset_reg_offset.
4164 (store_register): Likewise.
4165 (supply_gregset): Likewise.
4166 (fill_gregset): Likewise.
4167
4168 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4169 global.
4170
4171 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4172
f56dcb88
CM
41732010-04-22 Chris Moller <[email protected]>
4174
4175 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
4176 method of popping recursion-detection stack with a method based on
4177 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
4178 the static array obstack rather than the static member obstack.)
4179
6cd6a2ae
L
41802010-04-22 H.J. Lu <[email protected]>
4181
4182 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4183 (_initialize_amd64_linux_nat): Replace
4184 amd64_linux_gregset64_reg_offset with
4185 amd64_linux_gregset_reg_offset.
4186
4187 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4188 global.
4189
4190 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4191
621791b8
PM
41922010-04-22 Pierre Muller <[email protected]>
4193
4194 PR stabs/11479.
4195 * stabsread.c (set_length_in_type_chain): New function.
4196 (read_struct_type): Call set_length_in_type_chain function.
4197 (read_enum_type): Idem.
4198
105c2d85
SS
41992010-04-21 Stan Shebs <[email protected]>
4200 Nathan Sidwell <[email protected]>
4201
4202 * tracepoint.c (trace_save): Open in binary mode.
4203
9a22f0d0
PM
42042010-04-22 Pierre Muller <[email protected]>
4205
4206 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4207 fields.
0407b3f1 4208 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
4209 builtin_char32 fields.
4210 * printcmd.c (decode_format): Set char size to '\0'
4211 for strings unless explicit size is given.
4212 (print_formatted): Correct calculation of NEXT_ADDRESS
4213 for 16 or 32 bit strings.
4214 (do_examine): Do not force byte size for strings.
4215 Use builtin_char16 and builtin_char32 types to display
0407b3f1 4216 16 or 32 bit-wide strings.
9a22f0d0
PM
4217 (x_command): Set LAST_SIZE to 'b' for string type.
4218
f335d1b3
L
42192010-04-21 H.J. Lu <[email protected]>
4220
4221 PR corefiles/11523
4222 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4223 XCR0 first.
4224
4225 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4226 there is no .reg-xstate section.
4227 (i386_linux_core_read_description): Check XCR0 first.
4228
a9789a6b
MF
42292010-04-21 Mike Frysinger <[email protected]>
4230
4231 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4232 for len <= 8.
4233
0b66f317
CM
42342010-04-21 Chris Moller <[email protected]>
4235
4236 PR 9167
4237 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
4238 method of popping recursion-detection stack with a method based on
4239 obstack_object_size().
0b66f317 4240
6e354e5e
PM
42412010-04-21 Pierre Muller <[email protected]>
4242
4243 PR pascal/11492.
4244 * p-valprint.c (pascal_val_print): Fix default printing of integer
4245 arrays.
4246
57174f31
PM
42472010-04-21 Pierre Muller <[email protected]>
4248
4249 Fix compilation warning on gcc-4.1.2.
4250 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4251 local variable`pc' to zero.
4252
6fbc7cd8
JB
42532010-04-20 Joel Brobecker <[email protected]>
4254
4255 Implement thread support with core files on alpha-tru64.
4256 * dec-thread.c (dec_thread_find_new_threads): New function,
4257 extracted from resync_thread_list.
4258 (resync_thread_list): Add OPS parameter. Replace extracted-out
4259 code by call to dec_thread_find_new_threads.
4260 (dec_thread_wait): Update call to resync_thread_list.
4261 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4262
438c98a1
JB
42632010-04-20 Joel Brobecker <[email protected]>
4264
4265 * ada-lang.c (value_pointer): New function.
4266 (make_array_descriptor): Call value_pointer to convert addresses to
4267 pointers.
4268
2971b56b
JB
42692010-04-20 Joel Brobecker <[email protected]>
4270
4271 * rs6000-aix-tdep.c: #include exceptions.h.
4272 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4273 while reading the memory at ADDR, then ADDR cannot be a function
4274 descriptor.
4275
be942545
JB
42762010-04-20 Joel Brobecker <[email protected]>
4277
4278 * ada-typeprint.c (ada_print_typedef): New function.
4279 * ada-lang.h (ada_print_typedef): Add declaration.
4280 * ada-lang.c (ada_language_defn): set la_print_typdef field
4281 to ada_print_typedef.
4282
1ca8fce0
JB
42832010-04-20 Joel Brobecker <[email protected]>
4284
4285 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4286
e9ef4f39
JB
42872010-04-20 Joel Brobecker <[email protected]>
4288
4289 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4290 (iterate_over_mappings): Adjust function profile. Add declaration.
4291 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4292 Adjust accordingly.
4293
e294797a
JB
42942010-04-20 Joel Brobecker <[email protected]>
4295
4296 * procfs.c (solib_mappings_callback): Move function up to avoid
4297 a compiler warning.
4298
a223f1e7
JB
42992010-04-20 Joel Brobecker <[email protected]>
4300
4301 * procfs.c (find_signalled_thread, find_stop_signal): Move
4302 these functions down to define them only when used.
4303
0c3acc09
JB
43042010-04-20 Joel Brobecker <[email protected]>
4305
4306 * valprint.c (common_val_print): Fix the value before extracting
4307 its contents.
4308 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4309 * ada-lang.h (ada_to_fixed_value): New function declaration.
4310 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4311 to avoid code duplication and fix a bug in the handling of
4312 fixed types contents.
4313
31ef98ae
TT
43142010-04-20 Tom Tromey <[email protected]>
4315
4316 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4317 (read_partial_die): Likewise.
4318 (dwarf_attr_name): Likewise.
4319
ec31cde5 43202010-04-20 Chris Moller <[email protected]>
0407b3f1 4321
ec31cde5
CM
4322 PR 10867
4323
4324 * cp-valprint.c (global): Adding new static array recursion
4325 detection obstack.
4326 (cp_print_value_fields, cp_print_static_field): Added new static
4327 array recursion detection code.
4328
e0e0e543
MK
43292010-04-20 Mark Kettenis <[email protected]>
4330
4331 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4332 general-purpose register set should be 68 instead of 144.
4333 (i386_linux_sse_regset_sections): Likewise.
4334 (i386_linux_avx_regset_sections): Likewise.
4335
08922a10
SS
43362010-04-20 Stan Shebs <[email protected]>
4337 Nathan Sidwell <[email protected]>
4338
4339 * dwarf2loc.c (struct axs_var_loc): New struct.
4340 (dwarf2_tracepoint_var_loc): New function.
4341 (dwarf2_tracepoint_var_access): New function.
4342 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4343 with DW_OP_piece.
4344 (locexpr_describe_location_piece): New function.
4345 (locexpr_describe_location_1): New function.
4346 (locexpr_describe_location): Call it, update signature.
4347 (loclist_describe_location): Rewrite to loop over locations,
4348 update signature.
4349 * symtab.h (struct symbol_computed_ops): Add address to
4350 describe_location arguments, return void.
4351 * printcmd.c (address_info): Get context PC, pass to computed
4352 location description.
4353 * tracepoint.c (scope_info): Ditto.
4354 * ax-gdb.c (trace_kludge): Export.
4355
2dc7f7b3
TT
43562010-04-20 Tom Tromey <[email protected]>
4357
4358 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4359 (struct dwarf2_cie) <segment_size>: New field.
4360 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4361 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4362 DW_FORM_exprloc.
4363 (read_attribute_value): Handle DW_FORM_flag_present,
4364 DW_FORM_sec_offset, DW_FORM_exprloc.
4365 (dump_die_shallow): Likewise.
4366 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4367 (dwarf2_const_value): Handle DW_FORM_exprloc.
4368 (attr_form_is_block): Likewise.
4369 (struct line_header) <maximum_ops_per_instruction>: New field.
4370 (dwarf_decode_line_header): Set new field.
4371 (dwarf_decode_lines): Handle new field.
4372
ce4b0682
SDJ
43732010-04-20 Jan Kratochvil <[email protected]>
4374
4375 * f-exp.y: Add new production to recognize the `logical*8' type.
4376 (LOGICAL_S8_KEYWORD): New token.
4377 * f-lang.c (enum f_primitive_types)
4378 <f_primitive_type_logical_s8>: New field.
4379 (f_language_arch_info): Handling `logical*8' type.
4380 (build_fortran_types): Building `logical*8' type.
4381 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4382
ff9f22f1
DE
43832010-04-19 Doug Evans <[email protected]>
4384
4385 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4386 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4387 (pipe_close): Ditto.
4388
437125bd
PM
43892010-04-19 Pierre Muller <[email protected]>
4390
4391 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4392
e8e6c82e
PM
43932010-04-19 Pierre Muller <[email protected]>
4394
4395 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4396 type to void function.
4397
4136fdd2
SS
43982010-04-19 Stan Shebs <[email protected]>
4399 Vladimir Prus <[email protected]>
4400
4401 * tracepoint.c (tfind_1): Add missing newline, report exit from
4402 tfind mode as such.
4403 * target.c (update_current_target): Make default
4404 to_trace_find return -1.
4405
0c4b2e63
MF
44062010-04-19 Mike Frysinger <[email protected]>
4407
4408 * objc-lang.c (find_methods): Move symname check up.
4409
78076abc
PA
44102010-04-19 Pedro Alves <[email protected]>
4411
4412 * ada-lang.c (print_recreate_exception)
4413 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4414 not "catch unhandled".
4415
6149aea9
PA
44162010-04-19 Pedro Alves <[email protected]>
4417
4418 PR breakpoints/8554.
4419
4420 Implement `save-breakpoints'.
4421
4422 * breakpoint.c (save_cmdlist): New.
4423 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4424 to save_cmdlist.
4425 (print_recreate_catch_fork): New.
4426 (catch_fork_breakpoint_ops): Install it.
4427 (print_recreate_catch_vfork): New.
4428 (catch_vfork_breakpoint_ops): Install it.
4429 (print_recreate_catch_syscall): New.
4430 (catch_syscall_breakpoint_ops): Install it.
4431 (print_recreate_catch_exec): New.
4432 (catch_exec_breakpoint_ops): Install it.
4433 (print_recreate_exception_catchpoint): New.
4434 (gnu_v3_exception_catchpoint_ops): Install it.
4435 (save_breakpoints): New, based on tracepoint_save_command, but
4436 handle all breakpoint types.
4437 (save_breakpoints_command): New.
4438 (tracepoint_save_command): Rename to...
4439 (save_tracepoints_command): ... this, and reimplement using
4440 save_breakpoints.
4441 (save_command): New.
4442 (_initialize_breakpoints): Install the "save" command prefix.
4443 Install the "save breakpoints" command. Make "save-tracepoints" a
4444 deprecated alias for "save tracepoints".
4445 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4446 * ada-lang.c (print_recreate_exception): New.
4447 (print_recreate_catch_exception): New.
4448 (catch_exception_breakpoint_ops): Install it.
4449 (print_recreate_catch_exception_unhandled): New.
4450 (catch_exception_unhandled_breakpoint_ops): Install it.
4451 (print_recreate_catch_assert): New.
4452 (catch_assert_breakpoint_ops): Install it.
4453
4454 * NEWS: Mention the new `save breakpoints' command. Mention the
4455 new `save tracepoints' alias and that `save-tracepoints' is now
4456 deprecated.
4457
0a8fce9a
PA
44582010-04-18 Pedro Alves <[email protected]>
4459
4460 PR tui/9217
4461
4462 * tui/tui-out.c: Include cli-out.h.
4463 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4464 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4465 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4466 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4467 declarations.
4468 (struct ui_out_data): Rename to...
4469 (struct tui_ui_out_data): ... this. Remove `stream' and
4470 `suppress_output' fields, and inherit cli_ui_out_data.
4471 (tui_out_data): New typedef.
4472 (tui_ui_out_impl): Don't initialize fields staticaly.
4473 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4474 (tui_begin, tui_end): Delete.
4475 (tui_field_int): Adjust to delegate most work to the base type.
4476 (tui_field_skip): Delete.
4477 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4478 delegate most work to the base type.
4479 (tui_spaces): Delete.
4480 (tui_text): Adjust to delegate most work to the base type.
4481 (tui_message): Delete.
4482 (tui_wrap_hint): Delete.
4483 (tui_flush): Delete.
4484 (out_field_fmt): Delete.
4485 (field_separator): Delete.
4486 (tui_out_new): Adjust to initialize the base type.
4487 (_initialize_tui_out): Initialize tui_ui_out_impl.
4488 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4489 cli_ui_out_data.
4490 (cli_out_data): Adjust.
4491 (cli_ui_out_impl): Make extern.
4492 (cli_table_header, cli_field_int, cli_field_skip): Use
4493 uo_field_string instead of cli_field_string.
4494 (cli_redirect): Adjust to use cli_out_data.
4495 (cli_out_data_ctor): New.
4496 (cli_out_new): Use it.
4497 * cli-out.h (struct ui_file): Remove forward declaration.
4498 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4499 (cli_ui_out_impl): Declare.
4500 (cli_out_data_ctor): Declare.
4501 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4502 (uo_field_string): No longer static.
4503 (ui_out_data): Change return type to void pointer.
4504 (ui_out_new): Change `data' parameter type to void pointer.
4505 * ui-out.h (struct ui_out_data): Don't forward declare.
4506 (ui_out_data): Change return type to void pointer.
4507 (ui_out_new): Change `data' parameter type to void pointer.
4508 (uo_field_string): Declare.
4509
172240dd
PA
45102010-04-17 Pedro Alves <[email protected]>
4511
4512 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4513 instead of always false.
4514
ed41462c
L
45152010-04-17 H.J. Lu <[email protected]>
4516
4517 PR corefiles/11511
4518 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4519 orig_rax.
4520
cc60f2e3
PA
45212010-04-17 Pedro Alves <[email protected]>
4522
4523 * breakpoint.c (watchpoints_triggered): Use
4524 is_hardware_watchpoint.
4525 (watchpoints_triggered): Ditto.
4526 (bpstat_check_location): Use is_watchpoint and
4527 is_hardware_watchpoint.
4528 (bpstat_check_watchpoint): Use is_watchpoint and
4529 is_hardware_watchpoint.
4530 (bpstat_stop_status): Fix comment.
4531 (user_settable_breakpoint): Use is_watchpoint.
4532 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4533 (disable_watchpoints_before_interactive_call_start): Use
4534 is_watchpoint.
4535 (enable_watchpoints_after_interactive_call_stop): Use
4536 is_watchpoint.
4537 (clear_command): Use is_watchpoint.
4538 (do_enable_breakpoint): Use is_watchpoint.
4539
cb7db0f2
MF
45402010-04-16 Mike Frysinger <[email protected]>
4541
4542 * solib-frv.c (enable_break1_done): Delete.
4543 (enable_break2): Do not check enable_break1_done. Move the
4544 enable_break2_done setting and call to
4545 remove_solib_event_breakpoints() to the end. Return without
4546 warning when the contents of _dl_debug_addr are 0.
4547 (enable_break): Do not set enable_break1_done.
4548 (frv_clear_solib): Likewise.
4549
d77b48cf
KB
45502010-04-16 Kevin Buettner <[email protected]>
4551
4552 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4553 instead of an error if no PLT entry is found. Return a
4554 potentially useful result.
4555 (m32c_m16c_pointer_to_address): Add code to search for function
4556 address when no .plt entry is found.
4557
f90824dc
SS
45582010-04-16 Stan Shebs <[email protected]>
4559
4560 * tracepoint.c (trace_variable_command): Run a cleanup.
4561
9b79b476
PM
45622010-04-16 Pierre Muller <[email protected]>
4563
4564 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4565
711e434b
PM
45662010-04-16 Pierre Muller <[email protected]>
4567
4568 Support for Windows OS Thread Information Block.
4569 * NEWS: Document new feature.
4570 * remote.c (PACKET_qGetTIBAddr): New enum element.
4571 (remote_get_tib_address): New function.
4572 (init_remote_ops): Set to_get_tib_address field
4573 to remote_get_tib_address.
4574 (_initialize_remote): Add add_packet_config_cmd
4575 for PACKET_qGetTIBAddr.
4576 * target.c (update_current_target): Set default value for
4577 new to_get_tib_address field.
4578 * target.h (target_ops): New field to_get_tib_address.
4579 (target_get_tib_address): New macro.
4580 * windows-nat.c (thread_info): Add thread_local_base field.
4581 (windows_add_thread): Add tlb argument of type 'void *'.
4582 (fake_create_process): Adapt windows_add_thread call.
4583 (get_windows_debug_event): Idem.
4584 (windows_get_tib_address): New function.
4585 (init_windows_ops): Set to_get_tib_address field
4586 to remote_get_tib_address.
4587 (_initialize_windows_nat): Replace info_w32_cmdlist
4588 initialization by a call to init_w32_command_list.
4589 (info_w32_command, info_w32_cmdlist): Removed from here...
4590 to windows-tdep.c file.
4591 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 4592 (init_w32_command_list): New external function
711e434b
PM
4593 declaration.
4594 * windows-tdep.c: Add several headers.
4595 (info_w32_cmdlist): to here, made global.
4596 (thread_information_32): New struct.
4597 (thread_information_64): New struct.
4598 (TIB_NAME): New char array.
4599 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
4600 (maint_display_all_tib): New static variable.
4601 (windows_get_tlb_type): New function.
4602 (tlb_value_read, tlb_value_write): New functions.
4603 (tlb_value_funcs): New static struct.
4604 (tlb_make_value): New function.
4605 (display_one_tib): New function.
4606 (display_tib): New function.
4607 (show_maint_show_all_tib):New function.
4608 (info_w32_command): Moved from windows-nat.c.
4609 (init_w32_command_list): New function.
4610 (_initialize_windows_tdep): New function.
4611 New "maint set/show show-all-tib" command
4612 New "$_tlb" internal variable.
4613
cae3f17b
JB
46142010-04-16 Joel Brobecker <[email protected]>
4615
4616 * tui/tui-regs.c (tui_display_register): Add comment about
4617 a couple of casts.
4618 * tui/tui-stack.c (tui_show_locator_content): Ditto.
4619
2ce6d6bf
SS
46202010-04-15 Stan Shebs <[email protected]>
4621
4622 * frame.c: Include tracepoint.h.
4623 (get_current_frame): Allow a trace frame to be an alternate source
4624 of stack frame data.
4625 * tracepoint.c (tfind_1): Don't try to get current stack frame if
4626 it won't succeed.
4627
7e559477
PA
46282010-04-15 Pedro Alves <[email protected]>
4629
4630 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
4631 flags.
4632 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
4633
3f7b2faa
DE
46342010-04-15 Doug Evans <[email protected]>
4635
fa33c3cd
DE
4636 * NEWS: Add entry for python program space support.
4637 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
4638 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
4639 (py-progspace.o): New rule.
4640 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
4641 function.
4642 (find_pretty_printer_from_progspace): New function.
4643 (find_pretty_printer_from_gdb): New function.
4644 (find_pretty_printer): Rewrite.
4645 * python/py-progspace.c: New file.
4646 * python/python-internal.h (program_space): Add forward decl.
4647 (pspace_to_pspace_object, pspy_get_printers): Declare.
4648 (gdbpy_initialize_pspace): Declare.
4649 * python/python.c: #include "progspace.h".
4650 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
4651 (_initialize_python): Call gdbpy_initialize_pspace.
4652 (GdbMethods): Add current_progspace, progspaces.
4653
3f7b2faa
DE
4654 Add -s option to source command.
4655 * NEWS: Document new option.
4656 * cli/cli-cmds.c (find_and_open_script): Add function comment.
4657 Delete from_tty and cleanupp args. Split filep arg into file and
4658 full_pathp. New arg search_path.
4659 (source_script_from_stream): New function.
4660 (source_script_with_search): New function.
4661 (source_script): Rewrite.
4662 (source_command): Parse "-s" option.
4663 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
4664 * python/python.c (source_python_script): Make file arg a const char *.
4665 Don't call fclose, leave for caller.
4666 * python/python.h (source_python_script): Update.
4667
a86988f2
PA
46682010-04-14 Daniel Jacobowitz <[email protected]>
4669 Pedro Alves <[email protected]>
4670
4671 Avoid rereading shared libraries that haven't changed.
4672
4673 * solib.c (free_so_symbols): New function, from ...
4674 (free_so): ... here. Call it.
4675 (solib_read_symbols): Don't warn here if symbols have already been
4676 loaded.
4677 (solib_add): Warn here instead, if a pattern was specified.
4678 (reload_shared_libraries_1): New.
4679 (reload_shared_libraries): Rewrite to not fetch the library list.
4680
e6d9b9c2
DE
46812010-04-14 Doug Evans <[email protected]>
4682
589390d6 4683 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
4684 concatenating string to search path.
4685
516ba659
PA
46862010-04-14 Pedro Alves <[email protected]>
4687
4688 * objfiles.h (gdb_bfd_close_or_warn): Declare.
4689 * objfiles.c (gdb_bfd_close_or_warn): New.
4690 * corelow.c: Include objfiles.h
4691 (core_close): Use gdb_bfd_close_or_warn.
4692 * elfread.c (build_id_verify): Ditto.
4693 * exec.c (exec_close, exec_close_1): Ditto.
4694
048d532d
PA
46952010-04-14 Daniel Jacobowitz <[email protected]>
4696 Pedro Alves <[email protected]>
4697
4698 Group errors for many missing shared libraries.
4699
4700 * solist.h (struct so_list): Remove from_tty.
4701 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
4702 (solib_map_sections): Take so_list argument. Return 0 if we
4703 failed to open a BFD. Add target sections here.
4704 (symbol_add_stub): Delete.
4705 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
4706 not from_tty copied from the so_list. Don't warn a second time
4707 for a missing library.
4708 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
4709 add to the section table here. Print out a single warning for all
4710 missing libraries.
4711 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
4712 flags.
4713
044c0f87
PM
47142010-04-14 Phil Muldoon <[email protected]>
4715
4716 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
4717 error/warning messages. Capitalize and use complete sentences.
4718 (blpy_block_syms_iternext): Likewise.
4719 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
4720 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
4721 (frame_info_to_frame_object, frapy_read_var)
4722 (gdbpy_frame_stop_reason_string): Likewise.
4723 * python/py-lazy-string.c (stpy_convert_to_value)
4724 (gdbpy_create_lazy_string_object): Likewise.
4725 * python/py-objfile.c (objfpy_set_printers): Likewise.
4726 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
4727 * python/python.c (parameter_to_python): Likewise.
4728 * python/py-type.c (typy_range, typy_target): Likewise.
4729 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
4730 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
4731
4732
79f283fe
PM
47332010-04-14 Phil Muldoon <[email protected]>
4734
4735 PR python/11381
4736
4737 * python/py-prettyprint.c (pretty_print_one_value): Test for
4738 Py_None.
4739 (print_string_repr): Test for Py_None. Set flags accordingly.
4740 Return value depending on return type.
4741 (print_children): Take a value indicating whether data was printed
4742 before this function was called. Alter output accordingly.
4743 (apply_val_pretty_printer): Capture return value from
4744 print_string_repr and pass to print_children.
4745
4ac5d44e
MK
47462010-04-13 Mark Kettenis <[email protected]>
4747
e1caee70 4748 PR corefiles/11481
4ac5d44e
MK
4749 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
4750 register note sections.
4751 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
4752 New variables.
4753 (i386_linux_init_abi): Install list of supported register note
4754 sections that matches the target description.
4755
ad91cd99
PA
47562010-04-13 Pedro Alves <[email protected]>
4757
4758 * remote.c (remote_get_noisy_reply): Don't error out on empty
4759 replies.
4760 (remote_start_remote): Update and merge tracepoints and trace
4761 state variables as long as the target supports tracepoints.
4762 (remote_trace_init): Fix prototype.
4763 (remote_download_trace_state_variable): Validate reply.
4764 (remote_trace_set_readonly_regions): Fix prototype.
4765 (remote_trace_start): Fix prototype. Check for empty reply.
4766 (remote_get_trace_status): Small cleanup.
4767 (remote_trace_stop): Fix prototype. Check for empty reply.
4768 (remote_trace_find): Check for empty reply.
4769 (remote_save_trace_data): Validate reply.
4770 (remote_set_disconnected_tracing): Check for empty reply, and
4771 validate reply.
4772 (remote_set_circular_trace_buffer): Ditto.
4773
ae3bccd4
PM
47742010-04-13 Pierre Muller <[email protected]>
4775
4776 Suppress unused value warning during compilation.
4777 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
4778 calls to void.
4779 * tui/tui-stack.c (tui_show_locator_content): Likewise.
4780
523136f2
SS
47812010-04-12 Stan Shebs <[email protected]>
4782
4783 * tracepoint.c (tfile_xfer_partial): Check read result.
4784
0d18d720
MF
47852010-04-12 Mike Frysinger <[email protected]>
4786
4787 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
4788 * remote-sim.c (gdbsim_files_info): Likewise.
4789
3b273a55
RE
47902010-04-12 Matthew Gretton-Dann <[email protected]>
4791
4792 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
4793 * arm-linux-nat.c (arm_linux_vfp_register_count): New
4794 variable.
4795 (fetch_vfp_registers): New function to fetch VFP registers.
4796 (store_vfp_registers): New function to store VFP registers.
4797 (arm_linux_fetch_inferior_registers): Add support for VFP
4798 registers.
4799 (arm_linux_store_inferior_registers): Likewise.
4800 (arm_linux_read_description): Likewise.
4801 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
4802 until we need it.
4803
778c7095
L
48042010-04-11 H.J. Lu <[email protected]>
4805
4806 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
4807 tdep.
4808 (amd64_collect_xstateregset): Likewise.
4809
2114d44c
SS
48102010-04-09 Stan Shebs <[email protected]>
4811
87290684
SS
4812 * tracepoint.c (trace_status_mi): Report frames created.
4813
2114d44c
SS
4814 * tracepoint.c (trace_dump_command): Include default-collect
4815 expressions.
4816
86da934b
UW
48172010-04-09 Ulrich Weigand <[email protected]>
4818
4819 * symtab.c (find_function_start_sal): Never return SAL pointing
4820 before function start address, even if line info is missing.
4821
2d6e647a 48222010-04-09 Pedro Alves <[email protected]>
d337e9f0
PA
4823
4824 * NEWS: Mention tracepoints support.
4825
a97153c7
PA
48262010-04-09 Pedro Alves <[email protected]>
4827
4828 * tracepoint.c (trace_status_mi): Report disconnected tracing and
4829 circular trace buffer statuses.
4830
7a66d603
JK
48312010-04-09 Jan Kratochvil <[email protected]>
4832
4833 * config/djgpp/fnchange.lst: Fix typo in translations for
4834 symbol-without-target_section.exp and symbol-without-target_section.c.
4835
2566ad2d
PA
48362010-04-09 Pedro Alves <[email protected]>
4837
4838 * breakpoint.c (condition_command): Pass condition expression to
4839 set_breakpoint_condition stripped from breakpoint number.
4840
adc36818
PM
48412010-04-09 Phil Muldoon <[email protected]>
4842 Thiago Jung Bauermann <[email protected]>
2566ad2d 4843 Tom Tromey <[email protected]>
adc36818
PM
4844
4845 * breakpoint.c (condition_command): Simplify. Move condition
4846 setting code to ...
4847 (set_breakpoint_condition): ... here. New function.
4848 * breakpoint.h (set_breakpoint_condition): Declare.
4849 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
4850 (SUBDIR_PYTHON_SRCS): Likewise.
4851 (py-breakpoint.o): New rule.
4852 * python/py-breakpoint.c: New file.
4853 * python/python-internal.h (gdbpy_breakpoints)
4854 (gdbpy_initialize_breakpoints): Declare.
4855 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
4856
219f2f23
PA
48572010-04-09 Pedro Alves <[email protected]>
4858
4859 * regformats/regdat.sh: Include server.h. Don't include
4860 regcache.h.
4861
33da3f1c
SS
48622010-04-08 Stan Shebs <[email protected]>
4863 Pedro Alves <[email protected]>
4864
4865 * tracepoint.h (struct trace_status): New fields disconnected_tracing
4866 and circular_buffer.
4867 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
4868 * tracepoint.c (trace_status_command): Display target's status for
4869 disconnected tracing and circular buffer.
4870 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
4871 query for non-disconnected-tracing case, remove the stop_tracing
4872 call.
4873 (tfile_open): Clear disconnected and circular buffer status.
4874 (trace_save): Save disconnected and circular buffer status.
4875 (parse_trace_status): Parse disconnected and circular buffer status,
4876 also recognize disconnected as a stop reason.
4877 * remote.c (remote_set_disconnected_tracing): Only set
4878 QTDisconnected if the remote end supports disconnected tracing.
4879 Warn otherwise, if trying to enable disconnected tracing.
4880 * infcmd.c (detach_command): Update disconnect_tracing call.
4881 * cli/cli-cmds.c (quit_command): Ditto.
4882
4e4d8374
L
48832010-04-08 H.J. Lu <[email protected]>
4884
4885 * i387-tdep.c (i387_collect_xsave): Replace abort with
4886 internal_error.
4887
ad443146
SS
48882010-04-08 Stan Shebs <[email protected]>
4889
4890 * breakpoint.c (default_collect_info): New function.
4891 (breakpoints_info): Call it.
4892 (maintenance_info_breakpoints): Ditto.
4893 (tracepoints_info): Ditto.
4894
40936b0d
L
48952010-04-08 H.J. Lu <[email protected]>
4896
4897 * i387-tdep.c (i387_collect_xsave): Re-indent.
4898
3a13a53b
L
48992010-04-08 H.J. Lu <[email protected]>
4900
4901 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
4902 if HAVE_PTRACE_GETFPXREGS is defined.
4903 (i386_linux_read_description): Set have_ptrace_getfpxregs and
4904 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
4905
4906 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
4907 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
4908 if .reg-xfp section doesn't exist.
4909 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
4910
4911 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
4912
4913 * i386-tdep.c: Include "features/i386/i386-mmx.c".
4914 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
4915 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
4916 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
4917 (i386_gdbarch_init): Update comments.
4918 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
4919
4920 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
4921
4922 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
4923
4924 * features/Makefile (i386/i386-mmx-expedite): New.
4925 (i386/i386-mmx-linux-expedite): Likewise.
4926 ($(outdir)/i386/i386-mmx.dat): Likewise.
4927 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
4928
4929 * features/i386/i386-mmx-linux.c: New.
4930 * features/i386/i386-mmx-linux.xml: Likewise.
4931 * features/i386/i386-mmx.c: Likewise.
4932 * features/i386/i386-mmx.xml: Likewise.
4933 * regformats/i386/i386-mmx-linux.dat: Likewise.
4934 * regformats/i386/i386-mmx.dat: Likewise.
4935
4936 * features/Makefile (WHICH): Add i386/i386-mmx and
4937 i386/i386-mmx-linux.
4938
08001717
DE
49392010-04-08 Doug Evans <[email protected]>
4940
4941 * source.c (openp): Skip $cdir in PATH.
4942
fff5cc64
PM
49432010-04-08 Phil Muldoon <[email protected]>
4944
4945 PR python/11417
fff5cc64 4946 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
4947 a NULL address.
4948 (gdbpy_create_lazy_string_object): Allow strings with a NULL
4949 address and a zero length.
fff5cc64 4950
f8c4f480
HZ
49512010-04-08 Hui Zhu <[email protected]>
4952
4953 * i386-tdep.c (i386_process_record): Add support for insn
4954 rdtsc.
4955
eb5cda86
DE
49562010-04-07 Doug Evans <[email protected]>
4957
4958 * python/python.c (source_python_script): Use ensure_python_env
4959 to prepare environment for script.
4960
a055a187
L
49612010-04-07 H.J. Lu <[email protected]>
4962
4963 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
4964 <sys/uio.h> and "i386-xstate.h".
4965 (PTRACE_GETREGSET): New.
4966 (PTRACE_SETREGSET): Likewise.
4967 (have_ptrace_getregset): Likewise.
4968 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
4969 registers.
4970 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
4971 registers.
4972 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
4973 (amd64_linux_store_inferior_registers): Likewise.
4974 (amd64_linux_read_description): Check and enable AVX target
4975 descriptions.
4976
4977 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
4978 and "features/i386/amd64-avx-linux.c".
4979 (amd64_linux_regset_sections): New.
4980 (amd64_linux_core_read_description): Check and enable AVX
4981 target description.
4982 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
4983 set_gdbarch_core_regset_sections.
4984 (_initialize_amd64_linux_tdep): Call
4985 initialize_tdesc_amd64_avx_linux.
4986
4987 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
4988 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
4989 (tdesc_amd64_avx_linux): New.
4990 (amd64_linux_update_xstateregset): Likewise.
4991
4992 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
4993 (amd64_ymm_names): New.
4994 (amd64_ymmh_names): Likewise.
4995 (amd64_register_name): Likewise.
4996 (amd64_supply_xstateregset): Likewise.
4997 (amd64_collect_xstateregset): Likewise.
4998 (amd64_supply_xsave): Likewise.
4999 (amd64_collect_xsave): Likewise.
5000 (AMD64_NUM_REGS): Removed.
5001 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5002 %xmmN if AVX is available.
5003 (amd64_pseudo_register_name): Support pseudo YMM registers.
5004 (amd64_regset_from_core_section): Support .reg-xstate section.
5005 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5006 and ymm0h_regnum. Call set_gdbarch_register_name.
5007 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5008
5009 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5010 AMD64_YMM15H_REGNUM.
5011 (AMD64_NUM_REGS): New.
5012 (amd64_supply_xsave): Likewise.
5013 (amd64_collect_xsave): Likewise.
5014 (amd64_register_name): Removed.
5015 (amd64_register_type): Likewise.
5016
31aeac78
L
50172010-04-07 H.J. Lu <[email protected]>
5018
5019 * i387-tdep.c: Include "i386-xstate.h".
5020 (XSAVE_XSTATE_BV_ADDR): New.
5021 (xsave_avxh_offset): Likewise.
5022 (XSAVE_AVXH_ADDR): Likewise.
5023 (i387_supply_xsave): Likewise.
5024 (i387_collect_xsave): Likewise.
5025
5026 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5027 (I387_YMM0H_REGNUM): Likewise.
5028 (I387_YMMENDH_REGNUM): Likewise.
5029 (i387_supply_xsave): Likewise.
5030 (i387_collect_xsave): Likewise.
5031
c131fcee
L
50322010-04-07 H.J. Lu <[email protected]>
5033
5034 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5035 <sys/uio.h> and "i386-xstate.h".
5036 (PTRACE_GETREGSET): New.
5037 (PTRACE_SETREGSET): Likewise.
5038 (fetch_xstateregs): Likewise.
5039 (store_xstateregs): Likewise.
5040 (GETXSTATEREGS_SUPPLIES): Likewise.
5041 (regmap): Include 8 upper YMM registers.
5042 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5043 state.
5044 (i386_linux_store_inferior_registers): Likewise.
5045 (i386_linux_read_description): Check and enable AVX target
5046 descriptions.
5047
5048 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5049 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5050 (i386_linux_regset_sections): Add ".reg-xstate".
5051 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5052 (i386_linux_core_read_xcr0): New.
5053 (i386_linux_core_read_description): Check and enable AVX target
5054 description.
5055 (i386_linux_init_abi): Set xsave_xcr0_offset.
5056 (_initialize_i386_linux_tdep): Call
5057 initialize_tdesc_i386_avx_linux.
5058
5059 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5060 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5061 (i386_linux_core_read_xcr0): New.
5062 (tdesc_i386_avx_linux): Likewise.
5063 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5064
5065 * i386-tdep.c: Include "i386-xstate.h" and
5066 "features/i386/i386-avx.c".
5067 (i386_ymm_names): New.
5068 (i386_ymmh_names): Likewise.
5069 (i386_ymmh_regnum_p): Likewise.
5070 (i386_ymm_regnum_p): Likewise.
5071 (i386_xmm_regnum_p): Likewise.
5072 (i386_register_name): Likewise.
5073 (i386_ymm_type): Likewise.
5074 (i386_supply_xstateregset): Likewise.
5075 (i386_collect_xstateregset): Likewise.
5076 (i386_sse_regnum_p): Removed.
5077 (i386_pseudo_register_name): Support pseudo YMM registers.
5078 (i386_pseudo_register_type): Likewise.
5079 (i386_pseudo_register_read): Likewise.
5080 (i386_pseudo_register_write): Likewise.
5081 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5082 %xmmN if AVX is available.
5083 (i386_regset_from_core_section): Support .reg-xstate section.
5084 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5085 (i386_process_record): Replace i386_sse_regnum_p with
5086 i386_xmm_regnum_p.
5087 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5088 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 5089 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
5090 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5091 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5092 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5093 Set ymm0_regnum.
5094 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5095
5096 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5097 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5098 i386_ymm_type.
5099 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5100 (I386_AVX_NUM_REGS): New.
5101 (i386_xmm_regnum_p): Likewise.
5102 (i386_ymm_regnum_p): Likewise.
5103 (i386_ymmh_regnum_p): Likewise.
5104
5105 * common/i386-xstate.h: New.
5106
98adf0f3
L
51072010-04-07 H.J. Lu <[email protected]>
5108
5109 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5110
5111 * features/Makefile (WHICH): Add i386/i386-avx,
5112 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5113 (i386/i386-avx-expedite): New.
5114 (i386/i386-avx-linux-expedite): Likewise.
5115 (i386/x86-64-avx-expedite):Likewise.
5116 (i386/x86-64-avx-linux-expedite): Likewise.
5117 ($(outdir)/i386/i386-avx.dat): New dependency.
5118 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5119 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5120 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5121
5122 * features/i386/32bit-avx.xml: New.
5123 * features/i386/64bit-avx.xml: Likewise.
5124 * features/i386/i386-avx-linux.c: Likewise.
5125 * features/i386/i386-avx-linux.xml: Likewise.
5126 * features/i386/i386-avx.c: Likewise.
5127 * features/i386/i386-avx.xml: Likewise.
5128 * features/i386/x86-64-avx-linux.c: Likewise.
5129 * features/i386/x86-64-avx-linux.xml: Likewise.
5130 * features/i386/x86-64-avx.c: Likewise.
5131 * features/i386/x86-64-avx.xml: Likewise.
5132 * regformats/i386/i386-avx-linux.dat: Likewise.
5133 * regformats/i386/i386-avx.dat: Likewise.
5134 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5135 * regformats/i386/x86-64-avx.dat: Likewise.
5136
05159abe
DE
51372010-04-07 Doug Evans <[email protected]>
5138
5139 * top.c (source_file_name): Make const char *.
5140 * top.h (source_file_name): Update.
5141 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5142 const char *.
5143 (script_from_file): Change `file' arg to const char *.
5144 * cli/cli-script.h (script_from_file): Update.
5145
96e39866
DE
51462010-04-06 Doug Evans <[email protected]>
5147
5148 * cli/cli-cmds.c (source_command): Run cleanups.
5149
3149d8c1
SS
51502010-04-06 Stan Shebs <[email protected]>
5151
5152 * defs.h (char_ptr): Move typedef here from...
5153 * ada-lang.c (char_ptr): Remove.
5154 * charset.c (char_ptr): Remove.
5155 * tracepoint.h (struct uploaded_string): Remove.
5156 (struct uploaded_tp): Use vectors for string arrays.
5157 * tracepoint.c (trace_save): Use vectors of actions.
5158 (parse_tracepoint_definition): Ditto.
5159 (get_uploaded_tp): Clear vectors.
5160 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5161 (next_cmd): Change to an int.
5162 (read_next_cmd): Use vector of command strings.
5163
4cc23ede
DE
51642010-04-06 Doug Evans <[email protected]>
5165
5166 * top.h (source_script, cd_command): Delete.
5167 * main.c: #include "cli/cli-cmds.h"
5168
bd333fb7
KB
51692010-04-06 Kevin Buettner <[email protected]>
5170
5171 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5172 type in bytes, not bits.
5173
ec8a089a
PM
51742010-04-06 Pierre Muller <[email protected]>
5175
5176 * stabsread.c (define_symbol): Add support for char
5177 and string constants.
5178
2244ba2e
PM
51792010-04-06 Pierre Muller <[email protected]>
5180
5181 Remove remaining "%ll" uses.
5182 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5183 hex_string call.
5184 * rs6000-nat.c (rs6000_ptrace64): Idem.
5185 * solib-pa64.c (pa64_current_sos): Idem.
5186 * solib-spu.c (spu_current_sos): Idem.
5187 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5188 plongest call.
5189 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5190 phex (VAR, 8) call.
5191 * sh64-tdep.c (sh64_show_media_regs): Idem.
5192
fce3c1f0
SS
51932010-04-05 Stan Shebs <[email protected]>
5194
5195 * tracepoint.c: Include gdbcore.h.
5196 (tfile_xfer_partial): Return partial results, also try reading
5197 from executable.
5198 (tfile_has_all_memory): New function.
5199 (init_tfile_ops): Use it.
5200
626ea16d
SDJ
52012010-04-05 Sergio Durigan Junior <[email protected]>
5202
5203 PR gdb/10736:
5204 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5205 the changes in data-directory.
5206 (init_sysinfo): Reload the syscall XML file if the data-directory
5207 has changed.
5208
1f7ccab2
JK
52092010-04-05 Jan Kratochvil <[email protected]>
5210
5211 Code cleanup.
5212 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5213
d77f58be
SS
52142010-04-04 Stan Shebs <[email protected]>
5215 Nathan Sidwell <[email protected]>
5216
5217 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5218 breakpoints printed.
5219 (is_hardware_watchpoint): Make argument const.
5220 (is_watchpoint): Ditto.
5221 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5222 use it everywhere.
5223 (breakpoints_info): Pass NULL to breakpoint_1.
5224 (maintenance_info_breakpoints): Ditto.
5225 (watchpoints_info): New function.
5226 (tracepoints_info): Use breakpoint_1 filter.
5227 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5228 (_initialize_breakpoint): Make "info watchpoints" its own command.
5229 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5230 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5231
af54718e
SS
52322010-04-04 Stan Shebs <[email protected]>
5233
5234 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5235
74d1f91e
JK
52362010-04-04 Jan Kratochvil <[email protected]>
5237
5238 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5239 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5240
91d91ceb
JK
52412010-04-04 Jan Kratochvil <[email protected]>
5242
5243 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5244 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5245
60531b24
JK
52462010-04-02 Jan Kratochvil <[email protected]>
5247
5248 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5249 code form.
5250
a3c4230a
HZ
52512010-04-02 Hui Zhu <[email protected]>
5252
5253 * i386-tdep.c (OT_DQUAD): New enum.
5254 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5255 SSE3, SSSE3 and SSE4.
5256
b15758fe
HZ
52572010-04-02 Hui Zhu <[email protected]>
5258
5259 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5260 "*addr = 0".
5261
afd02f27
PA
52622010-04-02 Pedro Alves <[email protected]>
5263
5264 * tracepoint.c (trace_dump_actions): New, factored out from
5265 trace_dump_command, and adjusted to recurse into while-stepping's
5266 action list.
5267 (trace_dump_command): Use it.
5268
5cea2a26
PA
52692010-04-02 Pedro Alves <[email protected]>
5270
5271 * breakpoint.h (struct counted_command_line): Moved definition to
5272 breakpoint.c, and forward declare.
5273 (breakpoint_commands): Declare.
5274 * breakpoint.c (struct counted_command_line): Moved here.
5275 (breakpoint_commands): New.
5276 * tracepoint.c (encode_actions): Use breakpoint_commands.
5277 * remote.c (remote_download_tracepoint): Ditto.
5278
7c47795c
L
52792010-04-01 H.J. Lu <[email protected]>
5280
5281 * remote.c (remote_parse_stop_reply): Use hex_string instead
5282 of phex_nz for error.
5283
fff87407
SS
52842010-04-01 Stan Shebs <[email protected]>
5285 Nathan Sidwell <[email protected]>
5286
5287 * tracepoint.h (enum actionline_type): Remove.
5288 (validate_actionline): Change return to void.
5289 * tracepoint.c (report_agent_reqs_errors): New function.
5290 (validate_actionline): Call it, change return to void, report errors
5291 more consistently.
5292 (collect_symbol): Call report_agent_reqs_errors.
5293 (encode_actions_1): Ditto.
5294 (encode_actions): Don't expect a result from validate_actionline.
5295
615bcdef
SS
52962010-04-01 Stan Shebs <[email protected]>
5297
5298 * tracepoint.c (trace_start_command): Confirm if trace is running.
5299 (trace_stop_command): Error if trace not running.
5300
fe01d668
L
53012010-04-01 H.J. Lu <[email protected]>
5302
5303 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5304 (AMD64_NUM_LOWER_BYTE_REGS): New.
5305 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5306 (amd64_pseudo_register_write): Likewise.
5307 (amd64_init_abi): Set num_byte_regs to 20.
5308
86b17b60
PA
53092010-04-01 Pedro Alves <[email protected]>
5310
5311 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5312 (prev_breakpoint_count): New.
5313 (set_breakpoint_count): Adjust.
5314 (rbreak_start_breakpoint_count): New.
5315 (start_rbreak_breakpoints): Adjust.
5316 (end_rbreak_breakpoints): Adjust.
5317 (struct commands_info) <arg>: New field.
5318 (do_map_commands_command): Tweak output to include breakpoint spec
5319 range.
5320 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5321 ARG was empty on entry. Set INFO's arg.
5322 (create_breakpoint): Adjust.
5323
5324 * NEWS: Clarify `commands' changes.
5325
2c58c0a9
PA
53262010-04-01 Pedro Alves <[email protected]>
5327
5328 * tracepoint.c: Include stack.h.
5329 (struct add_local_symbols_data): New.
5330 (do_collect_symbol): New.
5331 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5332 iterate_over_block_local_vars.
5333 * stack.c (print_block_frame_locals): Rewrite as ...
5334 (iterate_over_block_locals): ... this. Take a callback function
5335 pointer and generic data pointer, and call that instead of
5336 print_variable_and_value.
5337 (struct print_variable_and_value_data): New.
5338 (do_print_variable_and_value): New.
5339 (iterate_over_block_local_vars): New, abstracted out from
5340 print_frame_local_vars.
5341 (print_frame_local_vars): Rewrite using
5342 iterate_over_block_local_vars.
5343 (iterate_over_block_arg_vars): New, abstracted out from
5344 print_frame_arg_vars.
5345 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5346 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5347 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5348
d476da0e
RE
53492010-03-31 Richard Earnshaw <[email protected]>
5350
5351 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 5352 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
5353 PC register.
5354
8072405b
JK
53552010-03-31 Jan Kratochvil <[email protected]>
5356
5357 Fix crash on reading wrong function declaration DWARF.
5358 * dwarf2read.c (read_subroutine_type): New variable void_type.
5359 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5360 more close to their use.
5361
8bf6485c
SS
53622010-03-31 Stan Shebs <[email protected]>
5363
5364 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 5365 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
5366 * tracepoint.c (save_trace_state_variables): New function.
5367 * tracepoint.h (save_trace_state_variables): Declare it.
5368
2ae2a0b7
PM
53692010-03-31 Pierre Muller <[email protected]>
5370
1a161f72 5371 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 5372
86ffb506
KS
53732010-03-30 Keith Seitz <[email protected]>
5374
5375 * c-typeprint.c (c_type_print_args): Don't print "void"
5376 for java, regardless of whether it is TYPE_PROTOTYPED.
5377 Use the passed-in language instead of current_language.
5378 (c_type_print_varspec_suffix): Use current_language instead
5379 of assuming language_c.
5380 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5381 any return type specifier from the physname.
5382
956c2c8b
PA
53832010-03-30 Pedro Alves <[email protected]>
5384
5385 * tui/tui-interp.c (tui_is_toplevel): New.
5386 (tui_init): Set it.
5387 (tui_allowed_p): New.
5388 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5389 enabling it.
5390 * tui/tui.h (tui_allowed_p): Declare.
5391
98e5a990
TT
53922010-03-30 Ozkan Sezer <[email protected]>
5393
5394 * serial.h: Include winsock2.h before windows.h.
5395
c8d5aac9
L
53962010-03-30 H.J. Lu <[email protected]>
5397
5398 * NEWS: Mention xmlRegisters= in qSupported packet.
5399
5400 * i386-tdep.c: Include "remote.h".
5401 (_initialize_i386_tdep): Call register_remote_support_xml.
5402
5403 * remote.c (remote_support_xml): New.
5404 (register_remote_support_xml): Likewise.
5405 (remote_query_supported_append): Likewise.
5406 (remote_query_supported): Support remote_support_xml.
5407
5408 * remote.h (register_remote_support_xml): New.
5409
76a2b958
SS
54102010-03-29 Stan Shebs <[email protected]>
5411
42e08e69
SS
5412 * tracepoint.c (trace_find_line_command): Remove dead code.
5413
409873ef
SS
5414 * tracepoint.h (struct uploaded_string): New struct.
5415 (struct uploaded_tp): New fields for source strings.
5416 * breakpoint.c (this_utp, next_cmd): New globals.
5417 (read_uploaded_action): New function.
5418 (create_tracepoint_from_upload): Fill in more parts
5419 of a tracepoint.
5420 * tracepoint.c (encode_source_string): New function.
5421 (trace_save): Write out source strings, fix error checks.
5422 (parse_tracepoint_definition): Add source string parsing.
5423 * remote.c (PACKET_TracepointSource): New packet type.
5424 (remote_download_command_source): New function.
5425 (remote_download_tracepoint): Download source pieces also.
5426 (_initialize_remote): Add packet config command.
5427
a0405854
SS
5428 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5429 expression handler.
5430
76a2b958
SS
5431 * tracepoint.c (start_tracing): Check tracepoints before sending
5432 commands to target, don't start if all tracepoints disabled.
5433
d350db38
PA
54342010-03-28 Pedro Alves <[email protected]>
5435
12f2d601 5436 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 5437
8b9b7ef8
SS
54382010-03-26 Stan Shebs <[email protected]>
5439
5440 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5441
9766ced4
SS
54422010-03-26 Tom Tromey <[email protected]>
5443
5444 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5445
059acae7
UW
54462010-03-26 Ulrich Weigand <[email protected]>
5447
5448 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5449 (skip_prologue_sal): Remove local definition.
5450 (resolve_sal_pc): Remove now unnecessary code.
5451 * linespec.c (minsym_found): Call skip_prologue_sal.
5452 * symtab.c (find_function_start_pc): Remove.
5453 (find_function_start_sal): Extract prologue skipping into ...
5454 (skip_prologue_sal): ... this new function. Handle code both
5455 with and without debug info. Respect SAL's explicit_pc and
5456 explicit_line flags. Inline old find_function_start_pc.
5457 * symtab.h (find_function_start_pc): Remove.
5458 (skip_prologue_sal): Add prototype.
5459
4a811a97
UW
54602010-03-26 Ulrich Weigand <[email protected]>
5461
5462 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5463 for DW_TAG_imported_module children.
5464
907af001
UW
54652010-03-26 Ulrich Weigand <[email protected]>
5466
5467 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5468 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5469 * completer.c (add_struct_fields): Fix inverted logic.
5470
dde2d684
UW
54712010-03-26 Ulrich Weigand <[email protected]>
5472
5473 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5474
a609a0c8
PA
54752010-03-26 Pedro Alves <[email protected]>
5476
5477 * tracepoint.c (current_trace_status): Don't make sure error_desc
5478 is non-NULL here.
5479 (parse_trace_status): Release a previous error_desc string, and
5480 set it to NULL by default. If stop reason is tracepoint_error,
5481 make sure error_desc is not left NULL.
5482
610197fd
PA
54832010-03-26 Pedro Alves <[email protected]>
5484
5485 * tracepoint.c (trace_save): Remove X from tracepoint error
5486 description.
5487
99b5e152
PA
54882010-03-26 Pedro Alves <[email protected]>
5489
5490 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5491 the terror description. Don't expect an X prefix.
5492
6c28cbf2
SS
54932010-03-25 Stan Shebs <[email protected]>
5494
5495 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5496 (struct trace_status): New field error_desc.
5497 * tracepoint.c (stop_reason_names): Add terror.
5498 (current_trace_status): Ensure non-NULL error description.
5499 (trace_status_command): Add error report.
5500 (trace_status_mi): Ditto.
5501 (trace_save): Add special case for error description.
5502 (parse_trace_status): Add case for errors.
5503
418835cc
KS
55042010-03-25 Keith Seitz <[email protected]>
5505
5506 * dwarf2read.c (read_subroutine_type): If the compilation unit
5507 language is Java, mark any formal parameter named "this" as
5508 artificial (GCC/43521).
5509 (dwarf2_name): Add special handling for Java constructors.
5510
aa7d318d
TT
55112010-03-25 Tom Tromey <[email protected]>
5512
5513 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5514 * infrun.c (handle_inferior_event): Change initialization of
5515 stop_stack_dummy.
5516 (handle_inferior_event): Change assignment to stop_stack_dummy.
5517 (normal_stop): Update use of stop_stack_dummy.
5518 (struct inferior_status) <stop_stack_dummy>: Change type.
5519 * inferior.h (stop_stack_dummy): Update.
5520 * infcmd.c (stop_stack_dummy): Change type.
5521 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5522 function.
5523 (call_function_by_hand): Call set_std_terminate_breakpoint.
5524 Rewrite std::terminate handling.
5525 * breakpoint.h (enum bptype) <bp_std_terminate,
5526 bp_std_terminate_master>: New.
5527 (enum stop_stack_kind): New.
5528 (struct bpstat_what) <call_dummy>: Change type.
5529 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5530 Declare.
5531 * breakpoint.c (create_std_terminate_master_breakpoint): New
5532 function.
5533 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5534 Call create_std_terminate_master_breakpoint.
5535 (print_it_typical): Handle new breakpoint kinds.
5536 (bpstat_stop_status): Handle bp_std_terminate_master.
5537 (bpstat_what): Correctly set call_dummy field. Handle
5538 bp_std_terminate_master and bp_std_terminate.
5539 (print_one_breakpoint_location): Update.
5540 (allocate_bp_location): Update.
5541 (set_std_terminate_breakpoint): New function.
5542 (delete_std_terminate_breakpoint): Likewise.
5543 (create_thread_event_breakpoint): Update.
5544 (delete_command): Update.
5545 (breakpoint_re_set_one): Update.
5546 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5547
82ccf5a5
JK
55482010-03-25 Jan Kratochvil <[email protected]>
5549
5550 * symfile.c (build_section_addr_info_from_bfd): New.
5551 (build_section_addr_info_from_objfile): Base it on
5552 build_section_addr_info_from_bfd.
5553 (addrs_section_compar, addrs_section_sort): New.
5554 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5555 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5556 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5557
737c4c52
MS
55582010-03-24 Michael Snyder <[email protected]>
5559
8d95cc3b 5560 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
5561 Remove unused local variable.
5562
95a42b64
TT
55632010-03-24 Tom Tromey <[email protected]>
5564
5565 PR breakpoints/9352:
5566 * NEWS: Mention changes to `commands' and `rbreak'.
5567 * symtab.c (do_end_rbreak_breakpoints): New function.
5568 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5569 end_rbreak_breakpoints.
5570 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5571 (set_breakpoint_count): Likewise. Clear last_was_multi.
5572 (multi_start, multi_end, last_was_multi): New globals.
5573 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5574 functions.
5575 (struct commands_info): New
5576 (do_map_commands_command): New function.
5577 (commands_command_1): New function.
5578 (commands_command): Use it.
5579 (commands_from_control_command): Likewise.
5580 (do_delete_breakpoint): New function.
5581 (delete_command): Use it.
5582 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5583 (do_map_disable_breakpoint): New function.
5584 (disable_command): Use it.
5585 (do_map_enable_breakpoint): New function.
5586 (enable_command): Use it.
5587 (enable_once_breakpoint): Add argument.
5588 (enable_once_command): Update.
5589 (enable_delete_breakpoint): Add argument.
5590 (enable_delete_command): Update.
5591 (break_command_really): Set last_was_multi when needed.
5592 (check_tracepoint_command): Fix formatting.
5593 (validate_commands_for_breakpoint): New function.
5594 (breakpoint_set_commands): Use it.
5595 (tracepoint_save_command): Update.
5596 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
5597 Declare.
5598
9add0f1b
TT
55992010-03-24 Tom Tromey <[email protected]>
5600
5601 * breakpoint.h (struct counted_command_line): New struct.
5602 (struct breakpoint) <commands>: Change type.
5603 (struct bpstats) <commands>: Change type.
5604 <commands_left>: New field.
5605 * breakpoint.c (alloc_counted_command_line): New function.
5606 (incref_counted_command_line): Likewise.
5607 (decref_counted_command_line): Likewise.
5608 (do_cleanup_counted_command_line): Likewise.
5609 (make_cleanup_decref_counted_command_line): Likewise.
5610 (breakpoint_set_commands): Use decref_counted_command_line and
5611 alloc_counted_command_line.
5612 (commands_command): Don't error if breakpoint commands are
5613 executing.
5614 (commands_from_control_command): Likewise.
5615 (bpstat_free): Update.
5616 (bpstat_copy): Likewise.
5617 (bpstat_clear_actions): Likewise.
5618 (bpstat_do_actions_1): Likewise.
5619 (bpstat_stop_status): Likewise.
5620 (print_one_breakpoint_location): Likewise.
5621 (delete_breakpoint): Likewise.
5622 (bpstat_alloc): Initialize new field.
5623 (tracepoint_save_command): Update.
5624 * tracepoint.c (encode_actions): Update.
5625 (trace_dump_command): Update.
5626
a6c727b2
DJ
56272010-03-24 Daniel Jacobowitz <[email protected]>
5628
5629 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
5630 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
5631 (read_structure_type): For RealView, set TYPE_STUB on structures with
5632 no byte size and no children.
5633 (read_subroutine_type): Mark functions as prototyped by default.
5634 * symtab.c (producer_is_realview): New function.
5635 * symtab.h (expand_line_sal): Fix declaration formatting.
5636 (producer_is_realview): Declare.
5637
0d39a070
DJ
56382010-03-24 Daniel Jacobowitz <[email protected]>
5639
5640 * arm-tdep.c (skip_prologue_function): New function.
5641 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
5642 (thumb_analyze_prologue): Document return value. Recognize more
5643 Thumb instructions, skippable calls, and some Thumb-2 instructions.
5644 Add debug output.
5645 (arm_skip_prologue): Remove call dummy check. Check the prologue
5646 for non-GNU compilers.
5647 (arm_instruction_changes_pc): New function.
5648 (arm_analyze_prologue): New function, broken out from
5649 arm_scan_prologue. Recognize more ARM instructions and skippable
5650 calls. Update comments. Handle NULL cache. Return the address
5651 of the first unrecognized instruction. Do not skip past other
5652 instructions which change control flow. Add debug output.
5653 (arm_scan_prologue): Use arm_analyze_prologue.
5654 (ARM_PC_32): Delete.
5655 (shifted_reg_val): Simplify ARM_PC_32 check.
5656
4baf5cf4
VP
56572010-03-24 Vladimir Prus <[email protected]>
5658
5659 * tracepoint.c (tvariables_info_1): Actually compute
5660 the number of rows in the result.
5661
4a5e7a5b
PA
56622010-03-24 Pedro Alves <[email protected]>
5663
5664 * remote.c (crc32): Constify `buf' parameter.
5665 (remote_verify_memory): New, abstracted out from...
5666 (compare_sections_command): ... this. Remove hardcoded target
5667 checks.
5668 (init_remote_ops): Install remote_verify_memory.
5669 * target.c (target_verify_memory): New.
5670 * target.h (struct target_ops) <to_verify_memory>: New field.
5671 (target_verify_memory): Declare.
5672
011aacb0
VP
56732010-03-24 Vladimir Prus <[email protected]>
5674
5675 Implement -trace-save.
5676
5677 * mi-cmds.h (mi_cmds_trace_save): Declare.
5678 * mi-cmds.c (mi_cmds): Register -trace-save.
5679 * mi/mi-main.c (mi_cmd_trace_save): New.
5680 * remote.c (remote_save_trace_data): Take const parameter.
5681 * target.h (struct target_ops::to_save_trace_data): Take
5682 const parameter.
5683 * target.c (update_current_target): Adjust to the above.
5684 * tracepoint.c (trave_save): New, extracted from
5685 (trace_save_command): ...this.
5686 (tfile_trace_find): Remove message that is unnecessary now
5687 that 'tfind' reports found frame.
5688 * tracepoint.h (trace_save): Declare.
5689
f197e0f1
VP
56902010-03-24 Vladimir Prus <[email protected]>
5691
5692 Implement -trace-find.
5693
5694 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
5695 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
5696 * mi/mi-main.c (mi_cmd_trace_find): New.
5697 * target.h (struct target_ops): Document to_trace_find.
5698 * tracepoint.h (tfind_1): Declare.
5699 * tracepoint.c (finish_tfind_command): Rename to...
5700 (tfind_1): ...this.
5701 * remote.c (remote_trace_find): Return -1 if target say
5702 there's no frame. Improve error diagnostics.
5703
40e1c229
VP
57042010-03-24 Vladimir Prus <[email protected]>
5705
5706 -trace-define-variable and -trace-list-variables.
5707
5708 * tracepoint.c (create_trace_state_variable): Make
5709 private copy of name, as opposed to assuming the
5710 pointer lives forever.
5711 (tvariables_info_1): New.
5712 (tvariables_info): Use the above.
5713 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
5714 Declare.
5715 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
5716 and -trace-list-variables.
5717 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
5718 (mi_cmd_trace_list_variables): New.
5719 * mi/mi-main.c (mi_cmd_trace_define_variable)
5720 (mi_cmd_trace_list_variables): New.
5721
9b4c786c
VP
57222010-03-24 Vladimir Prus <[email protected]>
5723
5724 Implement -break-passcount.
5725
5726 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
5727 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
5728 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
5729
f224b49d
VP
57302010-03-24 Vladimir Prus <[email protected]>
5731
5732 -trace-start/-trace-end/-trace-status.
5733
5734 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
5735 and -trace-stop.
5736 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
5737 (mi_cmd_trace_stop): Declare.
5738 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
5739 (mi_cmd_trace_stop): New.
5740 * tracepoint.c (start_tracing): New, extracted from...
5741 (trace_start_command): ...this.
5742 (trace_status_mi): New.
5743 * tracepoint.h (struct trace_status): Document
5744 stopping_tracepoint.
5745 (start_tracing, stop_tracing, trace_status_mi): Declare.
5746
6534d786
VP
57472010-03-24 Vladimir Prus <[email protected]>
5748
5749 Implement creating tracepoints with -break-insert.
5750
5751 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
5752 to mean that tracepoint should be created.
5753
51661e93
VP
57542010-03-24 Vladimir Prus <[email protected]>
5755
5756 * breakpoint.c (check_no_tracepoint_commands): Use
5757 current spelling of 'teval'.
5758
a7bdde9e
VP
57592010-03-24 Vladimir Prus <[email protected]>
5760
5761 Unify actions and commands
5762
5763 * defs.h (read_command_lines, read_command_lines_1): New
5764 parameters validator and closure.
5765 * tracepoint.h (struct action_line): Remove.
5766 * breakpoint.h (struct breakpoint): Remove the 'actions'
5767 field.
5768 * defs.h (enum command_control_type): New value
5769 while_stepping_control.
5770 (struct command_line): Add comments.
5771 * breakpoint.c (breakoint_is_tracepoint): New.
5772 (breakpoint_set_commands): For tracepoints,
5773 verify the commands are permissible.
5774 (check_tracepoint_commands): New.
5775 (commands_command): Require that each new line is validated using
5776 check_tracepoint_command, if we set commands for a tracepoint.
5777 (create_tracepoint_from_upload): Likewise.
5778 (print_one_breakpoint_location): Remove the code to print
5779 actions specifically.
5780 (tracepoint_save_command): Relay to print_command_lines.
5781 * cli/cli-script.c (process_next_line): New parameters validator
5782 and closure. Handle 'while-stepping'. Call validator if not null.
5783 (read_command_lines, read_command_lines1): Likewise.
5784 (recurse_read_control_structure): New parameters validator and
5785 closure. Handle while_stepping_control.
5786 (print_command_lines): Handle while-stepping.
5787 (get_command_line, define_command, document_command): Adjust.
5788 * remote.c (remote_download_tracepoint): Adjust.
5789 * tracepoint.c (make_cleanup_free_actions, read_actions)
5790 (free_actions, do_free_actions_cleanup): Remove.
5791 (trace_actions_command): Use read_command_lines.
5792 (validate_actionline): Use error in one place.
5793 (encode_actions_1): New, extracted from...
5794 (encode_actions): ...this. Also use cleanups for exception
5795 safety.
5796 (trace_dump_command): Adjust.
5797 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
5798 it's tracepoint.
5799
64e3cf3d
MF
58002010-03-23 Mike Frysinger <[email protected]>
5801
5802 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
5803
52e9fde8
SS
58042010-03-22 Stan Shebs <[email protected]>
5805
5806 * value.c (value_static_field): Be lazy about the field's value.
5807
508ccb1f
TT
58082010-03-22 Reid Kleckner <[email protected]>
5809
5810 PR gdb/11094
5811 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
5812 bp_jit_event.
5813 (disable_breakpoints_in_shlibs): Likewise.
5814
acebe513
UW
58152010-03-22 Ulrich Weigand <[email protected]>
5816
5817 * dwarf2read.c (partial_die_parent_scope): Work around buggy
5818 GCC 4.1 debug info generation (GCC PR c++/28460).
5819 (determine_prefix): Likewise.
5820
957b8b5a
DJ
58212010-03-20 Daniel Jacobowitz <[email protected]>
5822
5823 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
5824 get_current_arch.
5825 * tui/tui-layout.c (extract_display_start_addr): Likewise.
5826
3b11a015
SS
58272010-03-19 Stan Shebs <[email protected]>
5828
5829 * ax-gdb.c (gen_fetch): Handle bool.
5830 (gen_usual_unary): Ditto.
5831 (gen_cast): Ditto.
5832 (gen_equal): New function.
5833 (gen_less): New function.
5834 (gen_expr_binop_rest): Call them, also return integer type from
5835 logical operations.
5836 (gen_expr): Ditto.
5837
20781792
TT
58382010-03-19 Tom Tromey <[email protected]>
5839
5840 * jv-lang.c (jv_dynamics_objfile_data_key)
5841 (jv_type_objfile_data_key): New globals.
5842 (class_symtab): Move earlier.
5843 (jv_per_objfile_free): New function.
5844 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
5845 parameter.
5846 Remove ancient #if 1.
5847 (add_class_symbol): Remove redundant declaration.
5848 (java_lookup_class): Use alloc_type, not alloc_type_arch.
5849 (java_link_class_type): Mark as static. Update.
5850 (jv_clear_object_type): New function.
5851 (set_java_object_type): Likewise.
5852 (get_java_object_type): Use set_java_object_type.
5853 (is_object_type): Likewise.
5854 (_initialize_java_language): Register new objfile keys.
5855 (get_java_class_symtab): Add 'gdbarch' parameter.
5856 (add_class_symtab_symbol): Update.
5857 (type_from_class): Update.
5858
cf3e25ca
SS
58592010-03-19 Stan Shebs <[email protected]>
5860
8d95cc3b 5861 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 5862
f1ae44c9 58632010-03-18 Joel Brobecker <[email protected]>
5864
5865 GDB 7.1 released.
5866
4daf5ac0
SS
58672010-03-18 Stan Shebs <[email protected]>
5868 Pedro Alves <[email protected]>
5869
5870 * target.h (struct target_ops): New method
5871 to_set_circular_trace_buffer.
5872 (target_set_circular_trace_buffer): New macro.
5873 * target.c (update_current_target): Add
5874 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
5875 default behavior.
5876 * remote.c (remote_set_circular_trace_buffer): New function.
5877 (init_remote_ops): Add it to vector.
5878 * tracepoint.h (struct trace_status): New field traceframes_created,
5879 change buffer_size and buffer_free to int.
5880 * tracepoint.c (circular_trace_buffer): New global.
5881 (start_tracing): Send values of disconnected tracing and circular
5882 trace buffer settings.
5883 (set_circular_trace_buffer): New function.
5884 (parse_trace_state): Handle total space and frames created.
5885 (trace_status_command): Display total space and total frames
5886 created.
5887 (trace_save): Write out new status values.
5888 (parse_trace_status): Set traceframe_count, traceframes_created,
5889 buffer_free and buffer_size to -1 by default.
5890 (_initialize_tracepoint): New setshow for circular-trace-buffer.
5891 * NEWS: Mention the circular trace buffer option.
5892
40c549d6
TT
58932010-03-18 Tom Tromey <[email protected]>
5894
5895 * infcmd.c (finish_command_continuation): Wrap print_return_value
5896 in TRY_CATCH.
5897
e8d05480
JB
58982010-03-18 Joel Brobecker <[email protected]>
5899
5900 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
5901 DIE has a name before creating the associated partial symbol.
5902 (read_func_scope): Emit a complaint if the subprogram does not
5903 have a name or when we can't extract the subprogram PC bounds.
5904
441b986a
UW
59052010-03-18 Ulrich Weigand <[email protected]>
5906
5907 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
5908 instead of selected frame architecture.
5909
4247603b
PA
59102010-03-18 Pedro Alves <[email protected]>
5911
5912 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
5913 a valid selected thread, and that it is not running.
5914 (advance_command): Ditto.
5915 (finish_command): Ditto.
5916
400c6af0
SS
59172010-03-17 Stan Shebs <[email protected]>
5918
3a96536b
SS
5919 * ax-gdb.c (require_rvalue): Disallow non-scalars.
5920
573cda03
SS
5921 * infcall.c: Include tracepoint.h.
5922 (call_function_by_hand): Disallow calls in tfind mode.
5923 * infcmd.c: Include tracepoint.h.
5924 (ensure_not_tfind_mode): New function.
5925 (continue_1): Call it.
5926 (step_1) Ditto.
5927 (jump_command): Ditto.
5928 (signal_command): Ditto.
5929 (advance_command): Ditto.
5930 (until_command): Ditto.
5931 (finish_command): Ditto.
5932 * tracepoint.h (disconnect_or_stop_tracing): Declare.
5933
400c6af0
SS
5934 * ax-gdb.h (struct axs_value): New field optimized_out.
5935 (gen_trace_for_var): Add gdbarch argument.
5936 * ax-gdb.c (gen_trace_static_fields): New function.
5937 (gen_traced_pop): Call it, add gdbarch argument.
5938 (gen_trace_for_expr): Update call to it.
5939 (gen_trace_for_var): Ditto, and report optimized-out variables.
5940 (gen_struct_ref_recursive): Check for optimized-out value.
5941 (gen_struct_elt_for_reference): Ditto.
5942 (gen_static_field): Pass gdbarch instead of expression, assume
5943 optimization if field not found.
5944 (gen_var_ref): Set the optimized_out flag.
5945 (gen_expr): Error on optimized-out variable.
5946 * tracepoint.c (collect_symbol): Handle struct-valued vars as
5947 expressions, skip optimized-out variables with computed locations.
5948 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
5949 erroring out if location expression missing.
5950 (loclist_tracepoint_var_ref): Don't error out here.
5951
a3b2a86b
TT
59522010-03-17 Tom Tromey <[email protected]>
5953
5954 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
5955 DWARF data is available.
5956
38963c97
DJ
59572010-03-17 Daniel Jacobowitz <[email protected]>
5958
5959 * symfile.c (generic_load): Reset breakpoints after loading.
5960
ddabfc73
TT
59612010-03-17 Tom Tromey <[email protected]>
5962
5963 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
5964
d8c09fb5
JK
59652010-03-17 Jan Kratochvil <[email protected]>
5966
5967 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
5968 create_breakpoint call, adjust the parameters.
5969
bbb0eef6
JK
59702010-03-16 Jan Kratochvil <[email protected]>
5971 Chandru <[email protected]>
5972
5973 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
5974 * valarith.c (value_subscripted_rvalue): Suppress error if
5975 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
5976
46956e39
HZ
59772010-03-16 Holger Hans Peter Freyther <[email protected]>
5978
5979 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
5980
b8d088ac
JB
59812010-03-16 Joel Brobecker <[email protected]>
5982
5983 * ada-tasks.c (task_command_1): Check that the task ptid is valid
5984 before doing the associated thread switch.
5985
322be962
DJ
59862010-03-16 Daniel Jacobowitz <[email protected]>
5987
5988 * MAINTAINERS: Update my email address.
5989
8cdf0e15
VP
59902010-03-16 Vladimir Prus <[email protected]>
5991
5992 Simplify MI breakpoint setting.
5993
5994 * breakpoint.c (break_command_really): Make nonstatic and
5995 rename to...
5996 (create_breakpoint): ...this. Rename prior function by this name
5997 to...
5998 (create_breakpoint_sal): ...this.
5999 (create_breakpoints): Rename to...
6000 (create_breakpoints_sal): ...this.
6001 (set_breakpoint): Remove.
6002 * breakpoint.h: Adjust to above changes.
6003 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6004
b6e7192f
SS
60052010-03-15 Stan Shebs <[email protected]>
6006
6007 * ax-gdb.c: Include cp-support.h.
6008 (find_field): Remove.
6009 (gen_primitive_field): New function.
6010 (gen_struct_ref_recursive): New function.
6011 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6012 of find_field.
6013 (gen_static_field): New function.
6014 (gen_struct_elt_for_reference): New.
6015 (gen_namespace_elt): New.
6016 (gen_maybe_namespace_elt): New.
6017 (gen_aggregate_elt_ref): New.
6018 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6019
1054b214
TT
60202010-03-15 Tom Tromey <[email protected]>
6021
6022 * dwarf2read.c (die_needs_namespace): Also return 0 for
6023 DW_TAG_subprogram.
6024
13387711
SW
60252010-03-15 Sami Wagiaalla <[email protected]>
6026
6027 PR c++/7936:
6028 * cp-support.h: Added char *declaration element to using_direct
6029 data struct.
6030 (cp_add_using): Added char *declaration argument.
6031 (cp_add_using_directive): Ditto.
6032 (cp_lookup_symbol_imports): made extern.
6033 * cp-namespace.c: Updated with the above changes.
6034 * dwarf2read.c (read_import_statement): Ditto.
6035 (read_namespace): Ditto.
6036 (read_import_statement): Support import declarations.
6037 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6038 declarations.
6039 Added support for 'declaration_only' search.
6040 (cp_lookup_symbol_namespace): Attempt to search for the name as
6041 is before consideration of imports.
6042 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6043 search at every block level search.
6044 Now takes language argument.
6045 (lookup_symbol_aux): Updated.
6046
6e31430b
TT
60472010-03-15 Tom Tromey <[email protected]>
6048
6049 * c-exp.y (name_not_typename): Add 'operator' clause.
6050
4dea3bb7 60512010-03-15 Ralf Corsepius <[email protected]> (tiny change)
bf307134
JB
6052
6053 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6054 * configure: Regenerate.
6055
4d9743af
JK
60562010-03-15 Jan Kratochvil <[email protected]>
6057
6058 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6059 and ".sdynbss". Update the comment.
6060
f75150fe
JZ
60612010-03-15 Jie Zhang <[email protected]>
6062
6063 * MAINTAINERS: Update my email address.
6064
3c13bc11
DJ
60652010-03-14 Daniel Jacobowitz <[email protected]>
6066
6067 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6068
43484f03
DJ
60692010-03-14 Daniel Jacobowitz <[email protected]>
6070
6071 * charset.c [USE_WIN32API]: Include <windows.h>.
6072 (_initialize_charset): Correct type of w32_host_default_charset.
6073
5f25d77d
PA
60742010-03-14 Pedro Alves <[email protected]>
6075
6076 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6077
1c809c68
TT
60782010-03-12 Tom Tromey <[email protected]>
6079
6080 PR c++/9708:
6081 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6082 in a lexical block does not need a namespace.
6083 (new_symbol) <DW_TAG_variable>: Put extern variables on
6084 list_in_scope in all cases.
6085
948103cf
SS
60862010-03-12 Stan Shebs <[email protected]>
6087
6088 * ax-gdb.c (gen_expr): Add shift expressions.
6089 (gen_expr_binop_rest): Ditto.
6090
00ae8fef
SW
60912010-03-12 Sami Wagiaalla <[email protected]>
6092
6093 * buildsym.c (finish_block): Reset using_directives pointer
6094 after block initialization.
6095
9cad29ac
L
60962010-03-12 H.J. Lu <[email protected]>
6097
6098 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6099 * i386-tdep.c (i386_word_names): Likewise.
6100
2f4d8875
PA
61012010-03-12 Pedro Alves <[email protected]>
6102
6103 * target.c (memory_xfer_partial): Don't use the stack cache if
6104 inspecting trace frames.
6105 * tracepoint.c (finish_tfind_command): Invalidate the target
6106 dcache.
6107
ccf26247
JK
61082010-03-11 Jan Kratochvil <[email protected]>
6109
6110 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6111 for the PIC displacement, print also the displacement value.
6112 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6113
477c84a7
KB
61142010-03-10 Kevin Buettner <[email protected]>
6115
6116 * remote-mips.c (close_ports, mips_initialize_cleanups)
6117 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6118 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6119 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6120 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6121 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6122 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6123 comments describing each of these functions.
6124 (mips_enter_debug, mips_exit_debug, common_open)
6125 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6126 blank line after the comment describing the function.
6127
01c30d6e
JK
61282010-03-10 Jan Kratochvil <[email protected]>
6129
6130 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6131 parameter displacementp. Update comment.
6132 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6133 element exists. Return if svr4_exec_displacement was not successful.
6134 Update comment.
6135
09919ac2
JK
61362010-03-10 Jan Kratochvil <[email protected]>
6137 Daniel Jacobowitz <[email protected]>
6138
6139 * solib-svr4.c (read_program_header): Support type == -1 to read
6140 all program headers.
6141 (read_program_headers_from_bfd): New function.
6142 (svr4_static_exec_displacement): Remove and move the comment ...
6143 (svr4_exec_displacement): ... here. Remove variable found. New
6144 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6145 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6146 targets using read_program_headers_from_bfd. Remove the call of
6147 svr4_static_exec_displacement.
6148
d146bf1e
TT
61492010-03-10 Tom Tromey <[email protected]>
6150
6151 * dwarf2read.c (struct pubnames_header): Remove.
6152 (_PUBNAMES_HEADER): Remove.
6153 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6154 (struct aranges_header): Remove.
6155 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6156 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6157 (PUBNAMES_SECTION): Remove.
6158 (ARANGES_SECTION): Remove.
6159 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6160 (dwarf2_build_psymtabs): Remove dead code.
6161 (dwarf2_build_psymtabs_easy): Remove.
6162
be391dca
TT
61632010-03-10 Tom Tromey <[email protected]>
6164
6165 * elfread.c (elf_symfile_read): Don't call
6166 dwarf2_build_frame_info.
6167 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6168 (struct dwarf2_per_objfile) <objfile>: New field.
6169 (dwarf2_has_info): Now idempotent. Set objfile field.
6170 (dwarf2_read_section): Check and set readin field. Call
6171 posix_madvise.
6172 (dwarf2_build_psymtabs): Don't read all sections.
6173 (read_type_comp_unit_head): Read types section.
6174 (create_debug_types_hash_table): Likewise.
6175 (init_cu_die_reader): Add asserts.
6176 (process_type_comp_unit): Add assert.
6177 (dwarf2_build_psymtabs_hard): Read info section.
6178 (load_partial_comp_unit): Add assert.
6179 (create_all_comp_units): Read info section.
6180 (load_full_comp_unit): Likewise.
6181 (dwarf2_ranges_read): Read ranges section.
6182 (dwarf2_record_block_ranges): Add assert.
6183 (dwarf2_read_abbrevs): Read abbrev section.
6184 (read_indirect_string): Read str section.
6185 (dwarf_decode_line_header): Read line section.
6186 (read_signatured_type_at_offset): Read types section.
6187 (dwarf_decode_macros): Read macinfo section.
6188 (dwarf2_symbol_mark_computed): Read loc section.
6189 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6190 dwarf2_build_frame_info.
6191 (dwarf2_build_frame_info): Unconditionally set
6192 dwarf2_frame_objfile_data on the objfile.
6193 * configure.ac: Check for posix_madvise.
6194 * config.in, configure: Rebuild.
6195
ccefe4c4
TT
61962010-03-10 Tom Tromey <[email protected]>
6197
e38df1d0
TT
6198 * xcoffread.c (xcoff_start_psymtab): Update.
6199 (xcoff_end_psymtab): Update.
6200 * psymtab.c (allocate_psymtab): Remove dead code.
6201 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6202 void*.
6203 * mdebugread.c (parse_partial_symbols): Update.
6204 (new_psymtab): Likewise.
6205 * dwarf2read.c (process_psymtab_comp_unit): Update.
6206 (psymtab_to_symtab_1): Update.
6207 * dbxread.c (start_psymtab): Update.
6208 (end_psymtab): Likewise.
6209
be391dca 62102010-03-10 Tom Tromey <[email protected]>
e38df1d0 6211
ccefe4c4
TT
6212 * xcoffread.c: Include psymtab.h.
6213 (xcoff_sym_fns): Update.
6214 * symtab.h (struct partial_symbol): Remove.
6215 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6216 (struct partial_symtab): Remove.
6217 (PSYMTAB_TO_SYMTAB): Remove.
6218 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6219 (find_pc_sect_psymtab): Remove.
6220 (find_pc_sect_symtab_via_partial): Declare.
6221 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6222 (find_main_psymtab): Remove.
6223 (find_main_filename): Declare.
6224 (fixup_psymbol_section): Remove.
6225 (fixup_section): Declare.
6226 * symtab.c: Include psymtab.h.
6227 (lookup_symtab): Use lookup_symtab method.
6228 (lookup_partial_symtab): Remove.
6229 (find_pc_sect_psymtab_closer): Remove.
6230 (find_pc_sect_psymtab): Remove.
6231 (find_pc_sect_symtab_via_partial): New function.
6232 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6233 (fixup_section): No longer static.
6234 (fixup_psymbol_section): Remove.
6235 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6236 (lookup_global_symbol_from_objfile): Likewise.
6237 (lookup_symbol_aux_psymtabs): Remove.
6238 (lookup_symbol_aux_quick): New function.
6239 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6240 (lookup_partial_symbol): Remove.
6241 (basic_lookup_transparent_type_quick): New function.
6242 (basic_lookup_transparent_type): Use it.
6243 (find_main_psymtab): Remove.
6244 (find_main_filename): New function.
6245 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6246 (find_line_symtab): Use expand_symtabs_with_filename method.
6247 (output_partial_symbol_filename): New function.
6248 (sources_info): Use map_partial_symbol_filenames.
6249 (struct search_symbols_data): New type.
6250 (search_symbols_file_matches): New function.
6251 (search_symbols_name_matches): Likewise.
6252 (search_symbols): Use expand_symtabs_matching method.
6253 (struct add_name_data): Rename from add_macro_name_data.
6254 (add_macro_name): Update.
6255 (add_partial_symbol_name): New function.
6256 (default_make_symbol_completion_list): Use
6257 map_partial_symbol_names.
6258 (struct add_partial_symbol_name): New type.
6259 (maybe_add_partial_symtab_filename): New function.
6260 (make_source_files_completion_list): Use
6261 map_partial_symbol_filenames.
6262 (expand_line_sal): Use expand_symtabs_with_filename method.
6263 * symmisc.c: Include psymtab.h.
6264 (print_objfile_statistics): Use print_stats method.
6265 (dump_objfile): Use dump method.
6266 (dump_psymtab, maintenance_print_psymbols)
6267 (maintenance_info_psymtabs, maintenance_check_symtabs)
6268 (extend_psymbol_list): Remove.
6269 * symfile.h (struct quick_symbol_functions): New struct.
6270 (struct sym_fns) <qf>: New field.
6271 (sort_pst_symbols): Remove.
6272 (increment_reading_symtab): Declare.
6273 * symfile.c: Include psymtab.h.
6274 (compare_psymbols, sort_pst_symbols): Remove.
6275 (psymtab_to_symtab): Remove.
6276 (increment_reading_symtab): New function.
6277 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6278 method.
6279 (set_initial_language): Use find_main_filename.
6280 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6281 (free_named_symtabs): Remove unused code.
6282 (start_psymtab_common, add_psymbol_to_bcache)
6283 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6284 Remove.
6285 * stack.c: Include psymtab.h, symfile.h.
6286 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6287 * source.h (psymtab_to_fullname): Don't declare.
6288 * source.c: Include psymtab.h.
6289 (select_source_symtab): Use find_last_source_symtab method.
6290 (forget_cached_source_info): Use forget_cached_source_info
6291 method.
6292 (find_and_open_source): No longer static.
6293 (psymtab_to_fullname): Remove.
6294 * somread.c: Include psymtab.h.
6295 (som_sym_fns): Update.
6296 * psympriv.h: New file.
6297 * psymtab.h: New file.
6298 * psymtab.c: New file.
6299 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6300 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6301 * objfiles.c: Include psymtab.h.
6302 (objfile_relocate1): Use relocate method.
6303 (objfile_has_partial_symbols): Use has_symbols method.
6304 * mipsread.c: Include psymtab.h.
6305 (ecoff_sym_fns): Update.
6306 * mi/mi-cmd-file.c: Include psymtab.h.
6307 (print_partial_file_name): New function.
6308 (mi_cmd_file_list_exec_source_files): Use
6309 map_partial_symbol_filenames.
6310 * mdebugread.c: Include psympriv.h.
6311 * machoread.c: Include psympriv.h.
6312 (macho_sym_fns): Update.
6313 * m2-exp.y (yylex): Use lookup_symtab.
6314 * elfread.c: Include psympriv.h.
6315 (elf_sym_fns): Update.
6316 * dwarf2read.c: Include psympriv.h.
6317 * dbxread.c: Include psympriv.h.
6318 (aout_sym_fns): Update.
6319 * cp-support.c: Include psymtab.h.
6320 (read_in_psymtabs): Remove.
6321 (make_symbol_overload_list_qualified): Use
6322 expand_symtabs_for_function method.
6323 * coffread.c: Include psympriv.h.
6324 (coff_sym_fns): Update.
6325 * blockframe.c: Include psymtab.h.
6326 (find_pc_partial_function): Use find_pc_sect_symtab method.
6327 * ada-lang.h (ada_update_initial_language): Update.
6328 * ada-lang.c: Include psymtab.h.
6329 (ada_update_initial_language): Remove 'main_pst' argument.
6330 (ada_lookup_partial_symbol): Remove.
6331 (struct ada_psym_data): New type.
6332 (ada_add_psyms): New function.
6333 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6334 (struct add_partial_datum): New type.
6335 (ada_add_partial_symbol_completions): New function.
6336 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6337 (ada_exception_support_info_sniffer): Update.
6338 * Makefile.in (SFILES): Add psymtab.c.
6339 (COMMON_OBS): Add psymtab.o.
6340 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6341
7d8500b7
PM
63422010-03-10 Pierre Muller <[email protected]>
6343
6344 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6345
c0cc3a76
SW
63462010-03-10 Sami Wagiaalla <[email protected]>
6347
6348 PR C++/11236:
6349 * cp-namespace.c (cp_add_using): Deleted.
6350 (cp_add_using_directive): Use obstack allocations.
6351 Merged the function cp_add_using into this one.
6352 Added 'struct obstack *' argument.
6353 (cp_scan_for_anonymous_namespaces): Updated.
6354 * cp-support.h: Updated.
6355 * dwarf2read.c (read_import_statement): Updated.
6356 (read_namespace): Updated.
6357
452fa064
CF
63582010-03-10 Pierre Muller <[email protected]>
6359
6360 * windows-nat.c (cygwin_conv_path): Remove old macro.
6361
60e1c644
PA
63622010-03-10 Pedro Alves <[email protected]>
6363
6364 * breakpoint.c (condition_command): Handle watchpoint conditions.
6365 (is_hardware_watchpoint): Add comment.
6366 (is_watchpoint): New.
6367 (update_watchpoint): Don't reparse the watchpoint's condition
6368 unless necessary.
6369 (WP_IGNORE): New.
6370 (watchpoint_check): Use it.
6371 (bpstat_check_watchpoint): Handle it.
6372 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6373 conditions in a frame where it makes sense.
6374 (watch_command_1): Store the innermost block of the condition
6375 expression.
6376 (delete_breakpoint): Delete the watchpoint condition expression.
6377 * breakpoint.h (struct bp_location) <cond>: Update comment.
6378 (struct breakpoint): New field `cond_exp_valid_block'.
6379
af6b7be1
JB
63802010-03-09 Joel Brobecker <[email protected]>
6381
6382 Adjust handling of Ada DIEs after dwarf2_physname patch.
6383 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6384
60c5c021
CF
63852010-03-09 Christopher Faylor <[email protected]>
6386 Pierre Muller <[email protected]>
6387
6388 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6389 from/to posix/win32.
6390 (windows_make_so): Use non-Cygwin 1.7 specific function.
6391 (windows_create_inferior): Make sure that cygallargs points to
6392 original args in non Cygwin 1.7. case.
6393
60a1502a
MS
63942010-03-09 Michael Snyder <[email protected]>
6395
6396 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6397 after target_read_memory to get host byte order.
6398 (i386_process_record): Ditto.
6399
94af9270
KS
64002010-03-09 Keith Seitz <[email protected]>
6401
6402 Based on work from Daniel Jacobowitz <[email protected]>
6403 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6404 print out const or volatile qualifiers, too.
6405 (c_type_print_args): Add parameters show_artificial and language.
6406 Skip artificial parameters when requested.
6407 Use the appropriate language printer.
6408 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6409 parameters and pass language_c.
6410 * dwarf2read.c (die_list): New file global.
6411 (struct partial_die_info): Update comments for name field.
6412 (pdi_needs_namespace): Renamed to ...
6413 (die_needs_namespace): ... this. Rewrite.
6414 (dwarf2_linkage_name): Remove.
6415 (add_partial_symbol): Do not predicate the call to
6416 partial_die_full_name based on pdi_needs_namespace.
6417 Remove call to cp_check_possible_namespace_symbols and associated
6418 outdated comments.
6419 (guess_structure_name): Do not inspect child subprogram DIEs.
6420 (dwarf2_fullname): Update comments.
6421 Use die_needs_namespace to assist in computing the name.
6422 (read_func_scope): Use dwarf2_name to get the DIE's name.
6423 Use dwarf2_physname to get the "linkage name" of the DIE.
6424 (dwarf2_add_member_field): Use dwarf2_physname instead of
6425 dwarf2_linkage_name.
6426 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6427 (determine_class): Remove.
6428 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6429 except Ada.
6430 (new_symbol): Unconditionally call dwarf2_name.
6431 Compute the "linkage name" using dwarf2_physname.
6432 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6433 When determining to scan for anonymous C++ namespaces, ignore
6434 the linkage name.
6435 (dwarf2_physname): New function.
6436 (dwarf2_full_name): Move content to new function and call
6437 that.
6438 (dwarf2_compute_name): "New" function.
6439 (_initialize_dwarf2_read): Initialize die_list.
6440 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6441 physname.
6442 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6443 without a demangled name.
6444 Print out type information for non-virtual methods.
c8d5aac9 6445 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 6446 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
6447 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6448 (decode_compound): Stop consuming at an open parenthesis.
6449 Keep template parameters.
6450 Keep any overload information.
6451 Keep keywords like "const".
6452 Remove paren_pointer.
6453 Move is_quoted check from set_flags to here.
6454 Remove #if 0 code from 2000. Ten years is long enough.
6455 (find_method): Before comparing symbol names, canonicalize the string
6456 from the user.
6457 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
6458 (find_method_overload_end): New function.
6459 (set_flags): Remove.
c8d5aac9
L
6460 (decode_compound): Assume that parentheses are matched.
6461 It's a lot easier.
94af9270
KS
6462 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6463 to cplus_demangle.
6464 * linespec.c (decode_line_1): Keep important keywords like
6465 "const" and "volatile".
6466 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6467 * typeprint.h (c_type_print_args): Add declaration.
6468 * ui-file.c (do_ui_file_obsavestring): New function.
6469 (ui_file_obsavestring): New function.
6470 * ui-file.h (ui_file_obsavestring): Add declaration.
6471 * valops.c (find_overload_match): Resolve the object to
6472 a non-pointer type.
6473 If the object is a data member, search the object for the member
6474 and return with staticp set.
6475 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6476 Do not attempt to extract a function name from non-function types.
6477 If the extracted function name and the original name are the same,
6478 we don't have a C++ method.
6479
8d95cc3b
PA
6480 From Jan Kratochvil <[email protected]>:
6481 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
6482
6483 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6484 and arguments from symbol lookups.
6485 * ax-gdb.c (gen_expr): Likewise.
6486 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6487 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6488 lookup_possible_namespace_symbol): Likewise.
6489 * cp-support.c (read_in_psymtabs): Likewise.
6490 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6491 * language.h (la_lookup_symbol_nonlocal): Likewise.
6492 * scm-valprint.c (scm_inferior_print): Likewise.
6493 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6494 * solib-svr.c (elf_lookup_lib): Likewise.
6495 * solib.c (show_auto_solib_add): Likewise.
6496 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6497 * symmisc.c (maintenance_check_symtabs): Likewise.
6498 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6499 lookup_symbol_aux_local, lookup_symbol_aux_block,
6500 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6501 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6502 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6503 basic_lookup_transparent_type, find_main_psymtab,
6504 lookup_block_symbol): Likewise.
6505 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6506 lookup_symbol_global, lookup_symbol_aux_block,
6507 lookup_symbol_partial_symbol, lookup_block_symbol,
6508 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6509
9cb74f47
PM
65102010-03-09 Pierre Muller <[email protected]>
6511
6512 * python/python-internal.h: Include symtab.h.
6513
af6b7be1
JB
65142010-03-09 Joel Brobecker <[email protected]>
6515 Pierre Muller <[email protected]>
e13eedd5
PM
6516
6517 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6518 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6519 indentation.
6520
bad56014
TT
65212010-03-08 Tom Tromey <[email protected]>
6522
6523 * breakpoint.c (breakpoint_1): Add "QUIT".
6524
08105857
PA
65252010-03-08 Daniel Jacobowitz <[email protected]>
6526 Pedro Alves <[email protected]>
6527
6528 * solib.c (solib_find): Replace extension if
6529 solib_symbols_extension is set in the target gdbarch.
6530 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6531 solib_symbols_extension to "sym".
6532 * gdbarch.sh (solib_symbols_extension): New variable.
6533 (pstring): New function.
6534 * gdbarch.h, gdbarch.c: Regenerate.
6535
7c953934
TT
65362010-03-08 Tom Tromey <[email protected]>
6537
6538 PR cli/9591:
6539 * NEWS: Update.
6540 * utils.c: Include main.h.
6541 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6542 (defaulted_query): Use default answer if `batch_flag'.
6543 * main.h (batch_flag): Declare.
6544 * main.c (batch_flag): New global.
6545 (captured_main): Remove 'batch'. Update.
6546
bbd2783e
KB
65472010-03-08 Kevin Buettner <[email protected]>
6548
6549 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6550 and Kevin Buettner:
6551
6552 * remote-mips.c (rockhopper_ops): New target_ops struct.
6553 (MON_ROCKHOPPER): New mips_monitor_type.
6554 (read_hex_value): New function.
6555 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 6556 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
6557 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6558 (rockhopper_open): New function.
6559 (mips_wait): Read the PC, FP and SP fields as strings. Use
6560 read_hex_value to parse them and mips_set_register to commit them.
6561 (mips_set_register): New function.
6562 (mips_fetch_registers): Do not cast register value to "unsigned"
6563 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6564 (mips_store_registers): Use a 'T' packet to set registers when
6565 using MON_ROCKHOPPER.
6566 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6567 and expect the total to be printed before the entry address.
6568 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6569
566f3d17
KB
65702010-03-08 Kevin Buettner <[email protected]>
6571
6572 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6573 Change return value to int. Store value fetched in location
6574 addressed by `val'. Use function's return value as success
6575 or failure indicator. Adjust all callers.
6576
9c8ee2ab 65772010-03-08 Pierre Muller <[email protected]>
f72d4b77
PM
6578
6579 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6580
7155de5a
HZ
65812010-03-08 Jan Kratochvil <[email protected]>
6582 Hui Zhu <[email protected]>
6583
6584 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6585 tmp_to_stopped_data_address.
6586 (record_open): Reset tmp_to_stopped_by_watchpoint and
6587 tmp_to_stopped_data_address.
6588 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6589 to_stopped_data_address.
6590
580879fc
HZ
65912010-03-08 Hui Zhu <[email protected]>
6592
6593 * i386-tdep.c (i386_process_record): Initialize regnum.
6594
b0fcb67f
JK
65952010-03-08 Jan Kratochvil <[email protected]>
6596
6597 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
6598 Do not warn on ".gnu.liblist" and ".gnu.conflict".
6599
08597104
JB
66002010-03-08 Joel Brobecker <[email protected]>
6601
6602 Memory error when reading wrong core file.
6603 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
6604 errors while reading the inferior memory, and return zero if
6605 an exception was raised.
6606
425b824a
MS
66072010-03-07 Michael Snyder <[email protected]>
6608
ec6dbf37
MS
6609 * record.c (record_restore): Rename tmpu8 to rectype.
6610
648d0c8b
MS
6611 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
6612 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
6613
6614 (i386_record_push): Rename local tmpulongest to addr.
6615
6616 (i386_process_record): Rename local tmpulongest to addr.
6617
6618 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
6619 addr64.
955db0c0
MS
6620
6621 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 6622
10760264
JB
66232010-03-07 Joel Brobecker <[email protected]>
6624
6625 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 6626 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 6627
b3c613f2
CF
66282010-03-06 Christopher Faylor <[email protected]>
6629
6630 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
6631 block. Define helper macros to reduce ifdefs in code.
6632 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
6633 size. Call unadorned GetModuleFileNameEx rather than
6634 GetModuleFileNameEx*.
6635 (windows_make_so): Use __PMAX to denote maximum buffer size and
6636 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
6637 appropriate.
6638 (get_image_name): Use __PMAX to denote maximum buffer size.
6639 (handle_load_dll): Likewise.
6640 (windows_pid_to_exec_file): Likewise.
6641 (windows_create_inferior): Add many accommodations for older Cygwin and
6642 non-Cygwin.
6643 (bad_GetModuleFileNameExW): Control inclusion of this function based on
6644 __USEWIDE conditional.
6645 (bad_GetModuleFileNameExA): Likewise.
6646 (_initialize_loadable): Just use real function names without the dyn_
6647 part since they are defined earlier.
6648
f870a310
TT
66492010-03-05 Corinna Vinschen <[email protected]>
6650 Tom Tromey <[email protected]>
6651
6652 * utils.c (host_char_to_target): Add 'gdbarch' argument.
6653 (parse_escape): Likewise.
6654 * python/py-utils.c (unicode_to_target_string): Update.
6655 (unicode_to_target_python_string): Update.
6656 (target_string_to_unicode): Update.
6657 * printcmd.c (printf_command): Update.
6658 * p-exp.y (yylex): Update.
6659 * objc-exp.y (yylex): Update.
6660 * mi/mi-parse.c: Include charset.h.
6661 (mi_parse_escape): New function.
6662 (mi_parse_argv): Use it.
6663 * jv-exp.y (yylex): Update.
6664 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
6665 function.
6666 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
6667 * gdbarch.sh (auto_charset, auto_wide_charset): New.
6668 * gdbarch.c: Rebuild.
6669 * gdbarch.h: Rebuild.
6670 * defs.h (parse_escape): Update.
6671 * cli/cli-setshow.c: Include arch-utils.h.
6672 (do_setshow_command): Update.
6673 * cli/cli-cmds.c (echo_command): Update.
6674 * charset.h (target_charset, target_wide_charset): Update.
6675 * charset.c: Include arch-utils.h.
6676 (target_charset_name): Default to "auto".
6677 (target_wide_charset_name): Likewise.
6678 (show_target_charset_name): Handle "auto".
6679 (show_target_wide_charset_name): Likewise.
6680 (be_le_arch): New global.
6681 (set_be_le_names): Add 'gdbarch' argument.
6682 (validate): Likewise. Don't call set_be_le_names.
6683 (set_charset_sfunc, set_host_charset_sfunc)
6684 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
6685 Update.
6686 (target_charset): Add 'gdbarch' argument.
6687 (target_wide_charset): Likewise. Remove 'byte_order' argument.
6688 (auto_target_charset_name): New global.
6689 (default_auto_charset, default_auto_wide_charset): New functions.
6690 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
6691 for target charsets. Copy result of nl_langinfo. Use GetACP if
6692 USE_WIN32API.
6693 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
6694 remove 'byte_order' argument. Update.
6695 (classify_type): Likewise.
6696 (c_emit_char): Update.
6697 (c_printchar): Update.
6698 (c_printstr): Update.
6699 (c_get_string): Update.
6700 (evaluate_subexp_c): Update.
6701 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
6702 Declare.
6703 * python/python.c (gdbpy_target_charset): New function.
6704 (gdbpy_target_wide_charset): Likewise.
6705 (GdbMethods): Update.
6706 * NEWS: Update.
6707
4e7386b0
UW
67082010-03-05 Ulrich Weigand <[email protected]>
6709
6710 * symfile.c (build_section_addr_info_from_objfile): Do not mask
6711 off high address bits.
6712
aab48ede
UW
67132010-03-05 Ulrich Weigand <[email protected]>
6714
6715 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
6716 address as UnsignedLongLong, not LongLong.
6717
8eeafb51 67182010-03-05 Kevin Buettner <[email protected]>
c8d5aac9 6719 Pedro Alves <[email protected]>
8eeafb51
KB
6720
6721 * remote-mips.c (gdbthread.h): Include.
6722 (remote_mips_ptid): Declare.
6723 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
6724 (common_open): Set inferior_ptid, add it as an inferior, and
6725 as a thread too. Delete FIXME comment regarding start_remote().
6726 (mips_close): Invoke generic_mourn_inferior().
6727 (mips_kill): Make sure that target_mourn_inferior is invoked.
6728 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
6729 it's now invoked from mips_close().
6730 (mips_load): Don't null out inferior_ptid. Don't call
6731 clear_symtab_users().
6732 (mips_thread_alive, mips_pid_to_str): New functions.
6733 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
6734 to_thread_alive and to_pid_to_str operations.
6735
ae411497
TT
67362010-03-04 Tom Tromey <[email protected]>
6737
6738 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
6739 in DWARF 3 and later.
6740 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
6741
0e0b460e
KS
67422010-03-04 Keith Seitz <[email protected]>
6743
6744 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
6745 If the filename portion of the linespec was quoted, recheck the
6746 remainder for additional quoting.
6747 (locate_first_half): Skip over completer chars, too.
6748
1b93ff13
TT
67492010-03-04 Tom Tromey <[email protected]>
6750
6751 * printcmd.c (printf_command): Pass dummy argument to
6752 printf_filtered.
6753
fc36e839
DE
67542010-03-04 Doug Evans <[email protected]>
6755
111f853c
DE
6756 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
6757 unwound_fp.
6758
fc36e839
DE
6759 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
6760
c7437ca6
PA
67612010-03-04 Pedro Alves <[email protected]>
6762
6763 * breakpoint.c (update_watchpoint): Create a sentinel location if
6764 the software watchpoint isn't watching any memory.
6765 (breakpoint_address_bits): Skip dummy software watchpoint locations.
6766
58dadb1b
PA
67672010-03-04 Pedro Alves <[email protected]>
6768
6769 * utils.c (fputs_maybe_filtered): Check if there's already a top
6770 level interpreter before dereferencing it. If there isn't one,
6771 don't paginate either.
6772
50e98be4
DJ
67732010-03-04 Matthew Gretton-Dann <[email protected]>
6774
6775 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
6776 the state right when single stepping.
6777 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
6778 Get the next PC along with the instruction state.
6779 (thumb_get_next_pc): Remove.
6780 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
6781
2e3ceee9
HZ
67822010-03-04 Hui Zhu <[email protected]>
6783
6784 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
6785
390a8aca
PA
67862010-03-03 Pedro Alves <[email protected]>
6787
6788 * utils.c (fputs_maybe_filtered): Always disable pagination if the
6789 top level interpreter is MI.
6790
9355b391
SS
67912010-03-03 Stan Shebs <[email protected]>
6792
6793 * remote.c (remote_download_tracepoint): Iterate over locations.
6794 * tracepoint.c (validate_actionline): Ditto.
6795 (encode_actions): Add location argument.
6796 (trace_dump_command): Check all locations to see if stepping
6797 frame.
390a8aca 6798
8685c86f
L
67992010-03-03 H.J. Lu <[email protected]>
6800 Eli Zaretskii <[email protected]>
6801
6802 * NEWS: Add X86 general purpose registers section.
6803
e8f781e2
TT
68042010-03-03 Tom Tromey <[email protected]>
6805
6806 PR mi/11098:
6807 * varobj.c (install_new_value): Handle case where new print_value
6808 is NULL.
6809
a0e0ef55
TT
68102010-03-03 Dainis Jonitis <[email protected]>
6811
6812 PR gdb/11345:
6813 * printcmd.c (printf_command): Print end of format string using
6814 printf_filtered.
6815
a58d7472
TT
68162010-03-02 Tom Tromey <[email protected]>
6817
6818 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
6819 * defs.h (read_command_lines_1): Add missing 'void'.
6820 * cli/cli-script.c (recurse_read_control_structure): Add missing
6821 'void'.
6822 (read_next_line): Likewise.
6823 (read_command_lines_1): Likewise.
6824
ce50d78b
UW
68252010-03-02 Ulrich Weigand <[email protected]>
6826
6827 * spu-tdep.c (spu_analyze_prologue): Track instruction to
6828 store backchain as part of prologue.
6829
7e9af34a
DJ
68302010-03-02 Daniel Jacobowitz <[email protected]>
6831
6832 * progspace.c (update_address_spaces): Update inferior address spaces
6833 also.
6834
01637564
DE
68352010-03-02 Doug Evans <[email protected]>
6836
6837 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
6838 lowpc,highpc args to addrmap_set_empty.
6839
1ba53b71
L
68402010-03-02 H.J. Lu <[email protected]>
6841
6842 * amd64-tdep.c (amd64_byte_names): New.
6843 (amd64_word_names): Likewise.
6844 (amd64_dword_names): Likewise.
6845 (amd64_pseudo_register_name): Likewise.
6846 (amd64_pseudo_register_read): Likewise.
6847 (amd64_pseudo_register_write): Likewise.
6848 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
6849 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
6850 set_gdbarch_pseudo_register_write and
6851 set_tdesc_pseudo_register_name. Don't call
6852 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
6853
6854 * i386-tdep.c (i386_num_mmx_regs): Removed.
6855 (i386_num_pseudo_regs): Likewise.
6856 (i386_byte_names): New.
6857 (i386_word_names): Likewise.
6858 (i386_byte_regnum_p): Likewise.
6859 (i386_word_regnum_p): Likewise.
6860 (i386_mmx_regnum_p): Updated.
6861 (i386_pseudo_register_name): Make it global. Handle byte and
6862 word pseudo-registers.
6863 (i386_pseudo_register_read): Likewise.
6864 (i386_pseudo_register_write): Likewise.
6865 (i386_pseudo_register_type): Handle byte, word and dword
6866 pseudo-registers
6867 (i386_register_reggroup_p): Don't include pseudo
6868 registers, except for MXX, in any register groups. Don't
6869 include pseudo byte, word, dword registers in general_reggroup.
6870 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
6871 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
6872 pseudo-registers after word pseudo-registers. Call
6873 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
6874
6875 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
6876 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
6877 eax_regnum.
6878 (i386_byte_regnum_p): New.
6879 (i386_word_regnum_p): Likewise.
6880 (i386_dword_regnum_p): Likewise.
6881 (i386_pseudo_register_name): Likewise.
6882 (i386_pseudo_register_read): Likewise.
6883 (i386_pseudo_register_write): Likewise.
6884
a6f5ef51
L
68852010-03-01 H.J. Lu <[email protected]>
6886
6887 * target-descriptions.c (tdesc_type): Remove
6888 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
6889 (tdesc_predefined_types): Likewise.
6890 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
6891 if flag name is empty.
6892 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
6893
6894 * features/i386/32bit-core.xml: Define i386_eflags.
6895 * features/i386/64bit-core.xml: Likewise.
6896
6897 * features/i386/32bit-sse.xml: Define i386_mxcsr.
6898 * features/i386/64bit-sse.xml: Likewise.
6899
6900 * features/i386/amd64-linux.c: Regenerated.
6901 * features/i386/amd64.c: Likewise.
6902 * features/i386/i386-linux.c: Likewise.
6903 * features/i386/i386.c: Likewise.
6904
f5dff777
DJ
69052010-03-01 Daniel Jacobowitz <[email protected]>
6906
6907 * gdbtypes.c (append_composite_type_field_raw): New.
6908 (append_composite_type_field_aligned): Use the new function.
6909 * gdbtypes.h (append_composite_type_field_raw): Declare.
6910 * target-descriptions.c (struct tdesc_type_field): Add start and end.
6911 (struct tdesc_type_flag): New type.
6912 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
6913 kind. Add size to u.u. Add u.f for flags.
6914 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
6915 (tdesc_free_type): Likewise.
6916 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
6917 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
6918 (tdesc_add_bitfield, tdesc_add_flag): New.
6919 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
6920 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
6921 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
6922 current_type. Add current_type_size and current_type_is_flags.
6923 (tdesc_start_union): Clear the new fields.
6924 (tdesc_start_struct, tdesc_start_flags): New.
6925 (tdesc_start_field): Handle struct fields, including bitfields.
6926 (field_attributes): Make type optional. Add start and end.
6927 (union_children): Rename to struct_union_children.
6928 (union_attributes): Rename to struct_union_attributes. Add optional
6929 size.
6930 (flags_attributes): New.
6931 (feature_children): Add struct and flags.
6932 * features/gdb-target.dtd: Add flags and struct to features.
6933 Make field type optional. Add field start and end.
6934
90884b2b
L
69352010-03-01 H.J. Lu <[email protected]>
6936
6937 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
6938 (amd64_linux_read_description): Likewise.
6939 (_initialize_amd64_linux_nat): Set to_read_description to
6940 amd64_linux_read_description.
6941
6942 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
6943 (amd64_linux_register_name): Removed.
6944 (amd64_linux_register_type): Likewise.
6945 (amd64_linux_core_read_description): New.
6946 (amd64_linux_init_abi): Set target description to
6947 tdesc_amd64_linux if needed. Support orig_rax in target
6948 description. Don't call set_gdbarch_register_name nor
6949 set_gdbarch_register_type. Call
6950 set_gdbarch_core_read_description.
6951 (_initialize_amd64_linux_tdep): Call
6952 initialize_tdesc_amd64_linux.
6953
6954 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
6955
6956 * amd64-tdep.c: Include "features/i386/amd64.c".
6957 (amd64_register_names): Removed.
6958 (amd64_register_name): Likewise.
6959 (amd64_register_type): Likewise.
6960 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 6961 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
6962 set_gdbarch_register_name nor set_gdbarch_register_type.
6963 (_initialize_amd64_tdep): New.
6964
6965 * i386-linux-nat.c (i386_linux_read_description): New.
6966 (_initialize_i386_linux_nat): Set to_read_description to
6967 i386_linux_read_description.
6968
6969 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
6970 (i386_linux_register_name): Removed.
6971 (i386_linux_core_read_description): New.
6972 (i386_linux_read_description): Likewise.
6973 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
6974 Set target description to tdesc_i386_linux if needed. Support
6975 orig_eax. Set register_reggroup_p. Call
6976 set_gdbarch_core_read_description.
6977 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
6978
6979 * i386-linux-tdep.h (tdesc_i386_linux): New.
6980
6981 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
6982 with I387_NUM_REGS.
6983
6984 * i386-tdep.c: Include "features/i386/i386.c".
6985 (i386_register_names): Make it const.
6986 (i386_mmx_names): Likewise.
6987 (i386_num_register_names): Removed.
6988 (i386_register_name): Likewise.
6989 (i386_eflags_type): Likewise.
6990 (i386_mxcsr_type): Likewise.
6991 (i386_sse_type): Likewise.
6992 (i386_register_type): Likewise.
6993 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
6994 (i386_pseudo_register_name): New.
6995 (i386_pseudo_register_type): Likewise.
6996 (i386_mmx_type): Make it static.
6997 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
6998 I387_NUM_REGS. Set num_core_regs and register_names. Don't
6999 call set_gdbarch_register_name nor set_gdbarch_register_type.
7000 Set register_reggroup_p. Set target description to tdesc_i386
7001 if needed. Call set_tdesc_pseudo_register_type,
7002 set_tdesc_pseudo_register_name and tdesc_use_registers.
7003 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7004 initialize_tdesc_x86_64.
7005
7006 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7007 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7008 register_names, tdesc and register_reggroup_p.
7009 (I386_NUM_FREGS): Removed.
7010 (i386_eflags_type): Likewise.
7011 (i386_mxcsr_type): Likewise.
7012 (i386_mmx_type): Likewise.
7013 (i386_sse_type): Likewise.
7014 (i386_register_name): Likewise.
7015 (i386_regnum): Add I386_MXCSR_REGNUM.
7016 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7017
7018 * i387-tdep.h (I387_NUM_REGS): New.
7019
7020 * regformats/i386/i386-linux.dat: Generated.
7021 * regformats/i386/i386.dat: Likewise.
7022 * regformats/i386/amd64-linux.dat: Likewise.
7023 * regformats/i386/amd64.dat: Likewise.
7024
7025 * regformats/reg-i386-linux.dat: Removed.
7026 * regformats/reg-i386.dat: Likewise.
7027 * regformats/reg-x86-64-linux.dat: Likewise.
7028 * regformats/reg-x86-64.dat: Likewise.
7029
d0d0ab16
CV
70302010-03-01 Corinna Vinschen <[email protected]>
7031
7032 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7033 cygwin_conv_path API rather than the deprecated
7034 cygwin_conv_to_full_posix_path.
7035 * windows-nat.c:
7036 (GetModuleFileNameExA): Undefine for Cygwin.
7037 (GetModuleFileNameExW): Define for Cygwin.
7038 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7039 Call GetModuleFileNameExW and convert path to POSIX using
7040 cygwin_conv_path.
7041 (windows_make_so): Always define p. Drop unused variable m.
7042 Don't use Win32 functions to check file existance, rather use
7043 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7044 Use canonicalize_file_name to get full path.
7045 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7046 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7047 use correct target buffer size in call to WideCharToMultiByte.
7048 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7049 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7050 (windows_create_inferior): Convert all paths and arguments to wchar_t
7051 and use CreateProcessW on Cygwin.
7052 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7053 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7054 (bad_GetModuleFileNameExW): Define for Cygwin.
7055 (_initialize_loadable): Load GetModuleFileNameExW into
7056 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7057
dc00d89f
PM
70582010-02-28 Phil Muldoon <[email protected]>
7059
7060 PR python/11036
7061 * python/py-frame.c (frapy_read_var): Add block argument and logic
7062 to cope with user provided blocks.
7063
0e095b7e
JK
70642010-02-28 Jan Kratochvil <[email protected]>
7065
7066 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7067 New comment.
7068
2f9e05b4
CV
70692010-02-28 Corinna Vinschen <[email protected]>
7070
7071 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7072 (COMMON_OBS): ... to here since it's used unconditionally.
7073 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7074 (SFILES): To here.
7075
eb195664
DD
70762010-02-26 David Daney <[email protected]>
7077
7078 * mips-linux-tdep.c: Update struct sigframe comments.
7079 (SIGFRAME_CODE_OFFSET): Delete macro.
7080 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7081 this_frame's sp.
7082 (mips_linux_n32n64_sigframe_init): Same.
7083
97b0f3e2
KB
70842010-02-26 Kevin Buettner <[email protected]>
7085
7086 * remote-mips.c (mips_load): Don't use pseudo-register when
7087 invalidating regcache.
7088
4069ebbe
DJ
70892010-02-26 Daniel Jacobowitz <[email protected]>
7090
7091 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7092
05071a4d
PA
70932010-02-26 Pedro Alves <[email protected]>
7094
7095 * NEWS: Add "New targets" section, and mention ARM Symbian
7096 support.
7097
6063c216
UW
70982010-02-26 Ulrich Weigand <[email protected]>
7099
7100 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7101 add ADDR_SIZE member.
7102 (allocate_piece_closure): Update.
7103 (copy_pieced_value_closure): Likewise.
7104 (dwarf2_evaluate_loc_desc): Likewise.
7105 (read_pieced_value): Use DWARF address size instead of
7106 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7107
5107b149 71082010-02-26 Phil Muldoon <[email protected]>
c8d5aac9 7109 Tom Tromey <[email protected]>
5107b149
PM
7110
7111 * python/py-type.c (typy_lookup_typename): Add in block argument.
7112 If provided restrict lookup to specified blocks.
7113 (gdbpy_lookup_type): Likewise.
7114 (typy_lookup_type): Likewise.
7115
78664fa3 71162010-02-25 Daniel Jacobowitz <[email protected]>
8d95cc3b 7117
78664fa3
PA
7118 Symbian config
7119
7120 gdb/
7121 * arm-symbian-tdep.c: New.
7122 * configure.tgt (arm*-*-symbianelf*): New target.
7123 (*-*-symbianelf*): New OS.
7124 * osabi.c (gdb_osabi_names): Add Symbian.
7125 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7126 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7127 (ALLDEPFILES): Add arm-symbian-tdep.c.
7128
eb73e134
DJ
71292010-02-25 Daniel Jacobowitz <[email protected]>
7130
7131 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7132
46ef47e5
PA
71332010-02-24 Pedro Alves <[email protected]>
7134
7135 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7136
f3e9a817 71372010-02-24 Phil Muldoon <[email protected]>
8d95cc3b 7138 Tom Tromey <[email protected]>
f3e9a817
PM
7139 Thiago Jung Bauermann <[email protected]>
7140
7141 * python/python.c (_initialize_python): Call
7142 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7143 gdbpy_initialize_blocks.
7144 * python/python-internal.h: Declare struct symbol, block and
7145 symtab_and_line. Declare block_object_type and
7146 symbol_object_type
7147 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7148 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7149 (symbol_to_symbol_object, block_to_block_object)
7150 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7151 (gdbpy_initialize_blocks ): Declare.
7152 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7153 (frapy_select): Add methods.
7154 (frapy_read_var): Add symbol branch.
7155 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7156 py-block.
7157 (SUBDIR_PYTHON_SRCS): Likewise.
7158 (py-symbol.o): New rule.
7159 (py-symtab.o): Likewise.
7160 (py-block.o): Likewise.
7161 * python/py-symbol.c: New file.
7162 * python/py-symtab.c: Likewise.
7163 * python/py-block.c: Likewise.
7164
24291992
PA
71652010-02-24 Pedro Alves <[email protected]>
7166
7167 PR gdb/11321
7168
7169 * inferior.h (prepare_for_detach): Declare.
7170 (struct inferior) <detaching>: New field.
7171 * infrun.c (prepare_for_detach): New.
7172 (handle_inferior_event) <random signal>: Don't stop if detaching.
7173 * target.c (target_detach): Call prepare_for_detach.
7174
fc1cf338
PA
71752010-02-24 Pedro Alves <[email protected]>
7176
7177 Per-process displaced stepping queue.
7178
7179 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7180 (displaced_step_gdbarch, displaced_step_closure,
7181 (displaced_step_original, displaced_step_copy): Move globals to
7182 this...
7183 (struct displaced_step_inferior_state): ... new structure.
7184 (displaced_step_inferior_states): New global.
7185 (get_displaced_stepping_state, add_displaced_stepping_state)
7186 (remove_displaced_stepping_state, infrun_inferior_exit): New
7187 functions.
7188 (displaced_step_clear): Add displaced_step_inferior_state
7189 parameter, and adjust to handle it.
7190 (displaced_step_clear_cleanup): Parameter is now a
7191 displaced_step_inferior_state. Adjust.
7192 (displaced_step_prepare): Adjust.
7193 (displaced_step_fixup, displaced_step_fixup)
7194 (infrun_thread_ptid_changed, resume): Adjust.
7195 (init_wait_for_inferior): Don't call displaced_step_clear.
7196 (infrun_thread_stop_requested): Rewrite.
7197 (_initialize_infrun): Install infrun_inferior_exit as
7198 inferior_exit observer.
7199
0723dbf5
PA
72002010-02-24 Pedro Alves <[email protected]>
7201
7202 * inferior.h (ptid_match): Declare.
7203 * infrun.c (ptid_match): New.
7204 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7205 (handle_notification): Add debug output.
7206 * linux-nat.c (ptid_match): Delete.
7207
09de9781
DM
72082010-02-24 David S. Miller <[email protected]>
7209
7210 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7211 * syscalls/sparc-linux.xml: New.
7212 * syscalls/sparc64-linux.xml: New.
7213 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7214 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7215 (sparc32_linux_get_syscall_number): New function.
7216 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7217 syscall number fetcher.
7218 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7219 (sparc64_linux_get_syscall_number): New function.
7220 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7221 syscall number fetcher.
7222
a79b8f6e
VP
72232010-02-24 Vladimir Prus <[email protected]>
7224
7225 Multiexec MI
7226
7227 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7228 * inferior.c (add_inferior_silent): Notify inferior_added
7229 observer.
7230 (delete_inferior_1): Notify inferior_removed observer.
7231 (exit_inferior_1): Pass inferior, not pid, to observer.
7232 (inferior_appeared): Likewise.
7233 (add_inferior_with_spaces): New.
7234 (add_inferior_command): Use the above.
7235 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7236 Declare.
7237
7238 * inflow.c (inflow_inferior_exit): Likewise.
7239 * jit.c (jit_inferior_exit_hook): Likewise.
7240
7241 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7242 remove-inferior.
7243 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7244 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7245 (report_initial_inferior): New.
7246 (mi_inferior_removed): Register the above. Make sure
7247 inferior_added observer is called on the first inferior.
7248 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7249 inferior number, not pid.
7250 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7251 affected.
7252 * mi/mi-main.c (current_context): New.
7253 (proceed_thread_callback): Use typed closure.
7254 Proceed everything if pid is 0. Most implementation split into
7255 (proceed_thread): ... this.
7256 (run_one_inferior): New.
7257 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7258 Adjust for multiexec behaviour.
7259 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7260 (mi_cmd_execute): Handle the 'thread-group' option here.
7261 Do some extra checks.
7262 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7263 options.
7264 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7265
115d30f9
VP
72662010-02-24 Vladimir Prus <[email protected]>
7267
7268 Make -exec-run a proper MI commands.
7269
7270 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7271 * mi/mi-cmds.c (mi_cmds): Adjust.
7272 * mi/mi-main.c (mi_cmd_exec_run): New.
7273
06cd862c
PA
72742010-02-24 Pedro Alves <[email protected]>
7275 Stan Shebs <[email protected]>
7276
7277 * tracepoint.h (set_traceframe_number)
7278 (cleanup_restore_current_traceframe): Declare.
7279 * tracepoint.c (set_traceframe_number): New.
7280 (struct current_traceframe_cleanup): New.
7281 (do_restore_current_traceframe_cleanup)
7282 (restore_current_traceframe_cleanup_dtor)
7283 (make_cleanup_restore_current_traceframe): New.
7284 * infrun.c: Include tracepoint.h.
7285 (fetch_inferior_event): Switch out and in of tfind mode.
7286
ab92d69b
PA
72872010-02-24 Pedro Alves <[email protected]>
7288
7289 * breakpoint.c (breakpoint_init_inferior): Also delete
7290 bp_shlib_event breakpoints.
7291 * solib-frv.c (enable_break): Remove call to
7292 remove_solib_event_breakpoints.
7293 * solib-svr4.c (enable_break): Ditto.
7294 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7295 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7296 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7297 * solib-spu.c (spu_enable_break): Ditto.
7298
e707a91d
PA
72992010-02-23 Harald Koenig <[email protected]>
7300
7301 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7302
cfce2ea2
PA
73032010-02-23 Harald Koenig <[email protected]>
7304
7305 * varobj.c (varobj_update): Avoid non-constants in initializers.
7306
05566b3b
TT
73072010-02-23 Tom Tromey <[email protected]>
7308
7309 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7310 handle big-endian values.
7311 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7312
85d721b8
PA
73132010-02-22 Pedro Alves <[email protected]>
7314
7315 PR9605
7316
7317 gdb/
7318 * breakpoint.c (insert_bp_location): If inserting the read
7319 watchpoint failed, fallback to an access watchpoint.
7320 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7321 if the value changed, if not watching the same memory for writes.
7322 (watchpoint_locations_match): Add comment.
7323 (update_global_location_list): Copy the location's watchpoint type.
7324 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7325 handle read watchpoints here.
7326 (i386_insert_watchpoint): Read watchpoints aren't supported.
7327 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7328 packets.
7329 * target.h (target_insert_watchpoint): Update description.
7330
48ea67a7
TT
73312010-02-19 Tom Tromey <[email protected]>
7332
7333 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7334 * m2-typeprint.c (m2_print_type): Update.
7335 * gdbtypes.c (recursive_dump_type): Update.
7336 (copy_type_recursive): Update.
7337 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7338 (c_type_print_base): Update.
7339 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7340 Remove.
7341 (struct cplus_struct_type) <ntemplate_args>: Remove.
7342 <struct template_arg>: Remove.
7343 <is_dynamic>: Move earlier.
7344 (TYPE_TEMPLATE_ARGS): Remove.
7345 (TYPE_NTEMPLATE_ARGS): Remove.
7346 (TYPE_TEMPLATE_ARG): Remove.
7347
48e32051
TT
73482010-02-19 Tom Tromey <[email protected]>
7349
7350 PR c++/8693, PR c++/9496:
7351 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7352 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7353 write_dollar_variable. Don't try to classify NAME tokens.
7354 (token_and_value): New type.
7355 (token_fifo, popping, name_obstack): New globals.
7356 (classify_name): New function.
7357 (classify_inner_name): Likewise.
7358 (yylex): Likewise.
7359 (VARIABLE): Now has type sval.
7360 (exp : VARIABLE): Call write_dollar_variable.
7361 (qualified_name): Use TYPENAME, not typebase. Add production for
7362 multiple "::" instances.
7363 (variable): Use name_not_typename.
7364 (qualified_type): Remove.
7365 (typebase): Update.
7366
672d9c23
JK
73672010-02-19 Jan Kratochvil <[email protected]>
7368
7369 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7370 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7371 found by bfd_get_section_by_name.
7372 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7373
bfbf3774
JB
73742010-02-19 Joel Brobecker <[email protected]>
7375
7376 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7377 7.0 section" into "Changes in 7.1".
7378
6756b09b 73792010-02-19 Joel Brobecker <[email protected]>
7380
7381 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7382 * version.in: Bump version to 7.1.50.20100219-cvs.
7383
202b96c1
PA
73842010-02-18 Harald Koenig <[email protected]>
7385
7386 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7387 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7388
de2e5182
TT
73892010-02-17 Tom Tromey <[email protected]>
7390
7391 * NEWS: Add Python API Improvements section.
7392
7280022e
DJ
73932010-02-18 Daniel Jacobowitz <[email protected]>
7394
7395 * NEWS: Correct typo.
7396
6f451e5e
TT
73972010-02-17 Tom Tromey <[email protected]>
7398
7399 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7400
012836ea
JK
74012010-02-17 Jan Kratochvil <[email protected]>
7402
7403 * symfile.c (build_section_addr_info_from_objfile): Include sections
7404 only if they are SEC_ALLOC or SEC_LOAD.
7405
d182d057
L
74062010-02-17 H.J. Lu <[email protected]>
7407
7408 PR shlibs/11293
7409 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7410 of ULONGEST for address size.
7411
4eef138c
TT
74122010-02-17 Tom Tromey <[email protected]>
7413
7414 * NEWS: Add C++ improvements section.
7415
548a926a
UW
74162010-02-17 Ulrich Weigand <[email protected]>
7417
7418 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7419 PyThreadState_Swap): Avoid "statement with no effect" warning.
7420
ad3a0e5b
JK
74212010-02-17 Jan Kratochvil <[email protected]>
7422
7423 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7424 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7425
243e2c5d 74262010-02-17 Tristan Gingold <[email protected]>
b2319725 7427 Petr Hluzin <[email protected]>
243e2c5d
TG
7428
7429 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7430 gdb_assert. Fix info->size for SIG prologue.
7431
275f2e57
DJ
74322010-02-16 Daniel Jacobowitz <[email protected]>
7433
7434 * infcmd.c (show_inferior_tty_command): Check for NULL.
7435 Correct output message.
7436
791dfb64
DJ
74372010-02-16 Daniel Jacobowitz <[email protected]>
7438
7439 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7440 FUNCTION contains parentheses. Improve removal of a trailing
7441 single quote.
7442
14d1346b
DJ
74432010-02-16 Daniel Jacobowitz <[email protected]>
7444
7445 * gcore.c (do_bfd_delete_cleanup): New function.
7446 (gcore_command): Use it. Discard the cleanup after success.
7447 (gcore_copy_callback): Delete dead code.
7448
e76ab67f
DJ
74492010-02-16 Daniel Jacobowitz <[email protected]>
7450
7451 * symfile.c (addr_info_make_relative): Always use
7452 find_lowest_section.
7453
71dee663
SW
74542010-02-16 Sami Wagiaalla <[email protected]>
7455
7456 * NEWS: Added entry for namespace fixes.
7457
a9854bd5
TT
74582010-02-15 Tom Tromey <[email protected]>
7459
7460 * dwarf2read.c (guess_structure_name): Allocate name on the
7461 objfile obstack.
7462
fd9e29b5
TT
74632010-02-15 Tom Tromey <[email protected]>
7464
7465 * c-typeprint.c (c_type_print_base): Reverse order of test.
7466
4e1fc9c9
JK
74672010-02-15 Jan Kratochvil <[email protected]>
7468
7469 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7470 initialize it from ELF BFD. Extend the prelink condition by it.
7471
74164c56
JK
74722010-02-15 Jan Kratochvil <[email protected]>
7473
7474 * defs.h (parse_pid_to_attach): New.
7475 * utils.c (parse_pid_to_attach): New.
7476 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7477 * gnu-nat.c (gnu_attach): Likewise.
7478 * nto-procfs.c (procfs_attach): Likewise.
7479 * procfs.c (procfs_attach): Likewise.
7480 * windows-nat.c (windows_attach): Likewise.
7481 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7482 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7483 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7484 check.
7485
bf6adea8
MM
74862010-02-14 Masaki Muranaka <[email protected]>
7487
7488 * MAINTAINERS: Add myself for write after approval privileges.
7489
28f34a8f
JK
74902010-02-13 Jan Kratochvil <[email protected]>
7491
7492 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7493 block.
7494
701ed6dc
JK
74952010-02-13 Jan Kratochvil <[email protected]>
7496
7497 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7498 only if INFO_VERBOSE.
7499
e5829bee
MS
75002010-02-12 Tomas Holmberg <[email protected]>
7501
7502 * mi/mi-main.c: Added the --reverse flag to the following MI
7503 commands: exec-continue, exec-finish, exec-next, exec-step,
7504 exec-next-instruction, exec-step-instruction. This is to
7505 support reverse execution over the MI interface to gdb.
7506
081dfbf7
PA
75072010-02-12 Pedro Alves <[email protected]>
7508
7509 * tracepoint.c (_initialize_tracepoint): Specify that the address
7510 range of `tfind outsize' is exclusive, and that the address range
7511 of `tfind range' is inclusive, in the commands' help strings.
7512
ecc13e53
JB
75132010-02-12 Joel Brobecker <[email protected]>
7514
7515 Spurious "dll not found" error messages on x64-windows.
7516 * windows-nat.c: Add include of complaints.h.
7517 (handle_unload_dll): Change dll-not-found error into a complaint.
7518
15c3d785
PA
75192010-02-12 Pedro Alves <[email protected]>
7520
7521 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7522 bp_tracepoint and bp_fast_tracepoint, not
7523 bp_loc_software_breakpoint.
7524 (update_global_location_list): Tracepoints are never duplicates of
7525 anything.
7526
fd9b8c24
PA
75272010-02-12 Pedro Alves <[email protected]>
7528
7529 * breakpoint.c (break_command_really): Change return type to int.
7530 Return false if no breakpoint was created, true otherwise.
7531 (trace_command): Don't set the tracepoint count if no tracepoint
7532 was created.
7533 (ftrace_command): Ditto.
7534 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7535 created in the breakpoints table.
7536
5c0d192f
JK
75372010-02-11 Jan Kratochvil <[email protected]>
7538 Ulrich Weigand <[email protected]>
7539
7540 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7541
5d5b640e
PA
75422010-02-11 Pedro Alves <[email protected]>
7543
7544 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7545 the offset value isn't of integral type.
7546
e5a0a904
JK
75472010-02-11 Jan Kratochvil <[email protected]>
7548
7549 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7550 New.
7551
be636754
PA
75522010-02-11 Pedro Alves <[email protected]>
7553
7554 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7555 non-subscriptable types.
7556 * valarith.c (binop_types_user_defined_p): New, abstracted out
7557 from ...
7558 (binop_user_defined_p): ... this.
7559 * value.h (binop_types_user_defined_p): Declare.
7560
10ef8d6a
PA
75612010-02-11 Pedro Alves <[email protected]>
7562
7563 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7564 Merge uploaded TSVs before merging uploaded tracepoints.
7565
b1028c8e
PA
75662010-02-11 Pedro Alves <[email protected]>
7567
7568 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7569
7a93fb82 75702010-02-11 Vladimir Prus <[email protected]>
84d90c10 7571
7a93fb82
VP
7572 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7573 whitespace character after a dot in comment.
7574 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7575 Likewise.
7576 (list_args_or_locals): For the 'all' (that is
7577 -stack-list-variables) case, always output list of tuples.
7578 Output 'arg' field if variable is argument.
84d90c10 7579
92981e24
TT
75802010-02-10 Tom Tromey <[email protected]>
7581
7582 * parser-defs.h (parser_debug): Declare.
7583 * parse.c (_initialize_parse): Install "debug parser" set/show
7584 command.
7585 (parser_debug): New global.
7586 (show_parserdebug): New function.
7587 * c-exp.y (c_parse): Set yydebug.
7588
9fd3625f
L
75892010-02-10 H.J. Lu <[email protected]>
7590
7591 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7592 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7593 (tdesc_predefined_types): Add i387_ext, i386_eflags and
7594 i386_mxcsr.
7595 (tdesc_find_type): New.
7596 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
7597 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7598
7599 * target-descriptions.h (tdesc_find_type): New.
7600
2fe842e5
MS
76012010-02-10 Michael Snyder <[email protected]>
7602
7603 * gdb-gdb.py: Comment fix.
7604
f18b4cab
TG
76052010-02-09 Tristan Gingold <[email protected]>
7606
7607 * machoread.c (macho_symfile_relocate): New function.
7608 (macho_sym_fns): Use macho_symfile_relocate instead of
7609 default_symfile_relocate.
7610 (macho_oso_data): New type.
7611 (current_oso): New variable.
7612 (macho_add_oso_symfile): Do not compute section_addr_info, but
7613 instead set vma of sections.
7614 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
7615 Set and clear current_oso.
7616
31dbc1c5
JB
76172010-02-09 Joel Brobecker <[email protected]>
7618
7619 Wrong type description for tagged type parameter.
7620 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
7621 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
7622 reference to a tagged type.
7623
399f313b
TG
76242010-02-09 Tristan Gingold <[email protected]>
7625
7626 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
7627 brothers of the parent.
7628
714f19d5
TT
76292010-02-08 Tom Tromey <[email protected]>
7630
7631 PR c++/8017:
7632 * value.h: Update.
7633 * valops.c (search_struct_field): Make 'name' const.
7634 (search_struct_method): Likewise.
7635 (find_method_list): Make 'method' const.
7636 (value_struct_elt): Make 'name' and 'err' const.
7637 (value_find_oload_method_list): Make 'method' const.
7638 (find_overload_match): Make 'name' const.
7639 * eval.c (evaluate_subexp_standard): New locals function,
7640 function_name.
7641 <OP_FUNCALL>: Handle OP_SCOPE specially.
7642
de0a0249
UW
76432010-02-08 Ulrich Weigand <[email protected]>
7644
7645 * infrun.c (handle_inferior_event): Do not look up regcache
7646 for exited processes.
7647
8d95cc3b 76482010-02-08 Chris Moller <[email protected]>
83b10087
CM
7649
7650 PR gdb/10728
7651 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 7652 warn if found, and assume length = 1.
83b10087 7653
99903ae3
CM
76542010-02-08 Chris Moller <[email protected]>
7655
7656 PR gdb/9067
7657 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 7658 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 7659
e3e9f5a2
PA
76602010-02-08 Pedro Alves <[email protected]>
7661
7662 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
7663 resumed LWPs as resumed.
7664 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
7665 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
7666 of throwing an internal error. If an LWP of a process we're not
7667 waiting for reports a signal, don't force collecting a SIGSTOP,
7668 and if it was breakpoint hit in non-stop mode, cancel it. Don't
7669 go through all LWPs cancelling breakpoints in non-stop mode.
7670 (resume_stopped_resumed_lwps): New.
7671 (linux_nat_wait): Use it.
7672
46763423
L
76732010-02-07 H.J. Lu <[email protected]>
7674
7675 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
7676 i386/amd64 and i386/amd64-linux.
7677 (i386/i386-expedite): New.
7678 (i386/i386-linux-expedite): Likewise.
7679 (i386/amd64-expedite):Likewise.
7680 (i386/amd64-linux-expedite): Likewise.
7681 ($(outdir)/i386/i386-linux.dat): Likewise.
7682 ($(outdir)/i386/amd64.dat): Likewise.
7683 ($(outdir)/i386/amd64-linux.dat): Likewise.
7684
7685 * features/i386/32bit-core.xml: New.
7686 * features/i386/32bit-linux.xml: Likewise.
7687 * features/i386/32bit-sse.xml: Likewise.
7688 * features/i386/64bit-core.xml: Likewise.
7689 * features/i386/64bit-linux.xml: Likewise.
7690 * features/i386/64bit-sse.xml: Likewise.
7691 * features/i386/i386-linux.xml: Likewise.
7692 * features/i386/i386.xml: Likewise.
7693 * features/i386/amd64-linux.xml: Likewise.
7694 * features/i386/amd64.xml: Likewise.
7695 * features/i386/i386-linux.c: Likewise.
7696 * features/i386/i386.c: Likewise.
7697 * features/i386/amd64-linux.c: Likewise.
7698 * features/i386/amd64.c: Likewise.
7699
82856980
SW
77002010-02-05 Sami Wagiaalla <[email protected]>
7701
7702 PR c++/7935:
7703 * cp-support.h: Added char* alias element to using_direct data
7704 struct.
7705 (cp_add_using): Added char* alias argument.
7706 (cp_add_using_directive): Ditto.
7707 * cp-namespace.c: Updated with the above changes.
7708 (cp_lookup_symbol_imports): Check for aliases.
7709 * dwarf2read.c (read_import_statement): Figure out local alias
7710 for the import and pass it on to cp_add_using.
7711 (read_namespace): Pass alias argument to cp_add_using.
7712
d18b8b7a
HZ
77132010-02-05 Hui Zhu <[email protected]>
7714
7715 * defs.h (gdb_bfd_errmsg): New extern.
7716 * exec.c (exec_file_attach): Change bfd_errmsg to
7717 gdb_bfd_errmsg.
7718 * utils.c (AMBIGUOUS_MESS1): New macro.
7719 (AMBIGUOUS_MESS2): New macro.
7720 (gdb_bfd_errmsg): New function.
7721
48379de6
DE
77222010-02-04 Doug Evans <[email protected]>
7723
7724 * solib-svr4.c (enable_break): Add comment.
7725
4ee73e90
AG
77262010-02-04 Anthony Green <[email protected]>
7727
7728 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
7729 gracefully.
7730
1a334831
TT
77312010-02-04 Tom Tromey <[email protected]>
7732
7733 * valops.c (search_struct_field): Account for
7734 value_embedded_offset. Fix check for virtual base past the end of
7735 the object. Use value_copy when making a slice of the value.
7736
1180b2c8
L
77372010-02-04 H.J. Lu <[email protected]>
7738
7739 PR tui/9622
7740 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
7741 only if gdb_stdout is a tty.
7742
c3f08eb7
L
77432010-02-04 H.J. Lu <[email protected]>
7744
7745 * target-descriptions.c: Include "osabi.h".
7746 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
7747 OSABI.
7748
2d33f7b8
TG
77492010-02-04 Tristan Gingold <[email protected]>
7750
7751 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
7752 (macho_symtab_read): Adjust calls to macho_add_oso.
7753 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
7754 (macho_symfile_read): Adjust call to macho_oso_symfile.
7755 (macho_new_init): Move this function after declarations.
7756 (macho_symfile_init): Ditto.
7757 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
7758 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
7759
11334b82
VP
77602010-02-04 Vladimir Prus <[email protected]>
7761
7762 Include MI command in remotelog.
7763
7764 * mi/mi-main.c (mi_execute_command): Call target_log_command.
7765
ff97be06
L
77662010-02-03 H.J. Lu <[email protected]>
7767
7768 * remote.c (remote_state): Remove gdbarch.
7769 (init_remote_state): Don't set gdbarch.
7770 (remote_query_supported): Pass target_gdbarch instead of
7771 rs->gdbarch to gdbarch_qsupported.
7772
75cebea9
L
77732010-02-03 H.J. Lu <[email protected]>
7774
7775 * gdbarch.sh: Add qsupported.
7776
7777 * gdbarch.c: Regenerated.
7778 * gdbarch.h: Likewise.
7779
7780 * remote.c (remote_state): Add gdbarch.
7781 (init_remote_state): Set gdbarch.
7782 (remote_query_supported): Support gdbarch_qsupported.
7783
c1dec97b
DJ
77842010-02-03 Daniel Jacobowitz <[email protected]>
7785
7786 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
7787 __FreeBSD_kernel_version.
7788
ac8035ab
TG
77892010-02-03 Tristan Gingold <[email protected]>
7790
7791 * symfile.h (struct sym_fns): Add sym_relocate field.
7792 (default_symfile_relocate): New prototype.
7793 (symfile_relocate_debug_section): First argument is now an objfile.
7794 * symfile.c (default_symfile_relocate): Rename from
7795 symfile_relocate_debug_section, first argument is now an objfile.
7796 (symfile_relocate_debug_section): New function.
7797 * coffread.c (coff_sym_fns): Set sym_relocate field.
7798 * somread.c (som_sym_fns): Ditto.
7799 * mipsread.c (ecoff_sym_fns): Ditto.
7800 * machoread.c (macho_sym_fns): Ditto.
7801 * elfread.c (elf_sym_fns): Ditto.
7802 * dwarf2read.c (dwarf2_read_section): Ditto.
7803 * xcoffread.c (xcoff_sym_fns): Ditto.
7804 * dbxread.c (aout_sym_fns): Ditto.
7805 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
7806 (elfstab_build_psymtabs): Ditto.
7807
be52b756
L
78082010-02-03 H.J. Lu <[email protected]>
7809
7810 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
7811
9c3c02fd
TT
78122010-02-02 Tom Tromey <[email protected]>
7813
7814 * valops.c (value_cast_structs): Try downcasting using the RTTI
7815 type.
7816
f23f4c59
TT
78172010-02-02 Tom Tromey <[email protected]>
7818
7819 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
7820 (gnuv2_baseclass_offset): Now static.
7821 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
7822 * gnu-v2-abi.h: Remove.
7823
0cc2414c
TT
78242010-02-02 Tom Tromey <[email protected]>
7825
7826 * m2-typeprint.c (m2_record_fields): Don't use
7827 TYPE_DECLARED_TYPE.
7828 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
7829 (struct main_type) <flag_declared_class>: New field.
7830 (struct cplus_struct_type) <declared_type>: Remove.
7831 <ntemplate_args>: Move earlier.
7832 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
7833 (DECLARED_TYPE_TEMPLATE): Remove.
7834 (TYPE_DECLARED_TYPE): Remove.
7835 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
7836 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
7837 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
7838 TYPE_DECLARED_TYPE.
7839
edf3d5f3
TT
78402010-02-02 Tom Tromey <[email protected]>
7841
7842 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
7843 * valops.c (search_struct_field): Compute nbases after calling
7844 CHECK_TYPEDEF.
7845 (check_field): Call CHECK_TYPEDEF.
7846 * cp-valprint.c (cp_print_value): Pass correct address to
7847 baseclass_offset. Fix check for virtual base past the end of the
7848 object. Don't offset address passed to cp_print_value_fields or
7849 apply_val_pretty_printer.
7850 (cp_print_value_fields): Fix call to val_print.
7851 (cp_print_value_fields_rtti): New function.
7852 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
7853 * p-valprint.c (pascal_object_print_value_fields): Fix call to
7854 val_print.
7855 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
7856 offset to address.
7857 * language.h (struct language_defn) <la_val_print>: Document.
7858 * c-lang.h (cp_print_value_fields_rtti): Declare.
7859
e4b7f41c
JK
78602010-02-01 Jan Kratochvil <[email protected]>
7861
7862 PR libc/11214:
7863 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7864 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
7865 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
7866
7618e12b
DJ
78672010-02-01 Michael Matz <[email protected]>
7868 Daniel Jacobowitz <[email protected]>
7869
e4b7f41c 7870 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
7871 functions use a frame pointer.
7872
b381ea14
JK
78732010-02-01 Jan Kratochvil <[email protected]>
7874
7875 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
7876 by a conditional setting DYN_ADDR. Use DYN_ADDR.
7877 * config/djgpp/fnchange.lst: Add translations for
7878 symbol-without-target_section.exp and symbol-without-target_section.c.
7879
0e05dfcb
DJ
78802010-02-01 Daniel Jacobowitz <[email protected]>
7881
7882 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
7883 (remote_breakpoint_for_pc): Correct invalid_p check.
7884 * gdbarch.c: Regenerated.
7885
f9d67f43
DJ
78862010-02-01 Daniel Jacobowitz <[email protected]>
7887
7888 * arm-tdep.c (arm_find_mapping_symbol): New function, from
7889 arm_pc_is_thumb.
7890 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
7891 (extend_buffer_earlier): New function.
7892 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
7893 (arm_adjust_breakpoint_address): New function.
7894 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
7895
177321bd
DJ
78962010-02-01 Daniel Jacobowitz <[email protected]>
7897
7898 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
7899 (arm_linux_thumb2_le_breakpoint): New constants.
7900 (arm_linux_init_abi): Set thumb2_breakpoint and
7901 thumb2_breakpoint_size.
7902 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
7903 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
7904 Implement support for single stepping through IT blocks if
7905 a 32-bit Thumb breakpoint instruction is available.
7906 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
7907 is available, use it when needed.
7908 (arm_remote_breakpoint_from_pc): New function.
7909 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
7910 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
7911 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
7912
a1dcb23a
DJ
79132010-02-01 Daniel Jacobowitz <[email protected]>
7914
7915 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
7916 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
7917 * gdbarch.c, gdbarch.h: Regenerated.
7918 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
7919 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
7920 gdbarch_remote_breakpoint_from_pc.
7921
2b009048
DJ
79222010-01-29 Daniel Jacobowitz <[email protected]>
7923
7924 * infrun.c (prepare_to_proceed): Handle other signals which might
7925 match a breakpoint.
7926 (handle_inferior_event): Move the check for unusual breakpoint
7927 signals earlier.
7928
e4e2711a
JB
79292010-01-29 Paul Hilfinger <[email protected]>
7930
7931 amd64 - function returning record with field straddling 2 registers.
7932 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
7933 a record of length <= 16 in which a field straddles the two
7934 eightbytes.
7935
cba6fab5
JB
79362010-01-29 Joel Brobecker <[email protected]>
7937
7938 Implement return values on amd64-windows.
7939 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
7940 (amd64_windows_return_value): New function.
7941 (amd64_windows_init_abi): Call set_gdbarch_return_value with
7942 amd64_windows_return_value.
7943
3af6ddfe
JB
79442010-01-29 Joel Brobecker <[email protected]>
7945
7946 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 7947 parameter registers.
3af6ddfe
JB
7948 * i386-tdep.h (struct gdbarch_tdep): Add new field
7949 integer_param_regs_saved_in_caller_frame.
7950 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7951 tdep->integer_param_regs_saved_in_caller_frame to 1.
7952 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
7953 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
7954
80d19a06
JB
79552010-01-29 Joel Brobecker <[email protected]>
7956
7957 amd64-windows: memory args passed by pointer during function calls.
7958 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
7959 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
7960 where tdep->memory_args_by_pointer is non-zero.
7961 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
7962 tdep->memory_args_by_pointer to 1.
7963
ba581dc1
JB
79642010-01-29 Joel Brobecker <[email protected]>
7965
4966b6c2 7966 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
7967 * i386-tdep.h (enum amd64_reg_class): New, moved here from
7968 amd64-tdep.c.
7969 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
7970 call_dummy_integer_regs, and classify.
7971 * amd64-tdep.h (amd64_classify): Add declaration.
7972 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
7973 (amd64_reg_class): Delete, moved to i386-tdep.h.
7974 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
7975 Replace call to amd64_classify by call to tdep->classify.
7976 (amd64_push_arguments): Get the list of registers to use for
7977 passing integer parameters from the gdbarch tdep structure,
7978 rather than using a hardcoded one. Replace calls to amd64_classify
7979 by calls to tdep->classify.
7980 (amd64_push_dummy_call): Get the register number used for
7981 the "hidden" argument from tdep->call_dummy_integer_regs.
7982 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
7983 and tdep->call_dummy_integer_regs. Set tdep->classify.
7984 * amd64-windows-tdep.c: Add include of gdbtypes.h.
7985 (amd64_windows_dummy_call_integer_regs): New static global.
7986 (amd64_windows_classify): New function.
7987 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
7988 tdep->call_dummy_integer_regs and tdep->classify.
7989
d37346f0
DJ
79902010-01-28 Daniel Jacobowitz <[email protected]>
7991
7992 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
7993 for the new regcache. All callers updated.
7994 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
7995 (get_thread_arch_regcache): Do not set aspace here.
7996 * regcache.h (regcache_xmalloc): Update declaration.
7997
7998 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
7999 regcache_xmalloc updated.
8000
7434dadd
JB
80012010-01-28 Joel Brobecker <[email protected]>
8002
8003 Another -Wunused-function error in procfs.c (sparc-solaris)
8004 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8005 Only define if SYS_syssgi is defined.
8006 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8007 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8008 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8009 is itself defined.
8010
16d905e2
CF
80112010-01-27 Christopher Faylor <[email protected]>
8012
8013 * windows-nat.c (windows_initialization_done): New variable.
8014 (get_windows_debug_event): Issue error when process dies before
8015 completely initializing.
8016 (do_initial_windows_stuff): Set flag to indicate when we are done with
8017 the initial steps of attaching to the child.
8018
cd55e50f
JK
80192010-01-27 Jan Kratochvil <[email protected]>
8020
8021 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8022
99cc78aa
DE
80232010-01-27 Doug Evans <[email protected]>
8024
4c7dcb84
DE
8025 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8026
99cc78aa
DE
8027 * breakpoint.c (bpstat_stop_status): Delete useless code.
8028
52334bf5
JK
80292010-01-27 Jan Kratochvil <[email protected]>
8030
8031 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8032 objfile via SYMBOL_SYMTAB.
8033
708ead4e
TT
80342010-01-26 Tom Tromey <[email protected]>
8035
8036 PR exp/7643:
8037 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8038 coerce_array on result.
8039
b14e635e
SW
80402010-01-26 Sami Wagiaalla <[email protected]>
8041
8042 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8043 search_parent argument.
8044 (cp_add_using): Initialize 'searched' field.
8045 (reset_directive_searched): New function.
8046 * cp-support.h: Add 'searched' field to using_direct struct.
8047 (cp_lookup_symbol_imports): Ditto.
8048 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8049 Perform recursive search.
8050 Implement non parent search.
8051 * valops.c (value_maybe_namespace_elt): Updated.
8052
8540c487
SW
80532010-01-26 Sami Wagiaalla <[email protected]>
8054
8055 PR gdb/10929:
8056 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8057 scopes which contain using directives even if they contain no
8058 declarations.
8059 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8060 la_lookup_symbol_nonlocal.
8061 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8062 cp_lookup_symbol_namespace.
8063 (cp_lookup_symbol_namespace): Perform an import lookup at every
8064 block level.
8065 (cp_lookup_symbol_imports): New function.
8066 (cp_lookup_symbol_in_namespace): New function.
8067
421d5d99
TT
80682010-01-25 Tom Tromey <[email protected]>
8069
8070 PR gdb/11049:
8071 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8072 result.
8073
6bcc772d
RO
80742010-01-25 Rainer Orth <[email protected]>
8075
8076 * configure.ac: Only use host_os part when disabling TUI on osf.
8077 Use test to check variables, prefix strings with x.
8078 * configure: Regenerate.
8079
8080 * solib-osf.c (osf_current_sos): Initialize tail.
8081
1c1238a5
TG
80822010-01-25 gingold <[email protected]>
8083
c8d5aac9
L
8084 * windows-nat.c (windows_continue): Use %x to print thread id.
8085 (get_windows_debug_event): Ditto.
1c1238a5 8086
0b92b5bb
TT
80872010-01-22 Tom Tromey <[email protected]>
8088
8089 PR symtab/11199:
8090 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8091 type and arguments. Use smash_to_methodptr_type.
8092 (read_structure_type): Call quirk_gcc_member_function_pointer
8093 later.
8094 * gdbtypes.h (smash_to_methodptr_type): Declare.
8095 * gdbtypes.c (smash_to_methodptr_type): New function.
8096 (lookup_methodptr_type): Use it.
8097
0d5392b8
TT
80982010-01-21 Tom Tromey <[email protected]>
8099
8100 PR symtab/11198:
8101 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8102 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8103 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8104 (glibc_skip_solib_resolver): Use
8105 lookup_minimal_symbol_and_objfile.
8106
e6d088ec
KT
81072010-01-21 Kai Tietz <[email protected]>
8108
8109 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8110 WIN32 targets.
8111
b966cb8a
TT
81122010-01-20 Tom Tromey <[email protected]>
8113
8114 PR backtrace/10770:
8115 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8116 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8117 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8118 dwarf_stack_values, not CORE_ADDRs.
8119 (execute_stack_op): Change DW_OP_div and comparison operators to
8120 use signed operands.
8121
3f81c18a
VP
81222010-01-20 Vladimir Prus <[email protected]>
8123
8124 Per-inferior args and tty and environment.
8125
8126 * infcmd.c (inferior_args): Rename to ...
8127 (inferior_args_scratch): ... this.
8128 (inferior_io_terminal): Rename to ...
8129 (inferior_io_terminal_scratch): ... this.
8130 (inferior_argc, inferior_argv): Remove.
8131 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8132 inside current_inferior().
8133 (set_inferior_tty_command, show_inferior_tty_command): New.
8134 (get_inferior_args, set_inferior_args): Store inside
8135 current_inferior().
8136 (notice_args_set): Likewise and rename to...
8137 (set_args_command): ... this.
8138 (set_inferior_args_vector): Likewise.
8139 (notice_args_read): Rename to...
8140 (show_args_command): ...new.
8141 (tty_command): Remove.
8142 (run_command_1): Don't free old args, as they are freed by
8143 set_inferior_arg now.
8144 (run_no_args_command): Likewise.
8145 (inferior_environ): Remove.
8146 (run_command_1): Use environment of the current inferior.
8147 (environment_info, set_environment_command)
8148 (unset_environment_command, path_info, path_command): Likewise.
8149 (_initialize_infcmd): Adjust for function and variable renames.
8150 Do not init inferior_environ.
8151 * inferior.h (set_inferior_arg): Adjust prototype.
8152 (struct inferior): New fields args, argc, argv, terminal, environment.
8153 (inferior_environ): Remove declaration.
8154 * inferior.c (free_inferior): Free new fields.
8155 (add_inferior_silent): Initialize 'environment' field.
8156 * main.c (captured_main): Set arguments only after the initial
8157 inferior has been created. Set set_inferior_io_terminal,
8158 not tty_command.
8159 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8160 inferior.
8161 (_initialize_mi_cmd_env): Adjust for disappearance of global
8162 inferior_environ.
8163 * solib.c (solib_find): Use environment of the current inferior.
8164
d8b65138
JK
81652010-01-20 Jan Kratochvil <[email protected]>
8166
8167 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8168 HAVE_PYTHON.
8169 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8170
692465f1
JB
81712010-01-20 Joel Brobecker <[email protected]>
8172
8173 Get rid of ada-lang.c:function_name_from_pc.
8174 * ada-lang.c: Add "stack.h" #include.
8175 (function_name_from_pc): Delete.
8176 (is_known_support_routine): Replace call to function_name_from_pc
8177 by call to find_frame_funname.
8178 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8179
95519e0e
TT
81802010-01-19 Tom Tromey <[email protected]>
8181
8182 PR c++/11026:
8183 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8184 objfile obstack.
8185
95c11dc7
TT
81862010-01-19 Tom Tromey <[email protected]>
8187
8188 * top.c (stop_sig, float_handler, do_nothing): Remove.
8189
a0f49112
JK
81902010-01-19 Jan Kratochvil <[email protected]>
8191
8192 * breakpoint.c (watchpoint_check): Check the call
8193 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8194 Extend the comment.
8d95cc3b 8195 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
8196 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8197 watchpoint-cond-gone-stripped.c.
8198
ceeb3d5a
TT
81992010-01-19 Tom Tromey <[email protected]>
8200
8201 PR c++/8000:
8202 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8203 into parent scope, and enumerator into grandparent scope.
8204
2b71fc8e
JB
82052010-01-19 Joel Brobecker <[email protected]>
8206
8207 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8208
03564ed9
JB
82092010-01-19 Joel Brobecker <[email protected]>
8210
8211 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8212 i[34567]86-*-solaris2.1[0-9]*.
8213 * configure.tgt: Likewise.
8214
fb2e7cb4
JB
82152010-01-19 Joel Brobecker <[email protected]>
8216
8217 * NEWS: Document the source command enhancement allowing it
8218 to load Python scripts. Document the "set/show script-extension"
8219 commands.
8220
1cb5e2a4
JB
82212010-01-19 Joel Brobecker <[email protected]>
8222
8223 Add -Wunused-function to compile flags.
8224 * configure.ac: Add -Wunused-function to build_warnings.
8225 * configure: Regenerate.
8226
0ec6cd0c
JB
82272010-01-19 Joel Brobecker <[email protected]>
8228
8229 "delete" ada-lex.c:input function, not used.
8230 * ada-lex.l: #define YY_NO_INPUT.
8231
b74845da
JB
82322010-01-19 Joel Brobecker <[email protected]>
8233
8234 Delete free_named_symtabs and associated cleanup.
8235 * symfile.h (free_named_symtabs): Delete declaration.
8236 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8237 (cashier_psymtab): Comment function out.
8238 Delete declaration.
8239 (free_named_symtabs): Delete.
8240 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8241 * dbxread.c (end_psymtab): Likewise.
8242 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8243 * exec.c (exec_close_1): Ditto.
8244 * xcoffread.c (xcoff_end_psymtab): Likewise.
8245
65c06092
JB
82462010-01-19 Joel Brobecker <[email protected]>
8247
8248 * stack.c (print_block_frame_labels): Comment function out.
8249
d5cd6034
JB
82502010-01-19 Joel Brobecker <[email protected]>
8251
8252 Delete unused or undefined functions.
8253 * breakpoint.c (ep_parse_optional_filename): Delete.
8254 * dcache.c (dcache_write_line): Remove declaration.
8255 * infrun.c (build_infrun): Remove declaration.
8256 * tracepoint.c (tracepoint_save_command): Remove declaration.
8257 * linux-nat.c (init_lwp_list): Delete. No longer used.
8258 * event-loop.c (check_async_signal_handlers): Delete declaration.
8259 * infrun.c (init_execution_control_state): Delete.
8260 (proceed): Update comment to avoid mentioning
8261 init_execution_control_state.
8262 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8263 * ada-lang.c (ada_to_static_fixed_value): Delete.
8264 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8265 * cp-namespace.c (cp_copy_usings): Delete.
8266 * xml-syscall.c (xml_number_of_syscalls): Delete.
8267 * progspace.c (find_program_space_by_num): Delete.
8268 * inflow.c (handle_sigio): Delete declaration.
8269 * hppa-tdep.c (hppa_alignof): Delete.
8270 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8271 (mipsnbsd_core_osabi_sniffer): Delete.
8272
4e8f195d
TT
82732010-01-18 Tom Tromey <[email protected]>
8274
8275 PR c++/9680:
8276 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8277 (CONST_CAST): New tokens.
8278 (exp): Add new productions.
8279 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8280 reinterpret_cast.
8281 (is_cast_operator): New function.
8282 (yylex): Handle cast operators specially.
8283 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8284 UNOP_REINTERPRET_CAST>: New cases.
8285 * expprint.c (print_subexp_standard): Likewise.
8286 (op_name_standard): Likewise.
8287 (dump_subexp_body_standard): Likewise.
8288 * parse.c (operator_length_standard): Likewise.
8289 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8290 UNOP_REINTERPRET_CAST.
8291 * gdbtypes.c (class_types_same_p): New function.
8292 (is_ancestor): Use it.
8293 (is_public_ancestor): New function.
8294 (is_unique_ancestor_worker): Likewise.
8295 (is_unique_ancestor): Likewise.
8296 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8297 (is_unique_ancestor): Declare.
8298 * valops.c (value_reinterpret_cast): New function.
8299 (dynamic_cast_check_1): Likewise.
8300 (dynamic_cast_check_2): Likewise.
8301 (value_dynamic_cast): Likewise.
8302 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8303
d9c57d9f
JB
83042010-01-18 Joel Brobecker <[email protected]>
8305
8306 Fix build failure when building without Python support.
8307 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8308 is not defined.
8309
f80d3ff2
JB
83102010-01-18 Joel Brobecker <[email protected]>
8311
8312 Use XVS field type instead of doing a parallel lookup.
8313 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8314 if it is a reference type instead of doing a type lookup using
8315 the XVS field name.
8316
5bf03f13
JB
83172010-01-18 Joel Brobecker <[email protected]>
8318
8319 Trust PAD types instead of using PAD___XVS.
8320 * ada-lang.c (trust_pad_over_xvs): New static variable.
8321 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8322 parallel XVS type, follow the XVS type instead of the PAD type.
8323 (unwrap_value): Make sure that there is no parallel XVE type
8324 before returning the value as is.
8325 (set_ada_list, show_ada_list): New static variables.
8326 (set_ada_command, show_ada_command): New functions.
8327 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8328 Add new "set/show ada trust-PAD-over-XVS" setting.
8329
973817a3
JB
83302010-01-18 Tom Tromey <[email protected]>
8331 Thiago Jung Bauermann <[email protected]>
8332
8333 Allow "source" to load python scripts.
8334 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8335 * python/python.c (source_python_script): New function.
8336 * python/python.h (source_python_script): Add declaration.
8337 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8338 (script_ext_off, script_ext_soft, script_ext_strict)
8339 (script_ext_enums, script_ext_mode): New static constants.
8340 (show_script_ext_mode, find_and_open_script): New functions.
8341 (source_script): Enhance to handle Python scripts.
8342 (init_cli_cmds): Add set/show script-extension commands.
8343
98e03262
SS
83442010-01-16 Stan Shebs <[email protected]>
8345
8346 * tracepoint.h (struct trace_status): Use unsigned long long
8347 instead of size_t.
8348 * tracepoint.c (trace_status_command): Fix printf directive.
8349 (trace_save_command): Check fwrite returns, fix printf directive.
8350 (trace_filename): New global.
8351 (tfile_open): Set it, check read returns.
8352 (tfile_close): Free trace_filename.
8353 (tfile_get_traceframe_address): Check read returns.
8354 (tfile_trace_find): Ditto.
8355 (tfile_fetch_registers): Ditto.
8356 (tfile_xfer_partial): Ditto.
8357 (tfile_get_trace_state_variable_value): Ditto.
8358
00bf0b85
SS
83592010-01-15 Stan Shebs <[email protected]>
8360
8361 Add trace file support.
8362 * tracepoint.h (enum trace_stop_reason): New enum.
8363 (struct trace_status): New struct.
8364 (parse_trace_status): Declare.
8365 (struct uploaded_tp): Move here from remote.c,
8366 add fields for actions.
8367 (struct uploaded_tsv): New struct.
8368 * tracepoint.c (tfile_ops): New target vector.
8369 (trace_fd): New global.
8370 (tfile_open): New function.
8371 (tfile_close): New function.
8372 (tfile_files_info): New function.
8373 (tfile_get_trace_status): New function.
8374 (tfile_get_traceframe_address): New function.
8375 (tfile_trace_find): New function.
8376 (tfile_fetch_registers): New function.
8377 (tfile_xfer_partial): New function.
8378 (tfile_get_trace_state_variable_value): New function.
8379 (init_tfile_ops): New function.
8380 (_initialize_tracepoint): Call it, add tfile target.
8381 (trace_status): New global.
8382 (current_trace_status): New function.
8383 (trace_running_p): Remove, change all users to get from
8384 current_trace_status()->running.
8385 (get_trace_status): Remove.
8386 (trace_status_command): Call target_get_trace_status directly,
8387 report more detail including tracing stop reasons.
8388 (trace_find_command): Always allow tfind on a file.
8389 (trace_find_pc_command): Ditto.
8390 (trace_find_tracepoint_command): Ditto.
8391 (trace_find_line_command): Ditto.
8392 (trace_find_range_command): Ditto.
8393 (trace_find_outside_command): Ditto.
8394 (trace_frames_offset, cur_offset): Declare as off_t.
8395 (trace_regblock_size): Rename from reg_size, update users.
8396 (parse_trace_status): New function.
8397 (tfile_interp_line): New function.
8398 (disconnect_or_stop_tracing): Ensure current trace
8399 status before asking what to do.
8400 (stop_reason_names): New global.
8401 (trace_save_command): New command.
8402 (get_uploaded_tp): Move here from remote.c.
8403 (find_matching_tracepoint): Ditto.
8404 (merge_uploaded_tracepoints): New function.
8405 (parse_trace_status): Use stop_reason_names.
8406 (_initialize_tracepoint): Define tsave command.
8407 * target.h (target_ops): New fields to_save_trace_data,
8408 to_upload_tracepoints, to_upload_trace_state_variables,
8409 to_get_raw_trace_data, change to_get_trace_status
8410 to take a pointer to a status struct.
8411 (target_save_trace_data): New macro.
8412 (target_upload_tracepoints): New macro.
8413 (target_upload_trace_state_variables): New macro.
8414 (target_get_raw_trace_data): New macro.
8415 * target.c (update_current_target): Add new methods, change
8416 signature of to_get_trace_status.
8417 * remote.c (hex2bin): Make globally visible.
8418 (bin2hex): Ditto.
8419 (remote_download_trace_state_variable): Download name also.
8420 (remote_get_trace_status): Update parameter, use
8421 parse_trace_status.
8422 (remote_save_trace_data): New function.
8423 (remote_upload_tracepoints): New function.
8424 (remote_upload_trace_state_variables): New function.
8425 (remote_get_raw_trace_data): New function.
8426 (remote_start_remote): Use them.
8427 (_initialize_remote_ops): Add operations.
8428 * ax-gdb.c: Include breakpoint.h.
8429 * breakpoint.c (create_tracepoint_from_upload): Use
8430 break_command_really, return tracepoint, warn about unimplemented
8431 parts.
8432 * NEWS: Mention trace file addition.
8433
d904de5b
JK
84342010-01-15 Jan Kratochvil <[email protected]>
8435
8436 Fix compilation warning on gcc-3.4.
8437 * exec.c (print_section_info): Move the `displacement' variable
8438 initialization to its declaration.
8439
64aa9731
JK
84402010-01-15 Jan Kratochvil <[email protected]>
8441
8442 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8443 comparison.
8444
ca1f5def 84452010-01-15 Eric Botcazou <[email protected]>
9f0dec2d
JB
8446
8447 "info tasks" broken by typedefs in ATCB type definitions.
8448 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8449 ada_check_typedef before retrieving the length of the type for
8450 regular fields.
8451
12ab9e09
JB
84522010-01-15 Joel Brobecker <[email protected]>
8453
8454 Do not use name-based lookup for unconstrained packed arrays.
8455 * ada-lang.c (find_parallel_type_by_descriptive_type):
8456 Limit the fallback to name-based lookups to the case where
8457 the type is a constrained packed array.
8458
c389c3dc
JB
84592010-01-15 Joel Brobecker <[email protected]>
8460
8461 Enhance gdb-gdb.py to handle main_type.type_specific.
8462 * gdb-gdb.py: Print the type-specific part of struct main_type.
8463
7991dee7
JK
84642010-01-15 Jan Kratochvil <[email protected]>
8465
8466 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8467 * configure: Regenerate.
8468 * config.in: Regenerate.
8469 * utils.c: Include sys/resource.h.
8470 (dump_core, can_dump_core): New.
8471 (internal_vproblem): Update the comment. Check can_dump_core while
8472 setting dump_core_p. Replace two abort calls by dump_core calls.
8473
93c26624
JK
84742010-01-14 Jan Kratochvil <[email protected]>
8475 Eli Zaretskii <[email protected]>
8476
8477 * NEWS: Document the PIE support.
8478
55235ad7
JK
84792010-01-14 Jan Kratochvil <[email protected]>
8480
8481 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8482 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8483
41752192
JK
84842010-01-14 Jan Kratochvil <[email protected]>
8485
8486 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8487 Replace exec_entry_point call by bfd_get_start_address.
8488
9f2982ff
JK
84892010-01-14 Jan Kratochvil <[email protected]>
8490
8491 Support Valgrind attachments broken by the PIE support.
8492 * auxv.c: Include gdbcore.h.
8493 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8494 parameters ops, object and annex. Remove their assertions.
8495 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8496 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8497 (memory_xfer_auxv): ... here.
8498 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8499 memory_xfer_auxv.
8500 * procfs.c (procfs_xfer_partial): Likewise.
8501 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8502 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8503 (svr4_solib_create_inferior_hook): Conditionalize the
8504 svr4_relocate_main_executable call.
8505
61f0d762
JK
85062010-01-14 Jan Kratochvil <[email protected]>
8507
8508 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8509 target_section. Find SECT in current_target_sections, gdb_assert it.
8510 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8511 New variable abfd.
8512 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8513 of separate debug info file.
8514
51bee8e9
JK
85152010-01-14 Jan Kratochvil <[email protected]>
8516
8517 Support PIEs with no symfile_objfile.
8518 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8519 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8520
b8040f19
JK
85212010-01-14 Jan Kratochvil <[email protected]>
8522
8523 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8524 code part to ...
8525 (svr4_static_exec_displacement): ... a new function.
8526 (svr4_exec_displacement): New function.
8527 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8528 new_offsets using alloca now. Remove variable old_chain and changed.
8529 Call objfile_relocate unconditionally now.
8530
eb90ce83
DE
85312010-01-14 Doug Evans <[email protected]>
8532
8533 * gdbtypes.c (arch_flags_type): Fix comment.
8534 * gdbtypes.h (arch_composite_type): Fix comment.
8535
bdfed3bc
TG
85362009-01-14 Tristan Gingold <[email protected]>
8537
8538 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8539 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8540 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8541 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8542 macho_add_oso_symfile.
8543 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8544
1596ad23
JB
85452010-01-14 Joel Brobecker <[email protected]>
8546
8547 Tru64: Dead threads are never deleted.
8548 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8549 (dec_thread_count_gdb_threads): Fix counter increment.
8550 (dec_thread_add_gdb_thread): Fix *listp increment.
8551 (resync_thread_list): Fix bug in deletion of dead threads that
8552 caused all threads to be deleted, instead of just the dead ones.
8553
be759fcf
PM
85542010-01-13 Phil Muldoon <[email protected]>
8555
8556 PR python/10705
8557
8558 * python/python-internal.h: Add lazy_string_object_type
8559 definition.
8560 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8561 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8562 * python/py-value.c (valpy_lazy_string): New function.
8563 (convert_value_from_python): Add lazy string conversion.
8564 * python/py-prettyprint.c (pretty_print_one_value): Check if
8565 return is also a lazy string.
8566 (print_string_repr): Add lazy string printing branch.
8567 (print_children): Likewise.
8568 * python/py-lazy-string.c: New file. Implement lazy strings.
8569 * python/python.c (_initialize_python): Call
8570 gdbpy_initialize_lazy_string.
8571 * varobj.c (value_get_print_value): Add lazy string printing
8572 branch. Account for encoding.
8573 * c-lang.c (c_printstr): Account for new encoding argument. If
8574 encoding is NULL, find encoding suited for type, otherwise use
8575 user encoding.
8576 * language.h (language_defn): Add encoding argument.
8577 (LA_PRINT_STRING): Likewise.
8578 * language.c (unk_lang_printstr): Update to reflect new encoding
8579 argument to language_defn.
8580 * ada-lang.h (ada_printstr): Likewise.
8581 * c-lang.h (c_printstr): Likewise.
8582 * p-lang.h (pascal_printstr);
8583 * f-lang.c (f_printstr): Likewise.
8584 * m2-lang.c (m2_printstr): Likewise.
8585 * objc-lang.c (objc_printstr): Likewise.
8586 * p-lang.c (pascal_printstr): Likewise.
8587 * scm-lang.c (scm_printstr): Likewise.
8588 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8589 encoding argument.
8590 * ada-valprint.c (ada_printstr): Likewise.
8591 * f-valprint.c (f_val_print): Likewise
8592 * m2-valprint.c (m2_val_print): Likewise.
8593 * p-valprint.c (pascal_val_print): Likewise.
8594 * expprint.c (print_subexp_standard): Likewise.
8595 * valprint.c (val_print_string): Likewise.
8596 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
8597 (SUBDIR_PYTHON_SRCS): Likewise.
8598 (py-lazy-string.o): New rule.
8599
1fe72117 86002010-01-13 Doug Evans <[email protected]>
8eee9c5a
DE
8601
8602 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
8603 uninitialized" warning from gcc on local `tree'.
8604
dc146f7c
VP
86052010-01-13 Vladimir Prus <[email protected]>
8606
8607 Implement core awareness.
8608
8609 * bcache.c (compare_ints): Remove
8610 (print_percentage): Use compare_positive_ints.
8611 * defs.h (compare_positive_ints): Declare.
8612 * linux-nat.h (struct lin_lwp): New field core.
8613 (linux_nat_core_of_thread_1): Declare.
8614 * linux-nat.c (add_lwp): Init the 'core' field.
8615 (linux_nat_wait_1): Record the core.
8616 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
8617 (linux_nat_add_target): Register the above.
8618 * linux-thread-db.c (update_thread_core): New.
8619 (thread_db_find_new_threads): Update core information for
8620 every thread.
8621 * remote.c (struct private_thread_info): New.
8622 (free_private_thread_info, demand_private_info): New.
8623 (PACKET_qXfer_threads, use_osdata_threads): New.
8624 (struct thread_item, threads_parsing_context
8625 (start_thread, end_thread, thread_attributes)
8626 (thread_children, threads_children, threads_elements): New.
8627 (remote_threads_info): Try qXfer:threads before anything
8628 else.
8629 (remote_protocol_packets): Register qXfer:threads.
8630 (remote_open_1): Init use_osdata_threads.
8631 (struct stop_reply): New field 'core'.
8632 (remote_parse_stop_reply): Parse core number.
8633 (process_stop_reply): Record core number.
8634 (remote_xfer_partial): Handle qXfer:threads.
8635 (remote_core_of_thread): New.
8636 (init_remote_ops): Register remote_core_of_thread.
8637 (_initialize_remote): Register qXfer:read.
8638 * target.c (target_core_of_thread): New
8639 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
8640 (struct target_ops): New field to_core_of_threads.
8641 (target_core_of_thread): Declare.
8642 * gdbthread.h (struct thread_info): New field private_dtor.
8643 * thread.c (print_thread_info): Report the core.
8644 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
8645 * utils.c (compare_positive_ints): New.
8646 * features/threads.dtd: New.
8647 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
8648 * mi/mi-main.c (struct collect_cores_data, collect_cores)
8649 (do_nothing, free_vector_of_osdata_items)
8650 (splay_tree_int_comparator, free_splay_tree): New.
8651 (print_one_inferior_data): Implemented printing of selected
8652 inferiors. Collect and print cores.
8653 (output_cores): New.
8654 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
8655 thread groups together with --available.
8656
d30c5336
JK
86572010-01-12 Jan Kratochvil <[email protected]>
8658
8659 * configure: Regenerate (for _STRUCTURED_PROC).
8660
02893727
JB
86612010-01-12 Joel Brobecker <[email protected]>
8662
8663 Delete dead function.
8664 * ada-lang.c (extract_string): Delete. No longer used.
8665
46ed2d6f
JB
86662010-01-12 Joel Brobecker <[email protected]>
8667
8668 Fix -Wunused warning in dec-thread.c.
8669 * dec-thread.c (dec_thread_count_gdb_threads)
8670 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
8671
606b8d1a
JB
86722010-01-12 Joel Brobecker <[email protected]>
8673
8674 * ada-valprint.c (ada_print_floating): Remove trailing space.
8675
b4ba55a1
JB
86762010-01-12 Joel Brobecker <[email protected]>
8677
8678 Add support for DW_AT_GNAT_descriptive_type.
8679 * gdbtypes.h (enum type_specific_kind): New enum.
8680 (struct main_type) [type_specific_field]: New component.
8681 [type_specific]: Add new component "gnat_stuff".
8682 (struct gnat_aux_type): New type.
8683 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
8684 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
8685 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
8686 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
8687 (TYPE_SPECIFIC_FIELD): New macros.
8688 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
8689 type does not hold any cplus-specific data.
8690 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
8691 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
8692 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
8693 cplus-specific data.
8694 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
8695 Set new component TYPE_SPECIFIC_FIELD (type).
8696 (gnat_aux_default): New constant.
8697 (allocate_gnat_aux_type): New function.
8698 (init_type): Add initialization the type-specific stuff for
8699 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
8700 (print_gnat_stuff): New function.
8701 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
8702 specific data. Adjust code that prints the contents of the
8703 type-specific union using the TYPE_SPECIFIC_FIELD value.
8704 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
8705 the type cplus stuff for Ada types.
8706 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
8707 Error out if these routines are called with an Ada type.
8708 (read_structure_type, read_array_type, read_subrange_type):
8709 Add call to set_descriptive_type.
8710 (set_die_type): Initialize the gnat-specific data if necessary.
8711 (need_gnat_info, die_descriptive_type, set_descriptive_type):
8712 New functions.
8713 * ada-lang.c (decode_constrained_packed_array_type): Use
8714 decode_constrained_packed_array_type instead of doing a standard
8715 lookup to locate a parallel type.
8716 (find_parallel_type_by_descriptive_type): New function.
8717 (ada_find_parallel_type_with_name): New function.
8718 (ada_find_parallel_type): Reimplement using
8719 ada_find_parallel_type_with_name.
8720 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
8721 to check if type has a cplus stuff.
8722 * linespec.c (total_number_of_methods): Likewise.
8723 * mdebugread.c (new_type): Likewise.
8724
b0f02ee9
JK
87252010-01-11 Jan Kratochvil <[email protected]>
8726
8727 * NEWS: Document the 0b binary number prefix parsing.
8728
b260e109
JK
87292010-01-11 Jan Kratochvil <[email protected]>
8730
8731 * objfiles.c (objfile_relocate1): Change the return type to int.
8732 Describe the new return value. Return non-zero if data changed.
8733 (objfile_relocate): New variable changed. Set it. Call
8734 breakpoint_re_set depending on CHANGED.
8735
b5cfddf5
JK
87362010-01-11 Jan Kratochvil <[email protected]>
8737
8738 Implement binary numbers parsing.
8739 * c-exp.y (parse_number): New case 'b' and 'B'.
8740
e0ae4240
JK
87412010-01-11 Jan Kratochvil <[email protected]>
8742 Tristan Gingold <[email protected]>
8743
8744 * solib.c (info_sharedlibrary_command): Replace
8745 objfile_has_partial_symbols and objfile_has_full_symbols calls by
8746 objfile_has_symbols.
8747
6e0e5977
JB
87482010-01-10 Joel Brobecker <[email protected]>
8749
8750 * NEWS: Document the improvements made to the mips-irix port.
8751
7348c5e1
JB
87522010-01-09 Joel Brobecker <[email protected]>
8753
8754 Fix the documentation of valprint.c:value_print.
8755 * valprint.c (value_print): Update the function description to
8756 mention that the syntax of the output follows the current_language,
8757 not necessarily C.
8758
567995e1
JK
87592010-01-09 Jan Kratochvil <[email protected]>
8760
8761 Fix displacement of separate debug info files.
8762 * objfiles.c (objfile_relocate): Rename to ...
8763 (objfile_relocate1): ... here and make it static. Extend the comment.
8764 (objfile_relocate): New function.
8765 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
8766 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
8767 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
8768 allocated using alloca.
8769 * symfile.c (copy_section_addr_info): Remove.
8770 (build_section_addr_info_from_objfile): Make it global. New variables
8771 addr_bit and mask, use them.
8772 * symfile.h (build_section_addr_info_from_objfile): New prototype.
8773 (copy_section_addr_info): Remove.
8774
6d8eadbd
JB
87752010-01-09 Joel Brobecker <[email protected]>
8776
8777 Signal unwinder for mips-irix N32.
8778 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
8779 tramp-frame.h.
8780 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
8781 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
8782 (SIGCONTEXT_LO_OFF): New macros.
8783 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
8784 (mips_irix_n32_tramp_frame): New static constant.
8785 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
8786
27087a3d
JB
87872010-01-09 Joel Brobecker <[email protected]>
8788
8789 Breakpoint in shared library does not work on mips-irix.
8790 * procfs.c: #include "observer.h".
8791 (procfs_inferior_created): New function, moving here the code
8792 which unsets the syssgi syscall-exit notifications.
8793 (procfs_create_inferior): Remove the code which unsets the syssgi
8794 syscall-exit notifications. It is too early to do this here.
8795 (_initialize_procfs): Attach the procfs_inferior_created observer.
8796
f08877ba
JB
87972010-01-09 Joel Brobecker <[email protected]>
8798
8799 Wrong return convention for arrays (mips-irix).
8800 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
8801 128 bits or smaller are returned the same way as structs
8802 and unions of the the same size.
8803
e4b97d48
JB
88042010-01-09 Joel Brobecker <[email protected]>
8805
8806 Cannot set the PC on mips-irix.
8807 * irix5-nat.c (fill_gregset): Check regno against the raw PC
8808 register number, no the cooked one.
8809
11377e68
JB
88102010-01-09 Joel Brobecker <[email protected]>
8811
8812 Error while loading core file on mips-irix.
8813 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
8814 if debugging from a core file.
8815
b2391021
JB
88162010-01-09 Joel Brobecker <[email protected]>
8817
8818 GDB hangs when attaching to process on mips-irix.
8819 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
8820 attaching to a process.
8821
f2ec0ecf
JB
88222010-01-09 Joel Brobecker <[email protected]>
8823
8824 Use the correct breakpoint instruction on mips-irix.
8825 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
8826 containing the correct breakpoint instruction to use on mips-irix.
8827 Use it when the osabi is GDB_OSABI_IRIX.
8828
3c95f01c
JB
88292010-01-09 Joel Brobecker <[email protected]>
8830
8831 -Wunused warning in procfs.c (mips-irix only).
8832 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
8833 throughout instead of using praddset and prdelset respectively.
8834
4b7703ad
JB
88352010-01-09 Joel Brobecker <[email protected]>
8836
8837 GDB crash while stepping into function.
8838 * infrun.c (handle_inferior_event): Refetch the current frame
8839 after handling what.main_action, in case that pointer became
8840 dangling.
8841
12c89474
JB
88422010-01-09 Joel Brobecker <[email protected]>
8843
8844 Fix build failure of solaris-hosted cross debuggers.
8845 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
8846
1a3fd262 88472010-01-09 Daniel Gutson <[email protected]>
4c490650
JB
8848
8849 Fix build failure on sparc-solaris.
8850 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
8851
75242ef4
JK
88522010-01-08 Jan Kratochvil <[email protected]>
8853
8854 Move some symfile code into subroutines.
8855 * symfile.h (relative_addr_info_to_section_offsets)
8856 (addr_info_make_relative): New prototypes.
8857 * symfile.c (default_symfile_offsets): Move a part to ...
8858 (relative_addr_info_to_section_offsets): ... this new function.
8859 (default_symfile_offsets): Call it.
8860 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
8861 this part to ...
8862 (addr_info_make_relative): ... this new function.
8863
268a4a75
JK
88642010-01-08 Jan Kratochvil <[email protected]>
8865
8866 Add from_tty to solib_create_inferior_hook.
8867 * infcmd.c (post_create_inferior): Move solib_add after
8868 solib_create_inferior_hook. Pass from_tty to
8869 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
8870 0 from_tty and comment why.
8871 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
8872 * linux-nat.c (linux_child_follow_fork): Likewise.
8873 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
8874 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
8875 from_tty.
8876 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
8877 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
8878 * solib-null.c (null_solib_create_inferior_hook): Likewise.
8879 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
8880 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
8881 * solib-som.c (som_solib_create_inferior_hook): Likewise.
8882 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
8883 Pass it to svr4_so_ops.solib_create_inferior_hook.
8884 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
8885 from_tty.
8886 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
8887 solib_add.
8888 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
8889 enable_break.
8890 * solib-target.c (solib_target_solib_create_inferior_hook): New
8891 parameter from_tty.
8892 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
8893 it to ops->solib_create_inferior_hook.
8894 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
8895 Move solib_add after solib_create_inferior_hook, call it now with
8896 from_tty as 0. New comment there.
8897 * solib.h (solib_create_inferior_hook): New parameter from_tty.
8898 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
8899 Likewise.
8900
cf00dfa7
VP
89012010-01-08 Vladimir Prus <[email protected]>
8902
8903 Fix multiexec race.
8904 * infrun.c (handle_inferior_event): Use get_thread_regcache
8905 with events ptid, not get_current_regcache.
8906
f91e5ac3
JB
89072009-01-08 Joel Brobecker <[email protected]>
8908
8909 GDB crash with empty executable name (MinGW).
8910 * source.c (openp): Add assert that parameter string is not NULL.
8911 if parameter string is an empty string, then return with a failure
8912 immediately.
8913
92b9ce5b
JB
89142009-01-08 Joel Brobecker <[email protected]>
8915
8916 Get rid of support for VAX Floats.
8917 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8918 (ada_vax_float_print_function): Delete.
8919 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
8920 (ada_vax_float_print_function): Delete.
8921 * ada-typeprint.c (print_vax_floating_point_type): Delete.
8922 (ada_print_type): Remove support for VAX floats.
8923 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
8924
268a4a75 89252010-01-08 Jan Kratochvil <[email protected]>
d24d8548
JK
8926
8927 * stabsread.c (read_args): Handle zero arguments.
8928
f0f20949
JB
89292009-01-08 Joel Brobecker <[email protected]>
8930
8931 Cannot find in-tree libiconv.a after reconfigure.
8932 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
8933 that we can use, then cache the path to this archive.
8934 * configure: Regenerate.
8935
6b6218c5
SS
89362010-01-07 Stan Shebs <[email protected]>
8937
35b1e5cc
SS
8938 Make tracepoint operations go through target vector.
8939 * target.h (enum trace_find_type): New enum.
8940 (struct target_ops): New fields to_trace_init,
8941 to_download_tracepoint, to_download_trace_state_variable,
8942 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
8943 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
8944 to_set_disconnected_tracing.
8945 (target_trace_init): New macro.
8946 (target_download_tracepoint): New macro.
8947 (target_download_trace_state_variable): New macro.
8948 (target_trace_start): New macro.
8949 (target_trace_set_readonly_regions): New macro.
8950 (target_get_trace_status): New macro.
8951 (target_trace_stop): New macro.
8952 (target_trace_find): New macro.
8953 (target_get_trace_state_variable_value): New macro.
8954 (target_set_disconnected_tracing): New macro.
8955 * target.c (update_current_target): Inherit and set defaults for
8956 tracepoint operations.
8957 * tracepoint.c (default_collect): Make globally visible.
8958 (target_is_remote): Remove, along with all calls.
8959 (tvariables_info): Call target_get_trace_state_variable_value.
8960 (remote_set_transparent_ranges): Remove.
8961 (trace_start_command): Call target_trace_init,
8962 target_download_tracepoint, etc.
8963 (download_tracepoint): Remove.
8964 (trace_stop_command): Simplify.
8965 (stop_tracing): Call target_trace_stop.
8966 (get_trace_status): Call target_get_trace_status.
8967 (trace_status_command): Add case for targets that cannot trace.
8968 (finish_tfind_command): Change to take numerical arguments, call
8969 target_trace_find.
8970 (trace_find_command): Update call to finish_tfind_command.
8971 (trace_find_pc_command): Ditto.
8972 (trace_find_tracepoint_command): Ditto.
8973 (trace_find_line_command): Ditto.
8974 (trace_find_range_command): Ditto.
8975 (trace_find_outside_command): Ditto.
8976 (set_disconnected_tracing_value): Call
8977 target_set_disconnected_tracing.
8978 * remote.c: Add protocol encoding bits from tracepoint.c.
8979 (trace_error): Move from tracepoint.c.
8980 (remote_get_noisy_reply): Ditto.
8981 (free_actions_list_cleanup_wrapper): Ditto.
8982 (free_actions_list): Ditto.
8983 (remote_trace_init): New function.
8984 (remote_download_tracepoint): New function.
8985 (remote_download_trace_state_variable): New function.
8986 (remote_trace_set_readonly_regions): New function.
8987 (remote_trace_start): New function.
8988 (remote_get_trace_status): New function.
8989 (remote_trace_stop): New function.
8990 (remote_trace_find): New function.
8991 (remote_download_trace_state_variable): New function.
8992 (remote_set_disconnected_tracing): New function.
8993 (init_remote_ops): Add tracepoint operations.
8994
6b6218c5
SS
8995 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
8996
089b4803
TG
89972010-01-07 Tristan Gingold <[email protected]>
8998
8999 * symfile.c (build_section_addr_info_from_objfile): New function.
9000 (symbol_file_add_separate): Don't use offsets from objfile but
9001 built an addr info.
9002
d5551862
SS
90032010-01-06 Stan Shebs <[email protected]>
9004
9005 Support disconnected tracing.
9006 * infcmd.c (detach_command): Ask whether to stop tracing.
9007 * cli/cli-cmds.c (quit_command): Ditto.
9008 * breakpoint.h (struct breakpoint): New field number_on_target.
9009 * breakpoint.c (create_tracepoint_from_upload): New function.
9010 (get_tracepoint_by_number_on_target): New function.
9011 * remote.c (struct remote): New field disconnected_tracing.
9012 (remote_disconnected_tracing_feature): New function.
9013 (remote_protocol_features): Add DisconnectedTracing.
9014 (struct uploaded_tp): New struct.
9015 (uploaded_tps): New global.
9016 (get_uploaded_tp): New function.
9017 (find_matching_tracepoint): New function.
9018 (remote_get_tracing_state): New function.
9019 (remote_start_remote): Call it.
9020 * tracepoint.c (disconnected_tracing): New global.
9021 (trace_start_command): Initialize number_on_target.
9022 (stop_tracing): New function, split out from...
9023 (trace_stop_command): Call stop_tracing.
9024 (get_trace_status): New function, split out from...
9025 (trace_status_command): Call get_trace_status, add info on
9026 disconnection behavior.
9027 (disconnect_or_stop_tracing): New function.
9028 (finish_tfind_command): Translate from number on target.
9029 (trace_find_tracepoint_command): Translate to number on target.
9030 (send_disconnected_tracing_value): New function.
9031 (set_disconnected_tracing): New function.
9032 (_initialize_tracepoint): Add disconnected-tracing variable.
9033 * NEWS: Mention disconnected tracing.
9034
15d123c9
TG
90352010-01-06 Tristan Gingold <[email protected]>
9036
9037 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9038 parameter to main_objfile. Iterate on all separate debug objfiles.
9039 * symfile.h (symbol_file_add_separate)
9040 (find_separate_debug_file_by_debuglink): Remove parameter names.
9041 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9042 (reread_symbols): Use free_objfile_separate_debug.
9043 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9044 Adjust comment.
9045 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9046 (free_objfile_separate_debug): New prototypes.
9047 * objfiles.c (objfile_separate_debug_iterate): New function.
9048 (add_separate_debug_objfile, free_objfile_separate_debug): New
9049 functions.
9050 (free_objfile): Use free_objfile_separate_debug. Adjust for
9051 multiple separate debug objfile.
9052 (objfile_has_symbols): Adjust comment. Iterate on all separate
9053 debug objfiles.
9054 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9055 debug objfile.
9056 (lookup_minimal_symbol_text): Ditto.
9057 (lookup_minimal_symbol_by_pc_name): Ditto.
9058 (lookup_minimal_symbol_solib_trampoline): Ditto.
9059 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9060 debug objfiles.
9061
7a697b8d
SS
90622010-01-05 Stan Shebs <[email protected]>
9063
9064 Add fast tracepoints.
9065 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9066 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9067 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9068 * breakpoint.c (tracepoint_type): New function.
9069 (ALL_TRACEPOINTS): Use it.
9070 (should_be_inserted): Ditto.
9071 (bpstat_check_location): Ditto.
9072 (print_one_breakpoint_location): Ditto.
9073 (user_settable_breakpoint): Ditto.
9074 (set_breakpoint_location_function): Ditto.
9075 (disable_breakpoints_in_shlibs): Ditto.
9076 (delete_trace_command): Ditto.
9077 (print_it_typical): Add bp_fast_tracepoint case.
9078 (bpstat_what): Ditto.
9079 (print_one_breakpoint_location): Ditto.
9080 (allocate_bp_location): Ditto.
9081 (mention): Ditto.
9082 (breakpoint_re_set_one): Ditto.
9083 (disable_command): Ditto.
9084 (enable_command): Ditto.
9085 (check_fast_tracepoint_sals): New function.
9086 (break_command_really): Call it.
9087 (ftrace_command): New function.
9088 (_initialize_breakpoint): Add ftrace command.
9089 * gdbarch.sh (fast_tracepoint_valid_at): New.
9090 * gdbarch.h, gdbarch.c: Regenerate.
9091 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9092 (i386_gdbarch_init): Use it.
9093 * remote.c (struct remote_state): New field fast_tracepoints.
9094 (PACKET_FastTracepoints): New packet config type.
9095 (remote_fast_tracepoint_feature): New function.
9096 (remote_protocol_features): Add FastTracepoints.
9097 (remote_supports_fast_tracepoints): New function.
9098 (_initialize_remote): Add FastTracepoints.
9099 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9100 * NEWS: Mention fast tracepoints.
9101
737a160e
JB
91022010-01-06 Joel Brobecker <[email protected]>
9103
9104 * gdb-gdb.py: New file.
9105
ce6cca6d
MS
91062010-01-05 Michael Snyder <[email protected]>
9107
9108 * infrun.c (handle_inferior_event): Fix typo in comment.
9109
0d15807d
JK
91102010-01-05 Jan Kratochvil <[email protected]>
9111
9112 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9113
7803799a
UW
91142010-01-04 Ulrich Weigand <[email protected]>
9115
c8d5aac9 9116 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
9117 and s390x-linux64.
9118 (s390-linux32-expedite): Define.
9119 (s390-linux64-expedite): Define.
9120 (s390x-linux64-expedite): Define.
9121 * features/s390-acr.xml: New file.
9122 * features/s390-fpr.xml: New file.
9123 * features/s390-core32.xml: New file.
9124 * features/s390-core64.xml: New file.
9125 * features/s390x-core64.xml: New file.
9126 * features/s390-linux32.xml: New file.
9127 * features/s390-linux64.xml: New file.
9128 * features/s390x-linux64.xml: New file.
9129 * features/s390-linux32.c: New generated file.
9130 * features/s390-linux64.c: New generated file.
9131 * features/s390x-linux64.c: New generated file.
9132
9133 * regformats/s390-linux32.dat: New generated file.
9134 * regformats/s390-linux64.dat: New generated file.
9135 * regformats/s390x-linux64.dat: New generated file.
9136 * regformats/reg-s390.dat: Remove.
9137 * regformats/reg-s390x.dat: Remove.
9138
9139 * s390-nat.c: Include "auxv.h" and <elf.h>.
9140 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9141 (s390_target_wordsize): New function.
9142 (s390_auxv_parse): Likewise.
9143 (s390_get_hwcap): Likewise.
9144 (s390_read_description): Likewise.
9145 (_initialize_s390_nat): Install s390_auxv_parse and
9146 s390_read_description.
9147
9148 * s390-tdep.c: Include "features/s390-linux32.c",
9149 "features/s390-linux64.c", and "features/s390x-linux64.c".
9150 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9151 (s390_register_call_saved): New function.
9152 (s390_register_name): Remove.
9153 (s390_register_type): Remove.
9154 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9155 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9156 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9157 (s390_pseudo_register_name): New function.
9158 (s390_pseudo_register_type): New function.
9159 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9160 Handle full GPR pesudos and varying pseudo register numbers.
9161 (s390_pseudo_register_write): Likewise
9162 (s390x_pseudo_register_read): Remove.
9163 (s390x_pseudo_register_write): Likewise.
9164 (s390_register_group): Remove.
9165 (s390_pseudo_register_group): New function.
9166 (s390_regmap_gregset): Add GPR upper halves.
9167 (s390x_regmap_gregset): Likewise.
9168 (s390_regmap_fpregset): Likewise.
9169 (s390_regmap_upper): New global variable.
9170 (s390_upper_regset): New global variable.
9171 (s390_upper_regset_sections): New global variable.
9172 (s390_regset_from_core_section): Handle GPR upper halves.
9173 (s390_core_read_description): New function.
9174 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9175 register information. Handle varying pseudo register numbers.
9176 (s390_backchain_frame_unwind_cache): Likewise.
9177 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9178 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9179 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9180 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9181 Handle varying pseudo register numbers.
9182 (s390_unwind_pc): Handle varying pseudo register numbers.
9183 (s390_dwarf2_prev_register): New function.
9184 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9185 register information. Handle varying pseudo register numbers.
9186 Install s390_dwarf2_prev_register to unwind full GPRs.
9187 (s390_gdbarch_init): Handle target descriptions. Assign varying
9188 pseudo register numbers. Install s390_adjust_frame_regnum.
9189 (_initialize_s390_tdep): Initialize target descriptions.
9190
9191 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9192 (S390_NUM_REGS): Redefine to include upper half registers.
9193 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9194 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9195 (tdesc_s390_linux32): Add declaration.
9196 (tdesc_s390_linux64): Likewise.
9197 (tdesc_s390x_linux64): Likewise.
9198
1b1818e4
UW
91992010-01-04 Ulrich Weigand <[email protected]>
9200
9201 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9202 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9203 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9204 (ppc_linux_vmx_regset_sections): Likewise.
9205 (ppc_linux_fp_regset_sections): Likewise.
9206
9207 * corelow.c (get_core_register_section): Constify arguments.
9208 (get_core_registers): Use gdbarch_core_regset_sections instead
9209 of hard-coded platform-specific register section names.
9210
dcbf108f
UW
92112010-01-04 Ulrich Weigand <[email protected]>
9212
9213 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 9214 a register, assume the least-significant part is used.
dcbf108f
UW
9215 (write_pieced_value): Likewise.
9216
704e9165
UW
92172010-01-04 Ulrich Weigand <[email protected]>
9218
9219 * printcmd.c: Include "arch-utils.h".
9220 (do_one_display): Re-parse expression if current architecture changed.
9221
c54eabfa
JK
92222010-01-03 Jan Kratochvil <[email protected]>
9223 Joel Brobecker <[email protected]>
9224
9225 * gdbtypes.c (check_typedef): New comment on type length.
9226 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9227 comment on type length.
9228 (value_primitive_field): Keep the original TYPE value, new comment.
9229
50cb2941
JK
92302010-01-01 Jan Kratochvil <[email protected]>
9231
9232 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9233 p_start. Change != comparisons to > and < comparisons.
9234
be66db07
JK
92352010-01-01 Jan Kratochvil <[email protected]>
9236
9237 * cli/cli-script.c (process_next_line): Check P2 overrun.
9238
abd775ce
JB
92392009-01-01 Joel Brobecker <[email protected]>
9240
9241 Update the copyright hearder to add year 2010 for most GDB files.
9242
6479260d
JB
92432009-01-01 Joel Brobecker <[email protected]>
9244
9245 Fix build failure in inf-ptrace.c.
9246 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9247
4a70f654
JB
92482010-01-01 Joel Brobecker <[email protected]>
9249
9250 * top.c (print_gdb_version): Update copyright year.
9251
595939de 92522010-01-01, 10 Joel Brobecker <[email protected]>
b9ee2233
JB
9253
9254 Fix break *FUN'address thread NUM.
9255 * ada-lex.l (task): Expand rule to also match the thread keyword.
9256
70575d34
JB
92572010-01-01 Joel Brobecker <[email protected]>
9258
9259 Fix break *FUN'address task NUM.
9260 * ada-lex.l (task): New rule.
9261 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9262 been built before using it.
9263
e1e4d4a4 9264For older changes see ChangeLog-2009.
c906108c
SS
9265\f
9266Local Variables:
9267mode: change-log
9268left-margin: 8
9269fill-column: 74
9270version-control: never
57da7796 9271coding: utf-8
c906108c 9272End:
This page took 3.637371 seconds and 4 git commands to generate.