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