7f74fe3373161b49d158bee3643ff59ee3689d42
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
2
3 -trace-define-variable and -trace-list-variables.
4
5 * tracepoint.c (create_trace_state_variable): Make
6 private copy of name, as opposed to assuming the
7 pointer lives forever.
8 (tvariables_info_1): New.
9 (tvariables_info): Use the above.
10 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
11 Declare.
12 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
13 and -trace-list-variables.
14 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
15 (mi_cmd_trace_list_variables): New.
16 * mi/mi-main.c (mi_cmd_trace_define_variable)
17 (mi_cmd_trace_list_variables): New.
18
19 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
20
21 Implement -break-passcount.
22
23 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
24 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
25 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
26
27 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
28
29 -trace-start/-trace-end/-trace-status.
30
31 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
32 and -trace-stop.
33 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
34 (mi_cmd_trace_stop): Declare.
35 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
36 (mi_cmd_trace_stop): New.
37 * tracepoint.c (start_tracing): New, extracted from...
38 (trace_start_command): ...this.
39 (trace_status_mi): New.
40 * tracepoint.h (struct trace_status): Document
41 stopping_tracepoint.
42 (start_tracing, stop_tracing, trace_status_mi): Declare.
43
44 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
45
46 Implement creating tracepoints with -break-insert.
47
48 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
49 to mean that tracepoint should be created.
50
51 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
52
53 * breakpoint.c (check_no_tracepoint_commands): Use
54 current spelling of 'teval'.
55
56 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
57
58 Unify actions and commands
59
60 * defs.h (read_command_lines, read_command_lines_1): New
61 parameters validator and closure.
62 * tracepoint.h (struct action_line): Remove.
63 * breakpoint.h (struct breakpoint): Remove the 'actions'
64 field.
65 * defs.h (enum command_control_type): New value
66 while_stepping_control.
67 (struct command_line): Add comments.
68 * breakpoint.c (breakoint_is_tracepoint): New.
69 (breakpoint_set_commands): For tracepoints,
70 verify the commands are permissible.
71 (check_tracepoint_commands): New.
72 (commands_command): Require that each new line is validated using
73 check_tracepoint_command, if we set commands for a tracepoint.
74 (create_tracepoint_from_upload): Likewise.
75 (print_one_breakpoint_location): Remove the code to print
76 actions specifically.
77 (tracepoint_save_command): Relay to print_command_lines.
78 * cli/cli-script.c (process_next_line): New parameters validator
79 and closure. Handle 'while-stepping'. Call validator if not null.
80 (read_command_lines, read_command_lines1): Likewise.
81 (recurse_read_control_structure): New parameters validator and
82 closure. Handle while_stepping_control.
83 (print_command_lines): Handle while-stepping.
84 (get_command_line, define_command, document_command): Adjust.
85 * remote.c (remote_download_tracepoint): Adjust.
86 * tracepoint.c (make_cleanup_free_actions, read_actions)
87 (free_actions, do_free_actions_cleanup): Remove.
88 (trace_actions_command): Use read_command_lines.
89 (validate_actionline): Use error in one place.
90 (encode_actions_1): New, extracted from...
91 (encode_actions): ...this. Also use cleanups for exception
92 safety.
93 (trace_dump_command): Adjust.
94 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
95 it's tracepoint.
96
97 2010-03-23 Mike Frysinger <vapier@gentoo.org>
98
99 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
100
101 2010-03-22 Stan Shebs <stan@codesourcery.com>
102
103 * value.c (value_static_field): Be lazy about the field's value.
104
105 2010-03-22 Reid Kleckner <reid@kleckner.net>
106
107 PR gdb/11094
108 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
109 bp_jit_event.
110 (disable_breakpoints_in_shlibs): Likewise.
111
112 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
113
114 * dwarf2read.c (partial_die_parent_scope): Work around buggy
115 GCC 4.1 debug info generation (GCC PR c++/28460).
116 (determine_prefix): Likewise.
117
118 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
119
120 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
121 get_current_arch.
122 * tui/tui-layout.c (extract_display_start_addr): Likewise.
123
124 2010-03-19 Stan Shebs <stan@codesourcery.com>
125
126 * ax-gdb.c (gen_fetch): Handle bool.
127 (gen_usual_unary): Ditto.
128 (gen_cast): Ditto.
129 (gen_equal): New function.
130 (gen_less): New function.
131 (gen_expr_binop_rest): Call them, also return integer type from
132 logical operations.
133 (gen_expr): Ditto.
134
135 2010-03-19 Tom Tromey <tromey@redhat.com>
136
137 * jv-lang.c (jv_dynamics_objfile_data_key)
138 (jv_type_objfile_data_key): New globals.
139 (class_symtab): Move earlier.
140 (jv_per_objfile_free): New function.
141 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
142 parameter.
143 Remove ancient #if 1.
144 (add_class_symbol): Remove redundant declaration.
145 (java_lookup_class): Use alloc_type, not alloc_type_arch.
146 (java_link_class_type): Mark as static. Update.
147 (jv_clear_object_type): New function.
148 (set_java_object_type): Likewise.
149 (get_java_object_type): Use set_java_object_type.
150 (is_object_type): Likewise.
151 (_initialize_java_language): Register new objfile keys.
152 (get_java_class_symtab): Add 'gdbarch' parameter.
153 (add_class_symtab_symbol): Update.
154 (type_from_class): Update.
155
156 2010-03-19 Stan Shebs <stan@codesourcery.com>
157
158 * ax-general.c (ax_const_l): Fix a sizing bug.
159
160 2010-03-18 Joel Brobecker <brobecker@adacore.com>
161
162 GDB 7.1 released.
163
164 2010-03-18 Stan Shebs <stan@codesourcery.com>
165 Pedro Alves <pedro@codesourcery.com>
166
167 * target.h (struct target_ops): New method
168 to_set_circular_trace_buffer.
169 (target_set_circular_trace_buffer): New macro.
170 * target.c (update_current_target): Add
171 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
172 default behavior.
173 * remote.c (remote_set_circular_trace_buffer): New function.
174 (init_remote_ops): Add it to vector.
175 * tracepoint.h (struct trace_status): New field traceframes_created,
176 change buffer_size and buffer_free to int.
177 * tracepoint.c (circular_trace_buffer): New global.
178 (start_tracing): Send values of disconnected tracing and circular
179 trace buffer settings.
180 (set_circular_trace_buffer): New function.
181 (parse_trace_state): Handle total space and frames created.
182 (trace_status_command): Display total space and total frames
183 created.
184 (trace_save): Write out new status values.
185 (parse_trace_status): Set traceframe_count, traceframes_created,
186 buffer_free and buffer_size to -1 by default.
187 (_initialize_tracepoint): New setshow for circular-trace-buffer.
188 * NEWS: Mention the circular trace buffer option.
189
190 2010-03-18 Tom Tromey <tromey@redhat.com>
191
192 * infcmd.c (finish_command_continuation): Wrap print_return_value
193 in TRY_CATCH.
194
195 2010-03-18 Joel Brobecker <brobecker@adacore.com>
196
197 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
198 DIE has a name before creating the associated partial symbol.
199 (read_func_scope): Emit a complaint if the subprogram does not
200 have a name or when we can't extract the subprogram PC bounds.
201
202 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
203
204 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
205 instead of selected frame architecture.
206
207 2010-03-18 Pedro Alves <pedro@codesourcery.com>
208
209 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
210 a valid selected thread, and that it is not running.
211 (advance_command): Ditto.
212 (finish_command): Ditto.
213
214 2010-03-17 Stan Shebs <stan@codesourcery.com>
215
216 * ax-gdb.c (require_rvalue): Disallow non-scalars.
217
218 * infcall.c: Include tracepoint.h.
219 (call_function_by_hand): Disallow calls in tfind mode.
220 * infcmd.c: Include tracepoint.h.
221 (ensure_not_tfind_mode): New function.
222 (continue_1): Call it.
223 (step_1) Ditto.
224 (jump_command): Ditto.
225 (signal_command): Ditto.
226 (advance_command): Ditto.
227 (until_command): Ditto.
228 (finish_command): Ditto.
229 * tracepoint.h (disconnect_or_stop_tracing): Declare.
230
231 * ax-gdb.h (struct axs_value): New field optimized_out.
232 (gen_trace_for_var): Add gdbarch argument.
233 * ax-gdb.c (gen_trace_static_fields): New function.
234 (gen_traced_pop): Call it, add gdbarch argument.
235 (gen_trace_for_expr): Update call to it.
236 (gen_trace_for_var): Ditto, and report optimized-out variables.
237 (gen_struct_ref_recursive): Check for optimized-out value.
238 (gen_struct_elt_for_reference): Ditto.
239 (gen_static_field): Pass gdbarch instead of expression, assume
240 optimization if field not found.
241 (gen_var_ref): Set the optimized_out flag.
242 (gen_expr): Error on optimized-out variable.
243 * tracepoint.c (collect_symbol): Handle struct-valued vars as
244 expressions, skip optimized-out variables with computed locations.
245 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
246 erroring out if location expression missing.
247 (loclist_tracepoint_var_ref): Don't error out here.
248
249 2010-03-17 Tom Tromey <tromey@redhat.com>
250
251 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
252 DWARF data is available.
253
254 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
255
256 * symfile.c (generic_load): Reset breakpoints after loading.
257
258 2010-03-17 Tom Tromey <tromey@redhat.com>
259
260 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
261
262 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
263
264 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
265 create_breakpoint call, adjust the parameters.
266
267 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
268 Chandru <chandru@in.ibm.com>
269
270 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
271 * valarith.c (value_subscripted_rvalue): Suppress error if
272 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
273
274 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
275
276 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
277
278 2010-03-16 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-tasks.c (task_command_1): Check that the task ptid is valid
281 before doing the associated thread switch.
282
283 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
284
285 * MAINTAINERS: Update my email address.
286
287 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
288
289 Simplify MI breakpoint setting.
290
291 * breakpoint.c (break_command_really): Make nonstatic and
292 rename to...
293 (create_breakpoint): ...this. Rename prior function by this name
294 to...
295 (create_breakpoint_sal): ...this.
296 (create_breakpoints): Rename to...
297 (create_breakpoints_sal): ...this.
298 (set_breakpoint): Remove.
299 * breakpoint.h: Adjust to above changes.
300 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
301
302 2010-03-15 Stan Shebs <stan@codesourcery.com>
303
304 * ax-gdb.c: Include cp-support.h.
305 (find_field): Remove.
306 (gen_primitive_field): New function.
307 (gen_struct_ref_recursive): New function.
308 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
309 of find_field.
310 (gen_static_field): New function.
311 (gen_struct_elt_for_reference): New.
312 (gen_namespace_elt): New.
313 (gen_maybe_namespace_elt): New.
314 (gen_aggregate_elt_ref): New.
315 (gen_expr): Add OP_SCOPE, display opcode name in error message.
316
317 2010-03-15 Tom Tromey <tromey@redhat.com>
318
319 * dwarf2read.c (die_needs_namespace): Also return 0 for
320 DW_TAG_subprogram.
321
322 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
323
324 PR c++/7936:
325 * cp-support.h: Added char *declaration element to using_direct
326 data struct.
327 (cp_add_using): Added char *declaration argument.
328 (cp_add_using_directive): Ditto.
329 (cp_lookup_symbol_imports): made extern.
330 * cp-namespace.c: Updated with the above changes.
331 * dwarf2read.c (read_import_statement): Ditto.
332 (read_namespace): Ditto.
333 (read_import_statement): Support import declarations.
334 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
335 declarations.
336 Added support for 'declaration_only' search.
337 (cp_lookup_symbol_namespace): Attempt to search for the name as
338 is before consideration of imports.
339 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
340 search at every block level search.
341 Now takes language argument.
342 (lookup_symbol_aux): Updated.
343
344 2010-03-15 Tom Tromey <tromey@redhat.com>
345
346 * c-exp.y (name_not_typename): Add 'operator' clause.
347
348 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
349
350 * configure.ac: Exit if ${gdb_target_obs}" is not set.
351 * configure: Regenerate.
352
353 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
356 and ".sdynbss". Update the comment.
357
358 2010-03-15 Jie Zhang <jie@codesourcery.com>
359
360 * MAINTAINERS: Update my email address.
361
362 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
363
364 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
365
366 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
367
368 * charset.c [USE_WIN32API]: Include <windows.h>.
369 (_initialize_charset): Correct type of w32_host_default_charset.
370
371 2010-03-14 Pedro Alves <pedro@codesourcery.com>
372
373 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
374
375 2010-03-12 Tom Tromey <tromey@redhat.com>
376
377 PR c++/9708:
378 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
379 in a lexical block does not need a namespace.
380 (new_symbol) <DW_TAG_variable>: Put extern variables on
381 list_in_scope in all cases.
382
383 2010-03-12 Stan Shebs <stan@codesourcery.com>
384
385 * ax-gdb.c (gen_expr): Add shift expressions.
386 (gen_expr_binop_rest): Ditto.
387
388 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
389
390 * buildsym.c (finish_block): Reset using_directives pointer
391 after block initialization.
392
393 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
394
395 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
396 * i386-tdep.c (i386_word_names): Likewise.
397
398 2010-03-12 Pedro Alves <pedro@codesourcery.com>
399
400 * target.c (memory_xfer_partial): Don't use the stack cache if
401 inspecting trace frames.
402 * tracepoint.c (finish_tfind_command): Invalidate the target
403 dcache.
404
405 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
406
407 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
408 for the PIC displacement, print also the displacement value.
409 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
410
411 2010-03-10 Kevin Buettner <kevinb@redhat.com>
412
413 * remote-mips.c (close_ports, mips_initialize_cleanups)
414 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
415 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
416 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
417 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
418 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
419 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
420 comments describing each of these functions.
421 (mips_enter_debug, mips_exit_debug, common_open)
422 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
423 blank line after the comment describing the function.
424
425 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 * solib-svr4.c (svr4_exec_displacement): Return now success, new
428 parameter displacementp. Update comment.
429 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
430 element exists. Return if svr4_exec_displacement was not successful.
431 Update comment.
432
433 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
434 Daniel Jacobowitz <dan@codesourcery.com>
435
436 * solib-svr4.c (read_program_header): Support type == -1 to read
437 all program headers.
438 (read_program_headers_from_bfd): New function.
439 (svr4_static_exec_displacement): Remove and move the comment ...
440 (svr4_exec_displacement): ... here. Remove variable found. New
441 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
442 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
443 targets using read_program_headers_from_bfd. Remove the call of
444 svr4_static_exec_displacement.
445
446 2010-03-10 Tom Tromey <tromey@redhat.com>
447
448 * dwarf2read.c (struct pubnames_header): Remove.
449 (_PUBNAMES_HEADER): Remove.
450 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
451 (struct aranges_header): Remove.
452 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
453 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
454 (PUBNAMES_SECTION): Remove.
455 (ARANGES_SECTION): Remove.
456 (dwarf2_locate_sections): Don't handle pubnames or aranges.
457 (dwarf2_build_psymtabs): Remove dead code.
458 (dwarf2_build_psymtabs_easy): Remove.
459
460 2010-03-10 Tom Tromey <tromey@redhat.com>
461
462 * elfread.c (elf_symfile_read): Don't call
463 dwarf2_build_frame_info.
464 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
465 (struct dwarf2_per_objfile) <objfile>: New field.
466 (dwarf2_has_info): Now idempotent. Set objfile field.
467 (dwarf2_read_section): Check and set readin field. Call
468 posix_madvise.
469 (dwarf2_build_psymtabs): Don't read all sections.
470 (read_type_comp_unit_head): Read types section.
471 (create_debug_types_hash_table): Likewise.
472 (init_cu_die_reader): Add asserts.
473 (process_type_comp_unit): Add assert.
474 (dwarf2_build_psymtabs_hard): Read info section.
475 (load_partial_comp_unit): Add assert.
476 (create_all_comp_units): Read info section.
477 (load_full_comp_unit): Likewise.
478 (dwarf2_ranges_read): Read ranges section.
479 (dwarf2_record_block_ranges): Add assert.
480 (dwarf2_read_abbrevs): Read abbrev section.
481 (read_indirect_string): Read str section.
482 (dwarf_decode_line_header): Read line section.
483 (read_signatured_type_at_offset): Read types section.
484 (dwarf_decode_macros): Read macinfo section.
485 (dwarf2_symbol_mark_computed): Read loc section.
486 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
487 dwarf2_build_frame_info.
488 (dwarf2_build_frame_info): Unconditionally set
489 dwarf2_frame_objfile_data on the objfile.
490 * configure.ac: Check for posix_madvise.
491 * config.in, configure: Rebuild.
492
493 2010-03-10 Tom Tromey <tromey@redhat.com>
494
495 * xcoffread.c (xcoff_start_psymtab): Update.
496 (xcoff_end_psymtab): Update.
497 * psymtab.c (allocate_psymtab): Remove dead code.
498 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
499 void*.
500 * mdebugread.c (parse_partial_symbols): Update.
501 (new_psymtab): Likewise.
502 * dwarf2read.c (process_psymtab_comp_unit): Update.
503 (psymtab_to_symtab_1): Update.
504 * dbxread.c (start_psymtab): Update.
505 (end_psymtab): Likewise.
506
507 2010-03-10 Tom Tromey <tromey@redhat.com>
508
509 * xcoffread.c: Include psymtab.h.
510 (xcoff_sym_fns): Update.
511 * symtab.h (struct partial_symbol): Remove.
512 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
513 (struct partial_symtab): Remove.
514 (PSYMTAB_TO_SYMTAB): Remove.
515 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
516 (find_pc_sect_psymtab): Remove.
517 (find_pc_sect_symtab_via_partial): Declare.
518 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
519 (find_main_psymtab): Remove.
520 (find_main_filename): Declare.
521 (fixup_psymbol_section): Remove.
522 (fixup_section): Declare.
523 * symtab.c: Include psymtab.h.
524 (lookup_symtab): Use lookup_symtab method.
525 (lookup_partial_symtab): Remove.
526 (find_pc_sect_psymtab_closer): Remove.
527 (find_pc_sect_psymtab): Remove.
528 (find_pc_sect_symtab_via_partial): New function.
529 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
530 (fixup_section): No longer static.
531 (fixup_psymbol_section): Remove.
532 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
533 (lookup_global_symbol_from_objfile): Likewise.
534 (lookup_symbol_aux_psymtabs): Remove.
535 (lookup_symbol_aux_quick): New function.
536 (lookup_symbol_global): Use lookup_symbol_aux_quick.
537 (lookup_partial_symbol): Remove.
538 (basic_lookup_transparent_type_quick): New function.
539 (basic_lookup_transparent_type): Use it.
540 (find_main_psymtab): Remove.
541 (find_main_filename): New function.
542 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
543 (find_line_symtab): Use expand_symtabs_with_filename method.
544 (output_partial_symbol_filename): New function.
545 (sources_info): Use map_partial_symbol_filenames.
546 (struct search_symbols_data): New type.
547 (search_symbols_file_matches): New function.
548 (search_symbols_name_matches): Likewise.
549 (search_symbols): Use expand_symtabs_matching method.
550 (struct add_name_data): Rename from add_macro_name_data.
551 (add_macro_name): Update.
552 (add_partial_symbol_name): New function.
553 (default_make_symbol_completion_list): Use
554 map_partial_symbol_names.
555 (struct add_partial_symbol_name): New type.
556 (maybe_add_partial_symtab_filename): New function.
557 (make_source_files_completion_list): Use
558 map_partial_symbol_filenames.
559 (expand_line_sal): Use expand_symtabs_with_filename method.
560 * symmisc.c: Include psymtab.h.
561 (print_objfile_statistics): Use print_stats method.
562 (dump_objfile): Use dump method.
563 (dump_psymtab, maintenance_print_psymbols)
564 (maintenance_info_psymtabs, maintenance_check_symtabs)
565 (extend_psymbol_list): Remove.
566 * symfile.h (struct quick_symbol_functions): New struct.
567 (struct sym_fns) <qf>: New field.
568 (sort_pst_symbols): Remove.
569 (increment_reading_symtab): Declare.
570 * symfile.c: Include psymtab.h.
571 (compare_psymbols, sort_pst_symbols): Remove.
572 (psymtab_to_symtab): Remove.
573 (increment_reading_symtab): New function.
574 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
575 method.
576 (set_initial_language): Use find_main_filename.
577 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
578 (free_named_symtabs): Remove unused code.
579 (start_psymtab_common, add_psymbol_to_bcache)
580 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
581 Remove.
582 * stack.c: Include psymtab.h, symfile.h.
583 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
584 * source.h (psymtab_to_fullname): Don't declare.
585 * source.c: Include psymtab.h.
586 (select_source_symtab): Use find_last_source_symtab method.
587 (forget_cached_source_info): Use forget_cached_source_info
588 method.
589 (find_and_open_source): No longer static.
590 (psymtab_to_fullname): Remove.
591 * somread.c: Include psymtab.h.
592 (som_sym_fns): Update.
593 * psympriv.h: New file.
594 * psymtab.h: New file.
595 * psymtab.c: New file.
596 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
597 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
598 * objfiles.c: Include psymtab.h.
599 (objfile_relocate1): Use relocate method.
600 (objfile_has_partial_symbols): Use has_symbols method.
601 * mipsread.c: Include psymtab.h.
602 (ecoff_sym_fns): Update.
603 * mi/mi-cmd-file.c: Include psymtab.h.
604 (print_partial_file_name): New function.
605 (mi_cmd_file_list_exec_source_files): Use
606 map_partial_symbol_filenames.
607 * mdebugread.c: Include psympriv.h.
608 * machoread.c: Include psympriv.h.
609 (macho_sym_fns): Update.
610 * m2-exp.y (yylex): Use lookup_symtab.
611 * elfread.c: Include psympriv.h.
612 (elf_sym_fns): Update.
613 * dwarf2read.c: Include psympriv.h.
614 * dbxread.c: Include psympriv.h.
615 (aout_sym_fns): Update.
616 * cp-support.c: Include psymtab.h.
617 (read_in_psymtabs): Remove.
618 (make_symbol_overload_list_qualified): Use
619 expand_symtabs_for_function method.
620 * coffread.c: Include psympriv.h.
621 (coff_sym_fns): Update.
622 * blockframe.c: Include psymtab.h.
623 (find_pc_partial_function): Use find_pc_sect_symtab method.
624 * ada-lang.h (ada_update_initial_language): Update.
625 * ada-lang.c: Include psymtab.h.
626 (ada_update_initial_language): Remove 'main_pst' argument.
627 (ada_lookup_partial_symbol): Remove.
628 (struct ada_psym_data): New type.
629 (ada_add_psyms): New function.
630 (ada_add_non_local_symbols): Use map_ada_symtabs method.
631 (struct add_partial_datum): New type.
632 (ada_add_partial_symbol_completions): New function.
633 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
634 (ada_exception_support_info_sniffer): Update.
635 * Makefile.in (SFILES): Add psymtab.c.
636 (COMMON_OBS): Add psymtab.o.
637 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
638
639 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
640
641 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
642
643 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
644
645 PR C++/11236:
646 * cp-namespace.c (cp_add_using): Deleted.
647 (cp_add_using_directive): Use obstack allocations.
648 Merged the function cp_add_using into this one.
649 Added 'struct obstack *' argument.
650 (cp_scan_for_anonymous_namespaces): Updated.
651 * cp-support.h: Updated.
652 * dwarf2read.c (read_import_statement): Updated.
653 (read_namespace): Updated.
654
655 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
656
657 * windows-nat.c (cygwin_conv_path): Remove old macro.
658
659 2010-03-10 Pedro Alves <pedro@codesourcery.com>
660
661 * breakpoint.c (condition_command): Handle watchpoint conditions.
662 (is_hardware_watchpoint): Add comment.
663 (is_watchpoint): New.
664 (update_watchpoint): Don't reparse the watchpoint's condition
665 unless necessary.
666 (WP_IGNORE): New.
667 (watchpoint_check): Use it.
668 (bpstat_check_watchpoint): Handle it.
669 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
670 conditions in a frame where it makes sense.
671 (watch_command_1): Store the innermost block of the condition
672 expression.
673 (delete_breakpoint): Delete the watchpoint condition expression.
674 * breakpoint.h (struct bp_location) <cond>: Update comment.
675 (struct breakpoint): New field `cond_exp_valid_block'.
676
677 2010-03-09 Joel Brobecker <brobecker@adacore.com>
678
679 Adjust handling of Ada DIEs after dwarf2_physname patch.
680 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
681
682 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
683 Pierre Muller <muller@ics.u-strasbg.fr>
684
685 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
686 from/to posix/win32.
687 (windows_make_so): Use non-Cygwin 1.7 specific function.
688 (windows_create_inferior): Make sure that cygallargs points to
689 original args in non Cygwin 1.7. case.
690
691 2010-03-09 Michael Snyder <msnyder@vmware.com>
692
693 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
694 after target_read_memory to get host byte order.
695 (i386_process_record): Ditto.
696
697 2010-03-09 Keith Seitz <keiths@redhat.com>
698
699 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
700 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
701 print out const or volatile qualifiers, too.
702 (c_type_print_args): Add parameters show_artificial and language.
703 Skip artificial parameters when requested.
704 Use the appropriate language printer.
705 (c_type_print_varspec): Tell c_type_print_args to skip artificial
706 parameters and pass language_c.
707 * dwarf2read.c (die_list): New file global.
708 (struct partial_die_info): Update comments for name field.
709 (pdi_needs_namespace): Renamed to ...
710 (die_needs_namespace): ... this. Rewrite.
711 (dwarf2_linkage_name): Remove.
712 (add_partial_symbol): Do not predicate the call to
713 partial_die_full_name based on pdi_needs_namespace.
714 Remove call to cp_check_possible_namespace_symbols and associated
715 outdated comments.
716 (guess_structure_name): Do not inspect child subprogram DIEs.
717 (dwarf2_fullname): Update comments.
718 Use die_needs_namespace to assist in computing the name.
719 (read_func_scope): Use dwarf2_name to get the DIE's name.
720 Use dwarf2_physname to get the "linkage name" of the DIE.
721 (dwarf2_add_member_field): Use dwarf2_physname instead of
722 dwarf2_linkage_name.
723 (read_structure_type): For structs and classes, set TYPE_NAME, too.
724 (determine_class): Remove.
725 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
726 except Ada.
727 (new_symbol): Unconditionally call dwarf2_name.
728 Compute the "linkage name" using dwarf2_physname.
729 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
730 When determining to scan for anonymous C++ namespaces, ignore
731 the linkage name.
732 (dwarf2_physname): New function.
733 (dwarf2_full_name): Move content to new function and call
734 that.
735 (dwarf2_compute_name): "New" function.
736 (_initialize_dwarf2_read): Initialize die_list.
737 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
738 physname.
739 (gnu_v3_print_method_ptr): Use the physname for virtual methods
740 without a demangled name.
741 Print out type information for non-virtual methods.
742 * linespec.c (decode_line_1): Force ANY string using "::" (or
743 "." for java) to use decode_compound, and clean up any stray quoting.
744 If we found a file symtab, re-evaluate whether the remainder is_quoted.
745 (decode_compound): Stop consuming at an open parenthesis.
746 Keep template parameters.
747 Keep any overload information.
748 Keep keywords like "const".
749 Remove paren_pointer.
750 Move is_quoted check from set_flags to here.
751 Remove #if 0 code from 2000. Ten years is long enough.
752 (find_method): Before comparing symbol names, canonicalize the string
753 from the user.
754 If a specific overload is requested, find it. Otherwise throw an error.
755 (find_method_overload_end): New function.
756 (set_flags): Remove.
757 (decode_compound): Assume that parentheses are matched.
758 It's a lot easier.
759 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
760 to cplus_demangle.
761 * linespec.c (decode_line_1): Keep important keywords like
762 "const" and "volatile".
763 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
764 * typeprint.h (c_type_print_args): Add declaration.
765 * ui-file.c (do_ui_file_obsavestring): New function.
766 (ui_file_obsavestring): New function.
767 * ui-file.h (ui_file_obsavestring): Add declaration.
768 * valops.c (find_overload_match): Resolve the object to
769 a non-pointer type.
770 If the object is a data member, search the object for the member
771 and return with staticp set.
772 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
773 Do not attempt to extract a function name from non-function types.
774 If the extracted function name and the original name are the same,
775 we don't have a C++ method.
776
777 From Jan Kratochvil <jan.kratochvil@redhat.com>:
778 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
779
780 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
781 and arguments from symbol lookups.
782 * ax-gdb.c (gen_expr): Likewise.
783 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
784 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
785 lookup_possible_namespace_symbol): Likewise.
786 * cp-support.c (read_in_psymtabs): Likewise.
787 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
788 * language.h (la_lookup_symbol_nonlocal): Likewise.
789 * scm-valprint.c (scm_inferior_print): Likewise.
790 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
791 * solib-svr.c (elf_lookup_lib): Likewise.
792 * solib.c (show_auto_solib_add): Likewise.
793 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
794 * symmisc.c (maintenance_check_symtabs): Likewise.
795 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
796 lookup_symbol_aux_local, lookup_symbol_aux_block,
797 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
798 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
799 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
800 basic_lookup_transparent_type, find_main_psymtab,
801 lookup_block_symbol): Likewise.
802 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
803 lookup_symbol_global, lookup_symbol_aux_block,
804 lookup_symbol_partial_symbol, lookup_block_symbol,
805 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
806
807 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
808
809 * python/python-internal.h: Include symtab.h.
810
811 2010-03-09 Joel Brobecker <brobecker@adacore.com>
812 Pierre Muller <muller@ics.u-strasbg.fr>
813
814 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
815 * p-valprint.c (pascal_val_print): Remove undeed block and fix
816 indentation.
817
818 2010-03-08 Tom Tromey <tromey@redhat.com>
819
820 * breakpoint.c (breakpoint_1): Add "QUIT".
821
822 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
823 Pedro Alves <pedro@codesourcery.com>
824
825 * solib.c (solib_find): Replace extension if
826 solib_symbols_extension is set in the target gdbarch.
827 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
828 solib_symbols_extension to "sym".
829 * gdbarch.sh (solib_symbols_extension): New variable.
830 (pstring): New function.
831 * gdbarch.h, gdbarch.c: Regenerate.
832
833 2010-03-08 Tom Tromey <tromey@redhat.com>
834
835 PR cli/9591:
836 * NEWS: Update.
837 * utils.c: Include main.h.
838 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
839 (defaulted_query): Use default answer if `batch_flag'.
840 * main.h (batch_flag): Declare.
841 * main.c (batch_flag): New global.
842 (captured_main): Remove 'batch'. Update.
843
844 2010-03-08 Kevin Buettner <kevinb@redhat.com>
845
846 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
847 and Kevin Buettner:
848
849 * remote-mips.c (rockhopper_ops): New target_ops struct.
850 (MON_ROCKHOPPER): New mips_monitor_type.
851 (read_hex_value): New function.
852 (mips_request): Send 8-byte values with a 'T' packet. Read the
853 packet argument as a string and use read_hex_value to parse it.
854 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
855 (rockhopper_open): New function.
856 (mips_wait): Read the PC, FP and SP fields as strings. Use
857 read_hex_value to parse them and mips_set_register to commit them.
858 (mips_set_register): New function.
859 (mips_fetch_registers): Do not cast register value to "unsigned"
860 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
861 (mips_store_registers): Use a 'T' packet to set registers when
862 using MON_ROCKHOPPER.
863 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
864 and expect the total to be printed before the entry address.
865 (_initialize_remote_mips): Initialize and add rockhopper_ops.
866
867 2010-03-08 Kevin Buettner <kevinb@redhat.com>
868
869 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
870 Change return value to int. Store value fetched in location
871 addressed by `val'. Use function's return value as success
872 or failure indicator. Adjust all callers.
873
874 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
875
876 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
877
878 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
879 Hui Zhu <teawater@gmail.com>
880
881 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
882 tmp_to_stopped_data_address.
883 (record_open): Reset tmp_to_stopped_by_watchpoint and
884 tmp_to_stopped_data_address.
885 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
886 to_stopped_data_address.
887
888 2010-03-08 Hui Zhu <teawater@gmail.com>
889
890 * i386-tdep.c (i386_process_record): Initialize regnum.
891
892 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
895 Do not warn on ".gnu.liblist" and ".gnu.conflict".
896
897 2010-03-08 Joel Brobecker <brobecker@adacore.com>
898
899 Memory error when reading wrong core file.
900 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
901 errors while reading the inferior memory, and return zero if
902 an exception was raised.
903
904 2010-03-07 Michael Snyder <msnyder@vmware.com>
905
906 * record.c (record_restore): Rename tmpu8 to rectype.
907
908 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
909 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
910
911 (i386_record_push): Rename local tmpulongest to addr.
912
913 (i386_process_record): Rename local tmpulongest to addr.
914
915 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
916 addr64.
917
918 Rename local variable tmpu8 to opcode8 and regnum.
919
920 2010-03-07 Joel Brobecker <brobecker@adacore.com>
921
922 * remote.c (remote_get_ada_task_ptid): New function.
923 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
924
925 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
926
927 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
928 block. Define helper macros to reduce ifdefs in code.
929 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
930 size. Call unadorned GetModuleFileNameEx rather than
931 GetModuleFileNameEx*.
932 (windows_make_so): Use __PMAX to denote maximum buffer size and
933 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
934 appropriate.
935 (get_image_name): Use __PMAX to denote maximum buffer size.
936 (handle_load_dll): Likewise.
937 (windows_pid_to_exec_file): Likewise.
938 (windows_create_inferior): Add many accommodations for older Cygwin and
939 non-Cygwin.
940 (bad_GetModuleFileNameExW): Control inclusion of this function based on
941 __USEWIDE conditional.
942 (bad_GetModuleFileNameExA): Likewise.
943 (_initialize_loadable): Just use real function names without the dyn_
944 part since they are defined earlier.
945
946 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
947 Tom Tromey <tromey@redhat.com>
948
949 * utils.c (host_char_to_target): Add 'gdbarch' argument.
950 (parse_escape): Likewise.
951 * python/py-utils.c (unicode_to_target_string): Update.
952 (unicode_to_target_python_string): Update.
953 (target_string_to_unicode): Update.
954 * printcmd.c (printf_command): Update.
955 * p-exp.y (yylex): Update.
956 * objc-exp.y (yylex): Update.
957 * mi/mi-parse.c: Include charset.h.
958 (mi_parse_escape): New function.
959 (mi_parse_argv): Use it.
960 * jv-exp.y (yylex): Update.
961 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
962 function.
963 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
964 * gdbarch.sh (auto_charset, auto_wide_charset): New.
965 * gdbarch.c: Rebuild.
966 * gdbarch.h: Rebuild.
967 * defs.h (parse_escape): Update.
968 * cli/cli-setshow.c: Include arch-utils.h.
969 (do_setshow_command): Update.
970 * cli/cli-cmds.c (echo_command): Update.
971 * charset.h (target_charset, target_wide_charset): Update.
972 * charset.c: Include arch-utils.h.
973 (target_charset_name): Default to "auto".
974 (target_wide_charset_name): Likewise.
975 (show_target_charset_name): Handle "auto".
976 (show_target_wide_charset_name): Likewise.
977 (be_le_arch): New global.
978 (set_be_le_names): Add 'gdbarch' argument.
979 (validate): Likewise. Don't call set_be_le_names.
980 (set_charset_sfunc, set_host_charset_sfunc)
981 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
982 Update.
983 (target_charset): Add 'gdbarch' argument.
984 (target_wide_charset): Likewise. Remove 'byte_order' argument.
985 (auto_target_charset_name): New global.
986 (default_auto_charset, default_auto_wide_charset): New functions.
987 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
988 for target charsets. Copy result of nl_langinfo. Use GetACP if
989 USE_WIN32API.
990 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
991 remove 'byte_order' argument. Update.
992 (classify_type): Likewise.
993 (c_emit_char): Update.
994 (c_printchar): Update.
995 (c_printstr): Update.
996 (c_get_string): Update.
997 (evaluate_subexp_c): Update.
998 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
999 Declare.
1000 * python/python.c (gdbpy_target_charset): New function.
1001 (gdbpy_target_wide_charset): Likewise.
1002 (GdbMethods): Update.
1003 * NEWS: Update.
1004
1005 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
1006
1007 * symfile.c (build_section_addr_info_from_objfile): Do not mask
1008 off high address bits.
1009
1010 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
1011
1012 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
1013 address as UnsignedLongLong, not LongLong.
1014
1015 2010-03-05 Kevin Buettner <kevinb@redhat.com>
1016 Pedro Alves <pedro@codesourcery.com>
1017
1018 * remote-mips.c (gdbthread.h): Include.
1019 (remote_mips_ptid): Declare.
1020 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
1021 (common_open): Set inferior_ptid, add it as an inferior, and
1022 as a thread too. Delete FIXME comment regarding start_remote().
1023 (mips_close): Invoke generic_mourn_inferior().
1024 (mips_kill): Make sure that target_mourn_inferior is invoked.
1025 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
1026 it's now invoked from mips_close().
1027 (mips_load): Don't null out inferior_ptid. Don't call
1028 clear_symtab_users().
1029 (mips_thread_alive, mips_pid_to_str): New functions.
1030 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
1031 to_thread_alive and to_pid_to_str operations.
1032
1033 2010-03-04 Tom Tromey <tromey@redhat.com>
1034
1035 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
1036 in DWARF 3 and later.
1037 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
1038
1039 2010-03-04 Keith Seitz <keiths@redhat.com>
1040
1041 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
1042 If the filename portion of the linespec was quoted, recheck the
1043 remainder for additional quoting.
1044 (locate_first_half): Skip over completer chars, too.
1045
1046 2010-03-04 Tom Tromey <tromey@redhat.com>
1047
1048 * printcmd.c (printf_command): Pass dummy argument to
1049 printf_filtered.
1050
1051 2010-03-04 Doug Evans <dje@google.com>
1052
1053 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
1054 unwound_fp.
1055
1056 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
1057
1058 2010-03-04 Pedro Alves <pedro@codesourcery.com>
1059
1060 * breakpoint.c (update_watchpoint): Create a sentinel location if
1061 the software watchpoint isn't watching any memory.
1062 (breakpoint_address_bits): Skip dummy software watchpoint locations.
1063
1064 2010-03-04 Pedro Alves <pedro@codesourcery.com>
1065
1066 * utils.c (fputs_maybe_filtered): Check if there's already a top
1067 level interpreter before dereferencing it. If there isn't one,
1068 don't paginate either.
1069
1070 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1071
1072 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
1073 the state right when single stepping.
1074 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
1075 Get the next PC along with the instruction state.
1076 (thumb_get_next_pc): Remove.
1077 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
1078
1079 2010-03-04 Hui Zhu <teawater@gmail.com>
1080
1081 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
1082
1083 2010-03-03 Pedro Alves <pedro@codesourcery.com>
1084
1085 * utils.c (fputs_maybe_filtered): Always disable pagination if the
1086 top level interpreter is MI.
1087
1088 2010-03-03 Stan Shebs <stan@codesourcery.com>
1089
1090 * remote.c (remote_download_tracepoint): Iterate over locations.
1091 * tracepoint.c (validate_actionline): Ditto.
1092 (encode_actions): Add location argument.
1093 (trace_dump_command): Check all locations to see if stepping
1094 frame.
1095
1096 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
1097 Eli Zaretskii <eliz@gnu.org>
1098
1099 * NEWS: Add X86 general purpose registers section.
1100
1101 2010-03-03 Tom Tromey <tromey@redhat.com>
1102
1103 PR mi/11098:
1104 * varobj.c (install_new_value): Handle case where new print_value
1105 is NULL.
1106
1107 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
1108
1109 PR gdb/11345:
1110 * printcmd.c (printf_command): Print end of format string using
1111 printf_filtered.
1112
1113 2010-03-02 Tom Tromey <tromey@redhat.com>
1114
1115 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
1116 * defs.h (read_command_lines_1): Add missing 'void'.
1117 * cli/cli-script.c (recurse_read_control_structure): Add missing
1118 'void'.
1119 (read_next_line): Likewise.
1120 (read_command_lines_1): Likewise.
1121
1122 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1123
1124 * spu-tdep.c (spu_analyze_prologue): Track instruction to
1125 store backchain as part of prologue.
1126
1127 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
1128
1129 * progspace.c (update_address_spaces): Update inferior address spaces
1130 also.
1131
1132 2010-03-02 Doug Evans <dje@google.com>
1133
1134 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
1135 lowpc,highpc args to addrmap_set_empty.
1136
1137 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
1138
1139 * amd64-tdep.c (amd64_byte_names): New.
1140 (amd64_word_names): Likewise.
1141 (amd64_dword_names): Likewise.
1142 (amd64_pseudo_register_name): Likewise.
1143 (amd64_pseudo_register_read): Likewise.
1144 (amd64_pseudo_register_write): Likewise.
1145 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
1146 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
1147 set_gdbarch_pseudo_register_write and
1148 set_tdesc_pseudo_register_name. Don't call
1149 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
1150
1151 * i386-tdep.c (i386_num_mmx_regs): Removed.
1152 (i386_num_pseudo_regs): Likewise.
1153 (i386_byte_names): New.
1154 (i386_word_names): Likewise.
1155 (i386_byte_regnum_p): Likewise.
1156 (i386_word_regnum_p): Likewise.
1157 (i386_mmx_regnum_p): Updated.
1158 (i386_pseudo_register_name): Make it global. Handle byte and
1159 word pseudo-registers.
1160 (i386_pseudo_register_read): Likewise.
1161 (i386_pseudo_register_write): Likewise.
1162 (i386_pseudo_register_type): Handle byte, word and dword
1163 pseudo-registers
1164 (i386_register_reggroup_p): Don't include pseudo
1165 registers, except for MXX, in any register groups. Don't
1166 include pseudo byte, word, dword registers in general_reggroup.
1167 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
1168 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
1169 pseudo-registers after word pseudo-registers. Call
1170 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
1171
1172 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
1173 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
1174 eax_regnum.
1175 (i386_byte_regnum_p): New.
1176 (i386_word_regnum_p): Likewise.
1177 (i386_dword_regnum_p): Likewise.
1178 (i386_pseudo_register_name): Likewise.
1179 (i386_pseudo_register_read): Likewise.
1180 (i386_pseudo_register_write): Likewise.
1181
1182 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1183
1184 * target-descriptions.c (tdesc_type): Remove
1185 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1186 (tdesc_predefined_types): Likewise.
1187 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
1188 if flag name is empty.
1189 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
1190
1191 * features/i386/32bit-core.xml: Define i386_eflags.
1192 * features/i386/64bit-core.xml: Likewise.
1193
1194 * features/i386/32bit-sse.xml: Define i386_mxcsr.
1195 * features/i386/64bit-sse.xml: Likewise.
1196
1197 * features/i386/amd64-linux.c: Regenerated.
1198 * features/i386/amd64.c: Likewise.
1199 * features/i386/i386-linux.c: Likewise.
1200 * features/i386/i386.c: Likewise.
1201
1202 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1203
1204 * gdbtypes.c (append_composite_type_field_raw): New.
1205 (append_composite_type_field_aligned): Use the new function.
1206 * gdbtypes.h (append_composite_type_field_raw): Declare.
1207 * target-descriptions.c (struct tdesc_type_field): Add start and end.
1208 (struct tdesc_type_flag): New type.
1209 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
1210 kind. Add size to u.u. Add u.f for flags.
1211 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
1212 (tdesc_free_type): Likewise.
1213 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
1214 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
1215 (tdesc_add_bitfield, tdesc_add_flag): New.
1216 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
1217 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
1218 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
1219 current_type. Add current_type_size and current_type_is_flags.
1220 (tdesc_start_union): Clear the new fields.
1221 (tdesc_start_struct, tdesc_start_flags): New.
1222 (tdesc_start_field): Handle struct fields, including bitfields.
1223 (field_attributes): Make type optional. Add start and end.
1224 (union_children): Rename to struct_union_children.
1225 (union_attributes): Rename to struct_union_attributes. Add optional
1226 size.
1227 (flags_attributes): New.
1228 (feature_children): Add struct and flags.
1229 * features/gdb-target.dtd: Add flags and struct to features.
1230 Make field type optional. Add field start and end.
1231
1232 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1233
1234 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
1235 (amd64_linux_read_description): Likewise.
1236 (_initialize_amd64_linux_nat): Set to_read_description to
1237 amd64_linux_read_description.
1238
1239 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
1240 (amd64_linux_register_name): Removed.
1241 (amd64_linux_register_type): Likewise.
1242 (amd64_linux_core_read_description): New.
1243 (amd64_linux_init_abi): Set target description to
1244 tdesc_amd64_linux if needed. Support orig_rax in target
1245 description. Don't call set_gdbarch_register_name nor
1246 set_gdbarch_register_type. Call
1247 set_gdbarch_core_read_description.
1248 (_initialize_amd64_linux_tdep): Call
1249 initialize_tdesc_amd64_linux.
1250
1251 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
1252
1253 * amd64-tdep.c: Include "features/i386/amd64.c".
1254 (amd64_register_names): Removed.
1255 (amd64_register_name): Likewise.
1256 (amd64_register_type): Likewise.
1257 (amd64_init_abi): Set num_core_regs and register_names. Set
1258 target description to tdesc_amd64 if needed. Don't call
1259 set_gdbarch_register_name nor set_gdbarch_register_type.
1260 (_initialize_amd64_tdep): New.
1261
1262 * i386-linux-nat.c (i386_linux_read_description): New.
1263 (_initialize_i386_linux_nat): Set to_read_description to
1264 i386_linux_read_description.
1265
1266 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
1267 (i386_linux_register_name): Removed.
1268 (i386_linux_core_read_description): New.
1269 (i386_linux_read_description): Likewise.
1270 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
1271 Set target description to tdesc_i386_linux if needed. Support
1272 orig_eax. Set register_reggroup_p. Call
1273 set_gdbarch_core_read_description.
1274 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
1275
1276 * i386-linux-tdep.h (tdesc_i386_linux): New.
1277
1278 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
1279 with I387_NUM_REGS.
1280
1281 * i386-tdep.c: Include "features/i386/i386.c".
1282 (i386_register_names): Make it const.
1283 (i386_mmx_names): Likewise.
1284 (i386_num_register_names): Removed.
1285 (i386_register_name): Likewise.
1286 (i386_eflags_type): Likewise.
1287 (i386_mxcsr_type): Likewise.
1288 (i386_sse_type): Likewise.
1289 (i386_register_type): Likewise.
1290 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
1291 (i386_pseudo_register_name): New.
1292 (i386_pseudo_register_type): Likewise.
1293 (i386_mmx_type): Make it static.
1294 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
1295 I387_NUM_REGS. Set num_core_regs and register_names. Don't
1296 call set_gdbarch_register_name nor set_gdbarch_register_type.
1297 Set register_reggroup_p. Set target description to tdesc_i386
1298 if needed. Call set_tdesc_pseudo_register_type,
1299 set_tdesc_pseudo_register_name and tdesc_use_registers.
1300 (_initialize_i386_tdep): Call initialize_tdesc_i386.
1301 initialize_tdesc_x86_64.
1302
1303 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
1304 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
1305 register_names, tdesc and register_reggroup_p.
1306 (I386_NUM_FREGS): Removed.
1307 (i386_eflags_type): Likewise.
1308 (i386_mxcsr_type): Likewise.
1309 (i386_mmx_type): Likewise.
1310 (i386_sse_type): Likewise.
1311 (i386_register_name): Likewise.
1312 (i386_regnum): Add I386_MXCSR_REGNUM.
1313 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
1314
1315 * i387-tdep.h (I387_NUM_REGS): New.
1316
1317 * regformats/i386/i386-linux.dat: Generated.
1318 * regformats/i386/i386.dat: Likewise.
1319 * regformats/i386/amd64-linux.dat: Likewise.
1320 * regformats/i386/amd64.dat: Likewise.
1321
1322 * regformats/reg-i386-linux.dat: Removed.
1323 * regformats/reg-i386.dat: Likewise.
1324 * regformats/reg-x86-64-linux.dat: Likewise.
1325 * regformats/reg-x86-64.dat: Likewise.
1326
1327 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
1328
1329 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
1330 cygwin_conv_path API rather than the deprecated
1331 cygwin_conv_to_full_posix_path.
1332 * windows-nat.c:
1333 (GetModuleFileNameExA): Undefine for Cygwin.
1334 (GetModuleFileNameExW): Define for Cygwin.
1335 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
1336 Call GetModuleFileNameExW and convert path to POSIX using
1337 cygwin_conv_path.
1338 (windows_make_so): Always define p. Drop unused variable m.
1339 Don't use Win32 functions to check file existance, rather use
1340 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
1341 Use canonicalize_file_name to get full path.
1342 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
1343 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
1344 use correct target buffer size in call to WideCharToMultiByte.
1345 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
1346 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
1347 (windows_create_inferior): Convert all paths and arguments to wchar_t
1348 and use CreateProcessW on Cygwin.
1349 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
1350 (bad_GetModuleFileNameExA): Undefine for Cygwin.
1351 (bad_GetModuleFileNameExW): Define for Cygwin.
1352 (_initialize_loadable): Load GetModuleFileNameExW into
1353 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
1354
1355 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
1356
1357 PR python/11036
1358 * python/py-frame.c (frapy_read_var): Add block argument and logic
1359 to cope with user provided blocks.
1360
1361 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1362
1363 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
1364 New comment.
1365
1366 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
1367
1368 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
1369 (COMMON_OBS): ... to here since it's used unconditionally.
1370 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
1371 (SFILES): To here.
1372
1373 2010-02-26 David Daney <ddaney@caviumnetworks.com>
1374
1375 * mips-linux-tdep.c: Update struct sigframe comments.
1376 (SIGFRAME_CODE_OFFSET): Delete macro.
1377 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
1378 this_frame's sp.
1379 (mips_linux_n32n64_sigframe_init): Same.
1380
1381 2010-02-26 Kevin Buettner <kevinb@redhat.com>
1382
1383 * remote-mips.c (mips_load): Don't use pseudo-register when
1384 invalidating regcache.
1385
1386 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1387
1388 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
1389
1390 2010-02-26 Pedro Alves <pedro@codesourcery.com>
1391
1392 * NEWS: Add "New targets" section, and mention ARM Symbian
1393 support.
1394
1395 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
1396
1397 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
1398 add ADDR_SIZE member.
1399 (allocate_piece_closure): Update.
1400 (copy_pieced_value_closure): Likewise.
1401 (dwarf2_evaluate_loc_desc): Likewise.
1402 (read_pieced_value): Use DWARF address size instead of
1403 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
1404
1405 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
1406 Tom Tromey <tromey@redhat.com>
1407
1408 * python/py-type.c (typy_lookup_typename): Add in block argument.
1409 If provided restrict lookup to specified blocks.
1410 (gdbpy_lookup_type): Likewise.
1411 (typy_lookup_type): Likewise.
1412
1413 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1414
1415 Symbian config
1416
1417 gdb/
1418 * arm-symbian-tdep.c: New.
1419 * configure.tgt (arm*-*-symbianelf*): New target.
1420 (*-*-symbianelf*): New OS.
1421 * osabi.c (gdb_osabi_names): Add Symbian.
1422 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
1423 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
1424 (ALLDEPFILES): Add arm-symbian-tdep.c.
1425
1426 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1427
1428 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
1429
1430 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1431
1432 * mi/mi-main.c (mi_cmd_execute): Fix typo.
1433
1434 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
1435 Tom Tromey <tromey@redhat.com>
1436 Thiago Jung Bauermann <bauerman@br.ibm.com>
1437
1438 * python/python.c (_initialize_python): Call
1439 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
1440 gdbpy_initialize_blocks.
1441 * python/python-internal.h: Declare struct symbol, block and
1442 symtab_and_line. Declare block_object_type and
1443 symbol_object_type
1444 (gdbpy_lookup_symbol gdbpy_block_for_pc)
1445 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
1446 (symbol_to_symbol_object, block_to_block_object)
1447 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
1448 (gdbpy_initialize_blocks ): Declare.
1449 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
1450 (frapy_select): Add methods.
1451 (frapy_read_var): Add symbol branch.
1452 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
1453 py-block.
1454 (SUBDIR_PYTHON_SRCS): Likewise.
1455 (py-symbol.o): New rule.
1456 (py-symtab.o): Likewise.
1457 (py-block.o): Likewise.
1458 * python/py-symbol.c: New file.
1459 * python/py-symtab.c: Likewise.
1460 * python/py-block.c: Likewise.
1461
1462 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1463
1464 PR gdb/11321
1465
1466 * inferior.h (prepare_for_detach): Declare.
1467 (struct inferior) <detaching>: New field.
1468 * infrun.c (prepare_for_detach): New.
1469 (handle_inferior_event) <random signal>: Don't stop if detaching.
1470 * target.c (target_detach): Call prepare_for_detach.
1471
1472 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1473
1474 Per-process displaced stepping queue.
1475
1476 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
1477 (displaced_step_gdbarch, displaced_step_closure,
1478 (displaced_step_original, displaced_step_copy): Move globals to
1479 this...
1480 (struct displaced_step_inferior_state): ... new structure.
1481 (displaced_step_inferior_states): New global.
1482 (get_displaced_stepping_state, add_displaced_stepping_state)
1483 (remove_displaced_stepping_state, infrun_inferior_exit): New
1484 functions.
1485 (displaced_step_clear): Add displaced_step_inferior_state
1486 parameter, and adjust to handle it.
1487 (displaced_step_clear_cleanup): Parameter is now a
1488 displaced_step_inferior_state. Adjust.
1489 (displaced_step_prepare): Adjust.
1490 (displaced_step_fixup, displaced_step_fixup)
1491 (infrun_thread_ptid_changed, resume): Adjust.
1492 (init_wait_for_inferior): Don't call displaced_step_clear.
1493 (infrun_thread_stop_requested): Rewrite.
1494 (_initialize_infrun): Install infrun_inferior_exit as
1495 inferior_exit observer.
1496
1497 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1498
1499 * inferior.h (ptid_match): Declare.
1500 * infrun.c (ptid_match): New.
1501 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
1502 (handle_notification): Add debug output.
1503 * linux-nat.c (ptid_match): Delete.
1504
1505 2010-02-24 David S. Miller <davem@davemloft.net>
1506
1507 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
1508 * syscalls/sparc-linux.xml: New.
1509 * syscalls/sparc64-linux.xml: New.
1510 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
1511 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
1512 (sparc32_linux_get_syscall_number): New function.
1513 (sparc32_linux_init_abi): Set syscall XML file name and hook up
1514 syscall number fetcher.
1515 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
1516 (sparc64_linux_get_syscall_number): New function.
1517 (sparc64_linux_init_abi): Set syscall XML file name and hook up
1518 syscall number fetcher.
1519
1520 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1521
1522 Multiexec MI
1523
1524 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
1525 * inferior.c (add_inferior_silent): Notify inferior_added
1526 observer.
1527 (delete_inferior_1): Notify inferior_removed observer.
1528 (exit_inferior_1): Pass inferior, not pid, to observer.
1529 (inferior_appeared): Likewise.
1530 (add_inferior_with_spaces): New.
1531 (add_inferior_command): Use the above.
1532 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
1533 Declare.
1534
1535 * inflow.c (inflow_inferior_exit): Likewise.
1536 * jit.c (jit_inferior_exit_hook): Likewise.
1537
1538 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
1539 remove-inferior.
1540 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1541 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
1542 (report_initial_inferior): New.
1543 (mi_inferior_removed): Register the above. Make sure
1544 inferior_added observer is called on the first inferior.
1545 (mi_new_thread, mi_thread_exit): Thread group is now identified by
1546 inferior number, not pid.
1547 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
1548 affected.
1549 * mi/mi-main.c (current_context): New.
1550 (proceed_thread_callback): Use typed closure.
1551 Proceed everything if pid is 0. Most implementation split into
1552 (proceed_thread): ... this.
1553 (run_one_inferior): New.
1554 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
1555 Adjust for multiexec behaviour.
1556 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1557 (mi_cmd_execute): Handle the 'thread-group' option here.
1558 Do some extra checks.
1559 * mi-parse.c (mi_parse): Handle the --all and --thread-group
1560 options.
1561 * mi-parse.h (struct mi_parse): New fields all and thread_group.
1562
1563 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1564
1565 Make -exec-run a proper MI commands.
1566
1567 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
1568 * mi/mi-cmds.c (mi_cmds): Adjust.
1569 * mi/mi-main.c (mi_cmd_exec_run): New.
1570
1571 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1572 Stan Shebs <stan@codesourcery.com>
1573
1574 * tracepoint.h (set_traceframe_number)
1575 (cleanup_restore_current_traceframe): Declare.
1576 * tracepoint.c (set_traceframe_number): New.
1577 (struct current_traceframe_cleanup): New.
1578 (do_restore_current_traceframe_cleanup)
1579 (restore_current_traceframe_cleanup_dtor)
1580 (make_cleanup_restore_current_traceframe): New.
1581 * infrun.c: Include tracepoint.h.
1582 (fetch_inferior_event): Switch out and in of tfind mode.
1583
1584 2010-02-24 Pedro Alves <pedro@codesourcery.com>
1585
1586 * breakpoint.c (breakpoint_init_inferior): Also delete
1587 bp_shlib_event breakpoints.
1588 * solib-frv.c (enable_break): Remove call to
1589 remove_solib_event_breakpoints.
1590 * solib-svr4.c (enable_break): Ditto.
1591 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
1592 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
1593 * solib-som.c (som_solib_create_inferior_hook): Ditto.
1594 * solib-spu.c (spu_enable_break): Ditto.
1595
1596 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1597
1598 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
1599
1600 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1601
1602 * varobj.c (varobj_update): Avoid non-constants in initializers.
1603
1604 2010-02-23 Tom Tromey <tromey@redhat.com>
1605
1606 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
1607 handle big-endian values.
1608 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
1609
1610 2010-02-22 Pedro Alves <pedro@codesourcery.com>
1611
1612 PR9605
1613
1614 gdb/
1615 * breakpoint.c (insert_bp_location): If inserting the read
1616 watchpoint failed, fallback to an access watchpoint.
1617 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
1618 if the value changed, if not watching the same memory for writes.
1619 (watchpoint_locations_match): Add comment.
1620 (update_global_location_list): Copy the location's watchpoint type.
1621 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
1622 handle read watchpoints here.
1623 (i386_insert_watchpoint): Read watchpoints aren't supported.
1624 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
1625 packets.
1626 * target.h (target_insert_watchpoint): Update description.
1627
1628 2010-02-19 Tom Tromey <tromey@redhat.com>
1629
1630 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
1631 * m2-typeprint.c (m2_print_type): Update.
1632 * gdbtypes.c (recursive_dump_type): Update.
1633 (copy_type_recursive): Update.
1634 * c-typeprint.c (c_type_print_varspec_prefix): Update.
1635 (c_type_print_base): Update.
1636 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
1637 Remove.
1638 (struct cplus_struct_type) <ntemplate_args>: Remove.
1639 <struct template_arg>: Remove.
1640 <is_dynamic>: Move earlier.
1641 (TYPE_TEMPLATE_ARGS): Remove.
1642 (TYPE_NTEMPLATE_ARGS): Remove.
1643 (TYPE_TEMPLATE_ARG): Remove.
1644
1645 2010-02-19 Tom Tromey <tromey@redhat.com>
1646
1647 PR c++/8693, PR c++/9496:
1648 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
1649 * c-exp.y (lex_one_token): Rename from yylex. Don't call
1650 write_dollar_variable. Don't try to classify NAME tokens.
1651 (token_and_value): New type.
1652 (token_fifo, popping, name_obstack): New globals.
1653 (classify_name): New function.
1654 (classify_inner_name): Likewise.
1655 (yylex): Likewise.
1656 (VARIABLE): Now has type sval.
1657 (exp : VARIABLE): Call write_dollar_variable.
1658 (qualified_name): Use TYPENAME, not typebase. Add production for
1659 multiple "::" instances.
1660 (variable): Use name_not_typename.
1661 (qualified_type): Remove.
1662 (typebase): Update.
1663
1664 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1665
1666 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
1667 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
1668 found by bfd_get_section_by_name.
1669 * symfile.h (struct section_addr_info) <sectindex>: New comment.
1670
1671 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1672
1673 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
1674 7.0 section" into "Changes in 7.1".
1675
1676 2010-02-19 Joel Brobecker <brobecker@adacore.com>
1677
1678 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
1679 * version.in: Bump version to 7.1.50.20100219-cvs.
1680
1681 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
1682
1683 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
1684 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
1685
1686 2010-02-17 Tom Tromey <tromey@redhat.com>
1687
1688 * NEWS: Add Python API Improvements section.
1689
1690 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
1691
1692 * NEWS: Correct typo.
1693
1694 2010-02-17 Tom Tromey <tromey@redhat.com>
1695
1696 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
1697
1698 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1699
1700 * symfile.c (build_section_addr_info_from_objfile): Include sections
1701 only if they are SEC_ALLOC or SEC_LOAD.
1702
1703 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
1704
1705 PR shlibs/11293
1706 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
1707 of ULONGEST for address size.
1708
1709 2010-02-17 Tom Tromey <tromey@redhat.com>
1710
1711 * NEWS: Add C++ improvements section.
1712
1713 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1714
1715 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
1716 PyThreadState_Swap): Avoid "statement with no effect" warning.
1717
1718 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * solib-svr4.c (enable_break <target_auxv_search>): New variable
1721 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
1722
1723 2010-02-17 Tristan Gingold <gingold@adacore.com>
1724 Petr Hluzín <petr.hluzin@gmail.com>
1725
1726 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
1727 gdb_assert. Fix info->size for SIG prologue.
1728
1729 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1730
1731 * infcmd.c (show_inferior_tty_command): Check for NULL.
1732 Correct output message.
1733
1734 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1735
1736 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
1737 FUNCTION contains parentheses. Improve removal of a trailing
1738 single quote.
1739
1740 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1741
1742 * gcore.c (do_bfd_delete_cleanup): New function.
1743 (gcore_command): Use it. Discard the cleanup after success.
1744 (gcore_copy_callback): Delete dead code.
1745
1746 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1747
1748 * symfile.c (addr_info_make_relative): Always use
1749 find_lowest_section.
1750
1751 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
1752
1753 * NEWS: Added entry for namespace fixes.
1754
1755 2010-02-15 Tom Tromey <tromey@redhat.com>
1756
1757 * dwarf2read.c (guess_structure_name): Allocate name on the
1758 objfile obstack.
1759
1760 2010-02-15 Tom Tromey <tromey@redhat.com>
1761
1762 * c-typeprint.c (c_type_print_base): Reverse order of test.
1763
1764 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
1767 initialize it from ELF BFD. Extend the prelink condition by it.
1768
1769 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1770
1771 * defs.h (parse_pid_to_attach): New.
1772 * utils.c (parse_pid_to_attach): New.
1773 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
1774 * gnu-nat.c (gnu_attach): Likewise.
1775 * nto-procfs.c (procfs_attach): Likewise.
1776 * procfs.c (procfs_attach): Likewise.
1777 * windows-nat.c (windows_attach): Likewise.
1778 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
1779 * inf-ttrace.c (inf_ttrace_attach): Likewise.
1780 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
1781 check.
1782
1783 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
1784
1785 * MAINTAINERS: Add myself for write after approval privileges.
1786
1787 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1788
1789 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
1790 block.
1791
1792 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1793
1794 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
1795 only if INFO_VERBOSE.
1796
1797 2010-02-12 Tomas Holmberg <th@virtutech.com>
1798
1799 * mi/mi-main.c: Added the --reverse flag to the following MI
1800 commands: exec-continue, exec-finish, exec-next, exec-step,
1801 exec-next-instruction, exec-step-instruction. This is to
1802 support reverse execution over the MI interface to gdb.
1803
1804 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1805
1806 * tracepoint.c (_initialize_tracepoint): Specify that the address
1807 range of `tfind outsize' is exclusive, and that the address range
1808 of `tfind range' is inclusive, in the commands' help strings.
1809
1810 2010-02-12 Joel Brobecker <brobecker@adacore.com>
1811
1812 Spurious "dll not found" error messages on x64-windows.
1813 * windows-nat.c: Add include of complaints.h.
1814 (handle_unload_dll): Change dll-not-found error into a complaint.
1815
1816 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1817
1818 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
1819 bp_tracepoint and bp_fast_tracepoint, not
1820 bp_loc_software_breakpoint.
1821 (update_global_location_list): Tracepoints are never duplicates of
1822 anything.
1823
1824 2010-02-12 Pedro Alves <pedro@codesourcery.com>
1825
1826 * breakpoint.c (break_command_really): Change return type to int.
1827 Return false if no breakpoint was created, true otherwise.
1828 (trace_command): Don't set the tracepoint count if no tracepoint
1829 was created.
1830 (ftrace_command): Ditto.
1831 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
1832 created in the breakpoints table.
1833
1834 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 Ulrich Weigand <uweigand@de.ibm.com>
1836
1837 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
1838
1839 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1840
1841 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
1842 the offset value isn't of integral type.
1843
1844 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1845
1846 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
1847 New.
1848
1849 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1850
1851 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
1852 non-subscriptable types.
1853 * valarith.c (binop_types_user_defined_p): New, abstracted out
1854 from ...
1855 (binop_user_defined_p): ... this.
1856 * value.h (binop_types_user_defined_p): Declare.
1857
1858 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1859
1860 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
1861 Merge uploaded TSVs before merging uploaded tracepoints.
1862
1863 2010-02-11 Pedro Alves <pedro@codesourcery.com>
1864
1865 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
1866
1867 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
1868
1869 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
1870 whitespace character after a dot in comment.
1871 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
1872 Likewise.
1873 (list_args_or_locals): For the 'all' (that is
1874 -stack-list-variables) case, always output list of tuples.
1875 Output 'arg' field if variable is argument.
1876
1877 2010-02-10 Tom Tromey <tromey@redhat.com>
1878
1879 * parser-defs.h (parser_debug): Declare.
1880 * parse.c (_initialize_parse): Install "debug parser" set/show
1881 command.
1882 (parser_debug): New global.
1883 (show_parserdebug): New function.
1884 * c-exp.y (c_parse): Set yydebug.
1885
1886 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
1887
1888 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
1889 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1890 (tdesc_predefined_types): Add i387_ext, i386_eflags and
1891 i386_mxcsr.
1892 (tdesc_find_type): New.
1893 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
1894 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1895
1896 * target-descriptions.h (tdesc_find_type): New.
1897
1898 2010-02-10 Michael Snyder <msnyder@vmware.com>
1899
1900 * gdb-gdb.py: Comment fix.
1901
1902 2010-02-09 Tristan Gingold <gingold@adacore.com>
1903
1904 * machoread.c (macho_symfile_relocate): New function.
1905 (macho_sym_fns): Use macho_symfile_relocate instead of
1906 default_symfile_relocate.
1907 (macho_oso_data): New type.
1908 (current_oso): New variable.
1909 (macho_add_oso_symfile): Do not compute section_addr_info, but
1910 instead set vma of sections.
1911 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
1912 Set and clear current_oso.
1913
1914 2010-02-09 Joel Brobecker <brobecker@adacore.com>
1915
1916 Wrong type description for tagged type parameter.
1917 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
1918 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
1919 reference to a tagged type.
1920
1921 2010-02-09 Tristan Gingold <gingold@adacore.com>
1922
1923 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
1924 brothers of the parent.
1925
1926 2010-02-08 Tom Tromey <tromey@redhat.com>
1927
1928 PR c++/8017:
1929 * value.h: Update.
1930 * valops.c (search_struct_field): Make 'name' const.
1931 (search_struct_method): Likewise.
1932 (find_method_list): Make 'method' const.
1933 (value_struct_elt): Make 'name' and 'err' const.
1934 (value_find_oload_method_list): Make 'method' const.
1935 (find_overload_match): Make 'name' const.
1936 * eval.c (evaluate_subexp_standard): New locals function,
1937 function_name.
1938 <OP_FUNCALL>: Handle OP_SCOPE specially.
1939
1940 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1941
1942 * infrun.c (handle_inferior_event): Do not look up regcache
1943 for exited processes.
1944
1945 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
1946
1947 PR gdb/10728
1948 * valarith.c (value_ptrdiff): Added a test for a zero type length,
1949 warn if found, and assume length = 1.
1950
1951 2010-02-08 Chris Moller <cmoller@redhat.com>
1952
1953 PR gdb/9067
1954 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
1955 cp_print_static_field) Fix use of obstacks.
1956
1957 2010-02-08 Pedro Alves <pedro@codesourcery.com>
1958
1959 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
1960 resumed LWPs as resumed.
1961 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
1962 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
1963 of throwing an internal error. If an LWP of a process we're not
1964 waiting for reports a signal, don't force collecting a SIGSTOP,
1965 and if it was breakpoint hit in non-stop mode, cancel it. Don't
1966 go through all LWPs cancelling breakpoints in non-stop mode.
1967 (resume_stopped_resumed_lwps): New.
1968 (linux_nat_wait): Use it.
1969
1970 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
1971
1972 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
1973 i386/amd64 and i386/amd64-linux.
1974 (i386/i386-expedite): New.
1975 (i386/i386-linux-expedite): Likewise.
1976 (i386/amd64-expedite):Likewise.
1977 (i386/amd64-linux-expedite): Likewise.
1978 ($(outdir)/i386/i386-linux.dat): Likewise.
1979 ($(outdir)/i386/amd64.dat): Likewise.
1980 ($(outdir)/i386/amd64-linux.dat): Likewise.
1981
1982 * features/i386/32bit-core.xml: New.
1983 * features/i386/32bit-linux.xml: Likewise.
1984 * features/i386/32bit-sse.xml: Likewise.
1985 * features/i386/64bit-core.xml: Likewise.
1986 * features/i386/64bit-linux.xml: Likewise.
1987 * features/i386/64bit-sse.xml: Likewise.
1988 * features/i386/i386-linux.xml: Likewise.
1989 * features/i386/i386.xml: Likewise.
1990 * features/i386/amd64-linux.xml: Likewise.
1991 * features/i386/amd64.xml: Likewise.
1992 * features/i386/i386-linux.c: Likewise.
1993 * features/i386/i386.c: Likewise.
1994 * features/i386/amd64-linux.c: Likewise.
1995 * features/i386/amd64.c: Likewise.
1996
1997 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
1998
1999 PR c++/7935:
2000 * cp-support.h: Added char* alias element to using_direct data
2001 struct.
2002 (cp_add_using): Added char* alias argument.
2003 (cp_add_using_directive): Ditto.
2004 * cp-namespace.c: Updated with the above changes.
2005 (cp_lookup_symbol_imports): Check for aliases.
2006 * dwarf2read.c (read_import_statement): Figure out local alias
2007 for the import and pass it on to cp_add_using.
2008 (read_namespace): Pass alias argument to cp_add_using.
2009
2010 2010-02-05 Hui Zhu <teawater@gmail.com>
2011
2012 * defs.h (gdb_bfd_errmsg): New extern.
2013 * exec.c (exec_file_attach): Change bfd_errmsg to
2014 gdb_bfd_errmsg.
2015 * utils.c (AMBIGUOUS_MESS1): New macro.
2016 (AMBIGUOUS_MESS2): New macro.
2017 (gdb_bfd_errmsg): New function.
2018
2019 2010-02-04 Doug Evans <dje@google.com>
2020
2021 * solib-svr4.c (enable_break): Add comment.
2022
2023 2010-02-04 Anthony Green <green@moxielogic.com>
2024
2025 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
2026 gracefully.
2027
2028 2010-02-04 Tom Tromey <tromey@redhat.com>
2029
2030 * valops.c (search_struct_field): Account for
2031 value_embedded_offset. Fix check for virtual base past the end of
2032 the object. Use value_copy when making a slice of the value.
2033
2034 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2035
2036 PR tui/9622
2037 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
2038 only if gdb_stdout is a tty.
2039
2040 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2041
2042 * target-descriptions.c: Include "osabi.h".
2043 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
2044 OSABI.
2045
2046 2010-02-04 Tristan Gingold <gingold@adacore.com>
2047
2048 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
2049 (macho_symtab_read): Adjust calls to macho_add_oso.
2050 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
2051 (macho_symfile_read): Adjust call to macho_oso_symfile.
2052 (macho_new_init): Move this function after declarations.
2053 (macho_symfile_init): Ditto.
2054 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
2055 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
2056
2057 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
2058
2059 Include MI command in remotelog.
2060
2061 * mi/mi-main.c (mi_execute_command): Call target_log_command.
2062
2063 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2064
2065 * remote.c (remote_state): Remove gdbarch.
2066 (init_remote_state): Don't set gdbarch.
2067 (remote_query_supported): Pass target_gdbarch instead of
2068 rs->gdbarch to gdbarch_qsupported.
2069
2070 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2071
2072 * gdbarch.sh: Add qsupported.
2073
2074 * gdbarch.c: Regenerated.
2075 * gdbarch.h: Likewise.
2076
2077 * remote.c (remote_state): Add gdbarch.
2078 (init_remote_state): Set gdbarch.
2079 (remote_query_supported): Support gdbarch_qsupported.
2080
2081 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
2082
2083 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
2084 __FreeBSD_kernel_version.
2085
2086 2010-02-03 Tristan Gingold <gingold@adacore.com>
2087
2088 * symfile.h (struct sym_fns): Add sym_relocate field.
2089 (default_symfile_relocate): New prototype.
2090 (symfile_relocate_debug_section): First argument is now an objfile.
2091 * symfile.c (default_symfile_relocate): Rename from
2092 symfile_relocate_debug_section, first argument is now an objfile.
2093 (symfile_relocate_debug_section): New function.
2094 * coffread.c (coff_sym_fns): Set sym_relocate field.
2095 * somread.c (som_sym_fns): Ditto.
2096 * mipsread.c (ecoff_sym_fns): Ditto.
2097 * machoread.c (macho_sym_fns): Ditto.
2098 * elfread.c (elf_sym_fns): Ditto.
2099 * dwarf2read.c (dwarf2_read_section): Ditto.
2100 * xcoffread.c (xcoff_sym_fns): Ditto.
2101 * dbxread.c (aout_sym_fns): Ditto.
2102 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
2103 (elfstab_build_psymtabs): Ditto.
2104
2105 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2106
2107 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
2108
2109 2010-02-02 Tom Tromey <tromey@redhat.com>
2110
2111 * valops.c (value_cast_structs): Try downcasting using the RTTI
2112 type.
2113
2114 2010-02-02 Tom Tromey <tromey@redhat.com>
2115
2116 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
2117 (gnuv2_baseclass_offset): Now static.
2118 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
2119 * gnu-v2-abi.h: Remove.
2120
2121 2010-02-02 Tom Tromey <tromey@redhat.com>
2122
2123 * m2-typeprint.c (m2_record_fields): Don't use
2124 TYPE_DECLARED_TYPE.
2125 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
2126 (struct main_type) <flag_declared_class>: New field.
2127 (struct cplus_struct_type) <declared_type>: Remove.
2128 <ntemplate_args>: Move earlier.
2129 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
2130 (DECLARED_TYPE_TEMPLATE): Remove.
2131 (TYPE_DECLARED_TYPE): Remove.
2132 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
2133 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
2134 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
2135 TYPE_DECLARED_TYPE.
2136
2137 2010-02-02 Tom Tromey <tromey@redhat.com>
2138
2139 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
2140 * valops.c (search_struct_field): Compute nbases after calling
2141 CHECK_TYPEDEF.
2142 (check_field): Call CHECK_TYPEDEF.
2143 * cp-valprint.c (cp_print_value): Pass correct address to
2144 baseclass_offset. Fix check for virtual base past the end of the
2145 object. Don't offset address passed to cp_print_value_fields or
2146 apply_val_pretty_printer.
2147 (cp_print_value_fields): Fix call to val_print.
2148 (cp_print_value_fields_rtti): New function.
2149 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
2150 * p-valprint.c (pascal_object_print_value_fields): Fix call to
2151 val_print.
2152 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
2153 offset to address.
2154 * language.h (struct language_defn) <la_val_print>: Document.
2155 * c-lang.h (cp_print_value_fields_rtti): Declare.
2156
2157 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2158
2159 PR libc/11214:
2160 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
2161 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
2162 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
2163
2164 2010-02-01 Michael Matz <matz@suse.de>
2165 Daniel Jacobowitz <dan@codesourcery.com>
2166
2167 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
2168 functions use a frame pointer.
2169
2170 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2171
2172 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
2173 by a conditional setting DYN_ADDR. Use DYN_ADDR.
2174 * config/djgpp/fnchange.lst: Add translations for
2175 symbol-without-target_section.exp and symbol-without-target_section.c.
2176
2177 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2178
2179 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
2180 (remote_breakpoint_for_pc): Correct invalid_p check.
2181 * gdbarch.c: Regenerated.
2182
2183 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2184
2185 * arm-tdep.c (arm_find_mapping_symbol): New function, from
2186 arm_pc_is_thumb.
2187 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
2188 (extend_buffer_earlier): New function.
2189 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
2190 (arm_adjust_breakpoint_address): New function.
2191 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
2192
2193 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2194
2195 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
2196 (arm_linux_thumb2_le_breakpoint): New constants.
2197 (arm_linux_init_abi): Set thumb2_breakpoint and
2198 thumb2_breakpoint_size.
2199 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
2200 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
2201 Implement support for single stepping through IT blocks if
2202 a 32-bit Thumb breakpoint instruction is available.
2203 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
2204 is available, use it when needed.
2205 (arm_remote_breakpoint_from_pc): New function.
2206 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
2207 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
2208 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
2209
2210 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2211
2212 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
2213 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
2214 * gdbarch.c, gdbarch.h: Regenerated.
2215 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
2216 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
2217 gdbarch_remote_breakpoint_from_pc.
2218
2219 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2220
2221 * infrun.c (prepare_to_proceed): Handle other signals which might
2222 match a breakpoint.
2223 (handle_inferior_event): Move the check for unusual breakpoint
2224 signals earlier.
2225
2226 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
2227
2228 amd64 - function returning record with field straddling 2 registers.
2229 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
2230 a record of length <= 16 in which a field straddles the two
2231 eightbytes.
2232
2233 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2234
2235 Implement return values on amd64-windows.
2236 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
2237 (amd64_windows_return_value): New function.
2238 (amd64_windows_init_abi): Call set_gdbarch_return_value with
2239 amd64_windows_return_value.
2240
2241 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2242
2243 amd64-windows: 32 bytes allocated on stack by caller for integer
2244 parameter registers.
2245 * i386-tdep.h (struct gdbarch_tdep): Add new field
2246 integer_param_regs_saved_in_caller_frame.
2247 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2248 tdep->integer_param_regs_saved_in_caller_frame to 1.
2249 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2250 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2251
2252 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2253
2254 amd64-windows: memory args passed by pointer during function calls.
2255 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2256 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2257 where tdep->memory_args_by_pointer is non-zero.
2258 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2259 tdep->memory_args_by_pointer to 1.
2260
2261 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2262
2263 amd64-windows: Integer parameters in function calls.
2264 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2265 amd64-tdep.c.
2266 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2267 call_dummy_integer_regs, and classify.
2268 * amd64-tdep.h (amd64_classify): Add declaration.
2269 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2270 (amd64_reg_class): Delete, moved to i386-tdep.h.
2271 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2272 Replace call to amd64_classify by call to tdep->classify.
2273 (amd64_push_arguments): Get the list of registers to use for
2274 passing integer parameters from the gdbarch tdep structure,
2275 rather than using a hardcoded one. Replace calls to amd64_classify
2276 by calls to tdep->classify.
2277 (amd64_push_dummy_call): Get the register number used for
2278 the "hidden" argument from tdep->call_dummy_integer_regs.
2279 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2280 and tdep->call_dummy_integer_regs. Set tdep->classify.
2281 * amd64-windows-tdep.c: Add include of gdbtypes.h.
2282 (amd64_windows_dummy_call_integer_regs): New static global.
2283 (amd64_windows_classify): New function.
2284 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
2285 tdep->call_dummy_integer_regs and tdep->classify.
2286
2287 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2288
2289 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
2290 for the new regcache. All callers updated.
2291 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
2292 (get_thread_arch_regcache): Do not set aspace here.
2293 * regcache.h (regcache_xmalloc): Update declaration.
2294
2295 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
2296 regcache_xmalloc updated.
2297
2298 2010-01-28 Joel Brobecker <brobecker@adacore.com>
2299
2300 Another -Wunused-function error in procfs.c (sparc-solaris)
2301 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
2302 Only define if SYS_syssgi is defined.
2303 (remove_dbx_link_breakpoint): Delete declaration. Move up.
2304 (dbx_link_addr, insert_dbx_link_bpt_in_file)
2305 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
2306 is itself defined.
2307
2308 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
2309
2310 * windows-nat.c (windows_initialization_done): New variable.
2311 (get_windows_debug_event): Issue error when process dies before
2312 completely initializing.
2313 (do_initial_windows_stuff): Set flag to indicate when we are done with
2314 the initial steps of attaching to the child.
2315
2316 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2317
2318 * symtab.h (struct symbol <symtab>): New comment on NULL values.
2319
2320 2010-01-27 Doug Evans <dje@google.com>
2321
2322 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
2323
2324 * breakpoint.c (bpstat_stop_status): Delete useless code.
2325
2326 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2327
2328 * printcmd.c (display_uses_solib_p): Remove variable section. Access
2329 objfile via SYMBOL_SYMTAB.
2330
2331 2010-01-26 Tom Tromey <tromey@redhat.com>
2332
2333 PR exp/7643:
2334 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
2335 coerce_array on result.
2336
2337 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2338
2339 * cp-namespace.c (cp_lookup_symbol_namespace): Added
2340 search_parent argument.
2341 (cp_add_using): Initialize 'searched' field.
2342 (reset_directive_searched): New function.
2343 * cp-support.h: Add 'searched' field to using_direct struct.
2344 (cp_lookup_symbol_imports): Ditto.
2345 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
2346 Perform recursive search.
2347 Implement non parent search.
2348 * valops.c (value_maybe_namespace_elt): Updated.
2349
2350 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2351
2352 PR gdb/10929:
2353 * dwarf2read.c (read_lexical_block_scope): Create blocks for
2354 scopes which contain using directives even if they contain no
2355 declarations.
2356 * symtab.c (lookup_symbol_aux): Pass lowest level block to
2357 la_lookup_symbol_nonlocal.
2358 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
2359 cp_lookup_symbol_namespace.
2360 (cp_lookup_symbol_namespace): Perform an import lookup at every
2361 block level.
2362 (cp_lookup_symbol_imports): New function.
2363 (cp_lookup_symbol_in_namespace): New function.
2364
2365 2010-01-25 Tom Tromey <tromey@redhat.com>
2366
2367 PR gdb/11049:
2368 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
2369 result.
2370
2371 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2372
2373 * configure.ac: Only use host_os part when disabling TUI on osf.
2374 Use test to check variables, prefix strings with x.
2375 * configure: Regenerate.
2376
2377 * solib-osf.c (osf_current_sos): Initialize tail.
2378
2379 2010-01-25 gingold <gingold@adacore.com>
2380
2381 * windows-nat.c (windows_continue): Use %x to print thread id.
2382 (get_windows_debug_event): Ditto.
2383
2384 2010-01-22 Tom Tromey <tromey@redhat.com>
2385
2386 PR symtab/11199:
2387 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
2388 type and arguments. Use smash_to_methodptr_type.
2389 (read_structure_type): Call quirk_gcc_member_function_pointer
2390 later.
2391 * gdbtypes.h (smash_to_methodptr_type): Declare.
2392 * gdbtypes.c (smash_to_methodptr_type): New function.
2393 (lookup_methodptr_type): Use it.
2394
2395 2010-01-21 Tom Tromey <tromey@redhat.com>
2396
2397 PR symtab/11198:
2398 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
2399 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
2400 * glibc-tdep.c (find_minsym_and_objfile): Remove.
2401 (glibc_skip_solib_resolver): Use
2402 lookup_minimal_symbol_and_objfile.
2403
2404 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
2405
2406 * inflow.c (check_syscall): Guard by #if clause for GO32 and
2407 WIN32 targets.
2408
2409 2010-01-20 Tom Tromey <tromey@redhat.com>
2410
2411 PR backtrace/10770:
2412 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
2413 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
2414 * dwarf2expr.c (new_dwarf_expr_context): Allocate
2415 dwarf_stack_values, not CORE_ADDRs.
2416 (execute_stack_op): Change DW_OP_div and comparison operators to
2417 use signed operands.
2418
2419 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
2420
2421 Per-inferior args and tty and environment.
2422
2423 * infcmd.c (inferior_args): Rename to ...
2424 (inferior_args_scratch): ... this.
2425 (inferior_io_terminal): Rename to ...
2426 (inferior_io_terminal_scratch): ... this.
2427 (inferior_argc, inferior_argv): Remove.
2428 (set_inferior_io_terminal, get_inferior_io_terminal): Store
2429 inside current_inferior().
2430 (set_inferior_tty_command, show_inferior_tty_command): New.
2431 (get_inferior_args, set_inferior_args): Store inside
2432 current_inferior().
2433 (notice_args_set): Likewise and rename to...
2434 (set_args_command): ... this.
2435 (set_inferior_args_vector): Likewise.
2436 (notice_args_read): Rename to...
2437 (show_args_command): ...new.
2438 (tty_command): Remove.
2439 (run_command_1): Don't free old args, as they are freed by
2440 set_inferior_arg now.
2441 (run_no_args_command): Likewise.
2442 (inferior_environ): Remove.
2443 (run_command_1): Use environment of the current inferior.
2444 (environment_info, set_environment_command)
2445 (unset_environment_command, path_info, path_command): Likewise.
2446 (_initialize_infcmd): Adjust for function and variable renames.
2447 Do not init inferior_environ.
2448 * inferior.h (set_inferior_arg): Adjust prototype.
2449 (struct inferior): New fields args, argc, argv, terminal, environment.
2450 (inferior_environ): Remove declaration.
2451 * inferior.c (free_inferior): Free new fields.
2452 (add_inferior_silent): Initialize 'environment' field.
2453 * main.c (captured_main): Set arguments only after the initial
2454 inferior has been created. Set set_inferior_io_terminal,
2455 not tty_command.
2456 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
2457 inferior.
2458 (_initialize_mi_cmd_env): Adjust for disappearance of global
2459 inferior_environ.
2460 * solib.c (solib_find): Use environment of the current inferior.
2461
2462 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
2465 HAVE_PYTHON.
2466 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
2467
2468 2010-01-20 Joel Brobecker <brobecker@adacore.com>
2469
2470 Get rid of ada-lang.c:function_name_from_pc.
2471 * ada-lang.c: Add "stack.h" #include.
2472 (function_name_from_pc): Delete.
2473 (is_known_support_routine): Replace call to function_name_from_pc
2474 by call to find_frame_funname.
2475 (ada_unhandled_exception_name_addr_from_raise): Likewise.
2476
2477 2010-01-19 Tom Tromey <tromey@redhat.com>
2478
2479 PR c++/11026:
2480 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
2481 objfile obstack.
2482
2483 2010-01-19 Tom Tromey <tromey@redhat.com>
2484
2485 * top.c (stop_sig, float_handler, do_nothing): Remove.
2486
2487 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2488
2489 * breakpoint.c (watchpoint_check): Check the call
2490 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
2491 Extend the comment.
2492 * config/djgpp/fnchange.lst: Add translations for
2493 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
2494 watchpoint-cond-gone-stripped.c.
2495
2496 2010-01-19 Tom Tromey <tromey@redhat.com>
2497
2498 PR c++/8000:
2499 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
2500 into parent scope, and enumerator into grandparent scope.
2501
2502 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2503
2504 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
2505
2506 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2507
2508 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
2509 i[34567]86-*-solaris2.1[0-9]*.
2510 * configure.tgt: Likewise.
2511
2512 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2513
2514 * NEWS: Document the source command enhancement allowing it
2515 to load Python scripts. Document the "set/show script-extension"
2516 commands.
2517
2518 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2519
2520 Add -Wunused-function to compile flags.
2521 * configure.ac: Add -Wunused-function to build_warnings.
2522 * configure: Regenerate.
2523
2524 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2525
2526 "delete" ada-lex.c:input function, not used.
2527 * ada-lex.l: #define YY_NO_INPUT.
2528
2529 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2530
2531 Delete free_named_symtabs and associated cleanup.
2532 * symfile.h (free_named_symtabs): Delete declaration.
2533 * symfile.c: Remove some commented out code (clear_symtab_users_once).
2534 (cashier_psymtab): Comment function out.
2535 Delete declaration.
2536 (free_named_symtabs): Delete.
2537 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
2538 * dbxread.c (end_psymtab): Likewise.
2539 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
2540 * exec.c (exec_close_1): Ditto.
2541 * xcoffread.c (xcoff_end_psymtab): Likewise.
2542
2543 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2544
2545 * stack.c (print_block_frame_labels): Comment function out.
2546
2547 2010-01-19 Joel Brobecker <brobecker@adacore.com>
2548
2549 Delete unused or undefined functions.
2550 * breakpoint.c (ep_parse_optional_filename): Delete.
2551 * dcache.c (dcache_write_line): Remove declaration.
2552 * infrun.c (build_infrun): Remove declaration.
2553 * tracepoint.c (tracepoint_save_command): Remove declaration.
2554 * linux-nat.c (init_lwp_list): Delete. No longer used.
2555 * event-loop.c (check_async_signal_handlers): Delete declaration.
2556 * infrun.c (init_execution_control_state): Delete.
2557 (proceed): Update comment to avoid mentioning
2558 init_execution_control_state.
2559 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
2560 * ada-lang.c (ada_to_static_fixed_value): Delete.
2561 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
2562 * cp-namespace.c (cp_copy_usings): Delete.
2563 * xml-syscall.c (xml_number_of_syscalls): Delete.
2564 * progspace.c (find_program_space_by_num): Delete.
2565 * inflow.c (handle_sigio): Delete declaration.
2566 * hppa-tdep.c (hppa_alignof): Delete.
2567 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
2568 (mipsnbsd_core_osabi_sniffer): Delete.
2569
2570 2010-01-18 Tom Tromey <tromey@redhat.com>
2571
2572 PR c++/9680:
2573 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
2574 (CONST_CAST): New tokens.
2575 (exp): Add new productions.
2576 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
2577 reinterpret_cast.
2578 (is_cast_operator): New function.
2579 (yylex): Handle cast operators specially.
2580 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
2581 UNOP_REINTERPRET_CAST>: New cases.
2582 * expprint.c (print_subexp_standard): Likewise.
2583 (op_name_standard): Likewise.
2584 (dump_subexp_body_standard): Likewise.
2585 * parse.c (operator_length_standard): Likewise.
2586 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
2587 UNOP_REINTERPRET_CAST.
2588 * gdbtypes.c (class_types_same_p): New function.
2589 (is_ancestor): Use it.
2590 (is_public_ancestor): New function.
2591 (is_unique_ancestor_worker): Likewise.
2592 (is_unique_ancestor): Likewise.
2593 * gdbtypes.h (class_types_same_p, is_public_ancestor)
2594 (is_unique_ancestor): Declare.
2595 * valops.c (value_reinterpret_cast): New function.
2596 (dynamic_cast_check_1): Likewise.
2597 (dynamic_cast_check_2): Likewise.
2598 (value_dynamic_cast): Likewise.
2599 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
2600
2601 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2602
2603 Fix build failure when building without Python support.
2604 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
2605 is not defined.
2606
2607 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2608
2609 Use XVS field type instead of doing a parallel lookup.
2610 * ada-lang.c (ada_get_base_type): Follow the XVS field type
2611 if it is a reference type instead of doing a type lookup using
2612 the XVS field name.
2613
2614 2010-01-18 Joel Brobecker <brobecker@adacore.com>
2615
2616 Trust PAD types instead of using PAD___XVS.
2617 * ada-lang.c (trust_pad_over_xvs): New static variable.
2618 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
2619 parallel XVS type, follow the XVS type instead of the PAD type.
2620 (unwrap_value): Make sure that there is no parallel XVE type
2621 before returning the value as is.
2622 (set_ada_list, show_ada_list): New static variables.
2623 (set_ada_command, show_ada_command): New functions.
2624 (_initialize_ada_language): Add new "set/show ada" prefix commands.
2625 Add new "set/show ada trust-PAD-over-XVS" setting.
2626
2627 2010-01-18 Tom Tromey <tromey@redhat.com>
2628 Thiago Jung Bauermann <bauerman@br.ibm.com>
2629
2630 Allow "source" to load python scripts.
2631 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
2632 * python/python.c (source_python_script): New function.
2633 * python/python.h (source_python_script): Add declaration.
2634 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
2635 (script_ext_off, script_ext_soft, script_ext_strict)
2636 (script_ext_enums, script_ext_mode): New static constants.
2637 (show_script_ext_mode, find_and_open_script): New functions.
2638 (source_script): Enhance to handle Python scripts.
2639 (init_cli_cmds): Add set/show script-extension commands.
2640
2641 2010-01-16 Stan Shebs <stan@codesourcery.com>
2642
2643 * tracepoint.h (struct trace_status): Use unsigned long long
2644 instead of size_t.
2645 * tracepoint.c (trace_status_command): Fix printf directive.
2646 (trace_save_command): Check fwrite returns, fix printf directive.
2647 (trace_filename): New global.
2648 (tfile_open): Set it, check read returns.
2649 (tfile_close): Free trace_filename.
2650 (tfile_get_traceframe_address): Check read returns.
2651 (tfile_trace_find): Ditto.
2652 (tfile_fetch_registers): Ditto.
2653 (tfile_xfer_partial): Ditto.
2654 (tfile_get_trace_state_variable_value): Ditto.
2655
2656 2010-01-15 Stan Shebs <stan@codesourcery.com>
2657
2658 Add trace file support.
2659 * tracepoint.h (enum trace_stop_reason): New enum.
2660 (struct trace_status): New struct.
2661 (parse_trace_status): Declare.
2662 (struct uploaded_tp): Move here from remote.c,
2663 add fields for actions.
2664 (struct uploaded_tsv): New struct.
2665 * tracepoint.c (tfile_ops): New target vector.
2666 (trace_fd): New global.
2667 (tfile_open): New function.
2668 (tfile_close): New function.
2669 (tfile_files_info): New function.
2670 (tfile_get_trace_status): New function.
2671 (tfile_get_traceframe_address): New function.
2672 (tfile_trace_find): New function.
2673 (tfile_fetch_registers): New function.
2674 (tfile_xfer_partial): New function.
2675 (tfile_get_trace_state_variable_value): New function.
2676 (init_tfile_ops): New function.
2677 (_initialize_tracepoint): Call it, add tfile target.
2678 (trace_status): New global.
2679 (current_trace_status): New function.
2680 (trace_running_p): Remove, change all users to get from
2681 current_trace_status()->running.
2682 (get_trace_status): Remove.
2683 (trace_status_command): Call target_get_trace_status directly,
2684 report more detail including tracing stop reasons.
2685 (trace_find_command): Always allow tfind on a file.
2686 (trace_find_pc_command): Ditto.
2687 (trace_find_tracepoint_command): Ditto.
2688 (trace_find_line_command): Ditto.
2689 (trace_find_range_command): Ditto.
2690 (trace_find_outside_command): Ditto.
2691 (trace_frames_offset, cur_offset): Declare as off_t.
2692 (trace_regblock_size): Rename from reg_size, update users.
2693 (parse_trace_status): New function.
2694 (tfile_interp_line): New function.
2695 (disconnect_or_stop_tracing): Ensure current trace
2696 status before asking what to do.
2697 (stop_reason_names): New global.
2698 (trace_save_command): New command.
2699 (get_uploaded_tp): Move here from remote.c.
2700 (find_matching_tracepoint): Ditto.
2701 (merge_uploaded_tracepoints): New function.
2702 (parse_trace_status): Use stop_reason_names.
2703 (_initialize_tracepoint): Define tsave command.
2704 * target.h (target_ops): New fields to_save_trace_data,
2705 to_upload_tracepoints, to_upload_trace_state_variables,
2706 to_get_raw_trace_data, change to_get_trace_status
2707 to take a pointer to a status struct.
2708 (target_save_trace_data): New macro.
2709 (target_upload_tracepoints): New macro.
2710 (target_upload_trace_state_variables): New macro.
2711 (target_get_raw_trace_data): New macro.
2712 * target.c (update_current_target): Add new methods, change
2713 signature of to_get_trace_status.
2714 * remote.c (hex2bin): Make globally visible.
2715 (bin2hex): Ditto.
2716 (remote_download_trace_state_variable): Download name also.
2717 (remote_get_trace_status): Update parameter, use
2718 parse_trace_status.
2719 (remote_save_trace_data): New function.
2720 (remote_upload_tracepoints): New function.
2721 (remote_upload_trace_state_variables): New function.
2722 (remote_get_raw_trace_data): New function.
2723 (remote_start_remote): Use them.
2724 (_initialize_remote_ops): Add operations.
2725 * ax-gdb.c: Include breakpoint.h.
2726 * breakpoint.c (create_tracepoint_from_upload): Use
2727 break_command_really, return tracepoint, warn about unimplemented
2728 parts.
2729 * NEWS: Mention trace file addition.
2730
2731 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2732
2733 Fix compilation warning on gcc-3.4.
2734 * exec.c (print_section_info): Move the `displacement' variable
2735 initialization to its declaration.
2736
2737 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2738
2739 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
2740 comparison.
2741
2742 2010-01-15 Eric Botcazou <botcazou@adacore.com>
2743
2744 "info tasks" broken by typedefs in ATCB type definitions.
2745 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
2746 ada_check_typedef before retrieving the length of the type for
2747 regular fields.
2748
2749 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2750
2751 Do not use name-based lookup for unconstrained packed arrays.
2752 * ada-lang.c (find_parallel_type_by_descriptive_type):
2753 Limit the fallback to name-based lookups to the case where
2754 the type is a constrained packed array.
2755
2756 2010-01-15 Joel Brobecker <brobecker@adacore.com>
2757
2758 Enhance gdb-gdb.py to handle main_type.type_specific.
2759 * gdb-gdb.py: Print the type-specific part of struct main_type.
2760
2761 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2762
2763 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
2764 * configure: Regenerate.
2765 * config.in: Regenerate.
2766 * utils.c: Include sys/resource.h.
2767 (dump_core, can_dump_core): New.
2768 (internal_vproblem): Update the comment. Check can_dump_core while
2769 setting dump_core_p. Replace two abort calls by dump_core calls.
2770
2771 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 Eli Zaretskii <eliz@gnu.org>
2773
2774 * NEWS: Document the PIE support.
2775
2776 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2777
2778 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
2779 (check_is_pie_binary, _initialize_linux_tdep): Remove.
2780
2781 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
2784 Replace exec_entry_point call by bfd_get_start_address.
2785
2786 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2787
2788 Support Valgrind attachments broken by the PIE support.
2789 * auxv.c: Include gdbcore.h.
2790 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
2791 parameters ops, object and annex. Remove their assertions.
2792 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
2793 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
2794 (memory_xfer_auxv): ... here.
2795 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
2796 memory_xfer_auxv.
2797 * procfs.c (procfs_xfer_partial): Likewise.
2798 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
2799 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
2800 (svr4_solib_create_inferior_hook): Conditionalize the
2801 svr4_relocate_main_executable call.
2802
2803 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2804
2805 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
2806 target_section. Find SECT in current_target_sections, gdb_assert it.
2807 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
2808 New variable abfd.
2809 * symtab.c (lookup_objfile_from_block): Return the binary file instead
2810 of separate debug info file.
2811
2812 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2813
2814 Support PIEs with no symfile_objfile.
2815 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
2816 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
2817
2818 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
2821 code part to ...
2822 (svr4_static_exec_displacement): ... a new function.
2823 (svr4_exec_displacement): New function.
2824 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
2825 new_offsets using alloca now. Remove variable old_chain and changed.
2826 Call objfile_relocate unconditionally now.
2827
2828 2010-01-14 Doug Evans <dje@google.com>
2829
2830 * gdbtypes.c (arch_flags_type): Fix comment.
2831 * gdbtypes.h (arch_composite_type): Fix comment.
2832
2833 2009-01-14 Tristan Gingold <gingold@adacore.com>
2834
2835 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
2836 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
2837 to symbol_file_add_from_bfd. Add OSO as separate objfile.
2838 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
2839 macho_add_oso_symfile.
2840 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
2841
2842 2010-01-14 Joel Brobecker <brobecker@adacore.com>
2843
2844 Tru64: Dead threads are never deleted.
2845 * dec-thread.c (dec_thread_ptid_is_alive): New function.
2846 (dec_thread_count_gdb_threads): Fix counter increment.
2847 (dec_thread_add_gdb_thread): Fix *listp increment.
2848 (resync_thread_list): Fix bug in deletion of dead threads that
2849 caused all threads to be deleted, instead of just the dead ones.
2850
2851 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
2852
2853 PR python/10705
2854
2855 * python/python-internal.h: Add lazy_string_object_type
2856 definition.
2857 (create_lazy_string_object, gdbpy_initialize_lazy_string)
2858 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
2859 * python/py-value.c (valpy_lazy_string): New function.
2860 (convert_value_from_python): Add lazy string conversion.
2861 * python/py-prettyprint.c (pretty_print_one_value): Check if
2862 return is also a lazy string.
2863 (print_string_repr): Add lazy string printing branch.
2864 (print_children): Likewise.
2865 * python/py-lazy-string.c: New file. Implement lazy strings.
2866 * python/python.c (_initialize_python): Call
2867 gdbpy_initialize_lazy_string.
2868 * varobj.c (value_get_print_value): Add lazy string printing
2869 branch. Account for encoding.
2870 * c-lang.c (c_printstr): Account for new encoding argument. If
2871 encoding is NULL, find encoding suited for type, otherwise use
2872 user encoding.
2873 * language.h (language_defn): Add encoding argument.
2874 (LA_PRINT_STRING): Likewise.
2875 * language.c (unk_lang_printstr): Update to reflect new encoding
2876 argument to language_defn.
2877 * ada-lang.h (ada_printstr): Likewise.
2878 * c-lang.h (c_printstr): Likewise.
2879 * p-lang.h (pascal_printstr);
2880 * f-lang.c (f_printstr): Likewise.
2881 * m2-lang.c (m2_printstr): Likewise.
2882 * objc-lang.c (objc_printstr): Likewise.
2883 * p-lang.c (pascal_printstr): Likewise.
2884 * scm-lang.c (scm_printstr): Likewise.
2885 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
2886 encoding argument.
2887 * ada-valprint.c (ada_printstr): Likewise.
2888 * f-valprint.c (f_val_print): Likewise
2889 * m2-valprint.c (m2_val_print): Likewise.
2890 * p-valprint.c (pascal_val_print): Likewise.
2891 * expprint.c (print_subexp_standard): Likewise.
2892 * valprint.c (val_print_string): Likewise.
2893 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
2894 (SUBDIR_PYTHON_SRCS): Likewise.
2895 (py-lazy-string.o): New rule.
2896
2897 2010-01-13 Doug Evans <dje@google.com>
2898
2899 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
2900 uninitialized" warning from gcc on local `tree'.
2901
2902 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
2903
2904 Implement core awareness.
2905
2906 * bcache.c (compare_ints): Remove
2907 (print_percentage): Use compare_positive_ints.
2908 * defs.h (compare_positive_ints): Declare.
2909 * linux-nat.h (struct lin_lwp): New field core.
2910 (linux_nat_core_of_thread_1): Declare.
2911 * linux-nat.c (add_lwp): Init the 'core' field.
2912 (linux_nat_wait_1): Record the core.
2913 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
2914 (linux_nat_add_target): Register the above.
2915 * linux-thread-db.c (update_thread_core): New.
2916 (thread_db_find_new_threads): Update core information for
2917 every thread.
2918 * remote.c (struct private_thread_info): New.
2919 (free_private_thread_info, demand_private_info): New.
2920 (PACKET_qXfer_threads, use_osdata_threads): New.
2921 (struct thread_item, threads_parsing_context
2922 (start_thread, end_thread, thread_attributes)
2923 (thread_children, threads_children, threads_elements): New.
2924 (remote_threads_info): Try qXfer:threads before anything
2925 else.
2926 (remote_protocol_packets): Register qXfer:threads.
2927 (remote_open_1): Init use_osdata_threads.
2928 (struct stop_reply): New field 'core'.
2929 (remote_parse_stop_reply): Parse core number.
2930 (process_stop_reply): Record core number.
2931 (remote_xfer_partial): Handle qXfer:threads.
2932 (remote_core_of_thread): New.
2933 (init_remote_ops): Register remote_core_of_thread.
2934 (_initialize_remote): Register qXfer:read.
2935 * target.c (target_core_of_thread): New
2936 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
2937 (struct target_ops): New field to_core_of_threads.
2938 (target_core_of_thread): Declare.
2939 * gdbthread.h (struct thread_info): New field private_dtor.
2940 * thread.c (print_thread_info): Report the core.
2941 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
2942 * utils.c (compare_positive_ints): New.
2943 * features/threads.dtd: New.
2944 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
2945 * mi/mi-main.c (struct collect_cores_data, collect_cores)
2946 (do_nothing, free_vector_of_osdata_items)
2947 (splay_tree_int_comparator, free_splay_tree): New.
2948 (print_one_inferior_data): Implemented printing of selected
2949 inferiors. Collect and print cores.
2950 (output_cores): New.
2951 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
2952 thread groups together with --available.
2953
2954 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2955
2956 * configure: Regenerate (for _STRUCTURED_PROC).
2957
2958 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2959
2960 Delete dead function.
2961 * ada-lang.c (extract_string): Delete. No longer used.
2962
2963 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2964
2965 Fix -Wunused warning in dec-thread.c.
2966 * dec-thread.c (dec_thread_count_gdb_threads)
2967 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
2968
2969 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2970
2971 * ada-valprint.c (ada_print_floating): Remove trailing space.
2972
2973 2010-01-12 Joel Brobecker <brobecker@adacore.com>
2974
2975 Add support for DW_AT_GNAT_descriptive_type.
2976 * gdbtypes.h (enum type_specific_kind): New enum.
2977 (struct main_type) [type_specific_field]: New component.
2978 [type_specific]: Add new component "gnat_stuff".
2979 (struct gnat_aux_type): New type.
2980 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
2981 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
2982 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
2983 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
2984 (TYPE_SPECIFIC_FIELD): New macros.
2985 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
2986 type does not hold any cplus-specific data.
2987 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
2988 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
2989 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
2990 cplus-specific data.
2991 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
2992 Set new component TYPE_SPECIFIC_FIELD (type).
2993 (gnat_aux_default): New constant.
2994 (allocate_gnat_aux_type): New function.
2995 (init_type): Add initialization the type-specific stuff for
2996 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
2997 (print_gnat_stuff): New function.
2998 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
2999 specific data. Adjust code that prints the contents of the
3000 type-specific union using the TYPE_SPECIFIC_FIELD value.
3001 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
3002 the type cplus stuff for Ada types.
3003 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
3004 Error out if these routines are called with an Ada type.
3005 (read_structure_type, read_array_type, read_subrange_type):
3006 Add call to set_descriptive_type.
3007 (set_die_type): Initialize the gnat-specific data if necessary.
3008 (need_gnat_info, die_descriptive_type, set_descriptive_type):
3009 New functions.
3010 * ada-lang.c (decode_constrained_packed_array_type): Use
3011 decode_constrained_packed_array_type instead of doing a standard
3012 lookup to locate a parallel type.
3013 (find_parallel_type_by_descriptive_type): New function.
3014 (ada_find_parallel_type_with_name): New function.
3015 (ada_find_parallel_type): Reimplement using
3016 ada_find_parallel_type_with_name.
3017 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
3018 to check if type has a cplus stuff.
3019 * linespec.c (total_number_of_methods): Likewise.
3020 * mdebugread.c (new_type): Likewise.
3021
3022 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3023
3024 * NEWS: Document the 0b binary number prefix parsing.
3025
3026 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3027
3028 * objfiles.c (objfile_relocate1): Change the return type to int.
3029 Describe the new return value. Return non-zero if data changed.
3030 (objfile_relocate): New variable changed. Set it. Call
3031 breakpoint_re_set depending on CHANGED.
3032
3033 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3034
3035 Implement binary numbers parsing.
3036 * c-exp.y (parse_number): New case 'b' and 'B'.
3037
3038 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3039 Tristan Gingold <gingold@adacore.com>
3040
3041 * solib.c (info_sharedlibrary_command): Replace
3042 objfile_has_partial_symbols and objfile_has_full_symbols calls by
3043 objfile_has_symbols.
3044
3045 2010-01-10 Joel Brobecker <brobecker@adacore.com>
3046
3047 * NEWS: Document the improvements made to the mips-irix port.
3048
3049 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3050
3051 Fix the documentation of valprint.c:value_print.
3052 * valprint.c (value_print): Update the function description to
3053 mention that the syntax of the output follows the current_language,
3054 not necessarily C.
3055
3056 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 Fix displacement of separate debug info files.
3059 * objfiles.c (objfile_relocate): Rename to ...
3060 (objfile_relocate1): ... here and make it static. Extend the comment.
3061 (objfile_relocate): New function.
3062 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
3063 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
3064 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
3065 allocated using alloca.
3066 * symfile.c (copy_section_addr_info): Remove.
3067 (build_section_addr_info_from_objfile): Make it global. New variables
3068 addr_bit and mask, use them.
3069 * symfile.h (build_section_addr_info_from_objfile): New prototype.
3070 (copy_section_addr_info): Remove.
3071
3072 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3073
3074 Signal unwinder for mips-irix N32.
3075 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
3076 tramp-frame.h.
3077 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
3078 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
3079 (SIGCONTEXT_LO_OFF): New macros.
3080 (mips_irix_n32_tramp_frame_init): New function.
3081 (mips_irix_n32_tramp_frame): New static constant.
3082 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
3083
3084 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3085
3086 Breakpoint in shared library does not work on mips-irix.
3087 * procfs.c: #include "observer.h".
3088 (procfs_inferior_created): New function, moving here the code
3089 which unsets the syssgi syscall-exit notifications.
3090 (procfs_create_inferior): Remove the code which unsets the syssgi
3091 syscall-exit notifications. It is too early to do this here.
3092 (_initialize_procfs): Attach the procfs_inferior_created observer.
3093
3094 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3095
3096 Wrong return convention for arrays (mips-irix).
3097 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
3098 128 bits or smaller are returned the same way as structs
3099 and unions of the the same size.
3100
3101 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3102
3103 Cannot set the PC on mips-irix.
3104 * irix5-nat.c (fill_gregset): Check regno against the raw PC
3105 register number, no the cooked one.
3106
3107 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3108
3109 Error while loading core file on mips-irix.
3110 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
3111 if debugging from a core file.
3112
3113 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3114
3115 GDB hangs when attaching to process on mips-irix.
3116 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
3117 attaching to a process.
3118
3119 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3120
3121 Use the correct breakpoint instruction on mips-irix.
3122 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
3123 containing the correct breakpoint instruction to use on mips-irix.
3124 Use it when the osabi is GDB_OSABI_IRIX.
3125
3126 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3127
3128 -Wunused warning in procfs.c (mips-irix only).
3129 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
3130 throughout instead of using praddset and prdelset respectively.
3131
3132 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3133
3134 GDB crash while stepping into function.
3135 * infrun.c (handle_inferior_event): Refetch the current frame
3136 after handling what.main_action, in case that pointer became
3137 dangling.
3138
3139 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3140
3141 Fix build failure of solaris-hosted cross debuggers.
3142 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
3143
3144 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
3145
3146 Fix build failure on sparc-solaris.
3147 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
3148
3149 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3150
3151 Move some symfile code into subroutines.
3152 * symfile.h (relative_addr_info_to_section_offsets)
3153 (addr_info_make_relative): New prototypes.
3154 * symfile.c (default_symfile_offsets): Move a part to ...
3155 (relative_addr_info_to_section_offsets): ... this new function.
3156 (default_symfile_offsets): Call it.
3157 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
3158 this part to ...
3159 (addr_info_make_relative): ... this new function.
3160
3161 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3162
3163 Add from_tty to solib_create_inferior_hook.
3164 * infcmd.c (post_create_inferior): Move solib_add after
3165 solib_create_inferior_hook. Pass from_tty to
3166 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
3167 0 from_tty and comment why.
3168 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
3169 * linux-nat.c (linux_child_follow_fork): Likewise.
3170 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
3171 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
3172 from_tty.
3173 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
3174 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3175 * solib-null.c (null_solib_create_inferior_hook): Likewise.
3176 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3177 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
3178 * solib-som.c (som_solib_create_inferior_hook): Likewise.
3179 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
3180 Pass it to svr4_so_ops.solib_create_inferior_hook.
3181 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
3182 from_tty.
3183 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
3184 solib_add.
3185 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
3186 enable_break.
3187 * solib-target.c (solib_target_solib_create_inferior_hook): New
3188 parameter from_tty.
3189 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
3190 it to ops->solib_create_inferior_hook.
3191 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
3192 Move solib_add after solib_create_inferior_hook, call it now with
3193 from_tty as 0. New comment there.
3194 * solib.h (solib_create_inferior_hook): New parameter from_tty.
3195 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
3196 Likewise.
3197
3198 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
3199
3200 Fix multiexec race.
3201 * infrun.c (handle_inferior_event): Use get_thread_regcache
3202 with events ptid, not get_current_regcache.
3203
3204 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3205
3206 GDB crash with empty executable name (MinGW).
3207 * source.c (openp): Add assert that parameter string is not NULL.
3208 if parameter string is an empty string, then return with a failure
3209 immediately.
3210
3211 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3212
3213 Get rid of support for VAX Floats.
3214 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3215 (ada_vax_float_print_function): Delete.
3216 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3217 (ada_vax_float_print_function): Delete.
3218 * ada-typeprint.c (print_vax_floating_point_type): Delete.
3219 (ada_print_type): Remove support for VAX floats.
3220 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
3221
3222 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3223
3224 * stabsread.c (read_args): Handle zero arguments.
3225
3226 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3227
3228 Cannot find in-tree libiconv.a after reconfigure.
3229 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
3230 that we can use, then cache the path to this archive.
3231 * configure: Regenerate.
3232
3233 2010-01-07 Stan Shebs <stan@codesourcery.com>
3234
3235 Make tracepoint operations go through target vector.
3236 * target.h (enum trace_find_type): New enum.
3237 (struct target_ops): New fields to_trace_init,
3238 to_download_tracepoint, to_download_trace_state_variable,
3239 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
3240 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
3241 to_set_disconnected_tracing.
3242 (target_trace_init): New macro.
3243 (target_download_tracepoint): New macro.
3244 (target_download_trace_state_variable): New macro.
3245 (target_trace_start): New macro.
3246 (target_trace_set_readonly_regions): New macro.
3247 (target_get_trace_status): New macro.
3248 (target_trace_stop): New macro.
3249 (target_trace_find): New macro.
3250 (target_get_trace_state_variable_value): New macro.
3251 (target_set_disconnected_tracing): New macro.
3252 * target.c (update_current_target): Inherit and set defaults for
3253 tracepoint operations.
3254 * tracepoint.c (default_collect): Make globally visible.
3255 (target_is_remote): Remove, along with all calls.
3256 (tvariables_info): Call target_get_trace_state_variable_value.
3257 (remote_set_transparent_ranges): Remove.
3258 (trace_start_command): Call target_trace_init,
3259 target_download_tracepoint, etc.
3260 (download_tracepoint): Remove.
3261 (trace_stop_command): Simplify.
3262 (stop_tracing): Call target_trace_stop.
3263 (get_trace_status): Call target_get_trace_status.
3264 (trace_status_command): Add case for targets that cannot trace.
3265 (finish_tfind_command): Change to take numerical arguments, call
3266 target_trace_find.
3267 (trace_find_command): Update call to finish_tfind_command.
3268 (trace_find_pc_command): Ditto.
3269 (trace_find_tracepoint_command): Ditto.
3270 (trace_find_line_command): Ditto.
3271 (trace_find_range_command): Ditto.
3272 (trace_find_outside_command): Ditto.
3273 (set_disconnected_tracing_value): Call
3274 target_set_disconnected_tracing.
3275 * remote.c: Add protocol encoding bits from tracepoint.c.
3276 (trace_error): Move from tracepoint.c.
3277 (remote_get_noisy_reply): Ditto.
3278 (free_actions_list_cleanup_wrapper): Ditto.
3279 (free_actions_list): Ditto.
3280 (remote_trace_init): New function.
3281 (remote_download_tracepoint): New function.
3282 (remote_download_trace_state_variable): New function.
3283 (remote_trace_set_readonly_regions): New function.
3284 (remote_trace_start): New function.
3285 (remote_get_trace_status): New function.
3286 (remote_trace_stop): New function.
3287 (remote_trace_find): New function.
3288 (remote_download_trace_state_variable): New function.
3289 (remote_set_disconnected_tracing): New function.
3290 (init_remote_ops): Add tracepoint operations.
3291
3292 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
3293
3294 2010-01-07 Tristan Gingold <gingold@adacore.com>
3295
3296 * symfile.c (build_section_addr_info_from_objfile): New function.
3297 (symbol_file_add_separate): Don't use offsets from objfile but
3298 built an addr info.
3299
3300 2010-01-06 Stan Shebs <stan@codesourcery.com>
3301
3302 Support disconnected tracing.
3303 * infcmd.c (detach_command): Ask whether to stop tracing.
3304 * cli/cli-cmds.c (quit_command): Ditto.
3305 * breakpoint.h (struct breakpoint): New field number_on_target.
3306 * breakpoint.c (create_tracepoint_from_upload): New function.
3307 (get_tracepoint_by_number_on_target): New function.
3308 * remote.c (struct remote): New field disconnected_tracing.
3309 (remote_disconnected_tracing_feature): New function.
3310 (remote_protocol_features): Add DisconnectedTracing.
3311 (struct uploaded_tp): New struct.
3312 (uploaded_tps): New global.
3313 (get_uploaded_tp): New function.
3314 (find_matching_tracepoint): New function.
3315 (remote_get_tracing_state): New function.
3316 (remote_start_remote): Call it.
3317 * tracepoint.c (disconnected_tracing): New global.
3318 (trace_start_command): Initialize number_on_target.
3319 (stop_tracing): New function, split out from...
3320 (trace_stop_command): Call stop_tracing.
3321 (get_trace_status): New function, split out from...
3322 (trace_status_command): Call get_trace_status, add info on
3323 disconnection behavior.
3324 (disconnect_or_stop_tracing): New function.
3325 (finish_tfind_command): Translate from number on target.
3326 (trace_find_tracepoint_command): Translate to number on target.
3327 (send_disconnected_tracing_value): New function.
3328 (set_disconnected_tracing): New function.
3329 (_initialize_tracepoint): Add disconnected-tracing variable.
3330 * NEWS: Mention disconnected tracing.
3331
3332 2010-01-06 Tristan Gingold <gingold@adacore.com>
3333
3334 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
3335 parameter to main_objfile. Iterate on all separate debug objfiles.
3336 * symfile.h (symbol_file_add_separate)
3337 (find_separate_debug_file_by_debuglink): Remove parameter names.
3338 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
3339 (reread_symbols): Use free_objfile_separate_debug.
3340 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
3341 Adjust comment.
3342 (objfile_separate_debug_iterate, add_separate_debug_objfile)
3343 (free_objfile_separate_debug): New prototypes.
3344 * objfiles.c (objfile_separate_debug_iterate): New function.
3345 (add_separate_debug_objfile, free_objfile_separate_debug): New
3346 functions.
3347 (free_objfile): Use free_objfile_separate_debug. Adjust for
3348 multiple separate debug objfile.
3349 (objfile_has_symbols): Adjust comment. Iterate on all separate
3350 debug objfiles.
3351 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
3352 debug objfile.
3353 (lookup_minimal_symbol_text): Ditto.
3354 (lookup_minimal_symbol_by_pc_name): Ditto.
3355 (lookup_minimal_symbol_solib_trampoline): Ditto.
3356 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
3357 debug objfiles.
3358
3359 2010-01-05 Stan Shebs <stan@codesourcery.com>
3360
3361 Add fast tracepoints.
3362 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
3363 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
3364 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
3365 * breakpoint.c (tracepoint_type): New function.
3366 (ALL_TRACEPOINTS): Use it.
3367 (should_be_inserted): Ditto.
3368 (bpstat_check_location): Ditto.
3369 (print_one_breakpoint_location): Ditto.
3370 (user_settable_breakpoint): Ditto.
3371 (set_breakpoint_location_function): Ditto.
3372 (disable_breakpoints_in_shlibs): Ditto.
3373 (delete_trace_command): Ditto.
3374 (print_it_typical): Add bp_fast_tracepoint case.
3375 (bpstat_what): Ditto.
3376 (print_one_breakpoint_location): Ditto.
3377 (allocate_bp_location): Ditto.
3378 (mention): Ditto.
3379 (breakpoint_re_set_one): Ditto.
3380 (disable_command): Ditto.
3381 (enable_command): Ditto.
3382 (check_fast_tracepoint_sals): New function.
3383 (break_command_really): Call it.
3384 (ftrace_command): New function.
3385 (_initialize_breakpoint): Add ftrace command.
3386 * gdbarch.sh (fast_tracepoint_valid_at): New.
3387 * gdbarch.h, gdbarch.c: Regenerate.
3388 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
3389 (i386_gdbarch_init): Use it.
3390 * remote.c (struct remote_state): New field fast_tracepoints.
3391 (PACKET_FastTracepoints): New packet config type.
3392 (remote_fast_tracepoint_feature): New function.
3393 (remote_protocol_features): Add FastTracepoints.
3394 (remote_supports_fast_tracepoints): New function.
3395 (_initialize_remote): Add FastTracepoints.
3396 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
3397 * NEWS: Mention fast tracepoints.
3398
3399 2010-01-06 Joel Brobecker <brobecker@adacore.com>
3400
3401 * gdb-gdb.py: New file.
3402
3403 2010-01-05 Michael Snyder <msnyder@vmware.com>
3404
3405 * infrun.c (handle_inferior_event): Fix typo in comment.
3406
3407 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
3410
3411 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3412
3413 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
3414 and s390x-linux64.
3415 (s390-linux32-expedite): Define.
3416 (s390-linux64-expedite): Define.
3417 (s390x-linux64-expedite): Define.
3418 * features/s390-acr.xml: New file.
3419 * features/s390-fpr.xml: New file.
3420 * features/s390-core32.xml: New file.
3421 * features/s390-core64.xml: New file.
3422 * features/s390x-core64.xml: New file.
3423 * features/s390-linux32.xml: New file.
3424 * features/s390-linux64.xml: New file.
3425 * features/s390x-linux64.xml: New file.
3426 * features/s390-linux32.c: New generated file.
3427 * features/s390-linux64.c: New generated file.
3428 * features/s390x-linux64.c: New generated file.
3429
3430 * regformats/s390-linux32.dat: New generated file.
3431 * regformats/s390-linux64.dat: New generated file.
3432 * regformats/s390x-linux64.dat: New generated file.
3433 * regformats/reg-s390.dat: Remove.
3434 * regformats/reg-s390x.dat: Remove.
3435
3436 * s390-nat.c: Include "auxv.h" and <elf.h>.
3437 (HWCAP_S390_HIGH_GPRS): Define if undefined.
3438 (s390_target_wordsize): New function.
3439 (s390_auxv_parse): Likewise.
3440 (s390_get_hwcap): Likewise.
3441 (s390_read_description): Likewise.
3442 (_initialize_s390_nat): Install s390_auxv_parse and
3443 s390_read_description.
3444
3445 * s390-tdep.c: Include "features/s390-linux32.c",
3446 "features/s390-linux64.c", and "features/s390x-linux64.c".
3447 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
3448 (s390_register_call_saved): New function.
3449 (s390_register_name): Remove.
3450 (s390_register_type): Remove.
3451 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
3452 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
3453 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
3454 (s390_pseudo_register_name): New function.
3455 (s390_pseudo_register_type): New function.
3456 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
3457 Handle full GPR pesudos and varying pseudo register numbers.
3458 (s390_pseudo_register_write): Likewise
3459 (s390x_pseudo_register_read): Remove.
3460 (s390x_pseudo_register_write): Likewise.
3461 (s390_register_group): Remove.
3462 (s390_pseudo_register_group): New function.
3463 (s390_regmap_gregset): Add GPR upper halves.
3464 (s390x_regmap_gregset): Likewise.
3465 (s390_regmap_fpregset): Likewise.
3466 (s390_regmap_upper): New global variable.
3467 (s390_upper_regset): New global variable.
3468 (s390_upper_regset_sections): New global variable.
3469 (s390_regset_from_core_section): Handle GPR upper halves.
3470 (s390_core_read_description): New function.
3471 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
3472 register information. Handle varying pseudo register numbers.
3473 (s390_backchain_frame_unwind_cache): Likewise.
3474 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
3475 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
3476 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
3477 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
3478 Handle varying pseudo register numbers.
3479 (s390_unwind_pc): Handle varying pseudo register numbers.
3480 (s390_dwarf2_prev_register): New function.
3481 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
3482 register information. Handle varying pseudo register numbers.
3483 Install s390_dwarf2_prev_register to unwind full GPRs.
3484 (s390_gdbarch_init): Handle target descriptions. Assign varying
3485 pseudo register numbers. Install s390_adjust_frame_regnum.
3486 (_initialize_s390_tdep): Initialize target descriptions.
3487
3488 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
3489 (S390_NUM_REGS): Redefine to include upper half registers.
3490 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
3491 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
3492 (tdesc_s390_linux32): Add declaration.
3493 (tdesc_s390_linux64): Likewise.
3494 (tdesc_s390x_linux64): Likewise.
3495
3496 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3497
3498 * regset.h (struct core_regset_section): Add HUMAN_NAME.
3499 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
3500 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3501 (ppc_linux_vmx_regset_sections): Likewise.
3502 (ppc_linux_fp_regset_sections): Likewise.
3503
3504 * corelow.c (get_core_register_section): Constify arguments.
3505 (get_core_registers): Use gdbarch_core_regset_sections instead
3506 of hard-coded platform-specific register section names.
3507
3508 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3509
3510 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
3511 a register, assume the least-significant part is used.
3512 (write_pieced_value): Likewise.
3513
3514 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3515
3516 * printcmd.c: Include "arch-utils.h".
3517 (do_one_display): Re-parse expression if current architecture changed.
3518
3519 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3520 Joel Brobecker <brobecker@adacore.com>
3521
3522 * gdbtypes.c (check_typedef): New comment on type length.
3523 * value.c (allocate_value_lazy): Remove the unused atype variable. New
3524 comment on type length.
3525 (value_primitive_field): Keep the original TYPE value, new comment.
3526
3527 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3528
3529 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
3530 p_start. Change != comparisons to > and < comparisons.
3531
3532 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3533
3534 * cli/cli-script.c (process_next_line): Check P2 overrun.
3535
3536 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3537
3538 Update the copyright hearder to add year 2010 for most GDB files.
3539
3540 2009-01-01 Joel Brobecker <brobecker@adacore.com>
3541
3542 Fix build failure in inf-ptrace.c.
3543 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
3544
3545 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3546
3547 * top.c (print_gdb_version): Update copyright year.
3548
3549 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3550
3551 Fix break *FUN'address thread NUM.
3552 * ada-lex.l (task): Expand rule to also match the thread keyword.
3553
3554 2010-01-01 Joel Brobecker <brobecker@adacore.com>
3555
3556 Fix break *FUN'address task NUM.
3557 * ada-lex.l (task): New rule.
3558 * ada-lang.c (valid_task_id): Make sure the Ada task list has
3559 been built before using it.
3560
3561 For older changes see ChangeLog-2009.
3562 \f
3563 Local Variables:
3564 mode: change-log
3565 left-margin: 8
3566 fill-column: 74
3567 version-control: never
3568 coding: utf-8
3569 End:
This page took 0.145677 seconds and 3 git commands to generate.