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