* remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
2
3 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
4 cygwin_conv_path API rather than the deprecated
5 cygwin_conv_to_full_posix_path.
6 * windows-nat.c:
7 (GetModuleFileNameExA): Undefine for Cygwin.
8 (GetModuleFileNameExW): Define for Cygwin.
9 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
10 Call GetModuleFileNameExW and convert path to POSIX using
11 cygwin_conv_path.
12 (windows_make_so): Always define p. Drop unused variable m.
13 Don't use Win32 functions to check file existance, rather use
14 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
15 Use canonicalize_file_name to get full path.
16 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
17 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
18 use correct target buffer size in call to WideCharToMultiByte.
19 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
20 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
21 (windows_create_inferior): Convert all paths and arguments to wchar_t
22 and use CreateProcessW on Cygwin.
23 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
24 (bad_GetModuleFileNameExA): Undefine for Cygwin.
25 (bad_GetModuleFileNameExW): Define for Cygwin.
26 (_initialize_loadable): Load GetModuleFileNameExW into
27 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
28
29 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
30
31 PR python/11036
32 * python/py-frame.c (frapy_read_var): Add block argument and logic
33 to cope with user provided blocks.
34
35 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
36
37 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
38 New comment.
39
40 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
41
42 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
43 (COMMON_OBS): ... to here since it's used unconditionally.
44 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
45 (SFILES): To here.
46
47 2010-02-26 David Daney <ddaney@caviumnetworks.com>
48
49 * mips-linux-tdep.c: Update struct sigframe comments.
50 (SIGFRAME_CODE_OFFSET): Delete macro.
51 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
52 this_frame's sp.
53 (mips_linux_n32n64_sigframe_init): Same.
54
55 2010-02-26 Kevin Buettner <kevinb@redhat.com>
56
57 * remote-mips.c (mips_load): Don't use pseudo-register when
58 invalidating regcache.
59
60 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
61
62 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
63
64 2010-02-26 Pedro Alves <pedro@codesourcery.com>
65
66 * NEWS: Add "New targets" section, and mention ARM Symbian
67 support.
68
69 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
70
71 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
72 add ADDR_SIZE member.
73 (allocate_piece_closure): Update.
74 (copy_pieced_value_closure): Likewise.
75 (dwarf2_evaluate_loc_desc): Likewise.
76 (read_pieced_value): Use DWARF address size instead of
77 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
78
79 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
80 Tom Tromey <tromey@redhat.com>
81
82 * python/py-type.c (typy_lookup_typename): Add in block argument.
83 If provided restrict lookup to specified blocks.
84 (gdbpy_lookup_type): Likewise.
85 (typy_lookup_type): Likewise.
86
87 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
88
89 Symbian config
90
91 gdb/
92 * arm-symbian-tdep.c: New.
93 * configure.tgt (arm*-*-symbianelf*): New target.
94 (*-*-symbianelf*): New OS.
95 * osabi.c (gdb_osabi_names): Add Symbian.
96 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
97 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
98 (ALLDEPFILES): Add arm-symbian-tdep.c.
99
100 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
101
102 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
103
104 2010-02-24 Pedro Alves <pedro@codesourcery.com>
105
106 * mi/mi-main.c (mi_cmd_execute): Fix typo.
107
108 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
109 Tom Tromey <tromey@redhat.com>
110 Thiago Jung Bauermann <bauerman@br.ibm.com>
111
112 * python/python.c (_initialize_python): Call
113 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
114 gdbpy_initialize_blocks.
115 * python/python-internal.h: Declare struct symbol, block and
116 symtab_and_line. Declare block_object_type and
117 symbol_object_type
118 (gdbpy_lookup_symbol gdbpy_block_for_pc)
119 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
120 (symbol_to_symbol_object, block_to_block_object)
121 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
122 (gdbpy_initialize_blocks ): Declare.
123 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
124 (frapy_select): Add methods.
125 (frapy_read_var): Add symbol branch.
126 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
127 py-block.
128 (SUBDIR_PYTHON_SRCS): Likewise.
129 (py-symbol.o): New rule.
130 (py-symtab.o): Likewise.
131 (py-block.o): Likewise.
132 * python/py-symbol.c: New file.
133 * python/py-symtab.c: Likewise.
134 * python/py-block.c: Likewise.
135
136 2010-02-24 Pedro Alves <pedro@codesourcery.com>
137
138 PR gdb/11321
139
140 * inferior.h (prepare_for_detach): Declare.
141 (struct inferior) <detaching>: New field.
142 * infrun.c (prepare_for_detach): New.
143 (handle_inferior_event) <random signal>: Don't stop if detaching.
144 * target.c (target_detach): Call prepare_for_detach.
145
146 2010-02-24 Pedro Alves <pedro@codesourcery.com>
147
148 Per-process displaced stepping queue.
149
150 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
151 (displaced_step_gdbarch, displaced_step_closure,
152 (displaced_step_original, displaced_step_copy): Move globals to
153 this...
154 (struct displaced_step_inferior_state): ... new structure.
155 (displaced_step_inferior_states): New global.
156 (get_displaced_stepping_state, add_displaced_stepping_state)
157 (remove_displaced_stepping_state, infrun_inferior_exit): New
158 functions.
159 (displaced_step_clear): Add displaced_step_inferior_state
160 parameter, and adjust to handle it.
161 (displaced_step_clear_cleanup): Parameter is now a
162 displaced_step_inferior_state. Adjust.
163 (displaced_step_prepare): Adjust.
164 (displaced_step_fixup, displaced_step_fixup)
165 (infrun_thread_ptid_changed, resume): Adjust.
166 (init_wait_for_inferior): Don't call displaced_step_clear.
167 (infrun_thread_stop_requested): Rewrite.
168 (_initialize_infrun): Install infrun_inferior_exit as
169 inferior_exit observer.
170
171 2010-02-24 Pedro Alves <pedro@codesourcery.com>
172
173 * inferior.h (ptid_match): Declare.
174 * infrun.c (ptid_match): New.
175 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
176 (handle_notification): Add debug output.
177 * linux-nat.c (ptid_match): Delete.
178
179 2010-02-24 David S. Miller <davem@davemloft.net>
180
181 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
182 * syscalls/sparc-linux.xml: New.
183 * syscalls/sparc64-linux.xml: New.
184 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
185 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
186 (sparc32_linux_get_syscall_number): New function.
187 (sparc32_linux_init_abi): Set syscall XML file name and hook up
188 syscall number fetcher.
189 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
190 (sparc64_linux_get_syscall_number): New function.
191 (sparc64_linux_init_abi): Set syscall XML file name and hook up
192 syscall number fetcher.
193
194 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
195
196 Multiexec MI
197
198 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
199 * inferior.c (add_inferior_silent): Notify inferior_added
200 observer.
201 (delete_inferior_1): Notify inferior_removed observer.
202 (exit_inferior_1): Pass inferior, not pid, to observer.
203 (inferior_appeared): Likewise.
204 (add_inferior_with_spaces): New.
205 (add_inferior_command): Use the above.
206 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
207 Declare.
208
209 * inflow.c (inflow_inferior_exit): Likewise.
210 * jit.c (jit_inferior_exit_hook): Likewise.
211
212 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
213 remove-inferior.
214 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
215 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
216 (report_initial_inferior): New.
217 (mi_inferior_removed): Register the above. Make sure
218 inferior_added observer is called on the first inferior.
219 (mi_new_thread, mi_thread_exit): Thread group is now identified by
220 inferior number, not pid.
221 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
222 affected.
223 * mi/mi-main.c (current_context): New.
224 (proceed_thread_callback): Use typed closure.
225 Proceed everything if pid is 0. Most implementation split into
226 (proceed_thread): ... this.
227 (run_one_inferior): New.
228 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
229 Adjust for multiexec behaviour.
230 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
231 (mi_cmd_execute): Handle the 'thread-group' option here.
232 Do some extra checks.
233 * mi-parse.c (mi_parse): Handle the --all and --thread-group
234 options.
235 * mi-parse.h (struct mi_parse): New fields all and thread_group.
236
237 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
238
239 Make -exec-run a proper MI commands.
240
241 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
242 * mi/mi-cmds.c (mi_cmds): Adjust.
243 * mi/mi-main.c (mi_cmd_exec_run): New.
244
245 2010-02-24 Pedro Alves <pedro@codesourcery.com>
246 Stan Shebs <stan@codesourcery.com>
247
248 * tracepoint.h (set_traceframe_number)
249 (cleanup_restore_current_traceframe): Declare.
250 * tracepoint.c (set_traceframe_number): New.
251 (struct current_traceframe_cleanup): New.
252 (do_restore_current_traceframe_cleanup)
253 (restore_current_traceframe_cleanup_dtor)
254 (make_cleanup_restore_current_traceframe): New.
255 * infrun.c: Include tracepoint.h.
256 (fetch_inferior_event): Switch out and in of tfind mode.
257
258 2010-02-24 Pedro Alves <pedro@codesourcery.com>
259
260 * breakpoint.c (breakpoint_init_inferior): Also delete
261 bp_shlib_event breakpoints.
262 * solib-frv.c (enable_break): Remove call to
263 remove_solib_event_breakpoints.
264 * solib-svr4.c (enable_break): Ditto.
265 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
266 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
267 * solib-som.c (som_solib_create_inferior_hook): Ditto.
268 * solib-spu.c (spu_enable_break): Ditto.
269
270 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
271
272 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
273
274 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
275
276 * varobj.c (varobj_update): Avoid non-constants in initializers.
277
278 2010-02-23 Tom Tromey <tromey@redhat.com>
279
280 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
281 handle big-endian values.
282 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
283
284 2010-02-22 Pedro Alves <pedro@codesourcery.com>
285
286 PR9605
287
288 gdb/
289 * breakpoint.c (insert_bp_location): If inserting the read
290 watchpoint failed, fallback to an access watchpoint.
291 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
292 if the value changed, if not watching the same memory for writes.
293 (watchpoint_locations_match): Add comment.
294 (update_global_location_list): Copy the location's watchpoint type.
295 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
296 handle read watchpoints here.
297 (i386_insert_watchpoint): Read watchpoints aren't supported.
298 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
299 packets.
300 * target.h (target_insert_watchpoint): Update description.
301
302 2010-02-19 Tom Tromey <tromey@redhat.com>
303
304 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
305 * m2-typeprint.c (m2_print_type): Update.
306 * gdbtypes.c (recursive_dump_type): Update.
307 (copy_type_recursive): Update.
308 * c-typeprint.c (c_type_print_varspec_prefix): Update.
309 (c_type_print_base): Update.
310 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
311 Remove.
312 (struct cplus_struct_type) <ntemplate_args>: Remove.
313 <struct template_arg>: Remove.
314 <is_dynamic>: Move earlier.
315 (TYPE_TEMPLATE_ARGS): Remove.
316 (TYPE_NTEMPLATE_ARGS): Remove.
317 (TYPE_TEMPLATE_ARG): Remove.
318
319 2010-02-19 Tom Tromey <tromey@redhat.com>
320
321 PR c++/8693, PR c++/9496:
322 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
323 * c-exp.y (lex_one_token): Rename from yylex. Don't call
324 write_dollar_variable. Don't try to classify NAME tokens.
325 (token_and_value): New type.
326 (token_fifo, popping, name_obstack): New globals.
327 (classify_name): New function.
328 (classify_inner_name): Likewise.
329 (yylex): Likewise.
330 (VARIABLE): Now has type sval.
331 (exp : VARIABLE): Call write_dollar_variable.
332 (qualified_name): Use TYPENAME, not typebase. Add production for
333 multiple "::" instances.
334 (variable): Use name_not_typename.
335 (qualified_type): Remove.
336 (typebase): Update.
337
338 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
339
340 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
341 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
342 found by bfd_get_section_by_name.
343 * symfile.h (struct section_addr_info) <sectindex>: New comment.
344
345 2010-02-19 Joel Brobecker <brobecker@adacore.com>
346
347 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
348 7.0 section" into "Changes in 7.1".
349
350 2010-02-19 Joel Brobecker <brobecker@adacore.com>
351
352 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
353 * version.in: Bump version to 7.1.50.20100219-cvs.
354
355 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
356
357 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
358 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
359
360 2010-02-17 Tom Tromey <tromey@redhat.com>
361
362 * NEWS: Add Python API Improvements section.
363
364 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
365
366 * NEWS: Correct typo.
367
368 2010-02-17 Tom Tromey <tromey@redhat.com>
369
370 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
371
372 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
373
374 * symfile.c (build_section_addr_info_from_objfile): Include sections
375 only if they are SEC_ALLOC or SEC_LOAD.
376
377 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
378
379 PR shlibs/11293
380 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
381 of ULONGEST for address size.
382
383 2010-02-17 Tom Tromey <tromey@redhat.com>
384
385 * NEWS: Add C++ improvements section.
386
387 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
388
389 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
390 PyThreadState_Swap): Avoid "statement with no effect" warning.
391
392 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
393
394 * solib-svr4.c (enable_break <target_auxv_search>): New variable
395 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
396
397 2010-02-17 Tristan Gingold <gingold@adacore.com>
398 Petr Hluzín <petr.hluzin@gmail.com>
399
400 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
401 gdb_assert. Fix info->size for SIG prologue.
402
403 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
404
405 * infcmd.c (show_inferior_tty_command): Check for NULL.
406 Correct output message.
407
408 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
409
410 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
411 FUNCTION contains parentheses. Improve removal of a trailing
412 single quote.
413
414 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
415
416 * gcore.c (do_bfd_delete_cleanup): New function.
417 (gcore_command): Use it. Discard the cleanup after success.
418 (gcore_copy_callback): Delete dead code.
419
420 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
421
422 * symfile.c (addr_info_make_relative): Always use
423 find_lowest_section.
424
425 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
426
427 * NEWS: Added entry for namespace fixes.
428
429 2010-02-15 Tom Tromey <tromey@redhat.com>
430
431 * dwarf2read.c (guess_structure_name): Allocate name on the
432 objfile obstack.
433
434 2010-02-15 Tom Tromey <tromey@redhat.com>
435
436 * c-typeprint.c (c_type_print_base): Reverse order of test.
437
438 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
441 initialize it from ELF BFD. Extend the prelink condition by it.
442
443 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
444
445 * defs.h (parse_pid_to_attach): New.
446 * utils.c (parse_pid_to_attach): New.
447 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
448 * gnu-nat.c (gnu_attach): Likewise.
449 * nto-procfs.c (procfs_attach): Likewise.
450 * procfs.c (procfs_attach): Likewise.
451 * windows-nat.c (windows_attach): Likewise.
452 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
453 * inf-ttrace.c (inf_ttrace_attach): Likewise.
454 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
455 check.
456
457 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
458
459 * MAINTAINERS: Add myself for write after approval privileges.
460
461 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
464 block.
465
466 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
467
468 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
469 only if INFO_VERBOSE.
470
471 2010-02-12 Tomas Holmberg <th@virtutech.com>
472
473 * mi/mi-main.c: Added the --reverse flag to the following MI
474 commands: exec-continue, exec-finish, exec-next, exec-step,
475 exec-next-instruction, exec-step-instruction. This is to
476 support reverse execution over the MI interface to gdb.
477
478 2010-02-12 Pedro Alves <pedro@codesourcery.com>
479
480 * tracepoint.c (_initialize_tracepoint): Specify that the address
481 range of `tfind outsize' is exclusive, and that the address range
482 of `tfind range' is inclusive, in the commands' help strings.
483
484 2010-02-12 Joel Brobecker <brobecker@adacore.com>
485
486 Spurious "dll not found" error messages on x64-windows.
487 * windows-nat.c: Add include of complaints.h.
488 (handle_unload_dll): Change dll-not-found error into a complaint.
489
490 2010-02-12 Pedro Alves <pedro@codesourcery.com>
491
492 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
493 bp_tracepoint and bp_fast_tracepoint, not
494 bp_loc_software_breakpoint.
495 (update_global_location_list): Tracepoints are never duplicates of
496 anything.
497
498 2010-02-12 Pedro Alves <pedro@codesourcery.com>
499
500 * breakpoint.c (break_command_really): Change return type to int.
501 Return false if no breakpoint was created, true otherwise.
502 (trace_command): Don't set the tracepoint count if no tracepoint
503 was created.
504 (ftrace_command): Ditto.
505 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
506 created in the breakpoints table.
507
508 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
509 Ulrich Weigand <uweigand@de.ibm.com>
510
511 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
512
513 2010-02-11 Pedro Alves <pedro@codesourcery.com>
514
515 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
516 the offset value isn't of integral type.
517
518 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
519
520 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
521 New.
522
523 2010-02-11 Pedro Alves <pedro@codesourcery.com>
524
525 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
526 non-subscriptable types.
527 * valarith.c (binop_types_user_defined_p): New, abstracted out
528 from ...
529 (binop_user_defined_p): ... this.
530 * value.h (binop_types_user_defined_p): Declare.
531
532 2010-02-11 Pedro Alves <pedro@codesourcery.com>
533
534 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
535 Merge uploaded TSVs before merging uploaded tracepoints.
536
537 2010-02-11 Pedro Alves <pedro@codesourcery.com>
538
539 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
540
541 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
542
543 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
544 whitespace character after a dot in comment.
545 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
546 Likewise.
547 (list_args_or_locals): For the 'all' (that is
548 -stack-list-variables) case, always output list of tuples.
549 Output 'arg' field if variable is argument.
550
551 2010-02-10 Tom Tromey <tromey@redhat.com>
552
553 * parser-defs.h (parser_debug): Declare.
554 * parse.c (_initialize_parse): Install "debug parser" set/show
555 command.
556 (parser_debug): New global.
557 (show_parserdebug): New function.
558 * c-exp.y (c_parse): Set yydebug.
559
560 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
561
562 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
563 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
564 (tdesc_predefined_types): Add i387_ext, i386_eflags and
565 i386_mxcsr.
566 (tdesc_find_type): New.
567 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
568 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
569
570 * target-descriptions.h (tdesc_find_type): New.
571
572 2010-02-10 Michael Snyder <msnyder@vmware.com>
573
574 * gdb-gdb.py: Comment fix.
575
576 2010-02-09 Tristan Gingold <gingold@adacore.com>
577
578 * machoread.c (macho_symfile_relocate): New function.
579 (macho_sym_fns): Use macho_symfile_relocate instead of
580 default_symfile_relocate.
581 (macho_oso_data): New type.
582 (current_oso): New variable.
583 (macho_add_oso_symfile): Do not compute section_addr_info, but
584 instead set vma of sections.
585 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
586 Set and clear current_oso.
587
588 2010-02-09 Joel Brobecker <brobecker@adacore.com>
589
590 Wrong type description for tagged type parameter.
591 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
592 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
593 reference to a tagged type.
594
595 2010-02-09 Tristan Gingold <gingold@adacore.com>
596
597 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
598 brothers of the parent.
599
600 2010-02-08 Tom Tromey <tromey@redhat.com>
601
602 PR c++/8017:
603 * value.h: Update.
604 * valops.c (search_struct_field): Make 'name' const.
605 (search_struct_method): Likewise.
606 (find_method_list): Make 'method' const.
607 (value_struct_elt): Make 'name' and 'err' const.
608 (value_find_oload_method_list): Make 'method' const.
609 (find_overload_match): Make 'name' const.
610 * eval.c (evaluate_subexp_standard): New locals function,
611 function_name.
612 <OP_FUNCALL>: Handle OP_SCOPE specially.
613
614 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
615
616 * infrun.c (handle_inferior_event): Do not look up regcache
617 for exited processes.
618
619 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
620
621 PR gdb/10728
622 * valarith.c (value_ptrdiff): Added a test for a zero type length,
623 warn if found, and assume length = 1.
624
625 2010-02-08 Chris Moller <cmoller@redhat.com>
626
627 PR gdb/9067
628 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
629 cp_print_static_field) Fix use of obstacks.
630
631 2010-02-08 Pedro Alves <pedro@codesourcery.com>
632
633 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
634 resumed LWPs as resumed.
635 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
636 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
637 of throwing an internal error. If an LWP of a process we're not
638 waiting for reports a signal, don't force collecting a SIGSTOP,
639 and if it was breakpoint hit in non-stop mode, cancel it. Don't
640 go through all LWPs cancelling breakpoints in non-stop mode.
641 (resume_stopped_resumed_lwps): New.
642 (linux_nat_wait): Use it.
643
644 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
645
646 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
647 i386/amd64 and i386/amd64-linux.
648 (i386/i386-expedite): New.
649 (i386/i386-linux-expedite): Likewise.
650 (i386/amd64-expedite):Likewise.
651 (i386/amd64-linux-expedite): Likewise.
652 ($(outdir)/i386/i386-linux.dat): Likewise.
653 ($(outdir)/i386/amd64.dat): Likewise.
654 ($(outdir)/i386/amd64-linux.dat): Likewise.
655
656 * features/i386/32bit-core.xml: New.
657 * features/i386/32bit-linux.xml: Likewise.
658 * features/i386/32bit-sse.xml: Likewise.
659 * features/i386/64bit-core.xml: Likewise.
660 * features/i386/64bit-linux.xml: Likewise.
661 * features/i386/64bit-sse.xml: Likewise.
662 * features/i386/i386-linux.xml: Likewise.
663 * features/i386/i386.xml: Likewise.
664 * features/i386/amd64-linux.xml: Likewise.
665 * features/i386/amd64.xml: Likewise.
666 * features/i386/i386-linux.c: Likewise.
667 * features/i386/i386.c: Likewise.
668 * features/i386/amd64-linux.c: Likewise.
669 * features/i386/amd64.c: Likewise.
670
671 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
672
673 PR c++/7935:
674 * cp-support.h: Added char* alias element to using_direct data
675 struct.
676 (cp_add_using): Added char* alias argument.
677 (cp_add_using_directive): Ditto.
678 * cp-namespace.c: Updated with the above changes.
679 (cp_lookup_symbol_imports): Check for aliases.
680 * dwarf2read.c (read_import_statement): Figure out local alias
681 for the import and pass it on to cp_add_using.
682 (read_namespace): Pass alias argument to cp_add_using.
683
684 2010-02-05 Hui Zhu <teawater@gmail.com>
685
686 * defs.h (gdb_bfd_errmsg): New extern.
687 * exec.c (exec_file_attach): Change bfd_errmsg to
688 gdb_bfd_errmsg.
689 * utils.c (AMBIGUOUS_MESS1): New macro.
690 (AMBIGUOUS_MESS2): New macro.
691 (gdb_bfd_errmsg): New function.
692
693 2010-02-04 Doug Evans <dje@google.com>
694
695 * solib-svr4.c (enable_break): Add comment.
696
697 2010-02-04 Anthony Green <green@moxielogic.com>
698
699 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
700 gracefully.
701
702 2010-02-04 Tom Tromey <tromey@redhat.com>
703
704 * valops.c (search_struct_field): Account for
705 value_embedded_offset. Fix check for virtual base past the end of
706 the object. Use value_copy when making a slice of the value.
707
708 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
709
710 PR tui/9622
711 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
712 only if gdb_stdout is a tty.
713
714 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
715
716 * target-descriptions.c: Include "osabi.h".
717 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
718 OSABI.
719
720 2010-02-04 Tristan Gingold <gingold@adacore.com>
721
722 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
723 (macho_symtab_read): Adjust calls to macho_add_oso.
724 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
725 (macho_symfile_read): Adjust call to macho_oso_symfile.
726 (macho_new_init): Move this function after declarations.
727 (macho_symfile_init): Ditto.
728 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
729 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
730
731 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
732
733 Include MI command in remotelog.
734
735 * mi/mi-main.c (mi_execute_command): Call target_log_command.
736
737 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
738
739 * remote.c (remote_state): Remove gdbarch.
740 (init_remote_state): Don't set gdbarch.
741 (remote_query_supported): Pass target_gdbarch instead of
742 rs->gdbarch to gdbarch_qsupported.
743
744 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
745
746 * gdbarch.sh: Add qsupported.
747
748 * gdbarch.c: Regenerated.
749 * gdbarch.h: Likewise.
750
751 * remote.c (remote_state): Add gdbarch.
752 (init_remote_state): Set gdbarch.
753 (remote_query_supported): Support gdbarch_qsupported.
754
755 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
756
757 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
758 __FreeBSD_kernel_version.
759
760 2010-02-03 Tristan Gingold <gingold@adacore.com>
761
762 * symfile.h (struct sym_fns): Add sym_relocate field.
763 (default_symfile_relocate): New prototype.
764 (symfile_relocate_debug_section): First argument is now an objfile.
765 * symfile.c (default_symfile_relocate): Rename from
766 symfile_relocate_debug_section, first argument is now an objfile.
767 (symfile_relocate_debug_section): New function.
768 * coffread.c (coff_sym_fns): Set sym_relocate field.
769 * somread.c (som_sym_fns): Ditto.
770 * mipsread.c (ecoff_sym_fns): Ditto.
771 * machoread.c (macho_sym_fns): Ditto.
772 * elfread.c (elf_sym_fns): Ditto.
773 * dwarf2read.c (dwarf2_read_section): Ditto.
774 * xcoffread.c (xcoff_sym_fns): Ditto.
775 * dbxread.c (aout_sym_fns): Ditto.
776 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
777 (elfstab_build_psymtabs): Ditto.
778
779 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
780
781 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
782
783 2010-02-02 Tom Tromey <tromey@redhat.com>
784
785 * valops.c (value_cast_structs): Try downcasting using the RTTI
786 type.
787
788 2010-02-02 Tom Tromey <tromey@redhat.com>
789
790 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
791 (gnuv2_baseclass_offset): Now static.
792 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
793 * gnu-v2-abi.h: Remove.
794
795 2010-02-02 Tom Tromey <tromey@redhat.com>
796
797 * m2-typeprint.c (m2_record_fields): Don't use
798 TYPE_DECLARED_TYPE.
799 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
800 (struct main_type) <flag_declared_class>: New field.
801 (struct cplus_struct_type) <declared_type>: Remove.
802 <ntemplate_args>: Move earlier.
803 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
804 (DECLARED_TYPE_TEMPLATE): Remove.
805 (TYPE_DECLARED_TYPE): Remove.
806 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
807 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
808 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
809 TYPE_DECLARED_TYPE.
810
811 2010-02-02 Tom Tromey <tromey@redhat.com>
812
813 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
814 * valops.c (search_struct_field): Compute nbases after calling
815 CHECK_TYPEDEF.
816 (check_field): Call CHECK_TYPEDEF.
817 * cp-valprint.c (cp_print_value): Pass correct address to
818 baseclass_offset. Fix check for virtual base past the end of the
819 object. Don't offset address passed to cp_print_value_fields or
820 apply_val_pretty_printer.
821 (cp_print_value_fields): Fix call to val_print.
822 (cp_print_value_fields_rtti): New function.
823 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
824 * p-valprint.c (pascal_object_print_value_fields): Fix call to
825 val_print.
826 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
827 offset to address.
828 * language.h (struct language_defn) <la_val_print>: Document.
829 * c-lang.h (cp_print_value_fields_rtti): Declare.
830
831 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
832
833 PR libc/11214:
834 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
835 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
836 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
837
838 2010-02-01 Michael Matz <matz@suse.de>
839 Daniel Jacobowitz <dan@codesourcery.com>
840
841 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
842 functions use a frame pointer.
843
844 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
845
846 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
847 by a conditional setting DYN_ADDR. Use DYN_ADDR.
848 * config/djgpp/fnchange.lst: Add translations for
849 symbol-without-target_section.exp and symbol-without-target_section.c.
850
851 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
852
853 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
854 (remote_breakpoint_for_pc): Correct invalid_p check.
855 * gdbarch.c: Regenerated.
856
857 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
858
859 * arm-tdep.c (arm_find_mapping_symbol): New function, from
860 arm_pc_is_thumb.
861 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
862 (extend_buffer_earlier): New function.
863 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
864 (arm_adjust_breakpoint_address): New function.
865 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
866
867 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
868
869 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
870 (arm_linux_thumb2_le_breakpoint): New constants.
871 (arm_linux_init_abi): Set thumb2_breakpoint and
872 thumb2_breakpoint_size.
873 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
874 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
875 Implement support for single stepping through IT blocks if
876 a 32-bit Thumb breakpoint instruction is available.
877 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
878 is available, use it when needed.
879 (arm_remote_breakpoint_from_pc): New function.
880 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
881 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
882 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
883
884 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
885
886 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
887 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
888 * gdbarch.c, gdbarch.h: Regenerated.
889 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
890 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
891 gdbarch_remote_breakpoint_from_pc.
892
893 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
894
895 * infrun.c (prepare_to_proceed): Handle other signals which might
896 match a breakpoint.
897 (handle_inferior_event): Move the check for unusual breakpoint
898 signals earlier.
899
900 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
901
902 amd64 - function returning record with field straddling 2 registers.
903 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
904 a record of length <= 16 in which a field straddles the two
905 eightbytes.
906
907 2010-01-29 Joel Brobecker <brobecker@adacore.com>
908
909 Implement return values on amd64-windows.
910 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
911 (amd64_windows_return_value): New function.
912 (amd64_windows_init_abi): Call set_gdbarch_return_value with
913 amd64_windows_return_value.
914
915 2010-01-29 Joel Brobecker <brobecker@adacore.com>
916
917 amd64-windows: 32 bytes allocated on stack by caller for integer
918 parameter registers.
919 * i386-tdep.h (struct gdbarch_tdep): Add new field
920 integer_param_regs_saved_in_caller_frame.
921 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
922 tdep->integer_param_regs_saved_in_caller_frame to 1.
923 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
924 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
925
926 2010-01-29 Joel Brobecker <brobecker@adacore.com>
927
928 amd64-windows: memory args passed by pointer during function calls.
929 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
930 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
931 where tdep->memory_args_by_pointer is non-zero.
932 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
933 tdep->memory_args_by_pointer to 1.
934
935 2010-01-29 Joel Brobecker <brobecker@adacore.com>
936
937 amd64-windows: Integer parameters in function calls.
938 * i386-tdep.h (enum amd64_reg_class): New, moved here from
939 amd64-tdep.c.
940 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
941 call_dummy_integer_regs, and classify.
942 * amd64-tdep.h (amd64_classify): Add declaration.
943 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
944 (amd64_reg_class): Delete, moved to i386-tdep.h.
945 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
946 Replace call to amd64_classify by call to tdep->classify.
947 (amd64_push_arguments): Get the list of registers to use for
948 passing integer parameters from the gdbarch tdep structure,
949 rather than using a hardcoded one. Replace calls to amd64_classify
950 by calls to tdep->classify.
951 (amd64_push_dummy_call): Get the register number used for
952 the "hidden" argument from tdep->call_dummy_integer_regs.
953 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
954 and tdep->call_dummy_integer_regs. Set tdep->classify.
955 * amd64-windows-tdep.c: Add include of gdbtypes.h.
956 (amd64_windows_dummy_call_integer_regs): New static global.
957 (amd64_windows_classify): New function.
958 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
959 tdep->call_dummy_integer_regs and tdep->classify.
960
961 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
962
963 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
964 for the new regcache. All callers updated.
965 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
966 (get_thread_arch_regcache): Do not set aspace here.
967 * regcache.h (regcache_xmalloc): Update declaration.
968
969 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
970 regcache_xmalloc updated.
971
972 2010-01-28 Joel Brobecker <brobecker@adacore.com>
973
974 Another -Wunused-function error in procfs.c (sparc-solaris)
975 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
976 Only define if SYS_syssgi is defined.
977 (remove_dbx_link_breakpoint): Delete declaration. Move up.
978 (dbx_link_addr, insert_dbx_link_bpt_in_file)
979 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
980 is itself defined.
981
982 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
983
984 * windows-nat.c (windows_initialization_done): New variable.
985 (get_windows_debug_event): Issue error when process dies before
986 completely initializing.
987 (do_initial_windows_stuff): Set flag to indicate when we are done with
988 the initial steps of attaching to the child.
989
990 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
991
992 * symtab.h (struct symbol <symtab>): New comment on NULL values.
993
994 2010-01-27 Doug Evans <dje@google.com>
995
996 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
997
998 * breakpoint.c (bpstat_stop_status): Delete useless code.
999
1000 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1001
1002 * printcmd.c (display_uses_solib_p): Remove variable section. Access
1003 objfile via SYMBOL_SYMTAB.
1004
1005 2010-01-26 Tom Tromey <tromey@redhat.com>
1006
1007 PR exp/7643:
1008 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
1009 coerce_array on result.
1010
1011 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1012
1013 * cp-namespace.c (cp_lookup_symbol_namespace): Added
1014 search_parent argument.
1015 (cp_add_using): Initialize 'searched' field.
1016 (reset_directive_searched): New function.
1017 * cp-support.h: Add 'searched' field to using_direct struct.
1018 (cp_lookup_symbol_imports): Ditto.
1019 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
1020 Perform recursive search.
1021 Implement non parent search.
1022 * valops.c (value_maybe_namespace_elt): Updated.
1023
1024 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
1025
1026 PR gdb/10929:
1027 * dwarf2read.c (read_lexical_block_scope): Create blocks for
1028 scopes which contain using directives even if they contain no
1029 declarations.
1030 * symtab.c (lookup_symbol_aux): Pass lowest level block to
1031 la_lookup_symbol_nonlocal.
1032 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
1033 cp_lookup_symbol_namespace.
1034 (cp_lookup_symbol_namespace): Perform an import lookup at every
1035 block level.
1036 (cp_lookup_symbol_imports): New function.
1037 (cp_lookup_symbol_in_namespace): New function.
1038
1039 2010-01-25 Tom Tromey <tromey@redhat.com>
1040
1041 PR gdb/11049:
1042 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
1043 result.
1044
1045 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1046
1047 * configure.ac: Only use host_os part when disabling TUI on osf.
1048 Use test to check variables, prefix strings with x.
1049 * configure: Regenerate.
1050
1051 * solib-osf.c (osf_current_sos): Initialize tail.
1052
1053 2010-01-25 gingold <gingold@adacore.com>
1054
1055 * windows-nat.c (windows_continue): Use %x to print thread id.
1056 (get_windows_debug_event): Ditto.
1057
1058 2010-01-22 Tom Tromey <tromey@redhat.com>
1059
1060 PR symtab/11199:
1061 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
1062 type and arguments. Use smash_to_methodptr_type.
1063 (read_structure_type): Call quirk_gcc_member_function_pointer
1064 later.
1065 * gdbtypes.h (smash_to_methodptr_type): Declare.
1066 * gdbtypes.c (smash_to_methodptr_type): New function.
1067 (lookup_methodptr_type): Use it.
1068
1069 2010-01-21 Tom Tromey <tromey@redhat.com>
1070
1071 PR symtab/11198:
1072 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
1073 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
1074 * glibc-tdep.c (find_minsym_and_objfile): Remove.
1075 (glibc_skip_solib_resolver): Use
1076 lookup_minimal_symbol_and_objfile.
1077
1078 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
1079
1080 * inflow.c (check_syscall): Guard by #if clause for GO32 and
1081 WIN32 targets.
1082
1083 2010-01-20 Tom Tromey <tromey@redhat.com>
1084
1085 PR backtrace/10770:
1086 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
1087 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
1088 * dwarf2expr.c (new_dwarf_expr_context): Allocate
1089 dwarf_stack_values, not CORE_ADDRs.
1090 (execute_stack_op): Change DW_OP_div and comparison operators to
1091 use signed operands.
1092
1093 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
1094
1095 Per-inferior args and tty and environment.
1096
1097 * infcmd.c (inferior_args): Rename to ...
1098 (inferior_args_scratch): ... this.
1099 (inferior_io_terminal): Rename to ...
1100 (inferior_io_terminal_scratch): ... this.
1101 (inferior_argc, inferior_argv): Remove.
1102 (set_inferior_io_terminal, get_inferior_io_terminal): Store
1103 inside current_inferior().
1104 (set_inferior_tty_command, show_inferior_tty_command): New.
1105 (get_inferior_args, set_inferior_args): Store inside
1106 current_inferior().
1107 (notice_args_set): Likewise and rename to...
1108 (set_args_command): ... this.
1109 (set_inferior_args_vector): Likewise.
1110 (notice_args_read): Rename to...
1111 (show_args_command): ...new.
1112 (tty_command): Remove.
1113 (run_command_1): Don't free old args, as they are freed by
1114 set_inferior_arg now.
1115 (run_no_args_command): Likewise.
1116 (inferior_environ): Remove.
1117 (run_command_1): Use environment of the current inferior.
1118 (environment_info, set_environment_command)
1119 (unset_environment_command, path_info, path_command): Likewise.
1120 (_initialize_infcmd): Adjust for function and variable renames.
1121 Do not init inferior_environ.
1122 * inferior.h (set_inferior_arg): Adjust prototype.
1123 (struct inferior): New fields args, argc, argv, terminal, environment.
1124 (inferior_environ): Remove declaration.
1125 * inferior.c (free_inferior): Free new fields.
1126 (add_inferior_silent): Initialize 'environment' field.
1127 * main.c (captured_main): Set arguments only after the initial
1128 inferior has been created. Set set_inferior_io_terminal,
1129 not tty_command.
1130 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
1131 inferior.
1132 (_initialize_mi_cmd_env): Adjust for disappearance of global
1133 inferior_environ.
1134 * solib.c (solib_find): Use environment of the current inferior.
1135
1136 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
1139 HAVE_PYTHON.
1140 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
1141
1142 2010-01-20 Joel Brobecker <brobecker@adacore.com>
1143
1144 Get rid of ada-lang.c:function_name_from_pc.
1145 * ada-lang.c: Add "stack.h" #include.
1146 (function_name_from_pc): Delete.
1147 (is_known_support_routine): Replace call to function_name_from_pc
1148 by call to find_frame_funname.
1149 (ada_unhandled_exception_name_addr_from_raise): Likewise.
1150
1151 2010-01-19 Tom Tromey <tromey@redhat.com>
1152
1153 PR c++/11026:
1154 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
1155 objfile obstack.
1156
1157 2010-01-19 Tom Tromey <tromey@redhat.com>
1158
1159 * top.c (stop_sig, float_handler, do_nothing): Remove.
1160
1161 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1162
1163 * breakpoint.c (watchpoint_check): Check the call
1164 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
1165 Extend the comment.
1166 * config/djgpp/fnchange.lst: Add translations for
1167 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
1168 watchpoint-cond-gone-stripped.c.
1169
1170 2010-01-19 Tom Tromey <tromey@redhat.com>
1171
1172 PR c++/8000:
1173 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
1174 into parent scope, and enumerator into grandparent scope.
1175
1176 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1177
1178 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
1179
1180 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1181
1182 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
1183 i[34567]86-*-solaris2.1[0-9]*.
1184 * configure.tgt: Likewise.
1185
1186 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1187
1188 * NEWS: Document the source command enhancement allowing it
1189 to load Python scripts. Document the "set/show script-extension"
1190 commands.
1191
1192 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1193
1194 Add -Wunused-function to compile flags.
1195 * configure.ac: Add -Wunused-function to build_warnings.
1196 * configure: Regenerate.
1197
1198 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1199
1200 "delete" ada-lex.c:input function, not used.
1201 * ada-lex.l: #define YY_NO_INPUT.
1202
1203 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1204
1205 Delete free_named_symtabs and associated cleanup.
1206 * symfile.h (free_named_symtabs): Delete declaration.
1207 * symfile.c: Remove some commented out code (clear_symtab_users_once).
1208 (cashier_psymtab): Comment function out.
1209 Delete declaration.
1210 (free_named_symtabs): Delete.
1211 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
1212 * dbxread.c (end_psymtab): Likewise.
1213 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
1214 * exec.c (exec_close_1): Ditto.
1215 * xcoffread.c (xcoff_end_psymtab): Likewise.
1216
1217 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1218
1219 * stack.c (print_block_frame_labels): Comment function out.
1220
1221 2010-01-19 Joel Brobecker <brobecker@adacore.com>
1222
1223 Delete unused or undefined functions.
1224 * breakpoint.c (ep_parse_optional_filename): Delete.
1225 * dcache.c (dcache_write_line): Remove declaration.
1226 * infrun.c (build_infrun): Remove declaration.
1227 * tracepoint.c (tracepoint_save_command): Remove declaration.
1228 * linux-nat.c (init_lwp_list): Delete. No longer used.
1229 * event-loop.c (check_async_signal_handlers): Delete declaration.
1230 * infrun.c (init_execution_control_state): Delete.
1231 (proceed): Update comment to avoid mentioning
1232 init_execution_control_state.
1233 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
1234 * ada-lang.c (ada_to_static_fixed_value): Delete.
1235 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
1236 * cp-namespace.c (cp_copy_usings): Delete.
1237 * xml-syscall.c (xml_number_of_syscalls): Delete.
1238 * progspace.c (find_program_space_by_num): Delete.
1239 * inflow.c (handle_sigio): Delete declaration.
1240 * hppa-tdep.c (hppa_alignof): Delete.
1241 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
1242 (mipsnbsd_core_osabi_sniffer): Delete.
1243
1244 2010-01-18 Tom Tromey <tromey@redhat.com>
1245
1246 PR c++/9680:
1247 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
1248 (CONST_CAST): New tokens.
1249 (exp): Add new productions.
1250 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
1251 reinterpret_cast.
1252 (is_cast_operator): New function.
1253 (yylex): Handle cast operators specially.
1254 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
1255 UNOP_REINTERPRET_CAST>: New cases.
1256 * expprint.c (print_subexp_standard): Likewise.
1257 (op_name_standard): Likewise.
1258 (dump_subexp_body_standard): Likewise.
1259 * parse.c (operator_length_standard): Likewise.
1260 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
1261 UNOP_REINTERPRET_CAST.
1262 * gdbtypes.c (class_types_same_p): New function.
1263 (is_ancestor): Use it.
1264 (is_public_ancestor): New function.
1265 (is_unique_ancestor_worker): Likewise.
1266 (is_unique_ancestor): Likewise.
1267 * gdbtypes.h (class_types_same_p, is_public_ancestor)
1268 (is_unique_ancestor): Declare.
1269 * valops.c (value_reinterpret_cast): New function.
1270 (dynamic_cast_check_1): Likewise.
1271 (dynamic_cast_check_2): Likewise.
1272 (value_dynamic_cast): Likewise.
1273 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
1274
1275 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1276
1277 Fix build failure when building without Python support.
1278 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
1279 is not defined.
1280
1281 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1282
1283 Use XVS field type instead of doing a parallel lookup.
1284 * ada-lang.c (ada_get_base_type): Follow the XVS field type
1285 if it is a reference type instead of doing a type lookup using
1286 the XVS field name.
1287
1288 2010-01-18 Joel Brobecker <brobecker@adacore.com>
1289
1290 Trust PAD types instead of using PAD___XVS.
1291 * ada-lang.c (trust_pad_over_xvs): New static variable.
1292 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
1293 parallel XVS type, follow the XVS type instead of the PAD type.
1294 (unwrap_value): Make sure that there is no parallel XVE type
1295 before returning the value as is.
1296 (set_ada_list, show_ada_list): New static variables.
1297 (set_ada_command, show_ada_command): New functions.
1298 (_initialize_ada_language): Add new "set/show ada" prefix commands.
1299 Add new "set/show ada trust-PAD-over-XVS" setting.
1300
1301 2010-01-18 Tom Tromey <tromey@redhat.com>
1302 Thiago Jung Bauermann <bauerman@br.ibm.com>
1303
1304 Allow "source" to load python scripts.
1305 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
1306 * python/python.c (source_python_script): New function.
1307 * python/python.h (source_python_script): Add declaration.
1308 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
1309 (script_ext_off, script_ext_soft, script_ext_strict)
1310 (script_ext_enums, script_ext_mode): New static constants.
1311 (show_script_ext_mode, find_and_open_script): New functions.
1312 (source_script): Enhance to handle Python scripts.
1313 (init_cli_cmds): Add set/show script-extension commands.
1314
1315 2010-01-16 Stan Shebs <stan@codesourcery.com>
1316
1317 * tracepoint.h (struct trace_status): Use unsigned long long
1318 instead of size_t.
1319 * tracepoint.c (trace_status_command): Fix printf directive.
1320 (trace_save_command): Check fwrite returns, fix printf directive.
1321 (trace_filename): New global.
1322 (tfile_open): Set it, check read returns.
1323 (tfile_close): Free trace_filename.
1324 (tfile_get_traceframe_address): Check read returns.
1325 (tfile_trace_find): Ditto.
1326 (tfile_fetch_registers): Ditto.
1327 (tfile_xfer_partial): Ditto.
1328 (tfile_get_trace_state_variable_value): Ditto.
1329
1330 2010-01-15 Stan Shebs <stan@codesourcery.com>
1331
1332 Add trace file support.
1333 * tracepoint.h (enum trace_stop_reason): New enum.
1334 (struct trace_status): New struct.
1335 (parse_trace_status): Declare.
1336 (struct uploaded_tp): Move here from remote.c,
1337 add fields for actions.
1338 (struct uploaded_tsv): New struct.
1339 * tracepoint.c (tfile_ops): New target vector.
1340 (trace_fd): New global.
1341 (tfile_open): New function.
1342 (tfile_close): New function.
1343 (tfile_files_info): New function.
1344 (tfile_get_trace_status): New function.
1345 (tfile_get_traceframe_address): New function.
1346 (tfile_trace_find): New function.
1347 (tfile_fetch_registers): New function.
1348 (tfile_xfer_partial): New function.
1349 (tfile_get_trace_state_variable_value): New function.
1350 (init_tfile_ops): New function.
1351 (_initialize_tracepoint): Call it, add tfile target.
1352 (trace_status): New global.
1353 (current_trace_status): New function.
1354 (trace_running_p): Remove, change all users to get from
1355 current_trace_status()->running.
1356 (get_trace_status): Remove.
1357 (trace_status_command): Call target_get_trace_status directly,
1358 report more detail including tracing stop reasons.
1359 (trace_find_command): Always allow tfind on a file.
1360 (trace_find_pc_command): Ditto.
1361 (trace_find_tracepoint_command): Ditto.
1362 (trace_find_line_command): Ditto.
1363 (trace_find_range_command): Ditto.
1364 (trace_find_outside_command): Ditto.
1365 (trace_frames_offset, cur_offset): Declare as off_t.
1366 (trace_regblock_size): Rename from reg_size, update users.
1367 (parse_trace_status): New function.
1368 (tfile_interp_line): New function.
1369 (disconnect_or_stop_tracing): Ensure current trace
1370 status before asking what to do.
1371 (stop_reason_names): New global.
1372 (trace_save_command): New command.
1373 (get_uploaded_tp): Move here from remote.c.
1374 (find_matching_tracepoint): Ditto.
1375 (merge_uploaded_tracepoints): New function.
1376 (parse_trace_status): Use stop_reason_names.
1377 (_initialize_tracepoint): Define tsave command.
1378 * target.h (target_ops): New fields to_save_trace_data,
1379 to_upload_tracepoints, to_upload_trace_state_variables,
1380 to_get_raw_trace_data, change to_get_trace_status
1381 to take a pointer to a status struct.
1382 (target_save_trace_data): New macro.
1383 (target_upload_tracepoints): New macro.
1384 (target_upload_trace_state_variables): New macro.
1385 (target_get_raw_trace_data): New macro.
1386 * target.c (update_current_target): Add new methods, change
1387 signature of to_get_trace_status.
1388 * remote.c (hex2bin): Make globally visible.
1389 (bin2hex): Ditto.
1390 (remote_download_trace_state_variable): Download name also.
1391 (remote_get_trace_status): Update parameter, use
1392 parse_trace_status.
1393 (remote_save_trace_data): New function.
1394 (remote_upload_tracepoints): New function.
1395 (remote_upload_trace_state_variables): New function.
1396 (remote_get_raw_trace_data): New function.
1397 (remote_start_remote): Use them.
1398 (_initialize_remote_ops): Add operations.
1399 * ax-gdb.c: Include breakpoint.h.
1400 * breakpoint.c (create_tracepoint_from_upload): Use
1401 break_command_really, return tracepoint, warn about unimplemented
1402 parts.
1403 * NEWS: Mention trace file addition.
1404
1405 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 Fix compilation warning on gcc-3.4.
1408 * exec.c (print_section_info): Move the `displacement' variable
1409 initialization to its declaration.
1410
1411 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1412
1413 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1414 comparison.
1415
1416 2010-01-15 Eric Botcazou <botcazou@adacore.com>
1417
1418 "info tasks" broken by typedefs in ATCB type definitions.
1419 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1420 ada_check_typedef before retrieving the length of the type for
1421 regular fields.
1422
1423 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1424
1425 Do not use name-based lookup for unconstrained packed arrays.
1426 * ada-lang.c (find_parallel_type_by_descriptive_type):
1427 Limit the fallback to name-based lookups to the case where
1428 the type is a constrained packed array.
1429
1430 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1431
1432 Enhance gdb-gdb.py to handle main_type.type_specific.
1433 * gdb-gdb.py: Print the type-specific part of struct main_type.
1434
1435 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1438 * configure: Regenerate.
1439 * config.in: Regenerate.
1440 * utils.c: Include sys/resource.h.
1441 (dump_core, can_dump_core): New.
1442 (internal_vproblem): Update the comment. Check can_dump_core while
1443 setting dump_core_p. Replace two abort calls by dump_core calls.
1444
1445 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1446 Eli Zaretskii <eliz@gnu.org>
1447
1448 * NEWS: Document the PIE support.
1449
1450 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1451
1452 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1453 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1454
1455 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1456
1457 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1458 Replace exec_entry_point call by bfd_get_start_address.
1459
1460 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 Support Valgrind attachments broken by the PIE support.
1463 * auxv.c: Include gdbcore.h.
1464 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1465 parameters ops, object and annex. Remove their assertions.
1466 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1467 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1468 (memory_xfer_auxv): ... here.
1469 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1470 memory_xfer_auxv.
1471 * procfs.c (procfs_xfer_partial): Likewise.
1472 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1473 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1474 (svr4_solib_create_inferior_hook): Conditionalize the
1475 svr4_relocate_main_executable call.
1476
1477 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1480 target_section. Find SECT in current_target_sections, gdb_assert it.
1481 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1482 New variable abfd.
1483 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1484 of separate debug info file.
1485
1486 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1487
1488 Support PIEs with no symfile_objfile.
1489 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1490 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1491
1492 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1493
1494 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1495 code part to ...
1496 (svr4_static_exec_displacement): ... a new function.
1497 (svr4_exec_displacement): New function.
1498 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1499 new_offsets using alloca now. Remove variable old_chain and changed.
1500 Call objfile_relocate unconditionally now.
1501
1502 2010-01-14 Doug Evans <dje@google.com>
1503
1504 * gdbtypes.c (arch_flags_type): Fix comment.
1505 * gdbtypes.h (arch_composite_type): Fix comment.
1506
1507 2009-01-14 Tristan Gingold <gingold@adacore.com>
1508
1509 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1510 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1511 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1512 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1513 macho_add_oso_symfile.
1514 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1515
1516 2010-01-14 Joel Brobecker <brobecker@adacore.com>
1517
1518 Tru64: Dead threads are never deleted.
1519 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1520 (dec_thread_count_gdb_threads): Fix counter increment.
1521 (dec_thread_add_gdb_thread): Fix *listp increment.
1522 (resync_thread_list): Fix bug in deletion of dead threads that
1523 caused all threads to be deleted, instead of just the dead ones.
1524
1525 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1526
1527 PR python/10705
1528
1529 * python/python-internal.h: Add lazy_string_object_type
1530 definition.
1531 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1532 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1533 * python/py-value.c (valpy_lazy_string): New function.
1534 (convert_value_from_python): Add lazy string conversion.
1535 * python/py-prettyprint.c (pretty_print_one_value): Check if
1536 return is also a lazy string.
1537 (print_string_repr): Add lazy string printing branch.
1538 (print_children): Likewise.
1539 * python/py-lazy-string.c: New file. Implement lazy strings.
1540 * python/python.c (_initialize_python): Call
1541 gdbpy_initialize_lazy_string.
1542 * varobj.c (value_get_print_value): Add lazy string printing
1543 branch. Account for encoding.
1544 * c-lang.c (c_printstr): Account for new encoding argument. If
1545 encoding is NULL, find encoding suited for type, otherwise use
1546 user encoding.
1547 * language.h (language_defn): Add encoding argument.
1548 (LA_PRINT_STRING): Likewise.
1549 * language.c (unk_lang_printstr): Update to reflect new encoding
1550 argument to language_defn.
1551 * ada-lang.h (ada_printstr): Likewise.
1552 * c-lang.h (c_printstr): Likewise.
1553 * p-lang.h (pascal_printstr);
1554 * f-lang.c (f_printstr): Likewise.
1555 * m2-lang.c (m2_printstr): Likewise.
1556 * objc-lang.c (objc_printstr): Likewise.
1557 * p-lang.c (pascal_printstr): Likewise.
1558 * scm-lang.c (scm_printstr): Likewise.
1559 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1560 encoding argument.
1561 * ada-valprint.c (ada_printstr): Likewise.
1562 * f-valprint.c (f_val_print): Likewise
1563 * m2-valprint.c (m2_val_print): Likewise.
1564 * p-valprint.c (pascal_val_print): Likewise.
1565 * expprint.c (print_subexp_standard): Likewise.
1566 * valprint.c (val_print_string): Likewise.
1567 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1568 (SUBDIR_PYTHON_SRCS): Likewise.
1569 (py-lazy-string.o): New rule.
1570
1571 2010-01-13 Doug Evans <dje@google.com>
1572
1573 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1574 uninitialized" warning from gcc on local `tree'.
1575
1576 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1577
1578 Implement core awareness.
1579
1580 * bcache.c (compare_ints): Remove
1581 (print_percentage): Use compare_positive_ints.
1582 * defs.h (compare_positive_ints): Declare.
1583 * linux-nat.h (struct lin_lwp): New field core.
1584 (linux_nat_core_of_thread_1): Declare.
1585 * linux-nat.c (add_lwp): Init the 'core' field.
1586 (linux_nat_wait_1): Record the core.
1587 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1588 (linux_nat_add_target): Register the above.
1589 * linux-thread-db.c (update_thread_core): New.
1590 (thread_db_find_new_threads): Update core information for
1591 every thread.
1592 * remote.c (struct private_thread_info): New.
1593 (free_private_thread_info, demand_private_info): New.
1594 (PACKET_qXfer_threads, use_osdata_threads): New.
1595 (struct thread_item, threads_parsing_context
1596 (start_thread, end_thread, thread_attributes)
1597 (thread_children, threads_children, threads_elements): New.
1598 (remote_threads_info): Try qXfer:threads before anything
1599 else.
1600 (remote_protocol_packets): Register qXfer:threads.
1601 (remote_open_1): Init use_osdata_threads.
1602 (struct stop_reply): New field 'core'.
1603 (remote_parse_stop_reply): Parse core number.
1604 (process_stop_reply): Record core number.
1605 (remote_xfer_partial): Handle qXfer:threads.
1606 (remote_core_of_thread): New.
1607 (init_remote_ops): Register remote_core_of_thread.
1608 (_initialize_remote): Register qXfer:read.
1609 * target.c (target_core_of_thread): New
1610 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1611 (struct target_ops): New field to_core_of_threads.
1612 (target_core_of_thread): Declare.
1613 * gdbthread.h (struct thread_info): New field private_dtor.
1614 * thread.c (print_thread_info): Report the core.
1615 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1616 * utils.c (compare_positive_ints): New.
1617 * features/threads.dtd: New.
1618 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1619 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1620 (do_nothing, free_vector_of_osdata_items)
1621 (splay_tree_int_comparator, free_splay_tree): New.
1622 (print_one_inferior_data): Implemented printing of selected
1623 inferiors. Collect and print cores.
1624 (output_cores): New.
1625 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1626 thread groups together with --available.
1627
1628 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 * configure: Regenerate (for _STRUCTURED_PROC).
1631
1632 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1633
1634 Delete dead function.
1635 * ada-lang.c (extract_string): Delete. No longer used.
1636
1637 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1638
1639 Fix -Wunused warning in dec-thread.c.
1640 * dec-thread.c (dec_thread_count_gdb_threads)
1641 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1642
1643 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1644
1645 * ada-valprint.c (ada_print_floating): Remove trailing space.
1646
1647 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1648
1649 Add support for DW_AT_GNAT_descriptive_type.
1650 * gdbtypes.h (enum type_specific_kind): New enum.
1651 (struct main_type) [type_specific_field]: New component.
1652 [type_specific]: Add new component "gnat_stuff".
1653 (struct gnat_aux_type): New type.
1654 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1655 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1656 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1657 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1658 (TYPE_SPECIFIC_FIELD): New macros.
1659 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1660 type does not hold any cplus-specific data.
1661 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1662 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1663 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1664 cplus-specific data.
1665 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1666 Set new component TYPE_SPECIFIC_FIELD (type).
1667 (gnat_aux_default): New constant.
1668 (allocate_gnat_aux_type): New function.
1669 (init_type): Add initialization the type-specific stuff for
1670 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1671 (print_gnat_stuff): New function.
1672 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1673 specific data. Adjust code that prints the contents of the
1674 type-specific union using the TYPE_SPECIFIC_FIELD value.
1675 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1676 the type cplus stuff for Ada types.
1677 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1678 Error out if these routines are called with an Ada type.
1679 (read_structure_type, read_array_type, read_subrange_type):
1680 Add call to set_descriptive_type.
1681 (set_die_type): Initialize the gnat-specific data if necessary.
1682 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1683 New functions.
1684 * ada-lang.c (decode_constrained_packed_array_type): Use
1685 decode_constrained_packed_array_type instead of doing a standard
1686 lookup to locate a parallel type.
1687 (find_parallel_type_by_descriptive_type): New function.
1688 (ada_find_parallel_type_with_name): New function.
1689 (ada_find_parallel_type): Reimplement using
1690 ada_find_parallel_type_with_name.
1691 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1692 to check if type has a cplus stuff.
1693 * linespec.c (total_number_of_methods): Likewise.
1694 * mdebugread.c (new_type): Likewise.
1695
1696 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1697
1698 * NEWS: Document the 0b binary number prefix parsing.
1699
1700 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * objfiles.c (objfile_relocate1): Change the return type to int.
1703 Describe the new return value. Return non-zero if data changed.
1704 (objfile_relocate): New variable changed. Set it. Call
1705 breakpoint_re_set depending on CHANGED.
1706
1707 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1708
1709 Implement binary numbers parsing.
1710 * c-exp.y (parse_number): New case 'b' and 'B'.
1711
1712 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1713 Tristan Gingold <gingold@adacore.com>
1714
1715 * solib.c (info_sharedlibrary_command): Replace
1716 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1717 objfile_has_symbols.
1718
1719 2010-01-10 Joel Brobecker <brobecker@adacore.com>
1720
1721 * NEWS: Document the improvements made to the mips-irix port.
1722
1723 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1724
1725 Fix the documentation of valprint.c:value_print.
1726 * valprint.c (value_print): Update the function description to
1727 mention that the syntax of the output follows the current_language,
1728 not necessarily C.
1729
1730 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1731
1732 Fix displacement of separate debug info files.
1733 * objfiles.c (objfile_relocate): Rename to ...
1734 (objfile_relocate1): ... here and make it static. Extend the comment.
1735 (objfile_relocate): New function.
1736 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1737 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1738 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1739 allocated using alloca.
1740 * symfile.c (copy_section_addr_info): Remove.
1741 (build_section_addr_info_from_objfile): Make it global. New variables
1742 addr_bit and mask, use them.
1743 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1744 (copy_section_addr_info): Remove.
1745
1746 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1747
1748 Signal unwinder for mips-irix N32.
1749 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1750 tramp-frame.h.
1751 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1752 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1753 (SIGCONTEXT_LO_OFF): New macros.
1754 (mips_irix_n32_tramp_frame_init): New function.
1755 (mips_irix_n32_tramp_frame): New static constant.
1756 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1757
1758 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1759
1760 Breakpoint in shared library does not work on mips-irix.
1761 * procfs.c: #include "observer.h".
1762 (procfs_inferior_created): New function, moving here the code
1763 which unsets the syssgi syscall-exit notifications.
1764 (procfs_create_inferior): Remove the code which unsets the syssgi
1765 syscall-exit notifications. It is too early to do this here.
1766 (_initialize_procfs): Attach the procfs_inferior_created observer.
1767
1768 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1769
1770 Wrong return convention for arrays (mips-irix).
1771 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1772 128 bits or smaller are returned the same way as structs
1773 and unions of the the same size.
1774
1775 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1776
1777 Cannot set the PC on mips-irix.
1778 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1779 register number, no the cooked one.
1780
1781 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1782
1783 Error while loading core file on mips-irix.
1784 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1785 if debugging from a core file.
1786
1787 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1788
1789 GDB hangs when attaching to process on mips-irix.
1790 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1791 attaching to a process.
1792
1793 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1794
1795 Use the correct breakpoint instruction on mips-irix.
1796 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1797 containing the correct breakpoint instruction to use on mips-irix.
1798 Use it when the osabi is GDB_OSABI_IRIX.
1799
1800 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1801
1802 -Wunused warning in procfs.c (mips-irix only).
1803 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1804 throughout instead of using praddset and prdelset respectively.
1805
1806 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1807
1808 GDB crash while stepping into function.
1809 * infrun.c (handle_inferior_event): Refetch the current frame
1810 after handling what.main_action, in case that pointer became
1811 dangling.
1812
1813 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1814
1815 Fix build failure of solaris-hosted cross debuggers.
1816 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1817
1818 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
1819
1820 Fix build failure on sparc-solaris.
1821 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1822
1823 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1824
1825 Move some symfile code into subroutines.
1826 * symfile.h (relative_addr_info_to_section_offsets)
1827 (addr_info_make_relative): New prototypes.
1828 * symfile.c (default_symfile_offsets): Move a part to ...
1829 (relative_addr_info_to_section_offsets): ... this new function.
1830 (default_symfile_offsets): Call it.
1831 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1832 this part to ...
1833 (addr_info_make_relative): ... this new function.
1834
1835 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1836
1837 Add from_tty to solib_create_inferior_hook.
1838 * infcmd.c (post_create_inferior): Move solib_add after
1839 solib_create_inferior_hook. Pass from_tty to
1840 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1841 0 from_tty and comment why.
1842 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1843 * linux-nat.c (linux_child_follow_fork): Likewise.
1844 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1845 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1846 from_tty.
1847 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1848 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1849 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1850 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1851 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1852 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1853 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1854 Pass it to svr4_so_ops.solib_create_inferior_hook.
1855 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1856 from_tty.
1857 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1858 solib_add.
1859 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1860 enable_break.
1861 * solib-target.c (solib_target_solib_create_inferior_hook): New
1862 parameter from_tty.
1863 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1864 it to ops->solib_create_inferior_hook.
1865 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1866 Move solib_add after solib_create_inferior_hook, call it now with
1867 from_tty as 0. New comment there.
1868 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1869 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1870 Likewise.
1871
1872 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1873
1874 Fix multiexec race.
1875 * infrun.c (handle_inferior_event): Use get_thread_regcache
1876 with events ptid, not get_current_regcache.
1877
1878 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1879
1880 GDB crash with empty executable name (MinGW).
1881 * source.c (openp): Add assert that parameter string is not NULL.
1882 if parameter string is an empty string, then return with a failure
1883 immediately.
1884
1885 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1886
1887 Get rid of support for VAX Floats.
1888 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1889 (ada_vax_float_print_function): Delete.
1890 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1891 (ada_vax_float_print_function): Delete.
1892 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1893 (ada_print_type): Remove support for VAX floats.
1894 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1895
1896 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1897
1898 * stabsread.c (read_args): Handle zero arguments.
1899
1900 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1901
1902 Cannot find in-tree libiconv.a after reconfigure.
1903 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1904 that we can use, then cache the path to this archive.
1905 * configure: Regenerate.
1906
1907 2010-01-07 Stan Shebs <stan@codesourcery.com>
1908
1909 Make tracepoint operations go through target vector.
1910 * target.h (enum trace_find_type): New enum.
1911 (struct target_ops): New fields to_trace_init,
1912 to_download_tracepoint, to_download_trace_state_variable,
1913 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1914 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1915 to_set_disconnected_tracing.
1916 (target_trace_init): New macro.
1917 (target_download_tracepoint): New macro.
1918 (target_download_trace_state_variable): New macro.
1919 (target_trace_start): New macro.
1920 (target_trace_set_readonly_regions): New macro.
1921 (target_get_trace_status): New macro.
1922 (target_trace_stop): New macro.
1923 (target_trace_find): New macro.
1924 (target_get_trace_state_variable_value): New macro.
1925 (target_set_disconnected_tracing): New macro.
1926 * target.c (update_current_target): Inherit and set defaults for
1927 tracepoint operations.
1928 * tracepoint.c (default_collect): Make globally visible.
1929 (target_is_remote): Remove, along with all calls.
1930 (tvariables_info): Call target_get_trace_state_variable_value.
1931 (remote_set_transparent_ranges): Remove.
1932 (trace_start_command): Call target_trace_init,
1933 target_download_tracepoint, etc.
1934 (download_tracepoint): Remove.
1935 (trace_stop_command): Simplify.
1936 (stop_tracing): Call target_trace_stop.
1937 (get_trace_status): Call target_get_trace_status.
1938 (trace_status_command): Add case for targets that cannot trace.
1939 (finish_tfind_command): Change to take numerical arguments, call
1940 target_trace_find.
1941 (trace_find_command): Update call to finish_tfind_command.
1942 (trace_find_pc_command): Ditto.
1943 (trace_find_tracepoint_command): Ditto.
1944 (trace_find_line_command): Ditto.
1945 (trace_find_range_command): Ditto.
1946 (trace_find_outside_command): Ditto.
1947 (set_disconnected_tracing_value): Call
1948 target_set_disconnected_tracing.
1949 * remote.c: Add protocol encoding bits from tracepoint.c.
1950 (trace_error): Move from tracepoint.c.
1951 (remote_get_noisy_reply): Ditto.
1952 (free_actions_list_cleanup_wrapper): Ditto.
1953 (free_actions_list): Ditto.
1954 (remote_trace_init): New function.
1955 (remote_download_tracepoint): New function.
1956 (remote_download_trace_state_variable): New function.
1957 (remote_trace_set_readonly_regions): New function.
1958 (remote_trace_start): New function.
1959 (remote_get_trace_status): New function.
1960 (remote_trace_stop): New function.
1961 (remote_trace_find): New function.
1962 (remote_download_trace_state_variable): New function.
1963 (remote_set_disconnected_tracing): New function.
1964 (init_remote_ops): Add tracepoint operations.
1965
1966 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1967
1968 2010-01-07 Tristan Gingold <gingold@adacore.com>
1969
1970 * symfile.c (build_section_addr_info_from_objfile): New function.
1971 (symbol_file_add_separate): Don't use offsets from objfile but
1972 built an addr info.
1973
1974 2010-01-06 Stan Shebs <stan@codesourcery.com>
1975
1976 Support disconnected tracing.
1977 * infcmd.c (detach_command): Ask whether to stop tracing.
1978 * cli/cli-cmds.c (quit_command): Ditto.
1979 * breakpoint.h (struct breakpoint): New field number_on_target.
1980 * breakpoint.c (create_tracepoint_from_upload): New function.
1981 (get_tracepoint_by_number_on_target): New function.
1982 * remote.c (struct remote): New field disconnected_tracing.
1983 (remote_disconnected_tracing_feature): New function.
1984 (remote_protocol_features): Add DisconnectedTracing.
1985 (struct uploaded_tp): New struct.
1986 (uploaded_tps): New global.
1987 (get_uploaded_tp): New function.
1988 (find_matching_tracepoint): New function.
1989 (remote_get_tracing_state): New function.
1990 (remote_start_remote): Call it.
1991 * tracepoint.c (disconnected_tracing): New global.
1992 (trace_start_command): Initialize number_on_target.
1993 (stop_tracing): New function, split out from...
1994 (trace_stop_command): Call stop_tracing.
1995 (get_trace_status): New function, split out from...
1996 (trace_status_command): Call get_trace_status, add info on
1997 disconnection behavior.
1998 (disconnect_or_stop_tracing): New function.
1999 (finish_tfind_command): Translate from number on target.
2000 (trace_find_tracepoint_command): Translate to number on target.
2001 (send_disconnected_tracing_value): New function.
2002 (set_disconnected_tracing): New function.
2003 (_initialize_tracepoint): Add disconnected-tracing variable.
2004 * NEWS: Mention disconnected tracing.
2005
2006 2010-01-06 Tristan Gingold <gingold@adacore.com>
2007
2008 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
2009 parameter to main_objfile. Iterate on all separate debug objfiles.
2010 * symfile.h (symbol_file_add_separate)
2011 (find_separate_debug_file_by_debuglink): Remove parameter names.
2012 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
2013 (reread_symbols): Use free_objfile_separate_debug.
2014 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
2015 Adjust comment.
2016 (objfile_separate_debug_iterate, add_separate_debug_objfile)
2017 (free_objfile_separate_debug): New prototypes.
2018 * objfiles.c (objfile_separate_debug_iterate): New function.
2019 (add_separate_debug_objfile, free_objfile_separate_debug): New
2020 functions.
2021 (free_objfile): Use free_objfile_separate_debug. Adjust for
2022 multiple separate debug objfile.
2023 (objfile_has_symbols): Adjust comment. Iterate on all separate
2024 debug objfiles.
2025 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
2026 debug objfile.
2027 (lookup_minimal_symbol_text): Ditto.
2028 (lookup_minimal_symbol_by_pc_name): Ditto.
2029 (lookup_minimal_symbol_solib_trampoline): Ditto.
2030 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
2031 debug objfiles.
2032
2033 2010-01-05 Stan Shebs <stan@codesourcery.com>
2034
2035 Add fast tracepoints.
2036 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
2037 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
2038 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
2039 * breakpoint.c (tracepoint_type): New function.
2040 (ALL_TRACEPOINTS): Use it.
2041 (should_be_inserted): Ditto.
2042 (bpstat_check_location): Ditto.
2043 (print_one_breakpoint_location): Ditto.
2044 (user_settable_breakpoint): Ditto.
2045 (set_breakpoint_location_function): Ditto.
2046 (disable_breakpoints_in_shlibs): Ditto.
2047 (delete_trace_command): Ditto.
2048 (print_it_typical): Add bp_fast_tracepoint case.
2049 (bpstat_what): Ditto.
2050 (print_one_breakpoint_location): Ditto.
2051 (allocate_bp_location): Ditto.
2052 (mention): Ditto.
2053 (breakpoint_re_set_one): Ditto.
2054 (disable_command): Ditto.
2055 (enable_command): Ditto.
2056 (check_fast_tracepoint_sals): New function.
2057 (break_command_really): Call it.
2058 (ftrace_command): New function.
2059 (_initialize_breakpoint): Add ftrace command.
2060 * gdbarch.sh (fast_tracepoint_valid_at): New.
2061 * gdbarch.h, gdbarch.c: Regenerate.
2062 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
2063 (i386_gdbarch_init): Use it.
2064 * remote.c (struct remote_state): New field fast_tracepoints.
2065 (PACKET_FastTracepoints): New packet config type.
2066 (remote_fast_tracepoint_feature): New function.
2067 (remote_protocol_features): Add FastTracepoints.
2068 (remote_supports_fast_tracepoints): New function.
2069 (_initialize_remote): Add FastTracepoints.
2070 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
2071 * NEWS: Mention fast tracepoints.
2072
2073 2010-01-06 Joel Brobecker <brobecker@adacore.com>
2074
2075 * gdb-gdb.py: New file.
2076
2077 2010-01-05 Michael Snyder <msnyder@vmware.com>
2078
2079 * infrun.c (handle_inferior_event): Fix typo in comment.
2080
2081 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2082
2083 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
2084
2085 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2086
2087 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
2088 and s390x-linux64.
2089 (s390-linux32-expedite): Define.
2090 (s390-linux64-expedite): Define.
2091 (s390x-linux64-expedite): Define.
2092 * features/s390-acr.xml: New file.
2093 * features/s390-fpr.xml: New file.
2094 * features/s390-core32.xml: New file.
2095 * features/s390-core64.xml: New file.
2096 * features/s390x-core64.xml: New file.
2097 * features/s390-linux32.xml: New file.
2098 * features/s390-linux64.xml: New file.
2099 * features/s390x-linux64.xml: New file.
2100 * features/s390-linux32.c: New generated file.
2101 * features/s390-linux64.c: New generated file.
2102 * features/s390x-linux64.c: New generated file.
2103
2104 * regformats/s390-linux32.dat: New generated file.
2105 * regformats/s390-linux64.dat: New generated file.
2106 * regformats/s390x-linux64.dat: New generated file.
2107 * regformats/reg-s390.dat: Remove.
2108 * regformats/reg-s390x.dat: Remove.
2109
2110 * s390-nat.c: Include "auxv.h" and <elf.h>.
2111 (HWCAP_S390_HIGH_GPRS): Define if undefined.
2112 (s390_target_wordsize): New function.
2113 (s390_auxv_parse): Likewise.
2114 (s390_get_hwcap): Likewise.
2115 (s390_read_description): Likewise.
2116 (_initialize_s390_nat): Install s390_auxv_parse and
2117 s390_read_description.
2118
2119 * s390-tdep.c: Include "features/s390-linux32.c",
2120 "features/s390-linux64.c", and "features/s390x-linux64.c".
2121 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
2122 (s390_register_call_saved): New function.
2123 (s390_register_name): Remove.
2124 (s390_register_type): Remove.
2125 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
2126 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
2127 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
2128 (s390_pseudo_register_name): New function.
2129 (s390_pseudo_register_type): New function.
2130 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
2131 Handle full GPR pesudos and varying pseudo register numbers.
2132 (s390_pseudo_register_write): Likewise
2133 (s390x_pseudo_register_read): Remove.
2134 (s390x_pseudo_register_write): Likewise.
2135 (s390_register_group): Remove.
2136 (s390_pseudo_register_group): New function.
2137 (s390_regmap_gregset): Add GPR upper halves.
2138 (s390x_regmap_gregset): Likewise.
2139 (s390_regmap_fpregset): Likewise.
2140 (s390_regmap_upper): New global variable.
2141 (s390_upper_regset): New global variable.
2142 (s390_upper_regset_sections): New global variable.
2143 (s390_regset_from_core_section): Handle GPR upper halves.
2144 (s390_core_read_description): New function.
2145 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
2146 register information. Handle varying pseudo register numbers.
2147 (s390_backchain_frame_unwind_cache): Likewise.
2148 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
2149 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
2150 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
2151 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
2152 Handle varying pseudo register numbers.
2153 (s390_unwind_pc): Handle varying pseudo register numbers.
2154 (s390_dwarf2_prev_register): New function.
2155 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
2156 register information. Handle varying pseudo register numbers.
2157 Install s390_dwarf2_prev_register to unwind full GPRs.
2158 (s390_gdbarch_init): Handle target descriptions. Assign varying
2159 pseudo register numbers. Install s390_adjust_frame_regnum.
2160 (_initialize_s390_tdep): Initialize target descriptions.
2161
2162 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
2163 (S390_NUM_REGS): Redefine to include upper half registers.
2164 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
2165 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
2166 (tdesc_s390_linux32): Add declaration.
2167 (tdesc_s390_linux64): Likewise.
2168 (tdesc_s390x_linux64): Likewise.
2169
2170 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2171
2172 * regset.h (struct core_regset_section): Add HUMAN_NAME.
2173 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
2174 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2175 (ppc_linux_vmx_regset_sections): Likewise.
2176 (ppc_linux_fp_regset_sections): Likewise.
2177
2178 * corelow.c (get_core_register_section): Constify arguments.
2179 (get_core_registers): Use gdbarch_core_regset_sections instead
2180 of hard-coded platform-specific register section names.
2181
2182 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2183
2184 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
2185 a register, assume the least-significant part is used.
2186 (write_pieced_value): Likewise.
2187
2188 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2189
2190 * printcmd.c: Include "arch-utils.h".
2191 (do_one_display): Re-parse expression if current architecture changed.
2192
2193 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2194 Joel Brobecker <brobecker@adacore.com>
2195
2196 * gdbtypes.c (check_typedef): New comment on type length.
2197 * value.c (allocate_value_lazy): Remove the unused atype variable. New
2198 comment on type length.
2199 (value_primitive_field): Keep the original TYPE value, new comment.
2200
2201 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2202
2203 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
2204 p_start. Change != comparisons to > and < comparisons.
2205
2206 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 * cli/cli-script.c (process_next_line): Check P2 overrun.
2209
2210 2009-01-01 Joel Brobecker <brobecker@adacore.com>
2211
2212 Update the copyright hearder to add year 2010 for most GDB files.
2213
2214 2009-01-01 Joel Brobecker <brobecker@adacore.com>
2215
2216 Fix build failure in inf-ptrace.c.
2217 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2218
2219 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2220
2221 * top.c (print_gdb_version): Update copyright year.
2222
2223 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2224
2225 Fix break *FUN'address thread NUM.
2226 * ada-lex.l (task): Expand rule to also match the thread keyword.
2227
2228 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2229
2230 Fix break *FUN'address task NUM.
2231 * ada-lex.l (task): New rule.
2232 * ada-lang.c (valid_task_id): Make sure the Ada task list has
2233 been built before using it.
2234
2235 For older changes see ChangeLog-2009.
2236 \f
2237 Local Variables:
2238 mode: change-log
2239 left-margin: 8
2240 fill-column: 74
2241 version-control: never
2242 coding: utf-8
2243 End:
This page took 0.087641 seconds and 4 git commands to generate.