d853da0327351bc1ffefbf64d1804f129d608e72
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Code cleanup.
4 * elfread.c (build_id_bfd_get): Make the return type const.
5 (build_id_verify): Make the check parameter const.
6 (build_id_to_debug_filename): Make the build_id parameter and variable
7 data const.
8 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9
10 2013-02-21 Alan Modra <amodra@gmail.com>
11
12 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
13
14 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
15
16 Add a new method 'disassemble' to gdb.Architecture class.
17 * python/py-arch.c (archpy_disassmble): Implementation of the
18 new method gdb.Architecture.disassemble.
19 (arch_object_methods): Add entry for the new method.
20
21 2013-02-20 Jiong Wang <jiwang@tilera.com>
22
23 * MAINTAINERS (Write After Approval): Add myself to the list.
24
25 2013-02-19 Pedro Alves <palves@redhat.com>
26
27 Garbage collect 'struct monitor_ops'::load_routine.
28
29 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
30 * monitor.c (monitor_load): No longer call
31 current_monitor->load_routine.
32 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
33 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
34 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
35
36 2013-02-19 Pedro Alves <palves@redhat.com>
37
38 PR gdb/15161
39
40 Harmonize with generic_load.
41
42 * monitor.c: Include "readline/readline.h".
43 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
44 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
45 long/strtol for the 'load_offset' local. Error out if no argument
46 is given or if too many arguments are given. Tilde expand the
47 passed in file name.
48
49 2013-02-19 Kai Tietz <ktietz@redhat.com>
50
51 PR gdb/15161
52 * symfile.c (load_section_data): Change type of load_offset
53 to CORE_ADDR.
54 (generic_load): User strtoulst instead of strtoul for conversion
55 of load_offset.
56
57 2013-02-19 Jiong Wang <jiwang@tilera.com>
58
59 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
60 for return address, "lr" register, saved on stack.
61 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
62 after we invoke tilegx_analyze_prologue.
63
64 2013-02-19 Jiong Wang <jiwang@tilera.com>
65
66 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
67
68 2013-02-19 Jiong Wang <jiwang@tilera.com>
69
70 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
71
72 2013-02-19 Jiong Wang <jiwang@tilera.com>
73
74 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
75 (tilegx_write_pc): New function.
76 (tilegx_cannot_reference_register): Return zero if REGNO
77 is TILEGX_FAULTNUM_REGNUM.
78 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
79 (tilegx_register_name): Add handling of "faultnum" register.
80 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
81 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
82 handling of TILEGX_FAULTNUM_REGNUM.
83 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
84
85 2013-02-19 Jiong Wang <jiwang@tilera.com>
86
87 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
88 should be aligned to 64bit.
89
90 2013-02-19 Kai Tietz <ktietz@redhat.com>
91
92 * windows-nat.c (windows_xfer_memory): Fix debug-output
93 for LLP64.
94
95 2013-02-19 Lei Liu <lei.liu2@windriver.com>
96
97 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
98 Don't check DSP register number if HAVE_DSP is not set.
99
100 2013-02-19 Alan Modra <amodra@gmail.com>
101
102 * elfread.c (struct build_id): Delete. Use struct elf_build_id
103 throughout file instead.
104 (build_id_bfd_get): Update to use new elf_tdata build_id field.
105 Don't xmalloc return value.
106 (build_id_verify): Similarly. Don't xfree.
107 (build_id_to_debug_filename): Update.
108 (find_separate_debug_file_by_buildid): Update, don't xfree.
109
110 2013-02-18 Tom Tromey <tromey@redhat.com>
111
112 PR gdb/15102:
113 * dwarf2read.c (read_subrange_type): Use result of
114 'check_typedef'.
115
116 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
117
118 * frame.c: Remove one extra white space after #include
119 directive.
120
121 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
122
123 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
124
125 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
128 and dir commands into an if block.
129
130 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
131
132 * python/py-breakpoint (struct pybp_code): Use int instead of
133 enum type_code.
134
135 2013-02-15 Pedro Alves <pedro@codesourcery.com>
136 Hafiz Abid Qadeer <abidh@codesourcery.com>
137
138 * NEWS: Mention new field "trace-file".
139 * tracepoint.c (trace_status_mi): Output "trace-file" field.
140 (tfile_open): Record the trace file's filename in the trace
141 status.
142 (tfile_files_info): Mention the name of the trace file.
143 Check the "filename" field explicitely.
144 (trace_status_command): Explicitely check "filename" field.
145 (trace_find_command): Ditto.
146 (trace_find_pc_command): Ditto.
147 (trace_find_tracepoint_command): Ditto.
148 (trace_find_line_command): Ditto.
149 (trace_find_range_command): Ditto.
150 (trace_find_outside_command): Ditto.
151 * tracepoint.h (struct trace_status) <from_file>: Rename it
152 to "filename" and make it hold the trace file's filename
153 instead of a boolean.
154 * remote.c (remote_get_trace_status): Initialize "filename"
155 field with NULL instead of 0.
156
157 2013-02-15 Yao Qi <yao@codesourcery.com>
158
159 * remote.c: Fix a typo.
160
161 2013-02-14 Pierre Muller <muller@sourceware.org>
162
163 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
164
165 2013-02-14 Pedro Alves <palves@redhat.com>
166
167 * utils.c (savestring): Don't #undef it. Move function to
168 common/common-utils.c.
169 * common/common-utils.c: Include gdb_string.h.
170 (savestring): Move here from utils.c.
171 * common/common-utils.h (savestring): Declare.
172
173 2013-02-14 Pedro Alves <palves@redhat.com>
174
175 * utils.c (savestring): Rename parameter 'size' to 'len'.
176
177 2013-02-14 Pedro Alves <palves@redhat.com>
178 Yufeng Zhang <yufeng.zhang@arm.com>
179
180 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
181 (aarch64_inferior_data, struct aarch64_inferior_data):
182 Delete.
183 (struct aarch64_process_info): New.
184 (aarch64_process_list): New global.
185 (aarch64_find_process_pid, aarch64_add_process)
186 (aarch64_process_info_get): New functions.
187 (aarch64_inferior_data_get): Delete.
188 (aarch64_process_info_get): New function.
189 (aarch64_forget_process): New function.
190 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
191 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
192 aarch64_get_debug_reg_state.
193 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
194 instead of linux_nat_iterate_watchpoint_lwps.
195 (aarch64_linux_new_fork): New function.
196 (aarch64_linux_child_post_startup_inferior): Use
197 aarch64_forget_process instead of aarch64_init_debug_reg_state.
198 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
199 (aarch64_linux_remove_hw_breakpoint)
200 (aarch64_handle_aligned_watchpoint)
201 (aarch64_handle_unaligned_watchpoint)
202 (aarch64_linux_insert_watchpoint)
203 (aarch64_linux_remove_watchpoint)
204 (aarch64_linux_stopped_data_address): Adjust to pass the current
205 process id to aarch64_debug_reg_state.
206 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
207 linux_nat_new_fork hook, and aarch64_forget_process as
208 linux_nat_forget_process hook; remove the call to
209 register_inferior_data_with_cleanup.
210
211 2013-02-14 Pedro Alves <palves@redhat.com>
212
213 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
214 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
215 lval_memory.
216
217 2013-02-14 Pedro Alves <pedro@codesourcery.com>
218 Hafiz Abid Qadeer <abidh@codesourcery.com>
219
220 * tracepoint.h (validate_trace_state_variable_name): Declare.
221 * tracepoint.c (validate_trace_state_variable_name): New.
222 (trace_variable_command): Parse the trace state variable's name
223 without using parse_expression. Do several validations.
224 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
225 trace state variable's name with parse_expression. Validate it.
226
227 2013-02-14 Yao Qi <yao@codesourcery.com>
228
229 * infcmd.c (breakpoint_proceeded): Remove it.
230
231 2013-02-14 Yao Qi <yao@codesourcery.com>
232
233 * tracepoint.c (end_actions_pseudocommand): Make it static.
234 (while_stepping_pseudocommand): Likewise.
235 * tracepoint.h (end_actions_pseudocommand): Remove the
236 declaration.
237 (while_stepping_pseudocommand): Likewise.
238
239 2013-02-14 Yao Qi <yao@codesourcery.com>
240
241 * cli/cli-decode.c (help_cmd): Remove the declaration of
242 "cmdlist".
243 (help_all): Likewise.
244
245 2013-02-13 Pedro Alves <palves@redhat.com>
246
247 * amd64-linux-nat.c (update_debug_registers_callback):
248 Update comment.
249 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
250 iterate_over_lwps.
251 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
252 i386_debug_reg_state.
253 (amd64_linux_new_fork): New function.
254 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
255 linux_nat_new_fork hook, and i386_forget_process as
256 linux_nat_forget_process hook.
257 * i386-linux-nat.c (update_debug_registers_callback):
258 Update comment.
259 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
260 iterate_over_lwps.
261 (i386_linux_prepare_to_resume): Pass the lwp's pid to
262 i386_debug_reg_state.
263 (i386_linux_new_fork): New function.
264 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
265 linux_nat_new_fork hook, and i386_forget_process as
266 linux_nat_forget_process hook.
267 * i386-nat.c (i386_init_dregs): Delete.
268 (i386_inferior_data, struct i386_inferior_data):
269 Delete.
270 (struct i386_process_info): New.
271 (i386_process_list): New global.
272 (i386_find_process_pid, i386_add_process, i386_process_info_get):
273 New functions.
274 (i386_inferior_data_get): Delete.
275 (i386_process_info_get): New function.
276 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
277 (i386_forget_process): New function.
278 (i386_cleanup_dregs): Rewrite.
279 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
280 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
281 (i386_stopped_data_address, i386_insert_hw_breakpoint)
282 (i386_remove_hw_breakpoint): Adjust to pass the current process id
283 to i386_debug_reg_state.
284 (i386_use_watchpoints): Don't register inferior data.
285 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
286 adjust comment.
287 (i386_forget_process): Declare.
288 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
289 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
290 New static globals.
291 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
292 (add_initial_lwp): New, factored out from ...
293 (add_lwp): ... this. Don't check the number of lwps before
294 calling linux_nat_new_thread.
295 (linux_nat_iterate_watchpoint_lwps): Delete.
296 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
297 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
298 forks and vforks.
299 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
300 initial lwp.
301 (linux_nat_kill, linux_nat_mourn_inferior): Call
302 linux_nat_forget_process.
303 (linux_nat_set_new_fork, linux_nat_set_forget_process)
304 (linux_nat_forget_process): New functions.
305 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
306 type.
307 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
308 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
309 types.
310 (linux_nat_set_new_fork, linux_nat_set_forget_process)
311 (linux_nat_forget_process): New declarations.
312
313 * amd64fbsd-nat.c (super_mourn_inferior): New global.
314 (amd64fbsd_mourn_inferior): New function.
315 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
316 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
317
318 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
319
320 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
321 Adding _().
322
323 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
324
325 * aarch64-linux-nat.c (debug_reg_change_callback)
326 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
327 %s and phex().
328
329 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
330
331 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
332 with LONGEST.
333
334 2013-02-13 Pedro Alves <palves@redhat.com>
335 Hafiz Abid Qadeer <abidh@codesourcery.com>
336
337 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
338
339 2013-02-12 Tom Tromey <tromey@redhat.com>
340
341 PR symtab/11464:
342 * c-exp.y (lex_one_token): Initialize other fields of yylval on
343 NAME return.
344 (classify_inner_name): Remove 'first_name' argument, add
345 'context'. Remove unused variable.
346 (yylex): Explicitly maintain the context type. Exit loop earlier
347 if NAME result is seen.
348
349 2013-02-12 Pedro Alves <palves@redhat.com>
350
351 * amd64-darwin-tdep.c: Add (C) after Copyright.
352 * cli/cli-cmds.h: Ditto.
353 * cli/cli-decode.c: Ditto.
354 * cli/cli-decode.h: Ditto.
355 * cli/cli-dump.c: Ditto.
356 * cli/cli-dump.h: Ditto.
357 * cli/cli-interp.c: Ditto.
358 * cli/cli-logging.c: Ditto.
359 * cli/cli-script.c: Ditto.
360 * cli/cli-script.h: Ditto.
361 * cli/cli-setshow.c: Ditto.
362 * cli/cli-setshow.h: Ditto.
363 * cli/cli-utils.c: Ditto.
364 * cli/cli-utils.h: Ditto.
365 * config/alpha/nm-osf3.h: Ditto.
366 * config/djgpp/djconfig.sh: Ditto.
367 * config/i386/nm-fbsd.h: Ditto.
368 * config/i386/nm-i386gnu.h: Ditto.
369 * config/nm-linux.h: Ditto.
370 * config/nm-nto.h: Ditto.
371 * config/rs6000/nm-rs6000.h: Ditto.
372 * config/sparc/nm-sol2.h: Ditto.
373 * darwin-nat-info.c: Ditto.
374 * dfp.c: Ditto.
375 * dfp.h: Ditto.
376 * gdb-demangle.h: Ditto.
377 * i386-darwin-nat.c: Ditto.
378 * i386-darwin-tdep.c: Ditto.
379 * linux-fork.h: Ditto.
380 * m32c-tdep.c: Ditto.
381 * microblaze-linux-tdep.c: Ditto.
382 * microblaze-rom.c: Ditto.
383 * microblaze-tdep.c: Ditto.
384 * microblaze-tdep.h: Ditto.
385 * mips-linux-tdep.h: Ditto.
386 * ppc-ravenscar-thread.c: Ditto.
387 * ppc-ravenscar-thread.h: Ditto.
388 * prologue-value.c: Ditto.
389 * prologue-value.h: Ditto.
390 * ravenscar-thread.c: Ditto.
391 * ravenscar-thread.h: Ditto.
392 * sparc-ravenscar-thread.c: Ditto.
393 * sparc-ravenscar-thread.h: Ditto.
394 * tilegx-linux-tdep.c: Ditto.
395 * unwind_stop_reasons.def: Ditto.
396 * windows-nat.h: Ditto.
397 * xtensa-linux-tdep.c: Ditto.
398 * xtensa-xtregs.c: Ditto.
399 * regformats/regdat.sh: Ditto.
400 * regformats/regdef.h: Ditto.
401
402 2013-02-12 Pedro Alves <palves@redhat.com>
403
404 * break-catch-sig.c: Update copyright years.
405
406 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
407
408 Add support for a destructor for ui_out data and use it to
409 provide a ui_out destructor.
410 * ui-out.h: Declare the new ui_out destructor.
411 (ui_out_impl): Add a field for data destructor in ui_out_impl.
412 * ui-out.c (default_data_destroy): Add a default data destructor
413 which does nothing.
414 (default_ui_out_impl): Set the new data_destroy field to
415 default_data_destroy
416 (uo_data_destroy): Local function which invokes the data
417 destructor if present.
418 (clear_table): Local function which clears the table data of a
419 ui_out object.
420 (ui_out_destroy): Public function which frees a ui_out object.
421 (ui_out_table_end): Use the new clear_table function.
422 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
423 NULL.
424 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
425 to NULL.
426
427 2013-02-11 Doug Evans <dje@google.com>
428
429 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
430 (printf_decfloat): New function. Broken out from ui_printf.
431 Remove unnecessary code to shift the entire format string down.
432 (printf_pointer): New function.
433 (ui_printf): Code to print C strings, wide C strings, decfloats,
434 and pointers moved to separate functions.
435
436 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
437
438 * valops.c (value_assign): Handling bitfield offset in
439 `lval_internalvar_component' case.
440
441 2013-02-08 Doug Evans <dje@google.com>
442
443 * common/format.c (parse_format_string): Fix whitespace.
444
445 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
446
447 * stack.c (return_command): Work around uninitialized variable
448 warning.
449
450 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
451
452 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
453 number of the registers from 36 to 34.
454
455 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
456
457 * NEWS: Mention new AArch64 native and target support.
458
459 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
460
461 * MAINTAINERS (Write After Approval): Add myself.
462
463 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
464 Marcus Shawcroft <marcus.shawcroft@arm.com>
465 Nigel Stephens <nigel.stephens@arm.com>
466 Yufeng Zhang <yufeng.zhang@arm.com>
467
468 * aarch64-linux-nat.c: New file.
469 * config/aarch64/linux.mh: New file.
470 * configure.host: Add AArch64.
471 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
472
473 2013-02-07 Doug Evans <dje@google.com>
474
475 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
476 disassemble command.
477
478 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
479
480 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
481 set_gdbarch_fetch_tls_load_module_address.
482
483 2013-02-06 David S. Miller <davem@davemloft.net>
484
485 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
486 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
487 * value.c (struct_return_convention): New function.
488 (using_struct_return): Implement in terms of struct_return_convention.
489 * value.h (struct_return_convention): Declare.
490 * stack.c (return_command): Allow successful overriding of the return
491 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
492
493 2013-02-06 Tom Tromey <tromey@redhat.com>
494
495 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
496 outside of TRY_CATCH.
497
498 2013-02-06 Yao Qi <yao@codesourcery.com>
499
500 * mi/mi-interp.c: Include "tracepoint.h".
501 (mi_tsv_modified): Declare.
502 (mi_tsv_created, mi_tsv_deleted): Update declaration.
503 (mi_interpreter_init): Call observer_attach_tsv_modified.
504 (mi_tsv_modified): New.
505 (mi_tsv_created, mi_tsv_deleted): Update.
506 * tracepoint.c (trace_variable_command): Call
507 observer_notify_tsv_modified if the initial value of tsv is
508 changed.
509 (delete_trace_state_variable): Call
510 observer_notify_tsv_deleted earlier.
511 (trace_variable_command): Caller update.
512 (create_tsv_from_upload): Likewise.
513 * observer.sh: Declare "struct trace_state_variable".
514
515 * NEWS: Mention the new MI notification "=tsv-modified".
516
517 2013-02-05 Doug Evans <dje@google.com>
518
519 * completer.c (location_completer): Fix typo in comment.
520
521 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 * breakpoint.c (add_location_to_breakpoint): Insert the location with
524 ADDRESS sorted.
525
526 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
527
528 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
529 Refactor if statement to avoid trailing || operator.
530
531 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
532
533 * NEWS: Add PowerPC FreeBSD as a new native configuration.
534
535 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
536
537 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
538 * configure.host: Add powerpc*-*-freebsd* target.
539 * configure.tgt: Add target info for powerpc*-*-freebsd*.
540 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
541 * config/powerpc/fbsd.mh: New file.
542
543 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
544 Denys Vlasenko <dvlasenk@redhat.com>
545 Pedro Alves <palves@redhat.com>
546
547 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
548 (struct elf_internal_linux_prpsinfo): Forward declare.
549 * gdbarch.h, gdbarch.c: Regenerate.
550 * linux-tdep.c: Include `cli/cli-utils.h'.
551 (linux_fill_prpsinfo): New function.
552 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
553 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
554 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
555 depending on gdbarch pointer bitness.
556 * ppc-linux-tdep.c: Include elf-bfd.h.
557 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
558 on 32-bit.
559
560 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
561 Marcus Shawcroft <marcus.shawcroft@arm.com>
562 Nigel Stephens <nigel.stephens@arm.com>
563 Yufeng Zhang <yufeng.zhang@arm.com>
564
565 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
566
567 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
568 Marcus Shawcroft <marcus.shawcroft@arm.com>
569 Nigel Stephens <nigel.stephens@arm.com>
570 Yufeng Zhang <yufeng.zhang@arm.com>
571
572 * aarch64-newlib-tdep.c: New file.
573 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
574 aarch64*-*-elf.
575 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
576 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
577 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
578 * osabi.c (gdb_osabi_names): Add "Newlib".
579
580 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
581 Marcus Shawcroft <marcus.shawcroft@arm.com>
582 Nigel Stephens <nigel.stephens@arm.com>
583 Yufeng Zhang <yufeng.zhang@arm.com>
584
585 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
586 (ALLDEPFILES): Add aarch64-linux-tdep.c.
587 * aarch64-linux-tdep.c: New file.
588 * aarch64-linux-tdep.h: New file.
589 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
590 * configure.tgt: Add aarch64-none-linux-gnu.
591
592 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
593 Marcus Shawcroft <marcus.shawcroft@arm.com>
594 Nigel Stephens <nigel.stephens@arm.com>
595 Yufeng Zhang <yufeng.zhang@arm.com>
596
597 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
598 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
599 (ALLDEPFILES): Add aarch64-tdep.c.
600 * aarch64-tdep.c: New file.
601 * aarch64-tdep.h: New file.
602 * configure.tgt: Add AArch64.
603 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
604 (aarch64-expedite): New definition.
605 * features/aarch64-core.xml: New file.
606 * features/aarch64-fpu.xml: New file.
607 * features/aarch64-without-fpu.c: New file (generated).
608 * features/aarch64-without-fpu.xml: New file.
609 * features/aarch64.c: New file (generated).
610 * features/aarch64.xml: New file.
611 * regformats/aarch64-without-fpu.dat: New file (generated).
612 * regformats/aarch64.dat: New file (generated).
613
614 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
615
616 * contrib/expect-read1.c: New file.
617 * contrib/expect-read1.sh: New file.
618
619 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
620
621 * dwarf2read.c (file_file_name): New function with code from
622 file_full_name.
623 (file_full_name): Move most of the code to file_file_name.
624 (macro_start_file): Rename variable full_name to file_name and use
625 file_file_name for it. Add comp_dir parameter to new_macro_table.
626 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
627 macro_source_file->filename access by macro_source_fullname call.
628 * macroscope.c (_initialize_macroscope): Update the new_macro_table
629 caller.
630 * macrotab.c (struct macro_table): New field comp_dir.
631 (macro_include): New variables link_fullname and source_fullname.
632 Replace any macro_source_file->filename access by macro_source_fullname
633 call.
634 (macro_lookup_inclusion): Remove the partial filenames checking code.
635 (check_for_redefinition): New variables source_fullname and
636 found_key_fullname. Replace any macro_source_file->filename access by
637 macro_source_fullname call.
638 (macro_undef): New variables source_fullname and key_fullname. Replace
639 any macro_source_file->filename access by macro_source_fullname call.
640 (macro_lookup_definition): New variables retval and source_fullname.
641 Replace any macro_source_file->filename access by macro_source_fullname
642 call.
643 (foreach_macro): New variable key_fullname. Replace any
644 macro_source_file->filename access by macro_source_fullname call.
645 (foreach_macro_in_scope): New variable datum_fullname. Replace any
646 macro_source_file->filename access by macro_source_fullname call.
647 (new_macro_table): Add parameter comp_dir. Initialize T with it.
648 (macro_source_fullname): New function.
649 * macrotab.h (struct macro_source_file): Extent the filename field
650 comment.
651 (new_macro_table): New parameter comp_dir, add a comment for it.
652 (macro_source_fullname): new declaration.
653
654 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
655
656 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
657 this_real_name to outer block. Use it also for
658 compare_filenames_for_search.
659 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
660 with dw2_get_real_path for file_matcher, considering also
661 BASENAMES_MAY_DIFFER.
662 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
663
664 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
665
666 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
667 to the file_matcher parameter. Pass 0 to it.
668 (dwarf2_create_include_psymtab): Copy also DIRNAME.
669 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
670 NULL psymtab_to_fullname result.
671 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
672 an expected filename instead.
673 (expand_symtabs_matching_via_partial): Add basenames parameter to the
674 file_matcher parameter. Call also psymtab_to_fullname, after newly
675 considering BASENAMES_MAY_DIFFER.
676 * source.c (rewrite_source_path): Remove static.
677 * source.h (rewrite_source_path): New declaration.
678 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
679 the expand_symtabs_matching field. Comment it.
680 * symtab.c (file_matches): New function comment. Add parameter
681 basenames, implement it.
682 (search_symbols_file_matches): Add basenames parameter. Update the
683 file_matches caller.
684 (search_symbols): Match FILES also against symtab_to_fullname.
685 Optimize it for BASENAMES_MAY_DIFFER.
686
687 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
688
689 * source.c (print_source_lines_base): Print for TUI also "fullname".
690 * tui/tui-data.c (init_content_element): Change tui_locator_element
691 field to full_name.
692 * tui/tui-data.h (struct tui_locator_element): Likewise.
693 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
694 tui_update_locator_filename calls to tui_update_locator_fullname.
695 Replace symtab->filename refererence by symtab_to_fullname call.
696 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
697 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
698 field to full_name. Replace symtab->filename refererence by
699 symtab_to_fullname call.
700 (tui_show_symtab_source): Rename parameter to fullname. Change
701 tui_locator_element field to full_name.
702 * tui/tui-stack.c: Include source.h.
703 (tui_set_locator_filename): Rename the declaration to ...
704 (tui_set_locator_fullname): ... here. Rename its parameter to
705 fullname, updates its comment.
706 (tui_set_locator_info): Rename its parameter to fullname.
707 (tui_set_locator_filename): Rename the definition to ...
708 (tui_set_locator_fullname): ... here. Rename its parameter to
709 fullname, updates its comment. Change tui_locator_element field to
710 full_name.
711 (tui_set_locator_info): Rename its parameter to fullname.
712 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
713 (tui_update_locator_filename): Rename to ...
714 (tui_update_locator_fullname): ... here. Rename callee to
715 tui_set_locator_fullname.
716 (tui_show_frame_info): Replace symtab->filename refererence by
717 symtab_to_fullname call.
718 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
719 (tui_update_locator_fullname): ... here.
720 * tui/tui-winsource.c (tui_display_main): Rename the callee to
721 tui_update_locator_fullname. Replace symtab->filename refererence by
722 symtab_to_fullname call.
723 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
724 Rename the callee to tui_update_locator_fullname.
725 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
726
727 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
728
729 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
730 by symtab_to_filename_for_display calls.
731 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
732 (clear_command): New variable sal_fullname, initialize it. Replace
733 compare_filenames_for_search by filename_cmp with sal_fullname.
734 (say_where, update_static_tracepoint): Replace symtab->filename
735 refererences by symtab_to_filename_for_display calls.
736 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
737 Likewise.
738 * dwarf2read.c: Include source.h.
739 (fixup_go_packaging): Replace symtab->filename refererences by
740 symtab_to_filename_for_display calls.
741 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
742 Replace symtab->filename refererences by symtab_to_filename_for_display
743 calls.
744 (create_sals_line_offset, convert_linespec_to_sals): New variable
745 fullname, initialize it, replace symtab->filename reference by the
746 variable.
747 * linux-fork.c: Include source.h.
748 (info_checkpoints_command): Replace symtab->filename refererences by
749 symtab_to_filename_for_display calls.
750 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
751 by symtab_to_filename_for_display calls.
752 * mdebugread.c: Include source.h.
753 (psymtab_to_symtab_1): Replace symtab->filename refererences by
754 symtab_to_filename_for_display calls.
755 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
756 (mi_cmd_file_list_exec_source_files): Likewise.
757 * printcmd.c: Include source.h.
758 (build_address_symbolic): Replace symtab->filename refererences by
759 symtab_to_filename_for_display calls.
760 * psymtab.c (partial_map_symtabs_matching_filename)
761 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
762 with psymtab_to_fullname.
763 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
764 by symtab_to_filename_for_display calls.
765 (stpy_get_filename): New variable filename, initialize it, use instead
766 of symtab->filename refererences.
767 (salpy_str): Make variable filename const char *. Replace
768 symtab->filename refererences by symtab_to_filename_for_display calls.
769 * skip.c: Include source.h and filenames.h.
770 (skip_file_command): Remove const from the symtab variable. Replace
771 symtab->filename refererences by symtab_to_fullname call.
772 (function_name_is_marked_for_skip): New variables searched_for_fullname
773 and fullname. Use them to search also with symtab's fullname.
774 * source.c (find_source_lines): Replace symtab->filename refererences
775 by symtab_to_filename_for_display calls.
776 (print_source_lines_base): New variable filename, use it instead of
777 symtab->filename. Replace symtab->filename refererences by
778 symtab_to_filename_for_display calls.
779 (line_info, forward_search_command): Replace symtab->filename
780 refererences by symtab_to_filename_for_display calls.
781 (reverse_search_command): Replace symtab->filename refererences by
782 symtab_to_filename_for_display calls. New variable filename for it.
783 * stack.c (frame_info): Likewise.
784 * symmisc.c: Include source.h.
785 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
786 (maintenance_info_symtabs): Replace symtab->filename refererences by
787 symtab_to_filename_for_display calls.
788 * symtab.c (iterate_over_some_symtabs): Call
789 compare_filenames_for_search also with symtab_to_fullname.
790 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
791 symtab->filename refererences by symtab_to_filename_for_display calls.
792 (find_line_symtab): Replace symtab->filename refererences by
793 symtab_to_filename_for_display calls.
794 (file_matches): Replace filename_cmp by compare_filenames_for_search.
795 (print_symbol_info): Make the last parameter const char *. New
796 variable s_filename. Use it in the function.
797 (symtab_symbol_info): Make the last_filename variable const char *.
798 Replace symtab->filename refererences by symtab_to_filename_for_display
799 calls.
800 (rbreak_command): New variable fullname. Use it. Replace
801 symtab->filename refererence by symtab_to_filename_for_display call.
802 * tracepoint.c (set_traceframe_context, trace_find_line_command)
803 (print_one_static_tracepoint_marker): Replace symtab->filename
804 refererences by symtab_to_filename_for_display calls.
805 * tui/tui-source.c (tui_set_source_content): New variables filename and
806 s_filename. Replace symtab->filename refererences by this variable.
807 Replace other symtab->filename refererences by
808 symtab_to_filename_for_display calls.
809
810 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
811 Jan Kratochvil <jan.kratochvil@redhat.com>
812
813 Add a new variable that controls a way in which filenames are
814 displayed.
815 * NEWS (set filename-display): New entry.
816 * source.c (filename_display_basename, filename_display_relative)
817 (filename_display_absolute, filename_display_kind_names)
818 (filename_display_string, show_filename_display_string)
819 (symtab_to_filename_for_display): New.
820 (_initialize_source): Added initialization of 'filename-display'
821 variable.
822 * source.h (symtab_to_filename_for_display): Added declaration.
823 * stack.c (print_frame): Added new variable and calling of a new
824 function and condition with this variable. Changed third argument of
825 calling of a function.
826
827 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
828
829 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
830 Rename field reference filename to fullname.
831 * tui/tui-data.h (struct tui_source_info): Rename field filename to
832 fullname. New comment for it.
833 * tui/tui-source.c (tui_set_source_content): Rename field reference
834 filename to fullname. Initialize field by symtab_to_fullname now.
835 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
836 reference filename to fullname. Use symtab_to_fullname during
837 comparison.
838
839 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
840
841 Code cleanup.
842 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
843 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
844 filename to fullname. Rename variable this_name to this_fullname.
845 Lowercase FILENAME_CMP call.
846 (dw2_find_symbol_file): New comment for the returned string.
847 (dwarf2_gdb_index_functions): Rename the function to
848 dw2_expand_symtabs_with_fullname.
849 * psymtab.c (read_psymtabs_with_filename): Rename to ...
850 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
851 fullname.
852 (psym_functions): Rename the function to read_psymtabs_with_fullname.
853 * symfile.h (struct quick_symbol_functions): Rename field
854 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
855 parameter filename to fullname. Document returned string meaning for
856 find_symbol_file.
857 * symtab.c (find_line_symtab): Rename the called function to
858 expand_symtabs_with_fullname.
859
860 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 Code cleanup.
863 * breakpoint.c (clear_command): Remove variable is_abs, unify the
864 call of filename_cmp with compare_filenames_for_search.
865 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
866 is_abs, unify the call of FILENAME_CMP with
867 compare_filenames_for_search. New gdb_asserts for real_path and name.
868 Unify the call of compare_filenames_for_search with FILENAME_CMP.
869 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
870 * symfile.h (struct quick_symbol_functions): Extend the comment for
871 map_symtabs_matching_filename.
872 * symtab.c (compare_filenames_for_search): Remove the function comment
873 relative path requirement. Handle absolute filenames, with a comment.
874 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
875 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
876 real_path and name. Unify the call of compare_filenames_for_search
877 with FILENAME_CMP.
878 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
879
880 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
881
882 Code cleanup.
883 * breakpoint.c (print_breakpoint_location): Replace bp_location field
884 source_file references by symtab field references. Remove variables
885 sal and fullname.
886 (momentary_breakpoint_from_master, add_location_to_breakpoint):
887 (clear_command, say_where): Replace bp_location field source_file
888 references by symtab field references.
889 (bp_location_dtor): Remove the source_file reference.
890 (update_static_tracepoint): Replace bp_location field source_file
891 references by symtab field references.
892 (breakpoint_free_objfile): New function.
893 * breakpoint.h (struct bp_location): Extend the comment for line_number.
894 Replace the field source_file by field symtab, extend its comment.
895 (breakpoint_free_objfile): New declaration.
896 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
897 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
898 field source_file references by symtab field references.
899
900 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
901
902 Replace xfullpath calls by gdb_realpath calls.
903 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
904 function comment.
905 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
906 Remove it from the iterate_over_some_symtabs call.
907 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
908 Remove it from the dw2_map_expand_apply calls, remove a block handling
909 it.
910 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
911 Remove it from the iterate_over_some_symtabs call.
912 (partial_map_symtabs_matching_filename): Remove parameter full_path.
913 Remove it from the partial_map_expand_apply calls, remove a block
914 handling it. Drop gdb_realpath call and cleanups from the real_path
915 handling.
916 * source.c (openp): Drop the comment part about xfullpath. Replace
917 xfullpath calls by gdb_realpath calls.
918 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
919 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
920 from method map_symtabs_matching_filename and its comment.
921 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
922 gdb_realpath call.
923 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
924 remove it also from the function comment, remove a block handling it.
925 Drop gdb_realpath call and cleanups from the real_path handling.
926 (iterate_over_symtabs): Drop variable full_path and its use.
927 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
928 * utils.c (xfullpath): Remove.
929 * utils.h (xfullpath): Remove.
930
931 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
932
933 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
934 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
935 (ALLDEPFILES): Add ppc64-tdep.c.
936 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
937 ppc64-tdep.o to gdb_target_obs.
938 * ppc64-tdep.h: New file.
939 * ppc64-tdep.c: New file.
940 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
941 ppc-linux-tdep.c to here.
942 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
943 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
944 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
945 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
946 from ppc-linux-tdep.c to here.
947 (ppc64_convert_from_func_ptr_addr): Rename from
948 ppc64_linux_convert_from_func_ptr_addr to
949 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
950 here.
951 * rs6000-tdep.c:
952 (read_insn): Move from ppc-linux-tdep.c to here.
953 (insns_match_pattern, insn_d_field, insn_ds_field): Move
954 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
955 * ppc-linux-tdep.c: Include ppc64-tdep.h.
956 Removed above functions.
957 (ppc_linux_init_abi): Adjust.
958
959 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
960
961 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
962
963 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
964
965 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
966
967 2013-02-01 Pedro Alves <palves@redhat.com>
968
969 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
970 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
971
972 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 * elfread.c (elf_symfile_read): Limit separate debug info additions to
975 files with no separate debug info.
976 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
977 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
978 only for files with no separate debug info.
979
980 2013-01-31 Tom Tromey <tromey@redhat.com>
981
982 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
983 change type.
984 (struct jit_program_space_data): Rename from jit_inferior_data.
985 Update comments.
986 (get_jit_program_space_data): Rename from get_jit_inferior_data.
987 Change return type. Attach data to program space.
988 (jit_program_space_data_cleanup): Rename from
989 jit_inferior_data_cleanup; change argument type.
990 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
991 change type.
992 (jit_register_code): Update.
993 (jit_update_inferior_cache): Remove.
994 (jit_breakpoint_deleted): Get jit data from the location's program
995 space.
996 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
997 'ps_data', change type.
998 (jit_inferior_init, jit_breakpoint_re_set_internal)
999 (jit_event_handler): Update.
1000 (free_objfile_data): Get data from objfile's program space.
1001 (_initialize_jit): Update.
1002
1003 2013-01-31 Tom Tromey <tromey@redhat.com>
1004
1005 PR gdb/13987:
1006 * jit.c (struct jit_inferior_data) <cached_code_address,
1007 jit_breakpoint>: New fields.
1008 (jit_breakpoint_re_set_internal): Fix logging. Only create
1009 breakpoint if cached address has changed.
1010 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1011 functions.
1012 (_initialize_jit): Register breakpoint deleted observer.
1013
1014 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1015
1016 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1017 (save_infcall_suspend_state): Ifdef out unused inf.
1018 (restore_infcall_suspend_state): Ifdef out unused inf.
1019 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1020 (jit_frame_sniffer): Remove unused inf_data.
1021
1022 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1023
1024 * c-exp.y (classify_inner_name): Remove unused type.
1025 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1026 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1027 need_escape.
1028 (c_get_string): Remove unused kind.
1029 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1030
1031 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1032
1033 * charset.c (intermediate_encoding): Remove unused i.
1034 * completer.c (signal_completer): Remove unused i.
1035 * continuations.c (discard_my_continuations_1): Remove unused
1036 continuation_ptr.
1037 * corelow.c (core_close): Remove unuseD name.
1038 (get_core_siginfo): Remove unused pid.
1039 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1040 i, cps.
1041 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1042 (loclist_describe_location): Remove unused first.
1043 * event-top.c (command_line_handler): Remove unused got_eof.
1044 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1045 (resize_section_table): Remove unused old_value.
1046 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1047 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1048 * i386-tdep.c (i386_process_record): Remove unused rex.
1049 * infcmd.c (get_return_value): Remove unused uiout.
1050 * jv-lang.c (type_from_class): Remove unused is_array.
1051 * jv-valprint.c (java_val_print): Remove unused i.
1052 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1053 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1054 * m2-typeprint.c (m2_print_type): Remove unused code.
1055 * macroexp.c (get_character_constant): Remove unused body_start.
1056 (macro_stringify): Remove unused result.
1057 * objc-lang.c (find_methods): Remove unused gdbarch.
1058 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1059 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1060 * stack.c (print_frame_args): Remove unused summary.
1061 * thread.c (thread_apply_command): Remove unused p.
1062 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1063 * valops.c (search_struct_method): Remove unused skip.
1064 * valprint.c (generic_val_print): Remove unused byte_order.
1065 * varobj.c (varobj_update): Remove unused changed.
1066 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1067 (alias_command): Remove unused c.
1068 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1069 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1070 format.
1071 (mi_cmd_data_write_memory): Remove unused word_format.
1072 (mi_cmd_data_write_memory_bytes): Remove unused r.
1073 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1074 p_start, p_end.
1075 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1076 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1077 line_width.
1078
1079 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1080
1081 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1082 * symtab.c (iterate_over_symtabs): Remove unused s.
1083 (find_pc_sect_symtab): Remove unused pspAce.
1084 (find_pc_sect_line): Remove unused alt_symtab.
1085 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1086 (completion_list_add_name): Remove unused newsize.
1087
1088 2013-01-31 Tom Tromey <tromey@redhat.com>
1089
1090 PR c++/14998:
1091 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1092 TYPE_CODE_FUNC.
1093
1094 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1095
1096 * target.c (target_read_string): Remove unused origlen.
1097
1098 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1099
1100 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1101 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1102 * ax-general.c (ax_print): Remove unused is_float.
1103 * blockframe.c (block_innermost_frame): Remove unused start, end.
1104 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1105
1106 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1107
1108 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1109 (svr4_read_so_list): Remove unused lmo.
1110 * solib-target.c (solib_target_relocate_section_addresses): Remove
1111 unused flags.
1112
1113 2013-01-30 Tom Tromey <tromey@redhat.com>
1114
1115 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1116
1117 2013-01-30 Tom Tromey <tromey@redhat.com>
1118
1119 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1120 * utils.c (gnu_debuglink_crc32): Remove.
1121 * utils.h (gnu_debuglink_crc32): Don't declare.
1122
1123 2013-01-30 Tom Tromey <tromey@redhat.com>
1124
1125 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1126 (read_structure_type, read_enumeration_type): Remove cast.
1127
1128 2013-01-30 Tom Tromey <tromey@redhat.com>
1129
1130 * dwarf2read.c (read_namespace_type): Remove cast.
1131 (read_typedef): Likewise.
1132
1133 2013-01-29 Tom Tromey <tromey@redhat.com>
1134
1135 * dwarf2read.c (free_dwo_file): Remove assert.
1136
1137 2013-01-29 Tom Tromey <tromey@redhat.com>
1138
1139 * value.c (deprecated_set_value_modifiable): Remove.
1140 * value.h (deprecated_set_value_modifiable): Remove.
1141
1142 2013-01-28 Doug Evans <dje@google.com>
1143
1144 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1145 to addresses from dwo files.
1146
1147 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1148
1149 * valops.c (find_overload_match): Remove unused argument 'lax'.
1150 * value.h: Remove unused argument 'lax' from the declaration of
1151 find_overload_match.
1152 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1153 to find_overload_match.
1154 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1155 argument to find_overload_match.
1156
1157 2013-01-25 Tom Tromey <tromey@redhat.com>
1158
1159 * dwarf2read.c (processing_has_namespace_info): Remove.
1160 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1161 (process_die, read_func_scope, dwarf2_start_symtab)
1162 (new_symbol_full): Update.
1163
1164 2013-01-25 Tom Tromey <tromey@redhat.com>
1165
1166 * cp-namespace.c (cp_set_block_scope): Remove.
1167 * cp-support.h (cp_set_block_scope): Remove.
1168 * dbxread.c: Include block.h.
1169 (cp_set_block_scope): New function.
1170 (process_one_symbol): Update.
1171 * dwarf2read.c (read_func_scope): Use block_set_scope.
1172
1173 2013-01-25 Pedro Alves <palves@redhat.com>
1174
1175 * remote.c (add_current_inferior_and_thread): Tweak comment.
1176
1177 2013-01-25 Tom Tromey <tromey@redhat.com>
1178
1179 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1180 (cp_add_using_directive): Add 'copy_names' argument.
1181 * cp-support.h (cp_add_using_directive): Update.
1182 (struct using_direct) <import_src, import_dest, alias,
1183 declaration>: Now const.
1184 * dwarf2read.c (read_import_statement): Use obconcat.
1185 Don't copy names passed to cp_add_using_directive.
1186
1187 2013-01-25 Tom Tromey <tromey@redhat.com>
1188
1189 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1190
1191 2013-01-25 Pedro Alves <palves@redhat.com>
1192
1193 * remote.c (stop_reply_extract_thread): New.
1194 (add_current_inferior_and_thread): New parameter 'wait_status'.
1195 Handle it.
1196 (remote_start_remote): Pass wait status to
1197 add_current_inferior_and_thread.
1198 (extended_remote_run): Update comment.
1199 (extended_remote_create_inferior_1): Pass wait status to
1200 add_current_inferior_and_thread.
1201
1202 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1203 Ulrich Weigand <uweigand@de.ibm.com>
1204
1205 * valarith.c (value_vector_widen): New function for replicating a
1206 scalar into a vector.
1207 (value_binop): Use value_vector_widen to widen scalar to vector
1208 rather than casting, this better matches gcc C behaviour.
1209 * valops.c (value_casst): Update logic for casting between vector
1210 types, and for casting from scalar to vector, try to match gcc C
1211 behaviour.
1212 * value.h (value_vector_widen): Declare.
1213 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1214 function, handle special case for casting scalar to vector.
1215 (opencl_relop): Use opencl_value_cast.
1216 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1217 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1218 in order to use opencl_value_cast.
1219
1220 2013-01-25 Yao Qi <yao@codesourcery.com>
1221
1222 * event-loop.c: Include "queue.h".
1223 (gdb_event_p): New typedef.
1224 (DECLARE_QUEUE_P): Use.
1225 (DEFINE_QUEUE_P): Use.
1226 (async_queue_event): Remove.
1227 (gdb_event_xfree): New.
1228 (initialize_event_loop): New.
1229 (process_event): Use QUEUE macros.
1230 (event_queue): Remove.
1231 (gdb_wait_for_event): Caller update.
1232 (check_async_event_handlers): Likewise.
1233 (poll_timers): Likewise.
1234 * event-loop.h (initialize_event_loop): Declare.
1235 * event-loop.c (gdb_event_xfree): New.
1236 * top.c (gdb_init): Call initialize_event_loop.
1237
1238 2013-01-25 Yao Qi <yao@codesourcery.com>
1239
1240 * event-loop.c (async_queue_event): Remove one parameter
1241 'position'. Remove code handling 'position' == TAIL.
1242 (gdb_wait_for_event): Caller update.
1243 (check_async_event_handlers): Caller update.
1244 (poll_timers): Caller update.
1245 * event-loop.h (enum queue_position): Remove.
1246
1247 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1248
1249 * MAINTAINERS: Update my email.
1250
1251 2013-01-25 Yao Qi <yao@codesourcery.com>
1252
1253 * main.c (print_gdb_help): Remove "--epoch" from the help
1254 message.
1255
1256 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1257
1258 * symtab.c (skip_prologue_using_sal): Consider a file
1259 change the same as an increased line number
1260
1261 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1262
1263 * MAINTAINERS (Write After Approval): Add myself to the list.
1264
1265 2013-01-24 Tom Tromey <tromey@redhat.com>
1266
1267 * ada-lang.h (ada_decode_symbol): Make return type const.
1268 * ada-lang.c (ada_decode_symbol): Likewise.
1269
1270 2013-01-23 Doug Evans <dje@google.com>
1271
1272 * linespec.c (find_linespec_symbols): Make static.
1273
1274 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1275
1276 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1277 type on float conversion for complex type.
1278
1279 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1280
1281 Add a new class gdb.Architecture which exposes GDB's
1282 internal representation of architecture via GDB Python API.
1283 * Makefile.in: Add entries corresponding to the new file
1284 python/py-arch.c.
1285 * NEWS (Python Scripting): Add entries for the new class
1286 gdb.Architecture and the new method gdb.Frame.architecture.
1287 * python/py-arch.c: Implement gdb.Architecture class.
1288 * python/py-frame.c (frapy_arch): Implement the method
1289 gdb.Frame.architecture().
1290 (frame_object_methods): Add 'architecture' to the method table.
1291 * python/python-internal.h: Add declarations of new utility
1292 functions.
1293 * python/python.c (_initialize_python): Initialize
1294 gdb.Architecture class.
1295
1296 2013-01-23 Doug Evans <dje@google.com>
1297
1298 Work around binutils/15021.
1299 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1300 type_unit_group out of union s. All uses updated.
1301 (read_index_from_section): Watch for index version 8.
1302 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1303 an imported symtab.
1304 (write_psymtabs_to_index): Increment version number to 8.
1305
1306 2013-01-22 Pedro Alves <palves@redhat.com>
1307
1308 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1309 user-visible.
1310
1311 2013-01-22 Pedro Alves <palves@redhat.com>
1312
1313 * annotate.c (annotate_breakpoints_changed): Rename to ...
1314 (annotate_breakpoints_invalid): ... this. Make static.
1315 (breakpoint_changed): Adjust.
1316 (_initialize_annotate): Always install the observers. Install a
1317 "breakpoint_created" observer.
1318 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1319 * breakpoint.c (set_breakpoint_condition)
1320 (breakpoint_set_commands, do_map_commands_command)
1321 (init_raw_breakpoint, clear_command, set_ignore_count)
1322 (enable_breakpoint_disp): No longer call
1323 annotate_breakpoints_changed.
1324
1325 2013-01-22 Pedro Alves <palves@redhat.com>
1326
1327 * annotate.c: Include "inferior.h".
1328 (frames_invalid_emitted)
1329 (breakpoints_invalid_emitted): New globals.
1330 (async_background_execution_p): New function.
1331 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1332 emitting the annotation if it has already been emitted.
1333 (annotate_display_prompt): New function.
1334 * annotate.h (annotate_display_prompt): New declaration.
1335 * event-top.c: Include annotate.h.
1336 (display_gdb_prompt): Call annotate_display_prompt.
1337
1338 2013-01-22 Pedro Alves <palves@redhat.com>
1339
1340 * annotate.c (ignore_count_changed): Delete.
1341 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1342 (annotate_ignore_count_change): Delete.
1343 (annotate_stopped): Don't emit a delayed breakpoints-changed
1344 annotation.
1345 * annotate.h (annotate_ignore_count_change): Delete.
1346 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1347 annotate_ignore_count_change.
1348
1349 2013-01-22 Tom Tromey <tromey@redhat.com>
1350
1351 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1352 require_rvalue for a register location.
1353
1354 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1355
1356 * breakpoint.c (print_one_breakpoint_location): Add MI
1357 field 'thread-groups' when printing a breakpoint.
1358 (output_thread_groups): New function.
1359
1360 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1361
1362 * python/lib/gdb/commands/explore.py
1363 (CompoundExplorer.explore_expr): Correct the name of a method
1364 being invoked.
1365 (ExploreTypeCommand.invoke): Add a missing 'return'.
1366
1367 2013-01-21 Tom Tromey <tromey@redhat.com>
1368
1369 * gdb_obstack.h (obconcat): Move declaration here, from...
1370 * symfile.h (obconcat): ... here.
1371 * gdb_obstack.c: New file.
1372 (obconcat): Move from...
1373 * symfile.c (obconcat): ... here.
1374 * Makefile.in (SFILES): Add gdb_obstack.c.
1375 (COMMON_OBS): Add gdb_obstack.o.
1376
1377 2013-01-21 Tom Tromey <tromey@redhat.com>
1378
1379 * symfile.h (obsavestring): Don't declare.
1380 * symfile.c (obsavestring): Remove.
1381 * ada-exp.y: Use obstack_copy0, not obsavestring.
1382 * ada-lang.c: Use obstack_copy0, not obsavestring.
1383 * coffread.c: Use obstack_copy0, not obsavestring.
1384 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1385 * dbxread.c: Use obstack_copy0, not obsavestring.
1386 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1387 * jit.c: Use obstack_copy0, not obsavestring.
1388 * mdebugread.c: Use obstack_copy0, not obsavestring.
1389 * psymtab.c: Use obstack_copy0, not obsavestring.
1390 * stabsread.c: Use obstack_copy0, not obsavestring.
1391 * xcoffread.c: Use obstack_copy0, not obsavestring.
1392
1393 2013-01-21 Tom Tromey <tromey@redhat.com>
1394
1395 * dwarf2read.c (fixup_go_packaging): Save package name
1396 on objfile obstack.
1397 * gdbtypes.c (init_type): Don't copy name.
1398
1399 2013-01-21 Tom Tromey <tromey@redhat.com>
1400
1401 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1402 const.
1403 (struct attribute) <u.str>: Now const.
1404 (struct fnfieldlist) <name>: Now const.
1405 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1406 (partial_die_parent_scope): Make return type const.
1407 (partial_die_full_name, add_partial_symbol): Update.
1408 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1409 'name' const.
1410 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1411 (read_file_scope, read_func_scope, dwarf2_add_field)
1412 (dwarf2_add_member_fn, read_structure_type)
1413 (process_enumeration_scope, read_array_type, read_module_type)
1414 (read_base_type, read_subrange_type): Update.
1415 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1416 (new_symbol_full, guess_full_die_structure_name): Update.
1417 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1418 (dwarf2_name): Return const type.
1419 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1420 const.
1421
1422 2013-01-21 Tom Tromey <tromey@redhat.com>
1423
1424 * gdbtypes.c (init_type): Make 'name' const.
1425 * gdbtypes.h (init_type): Update.
1426
1427 2013-01-21 Tom Tromey <tromey@redhat.com>
1428
1429 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1430 (start_symtab): Make 'name' and 'dirname' const. Use
1431 set_last_source_file.
1432 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1433 (last_source_file): Define. Now static.
1434 (set_last_source_file, get_last_source_file): New functions.
1435 * buildsym.h (last_source_file): Don't declare.
1436 (start_symtab): Update.
1437 (set_last_source_file, get_last_source_file): Declare.
1438 * coffread.c (complete_symtab): Use set_last_source_file.
1439 (coff_end_symtab): Likewise.
1440 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1441 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1442 set_last_source_file.
1443 (process_one_symbol): Use get_last_source_file.
1444 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1445 (psymtab_to_symtab_1): Use get_last_source_file.
1446 * xcoffread.c (process_linenos): Use get_last_source_file.
1447 (complete_symtab): Use set_last_source_file.
1448 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1449 (scan_xcoff_symtab): Use set_last_source_file.
1450
1451 2013-01-21 Tom Tromey <tromey@redhat.com>
1452
1453 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1454 (symbol_set_names): Remove casts. Handle field const-ness.
1455
1456 2013-01-21 Tom Tromey <tromey@redhat.com>
1457
1458 * dwarf2read.c (new_symbol_full): Remove cast.
1459 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1460 * symtab.h (symbol_set_demangled_name): Update.
1461
1462 2013-01-21 Tom Tromey <tromey@redhat.com>
1463
1464 * main.c (captured_main): Call bfd_init.
1465
1466 2013-01-21 Tom Tromey <tromey@redhat.com>
1467
1468 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1469 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1470 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1471 * NEWS: Update.
1472
1473 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1474
1475 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1476
1477 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1478
1479 Fix gdb.fortran/common-block.exp crash in PIE mode.
1480 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1481 LOC_COMMON_BLOCK.
1482 * f-valprint.c (info_common_command_for_block): Expect
1483 LOC_COMMON_BLOCK in gdb_assert.
1484 * symtab.h (struct general_symbol_info): Update comment for the
1485 common_block member.
1486 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1487 (enum address_class): New member LOC_COMMON_BLOCK.
1488
1489 2013-01-18 David Blaikie <dblaikie@gmail.com>
1490
1491 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1492
1493 2013-01-18 Tom Tromey <tromey@redhat.com>
1494
1495 PR c++/14999:
1496 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1497 Call require_rvalue.
1498
1499 2013-01-18 Yao Qi <yao@codesourcery.com>
1500
1501 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1502 (dbx_read_symtab): New declaration.
1503 (dbx_psymtab_to_symtab): Delete.
1504 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1505 Rename parameter PST to SELF. Exchanged two parameters.
1506 (start_psymtab): Caller update.
1507 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1508 (dwarf2_read_symtab): New declaration.
1509 (dwarf2_psymtab_to_symtab): Delete.
1510 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1511 Rename parameter PST to SELF. Exchanged two parameters.
1512 (create_partial_symtab): Caller update.
1513 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1514 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1515 Rename parameter PST to SELF. Exchanged two parameters.
1516 (parse_partial_symbols, new_psymtab): Caller update.
1517 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1518 two parameters.
1519 * psymtab.c (psymtab_to_symtab): Caller update.
1520 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1521 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1522 Rename parameter PST to SELF. Exchanged two parameters.
1523 (xcoff_start_psymtab): Caller update.
1524
1525 2013-01-18 Yao Qi <yao@codesourcery.com>
1526
1527 * infrun.c (proceed): Rename local variable 'oneproc' to
1528 'force_step'.
1529
1530 2013-01-17 Doug Evans <dje@google.com>
1531
1532 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1533 (dw2_build_type_unit_groups): Delete. All uses updated.
1534
1535 * symtab.h (struct symbol_search): Add comment.
1536
1537 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1538
1539 * symtab.c (compare_filenames_for_search): New comment for
1540 HAS_DRIVE_SPEC.
1541
1542 2013-01-17 Tom Tromey <tromey@redhat.com>
1543
1544 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1545
1546 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1547
1548 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1549 initialize it by existing make_cleanup. Call new do_cleanups.
1550
1551 2013-01-17 Tom Tromey <tromey@redhat.com>
1552
1553 * cp-abi.c (cp_abi_completer): New function.
1554 (_initialize_cp_abi): Set completer for "set cp-abi".
1555
1556 2013-01-17 Tom Tromey <tromey@redhat.com>
1557
1558 * mem-break.c: Remove obsolete comment.
1559 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1560
1561 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1562
1563 * jit.c (jit_reader_load_command): Interpret the jit reader name
1564 as an absolute path if it begins with a forward slash.
1565
1566 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1567
1568 PR gdb/14550
1569
1570 * jit.c (finalize_symtab): Ensure that only the global block has a
1571 NULL superblock.
1572
1573 2013-01-17 Pedro Alves <palves@redhat.com>
1574
1575 * acinclude.m4: Include ../config/plugins.m4,
1576 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1577 * Makefile.in (aclocal_m4_deps): Update.
1578 * aclocal.m4: Renegerate.
1579
1580 2013-01-16 Doug Evans <dje@google.com>
1581
1582 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1583
1584 2013-01-16 Pedro Alves <palves@redhat.com>
1585 Tom Tromey <tromey@redhat.com>
1586
1587 PR cli/7221:
1588 * NEWS: Add "catch signal".
1589 * breakpoint.c (base_breakpoint_ops): No longer static.
1590 (bpstat_explains_signal): New function.
1591 (init_catchpoint): No longer static.
1592 (base_breakpoint_explains_signal): New function.
1593 (base_breakpoint_ops): Initialize new field.
1594 * breakpoint.h (enum bpstat_signal_value): New.
1595 (struct breakpoint_ops) <explains_signal>: New field.
1596 (bpstat_explains_signal): Remove macro, declare as function.
1597 (base_breakpoint_ops, init_catchpoint): Declare.
1598 * break-catch-sig.c: New file.
1599 * inferior.h (signal_catch_update): Declare.
1600 * infrun.c (signal_catch): New global.
1601 (handle_syscall_event): Update for change to
1602 bpstat_explains_signal.
1603 (handle_inferior_event): Likewise. Always handle random signals
1604 via bpstats.
1605 (signal_cache_update): Check signal_catch.
1606 (signal_catch_update): New function.
1607 (_initialize_infrun): Initialize signal_catch.
1608 * Makefile.in (SFILES): Add break-catch-sig.c.
1609 (COMMON_OBS): Add break-catch-sig.o.
1610
1611 2013-01-16 Tom Tromey <tromey@redhat.com>
1612
1613 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1614 (print_one_catch_solib, print_one_catch_syscall)
1615 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1616 "catch-type".
1617
1618 2013-01-16 Yao Qi <yao@codesourcery.com>
1619
1620 * printcmd.c (current_display_number): Make it static.
1621
1622 2013-01-16 Yao Qi <yao@codesourcery.com>
1623
1624 * infcmd.c (step_once): Don't check '!single_inst' as it was
1625 checked before.
1626
1627 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1628
1629 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1630
1631 2013-01-14 Tom Tromey <tromey@redhat.com>
1632
1633 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1634 set command.
1635 * command.h (add_setshow_string_noescape_cmd): Update.
1636 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1637 (complete_set_gnutarget): New function.
1638 (_initialize_core): Set the "set gnutarget" completer.
1639
1640 2013-01-14 Tom Tromey <tromey@redhat.com>
1641
1642 PR symtab/14442:
1643 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1644 (c_type_print_modifier): Likewise.
1645 * dwarf2read.c (read_tag_restrict_type): New function.
1646 (read_type_die_1): Handle DW_TAG_restrict_type.
1647 * gdbtypes.c (make_restrict_type): New function.
1648 (recursive_dump_type): Handle TYPE_RESTRICT.
1649 * gdbtypes.h (enum type_flag_values): Renumber.
1650 (enum type_instance_flag_value): Add
1651 TYPE_INSTANCE_FLAG_RESTRICT.
1652 (TYPE_RESTRICT): New macro.
1653 (make_restrict_type): Declare.
1654
1655 2013-01-14 Tom Tromey <tromey@redhat.com>
1656
1657 PR symtab/14931:
1658 * psymtab.c (struct psymtab_state): New.
1659 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1660 functions.
1661 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1662 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1663
1664 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1665 Pedro Alves <palves@redhat.com>
1666
1667 PR remote/14786
1668
1669 * remote.c (remote_threads_info): Make a copy of the reply from
1670 qfThreadInfo and use that instead of rs->buf.
1671
1672 2013-01-14 Yao Qi <yao@codesourcery.com>
1673
1674 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1675 (dbx_psymtab_to_symtab): Likewise.
1676 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1677 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1678 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1679
1680 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1681
1682 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1683 make_cleanup_restore_current_language. Call set_language. Move
1684 OLD_CHAIN and INNER_CHAIN cleanups.
1685 * utils.c (do_restore_current_language)
1686 (make_cleanup_restore_current_language): New functions.
1687 * utils.h (make_cleanup_restore_current_language): New declaration.
1688
1689 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1690
1691 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1692 non-existing files.
1693
1694 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1695 non-existing files if FILENAME is already absolute.
1696
1697 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1698
1699 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1700 fputs_filtered. Append trailing newline.
1701
1702 2013-01-11 Yao Qi <yao@codesourcery.com>
1703 Stan Shebs <stan@codesourcery.com>
1704
1705 * psymtab.c (init_psymbol_list): Clarify the comment.
1706
1707 2013-01-11 Yao Qi <yao@codesourcery.com>
1708
1709 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1710 (update_dprintf_command_list): Assert that 'printf_line' is
1711 non-null. Remove condition check.
1712
1713 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1714
1715 Code cleanup.
1716 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1717 type const char *.
1718 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1719 const char *.
1720 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1721
1722 2013-01-09 Anthony Green <green@moxielogic.com>
1723
1724 * cp-abi.c (cplus_print_vtable): Don't return value from void
1725 function.
1726 * ada-lang.c (re_set_catch_assert): Ditto.
1727
1728 2013-01-09 Doug Evans <dje@google.com>
1729
1730 * symfile.h (quick_symbol_functions): Delete member
1731 pre_expand_symtabs_matching. All uses removed.
1732 * dwarf2read.c (dw2_lookup_symbol): Implement.
1733 (dw2_do_expand_symtabs_matching): Delete.
1734 (dw2_pre_expand_symtabs_matching): Delete.
1735 (struct dw2_symtab_iterator): New type.
1736 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1737 (dw2_expand_symtabs_for_function): Rewrite.
1738 (dwarf2_gdb_index_functions): Update.
1739 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1740 (psym_functions): Update.
1741
1742 2013-01-09 Tom Tromey <tromey@redhat.com>
1743
1744 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1745 * configure: Rebuild.
1746 * configure.ac: Add somread.o to the build if BFD has SOM
1747 support.
1748 * somread.c: Include som/aout.h, not syms.h.
1749 (som_symtab_read): Use som_external_symbol_dictionary_record.
1750 Unpack records manually.
1751 (_initialize_somread): Declare.
1752
1753 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1754
1755 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1756 Cast return_address to 64bits.
1757
1758 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1759
1760 * printcmd.c: Remove define of function output_command.
1761 * tracepoint.c: Remove extern of function output_command.
1762 * valprint.h: (output_command): New extern.
1763
1764 2013-01-07 Tom Tromey <tromey@redhat.com>
1765
1766 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1767 Remove.
1768 (objc_language_defn): Use c_printchar, c_printstr,
1769 c_emit_char.
1770
1771 2013-01-07 Tom Tromey <tromey@redhat.com>
1772
1773 PR cli/7719:
1774 * NEWS: Update.
1775 * ada-valprint.c (printstr, print_field_values): Remove
1776 "inspect_it" code.
1777 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1778 code.
1779 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1780 code.
1781 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1782 * main.c (captured_main): Remove "epoch" argument.
1783 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1784 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1785 * p-valprint.c (pascal_object_print_value_fields): Remove
1786 "inspect_it" code.
1787 * printcmd.c (print_command_1): Remove 'inspect' argument.
1788 (print_command, call_command): Update.
1789 (inspect_command): Remove.
1790 (_initialize_printcmd): Make "inspect" an alias for "print".
1791 * top.c (epoch_interface): Remove.
1792 * top.h (epoch_interface): Remove.
1793 * valprint.c (user_print_options): Update.
1794 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1795 * valprint.h (struct value_print_options) <inspect_it>: Remove
1796 field.
1797
1798 2013-01-04 Tom Tromey <tromey@redhat.com>
1799
1800 * valprint.h (read_string): Add 'extern'.
1801
1802 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1803
1804 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1805 used to decide whether to define darwin_read_dyld_info or not.
1806
1807 2013-01-03 Pierre Muller <muller@sourceware.org>
1808
1809 * main.c (relocate_gdb_directory): Avoid calling stat function
1810 if DIR is empty.
1811
1812 2013-01-03 Yao Qi <yao@codesourcery.com>
1813
1814 * psymtab.c (fixup_psymbol_section): Update declaration.
1815 (fixup_psymbol_section): Remove code returning value.
1816
1817 2013-01-03 Yao Qi <yao@codesourcery.com>
1818
1819 * symtab.h: Remove some out of date comments.
1820 (enum exception_event_kind): Move it ...
1821 * breakpoint.c: ... here.
1822
1823 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1824
1825 PR gdb/14405
1826 * darwin-nat.c (darwin_read_dyld_info): Only build if
1827 TASK_DYLD_INFO_COUNT is defined.
1828 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1829 TASK_DYLD_INFO_COUNT is defined.
1830
1831 2013-01-02 Tom Tromey <tromey@redhat.com>
1832
1833 * symfile.h (struct ecoff_debug_hack): Remove.
1834 * objfiles.c: Don't include mdebugread.h.
1835
1836 2013-01-02 Tom Tromey <tromey@redhat.com>
1837
1838 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1839 * configure.ac: Check for Mach-O support in BFD. Update
1840 CONFIG_OBS.
1841 * configure: Rebuild.
1842
1843 2013-01-02 Tom Tromey <tromey@redhat.com>
1844
1845 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1846 * configure.ac: Use GDB_AC_CHECK_BFD.
1847 * configure: Rebuild.
1848
1849 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1850
1851 * MAINTAINERS: Update my email.
1852
1853 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1854
1855 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1856
1857 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1858
1859 * rs6000-nat.c (bss_data_overlap): New function.
1860 (vmap_symtab): Use it to adjust the .bss section's offset.
1861
1862 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1863
1864 Update year range in copyright notice of all files.
1865
1866 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1867
1868 * top.c (print_gdb_version): Update copyright year.
1869
1870 For older changes see ChangeLog-2012.
1871 \f
1872 Local Variables:
1873 mode: change-log
1874 left-margin: 8
1875 fill-column: 74
1876 version-control: never
1877 coding: utf-8
1878 End:
This page took 0.078796 seconds and 3 git commands to generate.